privacy-preserving-attribution.idl (1852B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Attribution Level 1 (https://w3c.github.io/attribution/) 5 6 partial interface Navigator { 7 [SecureContext, SameObject] readonly attribute Attribution attribution; 8 }; 9 10 enum AttributionAggregationProtocol { "dap-15-histogram" }; 11 12 dictionary AttributionAggregationService { 13 required AttributionAggregationProtocol protocol; 14 }; 15 16 [SecureContext, Exposed=Window] 17 interface AttributionAggregationServices { 18 readonly maplike<USVString, AttributionAggregationService>; 19 }; 20 21 [SecureContext, Exposed=Window] 22 interface Attribution { 23 readonly attribute AttributionAggregationServices aggregationServices; 24 }; 25 26 dictionary AttributionImpressionOptions { 27 required unsigned long histogramIndex; 28 unsigned long matchValue = 0; 29 sequence<USVString> conversionSites = []; 30 sequence<USVString> conversionCallers = []; 31 unsigned long lifetimeDays = 30; 32 long priority = 0; 33 }; 34 35 dictionary AttributionImpressionResult { 36 }; 37 38 [SecureContext, Exposed=Window] 39 partial interface Attribution { 40 Promise<AttributionImpressionResult> saveImpression(AttributionImpressionOptions options); 41 }; 42 43 dictionary AttributionConversionOptions { 44 required USVString aggregationService; 45 double epsilon = 1.0; 46 47 required unsigned long histogramSize; 48 49 unsigned long lookbackDays; 50 sequence<unsigned long> matchValues = []; 51 sequence<USVString> impressionSites = []; 52 sequence<USVString> impressionCallers = []; 53 54 sequence<double> credit; 55 unsigned long value = 1; 56 unsigned long maxValue = 1; 57 }; 58 59 dictionary AttributionConversionResult { 60 required Uint8Array report; 61 }; 62 63 [SecureContext, Exposed=Window] 64 partial interface Attribution { 65 Promise<AttributionConversionResult> measureConversion(AttributionConversionOptions options); 66 };