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,656 @@
|
|
|
1
|
+
"""Custom types and enums for the Storage domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ..mixins.datatype import DataType, FieldMeta, register
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..network.types import TimeSinceEpoch as Network_TimeSinceEpoch
|
|
12
|
+
from ..target.types import TargetID as Target_TargetID
|
|
13
|
+
|
|
14
|
+
type SerializedStorageKey = str
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@register("Storage.StorageType")
|
|
18
|
+
class StorageType(str, Enum):
|
|
19
|
+
"""Enum of possible storage types."""
|
|
20
|
+
COOKIES = 'cookies'
|
|
21
|
+
FILE_SYSTEMS = 'file_systems'
|
|
22
|
+
INDEXEDDB = 'indexeddb'
|
|
23
|
+
LOCAL_STORAGE = 'local_storage'
|
|
24
|
+
SHADER_CACHE = 'shader_cache'
|
|
25
|
+
WEBSQL = 'websql'
|
|
26
|
+
SERVICE_WORKERS = 'service_workers'
|
|
27
|
+
CACHE_STORAGE = 'cache_storage'
|
|
28
|
+
INTEREST_GROUPS = 'interest_groups'
|
|
29
|
+
SHARED_STORAGE = 'shared_storage'
|
|
30
|
+
STORAGE_BUCKETS = 'storage_buckets'
|
|
31
|
+
ALL = 'all'
|
|
32
|
+
OTHER = 'other'
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@register("Storage.UsageForType")
|
|
36
|
+
@dataclass
|
|
37
|
+
class UsageForType(DataType):
|
|
38
|
+
"""Usage for a storage type."""
|
|
39
|
+
storage_type: StorageType
|
|
40
|
+
usage: float
|
|
41
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
42
|
+
FieldMeta('storage_type', 'storageType', False, 'enum', ref='Storage.StorageType'),
|
|
43
|
+
FieldMeta('usage', 'usage', False, 'primitive'),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@register("Storage.TrustTokens")
|
|
48
|
+
@dataclass
|
|
49
|
+
class TrustTokens(DataType):
|
|
50
|
+
"""
|
|
51
|
+
Pair of issuer origin and number of available (signed, but not used) Trust
|
|
52
|
+
Tokens from that issuer.
|
|
53
|
+
"""
|
|
54
|
+
issuer_origin: str
|
|
55
|
+
count: float
|
|
56
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
57
|
+
FieldMeta('issuer_origin', 'issuerOrigin', False, 'primitive'),
|
|
58
|
+
FieldMeta('count', 'count', False, 'primitive'),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
type InterestGroupAuctionId = str # Protected audience interest group auction identifier.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@register("Storage.InterestGroupAccessType")
|
|
66
|
+
class InterestGroupAccessType(str, Enum):
|
|
67
|
+
"""Enum of interest group access types."""
|
|
68
|
+
JOIN = 'join'
|
|
69
|
+
LEAVE = 'leave'
|
|
70
|
+
UPDATE = 'update'
|
|
71
|
+
LOADED = 'loaded'
|
|
72
|
+
BID = 'bid'
|
|
73
|
+
WIN = 'win'
|
|
74
|
+
ADDITIONALBID = 'additionalBid'
|
|
75
|
+
ADDITIONALBIDWIN = 'additionalBidWin'
|
|
76
|
+
TOPLEVELBID = 'topLevelBid'
|
|
77
|
+
TOPLEVELADDITIONALBID = 'topLevelAdditionalBid'
|
|
78
|
+
CLEAR = 'clear'
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@register("Storage.InterestGroupAuctionEventType")
|
|
82
|
+
class InterestGroupAuctionEventType(str, Enum):
|
|
83
|
+
"""Enum of auction events."""
|
|
84
|
+
STARTED = 'started'
|
|
85
|
+
CONFIGRESOLVED = 'configResolved'
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@register("Storage.InterestGroupAuctionFetchType")
|
|
89
|
+
class InterestGroupAuctionFetchType(str, Enum):
|
|
90
|
+
"""Enum of network fetches auctions can do."""
|
|
91
|
+
BIDDERJS = 'bidderJs'
|
|
92
|
+
BIDDERWASM = 'bidderWasm'
|
|
93
|
+
SELLERJS = 'sellerJs'
|
|
94
|
+
BIDDERTRUSTEDSIGNALS = 'bidderTrustedSignals'
|
|
95
|
+
SELLERTRUSTEDSIGNALS = 'sellerTrustedSignals'
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@register("Storage.SharedStorageAccessScope")
|
|
99
|
+
class SharedStorageAccessScope(str, Enum):
|
|
100
|
+
"""Enum of shared storage access scopes."""
|
|
101
|
+
WINDOW = 'window'
|
|
102
|
+
SHAREDSTORAGEWORKLET = 'sharedStorageWorklet'
|
|
103
|
+
PROTECTEDAUDIENCEWORKLET = 'protectedAudienceWorklet'
|
|
104
|
+
HEADER = 'header'
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
@register("Storage.SharedStorageAccessMethod")
|
|
108
|
+
class SharedStorageAccessMethod(str, Enum):
|
|
109
|
+
"""Enum of shared storage access methods."""
|
|
110
|
+
ADDMODULE = 'addModule'
|
|
111
|
+
CREATEWORKLET = 'createWorklet'
|
|
112
|
+
SELECTURL = 'selectURL'
|
|
113
|
+
RUN = 'run'
|
|
114
|
+
BATCHUPDATE = 'batchUpdate'
|
|
115
|
+
SET = 'set'
|
|
116
|
+
APPEND = 'append'
|
|
117
|
+
DELETE = 'delete'
|
|
118
|
+
CLEAR = 'clear'
|
|
119
|
+
GET = 'get'
|
|
120
|
+
KEYS = 'keys'
|
|
121
|
+
VALUES = 'values'
|
|
122
|
+
ENTRIES = 'entries'
|
|
123
|
+
LENGTH = 'length'
|
|
124
|
+
REMAININGBUDGET = 'remainingBudget'
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
@register("Storage.SharedStorageEntry")
|
|
128
|
+
@dataclass
|
|
129
|
+
class SharedStorageEntry(DataType):
|
|
130
|
+
"""Struct for a single key-value pair in an origin's shared storage."""
|
|
131
|
+
key: str
|
|
132
|
+
value: str
|
|
133
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
134
|
+
FieldMeta('key', 'key', False, 'primitive'),
|
|
135
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
@register("Storage.SharedStorageMetadata")
|
|
140
|
+
@dataclass
|
|
141
|
+
class SharedStorageMetadata(DataType):
|
|
142
|
+
"""Details for an origin's shared storage."""
|
|
143
|
+
creation_time: Network_TimeSinceEpoch
|
|
144
|
+
length: int
|
|
145
|
+
remaining_budget: float
|
|
146
|
+
bytes_used: int
|
|
147
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
148
|
+
FieldMeta('creation_time', 'creationTime', False, 'primitive'),
|
|
149
|
+
FieldMeta('length', 'length', False, 'primitive'),
|
|
150
|
+
FieldMeta('remaining_budget', 'remainingBudget', False, 'primitive'),
|
|
151
|
+
FieldMeta('bytes_used', 'bytesUsed', False, 'primitive'),
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
@register("Storage.SharedStoragePrivateAggregationConfig")
|
|
156
|
+
@dataclass
|
|
157
|
+
class SharedStoragePrivateAggregationConfig(DataType):
|
|
158
|
+
"""
|
|
159
|
+
Represents a dictionary object passed in as privateAggregationConfig to
|
|
160
|
+
run or selectURL.
|
|
161
|
+
"""
|
|
162
|
+
filtering_id_max_bytes: int
|
|
163
|
+
aggregation_coordinator_origin: Optional[str] = None
|
|
164
|
+
context_id: Optional[str] = None
|
|
165
|
+
max_contributions: Optional[int] = None
|
|
166
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
167
|
+
FieldMeta('filtering_id_max_bytes', 'filteringIdMaxBytes', False, 'primitive'),
|
|
168
|
+
FieldMeta('aggregation_coordinator_origin', 'aggregationCoordinatorOrigin', True, 'primitive'),
|
|
169
|
+
FieldMeta('context_id', 'contextId', True, 'primitive'),
|
|
170
|
+
FieldMeta('max_contributions', 'maxContributions', True, 'primitive'),
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
@register("Storage.SharedStorageReportingMetadata")
|
|
175
|
+
@dataclass
|
|
176
|
+
class SharedStorageReportingMetadata(DataType):
|
|
177
|
+
"""Pair of reporting metadata details for a candidate URL for `selectURL()`."""
|
|
178
|
+
event_type: str
|
|
179
|
+
reporting_url: str
|
|
180
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
181
|
+
FieldMeta('event_type', 'eventType', False, 'primitive'),
|
|
182
|
+
FieldMeta('reporting_url', 'reportingUrl', False, 'primitive'),
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@register("Storage.SharedStorageUrlWithMetadata")
|
|
187
|
+
@dataclass
|
|
188
|
+
class SharedStorageUrlWithMetadata(DataType):
|
|
189
|
+
"""Bundles a candidate URL with its reporting metadata."""
|
|
190
|
+
url: str
|
|
191
|
+
reporting_metadata: List[SharedStorageReportingMetadata]
|
|
192
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
193
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
194
|
+
FieldMeta('reporting_metadata', 'reportingMetadata', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.SharedStorageReportingMetadata')),
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@register("Storage.SharedStorageAccessParams")
|
|
199
|
+
@dataclass
|
|
200
|
+
class SharedStorageAccessParams(DataType):
|
|
201
|
+
"""
|
|
202
|
+
Bundles the parameters for shared storage access events whose
|
|
203
|
+
presence/absence can vary according to SharedStorageAccessType.
|
|
204
|
+
"""
|
|
205
|
+
script_source_url: Optional[str] = None
|
|
206
|
+
data_origin: Optional[str] = None
|
|
207
|
+
operation_name: Optional[str] = None
|
|
208
|
+
operation_id: Optional[str] = None
|
|
209
|
+
keep_alive: Optional[bool] = None
|
|
210
|
+
private_aggregation_config: Optional[SharedStoragePrivateAggregationConfig] = None
|
|
211
|
+
serialized_data: Optional[str] = None
|
|
212
|
+
urls_with_metadata: Optional[List[SharedStorageUrlWithMetadata]] = None
|
|
213
|
+
urn_uuid: Optional[str] = None
|
|
214
|
+
key: Optional[str] = None
|
|
215
|
+
value: Optional[str] = None
|
|
216
|
+
ignore_if_present: Optional[bool] = None
|
|
217
|
+
worklet_ordinal: Optional[int] = None
|
|
218
|
+
worklet_target_id: Optional[Target_TargetID] = None
|
|
219
|
+
with_lock: Optional[str] = None
|
|
220
|
+
batch_update_id: Optional[str] = None
|
|
221
|
+
batch_size: Optional[int] = None
|
|
222
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
223
|
+
FieldMeta('script_source_url', 'scriptSourceUrl', True, 'primitive'),
|
|
224
|
+
FieldMeta('data_origin', 'dataOrigin', True, 'primitive'),
|
|
225
|
+
FieldMeta('operation_name', 'operationName', True, 'primitive'),
|
|
226
|
+
FieldMeta('operation_id', 'operationId', True, 'primitive'),
|
|
227
|
+
FieldMeta('keep_alive', 'keepAlive', True, 'primitive'),
|
|
228
|
+
FieldMeta('private_aggregation_config', 'privateAggregationConfig', True, 'object', ref='Storage.SharedStoragePrivateAggregationConfig'),
|
|
229
|
+
FieldMeta('serialized_data', 'serializedData', True, 'primitive'),
|
|
230
|
+
FieldMeta('urls_with_metadata', 'urlsWithMetadata', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.SharedStorageUrlWithMetadata')),
|
|
231
|
+
FieldMeta('urn_uuid', 'urnUuid', True, 'primitive'),
|
|
232
|
+
FieldMeta('key', 'key', True, 'primitive'),
|
|
233
|
+
FieldMeta('value', 'value', True, 'primitive'),
|
|
234
|
+
FieldMeta('ignore_if_present', 'ignoreIfPresent', True, 'primitive'),
|
|
235
|
+
FieldMeta('worklet_ordinal', 'workletOrdinal', True, 'primitive'),
|
|
236
|
+
FieldMeta('worklet_target_id', 'workletTargetId', True, 'primitive'),
|
|
237
|
+
FieldMeta('with_lock', 'withLock', True, 'primitive'),
|
|
238
|
+
FieldMeta('batch_update_id', 'batchUpdateId', True, 'primitive'),
|
|
239
|
+
FieldMeta('batch_size', 'batchSize', True, 'primitive'),
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
@register("Storage.StorageBucketsDurability")
|
|
244
|
+
class StorageBucketsDurability(str, Enum):
|
|
245
|
+
RELAXED = 'relaxed'
|
|
246
|
+
STRICT = 'strict'
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
@register("Storage.StorageBucket")
|
|
250
|
+
@dataclass
|
|
251
|
+
class StorageBucket(DataType):
|
|
252
|
+
storage_key: SerializedStorageKey
|
|
253
|
+
name: Optional[str] = None
|
|
254
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
255
|
+
FieldMeta('storage_key', 'storageKey', False, 'primitive'),
|
|
256
|
+
FieldMeta('name', 'name', True, 'primitive'),
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
@register("Storage.StorageBucketInfo")
|
|
261
|
+
@dataclass
|
|
262
|
+
class StorageBucketInfo(DataType):
|
|
263
|
+
bucket: StorageBucket
|
|
264
|
+
id: str
|
|
265
|
+
expiration: Network_TimeSinceEpoch
|
|
266
|
+
quota: float
|
|
267
|
+
persistent: bool
|
|
268
|
+
durability: StorageBucketsDurability
|
|
269
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
270
|
+
FieldMeta('bucket', 'bucket', False, 'object', ref='Storage.StorageBucket'),
|
|
271
|
+
FieldMeta('id', 'id', False, 'primitive'),
|
|
272
|
+
FieldMeta('expiration', 'expiration', False, 'primitive'),
|
|
273
|
+
FieldMeta('quota', 'quota', False, 'primitive'),
|
|
274
|
+
FieldMeta('persistent', 'persistent', False, 'primitive'),
|
|
275
|
+
FieldMeta('durability', 'durability', False, 'enum', ref='Storage.StorageBucketsDurability'),
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
@register("Storage.AttributionReportingSourceType")
|
|
280
|
+
class AttributionReportingSourceType(str, Enum):
|
|
281
|
+
NAVIGATION = 'navigation'
|
|
282
|
+
EVENT = 'event'
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
type UnsignedInt64AsBase10 = str
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
type UnsignedInt128AsBase16 = str
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
type SignedInt64AsBase10 = str
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
@register("Storage.AttributionReportingFilterDataEntry")
|
|
295
|
+
@dataclass
|
|
296
|
+
class AttributionReportingFilterDataEntry(DataType):
|
|
297
|
+
key: str
|
|
298
|
+
values: List[str]
|
|
299
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
300
|
+
FieldMeta('key', 'key', False, 'primitive'),
|
|
301
|
+
FieldMeta('values', 'values', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
@register("Storage.AttributionReportingFilterConfig")
|
|
306
|
+
@dataclass
|
|
307
|
+
class AttributionReportingFilterConfig(DataType):
|
|
308
|
+
filter_values: List[AttributionReportingFilterDataEntry]
|
|
309
|
+
lookback_window: Optional[int] = None
|
|
310
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
311
|
+
FieldMeta('filter_values', 'filterValues', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingFilterDataEntry')),
|
|
312
|
+
FieldMeta('lookback_window', 'lookbackWindow', True, 'primitive'),
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
@register("Storage.AttributionReportingFilterPair")
|
|
317
|
+
@dataclass
|
|
318
|
+
class AttributionReportingFilterPair(DataType):
|
|
319
|
+
filters: List[AttributionReportingFilterConfig]
|
|
320
|
+
not_filters: List[AttributionReportingFilterConfig]
|
|
321
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
322
|
+
FieldMeta('filters', 'filters', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingFilterConfig')),
|
|
323
|
+
FieldMeta('not_filters', 'notFilters', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingFilterConfig')),
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@register("Storage.AttributionReportingAggregationKeysEntry")
|
|
328
|
+
@dataclass
|
|
329
|
+
class AttributionReportingAggregationKeysEntry(DataType):
|
|
330
|
+
key: str
|
|
331
|
+
value: UnsignedInt128AsBase16
|
|
332
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
333
|
+
FieldMeta('key', 'key', False, 'primitive'),
|
|
334
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
@register("Storage.AttributionReportingEventReportWindows")
|
|
339
|
+
@dataclass
|
|
340
|
+
class AttributionReportingEventReportWindows(DataType):
|
|
341
|
+
start: int
|
|
342
|
+
ends: List[int]
|
|
343
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
344
|
+
FieldMeta('start', 'start', False, 'primitive'),
|
|
345
|
+
FieldMeta('ends', 'ends', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
@register("Storage.AttributionReportingTriggerDataMatching")
|
|
350
|
+
class AttributionReportingTriggerDataMatching(str, Enum):
|
|
351
|
+
EXACT = 'exact'
|
|
352
|
+
MODULUS = 'modulus'
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
@register("Storage.AttributionReportingAggregatableDebugReportingData")
|
|
356
|
+
@dataclass
|
|
357
|
+
class AttributionReportingAggregatableDebugReportingData(DataType):
|
|
358
|
+
key_piece: UnsignedInt128AsBase16
|
|
359
|
+
value: float
|
|
360
|
+
types: List[str]
|
|
361
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
362
|
+
FieldMeta('key_piece', 'keyPiece', False, 'primitive'),
|
|
363
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
364
|
+
FieldMeta('types', 'types', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
@register("Storage.AttributionReportingAggregatableDebugReportingConfig")
|
|
369
|
+
@dataclass
|
|
370
|
+
class AttributionReportingAggregatableDebugReportingConfig(DataType):
|
|
371
|
+
key_piece: UnsignedInt128AsBase16
|
|
372
|
+
debug_data: List[AttributionReportingAggregatableDebugReportingData]
|
|
373
|
+
budget: Optional[float] = None
|
|
374
|
+
aggregation_coordinator_origin: Optional[str] = None
|
|
375
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
376
|
+
FieldMeta('key_piece', 'keyPiece', False, 'primitive'),
|
|
377
|
+
FieldMeta('debug_data', 'debugData', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregatableDebugReportingData')),
|
|
378
|
+
FieldMeta('budget', 'budget', True, 'primitive'),
|
|
379
|
+
FieldMeta('aggregation_coordinator_origin', 'aggregationCoordinatorOrigin', True, 'primitive'),
|
|
380
|
+
)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
@register("Storage.AttributionScopesData")
|
|
384
|
+
@dataclass
|
|
385
|
+
class AttributionScopesData(DataType):
|
|
386
|
+
values: List[str]
|
|
387
|
+
limit: float
|
|
388
|
+
max_event_states: float
|
|
389
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
390
|
+
FieldMeta('values', 'values', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
391
|
+
FieldMeta('limit', 'limit', False, 'primitive'),
|
|
392
|
+
FieldMeta('max_event_states', 'maxEventStates', False, 'primitive'),
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
@register("Storage.AttributionReportingNamedBudgetDef")
|
|
397
|
+
@dataclass
|
|
398
|
+
class AttributionReportingNamedBudgetDef(DataType):
|
|
399
|
+
name: str
|
|
400
|
+
budget: int
|
|
401
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
402
|
+
FieldMeta('name', 'name', False, 'primitive'),
|
|
403
|
+
FieldMeta('budget', 'budget', False, 'primitive'),
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
@register("Storage.AttributionReportingSourceRegistration")
|
|
408
|
+
@dataclass
|
|
409
|
+
class AttributionReportingSourceRegistration(DataType):
|
|
410
|
+
time: Network_TimeSinceEpoch
|
|
411
|
+
expiry: int
|
|
412
|
+
trigger_data: List[float]
|
|
413
|
+
event_report_windows: AttributionReportingEventReportWindows
|
|
414
|
+
aggregatable_report_window: int
|
|
415
|
+
type_: AttributionReportingSourceType
|
|
416
|
+
source_origin: str
|
|
417
|
+
reporting_origin: str
|
|
418
|
+
destination_sites: List[str]
|
|
419
|
+
event_id: UnsignedInt64AsBase10
|
|
420
|
+
priority: SignedInt64AsBase10
|
|
421
|
+
filter_data: List[AttributionReportingFilterDataEntry]
|
|
422
|
+
aggregation_keys: List[AttributionReportingAggregationKeysEntry]
|
|
423
|
+
trigger_data_matching: AttributionReportingTriggerDataMatching
|
|
424
|
+
destination_limit_priority: SignedInt64AsBase10
|
|
425
|
+
aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig
|
|
426
|
+
max_event_level_reports: int
|
|
427
|
+
named_budgets: List[AttributionReportingNamedBudgetDef]
|
|
428
|
+
debug_reporting: bool
|
|
429
|
+
event_level_epsilon: float
|
|
430
|
+
debug_key: Optional[UnsignedInt64AsBase10] = None
|
|
431
|
+
scopes_data: Optional[AttributionScopesData] = None
|
|
432
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
433
|
+
FieldMeta('time', 'time', False, 'primitive'),
|
|
434
|
+
FieldMeta('expiry', 'expiry', False, 'primitive'),
|
|
435
|
+
FieldMeta('trigger_data', 'triggerData', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
436
|
+
FieldMeta('event_report_windows', 'eventReportWindows', False, 'object', ref='Storage.AttributionReportingEventReportWindows'),
|
|
437
|
+
FieldMeta('aggregatable_report_window', 'aggregatableReportWindow', False, 'primitive'),
|
|
438
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Storage.AttributionReportingSourceType'),
|
|
439
|
+
FieldMeta('source_origin', 'sourceOrigin', False, 'primitive'),
|
|
440
|
+
FieldMeta('reporting_origin', 'reportingOrigin', False, 'primitive'),
|
|
441
|
+
FieldMeta('destination_sites', 'destinationSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
442
|
+
FieldMeta('event_id', 'eventId', False, 'primitive'),
|
|
443
|
+
FieldMeta('priority', 'priority', False, 'primitive'),
|
|
444
|
+
FieldMeta('filter_data', 'filterData', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingFilterDataEntry')),
|
|
445
|
+
FieldMeta('aggregation_keys', 'aggregationKeys', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregationKeysEntry')),
|
|
446
|
+
FieldMeta('trigger_data_matching', 'triggerDataMatching', False, 'enum', ref='Storage.AttributionReportingTriggerDataMatching'),
|
|
447
|
+
FieldMeta('destination_limit_priority', 'destinationLimitPriority', False, 'primitive'),
|
|
448
|
+
FieldMeta('aggregatable_debug_reporting_config', 'aggregatableDebugReportingConfig', False, 'object', ref='Storage.AttributionReportingAggregatableDebugReportingConfig'),
|
|
449
|
+
FieldMeta('max_event_level_reports', 'maxEventLevelReports', False, 'primitive'),
|
|
450
|
+
FieldMeta('named_budgets', 'namedBudgets', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingNamedBudgetDef')),
|
|
451
|
+
FieldMeta('debug_reporting', 'debugReporting', False, 'primitive'),
|
|
452
|
+
FieldMeta('event_level_epsilon', 'eventLevelEpsilon', False, 'primitive'),
|
|
453
|
+
FieldMeta('debug_key', 'debugKey', True, 'primitive'),
|
|
454
|
+
FieldMeta('scopes_data', 'scopesData', True, 'object', ref='Storage.AttributionScopesData'),
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
@register("Storage.AttributionReportingSourceRegistrationResult")
|
|
459
|
+
class AttributionReportingSourceRegistrationResult(str, Enum):
|
|
460
|
+
SUCCESS = 'success'
|
|
461
|
+
INTERNALERROR = 'internalError'
|
|
462
|
+
INSUFFICIENTSOURCECAPACITY = 'insufficientSourceCapacity'
|
|
463
|
+
INSUFFICIENTUNIQUEDESTINATIONCAPACITY = 'insufficientUniqueDestinationCapacity'
|
|
464
|
+
EXCESSIVEREPORTINGORIGINS = 'excessiveReportingOrigins'
|
|
465
|
+
PROHIBITEDBYBROWSERPOLICY = 'prohibitedByBrowserPolicy'
|
|
466
|
+
SUCCESSNOISED = 'successNoised'
|
|
467
|
+
DESTINATIONREPORTINGLIMITREACHED = 'destinationReportingLimitReached'
|
|
468
|
+
DESTINATIONGLOBALLIMITREACHED = 'destinationGlobalLimitReached'
|
|
469
|
+
DESTINATIONBOTHLIMITSREACHED = 'destinationBothLimitsReached'
|
|
470
|
+
REPORTINGORIGINSPERSITELIMITREACHED = 'reportingOriginsPerSiteLimitReached'
|
|
471
|
+
EXCEEDSMAXCHANNELCAPACITY = 'exceedsMaxChannelCapacity'
|
|
472
|
+
EXCEEDSMAXSCOPESCHANNELCAPACITY = 'exceedsMaxScopesChannelCapacity'
|
|
473
|
+
EXCEEDSMAXTRIGGERSTATECARDINALITY = 'exceedsMaxTriggerStateCardinality'
|
|
474
|
+
EXCEEDSMAXEVENTSTATESLIMIT = 'exceedsMaxEventStatesLimit'
|
|
475
|
+
DESTINATIONPERDAYREPORTINGLIMITREACHED = 'destinationPerDayReportingLimitReached'
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
@register("Storage.AttributionReportingSourceRegistrationTimeConfig")
|
|
479
|
+
class AttributionReportingSourceRegistrationTimeConfig(str, Enum):
|
|
480
|
+
INCLUDE = 'include'
|
|
481
|
+
EXCLUDE = 'exclude'
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
@register("Storage.AttributionReportingAggregatableValueDictEntry")
|
|
485
|
+
@dataclass
|
|
486
|
+
class AttributionReportingAggregatableValueDictEntry(DataType):
|
|
487
|
+
key: str
|
|
488
|
+
value: float
|
|
489
|
+
filtering_id: UnsignedInt64AsBase10
|
|
490
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
491
|
+
FieldMeta('key', 'key', False, 'primitive'),
|
|
492
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
493
|
+
FieldMeta('filtering_id', 'filteringId', False, 'primitive'),
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
@register("Storage.AttributionReportingAggregatableValueEntry")
|
|
498
|
+
@dataclass
|
|
499
|
+
class AttributionReportingAggregatableValueEntry(DataType):
|
|
500
|
+
values: List[AttributionReportingAggregatableValueDictEntry]
|
|
501
|
+
filters: AttributionReportingFilterPair
|
|
502
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
503
|
+
FieldMeta('values', 'values', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregatableValueDictEntry')),
|
|
504
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
@register("Storage.AttributionReportingEventTriggerData")
|
|
509
|
+
@dataclass
|
|
510
|
+
class AttributionReportingEventTriggerData(DataType):
|
|
511
|
+
data: UnsignedInt64AsBase10
|
|
512
|
+
priority: SignedInt64AsBase10
|
|
513
|
+
filters: AttributionReportingFilterPair
|
|
514
|
+
dedup_key: Optional[UnsignedInt64AsBase10] = None
|
|
515
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
516
|
+
FieldMeta('data', 'data', False, 'primitive'),
|
|
517
|
+
FieldMeta('priority', 'priority', False, 'primitive'),
|
|
518
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
519
|
+
FieldMeta('dedup_key', 'dedupKey', True, 'primitive'),
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
@register("Storage.AttributionReportingAggregatableTriggerData")
|
|
524
|
+
@dataclass
|
|
525
|
+
class AttributionReportingAggregatableTriggerData(DataType):
|
|
526
|
+
key_piece: UnsignedInt128AsBase16
|
|
527
|
+
source_keys: List[str]
|
|
528
|
+
filters: AttributionReportingFilterPair
|
|
529
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
530
|
+
FieldMeta('key_piece', 'keyPiece', False, 'primitive'),
|
|
531
|
+
FieldMeta('source_keys', 'sourceKeys', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
532
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
533
|
+
)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
@register("Storage.AttributionReportingAggregatableDedupKey")
|
|
537
|
+
@dataclass
|
|
538
|
+
class AttributionReportingAggregatableDedupKey(DataType):
|
|
539
|
+
filters: AttributionReportingFilterPair
|
|
540
|
+
dedup_key: Optional[UnsignedInt64AsBase10] = None
|
|
541
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
542
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
543
|
+
FieldMeta('dedup_key', 'dedupKey', True, 'primitive'),
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
@register("Storage.AttributionReportingNamedBudgetCandidate")
|
|
548
|
+
@dataclass
|
|
549
|
+
class AttributionReportingNamedBudgetCandidate(DataType):
|
|
550
|
+
filters: AttributionReportingFilterPair
|
|
551
|
+
name: Optional[str] = None
|
|
552
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
553
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
554
|
+
FieldMeta('name', 'name', True, 'primitive'),
|
|
555
|
+
)
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
@register("Storage.AttributionReportingTriggerRegistration")
|
|
559
|
+
@dataclass
|
|
560
|
+
class AttributionReportingTriggerRegistration(DataType):
|
|
561
|
+
filters: AttributionReportingFilterPair
|
|
562
|
+
aggregatable_dedup_keys: List[AttributionReportingAggregatableDedupKey]
|
|
563
|
+
event_trigger_data: List[AttributionReportingEventTriggerData]
|
|
564
|
+
aggregatable_trigger_data: List[AttributionReportingAggregatableTriggerData]
|
|
565
|
+
aggregatable_values: List[AttributionReportingAggregatableValueEntry]
|
|
566
|
+
aggregatable_filtering_id_max_bytes: int
|
|
567
|
+
debug_reporting: bool
|
|
568
|
+
source_registration_time_config: AttributionReportingSourceRegistrationTimeConfig
|
|
569
|
+
aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig
|
|
570
|
+
scopes: List[str]
|
|
571
|
+
named_budgets: List[AttributionReportingNamedBudgetCandidate]
|
|
572
|
+
debug_key: Optional[UnsignedInt64AsBase10] = None
|
|
573
|
+
aggregation_coordinator_origin: Optional[str] = None
|
|
574
|
+
trigger_context_id: Optional[str] = None
|
|
575
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
576
|
+
FieldMeta('filters', 'filters', False, 'object', ref='Storage.AttributionReportingFilterPair'),
|
|
577
|
+
FieldMeta('aggregatable_dedup_keys', 'aggregatableDedupKeys', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregatableDedupKey')),
|
|
578
|
+
FieldMeta('event_trigger_data', 'eventTriggerData', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingEventTriggerData')),
|
|
579
|
+
FieldMeta('aggregatable_trigger_data', 'aggregatableTriggerData', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregatableTriggerData')),
|
|
580
|
+
FieldMeta('aggregatable_values', 'aggregatableValues', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingAggregatableValueEntry')),
|
|
581
|
+
FieldMeta('aggregatable_filtering_id_max_bytes', 'aggregatableFilteringIdMaxBytes', False, 'primitive'),
|
|
582
|
+
FieldMeta('debug_reporting', 'debugReporting', False, 'primitive'),
|
|
583
|
+
FieldMeta('source_registration_time_config', 'sourceRegistrationTimeConfig', False, 'enum', ref='Storage.AttributionReportingSourceRegistrationTimeConfig'),
|
|
584
|
+
FieldMeta('aggregatable_debug_reporting_config', 'aggregatableDebugReportingConfig', False, 'object', ref='Storage.AttributionReportingAggregatableDebugReportingConfig'),
|
|
585
|
+
FieldMeta('scopes', 'scopes', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
586
|
+
FieldMeta('named_budgets', 'namedBudgets', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Storage.AttributionReportingNamedBudgetCandidate')),
|
|
587
|
+
FieldMeta('debug_key', 'debugKey', True, 'primitive'),
|
|
588
|
+
FieldMeta('aggregation_coordinator_origin', 'aggregationCoordinatorOrigin', True, 'primitive'),
|
|
589
|
+
FieldMeta('trigger_context_id', 'triggerContextId', True, 'primitive'),
|
|
590
|
+
)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
@register("Storage.AttributionReportingEventLevelResult")
|
|
594
|
+
class AttributionReportingEventLevelResult(str, Enum):
|
|
595
|
+
SUCCESS = 'success'
|
|
596
|
+
SUCCESSDROPPEDLOWERPRIORITY = 'successDroppedLowerPriority'
|
|
597
|
+
INTERNALERROR = 'internalError'
|
|
598
|
+
NOCAPACITYFORATTRIBUTIONDESTINATION = 'noCapacityForAttributionDestination'
|
|
599
|
+
NOMATCHINGSOURCES = 'noMatchingSources'
|
|
600
|
+
DEDUPLICATED = 'deduplicated'
|
|
601
|
+
EXCESSIVEATTRIBUTIONS = 'excessiveAttributions'
|
|
602
|
+
PRIORITYTOOLOW = 'priorityTooLow'
|
|
603
|
+
NEVERATTRIBUTEDSOURCE = 'neverAttributedSource'
|
|
604
|
+
EXCESSIVEREPORTINGORIGINS = 'excessiveReportingOrigins'
|
|
605
|
+
NOMATCHINGSOURCEFILTERDATA = 'noMatchingSourceFilterData'
|
|
606
|
+
PROHIBITEDBYBROWSERPOLICY = 'prohibitedByBrowserPolicy'
|
|
607
|
+
NOMATCHINGCONFIGURATIONS = 'noMatchingConfigurations'
|
|
608
|
+
EXCESSIVEREPORTS = 'excessiveReports'
|
|
609
|
+
FALSELYATTRIBUTEDSOURCE = 'falselyAttributedSource'
|
|
610
|
+
REPORTWINDOWPASSED = 'reportWindowPassed'
|
|
611
|
+
NOTREGISTERED = 'notRegistered'
|
|
612
|
+
REPORTWINDOWNOTSTARTED = 'reportWindowNotStarted'
|
|
613
|
+
NOMATCHINGTRIGGERDATA = 'noMatchingTriggerData'
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
@register("Storage.AttributionReportingAggregatableResult")
|
|
617
|
+
class AttributionReportingAggregatableResult(str, Enum):
|
|
618
|
+
SUCCESS = 'success'
|
|
619
|
+
INTERNALERROR = 'internalError'
|
|
620
|
+
NOCAPACITYFORATTRIBUTIONDESTINATION = 'noCapacityForAttributionDestination'
|
|
621
|
+
NOMATCHINGSOURCES = 'noMatchingSources'
|
|
622
|
+
EXCESSIVEATTRIBUTIONS = 'excessiveAttributions'
|
|
623
|
+
EXCESSIVEREPORTINGORIGINS = 'excessiveReportingOrigins'
|
|
624
|
+
NOHISTOGRAMS = 'noHistograms'
|
|
625
|
+
INSUFFICIENTBUDGET = 'insufficientBudget'
|
|
626
|
+
INSUFFICIENTNAMEDBUDGET = 'insufficientNamedBudget'
|
|
627
|
+
NOMATCHINGSOURCEFILTERDATA = 'noMatchingSourceFilterData'
|
|
628
|
+
NOTREGISTERED = 'notRegistered'
|
|
629
|
+
PROHIBITEDBYBROWSERPOLICY = 'prohibitedByBrowserPolicy'
|
|
630
|
+
DEDUPLICATED = 'deduplicated'
|
|
631
|
+
REPORTWINDOWPASSED = 'reportWindowPassed'
|
|
632
|
+
EXCESSIVEREPORTS = 'excessiveReports'
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
@register("Storage.AttributionReportingReportResult")
|
|
636
|
+
class AttributionReportingReportResult(str, Enum):
|
|
637
|
+
SENT = 'sent'
|
|
638
|
+
PROHIBITED = 'prohibited'
|
|
639
|
+
FAILEDTOASSEMBLE = 'failedToAssemble'
|
|
640
|
+
EXPIRED = 'expired'
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
@register("Storage.RelatedWebsiteSet")
|
|
644
|
+
@dataclass
|
|
645
|
+
class RelatedWebsiteSet(DataType):
|
|
646
|
+
"""A single Related Website Set object."""
|
|
647
|
+
primary_sites: List[str]
|
|
648
|
+
associated_sites: List[str]
|
|
649
|
+
service_sites: List[str]
|
|
650
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
651
|
+
FieldMeta('primary_sites', 'primarySites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
652
|
+
FieldMeta('associated_sites', 'associatedSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
653
|
+
FieldMeta('service_sites', 'serviceSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
654
|
+
)
|
|
655
|
+
|
|
656
|
+
__all__ = ["AttributionReportingAggregatableDebugReportingConfig", "AttributionReportingAggregatableDebugReportingData", "AttributionReportingAggregatableDedupKey", "AttributionReportingAggregatableResult", "AttributionReportingAggregatableTriggerData", "AttributionReportingAggregatableValueDictEntry", "AttributionReportingAggregatableValueEntry", "AttributionReportingAggregationKeysEntry", "AttributionReportingEventLevelResult", "AttributionReportingEventReportWindows", "AttributionReportingEventTriggerData", "AttributionReportingFilterConfig", "AttributionReportingFilterDataEntry", "AttributionReportingFilterPair", "AttributionReportingNamedBudgetCandidate", "AttributionReportingNamedBudgetDef", "AttributionReportingReportResult", "AttributionReportingSourceRegistration", "AttributionReportingSourceRegistrationResult", "AttributionReportingSourceRegistrationTimeConfig", "AttributionReportingSourceType", "AttributionReportingTriggerDataMatching", "AttributionReportingTriggerRegistration", "AttributionScopesData", "InterestGroupAccessType", "InterestGroupAuctionEventType", "InterestGroupAuctionFetchType", "InterestGroupAuctionId", "RelatedWebsiteSet", "SerializedStorageKey", "SharedStorageAccessMethod", "SharedStorageAccessParams", "SharedStorageAccessScope", "SharedStorageEntry", "SharedStorageMetadata", "SharedStoragePrivateAggregationConfig", "SharedStorageReportingMetadata", "SharedStorageUrlWithMetadata", "SignedInt64AsBase10", "StorageBucket", "StorageBucketInfo", "StorageBucketsDurability", "StorageType", "TrustTokens", "UnsignedInt128AsBase16", "UnsignedInt64AsBase10", "UsageForType"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""The SystemInfo CDP domain (generated).
|
|
2
|
+
|
|
3
|
+
Importing ``SystemInfo`` from ``parsek_cdp.cdp`` gives a namespace with this
|
|
4
|
+
domain's events and types as attributes (``SystemInfo.SomeEvent`` /
|
|
5
|
+
``SystemInfo.SomeType``); commands run on a target via ``page.cdp.SystemInfo``.
|
|
6
|
+
"""
|
|
7
|
+
from . import events, functions, types
|
|
8
|
+
from .functions import SystemInfo
|
|
9
|
+
from .events import * # noqa: F401,F403 -- expose events on the namespace
|
|
10
|
+
from .types import * # noqa: F401,F403 -- expose types on the namespace
|
|
11
|
+
|
|
12
|
+
#: Protocol domain name (used by features that declare ``domains=(SystemInfo,)``).
|
|
13
|
+
DOMAIN = "SystemInfo"
|
|
14
|
+
|
|
15
|
+
__all__ = ["events", "functions", "types", "SystemInfo", "DOMAIN"]
|