跳到主要内容

Storage🧪

✅️️ Methods

🔨Storage.clearCookies

清除Cookie。

EN
Clears cookies.
参数必填标记类型描述原文
browserContextIdBrowser.BrowserContextID在浏览器端点上调用时使用的浏览器上下文。
ENBrowser context to use when called on the browser endpoint.

🔨Storage.clearDataForOrigin

清除源站存储。

EN
Clears storage for origin.
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.
storageTypes✔️string清除的存储类型列表,以逗号分隔。
ENComma separated list of StorageType to clear.

🔨Storage.clearDataForStorageKey

清除存储键的存储数据。

EN
Clears storage for storage key.
参数必填标记类型描述原文
storageKey✔️string存储键。
ENStorage key.
storageTypes✔️string清除的存储类型列表,以逗号分隔。
ENComma separated list of StorageType to clear.

🔨Storage.getCookies

返回所有浏览器Cookie。

EN
Returns all browser cookies.
参数必填标记类型描述原文
browserContextIdBrowser.BrowserContextID在浏览器端点调用时使用的浏览器上下文。
ENBrowser context to use when called on the browser endpoint.
返回对象类型描述原文
cookiesarray[Network.Cookie]Cookie 对象的数组。
ENArray of cookie objects.

🔨Storage.getUsageAndQuota

返回使用量和配额(以字节为单位)。

EN
Returns usage and quota in bytes.
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.
返回对象类型描述原文
usagenumber存储使用量(字节)。
ENStorage usage (bytes).
quotanumber存储配额(字节)。
ENStorage quota (bytes).
overrideActiveboolean该源点是否具有活跃的存储配额覆盖
ENWhether or not the origin has an active storage quota override
usageBreakdownarray[UsageForType]每种类型的存储使用量(字节)。
ENStorage usage per type (bytes).

🔨Storage.setCookies

设置给定的cookies。

EN
Sets given cookies.
参数必填标记类型描述原文
cookies✔️array[Network.CookieParam]要设置的 Cookies。
ENCookies to be set.
browserContextIdBrowser.BrowserContextID当在浏览器端点调用时使用的浏览器上下文。
ENBrowser context to use when called on the browser endpoint.

🔨Storage.setProtectedAudienceKAnonymity

参数必填标记类型描述原文
owner✔️string
name✔️string
hashes✔️array[string]

🔨Storage.trackCacheStorageForOrigin

当缓存存储列表发生更新时,注册源以接收通知。

EN
Registers origin to be notified when an update occurs to its cache storage list.
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.

🔨Storage.trackCacheStorageForStorageKey

注册存储密钥,以便在其缓存存储列表发生更新时接收通知。

EN
Registers storage key to be notified when an update occurs to its cache storage list.
参数必填标记类型描述原文
storageKey✔️string存储键。
ENStorage key.

🔨Storage.trackIndexedDBForOrigin

当''和``中的内容发生更新时,注册来源以接收其IndexedDB的通知。

EN
Registers origin to be notified when an update occurs to its IndexedDB.
参数必填标记类型描述原文
origin✔️string安全源。
ENSecurity origin.

🔨Storage.trackIndexedDBForStorageKey

当''和``中的内容发生更新时,注册存储密钥以接收其IndexedDB的通知。

EN
Registers storage key to be notified when an update occurs to its IndexedDB.
参数必填标记类型描述原文
storageKey✔️string存储键。
ENStorage key.

🔨Storage.untrackCacheStorageForOrigin

取消注册源,使其不再接收缓存存储的通知。

EN
Unregisters origin from receiving notifications for cache storage.
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.

🔨Storage.untrackCacheStorageForStorageKey

取消注册存储密钥,使其不再接收缓存存储的通知。

EN
Unregisters storage key from receiving notifications for cache storage.
参数必填标记类型描述原文
storageKey✔️string存储键。
ENStorage key.

🔨Storage.untrackIndexedDBForOrigin

取消注册源以接收 IndexedDB 的通知。

EN
Unregisters origin from receiving notifications for IndexedDB.
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.

🔨Storage.untrackIndexedDBForStorageKey

从接收 IndexedDB 通知中取消注册存储密钥。

EN
Unregisters storage key from receiving notifications for IndexedDB.
参数必填标记类型描述原文
storageKey✔️string存储键。
ENStorage key.

🔨Storage.getStorageKeyForFrame❌️

给定一个帧ID,返回一个存储密钥。已弃用。请改用Storage.getStorageKey。

EN
Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.
参数必填标记类型描述原文
frameId✔️Page.FrameId
返回对象类型描述原文
storageKeySerializedStorageKey

🔨Storage.clearSharedStorageEntries🧪

清除给定来源的共享存储中的所有条目。

EN
Clears all entries for a given origin's shared storage.
参数必填标记类型描述原文
ownerOrigin✔️string

🔨Storage.clearTrustTokens🧪

