diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:19 +0000 |
commit | 0b6210cd37b68b94252cb798598b12974a20e1c1 (patch) | |
tree | e371686554a877842d95aa94f100bee552ff2a8e /test/wpt/tests/interfaces/turtledove.idl | |
parent | Initial commit. (diff) | |
download | node-undici-0b6210cd37b68b94252cb798598b12974a20e1c1.tar.xz node-undici-0b6210cd37b68b94252cb798598b12974a20e1c1.zip |
Adding upstream version 5.28.2+dfsg1+~cs23.11.12.3.upstream/5.28.2+dfsg1+_cs23.11.12.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/wpt/tests/interfaces/turtledove.idl')
-rw-r--r-- | test/wpt/tests/interfaces/turtledove.idl | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/test/wpt/tests/interfaces/turtledove.idl b/test/wpt/tests/interfaces/turtledove.idl new file mode 100644 index 0000000..f5867e9 --- /dev/null +++ b/test/wpt/tests/interfaces/turtledove.idl @@ -0,0 +1,120 @@ +// 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, double durationSeconds); +}; + +dictionary AuctionAd { + required USVString renderURL; + any metadata; +}; + +dictionary AuctionAdInterestGroup { + required USVString owner; + required USVString name; + + double priority = 0.0; + boolean enableBiddingSignalsPrioritization = false; + record<DOMString, double> priorityVector; + record<DOMString, double> prioritySignalsOverrides; + + DOMString executionMode = "compatibility"; + USVString biddingLogicURL; + USVString biddingWasmHelperURL; + USVString updateURL; + USVString trustedBiddingSignalsURL; + sequence<USVString> trustedBiddingSignalsKeys; + any userBiddingSignals; + sequence<AuctionAd> ads; + sequence<AuctionAd> adComponents; +}; + +[SecureContext] +partial interface Navigator { + Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group); +}; + +dictionary AuctionAdInterestGroupKey { + required USVString owner; + required USVString name; +}; + +[SecureContext] +partial interface Navigator { + Promise<USVString?> runAdAuction(AuctionAdConfig config); +}; + +dictionary AuctionAdConfig { + required USVString seller; + required USVString decisionLogicURL; + USVString trustedScoringSignalsURL; + sequence<USVString> interestGroupBuyers; + any auctionSignals; + any sellerSignals; + USVString directFromSellerSignals; + unsigned long long sellerTimeout; + unsigned short sellerExperimentGroupId; + record<USVString, any> perBuyerSignals; + record<USVString, unsigned long long> perBuyerTimeouts; + record<USVString, unsigned short> perBuyerGroupLimits; + record<USVString, unsigned short> perBuyerExperimentGroupIds; + record<USVString, record<USVString, double>> perBuyerPrioritySignals; + sequence<AuctionAdConfig> componentAuctions = []; + AbortSignal? signal; +}; + +[Exposed=InterestGroupScriptRunnerGlobalScope] +interface InterestGroupScriptRunnerGlobalScope { +}; + +[Exposed=InterestGroupBiddingScriptRunnerGlobalScope, + Global=(InterestGroupScriptRunnerGlobalScope, + InterestGroupBiddingScriptRunnerGlobalScope)] +interface InterestGroupBiddingScriptRunnerGlobalScope + : InterestGroupScriptRunnerGlobalScope { + boolean setBid(); + boolean setBid(GenerateBidOutput generateBidOutput); + undefined setPriority(double priority); + undefined setPrioritySignalsOverride(DOMString key, double priority); +}; + +[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); +}; + +dictionary AdRender { + required DOMString url; + required DOMString width; + required DOMString height; +}; + +dictionary GenerateBidOutput { + required double bid; + required (DOMString or AdRender) adRender; + any ad; + sequence<(DOMString or AdRender)> adComponents; + double adCost; + double modelingSignals; + boolean allowComponentAuction = false; +}; + +[SecureContext] +partial interface Navigator { + undefined updateAdInterestGroups(); +}; |