tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

trust-token-api.idl (935B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Private State Token API (https://wicg.github.io/trust-token-api/)
      5 
      6 enum RefreshPolicy { "none", "refresh" };
      7 
      8 enum TokenVersion { "1" };
      9 
     10 enum OperationType { "token-request", "send-redemption-record", "token-redemption" };
     11 
     12 dictionary PrivateToken {
     13  required TokenVersion version;
     14  required OperationType operation;
     15  RefreshPolicy refreshPolicy = "none";
     16  sequence<USVString> issuers;
     17 };
     18 
     19 partial dictionary RequestInit {
     20  PrivateToken privateToken;
     21 };
     22 
     23 partial interface HTMLIFrameElement {
     24  [SecureContext] attribute DOMString privateToken;
     25 };
     26 
     27 partial interface XMLHttpRequest {
     28  undefined setPrivateToken(PrivateToken privateToken);
     29 };
     30 
     31 partial interface Document {
     32  Promise<boolean> hasPrivateToken(USVString issuer);
     33  Promise<boolean> hasRedemptionRecord(USVString issuer);
     34 };