移除由指定issuerOrigin颁发的所有Trust Tokens。其他存储数据(包括该发行方的赎回记录)将保持不变。

EN
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
参数必填标记类型描述原文
issuerOrigin✔️string
返回对象类型描述原文
didDeleteTokensboolean如果任何令牌被删除则为真,否则为假。
ENTrue if any tokens were deleted, false otherwise.

🔨Storage.deleteSharedStorageEntry🧪

删除给定来源共享存储中键为key的条目(如果存在)。

EN
Deletes entry for key (if it exists) for a given origin's shared storage.
参数必填标记类型描述原文
ownerOrigin✔️string
key✔️string

🔨Storage.deleteStorageBucket🧪

删除具有给定存储密钥和存储桶名称的存储桶。

EN
Deletes the Storage Bucket with the given storage key and bucket name.
参数必填标记类型描述原文
bucket✔️StorageBucket

🔨Storage.getAffectedUrlsForThirdPartyCookieMetadata🧪

返回页面及其嵌入资源中与现有宽限期URL模式规则匹配的URL列表。https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period

EN
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
参数必填标记类型描述原文
firstPartyUrl✔️string当前正在访问的页面的URL。
ENThe URL of the page currently being visited.
thirdPartyUrls✔️array[string]页面中嵌入资源的URL列表。
ENThe list of embedded resource URLs from the page.
返回对象类型描述原文
matchedUrlsarray[string]匹配的URL数组。如果存在第一方URL的主模式匹配,则数组中仅返回第一方URL。
ENArray 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.

🔨Storage.getInterestGroupDetails🧪

获取指定兴趣组的详细信息。

EN
Gets details for a named interest group.
参数必填标记类型描述原文
ownerOrigin✔️string
name✔️string
返回对象类型描述原文
detailsobject这大致对应于:https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup,但使用绝对过期时间 expirationTime 替代了相对持续时间 lifetimeMs,并额外添加了 joiningOrigin
ENThis largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin.

🔨Storage.getRelatedWebsiteSets🧪

返回此配置文件在浏览器会话中使用的有效相关网站集。有效相关网站集在浏览器会话期间不会改变。

EN
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.
返回对象类型描述原文
setsarray[RelatedWebsiteSet]

🔨Storage.getSharedStorageEntries🧪

获取给定来源的共享存储中的条目。

EN
Gets the entries in an given origin's shared storage.
参数必填标记类型描述原文
ownerOrigin✔️string
返回对象类型描述原文
entriesarray[SharedStorageEntry]

🔨Storage.getSharedStorageMetadata🧪

获取一个源(origin)的共享存储的元数据。

EN
Gets metadata for an origin's shared storage.
参数必填标记类型描述原文
ownerOrigin✔️string
返回对象类型描述原文
metadataSharedStorageMetadata

🔨Storage.getStorageKey🧪

返回给定框架的存储键。若未提供框架ID,则返回执行此命令的目标框架的存储键。

EN
Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.
参数必填标记类型描述原文
frameIdPage.FrameId
返回对象类型描述原文
storageKeySerializedStorageKey

🔨Storage.getTrustTokens🧪

返回当前浏览上下文中每个发行方存储的Trust Tokens数量。

EN
Returns the number of stored Trust Tokens per issuer for the current browsing context.
返回对象类型描述原文
tokensarray[TrustTokens]

🔨Storage.overrideQuotaForOrigin🧪

为指定源''覆盖配额

EN
Override quota for the specified origin
参数必填标记类型描述原文
origin✔️string安全来源。
ENSecurity origin.
quotaSizenumber用于覆盖原始配额的配额大小(以字节为单位)。如果多次调用此方法,覆盖后的配额将等于最后一次调用中提供的 quotaSize。如果调用时未指定 quotaSize,则配额将重置为指定 origin 的默认值。如果使用不同的 origin 多次调用此方法,每个 origin 的覆盖设置将保持有效,直到被禁用(即调用时不指定 quotaSize)。
ENThe 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).

🔨Storage.resetSharedStorageBudget🧪

ownerOrigin重置预算,清除所有预算提款。

EN
Resets the budget for ownerOrigin by clearing all budget withdrawals.
参数必填标记类型描述原文
ownerOrigin✔️string

🔨Storage.runBounceTrackingMitigations🧪

立即删除被识别为潜在反弹跟踪器的网站状态。

EN
Deletes state for sites identified as potential bounce trackers, immediately.
返回对象类型描述原文
deletedSitesarray[string]

🔨Storage.sendPendingAttributionReports🧪

立即发送所有待处理的归因报告,无论其预定的报告时间如何。

EN
Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
返回对象类型描述原文
numSentinteger已发送的报告数量。
ENThe number of reports that were sent.

🔨Storage.setAttributionReportingLocalTestingMode🧪

https://wicg.github.io/attribution-reporting-api/

EN
参数必填标记类型描述原文
enabled✔️boolean如果启用,将抑制噪音并立即发送报告。
ENIf enabled, noise is suppressed and reports are sent immediately.

