storage
AttributionReportingAggregatableDebugReportingConfig
dataclass
Source code in zendriver/cdp/storage.py
aggregation_coordinator_origin: typing.Optional[str] = None
class-attribute
instance-attribute
budget: typing.Optional[float] = None
class-attribute
instance-attribute
debug_data: typing.List[AttributionReportingAggregatableDebugReportingData]
instance-attribute
key_piece: UnsignedInt128AsBase16
instance-attribute
__init__(key_piece, debug_data, budget=None, aggregation_coordinator_origin=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
AttributionReportingAggregatableDebugReportingData
dataclass
Source code in zendriver/cdp/storage.py
key_piece: UnsignedInt128AsBase16
instance-attribute
types: typing.List[str]
instance-attribute
value: float
instance-attribute
__init__(key_piece, value, types)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingAggregatableDedupKey
dataclass
Source code in zendriver/cdp/storage.py
dedup_key: typing.Optional[UnsignedInt64AsBase10] = None
class-attribute
instance-attribute
filters: AttributionReportingFilterPair
instance-attribute
__init__(filters, dedup_key=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingAggregatableResult
Bases: Enum
Source code in zendriver/cdp/storage.py
DEDUPLICATED = 'deduplicated'
class-attribute
instance-attribute
EXCESSIVE_ATTRIBUTIONS = 'excessiveAttributions'
class-attribute
instance-attribute
EXCESSIVE_REPORTING_ORIGINS = 'excessiveReportingOrigins'
class-attribute
instance-attribute
EXCESSIVE_REPORTS = 'excessiveReports'
class-attribute
instance-attribute
INSUFFICIENT_BUDGET = 'insufficientBudget'
class-attribute
instance-attribute
INSUFFICIENT_NAMED_BUDGET = 'insufficientNamedBudget'
class-attribute
instance-attribute
INTERNAL_ERROR = 'internalError'
class-attribute
instance-attribute
NOT_REGISTERED = 'notRegistered'
class-attribute
instance-attribute
NO_CAPACITY_FOR_ATTRIBUTION_DESTINATION = 'noCapacityForAttributionDestination'
class-attribute
instance-attribute
NO_HISTOGRAMS = 'noHistograms'
class-attribute
instance-attribute
NO_MATCHING_SOURCES = 'noMatchingSources'
class-attribute
instance-attribute
NO_MATCHING_SOURCE_FILTER_DATA = 'noMatchingSourceFilterData'
class-attribute
instance-attribute
PROHIBITED_BY_BROWSER_POLICY = 'prohibitedByBrowserPolicy'
class-attribute
instance-attribute
REPORT_WINDOW_PASSED = 'reportWindowPassed'
class-attribute
instance-attribute
SUCCESS = 'success'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingAggregatableTriggerData
dataclass
Source code in zendriver/cdp/storage.py
filters: AttributionReportingFilterPair
instance-attribute
key_piece: UnsignedInt128AsBase16
instance-attribute
source_keys: typing.List[str]
instance-attribute
__init__(key_piece, source_keys, filters)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingAggregatableValueDictEntry
dataclass
Source code in zendriver/cdp/storage.py
filtering_id: UnsignedInt64AsBase10
instance-attribute
key: str
instance-attribute
value: float
instance-attribute
__init__(key, value, filtering_id)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingAggregatableValueEntry
dataclass
Source code in zendriver/cdp/storage.py
filters: AttributionReportingFilterPair
instance-attribute
values: typing.List[AttributionReportingAggregatableValueDictEntry]
instance-attribute
__init__(values, filters)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingAggregationKeysEntry
dataclass
Source code in zendriver/cdp/storage.py
key: str
instance-attribute
value: UnsignedInt128AsBase16
instance-attribute
__init__(key, value)
from_json(json)
classmethod
AttributionReportingEventLevelResult
Bases: Enum
Source code in zendriver/cdp/storage.py
DEDUPLICATED = 'deduplicated'
class-attribute
instance-attribute
EXCESSIVE_ATTRIBUTIONS = 'excessiveAttributions'
class-attribute
instance-attribute
EXCESSIVE_REPORTING_ORIGINS = 'excessiveReportingOrigins'
class-attribute
instance-attribute
EXCESSIVE_REPORTS = 'excessiveReports'
class-attribute
instance-attribute
FALSELY_ATTRIBUTED_SOURCE = 'falselyAttributedSource'
class-attribute
instance-attribute
INTERNAL_ERROR = 'internalError'
class-attribute
instance-attribute
NEVER_ATTRIBUTED_SOURCE = 'neverAttributedSource'
class-attribute
instance-attribute
NOT_REGISTERED = 'notRegistered'
class-attribute
instance-attribute
NO_CAPACITY_FOR_ATTRIBUTION_DESTINATION = 'noCapacityForAttributionDestination'
class-attribute
instance-attribute
NO_MATCHING_CONFIGURATIONS = 'noMatchingConfigurations'
class-attribute
instance-attribute
NO_MATCHING_SOURCES = 'noMatchingSources'
class-attribute
instance-attribute
NO_MATCHING_SOURCE_FILTER_DATA = 'noMatchingSourceFilterData'
class-attribute
instance-attribute
NO_MATCHING_TRIGGER_DATA = 'noMatchingTriggerData'
class-attribute
instance-attribute
PRIORITY_TOO_LOW = 'priorityTooLow'
class-attribute
instance-attribute
PROHIBITED_BY_BROWSER_POLICY = 'prohibitedByBrowserPolicy'
class-attribute
instance-attribute
REPORT_WINDOW_NOT_STARTED = 'reportWindowNotStarted'
class-attribute
instance-attribute
REPORT_WINDOW_PASSED = 'reportWindowPassed'
class-attribute
instance-attribute
SUCCESS = 'success'
class-attribute
instance-attribute
SUCCESS_DROPPED_LOWER_PRIORITY = 'successDroppedLowerPriority'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingEventReportWindows
dataclass
Source code in zendriver/cdp/storage.py
ends: typing.List[int]
instance-attribute
start: int
instance-attribute
__init__(start, ends)
from_json(json)
classmethod
AttributionReportingEventTriggerData
dataclass
Source code in zendriver/cdp/storage.py
data: UnsignedInt64AsBase10
instance-attribute
dedup_key: typing.Optional[UnsignedInt64AsBase10] = None
class-attribute
instance-attribute
filters: AttributionReportingFilterPair
instance-attribute
priority: SignedInt64AsBase10
instance-attribute
__init__(data, priority, filters, dedup_key=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
AttributionReportingFilterConfig
dataclass
Source code in zendriver/cdp/storage.py
filter_values: typing.List[AttributionReportingFilterDataEntry]
instance-attribute
lookback_window: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(filter_values, lookback_window=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingFilterDataEntry
dataclass
Source code in zendriver/cdp/storage.py
key: str
instance-attribute
values: typing.List[str]
instance-attribute
__init__(key, values)
from_json(json)
classmethod
AttributionReportingFilterPair
dataclass
Source code in zendriver/cdp/storage.py
filters: typing.List[AttributionReportingFilterConfig]
instance-attribute
not_filters: typing.List[AttributionReportingFilterConfig]
instance-attribute
__init__(filters, not_filters)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingSourceRegistered
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/storage.py
registration: AttributionReportingSourceRegistration
instance-attribute
result: AttributionReportingSourceRegistrationResult
instance-attribute
__init__(registration, result)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingSourceRegistration
dataclass
Source code in zendriver/cdp/storage.py
798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 |
|
aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig
instance-attribute
aggregatable_report_window: int
instance-attribute
aggregation_keys: typing.List[AttributionReportingAggregationKeysEntry]
instance-attribute
debug_key: typing.Optional[UnsignedInt64AsBase10] = None
class-attribute
instance-attribute
destination_limit_priority: SignedInt64AsBase10
instance-attribute
destination_sites: typing.List[str]
instance-attribute
event_id: UnsignedInt64AsBase10
instance-attribute
expiry: int
instance-attribute
filter_data: typing.List[AttributionReportingFilterDataEntry]
instance-attribute
max_event_level_reports: int
instance-attribute
priority: SignedInt64AsBase10
instance-attribute
reporting_origin: str
instance-attribute
scopes_data: typing.Optional[AttributionScopesData] = None
class-attribute
instance-attribute
source_origin: str
instance-attribute
time: network.TimeSinceEpoch
instance-attribute
trigger_data_matching: AttributionReportingTriggerDataMatching
instance-attribute
trigger_specs: typing.List[AttributionReportingTriggerSpec]
instance-attribute
type_: AttributionReportingSourceType
instance-attribute
__init__(time, expiry, trigger_specs, aggregatable_report_window, type_, source_origin, reporting_origin, destination_sites, event_id, priority, filter_data, aggregation_keys, trigger_data_matching, destination_limit_priority, aggregatable_debug_reporting_config, max_event_level_reports, debug_key=None, scopes_data=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
AttributionReportingSourceRegistrationResult
Bases: Enum
Source code in zendriver/cdp/storage.py
DESTINATION_BOTH_LIMITS_REACHED = 'destinationBothLimitsReached'
class-attribute
instance-attribute
DESTINATION_GLOBAL_LIMIT_REACHED = 'destinationGlobalLimitReached'
class-attribute
instance-attribute
DESTINATION_PER_DAY_REPORTING_LIMIT_REACHED = 'destinationPerDayReportingLimitReached'
class-attribute
instance-attribute
DESTINATION_REPORTING_LIMIT_REACHED = 'destinationReportingLimitReached'
class-attribute
instance-attribute
EXCEEDS_MAX_CHANNEL_CAPACITY = 'exceedsMaxChannelCapacity'
class-attribute
instance-attribute
EXCEEDS_MAX_EVENT_STATES_LIMIT = 'exceedsMaxEventStatesLimit'
class-attribute
instance-attribute
EXCEEDS_MAX_SCOPES_CHANNEL_CAPACITY = 'exceedsMaxScopesChannelCapacity'
class-attribute
instance-attribute
EXCEEDS_MAX_TRIGGER_STATE_CARDINALITY = 'exceedsMaxTriggerStateCardinality'
class-attribute
instance-attribute
EXCESSIVE_REPORTING_ORIGINS = 'excessiveReportingOrigins'
class-attribute
instance-attribute
INSUFFICIENT_SOURCE_CAPACITY = 'insufficientSourceCapacity'
class-attribute
instance-attribute
INSUFFICIENT_UNIQUE_DESTINATION_CAPACITY = 'insufficientUniqueDestinationCapacity'
class-attribute
instance-attribute
INTERNAL_ERROR = 'internalError'
class-attribute
instance-attribute
PROHIBITED_BY_BROWSER_POLICY = 'prohibitedByBrowserPolicy'
class-attribute
instance-attribute
REPORTING_ORIGINS_PER_SITE_LIMIT_REACHED = 'reportingOriginsPerSiteLimitReached'
class-attribute
instance-attribute
SUCCESS = 'success'
class-attribute
instance-attribute
SUCCESS_NOISED = 'successNoised'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingSourceRegistrationTimeConfig
Bases: Enum
Source code in zendriver/cdp/storage.py
EXCLUDE = 'exclude'
class-attribute
instance-attribute
INCLUDE = 'include'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingSourceType
Bases: Enum
Source code in zendriver/cdp/storage.py
EVENT = 'event'
class-attribute
instance-attribute
NAVIGATION = 'navigation'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingTriggerDataMatching
Bases: Enum
Source code in zendriver/cdp/storage.py
EXACT = 'exact'
class-attribute
instance-attribute
MODULUS = 'modulus'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingTriggerRegistered
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/storage.py
aggregatable: AttributionReportingAggregatableResult
instance-attribute
event_level: AttributionReportingEventLevelResult
instance-attribute
registration: AttributionReportingTriggerRegistration
instance-attribute
__init__(registration, event_level, aggregatable)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingTriggerRegistration
dataclass
Source code in zendriver/cdp/storage.py
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 |
|
aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig
instance-attribute
aggregatable_dedup_keys: typing.List[AttributionReportingAggregatableDedupKey]
instance-attribute
aggregatable_filtering_id_max_bytes: int
instance-attribute
aggregatable_trigger_data: typing.List[AttributionReportingAggregatableTriggerData]
instance-attribute
aggregatable_values: typing.List[AttributionReportingAggregatableValueEntry]
instance-attribute
aggregation_coordinator_origin: typing.Optional[str] = None
class-attribute
instance-attribute
debug_key: typing.Optional[UnsignedInt64AsBase10] = None
class-attribute
instance-attribute
debug_reporting: bool
instance-attribute
event_trigger_data: typing.List[AttributionReportingEventTriggerData]
instance-attribute
filters: AttributionReportingFilterPair
instance-attribute
scopes: typing.List[str]
instance-attribute
source_registration_time_config: AttributionReportingSourceRegistrationTimeConfig
instance-attribute
trigger_context_id: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(filters, aggregatable_dedup_keys, event_trigger_data, aggregatable_trigger_data, aggregatable_values, aggregatable_filtering_id_max_bytes, debug_reporting, source_registration_time_config, aggregatable_debug_reporting_config, scopes, debug_key=None, aggregation_coordinator_origin=None, trigger_context_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
AttributionReportingTriggerSpec
dataclass
Source code in zendriver/cdp/storage.py
event_report_windows: AttributionReportingEventReportWindows
instance-attribute
trigger_data: typing.List[float]
instance-attribute
__init__(trigger_data, event_report_windows)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionScopesData
dataclass
Source code in zendriver/cdp/storage.py
limit: float
instance-attribute
max_event_states: float
instance-attribute
values: typing.List[str]
instance-attribute
__init__(values, limit, max_event_states)
from_json(json)
classmethod
CacheStorageContentUpdated
dataclass
A cache's contents have been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
cache_name: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id, cache_name)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
CacheStorageListUpdated
dataclass
A cache has been added/deleted.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id)
IndexedDBContentUpdated
dataclass
The origin's IndexedDB object store has been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
database_name: str
instance-attribute
object_store_name: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id, database_name, object_store_name)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
IndexedDBListUpdated
dataclass
The origin's IndexedDB database list has been modified.
Source code in zendriver/cdp/storage.py
bucket_id: str
instance-attribute
origin: str
instance-attribute
storage_key: str
instance-attribute
__init__(origin, storage_key, bucket_id)
InterestGroupAccessType
Bases: Enum
Enum of interest group access types.
Source code in zendriver/cdp/storage.py
ADDITIONAL_BID = 'additionalBid'
class-attribute
instance-attribute
ADDITIONAL_BID_WIN = 'additionalBidWin'
class-attribute
instance-attribute
BID = 'bid'
class-attribute
instance-attribute
CLEAR = 'clear'
class-attribute
instance-attribute
JOIN = 'join'
class-attribute
instance-attribute
LEAVE = 'leave'
class-attribute
instance-attribute
LOADED = 'loaded'
class-attribute
instance-attribute
TOP_LEVEL_ADDITIONAL_BID = 'topLevelAdditionalBid'
class-attribute
instance-attribute
TOP_LEVEL_BID = 'topLevelBid'
class-attribute
instance-attribute
UPDATE = 'update'
class-attribute
instance-attribute
WIN = 'win'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAccessed
dataclass
One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.
Source code in zendriver/cdp/storage.py
access_time: network.TimeSinceEpoch
instance-attribute
bid: typing.Optional[float]
instance-attribute
bid_currency: typing.Optional[str]
instance-attribute
component_seller_origin: typing.Optional[str]
instance-attribute
name: str
instance-attribute
owner_origin: str
instance-attribute
type_: InterestGroupAccessType
instance-attribute
unique_auction_id: typing.Optional[InterestGroupAuctionId]
instance-attribute
__init__(access_time, type_, owner_origin, name, component_seller_origin, bid, bid_currency, unique_auction_id)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
InterestGroupAuctionEventOccurred
dataclass
An auction involving interest groups is taking place. These events are target-specific.
Source code in zendriver/cdp/storage.py
auction_config: typing.Optional[dict]
instance-attribute
event_time: network.TimeSinceEpoch
instance-attribute
parent_auction_id: typing.Optional[InterestGroupAuctionId]
instance-attribute
type_: InterestGroupAuctionEventType
instance-attribute
unique_auction_id: InterestGroupAuctionId
instance-attribute
__init__(event_time, type_, unique_auction_id, parent_auction_id, auction_config)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
InterestGroupAuctionEventType
Bases: Enum
Enum of auction events.
Source code in zendriver/cdp/storage.py
CONFIG_RESOLVED = 'configResolved'
class-attribute
instance-attribute
STARTED = 'started'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAuctionFetchType
Bases: Enum
Enum of network fetches auctions can do.
Source code in zendriver/cdp/storage.py
BIDDER_JS = 'bidderJs'
class-attribute
instance-attribute
BIDDER_TRUSTED_SIGNALS = 'bidderTrustedSignals'
class-attribute
instance-attribute
BIDDER_WASM = 'bidderWasm'
class-attribute
instance-attribute
SELLER_JS = 'sellerJs'
class-attribute
instance-attribute
SELLER_TRUSTED_SIGNALS = 'sellerTrustedSignals'
class-attribute
instance-attribute
from_json(json)
classmethod
InterestGroupAuctionId
Bases: str
Protected audience interest group auction identifier.
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
InterestGroupAuctionNetworkRequestCreated
dataclass
Specifies which auctions a particular network fetch may be related to, and in what role. Note that it is not ordered with respect to Network.requestWillBeSent (but will happen before loadingFinished loadingFailed).
Source code in zendriver/cdp/storage.py
auctions: typing.List[InterestGroupAuctionId]
instance-attribute
request_id: network.RequestId
instance-attribute
type_: InterestGroupAuctionFetchType
instance-attribute
__init__(type_, request_id, auctions)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
RelatedWebsiteSet
dataclass
A single Related Website Set object.
Source code in zendriver/cdp/storage.py
associated_sites: typing.List[str]
instance-attribute
primary_sites: typing.List[str]
instance-attribute
service_sites: typing.List[str]
instance-attribute
__init__(primary_sites, associated_sites, service_sites)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SerializedStorageKey
Bases: str
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
SharedStorageAccessParams
dataclass
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.
Source code in zendriver/cdp/storage.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
|
ignore_if_present: typing.Optional[bool] = None
class-attribute
instance-attribute
key: typing.Optional[str] = None
class-attribute
instance-attribute
operation_name: typing.Optional[str] = None
class-attribute
instance-attribute
script_source_url: typing.Optional[str] = None
class-attribute
instance-attribute
serialized_data: typing.Optional[str] = None
class-attribute
instance-attribute
urls_with_metadata: typing.Optional[typing.List[SharedStorageUrlWithMetadata]] = None
class-attribute
instance-attribute
value: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(script_source_url=None, operation_name=None, serialized_data=None, urls_with_metadata=None, key=None, value=None, ignore_if_present=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStorageAccessType
Bases: Enum
Enum of shared storage access types.
Source code in zendriver/cdp/storage.py
DOCUMENT_ADD_MODULE = 'documentAddModule'
class-attribute
instance-attribute
DOCUMENT_APPEND = 'documentAppend'
class-attribute
instance-attribute
DOCUMENT_CLEAR = 'documentClear'
class-attribute
instance-attribute
DOCUMENT_DELETE = 'documentDelete'
class-attribute
instance-attribute
DOCUMENT_GET = 'documentGet'
class-attribute
instance-attribute
DOCUMENT_RUN = 'documentRun'
class-attribute
instance-attribute
DOCUMENT_SELECT_URL = 'documentSelectURL'
class-attribute
instance-attribute
DOCUMENT_SET = 'documentSet'
class-attribute
instance-attribute
HEADER_APPEND = 'headerAppend'
class-attribute
instance-attribute
HEADER_CLEAR = 'headerClear'
class-attribute
instance-attribute
HEADER_DELETE = 'headerDelete'
class-attribute
instance-attribute
HEADER_SET = 'headerSet'
class-attribute
instance-attribute
WORKLET_APPEND = 'workletAppend'
class-attribute
instance-attribute
WORKLET_CLEAR = 'workletClear'
class-attribute
instance-attribute
WORKLET_DELETE = 'workletDelete'
class-attribute
instance-attribute
WORKLET_ENTRIES = 'workletEntries'
class-attribute
instance-attribute
WORKLET_GET = 'workletGet'
class-attribute
instance-attribute
WORKLET_KEYS = 'workletKeys'
class-attribute
instance-attribute
WORKLET_LENGTH = 'workletLength'
class-attribute
instance-attribute
WORKLET_REMAINING_BUDGET = 'workletRemainingBudget'
class-attribute
instance-attribute
WORKLET_SET = 'workletSet'
class-attribute
instance-attribute
from_json(json)
classmethod
SharedStorageAccessed
dataclass
Shared storage was accessed by the associated page. The following parameters are included in all events.
Source code in zendriver/cdp/storage.py
access_time: network.TimeSinceEpoch
instance-attribute
main_frame_id: page.FrameId
instance-attribute
owner_origin: str
instance-attribute
params: SharedStorageAccessParams
instance-attribute
type_: SharedStorageAccessType
instance-attribute
__init__(access_time, type_, main_frame_id, owner_origin, params)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
SharedStorageEntry
dataclass
Struct for a single key-value pair in an origin's shared storage.
Source code in zendriver/cdp/storage.py
key: str
instance-attribute
value: str
instance-attribute
__init__(key, value)
from_json(json)
classmethod
SharedStorageMetadata
dataclass
Details for an origin's shared storage.
Source code in zendriver/cdp/storage.py
bytes_used: int
instance-attribute
creation_time: network.TimeSinceEpoch
instance-attribute
length: int
instance-attribute
remaining_budget: float
instance-attribute
__init__(creation_time, length, remaining_budget, bytes_used)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStorageReportingMetadata
dataclass
Pair of reporting metadata details for a candidate URL for selectURL()
.
Source code in zendriver/cdp/storage.py
event_type: str
instance-attribute
reporting_url: str
instance-attribute
__init__(event_type, reporting_url)
from_json(json)
classmethod
SharedStorageUrlWithMetadata
dataclass
Bundles a candidate URL with its reporting metadata.
Source code in zendriver/cdp/storage.py
reporting_metadata: typing.List[SharedStorageReportingMetadata]
instance-attribute
url: str
instance-attribute
__init__(url, reporting_metadata)
from_json(json)
classmethod
SignedInt64AsBase10
Bases: str
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
StorageBucket
dataclass
Source code in zendriver/cdp/storage.py
name: typing.Optional[str] = None
class-attribute
instance-attribute
storage_key: SerializedStorageKey
instance-attribute
__init__(storage_key, name=None)
from_json(json)
classmethod
StorageBucketCreatedOrUpdated
dataclass
Source code in zendriver/cdp/storage.py
bucket_info: StorageBucketInfo
instance-attribute
__init__(bucket_info)
StorageBucketDeleted
dataclass
Source code in zendriver/cdp/storage.py
StorageBucketInfo
dataclass
Source code in zendriver/cdp/storage.py
bucket: StorageBucket
instance-attribute
durability: StorageBucketsDurability
instance-attribute
expiration: network.TimeSinceEpoch
instance-attribute
id_: str
instance-attribute
persistent: bool
instance-attribute
quota: float
instance-attribute
__init__(bucket, id_, expiration, quota, persistent, durability)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
StorageBucketsDurability
Bases: Enum
Source code in zendriver/cdp/storage.py
RELAXED = 'relaxed'
class-attribute
instance-attribute
STRICT = 'strict'
class-attribute
instance-attribute
from_json(json)
classmethod
StorageType
Bases: Enum
Enum of possible storage types.
Source code in zendriver/cdp/storage.py
ALL_ = 'all'
class-attribute
instance-attribute
APPCACHE = 'appcache'
class-attribute
instance-attribute
CACHE_STORAGE = 'cache_storage'
class-attribute
instance-attribute
COOKIES = 'cookies'
class-attribute
instance-attribute
FILE_SYSTEMS = 'file_systems'
class-attribute
instance-attribute
INDEXEDDB = 'indexeddb'
class-attribute
instance-attribute
INTEREST_GROUPS = 'interest_groups'
class-attribute
instance-attribute
LOCAL_STORAGE = 'local_storage'
class-attribute
instance-attribute
OTHER = 'other'
class-attribute
instance-attribute
SERVICE_WORKERS = 'service_workers'
class-attribute
instance-attribute
SHADER_CACHE = 'shader_cache'
class-attribute
instance-attribute
SHARED_STORAGE = 'shared_storage'
class-attribute
instance-attribute
STORAGE_BUCKETS = 'storage_buckets'
class-attribute
instance-attribute
WEBSQL = 'websql'
class-attribute
instance-attribute
from_json(json)
classmethod
TrustTokens
dataclass
Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.
Source code in zendriver/cdp/storage.py
count: float
instance-attribute
issuer_origin: str
instance-attribute
__init__(issuer_origin, count)
from_json(json)
classmethod
UnsignedInt128AsBase16
Bases: str
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
UnsignedInt64AsBase10
Bases: str
Source code in zendriver/cdp/storage.py
__repr__()
from_json(json)
classmethod
UsageForType
dataclass
Usage for a storage type.
Source code in zendriver/cdp/storage.py
storage_type: StorageType
instance-attribute
usage: float
instance-attribute
__init__(storage_type, usage)
from_json(json)
classmethod
clear_cookies(browser_context_id=None)
Clears cookies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Source code in zendriver/cdp/storage.py
clear_data_for_origin(origin, storage_types)
Clears storage for origin.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
storage_types
|
str
|
Comma separated list of StorageType to clear. |
required |
Source code in zendriver/cdp/storage.py
clear_data_for_storage_key(storage_key, storage_types)
Clears storage for storage key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
storage_types
|
str
|
Comma separated list of StorageType to clear. |
required |
Source code in zendriver/cdp/storage.py
clear_shared_storage_entries(owner_origin)
Clears all entries for a given origin's shared storage.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
clear_trust_tokens(issuer_origin)
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
issuer_origin
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
True if any tokens were deleted, false otherwise. |
Source code in zendriver/cdp/storage.py
delete_shared_storage_entry(owner_origin, key)
Deletes entry for key
(if it exists) for a given origin's shared storage.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
key
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
delete_storage_bucket(bucket)
Deletes the Storage Bucket with the given storage key and bucket name.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bucket
|
StorageBucket
|
|
required |
Source code in zendriver/cdp/storage.py
get_cookies(browser_context_id=None)
Returns all browser cookies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Cookie]]
|
Array of cookie objects. |
Source code in zendriver/cdp/storage.py
get_interest_group_details(owner_origin, name)
Gets details for a named interest group.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
name
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, dict]
|
This largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin. |
Source code in zendriver/cdp/storage.py
get_related_website_sets()
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.
EXPERIMENTAL
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[RelatedWebsiteSet]]
|
|
Source code in zendriver/cdp/storage.py
get_shared_storage_entries(owner_origin)
Gets the entries in an given origin's shared storage.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[SharedStorageEntry]]
|
|
Source code in zendriver/cdp/storage.py
get_shared_storage_metadata(owner_origin)
Gets metadata for an origin's shared storage.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SharedStorageMetadata]
|
|
Source code in zendriver/cdp/storage.py
get_storage_key_for_frame(frame_id)
Returns a storage key given a frame id.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frame_id
|
FrameId
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SerializedStorageKey]
|
|
Source code in zendriver/cdp/storage.py
get_trust_tokens()
Returns the number of stored Trust Tokens per issuer for the current browsing context.
EXPERIMENTAL
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[TrustTokens]]
|
|
Source code in zendriver/cdp/storage.py
get_usage_and_quota(origin)
Returns usage and quota in bytes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[float, float, bool, List[UsageForType]]]
|
A tuple with the following items: 0. usage - Storage usage (bytes). 1. quota - Storage quota (bytes). 2. overrideActive - Whether or not the origin has an active storage quota override 3. usageBreakdown - Storage usage per type (bytes). |
Source code in zendriver/cdp/storage.py
override_quota_for_origin(origin, quota_size=None)
Override quota for the specified origin
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
quota_size
|
Optional[float]
|
(Optional) 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). |
None
|
Source code in zendriver/cdp/storage.py
reset_shared_storage_budget(owner_origin)
Resets the budget for ownerOrigin
by clearing all budget withdrawals.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
Source code in zendriver/cdp/storage.py
run_bounce_tracking_mitigations()
Deletes state for sites identified as potential bounce trackers, immediately.
EXPERIMENTAL
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[str]]
|
|
Source code in zendriver/cdp/storage.py
send_pending_attribution_reports()
Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
EXPERIMENTAL
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, int]
|
The number of reports that were sent. |
Source code in zendriver/cdp/storage.py
set_attribution_reporting_local_testing_mode(enabled)
https://wicg.github.io/attribution-reporting-api/
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enabled
|
bool
|
If enabled, noise is suppressed and reports are sent immediately. |
required |
Source code in zendriver/cdp/storage.py
set_attribution_reporting_tracking(enable)
Enables/disables issuing of Attribution Reporting events.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_cookies(cookies, browser_context_id=None)
Sets given cookies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cookies
|
List[CookieParam]
|
Cookies to be set. |
required |
browser_context_id
|
Optional[BrowserContextID]
|
(Optional) Browser context to use when called on the browser endpoint. |
None
|
Source code in zendriver/cdp/storage.py
set_interest_group_auction_tracking(enable)
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_interest_group_tracking(enable)
Enables/Disables issuing of interestGroupAccessed events.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_shared_storage_entry(owner_origin, key, value, ignore_if_present=None)
Sets entry with key
and value
for a given origin's shared storage.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner_origin
|
str
|
|
required |
key
|
str
|
|
required |
value
|
str
|
|
required |
ignore_if_present
|
Optional[bool]
|
(Optional) If |
None
|
Source code in zendriver/cdp/storage.py
set_shared_storage_tracking(enable)
Enables/disables issuing of sharedStorageAccessed events.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
set_storage_bucket_tracking(storage_key, enable)
Set tracking for a storage key's buckets.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
|
required |
enable
|
bool
|
|
required |
Source code in zendriver/cdp/storage.py
track_cache_storage_for_origin(origin)
Registers origin to be notified when an update occurs to its cache storage list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
track_cache_storage_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its cache storage list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
track_indexed_db_for_origin(origin)
Registers origin to be notified when an update occurs to its IndexedDB.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
track_indexed_db_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its IndexedDB.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
untrack_cache_storage_for_origin(origin)
Unregisters origin from receiving notifications for cache storage.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
untrack_cache_storage_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for cache storage.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
Storage key. |
required |
Source code in zendriver/cdp/storage.py
untrack_indexed_db_for_origin(origin)
Unregisters origin from receiving notifications for IndexedDB.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
origin
|
str
|
Security origin. |
required |
Source code in zendriver/cdp/storage.py
untrack_indexed_db_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for IndexedDB.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_key
|
str
|
Storage key. |
required |