@webref/idl 3.12.0 → 3.12.3

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.
package/CSP.idl CHANGED
@@ -5,6 +5,7 @@
5
5
 
6
6
  [Exposed=Window]
7
7
  interface CSPViolationReportBody : ReportBody {
8
+ [Default] object toJSON();
8
9
  readonly attribute USVString documentURL;
9
10
  readonly attribute USVString? referrer;
10
11
  readonly attribute USVString? blockedURL;
package/FedCM.idl CHANGED
@@ -4,37 +4,30 @@
4
4
  // Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)
5
5
 
6
6
  [Exposed=Window, SecureContext]
7
- dictionary FederatedAccountLoginRequest {
8
- AbortSignal signal;
9
- USVString nonce;
10
- };
11
-
12
- [Exposed=Window, SecureContext]
13
- partial interface FederatedCredential {
14
- Promise<FederatedTokens> login(optional FederatedAccountLoginRequest request = {});
7
+ interface IdentityCredential : Credential {
8
+ readonly attribute USVString? token;
15
9
  };
16
10
 
17
- [Exposed=Window, SecureContext]
18
- dictionary FederatedTokens {
19
- USVString idToken;
11
+ partial dictionary CredentialRequestOptions {
12
+ IdentityCredentialRequestOptions identity;
20
13
  };
21
14
 
22
- [Exposed=Window, SecureContext]
23
- partial interface FederatedCredential {
24
- Promise<undefined> revoke(USVString hint);
15
+ dictionary IdentityCredentialRequestOptions {
16
+ sequence<IdentityProvider> providers;
25
17
  };
26
18
 
27
- [Exposed=Window, SecureContext]
28
- partial interface FederatedCredential {
29
- Promise<undefined> logout();
19
+ dictionary IdentityProvider {
20
+ required USVString configURL;
21
+ required USVString clientId;
22
+ USVString nonce;
30
23
  };
31
24
 
32
- dictionary FederatedCredentialLogoutRpsRequest {
25
+ dictionary IdentityCredentialLogoutRpsRequest {
33
26
  required USVString url;
34
27
  required USVString accountId;
35
28
  };
36
29
 
37
30
  [Exposed=Window, SecureContext]
38
- partial interface FederatedCredential {
39
- static Promise<undefined> logoutRPs(sequence<FederatedCredentialLogoutRpsRequest> logoutRequests);
31
+ partial interface IdentityCredential {
32
+ static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRpsRequest> logoutRequests);
40
33
  };
@@ -12,7 +12,7 @@ interface WEBGL_multi_draw {
12
12
  GLsizei drawcount);
13
13
  undefined multiDrawElementsWEBGL(
14
14
  GLenum mode,
15
- ([AllowShared] Int32Array or sequence<GLint>) countsList, GLuint countsOffset,
15
+ ([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
16
16
  GLenum type,
17
17
  ([AllowShared] Int32Array or sequence<GLsizei>) offsetsList, GLuint offsetsOffset,
18
18
  GLsizei drawcount);
@@ -24,7 +24,7 @@ interface WEBGL_multi_draw {
24
24
  GLsizei drawcount);
25
25
  undefined multiDrawElementsInstancedWEBGL(
26
26
  GLenum mode,
27
- ([AllowShared] Int32Array or sequence<GLint>) countsList, GLuint countsOffset,
27
+ ([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
28
28
  GLenum type,
29
29
  ([AllowShared] Int32Array or sequence<GLsizei>) offsetsList, GLuint offsetsOffset,
30
30
  ([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,
@@ -11,7 +11,7 @@ interface WEBGL_multi_draw_instanced_base_vertex_base_instance {
11
11
  ([AllowShared] Int32Array or sequence<GLsizei>) countsList, GLuint countsOffset,
12
12
  ([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,
13
13
  ([AllowShared] Uint32Array or sequence<GLuint>) baseInstancesList, GLuint baseInstancesOffset,
14
- GLsizei drawCount
14
+ GLsizei drawcount
15
15
  );
16
16
  undefined multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(
17
17
  GLenum mode,
@@ -21,6 +21,6 @@ interface WEBGL_multi_draw_instanced_base_vertex_base_instance {
21
21
  ([AllowShared] Int32Array or sequence<GLsizei>) instanceCountsList, GLuint instanceCountsOffset,
22
22
  ([AllowShared] Int32Array or sequence<GLint>) baseVerticesList, GLuint baseVerticesOffset,
23
23
  ([AllowShared] Uint32Array or sequence<GLuint>) baseInstancesList, GLuint baseInstancesOffset,
24
- GLsizei drawCount
24
+ GLsizei drawcount
25
25
  );
26
26
  };
package/console.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Console Standard (https://console.spec.whatwg.org/)
5
5
 
6
- [Exposed=(Window,Worker,Worklet)]
6
+ [Exposed=*]
7
7
  namespace console { // but see namespace object requirements below
8
8
  // Logging
9
9
  undefined assert(optional boolean condition = false, any... data);
@@ -7,7 +7,7 @@
7
7
  interface Credential {
8
8
  readonly attribute USVString id;
9
9
  readonly attribute DOMString type;
10
- static boolean isConditionalMediationAvailable();
10
+ static Promise<boolean> isConditionalMediationAvailable();
11
11
  };
12
12
 
13
13
  [SecureContext]
package/cssom-view.idl CHANGED
@@ -100,8 +100,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
100
100
  ScrollLogicalPosition inline = "nearest";
101
101
  };
102
102
 
103
- dictionary IsVisibleOptions {
104
- boolean checkInert = false;
103
+ dictionary CheckVisibilityOptions {
105
104
  boolean checkOpacity = false;
106
105
  boolean checkVisibilityCSS = false;
107
106
  };
@@ -110,7 +109,7 @@ partial interface Element {
110
109
  DOMRectList getClientRects();
111
110
  [NewObject] DOMRect getBoundingClientRect();
112
111
 
113
- boolean isVisible(optional IsVisibleOptions options = {});
112
+ boolean checkVisibility(optional CheckVisibilityOptions options = {});
114
113
 
115
114
  undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
116
115
  undefined scroll(optional ScrollToOptions options = {});
package/dom.idl CHANGED
@@ -77,7 +77,7 @@ dictionary EventListenerOptions {
77
77
  };
78
78
 
79
79
  dictionary AddEventListenerOptions : EventListenerOptions {
80
- boolean passive = false;
80
+ boolean passive;
81
81
  boolean once = false;
82
82
  AbortSignal signal;
83
83
  };
package/fetch.idl CHANGED
@@ -69,6 +69,7 @@ dictionary RequestInit {
69
69
  DOMString integrity;
70
70
  boolean keepalive;
71
71
  AbortSignal? signal;
72
+ RequestDuplex duplex;
72
73
  any window; // can only be set to null
73
74
  };
74
75
 
@@ -77,6 +78,7 @@ enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
77
78
  enum RequestCredentials { "omit", "same-origin", "include" };
78
79
  enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
79
80
  enum RequestRedirect { "follow", "error", "manual" };
81
+ enum RequestDuplex { "half" };
80
82
 
81
83
  [Exposed=(Window,Worker)]interface Response {
82
84
  constructor(optional BodyInit? body = null, optional ResponseInit init = {});
@@ -57,6 +57,7 @@ dictionary SaveFilePickerOptions : FilePickerOptions {
57
57
  dictionary DirectoryPickerOptions {
58
58
  DOMString id;
59
59
  StartInDirectory startIn;
60
+ FileSystemPermissionMode mode = "read";
60
61
  };
61
62
 
62
63
  [SecureContext]
package/html.idl CHANGED
@@ -1889,6 +1889,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
1889
1889
  interface mixin GlobalEventHandlers {
1890
1890
  attribute EventHandler onabort;
1891
1891
  attribute EventHandler onauxclick;
1892
+ attribute EventHandler onbeforeinput;
1892
1893
  attribute EventHandler onbeforematch;
1893
1894
  attribute EventHandler onblur;
1894
1895
  attribute EventHandler oncancel;
@@ -179,12 +179,6 @@ interface InputDeviceInfo : MediaDeviceInfo {
179
179
  MediaTrackCapabilities getCapabilities();
180
180
  };
181
181
 
182
- partial interface Navigator {
183
- [SecureContext] undefined getUserMedia(MediaStreamConstraints constraints,
184
- NavigatorUserMediaSuccessCallback successCallback,
185
- NavigatorUserMediaErrorCallback errorCallback);
186
- };
187
-
188
182
  partial interface MediaDevices {
189
183
  MediaTrackSupportedConstraints getSupportedConstraints();
190
184
  Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints = {});
@@ -195,6 +189,12 @@ dictionary MediaStreamConstraints {
195
189
  (boolean or MediaTrackConstraints) audio = false;
196
190
  };
197
191
 
192
+ partial interface Navigator {
193
+ [SecureContext] undefined getUserMedia(MediaStreamConstraints constraints,
194
+ NavigatorUserMediaSuccessCallback successCallback,
195
+ NavigatorUserMediaErrorCallback errorCallback);
196
+ };
197
+
198
198
  callback NavigatorUserMediaSuccessCallback = undefined (MediaStream stream);
199
199
 
200
200
  callback NavigatorUserMediaErrorCallback = undefined (DOMException error);
@@ -58,13 +58,3 @@ dictionary BlobEventInit {
58
58
  required Blob data;
59
59
  DOMHighResTimeStamp timecode;
60
60
  };
61
-
62
- dictionary MediaRecorderErrorEventInit : EventInit {
63
- required DOMException error;
64
- };
65
-
66
- [Exposed=Window]
67
- interface MediaRecorderErrorEvent : Event {
68
- constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict);
69
- [SameObject] readonly attribute DOMException error;
70
- };
@@ -84,7 +84,7 @@ interface NavigateEvent : Event {
84
84
 
85
85
  readonly attribute NavigationType navigationType;
86
86
  readonly attribute NavigationDestination destination;
87
- readonly attribute boolean canTransition;
87
+ readonly attribute boolean canIntercept;
88
88
  readonly attribute boolean userInitiated;
89
89
  readonly attribute boolean hashChange;
90
90
  readonly attribute AbortSignal signal;
@@ -92,15 +92,14 @@ interface NavigateEvent : Event {
92
92
  readonly attribute DOMString? downloadRequest;
93
93
  readonly attribute any info;
94
94
 
95
- undefined transitionWhile(Promise<undefined> newNavigationAction,
96
- optional NavigationTransitionWhileOptions options = {});
95
+ undefined intercept(optional NavigationInterceptOptions options = {});
97
96
  undefined restoreScroll();
98
97
  };
99
98
 
100
99
  dictionary NavigateEventInit : EventInit {
101
100
  NavigationType navigationType = "push";
102
101
  required NavigationDestination destination;
103
- boolean canTransition = false;
102
+ boolean canIntercept = false;
104
103
  boolean userInitiated = false;
105
104
  boolean hashChange = false;
106
105
  required AbortSignal signal;
@@ -109,7 +108,8 @@ dictionary NavigateEventInit : EventInit {
109
108
  any info;
110
109
  };
111
110
 
112
- dictionary NavigationTransitionWhileOptions {
111
+ dictionary NavigationInterceptOptions {
112
+ NavigationInterceptHandler handler;
113
113
  NavigationFocusReset focusReset;
114
114
  NavigationScrollRestoration scrollRestoration;
115
115
  };
@@ -124,6 +124,8 @@ enum NavigationScrollRestoration {
124
124
  "manual"
125
125
  };
126
126
 
127
+ callback NavigationInterceptHandler = Promise<undefined> ();
128
+
127
129
  enum NavigationType {
128
130
  "reload",
129
131
  "push",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.12.0",
4
+ "version": "3.12.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -17,11 +17,17 @@ enum SystemAudioPreferenceEnum {
17
17
  "exclude"
18
18
  };
19
19
 
20
+ enum SurfaceSwitchingPreferenceEnum {
21
+ "include",
22
+ "exclude"
23
+ };
24
+
20
25
  dictionary DisplayMediaStreamConstraints {
21
26
  (boolean or MediaTrackConstraints) video = true;
22
27
  (boolean or MediaTrackConstraints) audio = false;
23
28
  SelfCapturePreferenceEnum selfBrowserSurface;
24
29
  SystemAudioPreferenceEnum systemAudio;
30
+ SurfaceSwitchingPreferenceEnum surfaceSwitching;
25
31
  };
26
32
 
27
33
  partial dictionary MediaTrackSupportedConstraints {
package/webauthn.idl CHANGED
@@ -9,6 +9,45 @@ interface PublicKeyCredential : Credential {
9
9
  [SameObject] readonly attribute AuthenticatorResponse response;
10
10
  [SameObject] readonly attribute DOMString? authenticatorAttachment;
11
11
  AuthenticationExtensionsClientOutputs getClientExtensionResults();
12
+ static Promise<boolean> isConditionalMediationAvailable();
13
+ PublicKeyCredentialJSON toJSON();
14
+ };
15
+
16
+ typedef DOMString Base64URLString;
17
+ typedef (RegistrationResponseJSON or AuthenticationResponseJSON) PublicKeyCredentialJSON;
18
+
19
+ dictionary RegistrationResponseJSON {
20
+ Base64URLString id;
21
+ Base64URLString rawId;
22
+ AuthenticatorAttestationResponseJSON response;
23
+ DOMString? authenticatorAttachment;
24
+ AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
25
+ DOMString type;
26
+ };
27
+
28
+ dictionary AuthenticatorAttestationResponseJSON {
29
+ Base64URLString clientDataJSON;
30
+ Base64URLString attestationObject;
31
+ sequence<DOMString> transports;
32
+ };
33
+
34
+ dictionary AuthenticationResponseJSON {
35
+ Base64URLString id;
36
+ Base64URLString rawId;
37
+ AuthenticatorAssertionResponseJSON response;
38
+ DOMString? authenticatorAttachment;
39
+ AuthenticationExtensionsClientOutputsJSON clientExtensionResults;
40
+ DOMString type;
41
+ };
42
+
43
+ dictionary AuthenticatorAssertionResponseJSON {
44
+ Base64URLString clientDataJSON;
45
+ Base64URLString authenticatorData;
46
+ Base64URLString signature;
47
+ Base64URLString? userHandle;
48
+ };
49
+
50
+ dictionary AuthenticationExtensionsClientOutputsJSON {
12
51
  };
13
52
 
14
53
  partial dictionary CredentialCreationOptions {
@@ -23,6 +62,50 @@ partial interface PublicKeyCredential {
23
62
  static Promise<boolean> isUserVerifyingPlatformAuthenticatorAvailable();
24
63
  };
25
64
 
65
+ partial interface PublicKeyCredential {
66
+ static PublicKeyCredentialCreationOptions parseCreationOptionsFromJSON(PublicKeyCredentialCreationOptionsJSON options);
67
+ };
68
+
69
+ dictionary PublicKeyCredentialCreationOptionsJSON {
70
+ required PublicKeyCredentialRpEntity rp;
71
+ required PublicKeyCredentialUserEntityJSON user;
72
+ required Base64URLString challenge;
73
+ required sequence<PublicKeyCredentialParameters> pubKeyCredParams;
74
+ unsigned long timeout;
75
+ sequence<PublicKeyCredentialDescriptorJSON> excludeCredentials = [];
76
+ AuthenticatorSelectionCriteria authenticatorSelection;
77
+ DOMString attestation = "none";
78
+ AuthenticationExtensionsClientInputsJSON extensions;
79
+ };
80
+
81
+ dictionary PublicKeyCredentialUserEntityJSON {
82
+ required Base64URLString id;
83
+ required DOMString name;
84
+ required DOMString displayName;
85
+ };
86
+
87
+ dictionary PublicKeyCredentialDescriptorJSON {
88
+ required Base64URLString id;
89
+ required DOMString type;
90
+ sequence<DOMString> transports;
91
+ };
92
+
93
+ dictionary AuthenticationExtensionsClientInputsJSON {
94
+ };
95
+
96
+ partial interface PublicKeyCredential {
97
+ static PublicKeyCredentialRequestOptions parseRequestOptionsFromJSON(PublicKeyCredentialRequestOptionsJSON options);
98
+ };
99
+
100
+ dictionary PublicKeyCredentialRequestOptionsJSON {
101
+ required Base64URLString challenge;
102
+ unsigned long timeout;
103
+ DOMString rpId;
104
+ sequence<PublicKeyCredentialDescriptorJSON> allowCredentials = [];
105
+ DOMString userVerification = "preferred";
106
+ AuthenticationExtensionsClientInputsJSON extensions;
107
+ };
108
+
26
109
  [SecureContext, Exposed=Window]
27
110
  interface AuthenticatorResponse {
28
111
  [SameObject] readonly attribute ArrayBuffer clientDataJSON;
@@ -121,7 +204,6 @@ dictionary CollectedClientData {
121
204
  required DOMString challenge;
122
205
  required DOMString origin;
123
206
  boolean crossOrigin;
124
-
125
207
  };
126
208
 
127
209
  dictionary TokenBinding {
package/webgpu.idl CHANGED
@@ -50,10 +50,10 @@ interface GPUSupportedFeatures {
50
50
 
51
51
  [Exposed=(Window, DedicatedWorker), SecureContext]
52
52
  interface GPUAdapterInfo {
53
- readonly attribute DOMString vendor;
54
- readonly attribute DOMString architecture;
55
- readonly attribute DOMString device;
56
- readonly attribute DOMString description;
53
+ readonly attribute DOMString vendor;
54
+ readonly attribute DOMString architecture;
55
+ readonly attribute DOMString device;
56
+ readonly attribute DOMString description;
57
57
  };
58
58
 
59
59
  interface mixin NavigatorGPU {
@@ -894,12 +894,12 @@ dictionary GPUImageCopyExternalImage {
894
894
 
895
895
  interface mixin GPUBindingCommandsMixin {
896
896
  undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
897
- optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
897
+ optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
898
898
 
899
899
  undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
900
- Uint32Array dynamicOffsetsData,
901
- GPUSize64 dynamicOffsetsDataStart,
902
- GPUSize32 dynamicOffsetsDataLength);
900
+ Uint32Array dynamicOffsetsData,
901
+ GPUSize64 dynamicOffsetsDataStart,
902
+ GPUSize32 dynamicOffsetsDataLength);
903
903
  };
904
904
 
905
905
  interface mixin GPUDebugCommandsMixin {
@@ -941,8 +941,8 @@ dictionary GPUComputePassDescriptor : GPUObjectDescriptorBase {
941
941
  [Exposed=(Window, DedicatedWorker), SecureContext]
942
942
  interface GPURenderPassEncoder {
943
943
  undefined setViewport(float x, float y,
944
- float width, float height,
945
- float minDepth, float maxDepth);
944
+ float width, float height,
945
+ float minDepth, float maxDepth);
946
946
 
947
947
  undefined setScissorRect(GPUIntegerCoordinate x, GPUIntegerCoordinate y,
948
948
  GPUIntegerCoordinate width, GPUIntegerCoordinate height);
@@ -980,6 +980,7 @@ dictionary GPURenderPassDescriptor : GPUObjectDescriptorBase {
980
980
  GPURenderPassDepthStencilAttachment depthStencilAttachment;
981
981
  GPUQuerySet occlusionQuerySet;
982
982
  GPURenderPassTimestampWrites timestampWrites = [];
983
+ GPUSize64 maxDrawCount = 50000000;
983
984
  };
984
985
 
985
986
  dictionary GPURenderPassColorAttachment {
@@ -1028,11 +1029,11 @@ interface mixin GPURenderCommandsMixin {
1028
1029
  undefined setVertexBuffer(GPUIndex32 slot, GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size);
1029
1030
 
1030
1031
  undefined draw(GPUSize32 vertexCount, optional GPUSize32 instanceCount = 1,
1031
- optional GPUSize32 firstVertex = 0, optional GPUSize32 firstInstance = 0);
1032
+ optional GPUSize32 firstVertex = 0, optional GPUSize32 firstInstance = 0);
1032
1033
  undefined drawIndexed(GPUSize32 indexCount, optional GPUSize32 instanceCount = 1,
1033
- optional GPUSize32 firstIndex = 0,
1034
- optional GPUSignedOffset32 baseVertex = 0,
1035
- optional GPUSize32 firstInstance = 0);
1034
+ optional GPUSize32 firstIndex = 0,
1035
+ optional GPUSignedOffset32 baseVertex = 0,
1036
+ optional GPUSize32 firstInstance = 0);
1036
1037
 
1037
1038
  undefined drawIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
1038
1039
  undefined drawIndexedIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
package/webhid.idl CHANGED
@@ -7,7 +7,12 @@
7
7
  [SameObject] readonly attribute HID hid;
8
8
  };
9
9
 
10
- [Exposed=Window, SecureContext]
10
+ [Exposed=ServiceWorker, SecureContext]
11
+ partial interface WorkerNavigator {
12
+ [SameObject] readonly attribute HID hid;
13
+ };
14
+
15
+ [Exposed=(Window,ServiceWorker), SecureContext]
11
16
  interface HID : EventTarget {
12
17
  attribute EventHandler onconnect;
13
18
  attribute EventHandler ondisconnect;
package/webnn.idl CHANGED
@@ -29,7 +29,6 @@ dictionary MLContextOptions {
29
29
  interface ML {
30
30
  MLContext createContext(optional MLContextOptions options = {});
31
31
  MLContext createContext(GPUDevice gpuDevice);
32
- MLContext createContext(WebGLRenderingContext glContext);
33
32
  };
34
33
 
35
34
  dictionary MLArrayInput {
@@ -90,7 +89,7 @@ interface MLOperator {};
90
89
  typedef record<DOMString, MLOperand> MLNamedOperands;
91
90
 
92
91
  dictionary MLBufferResourceView {
93
- required (WebGLBuffer or GPUBuffer) resource;
92
+ required GPUBuffer resource;
94
93
  unsigned long long offset = 0;
95
94
  unsigned long long size;
96
95
  };
package/webrtc-stats.idl CHANGED
@@ -10,21 +10,15 @@ enum RTCStatsType {
10
10
  "remote-inbound-rtp",
11
11
  "remote-outbound-rtp",
12
12
  "media-source",
13
- "csrc",
14
13
  "peer-connection",
15
14
  "data-channel",
16
15
  "stream",
17
16
  "track",
18
- "transceiver",
19
- "sender",
20
- "receiver",
21
17
  "transport",
22
- "sctp-transport",
23
18
  "candidate-pair",
24
19
  "local-candidate",
25
20
  "remote-candidate",
26
- "certificate",
27
- "ice-server"
21
+ "certificate"
28
22
  };
29
23
 
30
24
  dictionary RTCRtpStreamStats : RTCStats {
@@ -36,7 +30,6 @@ dictionary RTCRtpStreamStats : RTCStats {
36
30
 
37
31
  dictionary RTCCodecStats : RTCStats {
38
32
  required unsigned long payloadType;
39
- RTCCodecType codecType;
40
33
  required DOMString transportId;
41
34
  required DOMString mimeType;
42
35
  unsigned long clockRate;
@@ -44,66 +37,43 @@ dictionary RTCCodecStats : RTCStats {
44
37
  DOMString sdpFmtpLine;
45
38
  };
46
39
 
47
- enum RTCCodecType {
48
- "encode",
49
- "decode",
50
- };
51
-
52
40
  dictionary RTCReceivedRtpStreamStats : RTCRtpStreamStats {
53
41
  unsigned long long packetsReceived;
54
42
  long long packetsLost;
55
43
  double jitter;
56
- unsigned long long packetsDiscarded;
57
- unsigned long long packetsRepaired;
58
- unsigned long long burstPacketsLost;
59
- unsigned long long burstPacketsDiscarded;
60
- unsigned long burstLossCount;
61
- unsigned long burstDiscardCount;
62
- double burstLossRate;
63
- double burstDiscardRate;
64
- double gapLossRate;
65
- double gapDiscardRate;
66
44
  unsigned long framesDropped;
67
- unsigned long partialFramesLost;
68
- unsigned long fullFramesLost;
69
-
70
45
  };
71
46
 
72
47
  dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
73
- required DOMString receiverId;
48
+ required DOMString trackIdentifier;
49
+ required DOMString kind;
50
+ DOMString mid;
74
51
  DOMString remoteId;
75
52
  unsigned long framesDecoded;
76
53
  unsigned long keyFramesDecoded;
77
54
  unsigned long frameWidth;
78
55
  unsigned long frameHeight;
79
- unsigned long frameBitDepth;
80
56
  double framesPerSecond;
81
57
  unsigned long long qpSum;
82
58
  double totalDecodeTime;
83
59
  double totalInterFrameDelay;
84
60
  double totalSquaredInterFrameDelay;
85
- boolean voiceActivityFlag;
86
61
  DOMHighResTimeStamp lastPacketReceivedTimestamp;
87
- double averageRtcpInterval;
88
62
  unsigned long long headerBytesReceived;
63
+ unsigned long long packetsDiscarded;
89
64
  unsigned long long fecPacketsReceived;
90
65
  unsigned long long fecPacketsDiscarded;
91
66
  unsigned long long bytesReceived;
92
- unsigned long long packetsFailedDecryption;
93
- unsigned long long packetsDuplicated;
94
- record<USVString, unsigned long long> perDscpPacketsReceived;
95
67
  unsigned long nackCount;
96
68
  unsigned long firCount;
97
69
  unsigned long pliCount;
98
- unsigned long sliCount;
99
70
  double totalProcessingDelay;
100
71
  DOMHighResTimeStamp estimatedPlayoutTimestamp;
101
72
  double jitterBufferDelay;
73
+ double jitterBufferTargetDelay;
102
74
  unsigned long long jitterBufferEmittedCount;
75
+ double jitterBufferMinimumDelay;
103
76
  unsigned long long totalSamplesReceived;
104
- unsigned long long totalSamplesDecoded;
105
- unsigned long long samplesDecodedWithSilk;
106
- unsigned long long samplesDecodedWithCelt;
107
77
  unsigned long long concealedSamples;
108
78
  unsigned long long silentConcealedSamples;
109
79
  unsigned long long concealmentEvents;
@@ -121,7 +91,6 @@ dictionary RTCRemoteInboundRtpStreamStats : RTCReceivedRtpStreamStats {
121
91
  double roundTripTime;
122
92
  double totalRoundTripTime;
123
93
  double fractionLost;
124
- unsigned long long reportsReceived;
125
94
  unsigned long long roundTripTimeMeasurements;
126
95
  };
127
96
 
@@ -131,45 +100,31 @@ dictionary RTCSentRtpStreamStats : RTCRtpStreamStats {
131
100
  };
132
101
 
133
102
  dictionary RTCOutboundRtpStreamStats : RTCSentRtpStreamStats {
134
- unsigned long rtxSsrc;
103
+ DOMString mid;
135
104
  DOMString mediaSourceId;
136
- DOMString senderId;
137
105
  DOMString remoteId;
138
106
  DOMString rid;
139
- DOMHighResTimeStamp lastPacketSentTimestamp;
140
107
  unsigned long long headerBytesSent;
141
- unsigned long packetsDiscardedOnSend;
142
- unsigned long long bytesDiscardedOnSend;
143
- unsigned long fecPacketsSent;
144
108
  unsigned long long retransmittedPacketsSent;
145
109
  unsigned long long retransmittedBytesSent;
146
110
  double targetBitrate;
147
111
  unsigned long long totalEncodedBytesTarget;
148
112
  unsigned long frameWidth;
149
113
  unsigned long frameHeight;
150
- unsigned long frameBitDepth;
151
114
  double framesPerSecond;
152
115
  unsigned long framesSent;
153
116
  unsigned long hugeFramesSent;
154
117
  unsigned long framesEncoded;
155
118
  unsigned long keyFramesEncoded;
156
- unsigned long framesDiscardedOnSend;
157
119
  unsigned long long qpSum;
158
- unsigned long long totalSamplesSent;
159
- unsigned long long samplesEncodedWithSilk;
160
- unsigned long long samplesEncodedWithCelt;
161
- boolean voiceActivityFlag;
162
120
  double totalEncodeTime;
163
121
  double totalPacketSendDelay;
164
- double averageRtcpInterval;
165
122
  RTCQualityLimitationReason qualityLimitationReason;
166
123
  record<DOMString, double> qualityLimitationDurations;
167
124
  unsigned long qualityLimitationResolutionChanges;
168
- record<USVString, unsigned long long> perDscpPacketsSent;
169
125
  unsigned long nackCount;
170
126
  unsigned long firCount;
171
127
  unsigned long pliCount;
172
- unsigned long sliCount;
173
128
  DOMString encoderImplementation;
174
129
  };
175
130
 
@@ -192,7 +147,6 @@ dictionary RTCRemoteOutboundRtpStreamStats : RTCSentRtpStreamStats {
192
147
  dictionary RTCMediaSourceStats : RTCStats {
193
148
  required DOMString trackIdentifier;
194
149
  required DOMString kind;
195
- boolean relayedSource;
196
150
  };
197
151
 
198
152
  dictionary RTCAudioSourceStats : RTCMediaSourceStats {
@@ -206,55 +160,13 @@ dictionary RTCAudioSourceStats : RTCMediaSourceStats {
206
160
  dictionary RTCVideoSourceStats : RTCMediaSourceStats {
207
161
  unsigned long width;
208
162
  unsigned long height;
209
- unsigned long bitDepth;
210
163
  unsigned long frames;
211
164
  double framesPerSecond;
212
165
  };
213
166
 
214
- dictionary RTCRtpContributingSourceStats : RTCStats {
215
- required unsigned long contributorSsrc;
216
- required DOMString inboundRtpStreamId;
217
- unsigned long packetsContributedTo;
218
- double audioLevel;
219
- };
220
-
221
167
  dictionary RTCPeerConnectionStats : RTCStats {
222
168
  unsigned long dataChannelsOpened;
223
169
  unsigned long dataChannelsClosed;
224
- unsigned long dataChannelsRequested;
225
- unsigned long dataChannelsAccepted;
226
- };
227
-
228
- dictionary RTCRtpTransceiverStats : RTCStats {
229
- required DOMString senderId;
230
- required DOMString receiverId;
231
- DOMString mid;
232
- };
233
-
234
- dictionary RTCMediaHandlerStats : RTCStats {
235
- DOMString trackIdentifier;
236
- boolean ended;
237
- required DOMString kind;
238
- };
239
-
240
- dictionary RTCVideoHandlerStats : RTCMediaHandlerStats {
241
- };
242
-
243
- dictionary RTCVideoSenderStats : RTCVideoHandlerStats {
244
- DOMString mediaSourceId;
245
- };
246
-
247
- dictionary RTCVideoReceiverStats : RTCVideoHandlerStats {
248
- };
249
-
250
- dictionary RTCAudioHandlerStats : RTCMediaHandlerStats {
251
- };
252
-
253
- dictionary RTCAudioSenderStats : RTCAudioHandlerStats {
254
- DOMString mediaSourceId;
255
- };
256
-
257
- dictionary RTCAudioReceiverStats : RTCAudioHandlerStats {
258
170
  };
259
171
 
260
172
  dictionary RTCDataChannelStats : RTCStats {
@@ -273,7 +185,6 @@ dictionary RTCTransportStats : RTCStats {
273
185
  unsigned long long packetsReceived;
274
186
  unsigned long long bytesSent;
275
187
  unsigned long long bytesReceived;
276
- DOMString rtcpTransportStatsId;
277
188
  RTCIceRole iceRole;
278
189
  DOMString iceLocalUsernameFragment;
279
190
  required RTCDtlsTransportState dtlsState;
@@ -285,23 +196,13 @@ dictionary RTCTransportStats : RTCStats {
285
196
  DOMString dtlsCipher;
286
197
  RTCDtlsRole dtlsRole;
287
198
  DOMString srtpCipher;
288
- DOMString tlsGroup;
289
199
  unsigned long selectedCandidatePairChanges;
290
200
  };
291
201
 
292
202
  enum RTCDtlsRole {
293
- "client",
294
- "server",
295
- "unknown",
296
- };
297
-
298
- dictionary RTCSctpTransportStats : RTCStats {
299
- DOMString transportId;
300
- double smoothedRoundTripTime;
301
- unsigned long congestionWindow;
302
- unsigned long receiverWindow;
303
- unsigned long mtu;
304
- unsigned long unackData;
203
+ "client",
204
+ "server",
205
+ "unknown",
305
206
  };
306
207
 
307
208
  dictionary RTCIceCandidateStats : RTCStats {
@@ -327,27 +228,17 @@ dictionary RTCIceCandidatePairStats : RTCStats {
327
228
  unsigned long long bytesReceived;
328
229
  DOMHighResTimeStamp lastPacketSentTimestamp;
329
230
  DOMHighResTimeStamp lastPacketReceivedTimestamp;
330
- DOMHighResTimeStamp firstRequestTimestamp;
331
- DOMHighResTimeStamp lastRequestTimestamp;
332
- DOMHighResTimeStamp lastResponseTimestamp;
333
231
  double totalRoundTripTime;
334
232
  double currentRoundTripTime;
335
233
  double availableOutgoingBitrate;
336
234
  double availableIncomingBitrate;
337
- unsigned long circuitBreakerTriggerCount;
338
235
  unsigned long long requestsReceived;
339
236
  unsigned long long requestsSent;
340
237
  unsigned long long responsesReceived;
341
238
  unsigned long long responsesSent;
342
- unsigned long long retransmissionsReceived;
343
- unsigned long long retransmissionsSent;
344
239
  unsigned long long consentRequestsSent;
345
- DOMHighResTimeStamp consentExpiredTimestamp;
346
240
  unsigned long packetsDiscardedOnSend;
347
241
  unsigned long long bytesDiscardedOnSend;
348
- unsigned long long requestBytesSent;
349
- unsigned long long consentRequestBytesSent;
350
- unsigned long long responseBytesSent;
351
242
  };
352
243
 
353
244
  enum RTCStatsIceCandidatePairState {
@@ -364,12 +255,3 @@ dictionary RTCCertificateStats : RTCStats {
364
255
  required DOMString base64Certificate;
365
256
  DOMString issuerCertificateId;
366
257
  };
367
-
368
- dictionary RTCIceServerStats : RTCStats {
369
- required DOMString url;
370
- long port;
371
- DOMString relayProtocol;
372
- unsigned long totalRequestsSent;
373
- unsigned long totalResponsesReceived;
374
- double totalRoundTripTime;
375
- };