🔨Storage.setAttributionReportingTracking🧪

启用/禁用 Attribution Reporting 事件的发布。

EN
Enables/disables issuing of Attribution Reporting events.
参数必填标记类型描述原文
enable✔️boolean

🔨Storage.setInterestGroupAuctionTracking🧪

启用/禁用 interestGroupAuctionEventOccurred 和 interestGroupAuctionNetworkRequestCreated 的触发。

EN
Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
参数必填标记类型描述原文
enable✔️boolean

🔨Storage.setInterestGroupTracking🧪

启用/禁用 interestGroupAccessed 事件的触发。

EN
Enables/Disables issuing of interestGroupAccessed events.
参数必填标记类型描述原文
enable✔️boolean

🔨Storage.setSharedStorageEntry🧪

为指定来源的共享存储设置键为key、值为value的条目。

EN
Sets entry with key and value for a given origin's shared storage.
参数必填标记类型描述原文
ownerOrigin✔️string
key✔️string
value✔️string
ignoreIfPresentboolean如果ignoreIfPresent被包含且为真,那么只有当key不存在时才会设置条目。
ENIf ignoreIfPresent is included and true, then only sets the entry if key doesn't already exist.

🔨Storage.setSharedStorageTracking🧪

启用/禁用 sharedStorageAccessed 事件的触发。

EN
Enables/disables issuing of sharedStorageAccessed events.
参数必填标记类型描述原文
enable✔️boolean

🔨Storage.setStorageBucketTracking🧪

为存储密钥的存储桶设置跟踪。

EN
Set tracking for a storage key's buckets.
参数必填标记类型描述原文
storageKey✔️string
enable✔️boolean

✅️️ Events

👋Storage.cacheStorageContentUpdated

缓存的内容已被修改。

EN
A cache's contents have been modified.
参数必填标记类型描述原文
origin✔️string要更新的源。
ENOrigin to update.
storageKey✔️string要更新的存储密钥。
ENStorage key to update.
bucketId✔️string要更新的存储桶。
ENStorage bucket to update.
cacheName✔️string源中的缓存名称。
ENName of cache in origin.

👋Storage.cacheStorageListUpdated

一个缓存已被添加/删除。

EN
A cache has been added/deleted.
参数必填标记类型描述原文
origin✔️string需要更新的来源。
ENOrigin to update.
storageKey✔️string要更新的存储密钥。
ENStorage key to update.
bucketId✔️string要更新的存储桶。
ENStorage bucket to update.

👋Storage.indexedDBContentUpdated

该源的IndexedDB对象存储已被修改。

EN
The origin's IndexedDB object store has been modified.
参数必填标记类型描述原文
origin✔️string需要更新的来源。
ENOrigin to update.
storageKey✔️string要更新的存储密钥。
ENStorage key to update.
bucketId✔️string要更新的存储桶。
ENStorage bucket to update.
databaseName✔️string要更新的数据库。
ENDatabase to update.
objectStoreName✔️string要更新的ObjectStore。
ENObjectStore to update.

👋Storage.indexedDBListUpdated

该源的IndexedDB数据库列表已被修改。

EN
The origin's IndexedDB database list has been modified.
参数必填标记类型描述原文
origin✔️string需要更新的来源。
ENOrigin to update.
storageKey✔️string要更新的存储键。
ENStorage key to update.
bucketId✔️string要更新的存储桶。
ENStorage bucket to update.

👋Storage.interestGroupAccessed

其中一个兴趣组被访问。请注意,这些事件对于共享兴趣组存储的所有目标都是全局的。

EN
One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.
参数必填标记类型描述原文
accessTime✔️Network.TimeSinceEpoch
type✔️InterestGroupAccessType
ownerOrigin✔️string
name✔️string
componentSellerOriginstring对于topLevelBid/topLevelAdditionalBid,以及在适当时机,win和additionalBidWin
ENFor topLevelBid/topLevelAdditionalBid, and when appropriate, win and additionalBidWin
bidnumber对于''或``中的内容,请勿修改。对于投标或类似投标事件,如果在本地完成而非在服务器上。
ENFor bid or somethingBid event, if done locally and not on a server.
bidCurrencystring
uniqueAuctionIdInterestGroupAuctionId对于非全局事件 --- 指向interestGroupAuctionEvent的链接
ENFor non-global events --- links to interestGroupAuctionEvent

👋Storage.interestGroupAuctionEventOccurred

一场涉及利益群体的拍卖正在进行。这些事件是目标特定的。

EN
An auction involving interest groups is taking place. These events are target-specific.
参数必填标记类型描述原文
eventTime✔️Network.TimeSinceEpoch
type✔️InterestGroupAuctionEventType
uniqueAuctionId✔️InterestGroupAuctionId
parentAuctionIdInterestGroupAuctionId为子拍卖设置。
ENSet for child auctions.
auctionConfigobject设置用于已启动和配置已解析
ENSet for started and configResolved

