parsek-cdp 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. parsek_cdp/__init__.py +55 -0
  2. parsek_cdp/_logging.py +49 -0
  3. parsek_cdp/cdp/__init__.py +247 -0
  4. parsek_cdp/cdp/accessibility/__init__.py +15 -0
  5. parsek_cdp/cdp/accessibility/events.py +35 -0
  6. parsek_cdp/cdp/accessibility/functions.py +202 -0
  7. parsek_cdp/cdp/accessibility/types.py +235 -0
  8. parsek_cdp/cdp/animation/__init__.py +15 -0
  9. parsek_cdp/cdp/animation/events.py +52 -0
  10. parsek_cdp/cdp/animation/functions.py +140 -0
  11. parsek_cdp/cdp/animation/types.py +113 -0
  12. parsek_cdp/cdp/audits/__init__.py +15 -0
  13. parsek_cdp/cdp/audits/events.py +21 -0
  14. parsek_cdp/cdp/audits/functions.py +95 -0
  15. parsek_cdp/cdp/audits/types.py +1051 -0
  16. parsek_cdp/cdp/autofill/__init__.py +15 -0
  17. parsek_cdp/cdp/autofill/events.py +27 -0
  18. parsek_cdp/cdp/autofill/functions.py +64 -0
  19. parsek_cdp/cdp/autofill/types.py +108 -0
  20. parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
  21. parsek_cdp/cdp/backgroundservice/events.py +40 -0
  22. parsek_cdp/cdp/backgroundservice/functions.py +59 -0
  23. parsek_cdp/cdp/backgroundservice/types.py +63 -0
  24. parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
  25. parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
  26. parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
  27. parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
  28. parsek_cdp/cdp/browser/__init__.py +15 -0
  29. parsek_cdp/cdp/browser/events.py +46 -0
  30. parsek_cdp/cdp/browser/functions.py +350 -0
  31. parsek_cdp/cdp/browser/types.py +158 -0
  32. parsek_cdp/cdp/cachestorage/__init__.py +15 -0
  33. parsek_cdp/cdp/cachestorage/events.py +13 -0
  34. parsek_cdp/cdp/cachestorage/functions.py +126 -0
  35. parsek_cdp/cdp/cachestorage/types.py +89 -0
  36. parsek_cdp/cdp/cast/__init__.py +15 -0
  37. parsek_cdp/cdp/cast/events.py +38 -0
  38. parsek_cdp/cdp/cast/functions.py +77 -0
  39. parsek_cdp/cdp/cast/types.py +23 -0
  40. parsek_cdp/cdp/console/__init__.py +15 -0
  41. parsek_cdp/cdp/console/events.py +22 -0
  42. parsek_cdp/cdp/console/functions.py +36 -0
  43. parsek_cdp/cdp/console/types.py +30 -0
  44. parsek_cdp/cdp/css/__init__.py +15 -0
  45. parsek_cdp/cdp/css/events.py +79 -0
  46. parsek_cdp/cdp/css/functions.py +788 -0
  47. parsek_cdp/cdp/css/types.py +742 -0
  48. parsek_cdp/cdp/debugger/__init__.py +15 -0
  49. parsek_cdp/cdp/debugger/events.py +164 -0
  50. parsek_cdp/cdp/debugger/functions.py +663 -0
  51. parsek_cdp/cdp/debugger/types.py +171 -0
  52. parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
  53. parsek_cdp/cdp/deviceaccess/events.py +30 -0
  54. parsek_cdp/cdp/deviceaccess/functions.py +54 -0
  55. parsek_cdp/cdp/deviceaccess/types.py +28 -0
  56. parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
  57. parsek_cdp/cdp/deviceorientation/events.py +13 -0
  58. parsek_cdp/cdp/deviceorientation/functions.py +35 -0
  59. parsek_cdp/cdp/deviceorientation/types.py +10 -0
  60. parsek_cdp/cdp/dom/__init__.py +15 -0
  61. parsek_cdp/cdp/dom/events.py +228 -0
  62. parsek_cdp/cdp/dom/functions.py +1033 -0
  63. parsek_cdp/cdp/dom/types.py +293 -0
  64. parsek_cdp/cdp/domdebugger/__init__.py +15 -0
  65. parsek_cdp/cdp/domdebugger/events.py +13 -0
  66. parsek_cdp/cdp/domdebugger/functions.py +155 -0
  67. parsek_cdp/cdp/domdebugger/types.py +57 -0
  68. parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
  69. parsek_cdp/cdp/domsnapshot/events.py +13 -0
  70. parsek_cdp/cdp/domsnapshot/functions.py +111 -0
  71. parsek_cdp/cdp/domsnapshot/types.py +312 -0
  72. parsek_cdp/cdp/domstorage/__init__.py +15 -0
  73. parsek_cdp/cdp/domstorage/events.py +60 -0
  74. parsek_cdp/cdp/domstorage/functions.py +79 -0
  75. parsek_cdp/cdp/domstorage/types.py +30 -0
  76. parsek_cdp/cdp/emulation/__init__.py +15 -0
  77. parsek_cdp/cdp/emulation/events.py +17 -0
  78. parsek_cdp/cdp/emulation/functions.py +688 -0
  79. parsek_cdp/cdp/emulation/types.py +305 -0
  80. parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
  81. parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
  82. parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
  83. parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
  84. parsek_cdp/cdp/extensions/__init__.py +15 -0
  85. parsek_cdp/cdp/extensions/events.py +13 -0
  86. parsek_cdp/cdp/extensions/functions.py +118 -0
  87. parsek_cdp/cdp/extensions/types.py +19 -0
  88. parsek_cdp/cdp/fedcm/__init__.py +15 -0
  89. parsek_cdp/cdp/fedcm/events.py +45 -0
  90. parsek_cdp/cdp/fedcm/functions.py +93 -0
  91. parsek_cdp/cdp/fedcm/types.py +72 -0
  92. parsek_cdp/cdp/fetch/__init__.py +15 -0
  93. parsek_cdp/cdp/fetch/events.py +82 -0
  94. parsek_cdp/cdp/fetch/functions.py +215 -0
  95. parsek_cdp/cdp/fetch/types.py +81 -0
  96. parsek_cdp/cdp/filesystem/__init__.py +15 -0
  97. parsek_cdp/cdp/filesystem/events.py +13 -0
  98. parsek_cdp/cdp/filesystem/functions.py +36 -0
  99. parsek_cdp/cdp/filesystem/types.py +54 -0
  100. parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
  101. parsek_cdp/cdp/headlessexperimental/events.py +13 -0
  102. parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
  103. parsek_cdp/cdp/headlessexperimental/types.py +24 -0
  104. parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
  105. parsek_cdp/cdp/heapprofiler/events.py +65 -0
  106. parsek_cdp/cdp/heapprofiler/functions.py +193 -0
  107. parsek_cdp/cdp/heapprofiler/types.py +57 -0
  108. parsek_cdp/cdp/indexeddb/__init__.py +15 -0
  109. parsek_cdp/cdp/indexeddb/events.py +13 -0
  110. parsek_cdp/cdp/indexeddb/functions.py +232 -0
  111. parsek_cdp/cdp/indexeddb/types.py +120 -0
  112. parsek_cdp/cdp/input/__init__.py +15 -0
  113. parsek_cdp/cdp/input/events.py +25 -0
  114. parsek_cdp/cdp/input/functions.py +361 -0
  115. parsek_cdp/cdp/input/types.py +87 -0
  116. parsek_cdp/cdp/inspector/__init__.py +15 -0
  117. parsek_cdp/cdp/inspector/events.py +41 -0
  118. parsek_cdp/cdp/inspector/functions.py +27 -0
  119. parsek_cdp/cdp/inspector/types.py +10 -0
  120. parsek_cdp/cdp/io/__init__.py +15 -0
  121. parsek_cdp/cdp/io/events.py +13 -0
  122. parsek_cdp/cdp/io/functions.py +77 -0
  123. parsek_cdp/cdp/io/types.py +13 -0
  124. parsek_cdp/cdp/layertree/__init__.py +15 -0
  125. parsek_cdp/cdp/layertree/events.py +36 -0
  126. parsek_cdp/cdp/layertree/functions.py +178 -0
  127. parsek_cdp/cdp/layertree/types.py +104 -0
  128. parsek_cdp/cdp/log/__init__.py +15 -0
  129. parsek_cdp/cdp/log/events.py +22 -0
  130. parsek_cdp/cdp/log/functions.py +54 -0
  131. parsek_cdp/cdp/log/types.py +57 -0
  132. parsek_cdp/cdp/media/__init__.py +15 -0
  133. parsek_cdp/cdp/media/events.py +87 -0
  134. parsek_cdp/cdp/media/functions.py +27 -0
  135. parsek_cdp/cdp/media/types.py +101 -0
  136. parsek_cdp/cdp/memory/__init__.py +15 -0
  137. parsek_cdp/cdp/memory/events.py +13 -0
  138. parsek_cdp/cdp/memory/functions.py +164 -0
  139. parsek_cdp/cdp/memory/types.py +71 -0
  140. parsek_cdp/cdp/mixins/__init__.py +21 -0
  141. parsek_cdp/cdp/mixins/datatype.py +123 -0
  142. parsek_cdp/cdp/mixins/event.py +78 -0
  143. parsek_cdp/cdp/mixins/namespace.py +31 -0
  144. parsek_cdp/cdp/network/__init__.py +15 -0
  145. parsek_cdp/cdp/network/events.py +726 -0
  146. parsek_cdp/cdp/network/functions.py +734 -0
  147. parsek_cdp/cdp/network/types.py +1247 -0
  148. parsek_cdp/cdp/overlay/__init__.py +15 -0
  149. parsek_cdp/cdp/overlay/events.py +54 -0
  150. parsek_cdp/cdp/overlay/functions.py +407 -0
  151. parsek_cdp/cdp/overlay/types.py +328 -0
  152. parsek_cdp/cdp/page/__init__.py +15 -0
  153. parsek_cdp/cdp/page/events.py +416 -0
  154. parsek_cdp/cdp/page/functions.py +1081 -0
  155. parsek_cdp/cdp/page/types.py +1088 -0
  156. parsek_cdp/cdp/performance/__init__.py +15 -0
  157. parsek_cdp/cdp/performance/events.py +24 -0
  158. parsek_cdp/cdp/performance/functions.py +63 -0
  159. parsek_cdp/cdp/performance/types.py +22 -0
  160. parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
  161. parsek_cdp/cdp/performancetimeline/events.py +22 -0
  162. parsek_cdp/cdp/performancetimeline/functions.py +30 -0
  163. parsek_cdp/cdp/performancetimeline/types.py +85 -0
  164. parsek_cdp/cdp/preload/__init__.py +15 -0
  165. parsek_cdp/cdp/preload/events.py +116 -0
  166. parsek_cdp/cdp/preload/functions.py +25 -0
  167. parsek_cdp/cdp/preload/types.py +267 -0
  168. parsek_cdp/cdp/profiler/__init__.py +15 -0
  169. parsek_cdp/cdp/profiler/events.py +64 -0
  170. parsek_cdp/cdp/profiler/functions.py +134 -0
  171. parsek_cdp/cdp/profiler/types.py +105 -0
  172. parsek_cdp/cdp/pwa/__init__.py +15 -0
  173. parsek_cdp/cdp/pwa/events.py +13 -0
  174. parsek_cdp/cdp/pwa/functions.py +196 -0
  175. parsek_cdp/cdp/pwa/types.py +45 -0
  176. parsek_cdp/cdp/runtime/__init__.py +15 -0
  177. parsek_cdp/cdp/runtime/events.py +123 -0
  178. parsek_cdp/cdp/runtime/functions.py +552 -0
  179. parsek_cdp/cdp/runtime/types.py +319 -0
  180. parsek_cdp/cdp/schema/__init__.py +15 -0
  181. parsek_cdp/cdp/schema/events.py +13 -0
  182. parsek_cdp/cdp/schema/functions.py +32 -0
  183. parsek_cdp/cdp/schema/types.py +22 -0
  184. parsek_cdp/cdp/security/__init__.py +15 -0
  185. parsek_cdp/cdp/security/events.py +64 -0
  186. parsek_cdp/cdp/security/functions.py +66 -0
  187. parsek_cdp/cdp/security/types.py +168 -0
  188. parsek_cdp/cdp/serviceworker/__init__.py +15 -0
  189. parsek_cdp/cdp/serviceworker/events.py +43 -0
  190. parsek_cdp/cdp/serviceworker/functions.py +115 -0
  191. parsek_cdp/cdp/serviceworker/types.py +95 -0
  192. parsek_cdp/cdp/storage/__init__.py +15 -0
  193. parsek_cdp/cdp/storage/events.py +288 -0
  194. parsek_cdp/cdp/storage/functions.py +571 -0
  195. parsek_cdp/cdp/storage/types.py +656 -0
  196. parsek_cdp/cdp/systeminfo/__init__.py +15 -0
  197. parsek_cdp/cdp/systeminfo/events.py +13 -0
  198. parsek_cdp/cdp/systeminfo/functions.py +75 -0
  199. parsek_cdp/cdp/systeminfo/types.py +132 -0
  200. parsek_cdp/cdp/target/__init__.py +15 -0
  201. parsek_cdp/cdp/target/events.py +109 -0
  202. parsek_cdp/cdp/target/functions.py +424 -0
  203. parsek_cdp/cdp/target/types.py +83 -0
  204. parsek_cdp/cdp/tethering/__init__.py +15 -0
  205. parsek_cdp/cdp/tethering/events.py +22 -0
  206. parsek_cdp/cdp/tethering/functions.py +35 -0
  207. parsek_cdp/cdp/tethering/types.py +10 -0
  208. parsek_cdp/cdp/tracing/__init__.py +15 -0
  209. parsek_cdp/cdp/tracing/events.py +61 -0
  210. parsek_cdp/cdp/tracing/functions.py +119 -0
  211. parsek_cdp/cdp/tracing/types.py +81 -0
  212. parsek_cdp/cdp/webaudio/__init__.py +15 -0
  213. parsek_cdp/cdp/webaudio/events.py +184 -0
  214. parsek_cdp/cdp/webaudio/functions.py +51 -0
  215. parsek_cdp/cdp/webaudio/types.py +155 -0
  216. parsek_cdp/cdp/webauthn/__init__.py +15 -0
  217. parsek_cdp/cdp/webauthn/events.py +69 -0
  218. parsek_cdp/cdp/webauthn/functions.py +214 -0
  219. parsek_cdp/cdp/webauthn/types.py +96 -0
  220. parsek_cdp/core/__init__.py +18 -0
  221. parsek_cdp/core/browser.py +240 -0
  222. parsek_cdp/core/browser_context.py +58 -0
  223. parsek_cdp/core/element.py +405 -0
  224. parsek_cdp/core/feature.py +376 -0
  225. parsek_cdp/core/frame.py +351 -0
  226. parsek_cdp/core/pagable.py +175 -0
  227. parsek_cdp/core/page.py +163 -0
  228. parsek_cdp/core/target.py +490 -0
  229. parsek_cdp/features/__init__.py +14 -0
  230. parsek_cdp/features/request_listener/__init__.py +256 -0
  231. parsek_cdp/features/request_listener/events.py +48 -0
  232. parsek_cdp/features/request_listener/types.py +235 -0
  233. parsek_cdp/generate.py +642 -0
  234. parsek_cdp/parsek/__init__.py +18 -0
  235. parsek_cdp/parsek/events.py +38 -0
  236. parsek_cdp/parsek/types.py +36 -0
  237. parsek_cdp/py.typed +0 -0
  238. parsek_cdp-0.1.0.dist-info/METADATA +277 -0
  239. parsek_cdp-0.1.0.dist-info/RECORD +242 -0
  240. parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
  241. parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
  242. parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,552 @@
