Files
tubestation/testing/web-platform/tests/interfaces/trust-token-api.idl
github-actions[bot] 71299a5ae3 Bug 1875464 [wpt PR 44093] - Sync interfaces/ with @webref/idl 3.42.5, a=testonly
Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 3.42.5 (#44093)

Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com>
--

wpt-commits: 4ff4de11b968b541943ed296ab1576d772c203bb
wpt-pr: 44093
2024-01-22 09:08:51 +00:00

35 lines
935 B
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Private State Token API (https://wicg.github.io/trust-token-api/)
enum RefreshPolicy { "none", "refresh" };
enum TokenVersion { "1" };
enum OperationType { "token-request", "send-redemption-record", "token-redemption" };
dictionary PrivateToken {
required TokenVersion version;
required OperationType operation;
RefreshPolicy refreshPolicy = "none";
sequence<USVString> issuers;
};
partial dictionary RequestInit {
PrivateToken privateToken;
};
partial interface HTMLIFrameElement {
[SecureContext] attribute DOMString privateToken;
};
partial interface XMLHttpRequest {
undefined setPrivateToken(PrivateToken privateToken);
};
partial interface Document {
Promise<boolean> hasPrivateToken(USVString issuer);
Promise<boolean> hasRedemptionRecord(USVString issuer);
};