👋Storage.interestGroupAuctionNetworkRequestCreated

指定特定网络请求可能关联的拍卖活动及其角色。请注意,该事件与Network.requestWillBeSent无顺序关联(但会在loadingFinishedloadingFailed之前触发)。

EN
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).
参数必填标记类型描述原文
type✔️InterestGroupAuctionFetchType
requestId✔️Network.RequestId
auctions✔️array[InterestGroupAuctionId]这是使用发出此请求的工作集(worklet)的一组拍卖(auctions)。在可信信号(trusted signals)的情况下,可能只有其中一部分拍卖真正关心被查询的密钥(keys)。
ENThis is the set of the auctions using the worklet that issued this request. In the case of trusted signals, it's possible that only some of them actually care about the keys being queried.

👋Storage.sharedStorageAccessed

关联页面访问了共享存储。以下参数包含在所有事件中。

EN
Shared storage was accessed by the associated page. The following parameters are included in all events.
参数必填标记类型描述原文
accessTime✔️Network.TimeSinceEpoch访问时间。
ENTime of the access.
scope✔️SharedStorageAccessScope指示访问范围的枚举值。
ENEnum value indicating the access scope.
method✔️SharedStorageAccessMethod枚举值,表示调用的 Shared Storage API 方法。
ENEnum value indicating the Shared Storage API method invoked.
mainFrameId✔️Page.FrameId主框架树根节点的DevTools框架令牌。
ENDevTools Frame Token for the primary frame tree's root.
ownerOrigin✔️string拥有Shared Storage数据的源的序列化。
ENSerialization of the origin owning the Shared Storage data.
ownerSite✔️string拥有共享存储数据的站点的序列化。
ENSerialization of the site owning the Shared Storage data.
params✔️SharedStorageAccessParamsparams 所包含的子参数均为可选,其存在与否取决于 type
ENThe sub-parameters wrapped by params are all optional and their presence/absence depends on type.

👋Storage.sharedStorageWorkletOperationExecutionFinished

一个共享存储运行或selectURL操作已完成其执行。以下参数包含在所有事件中。

EN
A shared storage run or selectURL operation finished its execution. The following parameters are included in all events.
参数必填标记类型描述原文
finishedTime✔️Network.TimeSinceEpoch操作完成的时间。
ENTime that the operation finished.
executionTime✔️integer时间,以微秒为单位,从共享存储JS API调用开始,直到工作线程中操作执行结束。
ENTime, in microseconds, from start of shared storage JS API call until end of operation execution in the worklet.
method✔️SharedStorageAccessMethod枚举值,表示调用的 Shared Storage API 方法。
ENEnum value indicating the Shared Storage API method invoked.
operationId✔️string操作调用的ID。
ENID of the operation call.
workletTargetId✔️Target.TargetIDDevTools令牌的十六进制表示,用作关联共享存储工作线程的TargetID。
ENHex representation of the DevTools token used as the TargetID for the associated shared storage worklet.
mainFrameId✔️Page.FrameId主框架树根节点的DevTools框架令牌。
ENDevTools Frame Token for the primary frame tree's root.
ownerOrigin✔️string拥有共享存储数据的源的序列化。
ENSerialization of the origin owning the Shared Storage data.

👋Storage.storageBucketCreatedOrUpdated

参数必填标记类型描述原文
bucketInfo✔️StorageBucketInfo

👋Storage.storageBucketDeleted

参数必填标记类型描述原文
bucketId✔️string

👋Storage.attributionReportingReportSent🧪

参数必填标记类型描述原文
url✔️string
body✔️object
result✔️AttributionReportingReportResult
netErrorinteger如果结果为 sent,则填充网络/HTTP状态。
ENIf result is sent, populated with net/HTTP status.
netErrorNamestring
httpStatusCodeinteger

👋Storage.attributionReportingSourceRegistered🧪

参数必填标记类型描述原文
registration✔️AttributionReportingSourceRegistration
result✔️AttributionReportingSourceRegistrationResult

👋Storage.attributionReportingTriggerRegistered🧪

参数必填标记类型描述原文
registration✔️AttributionReportingTriggerRegistration
eventLevel✔️AttributionReportingEventLevelResult
aggregatable✔️AttributionReportingAggregatableResult

👋Storage.attributionReportingVerboseDebugReportSent🧪

参数必填标记类型描述原文
url✔️string
bodyarray[object]
netErrorinteger
netErrorNamestring
httpStatusCodeinteger

✅️️ Types

📌Storage.InterestGroupAccessType

兴趣群组访问类型的枚举。
允许的值:joinleaveupdateloadedbidwinadditionalBidadditionalBidWintopLevelBidtopLevelAdditionalBidclear

EN
Enum of interest group access types.
Allowed Values: join, leave, update, loaded, bid, win, additionalBid, additionalBidWin, topLevelBid, topLevelAdditionalBid, clear

返回类型:string


📌Storage.InterestGroupAuctionEventType

