// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: Shared Storage API (https://wicg.github.io/shared-storage/) typedef (USVString or FencedFrameConfig) SharedStorageResponse; [Exposed=(Window)] interface SharedStorageWorklet : Worklet { Promise selectURL(DOMString name, sequence urls, optional SharedStorageRunOperationMethodOptions options = {}); Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); }; callback RunFunctionForSharedStorageSelectURLOperation = Promise(sequence urls, optional any data); [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet] interface SharedStorageWorkletGlobalScope : WorkletGlobalScope { undefined register(DOMString name, Function operationCtor); readonly attribute SharedStorage sharedStorage; readonly attribute PrivateAggregation privateAggregation; Promise> interestGroups(); readonly attribute SharedStorageWorkletNavigator navigator; }; dictionary SharedStorageUrlWithMetadata { required USVString url; object reportingMetadata; }; partial interface Window { [SecureContext] readonly attribute SharedStorage? sharedStorage; }; [Exposed=(Window,SharedStorageWorklet)] interface SharedStorageModifierMethod {}; [Exposed=(Window, SharedStorageWorklet)] interface SharedStorageSetMethod : SharedStorageModifierMethod { constructor(DOMString key, DOMString value, optional SharedStorageSetMethodOptions options = {}); }; [Exposed=(Window, SharedStorageWorklet)] interface SharedStorageAppendMethod : SharedStorageModifierMethod { constructor(DOMString key, DOMString value, optional SharedStorageModifierMethodOptions options = {}); }; [Exposed=(Window, SharedStorageWorklet)] interface SharedStorageDeleteMethod : SharedStorageModifierMethod { constructor(DOMString key, optional SharedStorageModifierMethodOptions options = {}); }; [Exposed=(Window, SharedStorageWorklet)] interface SharedStorageClearMethod : SharedStorageModifierMethod { constructor(optional SharedStorageModifierMethodOptions options = {}); }; dictionary SharedStorageModifierMethodOptions { DOMString withLock; }; dictionary SharedStorageSetMethodOptions : SharedStorageModifierMethodOptions { boolean ignoreIfPresent; }; [Exposed=(Window,SharedStorageWorklet)] interface SharedStorage { Promise get(DOMString key); Promise set(DOMString key, DOMString value, optional SharedStorageSetMethodOptions options = {}); Promise append(DOMString key, DOMString value, optional SharedStorageModifierMethodOptions options = {}); Promise delete(DOMString key, optional SharedStorageModifierMethodOptions options = {}); Promise clear(optional SharedStorageModifierMethodOptions options = {}); Promise batchUpdate(sequence methods, optional SharedStorageModifierMethodOptions options = {}); [Exposed=Window] Promise selectURL(DOMString name, sequence urls, optional SharedStorageRunOperationMethodOptions options = {}); [Exposed=Window] Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); [Exposed=Window] Promise createWorklet(USVString moduleURL, optional SharedStorageWorkletOptions options = {}); [Exposed=Window] readonly attribute SharedStorageWorklet worklet; [Exposed=SharedStorageWorklet] Promise length(); [Exposed=SharedStorageWorklet] Promise remainingBudget(); [Exposed=SharedStorageWorklet] async iterable; }; dictionary SharedStoragePrivateAggregationConfig { USVString aggregationCoordinatorOrigin; USVString contextId; [EnforceRange] unsigned long long filteringIdMaxBytes; [EnforceRange] unsigned long long maxContributions; }; dictionary SharedStorageRunOperationMethodOptions { object data; boolean resolveToConfig = false; boolean keepAlive = false; SharedStoragePrivateAggregationConfig privateAggregationConfig; DOMString savedQuery; }; dictionary SharedStorageWorkletOptions : WorkletOptions { USVString dataOrigin = "context-origin"; }; interface mixin HTMLSharedStorageWritableElementUtils { [CEReactions, SecureContext] attribute boolean sharedStorageWritable; }; HTMLIFrameElement includes HTMLSharedStorageWritableElementUtils; HTMLImageElement includes HTMLSharedStorageWritableElementUtils; partial dictionary RequestInit { boolean sharedStorageWritable; }; [ Exposed=SharedStorageWorklet ] interface SharedStorageWorkletNavigator {}; SharedStorageWorkletNavigator includes NavigatorLocks;