From d3e514939132106a5eff2dd340be42907b8ffce4 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 17 Nov 2024 23:19:29 +0100 Subject: [PATCH] Update to webref/idl 3.56.0 (#1848) Co-authored-by: saschanaz --- baselines/dom.generated.d.ts | 35 ++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 35 ++++++++++++++ inputfiles/knownTypes.json | 3 ++ inputfiles/removedTypes.jsonc | 76 ++++++------------------------ package-lock.json | 12 ++--- 5 files changed, 93 insertions(+), 68 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 8648fd6f0..dc4f978df 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1574,13 +1574,18 @@ interface RTCIceCandidateInit { interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; + bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; + consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; + packetsDiscardedOnSend?: number; + packetsReceived?: number; + packetsSent?: number; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; @@ -1604,32 +1609,47 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; + fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; + framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; + framesRendered?: number; + freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; + jitterBufferMinimumDelay?: number; + jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; + pauseCount?: number; + playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; + retransmittedBytesReceived?: number; + retransmittedPacketsReceived?: number; + rtxSsrc?: number; silentConcealedSamples?: number; + totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; + totalFreezesDuration?: number; totalInterFrameDelay?: number; + totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; @@ -1652,6 +1672,7 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions { } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { + active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; @@ -1662,15 +1683,19 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; + mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; + qualityLimitationDurations?: Record; + qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; + scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; @@ -1808,9 +1833,16 @@ interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; + dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; + iceLocalUsernameFragment?: string; + iceRole?: RTCIceRole; + iceState?: RTCIceTransportState; localCertificateId?: string; + packetsReceived?: number; + packetsSent?: number; remoteCertificateId?: string; + selectedCandidatePairChanges?: number; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; @@ -29196,6 +29228,7 @@ type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; @@ -29205,11 +29238,13 @@ type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; +type RTCIceRole = "controlled" | "controlling" | "unknown"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; +type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 776a67220..2bc49a536 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1574,13 +1574,18 @@ interface RTCIceCandidateInit { interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; + bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; + consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; + packetsDiscardedOnSend?: number; + packetsReceived?: number; + packetsSent?: number; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; @@ -1604,32 +1609,47 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; + fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; + framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; + framesRendered?: number; + freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; + jitterBufferMinimumDelay?: number; + jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; + pauseCount?: number; + playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; + retransmittedBytesReceived?: number; + retransmittedPacketsReceived?: number; + rtxSsrc?: number; silentConcealedSamples?: number; + totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; + totalFreezesDuration?: number; totalInterFrameDelay?: number; + totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; @@ -1652,6 +1672,7 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions { } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { + active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; @@ -1662,15 +1683,19 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; + mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; + qualityLimitationDurations?: Record; + qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; + scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; @@ -1808,9 +1833,16 @@ interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; + dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; + iceLocalUsernameFragment?: string; + iceRole?: RTCIceRole; + iceState?: RTCIceTransportState; localCertificateId?: string; + packetsReceived?: number; + packetsSent?: number; remoteCertificateId?: string; + selectedCandidatePairChanges?: number; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; @@ -29174,6 +29206,7 @@ type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; @@ -29183,11 +29216,13 @@ type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; +type RTCIceRole = "controlled" | "controlling" | "unknown"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; +type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; diff --git a/inputfiles/knownTypes.json b/inputfiles/knownTypes.json index 2dc707ff2..fcb6b0761 100644 --- a/inputfiles/knownTypes.json +++ b/inputfiles/knownTypes.json @@ -49,9 +49,12 @@ "RsaOaepParams", "RsaPssParams", "RTCCertificateExpiration", + "RTCDtlsRole", "RTCIceCandidatePairStats", + "RTCIceRole", "RTCInboundRtpStreamStats", "RTCOutboundRtpStreamStats", + "RTCQualityLimitationReason", "RTCReceivedRtpStreamStats", "RTCRtpStreamStats", "RTCSentRtpStreamStats", diff --git a/inputfiles/removedTypes.jsonc b/inputfiles/removedTypes.jsonc index 4fa35fdd7..e7219d3d9 100644 --- a/inputfiles/removedTypes.jsonc +++ b/inputfiles/removedTypes.jsonc @@ -246,13 +246,6 @@ } } }, - "CredentialPropertiesOutput": { - "members": { - "member": { - "authenticatorDisplayName": null // No implementation as of 2023-10 - } - } - }, "CredentialRequestOptions": { "members": { "member": { @@ -628,41 +621,30 @@ "RTCEncodedAudioFrameMetadata": { "members": { "member": { - "mimeType": null, // Blink only as of 2023-11 - "rtpTimestamp": null // Blink only as of 2023-10 + "mimeType": null, // Blink only as of 2024-11 + "rtpTimestamp": null // Blink only as of 2024-11 } } }, "RTCEncodedVideoFrameMetadata": { "members": { "member": { - "mimeType": null, // Blink only as of 2023-11 - "rtpTimestamp": null // Blink only as of 2023-10 + "mimeType": null, // Blink only as of 2024-11 + "rtpTimestamp": null // Blink only as of 2024-11 } } }, "RTCConfiguration": { "members": { "member": { - "peerIdentity": null + "peerIdentity": null // Gecko only as of 2024-11 } } }, "RTCDataChannelInit": { "members": { "member": { - "priority": null - } - } - }, - "RTCIceCandidatePairStats": { - "members": { - "member": { - "bytesDiscardedOnSend": null, // Blink only as of 2022-09 - "consentRequestsSent": null, // Blink only as of 2022-09 - "packetsDiscardedOnSend": null, // Blink only as of 2022-09 - "packetsReceived": null, // Blink only as of 2022-09 - "packetsSent": null // Blink only as of 2022-09 + "priority": null // Blink experimental only as of 2024-11 } } }, @@ -672,56 +654,26 @@ // https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl // https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl // https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc - "fecBytesReceived": null, // Blink only as of 2023-09 - "fecSsrc": null, // Blink only as of 2023-09 - "framesAssembledFromMultiplePackets": null, // Blink only as of 2023-09 - "framesRendered": null, // No implementation as of 2023-09 - "freezeCount": null, // Blink only as of 2023-09 - "jitterBufferMinimumDelay": null, // Blink only as of 2023-09 - "jitterBufferTargetDelay": null, // Blink only as of 2023-09 - "pauseCount": null, // Blink only as of 2023-09 - "playoutId": null, // Blink only as of 2023-09 - "powerEfficientDecoder": null, // Blink only as of 2023-09 - "retransmittedBytesReceived": null, // Blink only as of 2023-09 - "retransmittedPacketsReceived": null, // Blink only as of 2023-09 - "rtxSsrc": null, // Blink only as of 2023-09 - "totalAssemblyTime": null, // Blink only as of 2023-09 - "totalFreezesDuration": null, // Blink only as of 2023-09 - "totalPausesDuration": null // Blink only as of 2023-09 + "corruptionMeasurements": null, // Blink only as of 2024-11 + "powerEfficientDecoder": null, // Blink only as of 2024-11 + "totalCorruptionProbability": null, // Blink only as of 2024-11 + "totalSquaredCorruptionProbability": null // Blink only as of 2024-11 } } }, "RTCOutboundRtpStreamStats": { "members": { "member": { - "active": null, // Blink only as of 2023-09 - "mid": null, // Blink only as of 2023-09 - "powerEfficientEncoder": null, // Blink only as of 2023-09 - "qualityLimitationReason": null, // Blink only as of 2023-09 - "qualityLimitationDurations": null, // Blink only as of 2023-09 - "scalabilityMode": null, // Blink only as of 2023-09 - "encoderImplementation": null // Blink only as of 2022-09 + "powerEfficientEncoder": null, // Blink only as of 2024-11 + "encoderImplementation": null // Blink only as of 2024-11 } } }, "RTCRtpEncodingParameters": { "members": { "member": { - "codec": null, // Blink only as of 2024-08 - "scalabilityMode": null // Blink only as of 2024-08 - } - } - }, - "RTCTransportStats": { - "members": { - "member": { - "packetsSent": null, - "packetsReceived": null, - "iceRole": null, - "iceLocalUsernameFragment": null, - "iceState": null, - "dtlsRole": null, - "selectedCandidatePairChanges": null + "codec": null, // Blink only as of 2024-11 + "scalabilityMode": null // Blink only as of 2024-11 } } }, diff --git a/package-lock.json b/package-lock.json index 0aa696dc2..7109e4ddb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1173,9 +1173,9 @@ } }, "node_modules/@webref/css": { - "version": "6.17.1", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.17.1.tgz", - "integrity": "sha512-JLLP7NidctxEt7TuKfuRQFfrdY7vN351uI3CU9SwufvYPLJ2ie0aDYi3YHDdMJzQF7wD/1Qyro1mCjOnrvVHPw==", + "version": "6.17.2", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.17.2.tgz", + "integrity": "sha512-8bFRHlXsvPF8cScUs6S+tdVRCFo5FXi8sHq82L47W98xiZgJC+iSup62QBKQLhRScXqfuwcoazGoQGnwhlNJfQ==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1197,9 +1197,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.55.4", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.55.4.tgz", - "integrity": "sha512-BXENwnf/vI+RkSqJStn8B3X6MQfEXem8ZiEUM6XF+EWjWuGFkihMyf51Ip7qgPNd5SO95uD8Rw9WPsDfM1Rjrg==", + "version": "3.56.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.56.0.tgz", + "integrity": "sha512-s7N/uIuRlHP5s6PZOIVOHWzCOGRjcKaneAxgPyTT1JMxYQjFNGkDci6rnvmcXA0453jqD9z8hqrSErkznvtYFA==", "dev": true, "license": "MIT", "peerDependencies": {