拍卖事件枚举。
允许的值:startedconfigResolved

EN
Enum of auction events.
Allowed Values: started, configResolved

返回类型:string


📌Storage.InterestGroupAuctionFetchType

网络获取拍卖可执行的枚举类型。
允许的值:bidderJsbidderWasmsellerJsbidderTrustedSignalssellerTrustedSignals

EN
Enum of network fetches auctions can do.
Allowed Values: bidderJs, bidderWasm, sellerJs, bidderTrustedSignals, sellerTrustedSignals

返回类型:string


📌Storage.InterestGroupAuctionId

受保护受众兴趣组拍卖标识符。

EN
Protected audience interest group auction identifier.

返回类型:string


📌Storage.SerializedStorageKey

返回类型:string


📌Storage.SharedStorageAccessMethod

共享存储访问方法的枚举。
允许的值:addModulecreateWorkletselectURLrunbatchUpdatesetappenddeletecleargetkeysvaluesentrieslengthremainingBudget

EN
Enum of shared storage access methods.
Allowed Values: addModule, createWorklet, selectURL, run, batchUpdate, set, append, delete, clear, get, keys, values, entries, length, remainingBudget

返回类型:string


📌Storage.SharedStorageAccessParams

将共享存储访问事件的参数打包,这些参数的存在与否会根据SharedStorageAccessType而有所不同。

EN
Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.

返回类型:object

属性必填标记类型描述原文
scriptSourceUrlstring模块脚本URL的规范。仅适用于SharedStorageAccessMethods:addModule和createWorklet。
ENSpec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet.
dataOriginstring表示“上下文来源”、“脚本来源”或用作工作线程数据来源的自定义来源的字符串。仅适用于 SharedStorageAccessMethod: createWorklet。
ENString denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet.
operationNamestring要运行的注册操作名称。仅适用于SharedStorageAccessMethods:run和selectURL。
ENName of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL.
operationIdstring操作调用的ID。仅适用于SharedStorageAccessMethods:run和selectURL。
ENID of the operation call. Present only for SharedStorageAccessMethods: run and selectURL.
keepAliveboolean是否保留工作线程以供未来的run或selectURL调用使用。仅适用于SharedStorageAccessMethods: run和selectURL。
ENWhether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL.
privateAggregationConfigSharedStoragePrivateAggregationConfig配置私有聚合选项。仅适用于SharedStorageAccessMethods:run和selectURL。
ENConfigures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL.
serializedDatastring操作序列化后的字节数据(已转换为字符串)。仅适用于SharedStorageAccessMethods:run和selectURL。TODO(crbug.com/401011862):考虑将此参数更新为二进制格式。
ENThe operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary.
urlsWithMetadataarray[SharedStorageUrlWithMetadata]候选URL规范的数组,以及任何相关的元数据。仅适用于SharedStorageAccessMethod: selectURL时出现。
ENArray of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL.
urnUuidstring选择URL调用生成的URN:UUID规范。仅适用于SharedStorageAccessMethod: selectURL。
ENSpec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL.
keystring特定源共享存储中某个条目的键。仅适用于SharedStorageAccessMethods:setappenddeleteget
ENKey for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get.
valuestring特定来源共享存储中某个条目的值。仅适用于SharedStorageAccessMethods:set和append。
ENValue for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append.
ignoreIfPresentboolean是否在键已存在时为其设置条目。仅适用于SharedStorageAccessMethod: set。
ENWhether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set.
workletOrdinalinteger一个数字,表示工作线程相对于使用当前存储分区的文档创建的所有其他共享存储工作线程的创建顺序(基于0)。仅适用于SharedStorageAccessMethods:addModule、createWorklet。
ENA number denoting the (0-based) order of the worklet's creation relative to all other shared storage worklets created by documents using the current storage partition. Present only for SharedStorageAccessMethods: addModule, createWorklet.
workletTargetIdTarget.TargetIDDevTools令牌的十六进制表示,用作关联共享存储工作线程的TargetID。仅当SharedStorageAccessMethods为addModule、createWorklet、run、selectURL,以及SharedStorageAccessScope为sharedStorageWorklet时的任何其他SharedStorageAccessMethod时出现。
ENHex representation of the DevTools token used as the TargetID for the associated shared storage worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is sharedStorageWorklet.
withLockstring要获取的锁的名称,如果存在。仅可选地存在于SharedStorageAccessMethods中:batchUpdate、set、append、delete和clear。
ENName of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear.
batchUpdateIdstring如果该方法作为batchUpdate的一部分被调用,则此数字标识其所属的批次。仅针对SharedStorageAccessMethods可选存在:batchUpdate(必需)、set、append、delete和clear。
ENIf the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear.
batchSizeinteger批量发送的修改方法数量。仅适用于SharedStorageAccessMethod: batchUpdate。
ENNumber of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate.

📌Storage.SharedStorageAccessScope

