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
AttributionReportingNamedBudgetCandidate
dataclass
Source code in zendriver/cdp/storage.py
filters: AttributionReportingFilterPair
instance-attribute
name: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(filters, name=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
AttributionReportingNamedBudgetDef
dataclass
Source code in zendriver/cdp/storage.py
budget: int
instance-attribute
name: str
instance-attribute
__init__(name, budget)
from_json(json)
classmethod
AttributionReportingReportResult
Bases: Enum
Source code in zendriver/cdp/storage.py
EXPIRED = 'expired'
class-attribute
instance-attribute
FAILED_TO_ASSEMBLE = 'failedToAssemble'
class-attribute
instance-attribute
PROHIBITED = 'prohibited'
class-attribute
instance-attribute
SENT = 'sent'
class-attribute
instance-attribute
from_json(json)
classmethod
AttributionReportingReportSent
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/storage.py
body: dict
instance-attribute
http_status_code: typing.Optional[int]
instance-attribute
net_error: typing.Optional[int]
instance-attribute
net_error_name: typing.Optional[str]
instance-attribute
result: AttributionReportingReportResult
instance-attribute
url: str
instance-attribute
__init__(url, body, result, net_error, net_error_name, http_status_code)
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
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
|
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
debug_reporting: bool
instance-attribute
destination_limit_priority: SignedInt64AsBase10
instance-attribute
destination_sites: typing.List[str]
instance-attribute
event_id: UnsignedInt64AsBase10
instance-attribute
event_level_epsilon: float
instance-attribute
expiry: int
instance-attribute
filter_data: typing.List[AttributionReportingFilterDataEntry]
instance-attribute
max_event_level_reports: int
instance-attribute
named_budgets: typing.List[AttributionReportingNamedBudgetDef]
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, named_budgets, debug_reporting, event_level_epsilon, 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
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 |
|
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
named_budgets: typing.List[AttributionReportingNamedBudgetCandidate]
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, named_budgets, 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
SharedStorageAccessMethod
Bases: Enum
Enum of shared storage access methods.
Source code in zendriver/cdp/storage.py
ADD_MODULE = 'addModule'
class-attribute
instance-attribute
APPEND = 'append'
class-attribute
instance-attribute
BATCH_UPDATE = 'batchUpdate'
class-attribute
instance-attribute
CLEAR = 'clear'
class-attribute
instance-attribute
CREATE_WORKLET = 'createWorklet'
class-attribute
instance-attribute
DELETE = 'delete'
class-attribute
instance-attribute
ENTRIES = 'entries'
class-attribute
instance-attribute
GET = 'get'
class-attribute
instance-attribute
KEYS = 'keys'
class-attribute
instance-attribute
LENGTH = 'length'
class-attribute
instance-attribute
REMAINING_BUDGET = 'remainingBudget'
class-attribute
instance-attribute
RUN = 'run'
class-attribute
instance-attribute
SELECT_URL = 'selectURL'
class-attribute
instance-attribute
SET_ = 'set'
class-attribute
instance-attribute
VALUES = 'values'
class-attribute
instance-attribute
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
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 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 |
|
batch_size: typing.Optional[int] = None
class-attribute
instance-attribute
batch_update_id: typing.Optional[str] = None
class-attribute
instance-attribute
data_origin: typing.Optional[str] = None
class-attribute
instance-attribute
ignore_if_present: typing.Optional[bool] = None
class-attribute
instance-attribute
keep_alive: 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
private_aggregation_config: typing.Optional[SharedStoragePrivateAggregationConfig] = 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
urn_uuid: typing.Optional[str] = None
class-attribute
instance-attribute
value: typing.Optional[str] = None
class-attribute
instance-attribute
with_lock: typing.Optional[str] = None
class-attribute
instance-attribute
worklet_id: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(script_source_url=None, data_origin=None, operation_name=None, keep_alive=None, private_aggregation_config=None, serialized_data=None, urls_with_metadata=None, urn_uuid=None, key=None, value=None, ignore_if_present=None, worklet_id=None, with_lock=None, batch_update_id=None, batch_size=None)
from_json(json)
classmethod
Source code in zendriver/cdp/storage.py
to_json()
Source code in zendriver/cdp/storage.py
SharedStorageAccessScope
Bases: Enum
Enum of shared storage access scopes.
Source code in zendriver/cdp/storage.py
HEADER = 'header'
class-attribute
instance-attribute
PROTECTED_AUDIENCE_WORKLET = 'protectedAudienceWorklet'
class-attribute
instance-attribute
SHARED_STORAGE_WORKLET = 'sharedStorageWorklet'
class-attribute
instance-attribute
WINDOW = 'window'
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
method: SharedStorageAccessMethod
instance-attribute
owner_origin: str
instance-attribute
owner_site: str
instance-attribute
params: SharedStorageAccessParams
instance-attribute
scope: SharedStorageAccessScope
instance-attribute
__init__(access_time, scope, method, main_frame_id, owner_origin, owner_site, 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
SharedStoragePrivateAggregationConfig
dataclass
Represents a dictionary object passed in as privateAggregationConfig to run or selectURL.
Source code in zendriver/cdp/storage.py
aggregation_coordinator_origin: typing.Optional[str] = None
class-attribute
instance-attribute
context_id: typing.Optional[str] = None
class-attribute
instance-attribute
filtering_id_max_bytes: int
instance-attribute
max_contributions: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(filtering_id_max_bytes, aggregation_coordinator_origin=None, context_id=None, max_contributions=None)
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
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_affected_urls_for_third_party_cookie_metadata(first_party_url, third_party_urls)
Returns the list of URLs from a page and its embedded resources that match existing grace period URL pattern rules. https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
first_party_url
|
str
|
The URL of the page currently being visited. |
required |
third_party_urls
|
List[str]
|
The list of embedded resource URLs from the page. |
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[str]]
|
Array of matching URLs. If there is a primary pattern match for the first- party URL, only the first-party URL is returned in the array. |
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_protected_audience_k_anonymity(owner, name, hashes)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner
|
str
|
|
required |
name
|
str
|
|
required |
hashes
|
List[str]
|
|
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 |