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.
- cdp/__init__.py +4 -0
- cdp/domains.py +582 -0
- cdp/generator/__init__.py +3 -0
- cdp/generator/client_generator.py +246 -0
- cdp/generator/constant.py +4 -0
- cdp/generator/domain_generator.py +149 -0
- cdp/generator/event_generator.py +202 -0
- cdp/generator/method_generator.py +215 -0
- cdp/generator/service.py +153 -0
- cdp/generator/type_generator.py +231 -0
- cdp/protocol/__init__.py +0 -0
- cdp/protocol/accessibility/__init__.py +0 -0
- cdp/protocol/accessibility/events/__init__.py +0 -0
- cdp/protocol/accessibility/events/service.py +37 -0
- cdp/protocol/accessibility/events/types.py +14 -0
- cdp/protocol/accessibility/methods/__init__.py +0 -0
- cdp/protocol/accessibility/methods/service.py +109 -0
- cdp/protocol/accessibility/methods/types.py +70 -0
- cdp/protocol/accessibility/service.py +21 -0
- cdp/protocol/accessibility/types.py +89 -0
- cdp/protocol/animation/__init__.py +0 -0
- cdp/protocol/animation/events/__init__.py +0 -0
- cdp/protocol/animation/events/service.py +53 -0
- cdp/protocol/animation/events/types.py +20 -0
- cdp/protocol/animation/methods/__init__.py +0 -0
- cdp/protocol/animation/methods/service.py +131 -0
- cdp/protocol/animation/methods/types.py +52 -0
- cdp/protocol/animation/service.py +21 -0
- cdp/protocol/animation/types.py +79 -0
- cdp/protocol/audits/__init__.py +0 -0
- cdp/protocol/audits/events/__init__.py +0 -0
- cdp/protocol/audits/events/service.py +29 -0
- cdp/protocol/audits/events/types.py +10 -0
- cdp/protocol/audits/methods/__init__.py +0 -0
- cdp/protocol/audits/methods/service.py +76 -0
- cdp/protocol/audits/methods/types.py +36 -0
- cdp/protocol/audits/service.py +21 -0
- cdp/protocol/audits/types.py +293 -0
- cdp/protocol/autofill/__init__.py +0 -0
- cdp/protocol/autofill/events/__init__.py +0 -0
- cdp/protocol/autofill/events/service.py +29 -0
- cdp/protocol/autofill/events/types.py +14 -0
- cdp/protocol/autofill/methods/__init__.py +0 -0
- cdp/protocol/autofill/methods/service.py +65 -0
- cdp/protocol/autofill/methods/types.py +22 -0
- cdp/protocol/autofill/service.py +21 -0
- cdp/protocol/autofill/types.py +54 -0
- cdp/protocol/background_service/__init__.py +0 -0
- cdp/protocol/background_service/events/__init__.py +0 -0
- cdp/protocol/background_service/events/service.py +37 -0
- cdp/protocol/background_service/events/types.py +14 -0
- cdp/protocol/background_service/methods/__init__.py +0 -0
- cdp/protocol/background_service/methods/service.py +65 -0
- cdp/protocol/background_service/methods/types.py +17 -0
- cdp/protocol/background_service/service.py +21 -0
- cdp/protocol/background_service/types.py +32 -0
- cdp/protocol/bluetooth_emulation/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/events/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/events/service.py +45 -0
- cdp/protocol/bluetooth_emulation/events/types.py +23 -0
- cdp/protocol/bluetooth_emulation/methods/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/methods/service.py +186 -0
- cdp/protocol/bluetooth_emulation/methods/types.py +81 -0
- cdp/protocol/bluetooth_emulation/service.py +21 -0
- cdp/protocol/bluetooth_emulation/types.py +45 -0
- cdp/protocol/browser/__init__.py +0 -0
- cdp/protocol/browser/events/__init__.py +0 -0
- cdp/protocol/browser/events/service.py +37 -0
- cdp/protocol/browser/events/types.py +28 -0
- cdp/protocol/browser/methods/__init__.py +0 -0
- cdp/protocol/browser/methods/service.py +230 -0
- cdp/protocol/browser/methods/types.py +126 -0
- cdp/protocol/browser/service.py +21 -0
- cdp/protocol/browser/types.py +57 -0
- cdp/protocol/cache_storage/__init__.py +0 -0
- cdp/protocol/cache_storage/events/__init__.py +0 -0
- cdp/protocol/cache_storage/events/service.py +20 -0
- cdp/protocol/cache_storage/events/types.py +3 -0
- cdp/protocol/cache_storage/methods/__init__.py +0 -0
- cdp/protocol/cache_storage/methods/service.py +76 -0
- cdp/protocol/cache_storage/methods/types.py +57 -0
- cdp/protocol/cache_storage/service.py +21 -0
- cdp/protocol/cache_storage/types.py +49 -0
- cdp/protocol/cast/__init__.py +0 -0
- cdp/protocol/cast/events/__init__.py +0 -0
- cdp/protocol/cast/events/service.py +37 -0
- cdp/protocol/cast/events/types.py +12 -0
- cdp/protocol/cast/methods/__init__.py +0 -0
- cdp/protocol/cast/methods/service.py +87 -0
- cdp/protocol/cast/methods/types.py +15 -0
- cdp/protocol/cast/service.py +21 -0
- cdp/protocol/cast/types.py +9 -0
- cdp/protocol/css/__init__.py +0 -0
- cdp/protocol/css/events/__init__.py +0 -0
- cdp/protocol/css/events/service.py +69 -0
- cdp/protocol/css/events/types.py +27 -0
- cdp/protocol/css/methods/__init__.py +0 -0
- cdp/protocol/css/methods/service.py +428 -0
- cdp/protocol/css/methods/types.py +278 -0
- cdp/protocol/css/service.py +21 -0
- cdp/protocol/css/types.py +451 -0
- cdp/protocol/debugger/__init__.py +0 -0
- cdp/protocol/debugger/events/__init__.py +0 -0
- cdp/protocol/debugger/events/service.py +53 -0
- cdp/protocol/debugger/events/types.py +112 -0
- cdp/protocol/debugger/methods/__init__.py +0 -0
- cdp/protocol/debugger/methods/service.py +362 -0
- cdp/protocol/debugger/methods/types.py +250 -0
- cdp/protocol/debugger/service.py +21 -0
- cdp/protocol/debugger/types.py +91 -0
- cdp/protocol/device_access/__init__.py +0 -0
- cdp/protocol/device_access/events/__init__.py +0 -0
- cdp/protocol/device_access/events/service.py +29 -0
- cdp/protocol/device_access/events/types.py +12 -0
- cdp/protocol/device_access/methods/__init__.py +0 -0
- cdp/protocol/device_access/methods/service.py +65 -0
- cdp/protocol/device_access/methods/types.py +16 -0
- cdp/protocol/device_access/service.py +21 -0
- cdp/protocol/device_access/types.py +13 -0
- cdp/protocol/device_orientation/__init__.py +0 -0
- cdp/protocol/device_orientation/events/__init__.py +0 -0
- cdp/protocol/device_orientation/events/service.py +20 -0
- cdp/protocol/device_orientation/events/types.py +3 -0
- cdp/protocol/device_orientation/methods/__init__.py +0 -0
- cdp/protocol/device_orientation/methods/service.py +43 -0
- cdp/protocol/device_orientation/methods/types.py +12 -0
- cdp/protocol/device_orientation/service.py +21 -0
- cdp/protocol/device_orientation/types.py +3 -0
- cdp/protocol/dom/__init__.py +0 -0
- cdp/protocol/dom/events/__init__.py +0 -0
- cdp/protocol/dom/events/service.py +165 -0
- cdp/protocol/dom/events/types.py +97 -0
- cdp/protocol/dom/methods/__init__.py +0 -0
- cdp/protocol/dom/methods/service.py +593 -0
- cdp/protocol/dom/methods/types.py +384 -0
- cdp/protocol/dom/service.py +21 -0
- cdp/protocol/dom/types.py +151 -0
- cdp/protocol/dom_debugger/__init__.py +0 -0
- cdp/protocol/dom_debugger/events/__init__.py +0 -0
- cdp/protocol/dom_debugger/events/service.py +20 -0
- cdp/protocol/dom_debugger/events/types.py +3 -0
- cdp/protocol/dom_debugger/methods/__init__.py +0 -0
- cdp/protocol/dom_debugger/methods/service.py +109 -0
- cdp/protocol/dom_debugger/methods/types.py +51 -0
- cdp/protocol/dom_debugger/service.py +21 -0
- cdp/protocol/dom_debugger/types.py +36 -0
- cdp/protocol/dom_snapshot/__init__.py +0 -0
- cdp/protocol/dom_snapshot/events/__init__.py +0 -0
- cdp/protocol/dom_snapshot/events/service.py +20 -0
- cdp/protocol/dom_snapshot/events/types.py +3 -0
- cdp/protocol/dom_snapshot/methods/__init__.py +0 -0
- cdp/protocol/dom_snapshot/methods/service.py +54 -0
- cdp/protocol/dom_snapshot/methods/types.py +28 -0
- cdp/protocol/dom_snapshot/service.py +21 -0
- cdp/protocol/dom_snapshot/types.py +220 -0
- cdp/protocol/dom_storage/__init__.py +0 -0
- cdp/protocol/dom_storage/events/__init__.py +0 -0
- cdp/protocol/dom_storage/events/service.py +53 -0
- cdp/protocol/dom_storage/events/types.py +22 -0
- cdp/protocol/dom_storage/methods/__init__.py +0 -0
- cdp/protocol/dom_storage/methods/service.py +87 -0
- cdp/protocol/dom_storage/methods/types.py +27 -0
- cdp/protocol/dom_storage/service.py +21 -0
- cdp/protocol/dom_storage/types.py +15 -0
- cdp/protocol/emulation/__init__.py +0 -0
- cdp/protocol/emulation/events/__init__.py +0 -0
- cdp/protocol/emulation/events/service.py +29 -0
- cdp/protocol/emulation/events/types.py +6 -0
- cdp/protocol/emulation/methods/__init__.py +0 -0
- cdp/protocol/emulation/methods/service.py +494 -0
- cdp/protocol/emulation/methods/types.py +261 -0
- cdp/protocol/emulation/service.py +21 -0
- cdp/protocol/emulation/types.py +132 -0
- cdp/protocol/event_breakpoints/__init__.py +0 -0
- cdp/protocol/event_breakpoints/events/__init__.py +0 -0
- cdp/protocol/event_breakpoints/events/service.py +20 -0
- cdp/protocol/event_breakpoints/events/types.py +3 -0
- cdp/protocol/event_breakpoints/methods/__init__.py +0 -0
- cdp/protocol/event_breakpoints/methods/service.py +54 -0
- cdp/protocol/event_breakpoints/methods/types.py +10 -0
- cdp/protocol/event_breakpoints/service.py +21 -0
- cdp/protocol/event_breakpoints/types.py +3 -0
- cdp/protocol/extensions/__init__.py +0 -0
- cdp/protocol/extensions/events/__init__.py +0 -0
- cdp/protocol/extensions/events/service.py +20 -0
- cdp/protocol/extensions/events/types.py +3 -0
- cdp/protocol/extensions/methods/__init__.py +0 -0
- cdp/protocol/extensions/methods/service.py +87 -0
- cdp/protocol/extensions/methods/types.py +46 -0
- cdp/protocol/extensions/service.py +21 -0
- cdp/protocol/extensions/types.py +6 -0
- cdp/protocol/fed_cm/__init__.py +0 -0
- cdp/protocol/fed_cm/events/__init__.py +0 -0
- cdp/protocol/fed_cm/events/service.py +37 -0
- cdp/protocol/fed_cm/events/types.py +18 -0
- cdp/protocol/fed_cm/methods/__init__.py +0 -0
- cdp/protocol/fed_cm/methods/service.py +98 -0
- cdp/protocol/fed_cm/methods/types.py +26 -0
- cdp/protocol/fed_cm/service.py +21 -0
- cdp/protocol/fed_cm/types.py +25 -0
- cdp/protocol/fetch/__init__.py +0 -0
- cdp/protocol/fetch/events/__init__.py +0 -0
- cdp/protocol/fetch/events/service.py +37 -0
- cdp/protocol/fetch/events/types.py +47 -0
- cdp/protocol/fetch/methods/__init__.py +0 -0
- cdp/protocol/fetch/methods/service.py +120 -0
- cdp/protocol/fetch/methods/types.py +85 -0
- cdp/protocol/fetch/service.py +21 -0
- cdp/protocol/fetch/types.py +41 -0
- cdp/protocol/file_system/__init__.py +0 -0
- cdp/protocol/file_system/events/__init__.py +0 -0
- cdp/protocol/file_system/events/service.py +20 -0
- cdp/protocol/file_system/events/types.py +3 -0
- cdp/protocol/file_system/methods/__init__.py +0 -0
- cdp/protocol/file_system/methods/service.py +32 -0
- cdp/protocol/file_system/methods/types.py +14 -0
- cdp/protocol/file_system/service.py +21 -0
- cdp/protocol/file_system/types.py +28 -0
- cdp/protocol/headless_experimental/__init__.py +0 -0
- cdp/protocol/headless_experimental/events/__init__.py +0 -0
- cdp/protocol/headless_experimental/events/service.py +20 -0
- cdp/protocol/headless_experimental/events/types.py +3 -0
- cdp/protocol/headless_experimental/methods/__init__.py +0 -0
- cdp/protocol/headless_experimental/methods/service.py +32 -0
- cdp/protocol/headless_experimental/methods/types.py +22 -0
- cdp/protocol/headless_experimental/service.py +21 -0
- cdp/protocol/headless_experimental/types.py +12 -0
- cdp/protocol/heap_profiler/__init__.py +0 -0
- cdp/protocol/heap_profiler/events/__init__.py +0 -0
- cdp/protocol/heap_profiler/events/service.py +61 -0
- cdp/protocol/heap_profiler/events/types.py +18 -0
- cdp/protocol/heap_profiler/methods/__init__.py +0 -0
- cdp/protocol/heap_profiler/methods/service.py +153 -0
- cdp/protocol/heap_profiler/methods/types.py +73 -0
- cdp/protocol/heap_profiler/service.py +21 -0
- cdp/protocol/heap_profiler/types.py +32 -0
- cdp/protocol/indexed_db/__init__.py +0 -0
- cdp/protocol/indexed_db/events/__init__.py +0 -0
- cdp/protocol/indexed_db/events/service.py +20 -0
- cdp/protocol/indexed_db/events/types.py +3 -0
- cdp/protocol/indexed_db/methods/__init__.py +0 -0
- cdp/protocol/indexed_db/methods/service.py +120 -0
- cdp/protocol/indexed_db/methods/types.py +111 -0
- cdp/protocol/indexed_db/service.py +21 -0
- cdp/protocol/indexed_db/types.py +74 -0
- cdp/protocol/input/__init__.py +0 -0
- cdp/protocol/input/events/__init__.py +0 -0
- cdp/protocol/input/events/service.py +29 -0
- cdp/protocol/input/events/types.py +10 -0
- cdp/protocol/input/methods/__init__.py +0 -0
- cdp/protocol/input/methods/service.py +164 -0
- cdp/protocol/input/methods/types.py +181 -0
- cdp/protocol/input/service.py +21 -0
- cdp/protocol/input/types.py +46 -0
- cdp/protocol/inspector/__init__.py +0 -0
- cdp/protocol/inspector/events/__init__.py +0 -0
- cdp/protocol/inspector/events/service.py +53 -0
- cdp/protocol/inspector/events/types.py +13 -0
- cdp/protocol/inspector/methods/__init__.py +0 -0
- cdp/protocol/inspector/methods/service.py +43 -0
- cdp/protocol/inspector/methods/types.py +3 -0
- cdp/protocol/inspector/service.py +21 -0
- cdp/protocol/inspector/types.py +3 -0
- cdp/protocol/io/__init__.py +0 -0
- cdp/protocol/io/events/__init__.py +0 -0
- cdp/protocol/io/events/service.py +20 -0
- cdp/protocol/io/events/types.py +3 -0
- cdp/protocol/io/methods/__init__.py +0 -0
- cdp/protocol/io/methods/service.py +54 -0
- cdp/protocol/io/methods/types.py +33 -0
- cdp/protocol/io/service.py +21 -0
- cdp/protocol/io/types.py +6 -0
- cdp/protocol/layer_tree/__init__.py +0 -0
- cdp/protocol/layer_tree/events/__init__.py +0 -0
- cdp/protocol/layer_tree/events/service.py +37 -0
- cdp/protocol/layer_tree/events/types.py +18 -0
- cdp/protocol/layer_tree/methods/__init__.py +0 -0
- cdp/protocol/layer_tree/methods/service.py +120 -0
- cdp/protocol/layer_tree/methods/types.py +70 -0
- cdp/protocol/layer_tree/service.py +21 -0
- cdp/protocol/layer_tree/types.py +73 -0
- cdp/protocol/log/__init__.py +0 -0
- cdp/protocol/log/events/__init__.py +0 -0
- cdp/protocol/log/events/service.py +29 -0
- cdp/protocol/log/events/types.py +11 -0
- cdp/protocol/log/methods/__init__.py +0 -0
- cdp/protocol/log/methods/service.py +76 -0
- cdp/protocol/log/methods/types.py +14 -0
- cdp/protocol/log/service.py +21 -0
- cdp/protocol/log/types.py +40 -0
- cdp/protocol/media/__init__.py +0 -0
- cdp/protocol/media/events/__init__.py +0 -0
- cdp/protocol/media/events/service.py +61 -0
- cdp/protocol/media/events/types.py +27 -0
- cdp/protocol/media/methods/__init__.py +0 -0
- cdp/protocol/media/methods/service.py +43 -0
- cdp/protocol/media/methods/types.py +3 -0
- cdp/protocol/media/service.py +21 -0
- cdp/protocol/media/types.py +42 -0
- cdp/protocol/memory/__init__.py +0 -0
- cdp/protocol/memory/events/__init__.py +0 -0
- cdp/protocol/memory/events/service.py +20 -0
- cdp/protocol/memory/events/types.py +3 -0
- cdp/protocol/memory/methods/__init__.py +0 -0
- cdp/protocol/memory/methods/service.py +142 -0
- cdp/protocol/memory/methods/types.py +48 -0
- cdp/protocol/memory/service.py +21 -0
- cdp/protocol/memory/types.py +34 -0
- cdp/protocol/network/__init__.py +0 -0
- cdp/protocol/network/events/__init__.py +0 -0
- cdp/protocol/network/events/service.py +365 -0
- cdp/protocol/network/events/types.py +360 -0
- cdp/protocol/network/methods/__init__.py +0 -0
- cdp/protocol/network/methods/service.py +384 -0
- cdp/protocol/network/methods/types.py +252 -0
- cdp/protocol/network/service.py +21 -0
- cdp/protocol/network/types.py +691 -0
- cdp/protocol/overlay/__init__.py +0 -0
- cdp/protocol/overlay/events/__init__.py +0 -0
- cdp/protocol/overlay/events/service.py +53 -0
- cdp/protocol/overlay/events/types.py +20 -0
- cdp/protocol/overlay/methods/__init__.py +0 -0
- cdp/protocol/overlay/methods/service.py +307 -0
- cdp/protocol/overlay/methods/types.py +144 -0
- cdp/protocol/overlay/service.py +21 -0
- cdp/protocol/overlay/types.py +198 -0
- cdp/protocol/page/__init__.py +0 -0
- cdp/protocol/page/events/__init__.py +0 -0
- cdp/protocol/page/events/service.py +213 -0
- cdp/protocol/page/events/types.py +147 -0
- cdp/protocol/page/methods/__init__.py +0 -0
- cdp/protocol/page/methods/service.py +560 -0
- cdp/protocol/page/methods/types.py +346 -0
- cdp/protocol/page/service.py +21 -0
- cdp/protocol/page/types.py +379 -0
- cdp/protocol/performance/__init__.py +0 -0
- cdp/protocol/performance/events/__init__.py +0 -0
- cdp/protocol/performance/events/service.py +29 -0
- cdp/protocol/performance/events/types.py +13 -0
- cdp/protocol/performance/methods/__init__.py +0 -0
- cdp/protocol/performance/methods/service.py +54 -0
- cdp/protocol/performance/methods/types.py +18 -0
- cdp/protocol/performance/service.py +21 -0
- cdp/protocol/performance/types.py +10 -0
- cdp/protocol/performance_timeline/__init__.py +0 -0
- cdp/protocol/performance_timeline/events/__init__.py +0 -0
- cdp/protocol/performance_timeline/events/service.py +29 -0
- cdp/protocol/performance_timeline/events/types.py +10 -0
- cdp/protocol/performance_timeline/methods/__init__.py +0 -0
- cdp/protocol/performance_timeline/methods/service.py +32 -0
- cdp/protocol/performance_timeline/methods/types.py +7 -0
- cdp/protocol/performance_timeline/service.py +21 -0
- cdp/protocol/performance_timeline/types.py +46 -0
- cdp/protocol/preload/__init__.py +0 -0
- cdp/protocol/preload/events/__init__.py +0 -0
- cdp/protocol/preload/events/service.py +69 -0
- cdp/protocol/preload/events/types.py +49 -0
- cdp/protocol/preload/methods/__init__.py +0 -0
- cdp/protocol/preload/methods/service.py +43 -0
- cdp/protocol/preload/methods/types.py +3 -0
- cdp/protocol/preload/service.py +21 -0
- cdp/protocol/preload/types.py +56 -0
- cdp/protocol/profiler/__init__.py +0 -0
- cdp/protocol/profiler/events/__init__.py +0 -0
- cdp/protocol/profiler/events/service.py +45 -0
- cdp/protocol/profiler/events/types.py +30 -0
- cdp/protocol/profiler/methods/__init__.py +0 -0
- cdp/protocol/profiler/methods/service.py +120 -0
- cdp/protocol/profiler/methods/types.py +45 -0
- cdp/protocol/profiler/service.py +21 -0
- cdp/protocol/profiler/types.py +65 -0
- cdp/protocol/pwa/__init__.py +0 -0
- cdp/protocol/pwa/events/__init__.py +0 -0
- cdp/protocol/pwa/events/service.py +20 -0
- cdp/protocol/pwa/events/types.py +3 -0
- cdp/protocol/pwa/methods/__init__.py +0 -0
- cdp/protocol/pwa/methods/service.py +98 -0
- cdp/protocol/pwa/methods/types.py +43 -0
- cdp/protocol/pwa/service.py +21 -0
- cdp/protocol/pwa/types.py +15 -0
- cdp/protocol/py.typed +0 -0
- cdp/protocol/runtime/__init__.py +0 -0
- cdp/protocol/runtime/events/__init__.py +0 -0
- cdp/protocol/runtime/events/service.py +85 -0
- cdp/protocol/runtime/events/types.py +55 -0
- cdp/protocol/runtime/methods/__init__.py +0 -0
- cdp/protocol/runtime/methods/service.py +274 -0
- cdp/protocol/runtime/methods/types.py +226 -0
- cdp/protocol/runtime/service.py +21 -0
- cdp/protocol/runtime/types.py +194 -0
- cdp/protocol/security/__init__.py +0 -0
- cdp/protocol/security/events/__init__.py +0 -0
- cdp/protocol/security/events/service.py +29 -0
- cdp/protocol/security/events/types.py +11 -0
- cdp/protocol/security/methods/__init__.py +0 -0
- cdp/protocol/security/methods/service.py +54 -0
- cdp/protocol/security/methods/types.py +9 -0
- cdp/protocol/security/service.py +21 -0
- cdp/protocol/security/types.py +102 -0
- cdp/protocol/service_worker/__init__.py +0 -0
- cdp/protocol/service_worker/events/__init__.py +0 -0
- cdp/protocol/service_worker/events/service.py +45 -0
- cdp/protocol/service_worker/events/types.py +16 -0
- cdp/protocol/service_worker/methods/__init__.py +0 -0
- cdp/protocol/service_worker/methods/service.py +153 -0
- cdp/protocol/service_worker/methods/types.py +36 -0
- cdp/protocol/service_worker/service.py +21 -0
- cdp/protocol/service_worker/types.py +38 -0
- cdp/protocol/storage/__init__.py +0 -0
- cdp/protocol/storage/events/__init__.py +0 -0
- cdp/protocol/storage/events/service.py +141 -0
- cdp/protocol/storage/events/types.py +139 -0
- cdp/protocol/storage/methods/__init__.py +0 -0
- cdp/protocol/storage/methods/service.py +428 -0
- cdp/protocol/storage/methods/types.py +184 -0
- cdp/protocol/storage/service.py +21 -0
- cdp/protocol/storage/types.py +236 -0
- cdp/protocol/system_info/__init__.py +0 -0
- cdp/protocol/system_info/events/__init__.py +0 -0
- cdp/protocol/system_info/events/service.py +20 -0
- cdp/protocol/system_info/events/types.py +3 -0
- cdp/protocol/system_info/methods/__init__.py +0 -0
- cdp/protocol/system_info/methods/service.py +54 -0
- cdp/protocol/system_info/methods/types.py +27 -0
- cdp/protocol/system_info/service.py +21 -0
- cdp/protocol/system_info/types.py +71 -0
- cdp/protocol/target/__init__.py +0 -0
- cdp/protocol/target/events/__init__.py +0 -0
- cdp/protocol/target/events/service.py +77 -0
- cdp/protocol/target/events/types.py +38 -0
- cdp/protocol/target/methods/__init__.py +0 -0
- cdp/protocol/target/methods/service.py +219 -0
- cdp/protocol/target/methods/types.py +148 -0
- cdp/protocol/target/service.py +21 -0
- cdp/protocol/target/types.py +44 -0
- cdp/protocol/tethering/__init__.py +0 -0
- cdp/protocol/tethering/events/__init__.py +0 -0
- cdp/protocol/tethering/events/service.py +29 -0
- cdp/protocol/tethering/events/types.py +9 -0
- cdp/protocol/tethering/methods/__init__.py +0 -0
- cdp/protocol/tethering/methods/service.py +43 -0
- cdp/protocol/tethering/methods/types.py +10 -0
- cdp/protocol/tethering/service.py +21 -0
- cdp/protocol/tethering/types.py +3 -0
- cdp/protocol/tracing/__init__.py +0 -0
- cdp/protocol/tracing/events/__init__.py +0 -0
- cdp/protocol/tracing/events/service.py +45 -0
- cdp/protocol/tracing/events/types.py +28 -0
- cdp/protocol/tracing/methods/__init__.py +0 -0
- cdp/protocol/tracing/methods/service.py +87 -0
- cdp/protocol/tracing/methods/types.py +54 -0
- cdp/protocol/tracing/service.py +21 -0
- cdp/protocol/tracing/types.py +34 -0
- cdp/protocol/web_audio/__init__.py +0 -0
- cdp/protocol/web_audio/events/__init__.py +0 -0
- cdp/protocol/web_audio/events/service.py +125 -0
- cdp/protocol/web_audio/events/types.py +56 -0
- cdp/protocol/web_audio/methods/__init__.py +0 -0
- cdp/protocol/web_audio/methods/service.py +54 -0
- cdp/protocol/web_audio/methods/types.py +17 -0
- cdp/protocol/web_audio/service.py +21 -0
- cdp/protocol/web_audio/types.py +66 -0
- cdp/protocol/web_authn/__init__.py +0 -0
- cdp/protocol/web_authn/events/__init__.py +0 -0
- cdp/protocol/web_authn/events/service.py +53 -0
- cdp/protocol/web_authn/events/types.py +21 -0
- cdp/protocol/web_authn/methods/__init__.py +0 -0
- cdp/protocol/web_authn/methods/service.py +164 -0
- cdp/protocol/web_authn/methods/types.py +61 -0
- cdp/protocol/web_authn/service.py +21 -0
- cdp/protocol/web_authn/types.py +54 -0
- cdp/py.typed +0 -0
- cdp/service.py +184 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/METADATA +15 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/RECORD +476 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
"""CDP Storage 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 StorageMethods:
|
|
10
|
+
"""
|
|
11
|
+
Methods for the Storage domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Storage methods.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
self.client = client
|
|
21
|
+
|
|
22
|
+
async def get_storage_key(self, params: Optional[getStorageKeyParameters]=None,session_id: Optional[str] = None) -> getStorageKeyReturns:
|
|
23
|
+
"""
|
|
24
|
+
Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.
|
|
25
|
+
Args:
|
|
26
|
+
params (getStorageKeyParameters, optional): Parameters for the getStorageKey method.
|
|
27
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
getStorageKeyReturns: The result of the getStorageKey call.
|
|
31
|
+
"""
|
|
32
|
+
return await self.client.send(method="Storage.getStorageKey", params=params,session_id=session_id)
|
|
33
|
+
async def clear_data_for_origin(self, params: Optional[clearDataForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
34
|
+
"""
|
|
35
|
+
Clears storage for origin.
|
|
36
|
+
Args:
|
|
37
|
+
params (clearDataForOriginParameters, optional): Parameters for the clearDataForOrigin method.
|
|
38
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
Dict[str, Any]: The result of the clearDataForOrigin call.
|
|
42
|
+
"""
|
|
43
|
+
return await self.client.send(method="Storage.clearDataForOrigin", params=params,session_id=session_id)
|
|
44
|
+
async def clear_data_for_storage_key(self, params: Optional[clearDataForStorageKeyParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
45
|
+
"""
|
|
46
|
+
Clears storage for storage key.
|
|
47
|
+
Args:
|
|
48
|
+
params (clearDataForStorageKeyParameters, optional): Parameters for the clearDataForStorageKey method.
|
|
49
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
Dict[str, Any]: The result of the clearDataForStorageKey call.
|
|
53
|
+
"""
|
|
54
|
+
return await self.client.send(method="Storage.clearDataForStorageKey", params=params,session_id=session_id)
|
|
55
|
+
async def get_cookies(self, params: Optional[getCookiesParameters]=None,session_id: Optional[str] = None) -> getCookiesReturns:
|
|
56
|
+
"""
|
|
57
|
+
Returns all browser cookies.
|
|
58
|
+
Args:
|
|
59
|
+
params (getCookiesParameters, optional): Parameters for the getCookies method.
|
|
60
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
getCookiesReturns: The result of the getCookies call.
|
|
64
|
+
"""
|
|
65
|
+
return await self.client.send(method="Storage.getCookies", params=params,session_id=session_id)
|
|
66
|
+
async def set_cookies(self, params: Optional[setCookiesParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
67
|
+
"""
|
|
68
|
+
Sets given cookies.
|
|
69
|
+
Args:
|
|
70
|
+
params (setCookiesParameters, optional): Parameters for the setCookies method.
|
|
71
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
Dict[str, Any]: The result of the setCookies call.
|
|
75
|
+
"""
|
|
76
|
+
return await self.client.send(method="Storage.setCookies", params=params,session_id=session_id)
|
|
77
|
+
async def clear_cookies(self, params: Optional[clearCookiesParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
78
|
+
"""
|
|
79
|
+
Clears cookies.
|
|
80
|
+
Args:
|
|
81
|
+
params (clearCookiesParameters, optional): Parameters for the clearCookies method.
|
|
82
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
Dict[str, Any]: The result of the clearCookies call.
|
|
86
|
+
"""
|
|
87
|
+
return await self.client.send(method="Storage.clearCookies", params=params,session_id=session_id)
|
|
88
|
+
async def get_usage_and_quota(self, params: Optional[getUsageAndQuotaParameters]=None,session_id: Optional[str] = None) -> getUsageAndQuotaReturns:
|
|
89
|
+
"""
|
|
90
|
+
Returns usage and quota in bytes.
|
|
91
|
+
Args:
|
|
92
|
+
params (getUsageAndQuotaParameters, optional): Parameters for the getUsageAndQuota method.
|
|
93
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
getUsageAndQuotaReturns: The result of the getUsageAndQuota call.
|
|
97
|
+
"""
|
|
98
|
+
return await self.client.send(method="Storage.getUsageAndQuota", params=params,session_id=session_id)
|
|
99
|
+
async def override_quota_for_origin(self, params: Optional[overrideQuotaForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
100
|
+
"""
|
|
101
|
+
Override quota for the specified origin
|
|
102
|
+
Args:
|
|
103
|
+
params (overrideQuotaForOriginParameters, optional): Parameters for the overrideQuotaForOrigin method.
|
|
104
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
Dict[str, Any]: The result of the overrideQuotaForOrigin call.
|
|
108
|
+
"""
|
|
109
|
+
return await self.client.send(method="Storage.overrideQuotaForOrigin", params=params,session_id=session_id)
|
|
110
|
+
async def track_cache_storage_for_origin(self, params: Optional[trackCacheStorageForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
111
|
+
"""
|
|
112
|
+
Registers origin to be notified when an update occurs to its cache storage list.
|
|
113
|
+
Args:
|
|
114
|
+
params (trackCacheStorageForOriginParameters, optional): Parameters for the trackCacheStorageForOrigin method.
|
|
115
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Dict[str, Any]: The result of the trackCacheStorageForOrigin call.
|
|
119
|
+
"""
|
|
120
|
+
return await self.client.send(method="Storage.trackCacheStorageForOrigin", params=params,session_id=session_id)
|
|
121
|
+
async def track_cache_storage_for_storage_key(self, params: Optional[trackCacheStorageForStorageKeyParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
122
|
+
"""
|
|
123
|
+
Registers storage key to be notified when an update occurs to its cache storage list.
|
|
124
|
+
Args:
|
|
125
|
+
params (trackCacheStorageForStorageKeyParameters, optional): Parameters for the trackCacheStorageForStorageKey method.
|
|
126
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
Dict[str, Any]: The result of the trackCacheStorageForStorageKey call.
|
|
130
|
+
"""
|
|
131
|
+
return await self.client.send(method="Storage.trackCacheStorageForStorageKey", params=params,session_id=session_id)
|
|
132
|
+
async def track_indexed_db_for_origin(self, params: Optional[trackIndexedDBForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
133
|
+
"""
|
|
134
|
+
Registers origin to be notified when an update occurs to its IndexedDB.
|
|
135
|
+
Args:
|
|
136
|
+
params (trackIndexedDBForOriginParameters, optional): Parameters for the trackIndexedDBForOrigin method.
|
|
137
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
Dict[str, Any]: The result of the trackIndexedDBForOrigin call.
|
|
141
|
+
"""
|
|
142
|
+
return await self.client.send(method="Storage.trackIndexedDBForOrigin", params=params,session_id=session_id)
|
|
143
|
+
async def track_indexed_db_for_storage_key(self, params: Optional[trackIndexedDBForStorageKeyParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
144
|
+
"""
|
|
145
|
+
Registers storage key to be notified when an update occurs to its IndexedDB.
|
|
146
|
+
Args:
|
|
147
|
+
params (trackIndexedDBForStorageKeyParameters, optional): Parameters for the trackIndexedDBForStorageKey method.
|
|
148
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Dict[str, Any]: The result of the trackIndexedDBForStorageKey call.
|
|
152
|
+
"""
|
|
153
|
+
return await self.client.send(method="Storage.trackIndexedDBForStorageKey", params=params,session_id=session_id)
|
|
154
|
+
async def untrack_cache_storage_for_origin(self, params: Optional[untrackCacheStorageForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
155
|
+
"""
|
|
156
|
+
Unregisters origin from receiving notifications for cache storage.
|
|
157
|
+
Args:
|
|
158
|
+
params (untrackCacheStorageForOriginParameters, optional): Parameters for the untrackCacheStorageForOrigin method.
|
|
159
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Dict[str, Any]: The result of the untrackCacheStorageForOrigin call.
|
|
163
|
+
"""
|
|
164
|
+
return await self.client.send(method="Storage.untrackCacheStorageForOrigin", params=params,session_id=session_id)
|
|
165
|
+
async def untrack_cache_storage_for_storage_key(self, params: Optional[untrackCacheStorageForStorageKeyParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
166
|
+
"""
|
|
167
|
+
Unregisters storage key from receiving notifications for cache storage.
|
|
168
|
+
Args:
|
|
169
|
+
params (untrackCacheStorageForStorageKeyParameters, optional): Parameters for the untrackCacheStorageForStorageKey method.
|
|
170
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
171
|
+
|
|
172
|
+
Returns:
|
|
173
|
+
Dict[str, Any]: The result of the untrackCacheStorageForStorageKey call.
|
|
174
|
+
"""
|
|
175
|
+
return await self.client.send(method="Storage.untrackCacheStorageForStorageKey", params=params,session_id=session_id)
|
|
176
|
+
async def untrack_indexed_db_for_origin(self, params: Optional[untrackIndexedDBForOriginParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
177
|
+
"""
|
|
178
|
+
Unregisters origin from receiving notifications for IndexedDB.
|
|
179
|
+
Args:
|
|
180
|
+
params (untrackIndexedDBForOriginParameters, optional): Parameters for the untrackIndexedDBForOrigin method.
|
|
181
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
182
|
+
|
|
183
|
+
Returns:
|
|
184
|
+
Dict[str, Any]: The result of the untrackIndexedDBForOrigin call.
|
|
185
|
+
"""
|
|
186
|
+
return await self.client.send(method="Storage.untrackIndexedDBForOrigin", params=params,session_id=session_id)
|
|
187
|
+
async def untrack_indexed_db_for_storage_key(self, params: Optional[untrackIndexedDBForStorageKeyParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
188
|
+
"""
|
|
189
|
+
Unregisters storage key from receiving notifications for IndexedDB.
|
|
190
|
+
Args:
|
|
191
|
+
params (untrackIndexedDBForStorageKeyParameters, optional): Parameters for the untrackIndexedDBForStorageKey method.
|
|
192
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
193
|
+
|
|
194
|
+
Returns:
|
|
195
|
+
Dict[str, Any]: The result of the untrackIndexedDBForStorageKey call.
|
|
196
|
+
"""
|
|
197
|
+
return await self.client.send(method="Storage.untrackIndexedDBForStorageKey", params=params,session_id=session_id)
|
|
198
|
+
async def get_trust_tokens(self, params: None=None,session_id: Optional[str] = None) -> getTrustTokensReturns:
|
|
199
|
+
"""
|
|
200
|
+
Returns the number of stored Trust Tokens per issuer for the current browsing context.
|
|
201
|
+
Args:
|
|
202
|
+
params (None, optional): Parameters for the getTrustTokens method.
|
|
203
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
getTrustTokensReturns: The result of the getTrustTokens call.
|
|
207
|
+
"""
|
|
208
|
+
return await self.client.send(method="Storage.getTrustTokens", params=params,session_id=session_id)
|
|
209
|
+
async def clear_trust_tokens(self, params: Optional[clearTrustTokensParameters]=None,session_id: Optional[str] = None) -> clearTrustTokensReturns:
|
|
210
|
+
"""
|
|
211
|
+
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
|
|
212
|
+
Args:
|
|
213
|
+
params (clearTrustTokensParameters, optional): Parameters for the clearTrustTokens method.
|
|
214
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
clearTrustTokensReturns: The result of the clearTrustTokens call.
|
|
218
|
+
"""
|
|
219
|
+
return await self.client.send(method="Storage.clearTrustTokens", params=params,session_id=session_id)
|
|
220
|
+
async def get_interest_group_details(self, params: Optional[getInterestGroupDetailsParameters]=None,session_id: Optional[str] = None) -> getInterestGroupDetailsReturns:
|
|
221
|
+
"""
|
|
222
|
+
Gets details for a named interest group.
|
|
223
|
+
Args:
|
|
224
|
+
params (getInterestGroupDetailsParameters, optional): Parameters for the getInterestGroupDetails method.
|
|
225
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
226
|
+
|
|
227
|
+
Returns:
|
|
228
|
+
getInterestGroupDetailsReturns: The result of the getInterestGroupDetails call.
|
|
229
|
+
"""
|
|
230
|
+
return await self.client.send(method="Storage.getInterestGroupDetails", params=params,session_id=session_id)
|
|
231
|
+
async def set_interest_group_tracking(self, params: Optional[setInterestGroupTrackingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
232
|
+
"""
|
|
233
|
+
Enables/Disables issuing of interestGroupAccessed events.
|
|
234
|
+
Args:
|
|
235
|
+
params (setInterestGroupTrackingParameters, optional): Parameters for the setInterestGroupTracking method.
|
|
236
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
237
|
+
|
|
238
|
+
Returns:
|
|
239
|
+
Dict[str, Any]: The result of the setInterestGroupTracking call.
|
|
240
|
+
"""
|
|
241
|
+
return await self.client.send(method="Storage.setInterestGroupTracking", params=params,session_id=session_id)
|
|
242
|
+
async def set_interest_group_auction_tracking(self, params: Optional[setInterestGroupAuctionTrackingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
243
|
+
"""
|
|
244
|
+
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
|
|
245
|
+
Args:
|
|
246
|
+
params (setInterestGroupAuctionTrackingParameters, optional): Parameters for the setInterestGroupAuctionTracking method.
|
|
247
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
248
|
+
|
|
249
|
+
Returns:
|
|
250
|
+
Dict[str, Any]: The result of the setInterestGroupAuctionTracking call.
|
|
251
|
+
"""
|
|
252
|
+
return await self.client.send(method="Storage.setInterestGroupAuctionTracking", params=params,session_id=session_id)
|
|
253
|
+
async def get_shared_storage_metadata(self, params: Optional[getSharedStorageMetadataParameters]=None,session_id: Optional[str] = None) -> getSharedStorageMetadataReturns:
|
|
254
|
+
"""
|
|
255
|
+
Gets metadata for an origin's shared storage.
|
|
256
|
+
Args:
|
|
257
|
+
params (getSharedStorageMetadataParameters, optional): Parameters for the getSharedStorageMetadata method.
|
|
258
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
getSharedStorageMetadataReturns: The result of the getSharedStorageMetadata call.
|
|
262
|
+
"""
|
|
263
|
+
return await self.client.send(method="Storage.getSharedStorageMetadata", params=params,session_id=session_id)
|
|
264
|
+
async def get_shared_storage_entries(self, params: Optional[getSharedStorageEntriesParameters]=None,session_id: Optional[str] = None) -> getSharedStorageEntriesReturns:
|
|
265
|
+
"""
|
|
266
|
+
Gets the entries in an given origin's shared storage.
|
|
267
|
+
Args:
|
|
268
|
+
params (getSharedStorageEntriesParameters, optional): Parameters for the getSharedStorageEntries method.
|
|
269
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
270
|
+
|
|
271
|
+
Returns:
|
|
272
|
+
getSharedStorageEntriesReturns: The result of the getSharedStorageEntries call.
|
|
273
|
+
"""
|
|
274
|
+
return await self.client.send(method="Storage.getSharedStorageEntries", params=params,session_id=session_id)
|
|
275
|
+
async def set_shared_storage_entry(self, params: Optional[setSharedStorageEntryParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
276
|
+
"""
|
|
277
|
+
Sets entry with `key` and `value` for a given origin's shared storage.
|
|
278
|
+
Args:
|
|
279
|
+
params (setSharedStorageEntryParameters, optional): Parameters for the setSharedStorageEntry method.
|
|
280
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
281
|
+
|
|
282
|
+
Returns:
|
|
283
|
+
Dict[str, Any]: The result of the setSharedStorageEntry call.
|
|
284
|
+
"""
|
|
285
|
+
return await self.client.send(method="Storage.setSharedStorageEntry", params=params,session_id=session_id)
|
|
286
|
+
async def delete_shared_storage_entry(self, params: Optional[deleteSharedStorageEntryParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
287
|
+
"""
|
|
288
|
+
Deletes entry for `key` (if it exists) for a given origin's shared storage.
|
|
289
|
+
Args:
|
|
290
|
+
params (deleteSharedStorageEntryParameters, optional): Parameters for the deleteSharedStorageEntry method.
|
|
291
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
292
|
+
|
|
293
|
+
Returns:
|
|
294
|
+
Dict[str, Any]: The result of the deleteSharedStorageEntry call.
|
|
295
|
+
"""
|
|
296
|
+
return await self.client.send(method="Storage.deleteSharedStorageEntry", params=params,session_id=session_id)
|
|
297
|
+
async def clear_shared_storage_entries(self, params: Optional[clearSharedStorageEntriesParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
298
|
+
"""
|
|
299
|
+
Clears all entries for a given origin's shared storage.
|
|
300
|
+
Args:
|
|
301
|
+
params (clearSharedStorageEntriesParameters, optional): Parameters for the clearSharedStorageEntries method.
|
|
302
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
303
|
+
|
|
304
|
+
Returns:
|
|
305
|
+
Dict[str, Any]: The result of the clearSharedStorageEntries call.
|
|
306
|
+
"""
|
|
307
|
+
return await self.client.send(method="Storage.clearSharedStorageEntries", params=params,session_id=session_id)
|
|
308
|
+
async def reset_shared_storage_budget(self, params: Optional[resetSharedStorageBudgetParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
309
|
+
"""
|
|
310
|
+
Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
|
|
311
|
+
Args:
|
|
312
|
+
params (resetSharedStorageBudgetParameters, optional): Parameters for the resetSharedStorageBudget method.
|
|
313
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
314
|
+
|
|
315
|
+
Returns:
|
|
316
|
+
Dict[str, Any]: The result of the resetSharedStorageBudget call.
|
|
317
|
+
"""
|
|
318
|
+
return await self.client.send(method="Storage.resetSharedStorageBudget", params=params,session_id=session_id)
|
|
319
|
+
async def set_shared_storage_tracking(self, params: Optional[setSharedStorageTrackingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
320
|
+
"""
|
|
321
|
+
Enables/disables issuing of sharedStorageAccessed events.
|
|
322
|
+
Args:
|
|
323
|
+
params (setSharedStorageTrackingParameters, optional): Parameters for the setSharedStorageTracking method.
|
|
324
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
325
|
+
|
|
326
|
+
Returns:
|
|
327
|
+
Dict[str, Any]: The result of the setSharedStorageTracking call.
|
|
328
|
+
"""
|
|
329
|
+
return await self.client.send(method="Storage.setSharedStorageTracking", params=params,session_id=session_id)
|
|
330
|
+
async def set_storage_bucket_tracking(self, params: Optional[setStorageBucketTrackingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
331
|
+
"""
|
|
332
|
+
Set tracking for a storage key's buckets.
|
|
333
|
+
Args:
|
|
334
|
+
params (setStorageBucketTrackingParameters, optional): Parameters for the setStorageBucketTracking method.
|
|
335
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
336
|
+
|
|
337
|
+
Returns:
|
|
338
|
+
Dict[str, Any]: The result of the setStorageBucketTracking call.
|
|
339
|
+
"""
|
|
340
|
+
return await self.client.send(method="Storage.setStorageBucketTracking", params=params,session_id=session_id)
|
|
341
|
+
async def delete_storage_bucket(self, params: Optional[deleteStorageBucketParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
342
|
+
"""
|
|
343
|
+
Deletes the Storage Bucket with the given storage key and bucket name.
|
|
344
|
+
Args:
|
|
345
|
+
params (deleteStorageBucketParameters, optional): Parameters for the deleteStorageBucket method.
|
|
346
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
347
|
+
|
|
348
|
+
Returns:
|
|
349
|
+
Dict[str, Any]: The result of the deleteStorageBucket call.
|
|
350
|
+
"""
|
|
351
|
+
return await self.client.send(method="Storage.deleteStorageBucket", params=params,session_id=session_id)
|
|
352
|
+
async def run_bounce_tracking_mitigations(self, params: None=None,session_id: Optional[str] = None) -> runBounceTrackingMitigationsReturns:
|
|
353
|
+
"""
|
|
354
|
+
Deletes state for sites identified as potential bounce trackers, immediately.
|
|
355
|
+
Args:
|
|
356
|
+
params (None, optional): Parameters for the runBounceTrackingMitigations method.
|
|
357
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
358
|
+
|
|
359
|
+
Returns:
|
|
360
|
+
runBounceTrackingMitigationsReturns: The result of the runBounceTrackingMitigations call.
|
|
361
|
+
"""
|
|
362
|
+
return await self.client.send(method="Storage.runBounceTrackingMitigations", params=params,session_id=session_id)
|
|
363
|
+
async def set_attribution_reporting_local_testing_mode(self, params: Optional[setAttributionReportingLocalTestingModeParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
364
|
+
"""
|
|
365
|
+
https://wicg.github.io/attribution-reporting-api/
|
|
366
|
+
Args:
|
|
367
|
+
params (setAttributionReportingLocalTestingModeParameters, optional): Parameters for the setAttributionReportingLocalTestingMode method.
|
|
368
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
369
|
+
|
|
370
|
+
Returns:
|
|
371
|
+
Dict[str, Any]: The result of the setAttributionReportingLocalTestingMode call.
|
|
372
|
+
"""
|
|
373
|
+
return await self.client.send(method="Storage.setAttributionReportingLocalTestingMode", params=params,session_id=session_id)
|
|
374
|
+
async def set_attribution_reporting_tracking(self, params: Optional[setAttributionReportingTrackingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
375
|
+
"""
|
|
376
|
+
Enables/disables issuing of Attribution Reporting events.
|
|
377
|
+
Args:
|
|
378
|
+
params (setAttributionReportingTrackingParameters, optional): Parameters for the setAttributionReportingTracking method.
|
|
379
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
380
|
+
|
|
381
|
+
Returns:
|
|
382
|
+
Dict[str, Any]: The result of the setAttributionReportingTracking call.
|
|
383
|
+
"""
|
|
384
|
+
return await self.client.send(method="Storage.setAttributionReportingTracking", params=params,session_id=session_id)
|
|
385
|
+
async def send_pending_attribution_reports(self, params: None=None,session_id: Optional[str] = None) -> sendPendingAttributionReportsReturns:
|
|
386
|
+
"""
|
|
387
|
+
Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
|
|
388
|
+
Args:
|
|
389
|
+
params (None, optional): Parameters for the sendPendingAttributionReports method.
|
|
390
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
391
|
+
|
|
392
|
+
Returns:
|
|
393
|
+
sendPendingAttributionReportsReturns: The result of the sendPendingAttributionReports call.
|
|
394
|
+
"""
|
|
395
|
+
return await self.client.send(method="Storage.sendPendingAttributionReports", params=params,session_id=session_id)
|
|
396
|
+
async def get_related_website_sets(self, params: None=None,session_id: Optional[str] = None) -> getRelatedWebsiteSetsReturns:
|
|
397
|
+
"""
|
|
398
|
+
Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.
|
|
399
|
+
Args:
|
|
400
|
+
params (None, optional): Parameters for the getRelatedWebsiteSets method.
|
|
401
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
402
|
+
|
|
403
|
+
Returns:
|
|
404
|
+
getRelatedWebsiteSetsReturns: The result of the getRelatedWebsiteSets call.
|
|
405
|
+
"""
|
|
406
|
+
return await self.client.send(method="Storage.getRelatedWebsiteSets", params=params,session_id=session_id)
|
|
407
|
+
async def get_affected_urls_for_third_party_cookie_metadata(self, params: Optional[getAffectedUrlsForThirdPartyCookieMetadataParameters]=None,session_id: Optional[str] = None) -> getAffectedUrlsForThirdPartyCookieMetadataReturns:
|
|
408
|
+
"""
|
|
409
|
+
Returns the list of URLs from a page and its embedded resources that match existing grace period URL pattern rules. https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
|
|
410
|
+
Args:
|
|
411
|
+
params (getAffectedUrlsForThirdPartyCookieMetadataParameters, optional): Parameters for the getAffectedUrlsForThirdPartyCookieMetadata method.
|
|
412
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
413
|
+
|
|
414
|
+
Returns:
|
|
415
|
+
getAffectedUrlsForThirdPartyCookieMetadataReturns: The result of the getAffectedUrlsForThirdPartyCookieMetadata call.
|
|
416
|
+
"""
|
|
417
|
+
return await self.client.send(method="Storage.getAffectedUrlsForThirdPartyCookieMetadata", params=params,session_id=session_id)
|
|
418
|
+
async def set_protected_audience_k_anonymity(self, params: Optional[setProtectedAudienceKAnonymityParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
419
|
+
"""
|
|
420
|
+
No description available for setProtectedAudienceKAnonymity.
|
|
421
|
+
Args:
|
|
422
|
+
params (setProtectedAudienceKAnonymityParameters, optional): Parameters for the setProtectedAudienceKAnonymity method.
|
|
423
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
424
|
+
|
|
425
|
+
Returns:
|
|
426
|
+
Dict[str, Any]: The result of the setProtectedAudienceKAnonymity call.
|
|
427
|
+
"""
|
|
428
|
+
return await self.client.send(method="Storage.setProtectedAudienceKAnonymity", params=params,session_id=session_id)
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"""CDP Storage 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.browser.types import BrowserContextID
|
|
8
|
+
from cdp.protocol.network.types import Cookie
|
|
9
|
+
from cdp.protocol.network.types import CookieParam
|
|
10
|
+
from cdp.protocol.page.types import FrameId
|
|
11
|
+
from cdp.protocol.storage.types import RelatedWebsiteSet
|
|
12
|
+
from cdp.protocol.storage.types import SerializedStorageKey
|
|
13
|
+
from cdp.protocol.storage.types import SharedStorageEntry
|
|
14
|
+
from cdp.protocol.storage.types import SharedStorageMetadata
|
|
15
|
+
from cdp.protocol.storage.types import StorageBucket
|
|
16
|
+
from cdp.protocol.storage.types import TrustTokens
|
|
17
|
+
from cdp.protocol.storage.types import UsageForType
|
|
18
|
+
|
|
19
|
+
class getStorageKeyParameters(TypedDict, total=False):
|
|
20
|
+
frameId: NotRequired['FrameId']
|
|
21
|
+
class clearDataForOriginParameters(TypedDict, total=True):
|
|
22
|
+
origin: 'str'
|
|
23
|
+
"""Security origin."""
|
|
24
|
+
storageTypes: 'str'
|
|
25
|
+
"""Comma separated list of StorageType to clear."""
|
|
26
|
+
class clearDataForStorageKeyParameters(TypedDict, total=True):
|
|
27
|
+
storageKey: 'str'
|
|
28
|
+
"""Storage key."""
|
|
29
|
+
storageTypes: 'str'
|
|
30
|
+
"""Comma separated list of StorageType to clear."""
|
|
31
|
+
class getCookiesParameters(TypedDict, total=False):
|
|
32
|
+
browserContextId: NotRequired['BrowserContextID']
|
|
33
|
+
"""Browser context to use when called on the browser endpoint."""
|
|
34
|
+
class setCookiesParameters(TypedDict, total=True):
|
|
35
|
+
cookies: 'List[CookieParam]'
|
|
36
|
+
"""Cookies to be set."""
|
|
37
|
+
browserContextId: NotRequired['BrowserContextID']
|
|
38
|
+
"""Browser context to use when called on the browser endpoint."""
|
|
39
|
+
class clearCookiesParameters(TypedDict, total=False):
|
|
40
|
+
browserContextId: NotRequired['BrowserContextID']
|
|
41
|
+
"""Browser context to use when called on the browser endpoint."""
|
|
42
|
+
class getUsageAndQuotaParameters(TypedDict, total=True):
|
|
43
|
+
origin: 'str'
|
|
44
|
+
"""Security origin."""
|
|
45
|
+
class overrideQuotaForOriginParameters(TypedDict, total=True):
|
|
46
|
+
origin: 'str'
|
|
47
|
+
"""Security origin."""
|
|
48
|
+
quotaSize: NotRequired['float']
|
|
49
|
+
"""The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize)."""
|
|
50
|
+
class trackCacheStorageForOriginParameters(TypedDict, total=True):
|
|
51
|
+
origin: 'str'
|
|
52
|
+
"""Security origin."""
|
|
53
|
+
class trackCacheStorageForStorageKeyParameters(TypedDict, total=True):
|
|
54
|
+
storageKey: 'str'
|
|
55
|
+
"""Storage key."""
|
|
56
|
+
class trackIndexedDBForOriginParameters(TypedDict, total=True):
|
|
57
|
+
origin: 'str'
|
|
58
|
+
"""Security origin."""
|
|
59
|
+
class trackIndexedDBForStorageKeyParameters(TypedDict, total=True):
|
|
60
|
+
storageKey: 'str'
|
|
61
|
+
"""Storage key."""
|
|
62
|
+
class untrackCacheStorageForOriginParameters(TypedDict, total=True):
|
|
63
|
+
origin: 'str'
|
|
64
|
+
"""Security origin."""
|
|
65
|
+
class untrackCacheStorageForStorageKeyParameters(TypedDict, total=True):
|
|
66
|
+
storageKey: 'str'
|
|
67
|
+
"""Storage key."""
|
|
68
|
+
class untrackIndexedDBForOriginParameters(TypedDict, total=True):
|
|
69
|
+
origin: 'str'
|
|
70
|
+
"""Security origin."""
|
|
71
|
+
class untrackIndexedDBForStorageKeyParameters(TypedDict, total=True):
|
|
72
|
+
storageKey: 'str'
|
|
73
|
+
"""Storage key."""
|
|
74
|
+
|
|
75
|
+
class clearTrustTokensParameters(TypedDict, total=True):
|
|
76
|
+
issuerOrigin: 'str'
|
|
77
|
+
class getInterestGroupDetailsParameters(TypedDict, total=True):
|
|
78
|
+
ownerOrigin: 'str'
|
|
79
|
+
name: 'str'
|
|
80
|
+
class setInterestGroupTrackingParameters(TypedDict, total=True):
|
|
81
|
+
enable: 'bool'
|
|
82
|
+
class setInterestGroupAuctionTrackingParameters(TypedDict, total=True):
|
|
83
|
+
enable: 'bool'
|
|
84
|
+
class getSharedStorageMetadataParameters(TypedDict, total=True):
|
|
85
|
+
ownerOrigin: 'str'
|
|
86
|
+
class getSharedStorageEntriesParameters(TypedDict, total=True):
|
|
87
|
+
ownerOrigin: 'str'
|
|
88
|
+
class setSharedStorageEntryParameters(TypedDict, total=True):
|
|
89
|
+
ownerOrigin: 'str'
|
|
90
|
+
key: 'str'
|
|
91
|
+
value: 'str'
|
|
92
|
+
ignoreIfPresent: NotRequired['bool']
|
|
93
|
+
"""If ignoreIfPresent is included and true, then only sets the entry if key doesn't already exist."""
|
|
94
|
+
class deleteSharedStorageEntryParameters(TypedDict, total=True):
|
|
95
|
+
ownerOrigin: 'str'
|
|
96
|
+
key: 'str'
|
|
97
|
+
class clearSharedStorageEntriesParameters(TypedDict, total=True):
|
|
98
|
+
ownerOrigin: 'str'
|
|
99
|
+
class resetSharedStorageBudgetParameters(TypedDict, total=True):
|
|
100
|
+
ownerOrigin: 'str'
|
|
101
|
+
class setSharedStorageTrackingParameters(TypedDict, total=True):
|
|
102
|
+
enable: 'bool'
|
|
103
|
+
class setStorageBucketTrackingParameters(TypedDict, total=True):
|
|
104
|
+
storageKey: 'str'
|
|
105
|
+
enable: 'bool'
|
|
106
|
+
class deleteStorageBucketParameters(TypedDict, total=True):
|
|
107
|
+
bucket: 'StorageBucket'
|
|
108
|
+
|
|
109
|
+
class setAttributionReportingLocalTestingModeParameters(TypedDict, total=True):
|
|
110
|
+
enabled: 'bool'
|
|
111
|
+
"""If enabled, noise is suppressed and reports are sent immediately."""
|
|
112
|
+
class setAttributionReportingTrackingParameters(TypedDict, total=True):
|
|
113
|
+
enable: 'bool'
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class getAffectedUrlsForThirdPartyCookieMetadataParameters(TypedDict, total=True):
|
|
117
|
+
firstPartyUrl: 'str'
|
|
118
|
+
"""The URL of the page currently being visited."""
|
|
119
|
+
thirdPartyUrls: 'List[str]'
|
|
120
|
+
"""The list of embedded resource URLs from the page."""
|
|
121
|
+
class setProtectedAudienceKAnonymityParameters(TypedDict, total=True):
|
|
122
|
+
owner: 'str'
|
|
123
|
+
name: 'str'
|
|
124
|
+
hashes: 'List[str]'
|
|
125
|
+
class getStorageKeyReturns(TypedDict):
|
|
126
|
+
storageKey: 'SerializedStorageKey'
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class getCookiesReturns(TypedDict):
|
|
130
|
+
cookies: 'List[Cookie]'
|
|
131
|
+
"""Array of cookie objects."""
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class getUsageAndQuotaReturns(TypedDict):
|
|
135
|
+
usage: 'float'
|
|
136
|
+
"""Storage usage (bytes)."""
|
|
137
|
+
quota: 'float'
|
|
138
|
+
"""Storage quota (bytes)."""
|
|
139
|
+
overrideActive: 'bool'
|
|
140
|
+
"""Whether or not the origin has an active storage quota override"""
|
|
141
|
+
usageBreakdown: 'List[UsageForType]'
|
|
142
|
+
"""Storage usage per type (bytes)."""
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
class getTrustTokensReturns(TypedDict):
|
|
153
|
+
tokens: 'List[TrustTokens]'
|
|
154
|
+
class clearTrustTokensReturns(TypedDict):
|
|
155
|
+
didDeleteTokens: 'bool'
|
|
156
|
+
"""True if any tokens were deleted, false otherwise."""
|
|
157
|
+
class getInterestGroupDetailsReturns(TypedDict):
|
|
158
|
+
details: 'Dict[str, Any]'
|
|
159
|
+
"""This largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin."""
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class getSharedStorageMetadataReturns(TypedDict):
|
|
163
|
+
metadata: 'SharedStorageMetadata'
|
|
164
|
+
class getSharedStorageEntriesReturns(TypedDict):
|
|
165
|
+
entries: 'List[SharedStorageEntry]'
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class runBounceTrackingMitigationsReturns(TypedDict):
|
|
174
|
+
deletedSites: 'List[str]'
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class sendPendingAttributionReportsReturns(TypedDict):
|
|
178
|
+
numSent: 'int'
|
|
179
|
+
"""The number of reports that were sent."""
|
|
180
|
+
class getRelatedWebsiteSetsReturns(TypedDict):
|
|
181
|
+
sets: 'List[RelatedWebsiteSet]'
|
|
182
|
+
class getAffectedUrlsForThirdPartyCookieMetadataReturns(TypedDict):
|
|
183
|
+
matchedUrls: 'List[str]'
|
|
184
|
+
"""Array of matching URLs. If there is a primary pattern match for the first- party URL, only the first-party URL is returned in the array."""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""CDP Storage Domain"""
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
from .methods.service import StorageMethods
|
|
4
|
+
from .events.service import StorageEvents
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ...service import Client
|
|
8
|
+
|
|
9
|
+
class Storage(StorageMethods, StorageEvents):
|
|
10
|
+
"""
|
|
11
|
+
Access the Storage domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Storage domain.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
StorageMethods.__init__(self, client)
|
|
21
|
+
StorageEvents.__init__(self, client)
|