共享存储访问范围的枚举。
允许的值:windowsharedStorageWorkletprotectedAudienceWorkletheader

EN
Enum of shared storage access scopes.
Allowed Values: window, sharedStorageWorklet, protectedAudienceWorklet, header

返回类型:string


📌Storage.SharedStorageEntry

源站共享存储中单个键值对的结构体。

EN
Struct for a single key-value pair in an origin's shared storage.

返回类型:object

属性必填标记类型描述原文
key✔️string
value✔️string

📌Storage.SharedStorageMetadata

某个来源的共享存储详情。

EN
Details for an origin's shared storage.

返回类型:object

属性必填标记类型描述原文
creationTime✔️Network.TimeSinceEpoch源共享存储上次创建的时间。
ENTime when the origin's shared storage was last created.
length✔️integer存储在源站共享存储中的键值对数量。
ENNumber of key-value pairs stored in origin's shared storage.
remainingBudget✔️number当前导航预算中剩余的熵位数。
ENCurrent amount of bits of entropy remaining in the navigation budget.
bytesUsed✔️integer源共享存储中作为键值对存储的总字节数。
ENTotal number of bytes stored as key-value pairs in origin's shared storage.

📌Storage.SharedStoragePrivateAggregationConfig

表示作为 privateAggregationConfig 传递给 run 或 selectURL 的字典对象。

EN
Represents a dictionary object passed in as privateAggregationConfig to run or selectURL.

返回类型:object

属性必填标记类型描述原文
aggregationCoordinatorOriginstring所选聚合服务部署。
ENThe chosen aggregation service deployment.
contextIdstring提供的上下文ID。
ENThe context ID provided.
filteringIdMaxBytes✔️integer配置筛选ID所允许的最大尺寸。
ENConfigures the maximum size allowed for filtering IDs.
maxContributionsinteger最终报告中贡献数量的限制。
ENThe limit on the number of contributions in the final report.

📌Storage.SharedStorageReportingMetadata

selectURL() 候选 URL 的一对报告元数据详细信息。

EN
Pair of reporting metadata details for a candidate URL for selectURL().

返回类型:object

属性必填标记类型描述原文
eventType✔️string
reportingUrl✔️string

📌Storage.SharedStorageUrlWithMetadata

将候选URL与其报告元数据捆绑在一起。

EN
Bundles a candidate URL with its reporting metadata.

返回类型:object

属性必填标记类型描述原文
url✔️string候选URL的规范。
ENSpec of candidate URL.
reportingMetadata✔️array[SharedStorageReportingMetadata]任何相关的报告元数据。
ENAny associated reporting metadata.

📌Storage.StorageBucket

返回类型:object

属性必填标记类型描述原文
storageKey✔️SerializedStorageKey
namestring如果未指定,则为storageKey的默认存储桶。
ENIf not specified, it is the default bucket of the storageKey.

📌Storage.StorageBucketInfo

返回类型:object

属性必填标记类型描述原文
bucket✔️StorageBucket
id✔️string
expiration✔️Network.TimeSinceEpoch
quota✔️number存储配额(字节)。
ENStorage quota (bytes).
persistent✔️boolean
durability✔️StorageBucketsDurability

📌Storage.StorageBucketsDurability

允许的值:relaxedstrict

EN
Allowed Values: relaxed, strict

返回类型:string


📌Storage.StorageType

可能的存储类型枚举。
允许的值:cookiesfile_systemsindexeddblocal_storageshader_cachewebsqlservice_workerscache_storageinterest_groupsshared_storagestorage_bucketsallother

EN
Enum of possible storage types.
Allowed Values: cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, interest_groups, shared_storage, storage_buckets, all, other

返回类型:string


📌Storage.UsageForType

存储类型的使用情况。

EN
Usage for a storage type.

返回类型:object

属性必填标记类型描述原文
storageType✔️StorageType存储类型的名称。
ENName of storage type.
usage✔️number存储使用量(字节)。
ENStorage usage (bytes).

📌Storage.AttributionReportingAggregatableDebugReportingConfig🧪

返回类型:object

属性必填标记类型描述原文
budgetnumber使用数字而非整数,因为并非所有uint32都能用int表示,仅适用于源注册
ENnumber instead of integer because not all uint32 can be represented by int, only present for source registrations
keyPiece✔️UnsignedInt128AsBase16
debugData✔️array[AttributionReportingAggregatableDebugReportingData]
aggregationCoordinatorOriginstring

📌Storage.AttributionReportingAggregatableDebugReportingData🧪

返回类型:object

属性必填标记类型描述原文
keyPiece✔️UnsignedInt128AsBase16
value✔️numbernumber instead of integer because not all uint32 can be represented by int
ENnumber instead of integer because not all uint32 can be represented by int
types✔️array[string]

📌Storage.AttributionReportingAggregatableDedupKey🧪

返回类型:object

属性必填标记类型描述原文
dedupKeyUnsignedInt64AsBase10
filters✔️AttributionReportingFilterPair