1
+ """Commands for the Runtime domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
6
+
7
+ from ..mixins.datatype import DataType, FieldMeta, encode
8
+
9
+ if TYPE_CHECKING:
10
+ from .types import (
11
+ CallArgument,
12
+ ExceptionDetails,
13
+ ExecutionContextId,
14
+ InternalPropertyDescriptor,
15
+ PrivatePropertyDescriptor,
16
+ PropertyDescriptor,
17
+ RemoteObject,
18
+ RemoteObjectId,
19
+ ScriptId,
20
+ SerializationOptions,
21
+ TimeDelta,
22
+ )
23
+
24
+ @dataclass
25
+ class AwaitPromiseReturn(DataType):
26
+ """Return value of :meth:`Runtime.await_promise`."""
27
+ result: RemoteObject
28
+ exception_details: Optional[ExceptionDetails] = None
29
+ __FIELDS__: ClassVar[tuple] = (
30
+ FieldMeta('result', 'result', False, 'object', ref='Runtime.RemoteObject'),
31
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
32
+ )
33
+
34
+
35
+ @dataclass
36
+ class CallFunctionOnReturn(DataType):
37
+ """Return value of :meth:`Runtime.call_function_on`."""
38
+ result: RemoteObject
39
+ exception_details: Optional[ExceptionDetails] = None
40
+ __FIELDS__: ClassVar[tuple] = (
41
+ FieldMeta('result', 'result', False, 'object', ref='Runtime.RemoteObject'),
42
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
43
+ )
44
+
45
+
46
+ @dataclass
47
+ class CompileScriptReturn(DataType):
48
+ """Return value of :meth:`Runtime.compile_script`."""
49
+ script_id: Optional[ScriptId] = None
50
+ exception_details: Optional[ExceptionDetails] = None
51
+ __FIELDS__: ClassVar[tuple] = (
52
+ FieldMeta('script_id', 'scriptId', True, 'primitive'),
53
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
54
+ )
55
+
56
+
57
+ @dataclass
58
+ class EvaluateReturn(DataType):
59
+ """Return value of :meth:`Runtime.evaluate`."""
60
+ result: RemoteObject
61
+ exception_details: Optional[ExceptionDetails] = None
62
+ __FIELDS__: ClassVar[tuple] = (
63
+ FieldMeta('result', 'result', False, 'object', ref='Runtime.RemoteObject'),
64
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
65
+ )
66
+
67
+
68
+ @dataclass
69
+ class GetIsolateIdReturn(DataType):
70
+ """Return value of :meth:`Runtime.get_isolate_id`."""
71
+ id: str
72
+ __FIELDS__: ClassVar[tuple] = (
73
+ FieldMeta('id', 'id', False, 'primitive'),
74
+ )
75
+
76
+
77
+ @dataclass
78
+ class GetHeapUsageReturn(DataType):
79
+ """Return value of :meth:`Runtime.get_heap_usage`."""
80
+ used_size: float
81
+ total_size: float
82
+ embedder_heap_used_size: float
83
+ backing_storage_size: float
84
+ __FIELDS__: ClassVar[tuple] = (
85
+ FieldMeta('used_size', 'usedSize', False, 'primitive'),
86
+ FieldMeta('total_size', 'totalSize', False, 'primitive'),
87
+ FieldMeta('embedder_heap_used_size', 'embedderHeapUsedSize', False, 'primitive'),
88
+ FieldMeta('backing_storage_size', 'backingStorageSize', False, 'primitive'),
89
+ )
90
+
91
+
92
+ @dataclass
93
+ class GetPropertiesReturn(DataType):
94
+ """Return value of :meth:`Runtime.get_properties`."""
95
+ result: List[PropertyDescriptor]
96
+ internal_properties: Optional[List[InternalPropertyDescriptor]] = None
97
+ private_properties: Optional[List[PrivatePropertyDescriptor]] = None
98
+ exception_details: Optional[ExceptionDetails] = None
99
+ __FIELDS__: ClassVar[tuple] = (
100
+ FieldMeta('result', 'result', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Runtime.PropertyDescriptor')),
101
+ FieldMeta('internal_properties', 'internalProperties', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Runtime.InternalPropertyDescriptor')),
102
+ FieldMeta('private_properties', 'privateProperties', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Runtime.PrivatePropertyDescriptor')),
103
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
104
+ )
105
+
106
+
107
+ @dataclass
108
+ class GlobalLexicalScopeNamesReturn(DataType):
109
+ """Return value of :meth:`Runtime.global_lexical_scope_names`."""
110
+ names: List[str]
111
+ __FIELDS__: ClassVar[tuple] = (
112
+ FieldMeta('names', 'names', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
113
+ )
114
+
115
+
116
+ @dataclass
117
+ class QueryObjectsReturn(DataType):
118
+ """Return value of :meth:`Runtime.query_objects`."""
119
+ objects: RemoteObject
120
+ __FIELDS__: ClassVar[tuple] = (
121
+ FieldMeta('objects', 'objects', False, 'object', ref='Runtime.RemoteObject'),
122
+ )
123
+
124
+
125
+ @dataclass
126
+ class RunScriptReturn(DataType):
127
+ """Return value of :meth:`Runtime.run_script`."""
128
+ result: RemoteObject
129
+ exception_details: Optional[ExceptionDetails] = None
130
+ __FIELDS__: ClassVar[tuple] = (
131
+ FieldMeta('result', 'result', False, 'object', ref='Runtime.RemoteObject'),
132
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
133
+ )
134
+
135
+
136
+ @dataclass
137
+ class GetExceptionDetailsReturn(DataType):
138
+ """Return value of :meth:`Runtime.get_exception_details`."""
139
+ exception_details: Optional[ExceptionDetails] = None
140
+ __FIELDS__: ClassVar[tuple] = (
141
+ FieldMeta('exception_details', 'exceptionDetails', True, 'object', ref='Runtime.ExceptionDetails'),
142
+ )
143
+
144
+
145
+ class Runtime:
146
+ """Commands of the Runtime domain, bound to a target."""
147
+
148
+ def __init__(self, target: Any) -> None:
149
+ self._target = target
150
+
151
+
152
+ async def await_promise(self, *, promise_object_id: RemoteObjectId, return_by_value: Optional[bool] = None, generate_preview: Optional[bool] = None) -> AwaitPromiseReturn:
153
+ """
154
+ Add handler to promise with given promise object id.
155
+ :param promise_object_id: Identifier of the promise.
156
+ :param return_by_value: Whether the result is expected to be a JSON object that should be sent by value.
157
+ :param generate_preview: Whether preview should be generated for the result.
158
+ """
159
+ _params: Dict[str, Any] = {}
160
+ _params['promiseObjectId'] = encode(FieldMeta('', '', False, 'primitive'), promise_object_id)
161
+ if return_by_value is not None:
162
+ _params['returnByValue'] = encode(FieldMeta('', '', False, 'primitive'), return_by_value)
163
+ if generate_preview is not None:
164
+ _params['generatePreview'] = encode(FieldMeta('', '', False, 'primitive'), generate_preview)
165
+ _result = await self._target.send('Runtime.awaitPromise', _params)
166
+ return AwaitPromiseReturn.from_json(_result)
167
+
168
+ async def call_function_on(self, *, function_declaration: str, object_id: Optional[RemoteObjectId] = None, arguments: Optional[List[CallArgument]] = None, silent: Optional[bool] = None, return_by_value: Optional[bool] = None, generate_preview: Optional[bool] = None, user_gesture: Optional[bool] = None, await_promise: Optional[bool] = None, execution_context_id: Optional[ExecutionContextId] = None, object_group: Optional[str] = None, throw_on_side_effect: Optional[bool] = None, unique_context_id: Optional[str] = None, serialization_options: Optional[SerializationOptions] = None) -> CallFunctionOnReturn:
169
+ """
170
+ Calls function with given declaration on the given object. Object group of the result is
171
+ inherited from the target object.
172
+ :param function_declaration: Declaration of the function to call.
173
+ :param object_id: Identifier of the object to call function on. Either objectId or executionContextId should
174
+ be specified.
175
+ :param arguments: Call arguments. All call arguments must belong to the same JavaScript world as the target
176
+ object.
177
+ :param silent: In silent mode exceptions thrown during evaluation are not reported and do not pause
178
+ execution. Overrides `setPauseOnException` state.
179
+ :param return_by_value: Whether the result is expected to be a JSON object which should be sent by value.
180
+ Can be overriden by `serializationOptions`.
181
+ :param generate_preview: Whether preview should be generated for the result.
182
+ :param user_gesture: Whether execution should be treated as initiated by user in the UI.
183
+ :param await_promise: Whether execution should `await` for resulting value and return once awaited promise is
184
+ resolved.
185
+ :param execution_context_id: Specifies execution context which global object will be used to call function on. Either
186
+ executionContextId or objectId should be specified.
187
+ :param object_group: Symbolic group name that can be used to release multiple objects. If objectGroup is not
188
+ specified and objectId is, objectGroup will be inherited from object.
189
+ :param throw_on_side_effect: Whether to throw an exception if side effect cannot be ruled out during evaluation.
190
+ :param unique_context_id: An alternative way to specify the execution context to call function on.
191
+ Compared to contextId that may be reused across processes, this is guaranteed to be
192
+ system-unique, so it can be used to prevent accidental function call
193
+ in context different than intended (e.g. as a result of navigation across process
194
+ boundaries).
195
+ This is mutually exclusive with `executionContextId`.
196
+ :param serialization_options: Specifies the result serialization. If provided, overrides
197
+ `generatePreview` and `returnByValue`.
198
+ """
199
+ _params: Dict[str, Any] = {}
200
+ _params['functionDeclaration'] = encode(FieldMeta('', '', False, 'primitive'), function_declaration)
201
+ if object_id is not None:
202
+ _params['objectId'] = encode(FieldMeta('', '', False, 'primitive'), object_id)
203
+ if arguments is not None:
204
+ _params['arguments'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Runtime.CallArgument')), arguments)
205
+ if silent is not None:
206
+ _params['silent'] = encode(FieldMeta('', '', False, 'primitive'), silent)
207
+ if return_by_value is not None:
208
+ _params['returnByValue'] = encode(FieldMeta('', '', False, 'primitive'), return_by_value)
209
+ if generate_preview is not None:
210
+ _params['generatePreview'] = encode(FieldMeta('', '', False, 'primitive'), generate_preview)
211
+ if user_gesture is not None:
212
+ _params['userGesture'] = encode(FieldMeta('', '', False, 'primitive'), user_gesture)
213
+ if await_promise is not None:
214
+ _params['awaitPromise'] = encode(FieldMeta('', '', False, 'primitive'), await_promise)
215
+ if execution_context_id is not None:
216
+ _params['executionContextId'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_id)
217
+ if object_group is not None:
218
+ _params['objectGroup'] = encode(FieldMeta('', '', False, 'primitive'), object_group)
219
+ if throw_on_side_effect is not None:
220
+ _params['throwOnSideEffect'] = encode(FieldMeta('', '', False, 'primitive'), throw_on_side_effect)
221
+ if unique_context_id is not None:
222
+ _params['uniqueContextId'] = encode(FieldMeta('', '', False, 'primitive'), unique_context_id)
223
+ if serialization_options is not None:
224
+ _params['serializationOptions'] = encode(FieldMeta('', '', False, 'object', ref='Runtime.SerializationOptions'), serialization_options)
225
+ _result = await self._target.send('Runtime.callFunctionOn', _params)
226
+ return CallFunctionOnReturn.from_json(_result)
227
+
228
+ async def compile_script(self, *, expression: str, source_url: str, persist_script: bool, execution_context_id: Optional[ExecutionContextId] = None) -> CompileScriptReturn:
229
+ """
230
+ Compiles expression.
231
+ :param expression: Expression to compile.
232
+ :param source_url: Source url to be set for the script.
233
+ :param persist_script: Specifies whether the compiled script should be persisted.
234
+ :param execution_context_id: Specifies in which execution context to perform script run. If the parameter is omitted the
235
+ evaluation will be performed in the context of the inspected page.
236
+ """
237
+ _params: Dict[str, Any] = {}
238
+ _params['expression'] = encode(FieldMeta('', '', False, 'primitive'), expression)
239
+ _params['sourceURL'] = encode(FieldMeta('', '', False, 'primitive'), source_url)
240
+ _params['persistScript'] = encode(FieldMeta('', '', False, 'primitive'), persist_script)
241
+ if execution_context_id is not None:
242
+ _params['executionContextId'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_id)
243
+ _result = await self._target.send('Runtime.compileScript', _params)
244
+ return CompileScriptReturn.from_json(_result)
245
+
246
+ async def disable(self) -> None:
247
+ """Disables reporting of execution contexts creation."""
248
+ _params: Dict[str, Any] = {}
249
+ _result = await self._target.send('Runtime.disable', _params)
250
+ return None
251
+
252
+ async def discard_console_entries(self) -> None:
253
+ """Discards collected exceptions and console API calls."""
254
+ _params: Dict[str, Any] = {}
255
+ _result = await self._target.send('Runtime.discardConsoleEntries', _params)
256
+ return None
257
+
258
+ async def enable(self) -> None:
259
+ """
260
+ Enables reporting of execution contexts creation by means of `executionContextCreated` event.
261
+ When the reporting gets enabled the event will be sent immediately for each existing execution
262
+ context.
263
+ """
264
+ _params: Dict[str, Any] = {}
265
+ _result = await self._target.send('Runtime.enable', _params)
266
+ return None
267
+
268
+ async def evaluate(self, *, expression: str, object_group: Optional[str] = None, include_command_line_api: Optional[bool] = None, silent: Optional[bool] = None, context_id: Optional[ExecutionContextId] = None, return_by_value: Optional[bool] = None, generate_preview: Optional[bool] = None, user_gesture: Optional[bool] = None, await_promise: Optional[bool] = None, throw_on_side_effect: Optional[bool] = None, timeout: Optional[TimeDelta] = None, disable_breaks: Optional[bool] = None, repl_mode: Optional[bool] = None, allow_unsafe_eval_blocked_by_csp: Optional[bool] = None, unique_context_id: Optional[str] = None, serialization_options: Optional[SerializationOptions] = None) -> EvaluateReturn:
269
+ """
270
+ Evaluates expression on global object.
271
+ :param expression: Expression to evaluate.
272
+ :param object_group: Symbolic group name that can be used to release multiple objects.
273
+ :param include_command_line_api: Determines whether Command Line API should be available during the evaluation.
274
+ :param silent: In silent mode exceptions thrown during evaluation are not reported and do not pause
275
+ execution. Overrides `setPauseOnException` state.
276
+ :param context_id: Specifies in which execution context to perform evaluation. If the parameter is omitted the
277
+ evaluation will be performed in the context of the inspected page.
278
+ This is mutually exclusive with `uniqueContextId`, which offers an
279
+ alternative way to identify the execution context that is more reliable
280
+ in a multi-process environment.
281
+ :param return_by_value: Whether the result is expected to be a JSON object that should be sent by value.
282
+ :param generate_preview: Whether preview should be generated for the result.
283
+ :param user_gesture: Whether execution should be treated as initiated by user in the UI.
284
+ :param await_promise: Whether execution should `await` for resulting value and return once awaited promise is
285
+ resolved.
286
+ :param throw_on_side_effect: Whether to throw an exception if side effect cannot be ruled out during evaluation.
287
+ This implies `disableBreaks` below.
288
+ :param timeout: Terminate execution after timing out (number of milliseconds).
289
+ :param disable_breaks: Disable breakpoints during execution.
290
+ :param repl_mode: Setting this flag to true enables `let` re-declaration and top-level `await`.
291
+ Note that `let` variables can only be re-declared if they originate from
292
+ `replMode` themselves.
293
+ :param allow_unsafe_eval_blocked_by_csp: The Content Security Policy (CSP) for the target might block 'unsafe-eval'
294
+ which includes eval(), Function(), setTimeout() and setInterval()
295
+ when called with non-callable arguments. This flag bypasses CSP for this
296
+ evaluation and allows unsafe-eval. Defaults to true.
297
+ :param unique_context_id: An alternative way to specify the execution context to evaluate in.
298
+ Compared to contextId that may be reused across processes, this is guaranteed to be
299
+ system-unique, so it can be used to prevent accidental evaluation of the expression
300
+ in context different than intended (e.g. as a result of navigation across process
301
+ boundaries).
302
+ This is mutually exclusive with `contextId`.
303
+ :param serialization_options: Specifies the result serialization. If provided, overrides
304
+ `generatePreview` and `returnByValue`.
305
+ """
306
+ _params: Dict[str, Any] = {}
307
+ _params['expression'] = encode(FieldMeta('', '', False, 'primitive'), expression)
308
+ if object_group is not None:
309
+ _params['objectGroup'] = encode(FieldMeta('', '', False, 'primitive'), object_group)
310
+ if include_command_line_api is not None:
311
+ _params['includeCommandLineAPI'] = encode(FieldMeta('', '', False, 'primitive'), include_command_line_api)
312
+ if silent is not None:
313
+ _params['silent'] = encode(FieldMeta('', '', False, 'primitive'), silent)
314
+ if context_id is not None:
315
+ _params['contextId'] = encode(FieldMeta('', '', False, 'primitive'), context_id)
316
+ if return_by_value is not None:
317
+ _params['returnByValue'] = encode(FieldMeta('', '', False, 'primitive'), return_by_value)
318
+ if generate_preview is not None:
319
+ _params['generatePreview'] = encode(FieldMeta('', '', False, 'primitive'), generate_preview)
320
+ if user_gesture is not None:
321
+ _params['userGesture'] = encode(FieldMeta('', '', False, 'primitive'), user_gesture)
322
+ if await_promise is not None:
323
+ _params['awaitPromise'] = encode(FieldMeta('', '', False, 'primitive'), await_promise)
324
+ if throw_on_side_effect is not None:
325
+ _params['throwOnSideEffect'] = encode(FieldMeta('', '', False, 'primitive'), throw_on_side_effect)
326
+ if timeout is not None:
327
+ _params['timeout'] = encode(FieldMeta('', '', False, 'primitive'), timeout)
328
+ if disable_breaks is not None:
329
+ _params['disableBreaks'] = encode(FieldMeta('', '', False, 'primitive'), disable_breaks)
330
+ if repl_mode is not None:
331
+ _params['replMode'] = encode(FieldMeta('', '', False, 'primitive'), repl_mode)
332
+ if allow_unsafe_eval_blocked_by_csp is not None:
333
+ _params['allowUnsafeEvalBlockedByCSP'] = encode(FieldMeta('', '', False, 'primitive'), allow_unsafe_eval_blocked_by_csp)
334
+ if unique_context_id is not None:
335
+ _params['uniqueContextId'] = encode(FieldMeta('', '', False, 'primitive'), unique_context_id)
336
+ if serialization_options is not None:
337
+ _params['serializationOptions'] = encode(FieldMeta('', '', False, 'object', ref='Runtime.SerializationOptions'), serialization_options)
338
+ _result = await self._target.send('Runtime.evaluate', _params)
339
+ return EvaluateReturn.from_json(_result)
340
+
341
+ async def get_isolate_id(self) -> GetIsolateIdReturn:
342
+ """Returns the isolate id."""
343
+ _params: Dict[str, Any] = {}
344
+ _result = await self._target.send('Runtime.getIsolateId', _params)
345
+ return GetIsolateIdReturn.from_json(_result)
346
+
347
+ async def get_heap_usage(self) -> GetHeapUsageReturn:
348
+ """
349
+ Returns the JavaScript heap usage.
350
+ It is the total usage of the corresponding isolate not scoped to a particular Runtime.
351
+ """
352
+ _params: Dict[str, Any] = {}
353
+ _result = await self._target.send('Runtime.getHeapUsage', _params)
354
+ return GetHeapUsageReturn.from_json(_result)
355
+
356
+ async def get_properties(self, *, object_id: RemoteObjectId, own_properties: Optional[bool] = None, accessor_properties_only: Optional[bool] = None, generate_preview: Optional[bool] = None, non_indexed_properties_only: Optional[bool] = None) -> GetPropertiesReturn:
357
+ """
358
+ Returns properties of a given object. Object group of the result is inherited from the target
359
+ object.
360
+ :param object_id: Identifier of the object to return properties for.
361
+ :param own_properties: If true, returns properties belonging only to the element itself, not to its prototype
362
+ chain.
363
+ :param accessor_properties_only: If true, returns accessor properties (with getter/setter) only; internal properties are not
364
+ returned either.
365
+ :param generate_preview: Whether preview should be generated for the results.
366
+ :param non_indexed_properties_only: If true, returns non-indexed properties only.
367
+ """
368
+ _params: Dict[str, Any] = {}
369
+ _params['objectId'] = encode(FieldMeta('', '', False, 'primitive'), object_id)
370
+ if own_properties is not None:
371
+ _params['ownProperties'] = encode(FieldMeta('', '', False, 'primitive'), own_properties)
372
+ if accessor_properties_only is not None:
373
+ _params['accessorPropertiesOnly'] = encode(FieldMeta('', '', False, 'primitive'), accessor_properties_only)
374
+ if generate_preview is not None:
375
+ _params['generatePreview'] = encode(FieldMeta('', '', False, 'primitive'), generate_preview)
376
+ if non_indexed_properties_only is not None:
377
+ _params['nonIndexedPropertiesOnly'] = encode(FieldMeta('', '', False, 'primitive'), non_indexed_properties_only)
378
+ _result = await self._target.send('Runtime.getProperties', _params)
379
+ return GetPropertiesReturn.from_json(_result)
380
+
381
+ async def global_lexical_scope_names(self, *, execution_context_id: Optional[ExecutionContextId] = None) -> GlobalLexicalScopeNamesReturn:
382
+ """
383
+ Returns all let, const and class variables from global scope.
384
+ :param execution_context_id: Specifies in which execution context to lookup global scope variables.
385
+ """
386
+ _params: Dict[str, Any] = {}
387
+ if execution_context_id is not None:
388
+ _params['executionContextId'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_id)
389
+ _result = await self._target.send('Runtime.globalLexicalScopeNames', _params)
390
+ return GlobalLexicalScopeNamesReturn.from_json(_result)
391
+
392
+ async def query_objects(self, *, prototype_object_id: RemoteObjectId, object_group: Optional[str] = None) -> QueryObjectsReturn:
393
+ """
394
+ :param prototype_object_id: Identifier of the prototype to return objects for.
395
+ :param object_group: Symbolic group name that can be used to release the results.
396
+ """
397
+ _params: Dict[str, Any] = {}
398
+ _params['prototypeObjectId'] = encode(FieldMeta('', '', False, 'primitive'), prototype_object_id)
399
+ if object_group is not None:
400
+ _params['objectGroup'] = encode(FieldMeta('', '', False, 'primitive'), object_group)
401
+ _result = await self._target.send('Runtime.queryObjects', _params)
402
+ return QueryObjectsReturn.from_json(_result)
403
+
404
+ async def release_object(self, *, object_id: RemoteObjectId) -> None:
405
+ """
406
+ Releases remote object with given id.
407
+ :param object_id: Identifier of the object to release.
408
+ """
409
+ _params: Dict[str, Any] = {}
410
+ _params['objectId'] = encode(FieldMeta('', '', False, 'primitive'), object_id)
411
+ _result = await self._target.send('Runtime.releaseObject', _params)
412
+ return None
413
+
414
+ async def release_object_group(self, *, object_group: str) -> None:
415
+ """
416
+ Releases all remote objects that belong to a given group.
417
+ :param object_group: Symbolic object group name.
418
+ """
419
+ _params: Dict[str, Any] = {}
420
+ _params['objectGroup'] = encode(FieldMeta('', '', False, 'primitive'), object_group)
421
+ _result = await self._target.send('Runtime.releaseObjectGroup', _params)
422
+ return None
423
+
424
+ async def run_if_waiting_for_debugger(self) -> None:
425
+ """Tells inspected instance to run if it was waiting for debugger to attach."""
426
+ _params: Dict[str, Any] = {}
427
+ _result = await self._target.send('Runtime.runIfWaitingForDebugger', _params)
428
+ return None
429
+
430
+ async def run_script(self, *, script_id: ScriptId, execution_context_id: Optional[ExecutionContextId] = None, object_group: Optional[str] = None, silent: Optional[bool] = None, include_command_line_api: Optional[bool] = None, return_by_value: Optional[bool] = None, generate_preview: Optional[bool] = None, await_promise: Optional[bool] = None) -> RunScriptReturn:
431
+ """
432
+ Runs script with given id in a given context.
433
+ :param script_id: Id of the script to run.
434
+ :param execution_context_id: Specifies in which execution context to perform script run. If the parameter is omitted the
435
+ evaluation will be performed in the context of the inspected page.
436
+ :param object_group: Symbolic group name that can be used to release multiple objects.
437
+ :param silent: In silent mode exceptions thrown during evaluation are not reported and do not pause
438
+ execution. Overrides `setPauseOnException` state.
439
+ :param include_command_line_api: Determines whether Command Line API should be available during the evaluation.
440
+ :param return_by_value: Whether the result is expected to be a JSON object which should be sent by value.
441
+ :param generate_preview: Whether preview should be generated for the result.
442
+ :param await_promise: Whether execution should `await` for resulting value and return once awaited promise is
443
+ resolved.
444
+ """
445
+ _params: Dict[str, Any] = {}
446
+ _params['scriptId'] = encode(FieldMeta('', '', False, 'primitive'), script_id)
447
+ if execution_context_id is not None:
448
+ _params['executionContextId'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_id)
449
+ if object_group is not None:
450
+ _params['objectGroup'] = encode(FieldMeta('', '', False, 'primitive'), object_group)
451
+ if silent is not None:
452
+ _params['silent'] = encode(FieldMeta('', '', False, 'primitive'), silent)
453
+ if include_command_line_api is not None:
454
+ _params['includeCommandLineAPI'] = encode(FieldMeta('', '', False, 'primitive'), include_command_line_api)
455
+ if return_by_value is not None:
456
+ _params['returnByValue'] = encode(FieldMeta('', '', False, 'primitive'), return_by_value)
457
+ if generate_preview is not None:
458
+ _params['generatePreview'] = encode(FieldMeta('', '', False, 'primitive'), generate_preview)
459
+ if await_promise is not None:
460
+ _params['awaitPromise'] = encode(FieldMeta('', '', False, 'primitive'), await_promise)
461
+ _result = await self._target.send('Runtime.runScript', _params)
462
+ return RunScriptReturn.from_json(_result)
463
+
464
+ async def set_async_call_stack_depth(self, *, max_depth: int) -> None:
465
+ """
466
+ Enables or disables async call stacks tracking.
467
+ :param max_depth: Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
468
+ call stacks (default).
469
+ """
470
+ _params: Dict[str, Any] = {}
471
+ _params['maxDepth'] = encode(FieldMeta('', '', False, 'primitive'), max_depth)
472
+ _result = await self._target.send('Runtime.setAsyncCallStackDepth', _params)
473
+ return None
474
+
475
+ async def set_custom_object_formatter_enabled(self, *, enabled: bool) -> None:
476
+ """:param enabled:"""
477
+ _params: Dict[str, Any] = {}
478
+ _params['enabled'] = encode(FieldMeta('', '', False, 'primitive'), enabled)
479
+ _result = await self._target.send('Runtime.setCustomObjectFormatterEnabled', _params)
480
+ return None
481
+
482
+ async def set_max_call_stack_size_to_capture(self, *, size: int) -> None:
483
+ """:param size:"""
484
+ _params: Dict[str, Any] = {}
485
+ _params['size'] = encode(FieldMeta('', '', False, 'primitive'), size)
486
+ _result = await self._target.send('Runtime.setMaxCallStackSizeToCapture', _params)
487
+ return None
488
+
489
+ async def terminate_execution(self) -> None:
490
+ """
491
+ Terminate current or next JavaScript execution.
492
+ Will cancel the termination when the outer-most script execution ends.
493
+ """
494
+ _params: Dict[str, Any] = {}
495
+ _result = await self._target.send('Runtime.terminateExecution', _params)
496
+ return None
497
+
498
+ async def add_binding(self, *, name: str, execution_context_id: Optional[ExecutionContextId] = None, execution_context_name: Optional[str] = None) -> None:
499
+ """
500
+ If executionContextId is empty, adds binding with the given name on the
501
+ global objects of all inspected contexts, including those created later,
502
+ bindings survive reloads.
503
+ Binding function takes exactly one argument, this argument should be string,
504
+ in case of any other input, function throws an exception.
505
+ Each binding function call produces Runtime.bindingCalled notification.
506
+ :param name:
507
+ :param execution_context_id: If specified, the binding would only be exposed to the specified
508
+ execution context. If omitted and `executionContextName` is not set,
509
+ the binding is exposed to all execution contexts of the target.
510
+ This parameter is mutually exclusive with `executionContextName`.
511
+ Deprecated in favor of `executionContextName` due to an unclear use case
512
+ and bugs in implementation (crbug.com/1169639). `executionContextId` will be
513
+ removed in the future.
514
+ :param execution_context_name: If specified, the binding is exposed to the executionContext with
515
+ matching name, even for contexts created after the binding is added.
516
+ See also `ExecutionContext.name` and `worldName` parameter to
517
+ `Page.addScriptToEvaluateOnNewDocument`.
518
+ This parameter is mutually exclusive with `executionContextId`.
519
+ """
520
+ _params: Dict[str, Any] = {}
521
+ _params['name'] = encode(FieldMeta('', '', False, 'primitive'), name)
522
+ if execution_context_id is not None:
523
+ _params['executionContextId'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_id)
524
+ if execution_context_name is not None:
525
+ _params['executionContextName'] = encode(FieldMeta('', '', False, 'primitive'), execution_context_name)
526
+ _result = await self._target.send('Runtime.addBinding', _params)
527
+ return None
528
+
529
+ async def remove_binding(self, *, name: str) -> None:
530
+ """
531
+ This method does not remove binding function from global object but
532
+ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
533
+ :param name:
534
+ """
535
+ _params: Dict[str, Any] = {}
536
+ _params['name'] = encode(FieldMeta('', '', False, 'primitive'), name)
537
+ _result = await self._target.send('Runtime.removeBinding', _params)
538
+ return None
539
+
540
+ async def get_exception_details(self, *, error_object_id: RemoteObjectId) -> GetExceptionDetailsReturn:
541
+ """
542
+ This method tries to lookup and populate exception details for a
543
+ JavaScript Error object.
544
+ Note that the stackTrace portion of the resulting exceptionDetails will
545
+ only be populated if the Runtime domain was enabled at the time when the
546
+ Error was thrown.
547
+ :param error_object_id: The error object for which to resolve the exception details.
548
+ """
549
+ _params: Dict[str, Any] = {}
550
+ _params['errorObjectId'] = encode(FieldMeta('', '', False, 'primitive'), error_object_id)
551
+ _result = await self._target.send('Runtime.getExceptionDetails', _params)
552
+ return GetExceptionDetailsReturn.from_json(_result)