summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/turtledove.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/turtledove.idl')
-rw-r--r--testing/web-platform/tests/interfaces/turtledove.idl239
1 files changed, 239 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/turtledove.idl b/testing/web-platform/tests/interfaces/turtledove.idl
new file mode 100644
index 0000000000..f5813b5d03
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/turtledove.idl
@@ -0,0 +1,239 @@
+// 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<undefined> joinAdInterestGroup(AuctionAdInterestGroup group);
+};
+
+dictionary AuctionAd {
+ required USVString renderURL;
+ any metadata;
+
+ USVString buyerReportingId;
+ USVString buyerAndSellerReportingId;
+ sequence<USVString> allowedReportingOrigins;
+};
+
+dictionary GenerateBidInterestGroup {
+ required USVString owner;
+ required USVString name;
+ required double lifetimeMs;
+
+ boolean enableBiddingSignalsPrioritization = false;
+ record<DOMString, double> priorityVector;
+
+ DOMString executionMode = "compatibility";
+ USVString biddingLogicURL;
+ USVString biddingWasmHelperURL;
+ USVString updateURL;
+ USVString trustedBiddingSignalsURL;
+ sequence<USVString> trustedBiddingSignalsKeys;
+ any userBiddingSignals;
+ sequence<AuctionAd> ads;
+ sequence<AuctionAd> adComponents;
+};
+
+dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
+ double priority = 0.0;
+ record<DOMString, double> prioritySignalsOverrides;
+ DOMString additionalBidKey;
+};
+
+[SecureContext]
+partial interface Navigator {
+ Promise<undefined> leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {});
+};
+
+dictionary AuctionAdInterestGroupKey {
+ required USVString owner;
+ required USVString name;
+};
+
+[SecureContext]
+partial interface Navigator {
+ Promise<undefined> clearOriginJoinedAdInterestGroups(
+ USVString owner, optional sequence<USVString> interestGroupsToKeep = []);
+};
+
+[SecureContext]
+partial interface Navigator {
+ Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config);
+};
+
+dictionary AuctionAdConfig {
+ required USVString seller;
+ required USVString decisionLogicURL;
+ USVString trustedScoringSignalsURL;
+ sequence<USVString> interestGroupBuyers;
+ Promise<any> auctionSignals;
+ record<DOMString, DOMString> requestedSize;
+ Promise<any> sellerSignals;
+ Promise<DOMString> directFromSellerSignalsHeaderAdSlot;
+ unsigned long long sellerTimeout;
+ unsigned short sellerExperimentGroupId;
+ USVString sellerCurrency;
+ Promise<record<USVString, any>> perBuyerSignals;
+ Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
+ Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts;
+ record<USVString, unsigned short> perBuyerGroupLimits;
+ record<USVString, unsigned short> perBuyerExperimentGroupIds;
+ record<USVString, record<USVString, double>> perBuyerPrioritySignals;
+ Promise<record<USVString, USVString>> perBuyerCurrencies;
+ sequence<AuctionAdConfig> componentAuctions = [];
+ Promise<undefined> additionalBids;
+ DOMString auctionNonce;
+ AbortSignal? signal;
+ Promise<boolean> resolveToConfig;
+};
+
+[SecureContext]
+partial interface Navigator {
+ Promise<DOMString> createAuctionNonce();
+};
+
+[Exposed=InterestGroupScriptRunnerGlobalScope]
+interface InterestGroupScriptRunnerGlobalScope {
+};
+
+[Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
+ Global=(InterestGroupScriptRunnerGlobalScope,
+ InterestGroupBiddingScriptRunnerGlobalScope)]
+interface InterestGroupBiddingScriptRunnerGlobalScope
+ : InterestGroupScriptRunnerGlobalScope {
+ boolean setBid(optional GenerateBidOutput generateBidOutput = {});
+ 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;
+ sequence<(DOMString or AdRender)> adComponents;
+ double adCost;
+ unrestricted double modelingSignals;
+ boolean allowComponentAuction = false;
+};
+
+[Exposed=InterestGroupScoringScriptRunnerGlobalScope,
+ Global=(InterestGroupScriptRunnerGlobalScope,
+ InterestGroupScoringScriptRunnerGlobalScope)]
+interface InterestGroupScoringScriptRunnerGlobalScope
+ : InterestGroupScriptRunnerGlobalScope {
+};
+
+[Exposed=InterestGroupReportingScriptRunnerGlobalScope,
+ Global=(InterestGroupScriptRunnerGlobalScope,
+ InterestGroupReportingScriptRunnerGlobalScope)]
+interface InterestGroupReportingScriptRunnerGlobalScope
+ : InterestGroupScriptRunnerGlobalScope {
+ undefined sendReportTo(DOMString url);
+ undefined registerAdBeacon(record<DOMString, USVString> map);
+ undefined registerAdMacro(DOMString name, USVString value);
+};
+
+[SecureContext]
+partial interface Navigator {
+ undefined updateAdInterestGroups();
+};
+
+partial dictionary RequestInit {
+ boolean adAuctionHeaders;
+};
+
+partial interface HTMLIFrameElement {
+ [CEReactions] attribute boolean adAuctionHeaders;
+};
+
+dictionary PreviousWin {
+ required long long timeDelta;
+ required DOMString adJSON;
+};
+
+dictionary BiddingBrowserSignals {
+ required DOMString topWindowHostname;
+ required USVString seller;
+ required long joinCount;
+ required long bidCount;
+ required long recency;
+
+ USVString topLevelSeller;
+ sequence<PreviousWin> prevWinsMs;
+ object wasmHelper;
+ unsigned long dataVersion;
+};
+
+dictionary ScoringBrowserSignals {
+ required DOMString topWindowHostname;
+ required USVString interestGroupOwner;
+ required USVString renderURL;
+ required unsigned long biddingDurationMsec;
+ required DOMString bidCurrency;
+
+ unsigned long dataVersion;
+ sequence<USVString> adComponents;
+};
+
+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;
+};
+
+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;
+};