📌Storage.AttributionReportingAggregatableResult🧪

允许的值:successinternalErrornoCapacityForAttributionDestinationnoMatchingSourcesexcessiveAttributionsexcessiveReportingOriginsnoHistogramsinsufficientBudgetinsufficientNamedBudgetnoMatchingSourceFilterDatanotRegisteredprohibitedByBrowserPolicydeduplicatedreportWindowPassedexcessiveReports

EN
Allowed Values: success, internalError, noCapacityForAttributionDestination, noMatchingSources, excessiveAttributions, excessiveReportingOrigins, noHistograms, insufficientBudget, insufficientNamedBudget, noMatchingSourceFilterData, notRegistered, prohibitedByBrowserPolicy, deduplicated, reportWindowPassed, excessiveReports

返回类型:string


📌Storage.AttributionReportingAggregatableTriggerData🧪

返回类型:object

属性必填标记类型描述原文
keyPiece✔️UnsignedInt128AsBase16
sourceKeys✔️array[string]
filters✔️AttributionReportingFilterPair

📌Storage.AttributionReportingAggregatableValueDictEntry🧪

返回类型:object

属性必填标记类型描述原文
key✔️string
value✔️number使用数字而非整数,因为并非所有无符号32位整数都能用有符号整数表示
ENnumber instead of integer because not all uint32 can be represented by int
filteringId✔️UnsignedInt64AsBase10

📌Storage.AttributionReportingAggregatableValueEntry🧪

返回类型:object

属性必填标记类型描述原文
values✔️array[AttributionReportingAggregatableValueDictEntry]
filters✔️AttributionReportingFilterPair

📌Storage.AttributionReportingAggregationKeysEntry🧪

返回类型:object

属性必填标记类型描述原文
key✔️string
value✔️UnsignedInt128AsBase16

📌Storage.AttributionReportingEventLevelResult🧪

允许的值:successsuccessDroppedLowerPriorityinternalErrornoCapacityForAttributionDestinationnoMatchingSourcesdeduplicatedexcessiveAttributionspriorityTooLowneverAttributedSourceexcessiveReportingOriginsnoMatchingSourceFilterDataprohibitedByBrowserPolicynoMatchingConfigurationsexcessiveReportsfalselyAttributedSourcereportWindowPassednotRegisteredreportWindowNotStartednoMatchingTriggerData

EN
Allowed Values: success, successDroppedLowerPriority, internalError, noCapacityForAttributionDestination, noMatchingSources, deduplicated, excessiveAttributions, priorityTooLow, neverAttributedSource, excessiveReportingOrigins, noMatchingSourceFilterData, prohibitedByBrowserPolicy, noMatchingConfigurations, excessiveReports, falselyAttributedSource, reportWindowPassed, notRegistered, reportWindowNotStarted, noMatchingTriggerData

返回类型:string


📌Storage.AttributionReportingEventReportWindows🧪

返回类型:object

属性必填标记类型描述原文
start✔️integer持续时间(以秒为单位)
ENduration in seconds
ends✔️array[integer]持续时间(以秒为单位)
ENduration in seconds

📌Storage.AttributionReportingEventTriggerData🧪

返回类型:object

属性必填标记类型描述原文
data✔️UnsignedInt64AsBase10
priority✔️SignedInt64AsBase10
dedupKeyUnsignedInt64AsBase10
filters✔️AttributionReportingFilterPair

📌Storage.AttributionReportingFilterConfig🧪

返回类型:object

属性必填标记类型描述原文
filterValues✔️array[AttributionReportingFilterDataEntry]
lookbackWindowinteger持续时间(以秒为单位)
ENduration in seconds

📌Storage.AttributionReportingFilterDataEntry🧪

返回类型:object

属性必填标记类型描述原文
key✔️string
values✔️array[string]

📌Storage.AttributionReportingFilterPair🧪

返回类型:object

属性必填标记类型描述原文
filters✔️array[AttributionReportingFilterConfig]
notFilters✔️array[AttributionReportingFilterConfig]

📌Storage.AttributionReportingNamedBudgetCandidate🧪

返回类型:object

属性必填标记类型描述原文
namestring
filters✔️AttributionReportingFilterPair

📌Storage.AttributionReportingNamedBudgetDef🧪

返回类型:object

属性必填标记类型描述原文
name✔️string
budget✔️integer

📌Storage.AttributionReportingReportResult🧪

允许的值:sentprohibitedfailedToAssembleexpired

EN
Allowed Values: sent, prohibited, failedToAssemble, expired

返回类型:string


📌Storage.AttributionReportingSourceRegistration🧪

返回类型:object

