// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: Protected Audience (formerly FLEDGE) (https://wicg.github.io/turtledove/) [SecureContext] partial interface Navigator { Promise joinAdInterestGroup(AuctionAdInterestGroup group); }; dictionary AuctionAd { required USVString renderURL; USVString sizeGroup; any metadata; USVString buyerReportingId; USVString buyerAndSellerReportingId; sequence selectableBuyerAndSellerReportingIds; sequence allowedReportingOrigins; DOMString adRenderId; USVString creativeScanningMetadata; }; dictionary AuctionAdInterestGroupSize { required USVString width; required USVString height; }; dictionary GenerateBidInterestGroup { required USVString owner; required USVString name; boolean enableBiddingSignalsPrioritization = false; record priorityVector; record> sellerCapabilities; DOMString executionMode = "compatibility"; USVString biddingLogicURL; USVString biddingWasmHelperURL; USVString updateURL; USVString trustedBiddingSignalsURL; sequence trustedBiddingSignalsKeys; DOMString trustedBiddingSignalsSlotSizeMode = "none"; long maxTrustedBiddingSignalsURLLength; USVString trustedBiddingSignalsCoordinator; any userBiddingSignals; sequence ads; sequence adComponents; record adSizes; record> sizeGroups; }; dictionary ProtectedAudiencePrivateAggregationConfig { USVString aggregationCoordinatorOrigin; }; dictionary AuctionAdInterestGroup : GenerateBidInterestGroup { double priority = 0.0; record prioritySignalsOverrides; required double lifetimeMs; DOMString additionalBidKey; ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; }; [SecureContext] partial interface Navigator { Promise leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {}); }; dictionary AuctionAdInterestGroupKey { required USVString owner; required USVString name; }; [SecureContext] partial interface Navigator { Promise clearOriginJoinedAdInterestGroups( USVString owner, optional sequence interestGroupsToKeep = []); }; [SecureContext] partial interface Navigator { Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config); readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity; }; dictionary AuctionReportBuyersConfig { required bigint bucket; required double scale; }; dictionary AuctionReportBuyerDebugModeConfig { boolean enabled = false; // Must only be provided if `enabled` is true. bigint? debugKey; }; dictionary AuctionRealTimeReportingConfig { required DOMString type; }; dictionary AuctionAdConfig { required USVString seller; required USVString decisionLogicURL; USVString trustedScoringSignalsURL; long maxTrustedScoringSignalsURLLength; USVString trustedScoringSignalsCoordinator; boolean sendCreativeScanningMetadata; sequence interestGroupBuyers; Promise auctionSignals; Promise sellerSignals; Promise directFromSellerSignalsHeaderAdSlot; Promise?> deprecatedRenderURLReplacements; unsigned long long sellerTimeout; unsigned short sellerExperimentGroupId; Promise?> perBuyerSignals; Promise?> perBuyerTimeouts; Promise?> perBuyerCumulativeTimeouts; unsigned long long reportingTimeout; USVString sellerCurrency; Promise?> perBuyerCurrencies; record perBuyerMultiBidLimits; record perBuyerGroupLimits; record perBuyerExperimentGroupIds; record> perBuyerPrioritySignals; sequence auctionReportBuyerKeys; record auctionReportBuyers; AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig; sequence requiredSellerCapabilities; ProtectedAudiencePrivateAggregationConfig privateAggregationConfig; record requestedSize; sequence> allSlotsRequestedSizes; Promise additionalBids; DOMString auctionNonce; AuctionRealTimeReportingConfig sellerRealTimeReportingConfig; record perBuyerRealTimeReportingConfig; sequence componentAuctions = []; AbortSignal? signal; Promise resolveToConfig; Promise serverResponse; USVString requestId; }; [SecureContext] partial interface Navigator { boolean canLoadAdAuctionFencedFrame(); }; [SecureContext] partial interface Navigator { Promise getInterestGroupAdAuctionData(optional AdAuctionDataConfig config = {}); }; dictionary AdAuctionPerSellerData { required USVString seller; Uint8Array request; DOMString error; }; dictionary AdAuctionData { required USVString requestId; Uint8Array request; sequence requests; }; dictionary AdAuctionOneSeller { required USVString seller; USVString coordinatorOrigin; }; dictionary AdAuctionDataConfig { USVString seller; USVString coordinatorOrigin; sequence sellers; unsigned long requestSize; record perBuyerConfig; }; dictionary AdAuctionDataBuyerConfig { unsigned long targetSize; }; dictionary StorageInterestGroup : AuctionAdInterestGroup { unsigned long long joinCount; unsigned long long bidCount; sequence prevWinsMs; USVString joiningOrigin; long long timeSinceGroupJoinedMs; long long lifetimeRemainingMs; long long timeSinceLastUpdateMs; long long timeUntilNextUpdateMs; unsigned long long estimatedSize; }; [SecureContext] partial interface Navigator { Promise createAuctionNonce(); }; [Exposed=InterestGroupScriptRunnerGlobalScope] interface InterestGroupScriptRunnerGlobalScope { readonly attribute PrivateAggregation? privateAggregation; readonly attribute ProtectedAudienceUtilities protectedAudience; }; dictionary PASignalValue { required DOMString baseValue; double scale; (bigint or long) offset; }; dictionary PAExtendedHistogramContribution { required (PASignalValue or bigint) bucket; required (PASignalValue or long) value; bigint filteringId = 0; }; [Exposed=InterestGroupScriptRunnerGlobalScope] interface ProtectedAudienceUtilities { Uint8Array encodeUtf8(USVString input); USVString decodeUtf8(Uint8Array bytes); }; [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope] interface ForDebuggingOnly { undefined reportAdAuctionWin(USVString url); undefined reportAdAuctionLoss(USVString url); }; [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope] interface RealTimeReporting { undefined contributeToHistogram(RealTimeContribution contribution); }; dictionary RealTimeContribution { required long bucket; required double priorityWeight; long latencyThreshold; }; [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope, Global=InterestGroupBiddingAndScoringScriptRunnerGlobalScope] interface InterestGroupBiddingAndScoringScriptRunnerGlobalScope : InterestGroupScriptRunnerGlobalScope { readonly attribute ForDebuggingOnly forDebuggingOnly; readonly attribute RealTimeReporting realTimeReporting; }; [Exposed=InterestGroupBiddingScriptRunnerGlobalScope, Global=(InterestGroupScriptRunnerGlobalScope, InterestGroupBiddingScriptRunnerGlobalScope)] interface InterestGroupBiddingScriptRunnerGlobalScope : InterestGroupBiddingAndScoringScriptRunnerGlobalScope { boolean setBid(optional (GenerateBidOutput or sequence) oneOrManyBids = []); undefined setPriority(double priority); undefined setPrioritySignalsOverride(DOMString key, optional double? priority); }; dictionary AdRender { required DOMString url; DOMString width; DOMString height; }; dictionary GenerateBidOutput { double bid = -1; DOMString bidCurrency; (DOMString or AdRender) render; any ad; USVString selectedBuyerAndSellerReportingId; sequence<(DOMString or AdRender)> adComponents; double adCost; unrestricted double modelingSignals; boolean allowComponentAuction = false; unsigned long targetNumAdComponents; unsigned long numMandatoryAdComponents = 0; }; [Exposed=InterestGroupScoringScriptRunnerGlobalScope, Global=(InterestGroupScriptRunnerGlobalScope, InterestGroupScoringScriptRunnerGlobalScope)] interface InterestGroupScoringScriptRunnerGlobalScope : InterestGroupBiddingAndScoringScriptRunnerGlobalScope { }; [Exposed=InterestGroupReportingScriptRunnerGlobalScope, Global=(InterestGroupScriptRunnerGlobalScope, InterestGroupReportingScriptRunnerGlobalScope)] interface InterestGroupReportingScriptRunnerGlobalScope : InterestGroupScriptRunnerGlobalScope { undefined sendReportTo(DOMString url); undefined registerAdBeacon(record map); undefined registerAdMacro(DOMString name, USVString value); }; [SecureContext] partial interface Navigator { undefined updateAdInterestGroups(); }; [SecureContext] partial interface Navigator { [SameObject] readonly attribute ProtectedAudience protectedAudience; }; [SecureContext, Exposed=Window] interface ProtectedAudience { any queryFeatureSupport(DOMString feature); }; partial dictionary RequestInit { boolean adAuctionHeaders; }; partial interface HTMLIFrameElement { [CEReactions] attribute boolean adAuctionHeaders; }; typedef (long long or AuctionAd) PreviousWinElement; typedef sequence PreviousWin; dictionary BiddingBrowserSignals { required DOMString topWindowHostname; required USVString seller; required long joinCount; required long bidCount; required long recency; required long adComponentsLimit; required unsigned short multiBidLimit; record requestedSize; USVString topLevelSeller; sequence prevWinsMs; object wasmHelper; unsigned long dataVersion; unsigned long crossOriginDataVersion; boolean forDebuggingOnlyInCooldownOrLockout = false; }; dictionary ScoringBrowserSignals { required DOMString topWindowHostname; required USVString interestGroupOwner; required USVString renderURL; required unsigned long biddingDurationMsec; required DOMString bidCurrency; record renderSize; unsigned long dataVersion; unsigned long crossOriginDataVersion; sequence adComponents; boolean forDebuggingOnlyInCooldownOrLockout = false; USVString creativeScanningMetadata; sequence adComponentsCreativeScanningMetadata; }; dictionary ReportingBrowserSignals { required DOMString topWindowHostname; required USVString interestGroupOwner; required USVString renderURL; required double bid; required double highestScoringOtherBid; DOMString bidCurrency; DOMString highestScoringOtherBidCurrency; USVString topLevelSeller; USVString componentSeller; USVString buyerAndSellerReportingId; USVString selectedBuyerAndSellerReportingId; }; dictionary ReportResultBrowserSignals : ReportingBrowserSignals { required double desirability; DOMString topLevelSellerSignals; double modifiedBid; unsigned long dataVersion; }; dictionary ReportWinBrowserSignals : ReportingBrowserSignals { double adCost; USVString seller; boolean madeHighestScoringOtherBid; DOMString interestGroupName; DOMString buyerReportingId; unsigned short modelingSignals; unsigned long dataVersion; KAnonStatus kAnonStatus; }; enum KAnonStatus { "passedAndEnforced", "passedNotEnforced", "belowThreshold", "notCalculated" }; dictionary DirectFromSellerSignalsForBuyer { any auctionSignals = null; any perBuyerSignals = null; }; dictionary DirectFromSellerSignalsForSeller { any auctionSignals = null; any sellerSignals = null; }; dictionary ScoreAdOutput { required double desirability; double bid; DOMString bidCurrency; double incomingBidInSellerCurrency; boolean allowComponentAuction = false; };