@webref/idl 3.27.1 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/package.json +1 -1
  2. package/ANGLE_instanced_arrays.idl +0 -12
  3. package/CSP.idl +0 -56
  4. package/DOM-Parsing.idl +0 -26
  5. package/EXT_blend_minmax.idl +0 -10
  6. package/EXT_color_buffer_float.idl +0 -8
  7. package/EXT_color_buffer_half_float.idl +0 -12
  8. package/EXT_disjoint_timer_query.idl +0 -30
  9. package/EXT_disjoint_timer_query_webgl2.idl +0 -14
  10. package/EXT_float_blend.idl +0 -8
  11. package/EXT_frag_depth.idl +0 -8
  12. package/EXT_sRGB.idl +0 -12
  13. package/EXT_shader_texture_lod.idl +0 -8
  14. package/EXT_texture_compression_bptc.idl +0 -12
  15. package/EXT_texture_compression_rgtc.idl +0 -12
  16. package/EXT_texture_filter_anisotropic.idl +0 -10
  17. package/EXT_texture_norm16.idl +0 -16
  18. package/FedCM.idl +0 -67
  19. package/FileAPI.idl +0 -100
  20. package/IndexedDB.idl +0 -226
  21. package/KHR_parallel_shader_compile.idl +0 -9
  22. package/OES_draw_buffers_indexed.idl +0 -26
  23. package/OES_element_index_uint.idl +0 -8
  24. package/OES_fbo_render_mipmap.idl +0 -8
  25. package/OES_standard_derivatives.idl +0 -9
  26. package/OES_texture_float.idl +0 -7
  27. package/OES_texture_float_linear.idl +0 -7
  28. package/OES_texture_half_float.idl +0 -9
  29. package/OES_texture_half_float_linear.idl +0 -7
  30. package/OES_vertex_array_object.idl +0 -18
  31. package/OVR_multiview2.idl +0 -14
  32. package/SVG.idl +0 -693
  33. package/WEBGL_blend_equation_advanced_coherent.idl +0 -23
  34. package/WEBGL_clip_cull_distance.idl +0 -20
  35. package/WEBGL_color_buffer_float.idl +0 -11
  36. package/WEBGL_compressed_texture_astc.idl +0 -41
  37. package/WEBGL_compressed_texture_etc.idl +0 -19
  38. package/WEBGL_compressed_texture_etc1.idl +0 -10
  39. package/WEBGL_compressed_texture_pvrtc.idl +0 -13
  40. package/WEBGL_compressed_texture_s3tc.idl +0 -13
  41. package/WEBGL_compressed_texture_s3tc_srgb.idl +0 -13
  42. package/WEBGL_debug_renderer_info.idl +0 -12
  43. package/WEBGL_debug_shaders.idl +0 -11
  44. package/WEBGL_depth_texture.idl +0 -9
  45. package/WEBGL_draw_buffers.idl +0 -46
  46. package/WEBGL_draw_instanced_base_vertex_base_instance.idl +0 -14
  47. package/WEBGL_lose_context.idl +0 -10
  48. package/WEBGL_multi_draw.idl +0 -32
  49. package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +0 -26
  50. package/WEBGL_provoking_vertex.idl +0 -13
  51. package/WebCryptoAPI.idl +0 -237
  52. package/accelerometer.idl +0 -40
  53. package/ambient-light.idl +0 -14
  54. package/anchors.idl +0 -35
  55. package/attribution-reporting-api.idl +0 -12
  56. package/audio-output.idl +0 -17
  57. package/autoplay-detection.idl +0 -19
  58. package/background-fetch.idl +0 -89
  59. package/background-sync.idl +0 -30
  60. package/badging.idl +0 -19
  61. package/battery-status.idl +0 -21
  62. package/beacon.idl +0 -8
  63. package/capture-handle-identity.idl +0 -27
  64. package/clipboard-apis.idl +0 -51
  65. package/close-watcher.idl +0 -19
  66. package/compat.idl +0 -13
  67. package/compression.idl +0 -16
  68. package/compute-pressure.idl +0 -40
  69. package/console.idl +0 -34
  70. package/contact-picker.idl +0 -44
  71. package/content-index.idl +0 -46
  72. package/cookie-store.idl +0 -110
  73. package/crash-reporting.idl +0 -10
  74. package/credential-management.idl +0 -105
  75. package/csp-embedded-enforcement.idl +0 -8
  76. package/csp-next.idl +0 -21
  77. package/css-animation-worklet.idl +0 -37
  78. package/css-animations-2.idl +0 -9
  79. package/css-animations.idl +0 -47
  80. package/css-cascade-6.idl +0 -10
  81. package/css-cascade.idl +0 -18
  82. package/css-color-5.idl +0 -12
  83. package/css-conditional.idl +0 -27
  84. package/css-contain-3.idl +0 -10
  85. package/css-contain.idl +0 -13
  86. package/css-counter-styles.idl +0 -23
  87. package/css-font-loading.idl +0 -134
  88. package/css-fonts.idl +0 -36
  89. package/css-highlight-api.idl +0 -27
  90. package/css-images-4.idl +0 -8
  91. package/css-layout-api.idl +0 -144
  92. package/css-masking.idl +0 -20
  93. package/css-nav.idl +0 -48
  94. package/css-nesting.idl +0 -10
  95. package/css-paint-api.idl +0 -39
  96. package/css-parser-api.idl +0 -76
  97. package/css-properties-values-api.idl +0 -23
  98. package/css-pseudo.idl +0 -16
  99. package/css-regions.idl +0 -29
  100. package/css-shadow-parts.idl +0 -8
  101. package/css-transitions-2.idl +0 -9
  102. package/css-transitions.idl +0 -25
  103. package/css-typed-om.idl +0 -425
  104. package/css-view-transitions.idl +0 -18
  105. package/cssom-view.idl +0 -200
  106. package/cssom.idl +0 -159
  107. package/custom-state-pseudo-class.idl +0 -14
  108. package/datacue.idl +0 -12
  109. package/deprecation-reporting.idl +0 -15
  110. package/device-memory.idl +0 -14
  111. package/device-posture.idl +0 -21
  112. package/digital-goods.idl +0 -44
  113. package/dom.idl +0 -645
  114. package/edit-context.idl +0 -113
  115. package/element-timing.idl +0 -22
  116. package/encoding.idl +0 -59
  117. package/encrypted-media.idl +0 -125
  118. package/entries-api.idl +0 -71
  119. package/event-timing.idl +0 -29
  120. package/eyedropper-api.idl +0 -18
  121. package/fetch.idl +0 -117
  122. package/fido.idl +0 -47
  123. package/file-system-access.idl +0 -72
  124. package/filter-effects.idl +0 -341
  125. package/font-metrics-api.idl +0 -42
  126. package/fs.idl +0 -97
  127. package/fullscreen.idl +0 -35
  128. package/gamepad-extensions.idl +0 -71
  129. package/gamepad.idl +0 -49
  130. package/generic-sensor.idl +0 -60
  131. package/geolocation-sensor.idl +0 -47
  132. package/geolocation.idl +0 -65
  133. package/geometry.idl +0 -290
  134. package/get-installed-related-apps.idl +0 -16
  135. package/gpc-spec.idl +0 -10
  136. package/gyroscope.idl +0 -24
  137. package/hr-time.idl +0 -19
  138. package/html-media-capture.idl +0 -8
  139. package/html.idl +0 -2717
  140. package/idle-detection.idl +0 -31
  141. package/image-capture.idl +0 -160
  142. package/image-resource.idl +0 -11
  143. package/ink-enhancement.idl +0 -32
  144. package/input-device-capabilities.idl +0 -24
  145. package/input-events.idl +0 -14
  146. package/intersection-observer.idl +0 -46
  147. package/intervention-reporting.idl +0 -14
  148. package/is-input-pending.idl +0 -16
  149. package/js-self-profiling.idl +0 -44
  150. package/keyboard-lock.idl +0 -14
  151. package/keyboard-map.idl +0 -15
  152. package/largest-contentful-paint.idl +0 -15
  153. package/layout-instability.idl +0 -20
  154. package/local-font-access.idl +0 -24
  155. package/longtasks.idl +0 -19
  156. package/magnetometer.idl +0 -46
  157. package/manifest-incubations.idl +0 -24
  158. package/mathml-core.idl +0 -9
  159. package/media-capabilities.idl +0 -115
  160. package/media-playback-quality.idl +0 -18
  161. package/media-source.idl +0 -91
  162. package/mediacapture-automation.idl +0 -36
  163. package/mediacapture-fromelement.idl +0 -17
  164. package/mediacapture-handle-actions.idl +0 -31
  165. package/mediacapture-region.idl +0 -15
  166. package/mediacapture-streams.idl +0 -248
  167. package/mediacapture-transform.idl +0 -23
  168. package/mediacapture-viewport.idl +0 -14
  169. package/mediasession.idl +0 -84
  170. package/mediastream-recording.idl +0 -60
  171. package/model-element.idl +0 -9
  172. package/mst-content-hint.idl +0 -18
  173. package/navigation-api.idl +0 -158
  174. package/navigation-timing.idl +0 -71
  175. package/netinfo.idl +0 -43
  176. package/notifications.idl +0 -101
  177. package/orientation-event.idl +0 -82
  178. package/orientation-sensor.idl +0 -35
  179. package/page-lifecycle.idl +0 -19
  180. package/paint-timing.idl +0 -7
  181. package/payment-handler.idl +0 -131
  182. package/payment-request.idl +0 -112
  183. package/performance-measure-memory.idl +0 -30
  184. package/performance-timeline.idl +0 -49
  185. package/periodic-background-sync.idl +0 -34
  186. package/permissions-policy.idl +0 -29
  187. package/permissions-request.idl +0 -8
  188. package/permissions-revoke.idl +0 -8
  189. package/permissions.idl +0 -41
  190. package/picture-in-picture.idl +0 -41
  191. package/pointerevents.idl +0 -64
  192. package/pointerlock.idl +0 -28
  193. package/portals.idl +0 -50
  194. package/prefer-current-tab.idl +0 -8
  195. package/prerendering-revamped.idl +0 -15
  196. package/presentation-api.idl +0 -95
  197. package/private-click-measurement.idl +0 -8
  198. package/proximity.idl +0 -18
  199. package/push-api.idl +0 -93
  200. package/raw-camera-access.idl +0 -18
  201. package/referrer-policy.idl +0 -16
  202. package/remote-playback.idl +0 -32
  203. package/reporting.idl +0 -39
  204. package/requestStorageAccessForOrigin.idl +0 -12
  205. package/requestidlecallback.idl +0 -20
  206. package/resize-observer.idl +0 -37
  207. package/resource-timing.idl +0 -39
  208. package/sanitizer-api.idl +0 -38
  209. package/savedata.idl +0 -10
  210. package/scheduling-apis.idl +0 -57
  211. package/screen-capture.idl +0 -85
  212. package/screen-orientation.idl +0 -35
  213. package/screen-wake-lock.idl +0 -24
  214. package/scroll-animations.idl +0 -41
  215. package/scroll-to-text-fragment.idl +0 -12
  216. package/secure-payment-confirmation.idl +0 -52
  217. package/selection-api.idl +0 -46
  218. package/serial.idl +0 -85
  219. package/server-timing.idl +0 -17
  220. package/service-workers.idl +0 -240
  221. package/shape-detection-api.idl +0 -69
  222. package/speech-api.idl +0 -202
  223. package/storage-access.idl +0 -9
  224. package/storage.idl +0 -25
  225. package/streams.idl +0 -222
  226. package/svg-animations.idl +0 -68
  227. package/testutils.idl +0 -9
  228. package/text-detection-api.idl +0 -18
  229. package/touch-events.idl +0 -79
  230. package/trusted-types.idl +0 -71
  231. package/ua-client-hints.idl +0 -44
  232. package/uievents.idl +0 -248
  233. package/url.idl +0 -44
  234. package/urlpattern.idl +0 -59
  235. package/user-timing.idl +0 -34
  236. package/vibration.idl +0 -10
  237. package/video-rvfc.idl +0 -27
  238. package/virtual-keyboard.idl +0 -21
  239. package/wai-aria.idl +0 -59
  240. package/wasm-js-api.idl +0 -110
  241. package/wasm-web-api.idl +0 -11
  242. package/web-animations-2.idl +0 -102
  243. package/web-animations.idl +0 -149
  244. package/web-app-launch.idl +0 -19
  245. package/web-bluetooth.idl +0 -251
  246. package/web-locks.idl +0 -50
  247. package/web-nfc.idl +0 -81
  248. package/web-otp.idl +0 -21
  249. package/web-share.idl +0 -16
  250. package/webaudio.idl +0 -674
  251. package/webauthn.idl +0 -349
  252. package/webcodecs-aac-codec-registration.idl +0 -17
  253. package/webcodecs-avc-codec-registration.idl +0 -17
  254. package/webcodecs-flac-codec-registration.idl +0 -13
  255. package/webcodecs-hevc-codec-registration.idl +0 -17
  256. package/webcodecs-opus-codec-registration.idl +0 -22
  257. package/webcodecs.idl +0 -494
  258. package/webcrypto-secure-curves.idl +0 -8
  259. package/webdriver.idl +0 -9
  260. package/webgl1.idl +0 -745
  261. package/webgl2.idl +0 -582
  262. package/webgpu.idl +0 -1265
  263. package/webhid.idl +0 -127
  264. package/webidl.idl +0 -48
  265. package/webmidi.idl +0 -91
  266. package/webnn.idl +0 -542
  267. package/webrtc-encoded-transform.idl +0 -127
  268. package/webrtc-ice.idl +0 -24
  269. package/webrtc-identity.idl +0 -97
  270. package/webrtc-priority.idl +0 -24
  271. package/webrtc-stats.idl +0 -288
  272. package/webrtc-svc.idl +0 -8
  273. package/webrtc.idl +0 -628
  274. package/websockets.idl +0 -48
  275. package/webtransport.idl +0 -151
  276. package/webusb.idl +0 -249
  277. package/webvtt.idl +0 -40
  278. package/webxr-ar-module.idl +0 -29
  279. package/webxr-depth-sensing.idl +0 -57
  280. package/webxr-dom-overlays.idl +0 -31
  281. package/webxr-gamepads-module.idl +0 -8
  282. package/webxr-hand-input.idl +0 -66
  283. package/webxr-hit-test.idl +0 -69
  284. package/webxr-lighting-estimation.idl +0 -39
  285. package/webxr.idl +0 -294
  286. package/webxrlayers.idl +0 -212
  287. package/window-controls-overlay.idl +0 -28
  288. package/window-placement.idl +0 -42
  289. package/xhr.idl +0 -99
