@cloudflare/workers-types 4.20240502.0 → 4.20240524.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1121,6 +1120,7 @@ declare class DigestStream extends WritableStream<
1121
1120
  > {
1122
1121
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1123
1122
  readonly digest: Promise<ArrayBuffer>;
1123
+ get bytesWritten(): number | bigint;
1124
1124
  }
1125
1125
  declare class TextDecoder {
1126
1126
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2460,6 +2460,7 @@ declare interface Socket {
2460
2460
  declare interface SocketOptions {
2461
2461
  secureTransport?: string;
2462
2462
  allowHalfOpen: boolean;
2463
+ highWaterMark?: number | bigint;
2463
2464
  }
2464
2465
  declare interface SocketAddress {
2465
2466
  hostname: string;
@@ -3122,6 +3123,7 @@ declare abstract class BaseAiTranslation {
3122
3123
  postProcessedOutputs: AiTranslationOutput;
3123
3124
  }
3124
3125
  declare type AiOptions = {
3126
+ gatewayId?: string;
3125
3127
  prefix?: string;
3126
3128
  extraHeaders?: object;
3127
3129
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1123,6 +1122,7 @@ export declare class DigestStream extends WritableStream<
1123
1122
  > {
1124
1123
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1125
1124
  readonly digest: Promise<ArrayBuffer>;
1125
+ get bytesWritten(): number | bigint;
1126
1126
  }
1127
1127
  export declare class TextDecoder {
1128
1128
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2465,6 +2465,7 @@ export interface Socket {
2465
2465
  export interface SocketOptions {
2466
2466
  secureTransport?: string;
2467
2467
  allowHalfOpen: boolean;
2468
+ highWaterMark?: number | bigint;
2468
2469
  }
2469
2470
  export interface SocketAddress {
2470
2471
  hostname: string;
@@ -3127,6 +3128,7 @@ export declare abstract class BaseAiTranslation {
3127
3128
  postProcessedOutputs: AiTranslationOutput;
3128
3129
  }
3129
3130
  export type AiOptions = {
3131
+ gatewayId?: string;
3130
3132
  prefix?: string;
3131
3133
  extraHeaders?: object;
3132
3134
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1127,6 +1126,7 @@ declare class DigestStream extends WritableStream<
1127
1126
  > {
1128
1127
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1129
1128
  get digest(): Promise<ArrayBuffer>;
1129
+ get bytesWritten(): number | bigint;
1130
1130
  }
1131
1131
  declare class TextDecoder {
1132
1132
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2486,6 +2486,7 @@ declare interface Socket {
2486
2486
  declare interface SocketOptions {
2487
2487
  secureTransport?: string;
2488
2488
  allowHalfOpen: boolean;
2489
+ highWaterMark?: number | bigint;
2489
2490
  }
2490
2491
  declare interface SocketAddress {
2491
2492
  hostname: string;
@@ -3148,6 +3149,7 @@ declare abstract class BaseAiTranslation {
3148
3149
  postProcessedOutputs: AiTranslationOutput;
3149
3150
  }
3150
3151
  declare type AiOptions = {
3152
+ gatewayId?: string;
3151
3153
  prefix?: string;
3152
3154
  extraHeaders?: object;
3153
3155
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1129,6 +1128,7 @@ export declare class DigestStream extends WritableStream<
1129
1128
  > {
1130
1129
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1131
1130
  get digest(): Promise<ArrayBuffer>;
1131
+ get bytesWritten(): number | bigint;
1132
1132
  }
1133
1133
  export declare class TextDecoder {
1134
1134
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2491,6 +2491,7 @@ export interface Socket {
2491
2491
  export interface SocketOptions {
2492
2492
  secureTransport?: string;
2493
2493
  allowHalfOpen: boolean;
2494
+ highWaterMark?: number | bigint;
2494
2495
  }
2495
2496
  export interface SocketAddress {
2496
2497
  hostname: string;
@@ -3153,6 +3154,7 @@ export declare abstract class BaseAiTranslation {
3153
3154
  postProcessedOutputs: AiTranslationOutput;
3154
3155
  }
3155
3156
  export type AiOptions = {
3157
+ gatewayId?: string;
3156
3158
  prefix?: string;
3157
3159
  extraHeaders?: object;
3158
3160
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1144,6 +1143,7 @@ declare class DigestStream extends WritableStream<
1144
1143
  > {
1145
1144
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1146
1145
  get digest(): Promise<ArrayBuffer>;
1146
+ get bytesWritten(): number | bigint;
1147
1147
  }
1148
1148
  declare class TextDecoder {
1149
1149
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2503,6 +2503,7 @@ declare interface Socket {
2503
2503
  declare interface SocketOptions {
2504
2504
  secureTransport?: string;
2505
2505
  allowHalfOpen: boolean;
2506
+ highWaterMark?: number | bigint;
2506
2507
  }
2507
2508
  declare interface SocketAddress {
2508
2509
  hostname: string;
@@ -3174,6 +3175,7 @@ declare abstract class BaseAiTranslation {
3174
3175
  postProcessedOutputs: AiTranslationOutput;
3175
3176
  }
3176
3177
  declare type AiOptions = {
3178
+ gatewayId?: string;
3177
3179
  prefix?: string;
3178
3180
  extraHeaders?: object;
3179
3181
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1146,6 +1145,7 @@ export declare class DigestStream extends WritableStream<
1146
1145
  > {
1147
1146
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1148
1147
  get digest(): Promise<ArrayBuffer>;
1148
+ get bytesWritten(): number | bigint;
1149
1149
  }
1150
1150
  export declare class TextDecoder {
1151
1151
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2508,6 +2508,7 @@ export interface Socket {
2508
2508
  export interface SocketOptions {
2509
2509
  secureTransport?: string;
2510
2510
  allowHalfOpen: boolean;
2511
+ highWaterMark?: number | bigint;
2511
2512
  }
2512
2513
  export interface SocketAddress {
2513
2514
  hostname: string;
@@ -3179,6 +3180,7 @@ export declare abstract class BaseAiTranslation {
3179
3180
  postProcessedOutputs: AiTranslationOutput;
3180
3181
  }
3181
3182
  export type AiOptions = {
3183
+ gatewayId?: string;
3182
3184
  prefix?: string;
3183
3185
  extraHeaders?: object;
3184
3186
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1144,6 +1143,7 @@ declare class DigestStream extends WritableStream<
1144
1143
  > {
1145
1144
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1146
1145
  get digest(): Promise<ArrayBuffer>;
1146
+ get bytesWritten(): number | bigint;
1147
1147
  }
1148
1148
  declare class TextDecoder {
1149
1149
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2504,6 +2504,7 @@ declare interface Socket {
2504
2504
  declare interface SocketOptions {
2505
2505
  secureTransport?: string;
2506
2506
  allowHalfOpen: boolean;
2507
+ highWaterMark?: number | bigint;
2507
2508
  }
2508
2509
  declare interface SocketAddress {
2509
2510
  hostname: string;
@@ -3175,6 +3176,7 @@ declare abstract class BaseAiTranslation {
3175
3176
  postProcessedOutputs: AiTranslationOutput;
3176
3177
  }
3177
3178
  declare type AiOptions = {
3179
+ gatewayId?: string;
3178
3180
  prefix?: string;
3179
3181
  extraHeaders?: object;
3180
3182
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1146,6 +1145,7 @@ export declare class DigestStream extends WritableStream<
1146
1145
  > {
1147
1146
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1148
1147
  get digest(): Promise<ArrayBuffer>;
1148
+ get bytesWritten(): number | bigint;
1149
1149
  }
1150
1150
  export declare class TextDecoder {
1151
1151
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2509,6 +2509,7 @@ export interface Socket {
2509
2509
  export interface SocketOptions {
2510
2510
  secureTransport?: string;
2511
2511
  allowHalfOpen: boolean;
2512
+ highWaterMark?: number | bigint;
2512
2513
  }
2513
2514
  export interface SocketAddress {
2514
2515
  hostname: string;
@@ -3180,6 +3181,7 @@ export declare abstract class BaseAiTranslation {
3180
3181
  postProcessedOutputs: AiTranslationOutput;
3181
3182
  }
3182
3183
  export type AiOptions = {
3184
+ gatewayId?: string;
3183
3185
  prefix?: string;
3184
3186
  extraHeaders?: object;
3185
3187
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1144,6 +1143,7 @@ declare class DigestStream extends WritableStream<
1144
1143
  > {
1145
1144
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1146
1145
  get digest(): Promise<ArrayBuffer>;
1146
+ get bytesWritten(): number | bigint;
1147
1147
  }
1148
1148
  declare class TextDecoder {
1149
1149
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2503,6 +2503,7 @@ declare interface Socket {
2503
2503
  declare interface SocketOptions {
2504
2504
  secureTransport?: string;
2505
2505
  allowHalfOpen: boolean;
2506
+ highWaterMark?: number | bigint;
2506
2507
  }
2507
2508
  declare interface SocketAddress {
2508
2509
  hostname: string;
@@ -3174,6 +3175,7 @@ declare abstract class BaseAiTranslation {
3174
3175
  postProcessedOutputs: AiTranslationOutput;
3175
3176
  }
3176
3177
  declare type AiOptions = {
3178
+ gatewayId?: string;
3177
3179
  prefix?: string;
3178
3180
  extraHeaders?: object;
3179
3181
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1146,6 +1145,7 @@ export declare class DigestStream extends WritableStream<
1146
1145
  > {
1147
1146
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1148
1147
  get digest(): Promise<ArrayBuffer>;
1148
+ get bytesWritten(): number | bigint;
1149
1149
  }
1150
1150
  export declare class TextDecoder {
1151
1151
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2508,6 +2508,7 @@ export interface Socket {
2508
2508
  export interface SocketOptions {
2509
2509
  secureTransport?: string;
2510
2510
  allowHalfOpen: boolean;
2511
+ highWaterMark?: number | bigint;
2511
2512
  }
2512
2513
  export interface SocketAddress {
2513
2514
  hostname: string;
@@ -3179,6 +3180,7 @@ export declare abstract class BaseAiTranslation {
3179
3180
  postProcessedOutputs: AiTranslationOutput;
3180
3181
  }
3181
3182
  export type AiOptions = {
3183
+ gatewayId?: string;
3182
3184
  prefix?: string;
3183
3185
  extraHeaders?: object;
3184
3186
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1148,6 +1148,7 @@ declare class DigestStream extends WritableStream<
1148
1148
  > {
1149
1149
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1150
1150
  get digest(): Promise<ArrayBuffer>;
1151
+ get bytesWritten(): number | bigint;
1151
1152
  }
1152
1153
  declare class TextDecoder {
1153
1154
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2014,8 +2015,7 @@ declare abstract class WritableStreamDefaultController {
2014
2015
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2015
2016
  error(reason?: any): void;
2016
2017
  }
2017
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2018
- declare interface TransformStreamDefaultController<O = any> {
2018
+ declare abstract class TransformStreamDefaultController<O = any> {
2019
2019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2020
2020
  get desiredSize(): number | null;
2021
2021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2499,6 +2499,7 @@ declare interface Socket {
2499
2499
  declare interface SocketOptions {
2500
2500
  secureTransport?: string;
2501
2501
  allowHalfOpen: boolean;
2502
+ highWaterMark?: number | bigint;
2502
2503
  }
2503
2504
  declare interface SocketAddress {
2504
2505
  hostname: string;
@@ -3170,6 +3171,7 @@ declare abstract class BaseAiTranslation {
3170
3171
  postProcessedOutputs: AiTranslationOutput;
3171
3172
  }
3172
3173
  declare type AiOptions = {
3174
+ gatewayId?: string;
3173
3175
  prefix?: string;
3174
3176
  extraHeaders?: object;
3175
3177
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1150,6 +1150,7 @@ export declare class DigestStream extends WritableStream<
1150
1150
  > {
1151
1151
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1152
1152
  get digest(): Promise<ArrayBuffer>;
1153
+ get bytesWritten(): number | bigint;
1153
1154
  }
1154
1155
  export declare class TextDecoder {
1155
1156
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2016,8 +2017,7 @@ export declare abstract class WritableStreamDefaultController {
2016
2017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2017
2018
  error(reason?: any): void;
2018
2019
  }
2019
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2020
- export interface TransformStreamDefaultController<O = any> {
2020
+ export declare abstract class TransformStreamDefaultController<O = any> {
2021
2021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2022
2022
  get desiredSize(): number | null;
2023
2023
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2504,6 +2504,7 @@ export interface Socket {
2504
2504
  export interface SocketOptions {
2505
2505
  secureTransport?: string;
2506
2506
  allowHalfOpen: boolean;
2507
+ highWaterMark?: number | bigint;
2507
2508
  }
2508
2509
  export interface SocketAddress {
2509
2510
  hostname: string;
@@ -3175,6 +3176,7 @@ export declare abstract class BaseAiTranslation {
3175
3176
  postProcessedOutputs: AiTranslationOutput;
3176
3177
  }
3177
3178
  export type AiOptions = {
3179
+ gatewayId?: string;
3178
3180
  prefix?: string;
3179
3181
  extraHeaders?: object;
3180
3182
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1148,6 +1148,7 @@ declare class DigestStream extends WritableStream<
1148
1148
  > {
1149
1149
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1150
1150
  get digest(): Promise<ArrayBuffer>;
1151
+ get bytesWritten(): number | bigint;
1151
1152
  }
1152
1153
  declare class TextDecoder {
1153
1154
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2015,8 +2016,7 @@ declare abstract class WritableStreamDefaultController {
2015
2016
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2016
2017
  error(reason?: any): void;
2017
2018
  }
2018
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2019
- declare interface TransformStreamDefaultController<O = any> {
2019
+ declare abstract class TransformStreamDefaultController<O = any> {
2020
2020
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2021
2021
  get desiredSize(): number | null;
2022
2022
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2500,6 +2500,7 @@ declare interface Socket {
2500
2500
  declare interface SocketOptions {
2501
2501
  secureTransport?: string;
2502
2502
  allowHalfOpen: boolean;
2503
+ highWaterMark?: number | bigint;
2503
2504
  }
2504
2505
  declare interface SocketAddress {
2505
2506
  hostname: string;
@@ -3171,6 +3172,7 @@ declare abstract class BaseAiTranslation {
3171
3172
  postProcessedOutputs: AiTranslationOutput;
3172
3173
  }
3173
3174
  declare type AiOptions = {
3175
+ gatewayId?: string;
3174
3176
  prefix?: string;
3175
3177
  extraHeaders?: object;
3176
3178
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1150,6 +1150,7 @@ export declare class DigestStream extends WritableStream<
1150
1150
  > {
1151
1151
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1152
1152
  get digest(): Promise<ArrayBuffer>;
1153
+ get bytesWritten(): number | bigint;
1153
1154
  }
1154
1155
  export declare class TextDecoder {
1155
1156
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2017,8 +2018,7 @@ export declare abstract class WritableStreamDefaultController {
2017
2018
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2018
2019
  error(reason?: any): void;
2019
2020
  }
2020
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2021
- export interface TransformStreamDefaultController<O = any> {
2021
+ export declare abstract class TransformStreamDefaultController<O = any> {
2022
2022
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2023
2023
  get desiredSize(): number | null;
2024
2024
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2505,6 +2505,7 @@ export interface Socket {
2505
2505
  export interface SocketOptions {
2506
2506
  secureTransport?: string;
2507
2507
  allowHalfOpen: boolean;
2508
+ highWaterMark?: number | bigint;
2508
2509
  }
2509
2510
  export interface SocketAddress {
2510
2511
  hostname: string;
@@ -3176,6 +3177,7 @@ export declare abstract class BaseAiTranslation {
3176
3177
  postProcessedOutputs: AiTranslationOutput;
3177
3178
  }
3178
3179
  export type AiOptions = {
3180
+ gatewayId?: string;
3179
3181
  prefix?: string;
3180
3182
  extraHeaders?: object;
3181
3183
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1148,6 +1148,7 @@ declare class DigestStream extends WritableStream<
1148
1148
  > {
1149
1149
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1150
1150
  get digest(): Promise<ArrayBuffer>;
1151
+ get bytesWritten(): number | bigint;
1151
1152
  }
1152
1153
  declare class TextDecoder {
1153
1154
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2015,8 +2016,7 @@ declare abstract class WritableStreamDefaultController {
2015
2016
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2016
2017
  error(reason?: any): void;
2017
2018
  }
2018
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2019
- declare interface TransformStreamDefaultController<O = any> {
2019
+ declare abstract class TransformStreamDefaultController<O = any> {
2020
2020
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2021
2021
  get desiredSize(): number | null;
2022
2022
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2500,6 +2500,7 @@ declare interface Socket {
2500
2500
  declare interface SocketOptions {
2501
2501
  secureTransport?: string;
2502
2502
  allowHalfOpen: boolean;
2503
+ highWaterMark?: number | bigint;
2503
2504
  }
2504
2505
  declare interface SocketAddress {
2505
2506
  hostname: string;
@@ -3171,6 +3172,7 @@ declare abstract class BaseAiTranslation {
3171
3172
  postProcessedOutputs: AiTranslationOutput;
3172
3173
  }
3173
3174
  declare type AiOptions = {
3175
+ gatewayId?: string;
3174
3176
  prefix?: string;
3175
3177
  extraHeaders?: object;
3176
3178
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1150,6 +1150,7 @@ export declare class DigestStream extends WritableStream<
1150
1150
  > {
1151
1151
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1152
1152
  get digest(): Promise<ArrayBuffer>;
1153
+ get bytesWritten(): number | bigint;
1153
1154
  }
1154
1155
  export declare class TextDecoder {
1155
1156
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2017,8 +2018,7 @@ export declare abstract class WritableStreamDefaultController {
2017
2018
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2018
2019
  error(reason?: any): void;
2019
2020
  }
2020
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2021
- export interface TransformStreamDefaultController<O = any> {
2021
+ export declare abstract class TransformStreamDefaultController<O = any> {
2022
2022
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2023
2023
  get desiredSize(): number | null;
2024
2024
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2505,6 +2505,7 @@ export interface Socket {
2505
2505
  export interface SocketOptions {
2506
2506
  secureTransport?: string;
2507
2507
  allowHalfOpen: boolean;
2508
+ highWaterMark?: number | bigint;
2508
2509
  }
2509
2510
  export interface SocketAddress {
2510
2511
  hostname: string;
@@ -3176,6 +3177,7 @@ export declare abstract class BaseAiTranslation {
3176
3177
  postProcessedOutputs: AiTranslationOutput;
3177
3178
  }
3178
3179
  export type AiOptions = {
3180
+ gatewayId?: string;
3179
3181
  prefix?: string;
3180
3182
  extraHeaders?: object;
3181
3183
  };
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1158,6 +1158,7 @@ declare class DigestStream extends WritableStream<
1158
1158
  > {
1159
1159
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1160
1160
  get digest(): Promise<ArrayBuffer>;
1161
+ get bytesWritten(): number | bigint;
1161
1162
  }
1162
1163
  declare class TextDecoder {
1163
1164
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2066,8 +2067,7 @@ declare abstract class WritableStreamDefaultController {
2066
2067
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2067
2068
  error(reason?: any): void;
2068
2069
  }
2069
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2070
- declare interface TransformStreamDefaultController<O = any> {
2070
+ declare abstract class TransformStreamDefaultController<O = any> {
2071
2071
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2072
2072
  get desiredSize(): number | null;
2073
2073
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2575,6 +2575,7 @@ declare interface Socket {
2575
2575
  declare interface SocketOptions {
2576
2576
  secureTransport?: string;
2577
2577
  allowHalfOpen: boolean;
2578
+ highWaterMark?: number | bigint;
2578
2579
  }
2579
2580
  declare interface SocketAddress {
2580
2581
  hostname: string;
@@ -3246,6 +3247,7 @@ declare abstract class BaseAiTranslation {
3246
3247
  postProcessedOutputs: AiTranslationOutput;
3247
3248
  }
3248
3249
  declare type AiOptions = {
3250
+ gatewayId?: string;
3249
3251
  prefix?: string;
3250
3252
  extraHeaders?: object;
3251
3253
  };
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -252,6 +251,7 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
252
251
  ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
253
252
  ReadableByteStreamController: typeof ReadableByteStreamController;
254
253
  WritableStreamDefaultController: typeof WritableStreamDefaultController;
254
+ TransformStreamDefaultController: typeof TransformStreamDefaultController;
255
255
  CompressionStream: typeof CompressionStream;
256
256
  DecompressionStream: typeof DecompressionStream;
257
257
  TextEncoderStream: typeof TextEncoderStream;
@@ -1160,6 +1160,7 @@ export declare class DigestStream extends WritableStream<
1160
1160
  > {
1161
1161
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1162
1162
  get digest(): Promise<ArrayBuffer>;
1163
+ get bytesWritten(): number | bigint;
1163
1164
  }
1164
1165
  export declare class TextDecoder {
1165
1166
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2068,8 +2069,7 @@ export declare abstract class WritableStreamDefaultController {
2068
2069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2069
2070
  error(reason?: any): void;
2070
2071
  }
2071
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2072
- export interface TransformStreamDefaultController<O = any> {
2072
+ export declare abstract class TransformStreamDefaultController<O = any> {
2073
2073
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2074
2074
  get desiredSize(): number | null;
2075
2075
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2580,6 +2580,7 @@ export interface Socket {
2580
2580
  export interface SocketOptions {
2581
2581
  secureTransport?: string;
2582
2582
  allowHalfOpen: boolean;
2583
+ highWaterMark?: number | bigint;
2583
2584
  }
2584
2585
  export interface SocketAddress {
2585
2586
  hostname: string;
@@ -3251,6 +3252,7 @@ export declare abstract class BaseAiTranslation {
3251
3252
  postProcessedOutputs: AiTranslationOutput;
3252
3253
  }
3253
3254
  export type AiOptions = {
3255
+ gatewayId?: string;
3254
3256
  prefix?: string;
3255
3257
  extraHeaders?: object;
3256
3258
  };
package/index.d.ts CHANGED
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1121,6 +1120,7 @@ declare class DigestStream extends WritableStream<
1121
1120
  > {
1122
1121
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1123
1122
  readonly digest: Promise<ArrayBuffer>;
1123
+ get bytesWritten(): number | bigint;
1124
1124
  }
1125
1125
  declare class TextDecoder {
1126
1126
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2460,6 +2460,7 @@ declare interface Socket {
2460
2460
  declare interface SocketOptions {
2461
2461
  secureTransport?: string;
2462
2462
  allowHalfOpen: boolean;
2463
+ highWaterMark?: number | bigint;
2463
2464
  }
2464
2465
  declare interface SocketAddress {
2465
2466
  hostname: string;
@@ -3122,6 +3123,7 @@ declare abstract class BaseAiTranslation {
3122
3123
  postProcessedOutputs: AiTranslationOutput;
3123
3124
  }
3124
3125
  declare type AiOptions = {
3126
+ gatewayId?: string;
3125
3127
  prefix?: string;
3126
3128
  extraHeaders?: object;
3127
3129
  };
package/index.ts CHANGED
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1123,6 +1122,7 @@ export declare class DigestStream extends WritableStream<
1123
1122
  > {
1124
1123
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1125
1124
  readonly digest: Promise<ArrayBuffer>;
1125
+ get bytesWritten(): number | bigint;
1126
1126
  }
1127
1127
  export declare class TextDecoder {
1128
1128
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2465,6 +2465,7 @@ export interface Socket {
2465
2465
  export interface SocketOptions {
2466
2466
  secureTransport?: string;
2467
2467
  allowHalfOpen: boolean;
2468
+ highWaterMark?: number | bigint;
2468
2469
  }
2469
2470
  export interface SocketAddress {
2470
2471
  hostname: string;
@@ -3127,6 +3128,7 @@ export declare abstract class BaseAiTranslation {
3127
3128
  postProcessedOutputs: AiTranslationOutput;
3128
3129
  }
3129
3130
  export type AiOptions = {
3131
+ gatewayId?: string;
3130
3132
  prefix?: string;
3131
3133
  extraHeaders?: object;
3132
3134
  };
package/oldest/index.d.ts CHANGED
@@ -26,7 +26,6 @@ declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1121,6 +1120,7 @@ declare class DigestStream extends WritableStream<
1121
1120
  > {
1122
1121
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1123
1122
  readonly digest: Promise<ArrayBuffer>;
1123
+ get bytesWritten(): number | bigint;
1124
1124
  }
1125
1125
  declare class TextDecoder {
1126
1126
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2460,6 +2460,7 @@ declare interface Socket {
2460
2460
  declare interface SocketOptions {
2461
2461
  secureTransport?: string;
2462
2462
  allowHalfOpen: boolean;
2463
+ highWaterMark?: number | bigint;
2463
2464
  }
2464
2465
  declare interface SocketAddress {
2465
2466
  hostname: string;
@@ -3122,6 +3123,7 @@ declare abstract class BaseAiTranslation {
3122
3123
  postProcessedOutputs: AiTranslationOutput;
3123
3124
  }
3124
3125
  declare type AiOptions = {
3126
+ gatewayId?: string;
3125
3127
  prefix?: string;
3126
3128
  extraHeaders?: object;
3127
3129
  };
package/oldest/index.ts CHANGED
@@ -26,7 +26,6 @@ export declare class DOMException extends Error {
26
26
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
27
27
  */
28
28
  readonly code: number;
29
- readonly stack: any;
30
29
  static readonly INDEX_SIZE_ERR: number;
31
30
  static readonly DOMSTRING_SIZE_ERR: number;
32
31
  static readonly HIERARCHY_REQUEST_ERR: number;
@@ -1123,6 +1122,7 @@ export declare class DigestStream extends WritableStream<
1123
1122
  > {
1124
1123
  constructor(algorithm: string | SubtleCryptoHashAlgorithm);
1125
1124
  readonly digest: Promise<ArrayBuffer>;
1125
+ get bytesWritten(): number | bigint;
1126
1126
  }
1127
1127
  export declare class TextDecoder {
1128
1128
  constructor(decoder?: string, options?: TextDecoderConstructorOptions);
@@ -2465,6 +2465,7 @@ export interface Socket {
2465
2465
  export interface SocketOptions {
2466
2466
  secureTransport?: string;
2467
2467
  allowHalfOpen: boolean;
2468
+ highWaterMark?: number | bigint;
2468
2469
  }
2469
2470
  export interface SocketAddress {
2470
2471
  hostname: string;
@@ -3127,6 +3128,7 @@ export declare abstract class BaseAiTranslation {
3127
3128
  postProcessedOutputs: AiTranslationOutput;
3128
3129
  }
3129
3130
  export type AiOptions = {
3131
+ gatewayId?: string;
3130
3132
  prefix?: string;
3131
3133
  extraHeaders?: object;
3132
3134
  };
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20240502.0"
10
+ "version": "4.20240524.0"
11
11
  }