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.
- parsek_cdp/__init__.py +55 -0
- parsek_cdp/_logging.py +49 -0
- parsek_cdp/cdp/__init__.py +247 -0
- parsek_cdp/cdp/accessibility/__init__.py +15 -0
- parsek_cdp/cdp/accessibility/events.py +35 -0
- parsek_cdp/cdp/accessibility/functions.py +202 -0
- parsek_cdp/cdp/accessibility/types.py +235 -0
- parsek_cdp/cdp/animation/__init__.py +15 -0
- parsek_cdp/cdp/animation/events.py +52 -0
- parsek_cdp/cdp/animation/functions.py +140 -0
- parsek_cdp/cdp/animation/types.py +113 -0
- parsek_cdp/cdp/audits/__init__.py +15 -0
- parsek_cdp/cdp/audits/events.py +21 -0
- parsek_cdp/cdp/audits/functions.py +95 -0
- parsek_cdp/cdp/audits/types.py +1051 -0
- parsek_cdp/cdp/autofill/__init__.py +15 -0
- parsek_cdp/cdp/autofill/events.py +27 -0
- parsek_cdp/cdp/autofill/functions.py +64 -0
- parsek_cdp/cdp/autofill/types.py +108 -0
- parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
- parsek_cdp/cdp/backgroundservice/events.py +40 -0
- parsek_cdp/cdp/backgroundservice/functions.py +59 -0
- parsek_cdp/cdp/backgroundservice/types.py +63 -0
- parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
- parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
- parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
- parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
- parsek_cdp/cdp/browser/__init__.py +15 -0
- parsek_cdp/cdp/browser/events.py +46 -0
- parsek_cdp/cdp/browser/functions.py +350 -0
- parsek_cdp/cdp/browser/types.py +158 -0
- parsek_cdp/cdp/cachestorage/__init__.py +15 -0
- parsek_cdp/cdp/cachestorage/events.py +13 -0
- parsek_cdp/cdp/cachestorage/functions.py +126 -0
- parsek_cdp/cdp/cachestorage/types.py +89 -0
- parsek_cdp/cdp/cast/__init__.py +15 -0
- parsek_cdp/cdp/cast/events.py +38 -0
- parsek_cdp/cdp/cast/functions.py +77 -0
- parsek_cdp/cdp/cast/types.py +23 -0
- parsek_cdp/cdp/console/__init__.py +15 -0
- parsek_cdp/cdp/console/events.py +22 -0
- parsek_cdp/cdp/console/functions.py +36 -0
- parsek_cdp/cdp/console/types.py +30 -0
- parsek_cdp/cdp/css/__init__.py +15 -0
- parsek_cdp/cdp/css/events.py +79 -0
- parsek_cdp/cdp/css/functions.py +788 -0
- parsek_cdp/cdp/css/types.py +742 -0
- parsek_cdp/cdp/debugger/__init__.py +15 -0
- parsek_cdp/cdp/debugger/events.py +164 -0
- parsek_cdp/cdp/debugger/functions.py +663 -0
- parsek_cdp/cdp/debugger/types.py +171 -0
- parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
- parsek_cdp/cdp/deviceaccess/events.py +30 -0
- parsek_cdp/cdp/deviceaccess/functions.py +54 -0
- parsek_cdp/cdp/deviceaccess/types.py +28 -0
- parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
- parsek_cdp/cdp/deviceorientation/events.py +13 -0
- parsek_cdp/cdp/deviceorientation/functions.py +35 -0
- parsek_cdp/cdp/deviceorientation/types.py +10 -0
- parsek_cdp/cdp/dom/__init__.py +15 -0
- parsek_cdp/cdp/dom/events.py +228 -0
- parsek_cdp/cdp/dom/functions.py +1033 -0
- parsek_cdp/cdp/dom/types.py +293 -0
- parsek_cdp/cdp/domdebugger/__init__.py +15 -0
- parsek_cdp/cdp/domdebugger/events.py +13 -0
- parsek_cdp/cdp/domdebugger/functions.py +155 -0
- parsek_cdp/cdp/domdebugger/types.py +57 -0
- parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
- parsek_cdp/cdp/domsnapshot/events.py +13 -0
- parsek_cdp/cdp/domsnapshot/functions.py +111 -0
- parsek_cdp/cdp/domsnapshot/types.py +312 -0
- parsek_cdp/cdp/domstorage/__init__.py +15 -0
- parsek_cdp/cdp/domstorage/events.py +60 -0
- parsek_cdp/cdp/domstorage/functions.py +79 -0
- parsek_cdp/cdp/domstorage/types.py +30 -0
- parsek_cdp/cdp/emulation/__init__.py +15 -0
- parsek_cdp/cdp/emulation/events.py +17 -0
- parsek_cdp/cdp/emulation/functions.py +688 -0
- parsek_cdp/cdp/emulation/types.py +305 -0
- parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
- parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
- parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
- parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
- parsek_cdp/cdp/extensions/__init__.py +15 -0
- parsek_cdp/cdp/extensions/events.py +13 -0
- parsek_cdp/cdp/extensions/functions.py +118 -0
- parsek_cdp/cdp/extensions/types.py +19 -0
- parsek_cdp/cdp/fedcm/__init__.py +15 -0
- parsek_cdp/cdp/fedcm/events.py +45 -0
- parsek_cdp/cdp/fedcm/functions.py +93 -0
- parsek_cdp/cdp/fedcm/types.py +72 -0
- parsek_cdp/cdp/fetch/__init__.py +15 -0
- parsek_cdp/cdp/fetch/events.py +82 -0
- parsek_cdp/cdp/fetch/functions.py +215 -0
- parsek_cdp/cdp/fetch/types.py +81 -0
- parsek_cdp/cdp/filesystem/__init__.py +15 -0
- parsek_cdp/cdp/filesystem/events.py +13 -0
- parsek_cdp/cdp/filesystem/functions.py +36 -0
- parsek_cdp/cdp/filesystem/types.py +54 -0
- parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
- parsek_cdp/cdp/headlessexperimental/events.py +13 -0
- parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
- parsek_cdp/cdp/headlessexperimental/types.py +24 -0
- parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
- parsek_cdp/cdp/heapprofiler/events.py +65 -0
- parsek_cdp/cdp/heapprofiler/functions.py +193 -0
- parsek_cdp/cdp/heapprofiler/types.py +57 -0
- parsek_cdp/cdp/indexeddb/__init__.py +15 -0
- parsek_cdp/cdp/indexeddb/events.py +13 -0
- parsek_cdp/cdp/indexeddb/functions.py +232 -0
- parsek_cdp/cdp/indexeddb/types.py +120 -0
- parsek_cdp/cdp/input/__init__.py +15 -0
- parsek_cdp/cdp/input/events.py +25 -0
- parsek_cdp/cdp/input/functions.py +361 -0
- parsek_cdp/cdp/input/types.py +87 -0
- parsek_cdp/cdp/inspector/__init__.py +15 -0
- parsek_cdp/cdp/inspector/events.py +41 -0
- parsek_cdp/cdp/inspector/functions.py +27 -0
- parsek_cdp/cdp/inspector/types.py +10 -0
- parsek_cdp/cdp/io/__init__.py +15 -0
- parsek_cdp/cdp/io/events.py +13 -0
- parsek_cdp/cdp/io/functions.py +77 -0
- parsek_cdp/cdp/io/types.py +13 -0
- parsek_cdp/cdp/layertree/__init__.py +15 -0
- parsek_cdp/cdp/layertree/events.py +36 -0
- parsek_cdp/cdp/layertree/functions.py +178 -0
- parsek_cdp/cdp/layertree/types.py +104 -0
- parsek_cdp/cdp/log/__init__.py +15 -0
- parsek_cdp/cdp/log/events.py +22 -0
- parsek_cdp/cdp/log/functions.py +54 -0
- parsek_cdp/cdp/log/types.py +57 -0
- parsek_cdp/cdp/media/__init__.py +15 -0
- parsek_cdp/cdp/media/events.py +87 -0
- parsek_cdp/cdp/media/functions.py +27 -0
- parsek_cdp/cdp/media/types.py +101 -0
- parsek_cdp/cdp/memory/__init__.py +15 -0
- parsek_cdp/cdp/memory/events.py +13 -0
- parsek_cdp/cdp/memory/functions.py +164 -0
- parsek_cdp/cdp/memory/types.py +71 -0
- parsek_cdp/cdp/mixins/__init__.py +21 -0
- parsek_cdp/cdp/mixins/datatype.py +123 -0
- parsek_cdp/cdp/mixins/event.py +78 -0
- parsek_cdp/cdp/mixins/namespace.py +31 -0
- parsek_cdp/cdp/network/__init__.py +15 -0
- parsek_cdp/cdp/network/events.py +726 -0
- parsek_cdp/cdp/network/functions.py +734 -0
- parsek_cdp/cdp/network/types.py +1247 -0
- parsek_cdp/cdp/overlay/__init__.py +15 -0
- parsek_cdp/cdp/overlay/events.py +54 -0
- parsek_cdp/cdp/overlay/functions.py +407 -0
- parsek_cdp/cdp/overlay/types.py +328 -0
- parsek_cdp/cdp/page/__init__.py +15 -0
- parsek_cdp/cdp/page/events.py +416 -0
- parsek_cdp/cdp/page/functions.py +1081 -0
- parsek_cdp/cdp/page/types.py +1088 -0
- parsek_cdp/cdp/performance/__init__.py +15 -0
- parsek_cdp/cdp/performance/events.py +24 -0
- parsek_cdp/cdp/performance/functions.py +63 -0
- parsek_cdp/cdp/performance/types.py +22 -0
- parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
- parsek_cdp/cdp/performancetimeline/events.py +22 -0
- parsek_cdp/cdp/performancetimeline/functions.py +30 -0
- parsek_cdp/cdp/performancetimeline/types.py +85 -0
- parsek_cdp/cdp/preload/__init__.py +15 -0
- parsek_cdp/cdp/preload/events.py +116 -0
- parsek_cdp/cdp/preload/functions.py +25 -0
- parsek_cdp/cdp/preload/types.py +267 -0
- parsek_cdp/cdp/profiler/__init__.py +15 -0
- parsek_cdp/cdp/profiler/events.py +64 -0
- parsek_cdp/cdp/profiler/functions.py +134 -0
- parsek_cdp/cdp/profiler/types.py +105 -0
- parsek_cdp/cdp/pwa/__init__.py +15 -0
- parsek_cdp/cdp/pwa/events.py +13 -0
- parsek_cdp/cdp/pwa/functions.py +196 -0
- parsek_cdp/cdp/pwa/types.py +45 -0
- parsek_cdp/cdp/runtime/__init__.py +15 -0
- parsek_cdp/cdp/runtime/events.py +123 -0
- parsek_cdp/cdp/runtime/functions.py +552 -0
- parsek_cdp/cdp/runtime/types.py +319 -0
- parsek_cdp/cdp/schema/__init__.py +15 -0
- parsek_cdp/cdp/schema/events.py +13 -0
- parsek_cdp/cdp/schema/functions.py +32 -0
- parsek_cdp/cdp/schema/types.py +22 -0
- parsek_cdp/cdp/security/__init__.py +15 -0
- parsek_cdp/cdp/security/events.py +64 -0
- parsek_cdp/cdp/security/functions.py +66 -0
- parsek_cdp/cdp/security/types.py +168 -0
- parsek_cdp/cdp/serviceworker/__init__.py +15 -0
- parsek_cdp/cdp/serviceworker/events.py +43 -0
- parsek_cdp/cdp/serviceworker/functions.py +115 -0
- parsek_cdp/cdp/serviceworker/types.py +95 -0
- parsek_cdp/cdp/storage/__init__.py +15 -0
- parsek_cdp/cdp/storage/events.py +288 -0
- parsek_cdp/cdp/storage/functions.py +571 -0
- parsek_cdp/cdp/storage/types.py +656 -0
- parsek_cdp/cdp/systeminfo/__init__.py +15 -0
- parsek_cdp/cdp/systeminfo/events.py +13 -0
- parsek_cdp/cdp/systeminfo/functions.py +75 -0
- parsek_cdp/cdp/systeminfo/types.py +132 -0
- parsek_cdp/cdp/target/__init__.py +15 -0
- parsek_cdp/cdp/target/events.py +109 -0
- parsek_cdp/cdp/target/functions.py +424 -0
- parsek_cdp/cdp/target/types.py +83 -0
- parsek_cdp/cdp/tethering/__init__.py +15 -0
- parsek_cdp/cdp/tethering/events.py +22 -0
- parsek_cdp/cdp/tethering/functions.py +35 -0
- parsek_cdp/cdp/tethering/types.py +10 -0
- parsek_cdp/cdp/tracing/__init__.py +15 -0
- parsek_cdp/cdp/tracing/events.py +61 -0
- parsek_cdp/cdp/tracing/functions.py +119 -0
- parsek_cdp/cdp/tracing/types.py +81 -0
- parsek_cdp/cdp/webaudio/__init__.py +15 -0
- parsek_cdp/cdp/webaudio/events.py +184 -0
- parsek_cdp/cdp/webaudio/functions.py +51 -0
- parsek_cdp/cdp/webaudio/types.py +155 -0
- parsek_cdp/cdp/webauthn/__init__.py +15 -0
- parsek_cdp/cdp/webauthn/events.py +69 -0
- parsek_cdp/cdp/webauthn/functions.py +214 -0
- parsek_cdp/cdp/webauthn/types.py +96 -0
- parsek_cdp/core/__init__.py +18 -0
- parsek_cdp/core/browser.py +240 -0
- parsek_cdp/core/browser_context.py +58 -0
- parsek_cdp/core/element.py +405 -0
- parsek_cdp/core/feature.py +376 -0
- parsek_cdp/core/frame.py +351 -0
- parsek_cdp/core/pagable.py +175 -0
- parsek_cdp/core/page.py +163 -0
- parsek_cdp/core/target.py +490 -0
- parsek_cdp/features/__init__.py +14 -0
- parsek_cdp/features/request_listener/__init__.py +256 -0
- parsek_cdp/features/request_listener/events.py +48 -0
- parsek_cdp/features/request_listener/types.py +235 -0
- parsek_cdp/generate.py +642 -0
- parsek_cdp/parsek/__init__.py +18 -0
- parsek_cdp/parsek/events.py +38 -0
- parsek_cdp/parsek/types.py +36 -0
- parsek_cdp/py.typed +0 -0
- parsek_cdp-0.1.0.dist-info/METADATA +277 -0
- parsek_cdp-0.1.0.dist-info/RECORD +242 -0
- parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
- parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
- parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
"""Commands for the Storage 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
|
+
RelatedWebsiteSet,
|
|
12
|
+
SerializedStorageKey,
|
|
13
|
+
SharedStorageEntry,
|
|
14
|
+
SharedStorageMetadata,
|
|
15
|
+
StorageBucket,
|
|
16
|
+
TrustTokens,
|
|
17
|
+
UsageForType,
|
|
18
|
+
)
|
|
19
|
+
from ..browser.types import BrowserContextID as Browser_BrowserContextID
|
|
20
|
+
from ..network.types import Cookie as Network_Cookie
|
|
21
|
+
from ..network.types import CookieParam as Network_CookieParam
|
|
22
|
+
from ..page.types import FrameId as Page_FrameId
|
|
23
|
+
|
|
24
|
+
@dataclass
|
|
25
|
+
class GetStorageKeyForFrameReturn(DataType):
|
|
26
|
+
"""Return value of :meth:`Storage.get_storage_key_for_frame`."""
|
|
27
|
+
storage_key: SerializedStorageKey
|
|
28
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
29
|
+
FieldMeta('storage_key', 'storageKey', False, 'primitive'),
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@dataclass
|
|
34
|
+
class GetStorageKeyReturn(DataType):
|
|
35
|
+
"""Return value of :meth:`Storage.get_storage_key`."""
|
|
36
|
+
storage_key: SerializedStorageKey
|
|
37
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
38
|
+
FieldMeta('storage_key', 'storageKey', False, 'primitive'),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@dataclass
|
|
43
|
+
class GetCookiesReturn(DataType):
|
|
44
|
+
"""Return value of :meth:`Storage.get_cookies`."""
|
|
45
|
+
cookies: List[Network_Cookie]
|
|
46
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
47
|
+
FieldMeta('cookies', 'cookies', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.Cookie')),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass
|
|
52
|
+
class GetUsageAndQuotaReturn(DataType):
|
|
53
|
+
"""Return value of :meth:`Storage.get_usage_and_quota`."""
|
|
54
|
+
usage: float
|
|
55
|
+
quota: float
|
|
56
|
+
override_active: bool
|
|
57
|
+
usage_breakdown: List[UsageForType]
|
|
58
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
59
|
+
FieldMeta('usage', 'usage', False, 'primitive'),
|
|
60
|
+
FieldMeta('quota', 'quota', False, 'primitive'),
|
|
61
|
+
FieldMeta('override_active', 'overrideActive', False, 'primitive'),
|
|
62
|
+
FieldMeta('usage_breakdown', 'usageBreakdown', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.UsageForType')),
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass
|
|
67
|
+
class GetTrustTokensReturn(DataType):
|
|
68
|
+
"""Return value of :meth:`Storage.get_trust_tokens`."""
|
|
69
|
+
tokens: List[TrustTokens]
|
|
70
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
71
|
+
FieldMeta('tokens', 'tokens', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.TrustTokens')),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@dataclass
|
|
76
|
+
class ClearTrustTokensReturn(DataType):
|
|
77
|
+
"""Return value of :meth:`Storage.clear_trust_tokens`."""
|
|
78
|
+
did_delete_tokens: bool
|
|
79
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
80
|
+
FieldMeta('did_delete_tokens', 'didDeleteTokens', False, 'primitive'),
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@dataclass
|
|
85
|
+
class GetInterestGroupDetailsReturn(DataType):
|
|
86
|
+
"""Return value of :meth:`Storage.get_interest_group_details`."""
|
|
87
|
+
details: Dict[str, Any]
|
|
88
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
89
|
+
FieldMeta('details', 'details', False, 'primitive'),
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@dataclass
|
|
94
|
+
class GetSharedStorageMetadataReturn(DataType):
|
|
95
|
+
"""Return value of :meth:`Storage.get_shared_storage_metadata`."""
|
|
96
|
+
metadata: SharedStorageMetadata
|
|
97
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
98
|
+
FieldMeta('metadata', 'metadata', False, 'object', ref='Storage.SharedStorageMetadata'),
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@dataclass
|
|
103
|
+
class GetSharedStorageEntriesReturn(DataType):
|
|
104
|
+
"""Return value of :meth:`Storage.get_shared_storage_entries`."""
|
|
105
|
+
entries: List[SharedStorageEntry]
|
|
106
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
107
|
+
FieldMeta('entries', 'entries', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.SharedStorageEntry')),
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@dataclass
|
|
112
|
+
class RunBounceTrackingMitigationsReturn(DataType):
|
|
113
|
+
"""Return value of :meth:`Storage.run_bounce_tracking_mitigations`."""
|
|
114
|
+
deleted_sites: List[str]
|
|
115
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
116
|
+
FieldMeta('deleted_sites', 'deletedSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@dataclass
|
|
121
|
+
class SendPendingAttributionReportsReturn(DataType):
|
|
122
|
+
"""Return value of :meth:`Storage.send_pending_attribution_reports`."""
|
|
123
|
+
num_sent: int
|
|
124
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
125
|
+
FieldMeta('num_sent', 'numSent', False, 'primitive'),
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
@dataclass
|
|
130
|
+
class GetRelatedWebsiteSetsReturn(DataType):
|
|
131
|
+
"""Return value of :meth:`Storage.get_related_website_sets`."""
|
|
132
|
+
sets: List[RelatedWebsiteSet]
|
|
133
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
134
|
+
FieldMeta('sets', 'sets', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.RelatedWebsiteSet')),
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@dataclass
|
|
139
|
+
class GetAffectedUrlsForThirdPartyCookieMetadataReturn(DataType):
|
|
140
|
+
"""Return value of :meth:`Storage.get_affected_urls_for_third_party_cookie_metadata`."""
|
|
141
|
+
matched_urls: List[str]
|
|
142
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
143
|
+
FieldMeta('matched_urls', 'matchedUrls', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class Storage:
|
|
148
|
+
"""Commands of the Storage domain, bound to a target."""
|
|
149
|
+
|
|
150
|
+
def __init__(self, target: Any) -> None:
|
|
151
|
+
self._target = target
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def get_storage_key_for_frame(self, *, frame_id: Page_FrameId) -> GetStorageKeyForFrameReturn:
|
|
155
|
+
"""
|
|
156
|
+
Returns a storage key given a frame id.
|
|
157
|
+
Deprecated. Please use Storage.getStorageKey instead.
|
|
158
|
+
|
|
159
|
+
.. deprecated::
|
|
160
|
+
:param frame_id:
|
|
161
|
+
"""
|
|
162
|
+
_params: Dict[str, Any] = {}
|
|
163
|
+
_params['frameId'] = encode(FieldMeta('', '', False, 'primitive'), frame_id)
|
|
164
|
+
_result = await self._target.send('Storage.getStorageKeyForFrame', _params)
|
|
165
|
+
return GetStorageKeyForFrameReturn.from_json(_result)
|
|
166
|
+
|
|
167
|
+
async def get_storage_key(self, *, frame_id: Optional[Page_FrameId] = None) -> GetStorageKeyReturn:
|
|
168
|
+
"""
|
|
169
|
+
Returns storage key for the given frame. If no frame ID is provided,
|
|
170
|
+
the storage key of the target executing this command is returned.
|
|
171
|
+
:param frame_id:
|
|
172
|
+
"""
|
|
173
|
+
_params: Dict[str, Any] = {}
|
|
174
|
+
if frame_id is not None:
|
|
175
|
+
_params['frameId'] = encode(FieldMeta('', '', False, 'primitive'), frame_id)
|
|
176
|
+
_result = await self._target.send('Storage.getStorageKey', _params)
|
|
177
|
+
return GetStorageKeyReturn.from_json(_result)
|
|
178
|
+
|
|
179
|
+
async def clear_data_for_origin(self, *, origin: str, storage_types: str) -> None:
|
|
180
|
+
"""
|
|
181
|
+
Clears storage for origin.
|
|
182
|
+
:param origin: Security origin.
|
|
183
|
+
:param storage_types: Comma separated list of StorageType to clear.
|
|
184
|
+
"""
|
|
185
|
+
_params: Dict[str, Any] = {}
|
|
186
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
187
|
+
_params['storageTypes'] = encode(FieldMeta('', '', False, 'primitive'), storage_types)
|
|
188
|
+
_result = await self._target.send('Storage.clearDataForOrigin', _params)
|
|
189
|
+
return None
|
|
190
|
+
|
|
191
|
+
async def clear_data_for_storage_key(self, *, storage_key: str, storage_types: str) -> None:
|
|
192
|
+
"""
|
|
193
|
+
Clears storage for storage key.
|
|
194
|
+
:param storage_key: Storage key.
|
|
195
|
+
:param storage_types: Comma separated list of StorageType to clear.
|
|
196
|
+
"""
|
|
197
|
+
_params: Dict[str, Any] = {}
|
|
198
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
199
|
+
_params['storageTypes'] = encode(FieldMeta('', '', False, 'primitive'), storage_types)
|
|
200
|
+
_result = await self._target.send('Storage.clearDataForStorageKey', _params)
|
|
201
|
+
return None
|
|
202
|
+
|
|
203
|
+
async def get_cookies(self, *, browser_context_id: Optional[Browser_BrowserContextID] = None) -> GetCookiesReturn:
|
|
204
|
+
"""
|
|
205
|
+
Returns all browser cookies.
|
|
206
|
+
:param browser_context_id: Browser context to use when called on the browser endpoint.
|
|
207
|
+
"""
|
|
208
|
+
_params: Dict[str, Any] = {}
|
|
209
|
+
if browser_context_id is not None:
|
|
210
|
+
_params['browserContextId'] = encode(FieldMeta('', '', False, 'primitive'), browser_context_id)
|
|
211
|
+
_result = await self._target.send('Storage.getCookies', _params)
|
|
212
|
+
return GetCookiesReturn.from_json(_result)
|
|
213
|
+
|
|
214
|
+
async def set_cookies(self, *, cookies: List[Network_CookieParam], browser_context_id: Optional[Browser_BrowserContextID] = None) -> None:
|
|
215
|
+
"""
|
|
216
|
+
Sets given cookies.
|
|
217
|
+
:param cookies: Cookies to be set.
|
|
218
|
+
:param browser_context_id: Browser context to use when called on the browser endpoint.
|
|
219
|
+
"""
|
|
220
|
+
_params: Dict[str, Any] = {}
|
|
221
|
+
_params['cookies'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.CookieParam')), cookies)
|
|
222
|
+
if browser_context_id is not None:
|
|
223
|
+
_params['browserContextId'] = encode(FieldMeta('', '', False, 'primitive'), browser_context_id)
|
|
224
|
+
_result = await self._target.send('Storage.setCookies', _params)
|
|
225
|
+
return None
|
|
226
|
+
|
|
227
|
+
async def clear_cookies(self, *, browser_context_id: Optional[Browser_BrowserContextID] = None) -> None:
|
|
228
|
+
"""
|
|
229
|
+
Clears cookies.
|
|
230
|
+
:param browser_context_id: Browser context to use when called on the browser endpoint.
|
|
231
|
+
"""
|
|
232
|
+
_params: Dict[str, Any] = {}
|
|
233
|
+
if browser_context_id is not None:
|
|
234
|
+
_params['browserContextId'] = encode(FieldMeta('', '', False, 'primitive'), browser_context_id)
|
|
235
|
+
_result = await self._target.send('Storage.clearCookies', _params)
|
|
236
|
+
return None
|
|
237
|
+
|
|
238
|
+
async def get_usage_and_quota(self, *, origin: str) -> GetUsageAndQuotaReturn:
|
|
239
|
+
"""
|
|
240
|
+
Returns usage and quota in bytes.
|
|
241
|
+
:param origin: Security origin.
|
|
242
|
+
"""
|
|
243
|
+
_params: Dict[str, Any] = {}
|
|
244
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
245
|
+
_result = await self._target.send('Storage.getUsageAndQuota', _params)
|
|
246
|
+
return GetUsageAndQuotaReturn.from_json(_result)
|
|
247
|
+
|
|
248
|
+
async def override_quota_for_origin(self, *, origin: str, quota_size: Optional[float] = None) -> None:
|
|
249
|
+
"""
|
|
250
|
+
Override quota for the specified origin
|
|
251
|
+
:param origin: Security origin.
|
|
252
|
+
:param quota_size: The quota size (in bytes) to override the original quota with.
|
|
253
|
+
If this is called multiple times, the overridden quota will be equal to
|
|
254
|
+
the quotaSize provided in the final call. If this is called without
|
|
255
|
+
specifying a quotaSize, the quota will be reset to the default value for
|
|
256
|
+
the specified origin. If this is called multiple times with different
|
|
257
|
+
origins, the override will be maintained for each origin until it is
|
|
258
|
+
disabled (called without a quotaSize).
|
|
259
|
+
"""
|
|
260
|
+
_params: Dict[str, Any] = {}
|
|
261
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
262
|
+
if quota_size is not None:
|
|
263
|
+
_params['quotaSize'] = encode(FieldMeta('', '', False, 'primitive'), quota_size)
|
|
264
|
+
_result = await self._target.send('Storage.overrideQuotaForOrigin', _params)
|
|
265
|
+
return None
|
|
266
|
+
|
|
267
|
+
async def track_cache_storage_for_origin(self, *, origin: str) -> None:
|
|
268
|
+
"""
|
|
269
|
+
Registers origin to be notified when an update occurs to its cache storage list.
|
|
270
|
+
:param origin: Security origin.
|
|
271
|
+
"""
|
|
272
|
+
_params: Dict[str, Any] = {}
|
|
273
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
274
|
+
_result = await self._target.send('Storage.trackCacheStorageForOrigin', _params)
|
|
275
|
+
return None
|
|
276
|
+
|
|
277
|
+
async def track_cache_storage_for_storage_key(self, *, storage_key: str) -> None:
|
|
278
|
+
"""
|
|
279
|
+
Registers storage key to be notified when an update occurs to its cache storage list.
|
|
280
|
+
:param storage_key: Storage key.
|
|
281
|
+
"""
|
|
282
|
+
_params: Dict[str, Any] = {}
|
|
283
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
284
|
+
_result = await self._target.send('Storage.trackCacheStorageForStorageKey', _params)
|
|
285
|
+
return None
|
|
286
|
+
|
|
287
|
+
async def track_indexed_db_for_origin(self, *, origin: str) -> None:
|
|
288
|
+
"""
|
|
289
|
+
Registers origin to be notified when an update occurs to its IndexedDB.
|
|
290
|
+
:param origin: Security origin.
|
|
291
|
+
"""
|
|
292
|
+
_params: Dict[str, Any] = {}
|
|
293
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
294
|
+
_result = await self._target.send('Storage.trackIndexedDBForOrigin', _params)
|
|
295
|
+
return None
|
|
296
|
+
|
|
297
|
+
async def track_indexed_db_for_storage_key(self, *, storage_key: str) -> None:
|
|
298
|
+
"""
|
|
299
|
+
Registers storage key to be notified when an update occurs to its IndexedDB.
|
|
300
|
+
:param storage_key: Storage key.
|
|
301
|
+
"""
|
|
302
|
+
_params: Dict[str, Any] = {}
|
|
303
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
304
|
+
_result = await self._target.send('Storage.trackIndexedDBForStorageKey', _params)
|
|
305
|
+
return None
|
|
306
|
+
|
|
307
|
+
async def untrack_cache_storage_for_origin(self, *, origin: str) -> None:
|
|
308
|
+
"""
|
|
309
|
+
Unregisters origin from receiving notifications for cache storage.
|
|
310
|
+
:param origin: Security origin.
|
|
311
|
+
"""
|
|
312
|
+
_params: Dict[str, Any] = {}
|
|
313
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
314
|
+
_result = await self._target.send('Storage.untrackCacheStorageForOrigin', _params)
|
|
315
|
+
return None
|
|
316
|
+
|
|
317
|
+
async def untrack_cache_storage_for_storage_key(self, *, storage_key: str) -> None:
|
|
318
|
+
"""
|
|
319
|
+
Unregisters storage key from receiving notifications for cache storage.
|
|
320
|
+
:param storage_key: Storage key.
|
|
321
|
+
"""
|
|
322
|
+
_params: Dict[str, Any] = {}
|
|
323
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
324
|
+
_result = await self._target.send('Storage.untrackCacheStorageForStorageKey', _params)
|
|
325
|
+
return None
|
|
326
|
+
|
|
327
|
+
async def untrack_indexed_db_for_origin(self, *, origin: str) -> None:
|
|
328
|
+
"""
|
|
329
|
+
Unregisters origin from receiving notifications for IndexedDB.
|
|
330
|
+
:param origin: Security origin.
|
|
331
|
+
"""
|
|
332
|
+
_params: Dict[str, Any] = {}
|
|
333
|
+
_params['origin'] = encode(FieldMeta('', '', False, 'primitive'), origin)
|
|
334
|
+
_result = await self._target.send('Storage.untrackIndexedDBForOrigin', _params)
|
|
335
|
+
return None
|
|
336
|
+
|
|
337
|
+
async def untrack_indexed_db_for_storage_key(self, *, storage_key: str) -> None:
|
|
338
|
+
"""
|
|
339
|
+
Unregisters storage key from receiving notifications for IndexedDB.
|
|
340
|
+
:param storage_key: Storage key.
|
|
341
|
+
"""
|
|
342
|
+
_params: Dict[str, Any] = {}
|
|
343
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
344
|
+
_result = await self._target.send('Storage.untrackIndexedDBForStorageKey', _params)
|
|
345
|
+
return None
|
|
346
|
+
|
|
347
|
+
async def get_trust_tokens(self) -> GetTrustTokensReturn:
|
|
348
|
+
"""
|
|
349
|
+
Returns the number of stored Trust Tokens per issuer for the
|
|
350
|
+
current browsing context.
|
|
351
|
+
"""
|
|
352
|
+
_params: Dict[str, Any] = {}
|
|
353
|
+
_result = await self._target.send('Storage.getTrustTokens', _params)
|
|
354
|
+
return GetTrustTokensReturn.from_json(_result)
|
|
355
|
+
|
|
356
|
+
async def clear_trust_tokens(self, *, issuer_origin: str) -> ClearTrustTokensReturn:
|
|
357
|
+
"""
|
|
358
|
+
Removes all Trust Tokens issued by the provided issuerOrigin.
|
|
359
|
+
Leaves other stored data, including the issuer's Redemption Records, intact.
|
|
360
|
+
:param issuer_origin:
|
|
361
|
+
"""
|
|
362
|
+
_params: Dict[str, Any] = {}
|
|
363
|
+
_params['issuerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), issuer_origin)
|
|
364
|
+
_result = await self._target.send('Storage.clearTrustTokens', _params)
|
|
365
|
+
return ClearTrustTokensReturn.from_json(_result)
|
|
366
|
+
|
|
367
|
+
async def get_interest_group_details(self, *, owner_origin: str, name: str) -> GetInterestGroupDetailsReturn:
|
|
368
|
+
"""
|
|
369
|
+
Gets details for a named interest group.
|
|
370
|
+
:param owner_origin:
|
|
371
|
+
:param name:
|
|
372
|
+
"""
|
|
373
|
+
_params: Dict[str, Any] = {}
|
|
374
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
375
|
+
_params['name'] = encode(FieldMeta('', '', False, 'primitive'), name)
|
|
376
|
+
_result = await self._target.send('Storage.getInterestGroupDetails', _params)
|
|
377
|
+
return GetInterestGroupDetailsReturn.from_json(_result)
|
|
378
|
+
|
|
379
|
+
async def set_interest_group_tracking(self, *, enable: bool) -> None:
|
|
380
|
+
"""
|
|
381
|
+
Enables/Disables issuing of interestGroupAccessed events.
|
|
382
|
+
:param enable:
|
|
383
|
+
"""
|
|
384
|
+
_params: Dict[str, Any] = {}
|
|
385
|
+
_params['enable'] = encode(FieldMeta('', '', False, 'primitive'), enable)
|
|
386
|
+
_result = await self._target.send('Storage.setInterestGroupTracking', _params)
|
|
387
|
+
return None
|
|
388
|
+
|
|
389
|
+
async def set_interest_group_auction_tracking(self, *, enable: bool) -> None:
|
|
390
|
+
"""
|
|
391
|
+
Enables/Disables issuing of interestGroupAuctionEventOccurred and
|
|
392
|
+
interestGroupAuctionNetworkRequestCreated.
|
|
393
|
+
:param enable:
|
|
394
|
+
"""
|
|
395
|
+
_params: Dict[str, Any] = {}
|
|
396
|
+
_params['enable'] = encode(FieldMeta('', '', False, 'primitive'), enable)
|
|
397
|
+
_result = await self._target.send('Storage.setInterestGroupAuctionTracking', _params)
|
|
398
|
+
return None
|
|
399
|
+
|
|
400
|
+
async def get_shared_storage_metadata(self, *, owner_origin: str) -> GetSharedStorageMetadataReturn:
|
|
401
|
+
"""
|
|
402
|
+
Gets metadata for an origin's shared storage.
|
|
403
|
+
:param owner_origin:
|
|
404
|
+
"""
|
|
405
|
+
_params: Dict[str, Any] = {}
|
|
406
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
407
|
+
_result = await self._target.send('Storage.getSharedStorageMetadata', _params)
|
|
408
|
+
return GetSharedStorageMetadataReturn.from_json(_result)
|
|
409
|
+
|
|
410
|
+
async def get_shared_storage_entries(self, *, owner_origin: str) -> GetSharedStorageEntriesReturn:
|
|
411
|
+
"""
|
|
412
|
+
Gets the entries in an given origin's shared storage.
|
|
413
|
+
:param owner_origin:
|
|
414
|
+
"""
|
|
415
|
+
_params: Dict[str, Any] = {}
|
|
416
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
417
|
+
_result = await self._target.send('Storage.getSharedStorageEntries', _params)
|
|
418
|
+
return GetSharedStorageEntriesReturn.from_json(_result)
|
|
419
|
+
|
|
420
|
+
async def set_shared_storage_entry(self, *, owner_origin: str, key: str, value: str, ignore_if_present: Optional[bool] = None) -> None:
|
|
421
|
+
"""
|
|
422
|
+
Sets entry with `key` and `value` for a given origin's shared storage.
|
|
423
|
+
:param owner_origin:
|
|
424
|
+
:param key:
|
|
425
|
+
:param value:
|
|
426
|
+
:param ignore_if_present: If `ignoreIfPresent` is included and true, then only sets the entry if
|
|
427
|
+
`key` doesn't already exist.
|
|
428
|
+
"""
|
|
429
|
+
_params: Dict[str, Any] = {}
|
|
430
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
431
|
+
_params['key'] = encode(FieldMeta('', '', False, 'primitive'), key)
|
|
432
|
+
_params['value'] = encode(FieldMeta('', '', False, 'primitive'), value)
|
|
433
|
+
if ignore_if_present is not None:
|
|
434
|
+
_params['ignoreIfPresent'] = encode(FieldMeta('', '', False, 'primitive'), ignore_if_present)
|
|
435
|
+
_result = await self._target.send('Storage.setSharedStorageEntry', _params)
|
|
436
|
+
return None
|
|
437
|
+
|
|
438
|
+
async def delete_shared_storage_entry(self, *, owner_origin: str, key: str) -> None:
|
|
439
|
+
"""
|
|
440
|
+
Deletes entry for `key` (if it exists) for a given origin's shared storage.
|
|
441
|
+
:param owner_origin:
|
|
442
|
+
:param key:
|
|
443
|
+
"""
|
|
444
|
+
_params: Dict[str, Any] = {}
|
|
445
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
446
|
+
_params['key'] = encode(FieldMeta('', '', False, 'primitive'), key)
|
|
447
|
+
_result = await self._target.send('Storage.deleteSharedStorageEntry', _params)
|
|
448
|
+
return None
|
|
449
|
+
|
|
450
|
+
async def clear_shared_storage_entries(self, *, owner_origin: str) -> None:
|
|
451
|
+
"""
|
|
452
|
+
Clears all entries for a given origin's shared storage.
|
|
453
|
+
:param owner_origin:
|
|
454
|
+
"""
|
|
455
|
+
_params: Dict[str, Any] = {}
|
|
456
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
457
|
+
_result = await self._target.send('Storage.clearSharedStorageEntries', _params)
|
|
458
|
+
return None
|
|
459
|
+
|
|
460
|
+
async def reset_shared_storage_budget(self, *, owner_origin: str) -> None:
|
|
461
|
+
"""
|
|
462
|
+
Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
|
|
463
|
+
:param owner_origin:
|
|
464
|
+
"""
|
|
465
|
+
_params: Dict[str, Any] = {}
|
|
466
|
+
_params['ownerOrigin'] = encode(FieldMeta('', '', False, 'primitive'), owner_origin)
|
|
467
|
+
_result = await self._target.send('Storage.resetSharedStorageBudget', _params)
|
|
468
|
+
return None
|
|
469
|
+
|
|
470
|
+
async def set_shared_storage_tracking(self, *, enable: bool) -> None:
|
|
471
|
+
"""
|
|
472
|
+
Enables/disables issuing of sharedStorageAccessed events.
|
|
473
|
+
:param enable:
|
|
474
|
+
"""
|
|
475
|
+
_params: Dict[str, Any] = {}
|
|
476
|
+
_params['enable'] = encode(FieldMeta('', '', False, 'primitive'), enable)
|
|
477
|
+
_result = await self._target.send('Storage.setSharedStorageTracking', _params)
|
|
478
|
+
return None
|
|
479
|
+
|
|
480
|
+
async def set_storage_bucket_tracking(self, *, storage_key: str, enable: bool) -> None:
|
|
481
|
+
"""
|
|
482
|
+
Set tracking for a storage key's buckets.
|
|
483
|
+
:param storage_key:
|
|
484
|
+
:param enable:
|
|
485
|
+
"""
|
|
486
|
+
_params: Dict[str, Any] = {}
|
|
487
|
+
_params['storageKey'] = encode(FieldMeta('', '', False, 'primitive'), storage_key)
|
|
488
|
+
_params['enable'] = encode(FieldMeta('', '', False, 'primitive'), enable)
|
|
489
|
+
_result = await self._target.send('Storage.setStorageBucketTracking', _params)
|
|
490
|
+
return None
|
|
491
|
+
|
|
492
|
+
async def delete_storage_bucket(self, *, bucket: StorageBucket) -> None:
|
|
493
|
+
"""
|
|
494
|
+
Deletes the Storage Bucket with the given storage key and bucket name.
|
|
495
|
+
:param bucket:
|
|
496
|
+
"""
|
|
497
|
+
_params: Dict[str, Any] = {}
|
|
498
|
+
_params['bucket'] = encode(FieldMeta('', '', False, 'object', ref='Storage.StorageBucket'), bucket)
|
|
499
|
+
_result = await self._target.send('Storage.deleteStorageBucket', _params)
|
|
500
|
+
return None
|
|
501
|
+
|
|
502
|
+
async def run_bounce_tracking_mitigations(self) -> RunBounceTrackingMitigationsReturn:
|
|
503
|
+
"""Deletes state for sites identified as potential bounce trackers, immediately."""
|
|
504
|
+
_params: Dict[str, Any] = {}
|
|
505
|
+
_result = await self._target.send('Storage.runBounceTrackingMitigations', _params)
|
|
506
|
+
return RunBounceTrackingMitigationsReturn.from_json(_result)
|
|
507
|
+
|
|
508
|
+
async def set_attribution_reporting_local_testing_mode(self, *, enabled: bool) -> None:
|
|
509
|
+
"""
|
|
510
|
+
https://wicg.github.io/attribution-reporting-api/
|
|
511
|
+
:param enabled: If enabled, noise is suppressed and reports are sent immediately.
|
|
512
|
+
"""
|
|
513
|
+
_params: Dict[str, Any] = {}
|
|
514
|
+
_params['enabled'] = encode(FieldMeta('', '', False, 'primitive'), enabled)
|
|
515
|
+
_result = await self._target.send('Storage.setAttributionReportingLocalTestingMode', _params)
|
|
516
|
+
return None
|
|
517
|
+
|
|
518
|
+
async def set_attribution_reporting_tracking(self, *, enable: bool) -> None:
|
|
519
|
+
"""
|
|
520
|
+
Enables/disables issuing of Attribution Reporting events.
|
|
521
|
+
:param enable:
|
|
522
|
+
"""
|
|
523
|
+
_params: Dict[str, Any] = {}
|
|
524
|
+
_params['enable'] = encode(FieldMeta('', '', False, 'primitive'), enable)
|
|
525
|
+
_result = await self._target.send('Storage.setAttributionReportingTracking', _params)
|
|
526
|
+
return None
|
|
527
|
+
|
|
528
|
+
async def send_pending_attribution_reports(self) -> SendPendingAttributionReportsReturn:
|
|
529
|
+
"""
|
|
530
|
+
Sends all pending Attribution Reports immediately, regardless of their
|
|
531
|
+
scheduled report time.
|
|
532
|
+
"""
|
|
533
|
+
_params: Dict[str, Any] = {}
|
|
534
|
+
_result = await self._target.send('Storage.sendPendingAttributionReports', _params)
|
|
535
|
+
return SendPendingAttributionReportsReturn.from_json(_result)
|
|
536
|
+
|
|
537
|
+
async def get_related_website_sets(self) -> GetRelatedWebsiteSetsReturn:
|
|
538
|
+
"""
|
|
539
|
+
Returns the effective Related Website Sets in use by this profile for the browser
|
|
540
|
+
session. The effective Related Website Sets will not change during a browser session.
|
|
541
|
+
"""
|
|
542
|
+
_params: Dict[str, Any] = {}
|
|
543
|
+
_result = await self._target.send('Storage.getRelatedWebsiteSets', _params)
|
|
544
|
+
return GetRelatedWebsiteSetsReturn.from_json(_result)
|
|
545
|
+
|
|
546
|
+
async def get_affected_urls_for_third_party_cookie_metadata(self, *, first_party_url: str, third_party_urls: List[str]) -> GetAffectedUrlsForThirdPartyCookieMetadataReturn:
|
|
547
|
+
"""
|
|
548
|
+
Returns the list of URLs from a page and its embedded resources that match
|
|
549
|
+
existing grace period URL pattern rules.
|
|
550
|
+
https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
|
|
551
|
+
:param first_party_url: The URL of the page currently being visited.
|
|
552
|
+
:param third_party_urls: The list of embedded resource URLs from the page.
|
|
553
|
+
"""
|
|
554
|
+
_params: Dict[str, Any] = {}
|
|
555
|
+
_params['firstPartyUrl'] = encode(FieldMeta('', '', False, 'primitive'), first_party_url)
|
|
556
|
+
_params['thirdPartyUrls'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), third_party_urls)
|
|
557
|
+
_result = await self._target.send('Storage.getAffectedUrlsForThirdPartyCookieMetadata', _params)
|
|
558
|
+
return GetAffectedUrlsForThirdPartyCookieMetadataReturn.from_json(_result)
|
|
559
|
+
|
|
560
|
+
async def set_protected_audience_k_anonymity(self, *, owner: str, name: str, hashes: List[str]) -> None:
|
|
561
|
+
"""
|
|
562
|
+
:param owner:
|
|
563
|
+
:param name:
|
|
564
|
+
:param hashes:
|
|
565
|
+
"""
|
|
566
|
+
_params: Dict[str, Any] = {}
|
|
567
|
+
_params['owner'] = encode(FieldMeta('', '', False, 'primitive'), owner)
|
|
568
|
+
_params['name'] = encode(FieldMeta('', '', False, 'primitive'), name)
|
|
569
|
+
_params['hashes'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), hashes)
|
|
570
|
+
_result = await self._target.send('Storage.setProtectedAudienceKAnonymity', _params)
|
|
571
|
+
return None
|