package/cssom.idl DELETED
@@ -1,159 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: CSS Object Model (CSSOM) (https://drafts.csswg.org/cssom-1/)
5
-
6
- [Exposed=Window]
7
- interface MediaList {
8
- stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
9
- readonly attribute unsigned long length;
10
- getter CSSOMString? item(unsigned long index);
11
- undefined appendMedium(CSSOMString medium);
12
- undefined deleteMedium(CSSOMString medium);
13
- };
14
-
15
- [Exposed=Window]
16
- interface StyleSheet {
17
- readonly attribute CSSOMString type;
18
- readonly attribute USVString? href;
19
- readonly attribute (Element or ProcessingInstruction)? ownerNode;
20
- readonly attribute CSSStyleSheet? parentStyleSheet;
21
- readonly attribute DOMString? title;
22
- [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
23
- attribute boolean disabled;
24
- };
25
-
26
- [Exposed=Window]
27
- interface CSSStyleSheet : StyleSheet {
28
- constructor(optional CSSStyleSheetInit options = {});
29
-
30
- readonly attribute CSSRule? ownerRule;
31
- [SameObject] readonly attribute CSSRuleList cssRules;
32
- unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
33
- undefined deleteRule(unsigned long index);
34
-
35
- Promise<CSSStyleSheet> replace(USVString text);
36
- undefined replaceSync(USVString text);
37
- };
38
-
39
- dictionary CSSStyleSheetInit {
40
- DOMString baseURL = null;
41
- (MediaList or DOMString) media = "";
42
- boolean disabled = false;
43
- };
44
-
45
- partial interface CSSStyleSheet {
46
- [SameObject] readonly attribute CSSRuleList rules;
47
- long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
48
- undefined removeRule(optional unsigned long index = 0);
49
- };
50
-
51
- [Exposed=Window]
52
- interface StyleSheetList {
53
- getter CSSStyleSheet? item(unsigned long index);
54
- readonly attribute unsigned long length;
55
- };
56
-
57
- partial interface mixin DocumentOrShadowRoot {
58
- [SameObject] readonly attribute StyleSheetList styleSheets;
59
- attribute ObservableArray<CSSStyleSheet> adoptedStyleSheets;
60
- };
61
-
62
- interface mixin LinkStyle {
63
- readonly attribute CSSStyleSheet? sheet;
64
- };
65
-
66
- ProcessingInstruction includes LinkStyle;
67
- [Exposed=Window]
68
- interface CSSRuleList {
69
- getter CSSRule? item(unsigned long index);
70
- readonly attribute unsigned long length;
71
- };
72
-
73
- [Exposed=Window]
74
- interface CSSRule {
75
- attribute CSSOMString cssText;
76
- readonly attribute CSSRule? parentRule;
77
- readonly attribute CSSStyleSheet? parentStyleSheet;
78
-
79
- // the following attribute and constants are historical
80
- readonly attribute unsigned short type;
81
- const unsigned short STYLE_RULE = 1;
82
- const unsigned short CHARSET_RULE = 2;
83
- const unsigned short IMPORT_RULE = 3;
84
- const unsigned short MEDIA_RULE = 4;
85
- const unsigned short FONT_FACE_RULE = 5;
86
- const unsigned short PAGE_RULE = 6;
87
- const unsigned short MARGIN_RULE = 9;
88
- const unsigned short NAMESPACE_RULE = 10;
89
- };
90
-
91
- [Exposed=Window]
92
- interface CSSStyleRule : CSSRule {
93
- attribute CSSOMString selectorText;
94
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
95
- };
96
-
97
- [Exposed=Window]
98
- interface CSSImportRule : CSSRule {
99
- readonly attribute USVString href;
100
- [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
101
- [SameObject] readonly attribute CSSStyleSheet styleSheet;
102
- };
103
-
104
- [Exposed=Window]
105
- interface CSSGroupingRule : CSSRule {
106
- [SameObject] readonly attribute CSSRuleList cssRules;
107
- unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
108
- undefined deleteRule(unsigned long index);
109
- };
110
-
111
- [Exposed=Window]
112
- interface CSSPageRule : CSSGroupingRule {
113
- attribute CSSOMString selectorText;
114
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
115
- };
116
-
117
- [Exposed=Window]
118
- interface CSSMarginRule : CSSRule {
119
- readonly attribute CSSOMString name;
120
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
121
- };
122
-
123
- [Exposed=Window]
124
- interface CSSNamespaceRule : CSSRule {
125
- readonly attribute CSSOMString namespaceURI;
126
- readonly attribute CSSOMString prefix;
127
- };
128
-
129
- [Exposed=Window]
130
- interface CSSStyleDeclaration {
131
- [CEReactions] attribute CSSOMString cssText;
132
- readonly attribute unsigned long length;
133
- getter CSSOMString item(unsigned long index);
134
- CSSOMString getPropertyValue(CSSOMString property);
135
- CSSOMString getPropertyPriority(CSSOMString property);
136
- [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
137
- [CEReactions] CSSOMString removeProperty(CSSOMString property);
138
- readonly attribute CSSRule? parentRule;
139
- [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
140
- };
141
-
142
- interface mixin ElementCSSInlineStyle {
143
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
144
- };
145
-
146
- HTMLElement includes ElementCSSInlineStyle;
147
-
148
- SVGElement includes ElementCSSInlineStyle;
149
-
150
- MathMLElement includes ElementCSSInlineStyle;
151
-
152
- partial interface Window {
153
- [NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional CSSOMString? pseudoElt);
154
- };
155
-
156
- [Exposed=Window]
157
- namespace CSS {
158
- CSSOMString escape(CSSOMString ident);
159
- };
@@ -1,14 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Custom State Pseudo Class (https://wicg.github.io/custom-state-pseudo-class/)
5
-
6
- partial interface ElementInternals {
7
- readonly attribute CustomStateSet states;
8
- };
9
-
10
- [Exposed=Window]
11
- interface CustomStateSet {
12
- setlike<DOMString>;
13
- undefined add(DOMString value);
14
- };
package/datacue.idl DELETED
@@ -1,12 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: DataCue API (https://wicg.github.io/datacue/)
5
-
6
- [Exposed=Window]
7
- interface DataCue : TextTrackCue {
8
- constructor(double startTime, unrestricted double endTime,
9
- any value, optional DOMString type);
10
- attribute any value;
11
- readonly attribute DOMString type;
12
- };
@@ -1,15 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Deprecation Reporting (https://wicg.github.io/deprecation-reporting/)
5
-
6
- [Exposed=(Window,Worker)]
7
- interface DeprecationReportBody : ReportBody {
8
- [Default] object toJSON();
9
- readonly attribute DOMString id;
10
- readonly attribute object? anticipatedRemoval;
11
- readonly attribute DOMString message;
12
- readonly attribute DOMString? sourceFile;
13
- readonly attribute unsigned long? lineNumber;
14
- readonly attribute unsigned long? columnNumber;
15
- };
package/device-memory.idl DELETED
@@ -1,14 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Device Memory (https://www.w3.org/TR/device-memory/)
5
-
6
- [
7
- SecureContext,
8
- Exposed=(Window,Worker)
9
- ] interface mixin NavigatorDeviceMemory {
10
- readonly attribute double deviceMemory;
11
- };
12
-
13
- Navigator includes NavigatorDeviceMemory;
14
- WorkerNavigator includes NavigatorDeviceMemory;
@@ -1,21 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Device Posture API (https://w3c.github.io/device-posture/)
5
-
6
- [SecureContext, Exposed=(Window)]
7
- partial interface Navigator {
8
- [SameObject] readonly attribute DevicePosture devicePosture;
9
- };
10
-
11
- [SecureContext, Exposed=(Window)]
12
- interface DevicePosture : EventTarget {
13
- readonly attribute DevicePostureType type;
14
- attribute EventHandler onchange;
15
- };
16
-
17
- enum DevicePostureType {
18
- "continuous",
19
- "folded",
20
- "folded-over"
21
- };
package/digital-goods.idl DELETED
@@ -1,44 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Digital Goods API (https://wicg.github.io/digital-goods/)
5
-
6
- partial interface Window {
7
- [SecureContext] Promise<DigitalGoodsService> getDigitalGoodsService(
8
- DOMString serviceProvider);
9
- };
10
-
11
- [Exposed=Window, SecureContext] interface DigitalGoodsService {
12
-
13
- Promise<sequence<ItemDetails>> getDetails(sequence<DOMString> itemIds);
14
-
15
- Promise<sequence<PurchaseDetails>> listPurchases();
16
-
17
- Promise<sequence<PurchaseDetails>> listPurchaseHistory();
18
-
19
- Promise<undefined> consume(DOMString purchaseToken);
20
- };
21
-
22
- dictionary ItemDetails {
23
- required DOMString itemId;
24
- required DOMString title;
25
- required PaymentCurrencyAmount price;
26
- ItemType type;
27
- DOMString description;
28
- sequence<DOMString> iconURLs;
29
- DOMString subscriptionPeriod;
30
- DOMString freeTrialPeriod;
31
- PaymentCurrencyAmount introductoryPrice;
32
- DOMString introductoryPricePeriod;
33
- [EnforceRange] unsigned long long introductoryPriceCycles;
34
- };
35
-
36
- enum ItemType {
37
- "product",
38
- "subscription",
39
- };
40
-
41
- dictionary PurchaseDetails {
42
- required DOMString itemId;
43
- required DOMString purchaseToken;
44
- };