属性必填标记类型描述原文
time✔️Network.TimeSinceEpoch
expiry✔️integer持续时间(秒)
ENduration in seconds
triggerData✔️array[number]number instead of integer because not all uint32 can be represented by int
ENnumber instead of integer because not all uint32 can be represented by int
eventReportWindows✔️AttributionReportingEventReportWindows
aggregatableReportWindow✔️integer持续时间(秒)
ENduration in seconds
type✔️AttributionReportingSourceType
sourceOrigin✔️string
reportingOrigin✔️string
destinationSites✔️array[string]
eventId✔️UnsignedInt64AsBase10
priority✔️SignedInt64AsBase10
filterData✔️array[AttributionReportingFilterDataEntry]
aggregationKeys✔️array[AttributionReportingAggregationKeysEntry]
debugKeyUnsignedInt64AsBase10
triggerDataMatching✔️AttributionReportingTriggerDataMatching
destinationLimitPriority✔️SignedInt64AsBase10
aggregatableDebugReportingConfig✔️AttributionReportingAggregatableDebugReportingConfig
scopesDataAttributionScopesData
maxEventLevelReports✔️integer
namedBudgets✔️array[AttributionReportingNamedBudgetDef]
debugReporting✔️boolean
eventLevelEpsilon✔️number

📌Storage.AttributionReportingSourceRegistrationResult🧪

允许的值:successinternalErrorinsufficientSourceCapacityinsufficientUniqueDestinationCapacityexcessiveReportingOriginsprohibitedByBrowserPolicysuccessNoiseddestinationReportingLimitReacheddestinationGlobalLimitReacheddestinationBothLimitsReachedreportingOriginsPerSiteLimitReachedexceedsMaxChannelCapacityexceedsMaxScopesChannelCapacityexceedsMaxTriggerStateCardinalityexceedsMaxEventStatesLimitdestinationPerDayReportingLimitReached

EN
Allowed Values: success, internalError, insufficientSourceCapacity, insufficientUniqueDestinationCapacity, excessiveReportingOrigins, prohibitedByBrowserPolicy, successNoised, destinationReportingLimitReached, destinationGlobalLimitReached, destinationBothLimitsReached, reportingOriginsPerSiteLimitReached, exceedsMaxChannelCapacity, exceedsMaxScopesChannelCapacity, exceedsMaxTriggerStateCardinality, exceedsMaxEventStatesLimit, destinationPerDayReportingLimitReached

返回类型:string


📌Storage.AttributionReportingSourceRegistrationTimeConfig🧪

允许的值:includeexclude

EN
Allowed Values: include, exclude

返回类型:string


📌Storage.AttributionReportingSourceType🧪

允许的值:navigationevent

EN
Allowed Values: navigation, event

返回类型:string


📌Storage.AttributionReportingTriggerDataMatching🧪

允许的值:exactmodulus

EN
Allowed Values: exact, modulus

返回类型:string


📌Storage.AttributionReportingTriggerRegistration🧪

返回类型:object

属性必填标记类型描述原文
filters✔️AttributionReportingFilterPair
debugKeyUnsignedInt64AsBase10
aggregatableDedupKeys✔️array[AttributionReportingAggregatableDedupKey]
eventTriggerData✔️array[AttributionReportingEventTriggerData]
aggregatableTriggerData✔️array[AttributionReportingAggregatableTriggerData]
aggregatableValues✔️array[AttributionReportingAggregatableValueEntry]
aggregatableFilteringIdMaxBytes✔️integer
debugReporting✔️boolean
aggregationCoordinatorOriginstring
sourceRegistrationTimeConfig✔️AttributionReportingSourceRegistrationTimeConfig
triggerContextIdstring
aggregatableDebugReportingConfig✔️AttributionReportingAggregatableDebugReportingConfig
scopes✔️array[string]
namedBudgets✔️array[AttributionReportingNamedBudgetCandidate]

📌Storage.AttributionScopesData🧪

返回类型:object

属性必填标记类型描述原文
values✔️array[string]
limit✔️number使用数字而非整数,因为并非所有无符号32位整数都能用有符号整数表示
ENnumber instead of integer because not all uint32 can be represented by int
maxEventStates✔️number

📌Storage.RelatedWebsiteSet🧪

一个单一的"相关网站集"对象。

EN
A single Related Website Set object.

返回类型:object

属性必填标记类型描述原文
primarySites✔️array[string]此集合的主要站点,以及任何存在的ccTLDs。
ENThe primary site of this set, along with the ccTLDs if there is any.
associatedSites✔️array[string]此集合的关联站点,以及任何存在的ccTLDs。
ENThe associated sites of this set, along with the ccTLDs if there is any.
serviceSites✔️array[string]该服务站点集合,以及可能存在的任何ccTLDs。
ENThe service sites of this set, along with the ccTLDs if there is any.

📌Storage.SignedInt64AsBase10🧪

返回类型:string


📌Storage.TrustTokens🧪

发行方来源与可用(已签名但未使用)信任令牌数量的配对。

EN
Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.

返回类型:object

属性必填标记类型描述原文
issuerOrigin✔️string
count✔️number

📌Storage.UnsignedInt128AsBase16🧪

返回类型:string


📌Storage.UnsignedInt64AsBase10🧪

返回类型:string