diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index be0c723c6..7fe1c69bc 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -1414,6 +1414,17 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment. * Available only in secure contexts. diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d66787925..6c2c05514 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -3118,6 +3118,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -3136,6 +3160,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -3143,6 +3172,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -6815,7 +6850,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; - /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ + /** + * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift) + */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -27896,6 +27935,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -27920,6 +27965,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -40938,6 +40995,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -40956,12 +41019,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -40980,6 +41050,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -41095,6 +41171,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device. * @@ -44215,7 +44349,7 @@ type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttr type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -44455,6 +44589,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 01aaca4c2..20ed4b420 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -1205,6 +1205,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1223,6 +1247,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1230,6 +1259,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; @@ -7526,6 +7561,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7550,6 +7591,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -12144,6 +12197,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -12162,12 +12221,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -12186,6 +12252,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -12301,6 +12373,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -13365,7 +13495,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13471,6 +13601,7 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 69dd5b56a..37e040fa4 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -1135,6 +1135,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1153,6 +1177,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1160,6 +1189,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -7184,6 +7219,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7208,6 +7249,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -11687,6 +11740,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -11705,12 +11764,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -11729,6 +11795,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -11844,6 +11916,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. @@ -13053,7 +13183,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13156,6 +13286,7 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index dbe38b1ad..4864e02e5 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -1411,6 +1411,17 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment. * Available only in secure contexts. diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index cf4591f46..0880e0522 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -3115,6 +3115,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -3133,6 +3157,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -3140,6 +3169,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -6805,7 +6840,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; - /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ + /** + * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift) + */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -27872,6 +27911,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -27896,6 +27941,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -40912,6 +40969,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -40930,12 +40993,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -40954,6 +41024,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -41069,6 +41145,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device. * @@ -44189,7 +44323,7 @@ type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttr type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -44429,6 +44563,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 6fdfe4182..8108a1e1c 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -1202,6 +1202,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1220,6 +1244,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1227,6 +1256,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; @@ -7523,6 +7558,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7547,6 +7588,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -12141,6 +12194,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -12159,12 +12218,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -12183,6 +12249,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -12298,6 +12370,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -13362,7 +13492,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13468,5 +13598,6 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 42e06d36d..7a84b0af3 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -1132,6 +1132,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1150,6 +1174,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1157,6 +1186,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -7181,6 +7216,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7205,6 +7246,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -11684,6 +11737,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -11702,12 +11761,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -11726,6 +11792,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -11841,6 +11913,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. @@ -13050,7 +13180,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13153,6 +13283,7 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 5dadf14da..1e57f7c55 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -1451,6 +1451,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1469,6 +1493,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1476,6 +1505,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -8397,6 +8432,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -8421,6 +8462,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -13596,6 +13649,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -13614,12 +13673,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -13638,6 +13704,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -13753,6 +13825,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -15041,7 +15171,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15164,6 +15294,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index dbe38b1ad..4864e02e5 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -1411,6 +1411,17 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment. * Available only in secure contexts. diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 49b3562d3..8d1e3b988 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -3115,6 +3115,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -3133,6 +3157,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -3140,6 +3169,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -6812,7 +6847,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; - /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ + /** + * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift) + */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -27893,6 +27932,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -27917,6 +27962,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -40935,6 +40992,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -40953,12 +41016,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -40977,6 +41047,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -41092,6 +41168,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device. * @@ -44212,7 +44346,7 @@ type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttr type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -44452,6 +44586,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 6fdfe4182..8108a1e1c 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -1202,6 +1202,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1220,6 +1244,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1227,6 +1256,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; @@ -7523,6 +7558,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7547,6 +7588,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -12141,6 +12194,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -12159,12 +12218,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -12183,6 +12249,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -12298,6 +12370,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -13362,7 +13492,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13468,5 +13598,6 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 42e06d36d..7a84b0af3 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -1132,6 +1132,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1150,6 +1174,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1157,6 +1186,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -7181,6 +7216,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7205,6 +7246,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -11684,6 +11737,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -11702,12 +11761,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -11726,6 +11792,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -11841,6 +11913,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. @@ -13050,7 +13180,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13153,6 +13283,7 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 5dadf14da..1e57f7c55 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -1451,6 +1451,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1469,6 +1493,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1476,6 +1505,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -8397,6 +8432,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -8421,6 +8462,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -13596,6 +13649,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -13614,12 +13673,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -13638,6 +13704,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -13753,6 +13825,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -15041,7 +15171,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15164,6 +15294,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index af701138c..cfa41eef1 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -1411,6 +1411,17 @@ declare var URLSearchParams: { new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; }; +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment. * Available only in secure contexts. diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 8135976da..dedc0fd35 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -3115,6 +3115,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -3133,6 +3157,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -3140,6 +3169,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; @@ -6812,7 +6847,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; - /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ + /** + * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift) + */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -27893,6 +27932,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -27917,6 +27962,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -40935,6 +40992,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -40953,12 +41016,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -40977,6 +41047,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -41092,6 +41168,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device. * @@ -44212,7 +44346,7 @@ type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttr type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -44452,6 +44586,7 @@ type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 2b9254350..dc4b07544 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -1202,6 +1202,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1220,6 +1244,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1227,6 +1256,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; @@ -7523,6 +7558,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7547,6 +7588,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -12141,6 +12194,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -12159,12 +12218,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -12183,6 +12249,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -12298,6 +12370,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -13362,7 +13492,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13468,5 +13598,6 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 99f89b7c9..4a01b39b9 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -1132,6 +1132,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1150,6 +1174,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1157,6 +1186,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -7181,6 +7216,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -7205,6 +7246,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -11684,6 +11737,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -11702,12 +11761,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -11726,6 +11792,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -11841,6 +11913,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. @@ -13050,7 +13180,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -13153,6 +13283,7 @@ type TransferFunction = "hlg" | "pq" | "srgb"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index c436320ae..5dba88618 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -1451,6 +1451,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1469,6 +1493,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1476,6 +1505,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -8397,6 +8432,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -8421,6 +8462,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -13596,6 +13649,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -13614,12 +13673,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -13638,6 +13704,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -13753,6 +13825,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -15041,7 +15171,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15164,6 +15294,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index e1de8865b..bc81099eb 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -1454,6 +1454,30 @@ interface WebTransportCloseInfo { reason?: string; } +interface WebTransportConnectionStats { + atSendCapacity?: boolean; + bytesAcknowledged?: number; + bytesLost?: number; + bytesReceived?: number; + bytesSent?: number; + bytesSentOverhead?: number; + datagrams: WebTransportDatagramStats; + estimatedSendRate?: number | null; + minRtt?: DOMHighResTimeStamp; + packetsLost?: number; + packetsReceived?: number; + packetsSent?: number; + rttVariation?: DOMHighResTimeStamp; + smoothedRtt?: DOMHighResTimeStamp; +} + +interface WebTransportDatagramStats { + droppedIncoming?: number; + expiredIncoming?: number; + expiredOutgoing?: number; + lostOutgoing?: number; +} + interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; @@ -1472,6 +1496,11 @@ interface WebTransportOptions { serverCertificateHashes?: WebTransportHash[]; } +interface WebTransportReceiveStreamStats { + bytesRead?: number; + bytesReceived?: number; +} + interface WebTransportSendOptions { sendOrder?: number; } @@ -1479,6 +1508,12 @@ interface WebTransportSendOptions { interface WebTransportSendStreamOptions extends WebTransportSendOptions { } +interface WebTransportSendStreamStats { + bytesAcknowledged?: number; + bytesSent?: number; + bytesWritten?: number; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -8400,6 +8435,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ readonly decodedBodySize: number; + /** + * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType) + */ + readonly deliveryType: string; /** * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource. * @@ -8424,6 +8465,18 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ readonly fetchStart: DOMHighResTimeStamp; + /** + * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart) + */ + readonly finalResponseHeadersStart: DOMHighResTimeStamp; + /** + * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart) + */ + readonly firstInterimResponseStart: DOMHighResTimeStamp; /** * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load. * @@ -13599,6 +13652,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ readonly closed: Promise; + /** + * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl) + */ + readonly congestionControl: WebTransportCongestionControl; /** * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission. * @@ -13617,12 +13676,19 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; + readonly protocol: string; /** * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ readonly ready: Promise; + /** + * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) + */ + readonly reliability: WebTransportReliabilityMode; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. * @@ -13641,6 +13707,12 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** + * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats) + */ + getStats(): Promise; } declare var WebTransport: { @@ -13756,6 +13828,64 @@ declare var WebTransportError: { new(message?: string, options?: WebTransportErrorOptions): WebTransportError; }; +/** + * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream) + */ +interface WebTransportReceiveStream extends ReadableStream { + /** + * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats) + */ + getStats(): Promise; +} + +declare var WebTransportReceiveStream: { + prototype: WebTransportReceiveStream; + new(): WebTransportReceiveStream; +}; + +/** + * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream) + */ +interface WebTransportSendStream extends WritableStream { + /** + * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder) + */ + sendOrder: number; + /** + * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats) + */ + getStats(): Promise; + getWriter(): WebTransportWriter; +} + +declare var WebTransportSendStream: { + prototype: WebTransportSendStream; + new(): WebTransportSendStream; +}; + +/** Available only in secure contexts. */ +interface WebTransportWriter extends WritableStreamDefaultWriter { + atomicWrite(chunk?: any): Promise; + commit(): void; +} + +declare var WebTransportWriter: { + prototype: WebTransportWriter; + new(): WebTransportWriter; +}; + /** * The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. * @@ -15044,7 +15174,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportSendStream | WebTransportReceiveStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; @@ -15167,6 +15297,7 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; +type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/package-lock.json b/package-lock.json index d61c4988f..cf3055d16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^7.0.0", + "@mdn/browser-compat-data": "^7.3.3", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", @@ -431,12 +431,11 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.3.2.tgz", - "integrity": "sha512-vK2iWE/915Bg0PSb63NNDluX4iI7KOsqHCM/rTpBn4lNcjDocMLxuKzkse75K12lALZfQACsagD6aQYEmATB7Q==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.3.3.tgz", + "integrity": "sha512-kjpAS3PlCvm0Ab59lXsGMaF6afnUiKwyNmRFOWFh3nXXhsKnTmPPrBg3LFngIZ38GVYxSBPzPlsnz+3cW3LKkA==", "dev": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -453,7 +452,6 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -861,7 +859,6 @@ "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.54.0", "@typescript-eslint/types": "8.54.0", @@ -1207,7 +1204,6 @@ "integrity": "sha512-B9SUkmz9rH97n625xhh4MsXsQTwLbLsZcM+VD+Uf7Jdpr3m+FLNeP+F5QYC+nujotik1aK28tPGLiBRQ1jVsSg==", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1217,7 +1213,6 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1635,7 +1630,6 @@ "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1936,7 +1930,6 @@ "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -1997,7 +1990,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2975,7 +2967,8 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/memfs-or-file-map-to-github-branch": { "version": "1.3.0", @@ -3315,7 +3308,6 @@ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -3608,6 +3600,7 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3841,7 +3834,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -3899,7 +3891,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3978,7 +3969,6 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", - "peer": true, "engines": { "node": ">= 18" } diff --git a/package.json b/package.json index b53067905..750ed3aaa 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "type": "module", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^7.0.0", + "@mdn/browser-compat-data": "^7.3.3", "@octokit/rest": "^22.0.0", "@types/node": "^25.0.3", "@types/prettier": "^3.0.0", diff --git a/src/build/bcd/keep-alive.ts b/src/build/bcd/keep-alive.ts index 0cd0b8fb2..a606b888f 100644 --- a/src/build/bcd/keep-alive.ts +++ b/src/build/bcd/keep-alive.ts @@ -33,6 +33,8 @@ export const forceKeepAlive: Record = { // https://github.com/mdn/browser-compat-data/issues/15345 "onslotchange", ], + // WebTransportSendStream.getWriter() returns WebTransportWriter, but BCD has no entry for it + WebTransportWriter: [], XMLHttpRequestEventTarget: [ // BCD unexpectedly is removing valid event data // https://github.com/mdn/browser-compat-data/issues/15345