@cloudflare/workers-types 4.20260228.0 → 4.20260302.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.
- package/2021-11-03/index.d.ts +14 -8
- package/2021-11-03/index.ts +14 -8
- package/2022-01-31/index.d.ts +14 -8
- package/2022-01-31/index.ts +14 -8
- package/2022-03-21/index.d.ts +14 -8
- package/2022-03-21/index.ts +14 -8
- package/2022-08-04/index.d.ts +14 -8
- package/2022-08-04/index.ts +14 -8
- package/2022-10-31/index.d.ts +14 -8
- package/2022-10-31/index.ts +14 -8
- package/2022-11-30/index.d.ts +14 -8
- package/2022-11-30/index.ts +14 -8
- package/2023-03-01/index.d.ts +14 -8
- package/2023-03-01/index.ts +14 -8
- package/2023-07-01/index.d.ts +14 -8
- package/2023-07-01/index.ts +14 -8
- package/experimental/index.d.ts +14 -8
- package/experimental/index.ts +14 -8
- package/index.d.ts +14 -8
- package/index.ts +14 -8
- package/latest/index.d.ts +14 -8
- package/latest/index.ts +14 -8
- package/oldest/index.d.ts +14 -8
- package/oldest/index.ts +14 -8
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -11238,8 +11238,14 @@ interface MediaTransformer {
|
|
|
11238
11238
|
* @returns A generator for producing the transformed media output
|
|
11239
11239
|
*/
|
|
11240
11240
|
transform(
|
|
11241
|
-
transform
|
|
11241
|
+
transform?: MediaTransformationInputOptions,
|
|
11242
11242
|
): MediaTransformationGenerator;
|
|
11243
|
+
/**
|
|
11244
|
+
* Generates the final media output with specified options.
|
|
11245
|
+
* @param output - Configuration for the output format and parameters
|
|
11246
|
+
* @returns The final transformation result containing the transformed media
|
|
11247
|
+
*/
|
|
11248
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11243
11249
|
}
|
|
11244
11250
|
/**
|
|
11245
11251
|
* Generator for producing media transformation results.
|
|
@@ -11251,7 +11257,7 @@ interface MediaTransformationGenerator {
|
|
|
11251
11257
|
* @param output - Configuration for the output format and parameters
|
|
11252
11258
|
* @returns The final transformation result containing the transformed media
|
|
11253
11259
|
*/
|
|
11254
|
-
output(output
|
|
11260
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11255
11261
|
}
|
|
11256
11262
|
/**
|
|
11257
11263
|
* Result of a media transformation operation.
|
|
@@ -11260,19 +11266,19 @@ interface MediaTransformationGenerator {
|
|
|
11260
11266
|
interface MediaTransformationResult {
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Returns the transformed media as a readable stream of bytes.
|
|
11263
|
-
* @returns A
|
|
11269
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11264
11270
|
*/
|
|
11265
|
-
media(): ReadableStream<Uint8Array
|
|
11271
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11266
11272
|
/**
|
|
11267
11273
|
* Returns the transformed media as an HTTP response object.
|
|
11268
|
-
* @returns The transformed media as a Response
|
|
11274
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11269
11275
|
*/
|
|
11270
|
-
response(): Response
|
|
11276
|
+
response(): Promise<Response>;
|
|
11271
11277
|
/**
|
|
11272
11278
|
* Returns the MIME type of the transformed media.
|
|
11273
|
-
* @returns
|
|
11279
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11274
11280
|
*/
|
|
11275
|
-
contentType(): string
|
|
11281
|
+
contentType(): Promise<string>;
|
|
11276
11282
|
}
|
|
11277
11283
|
/**
|
|
11278
11284
|
* Configuration options for transforming media input.
|
package/2021-11-03/index.ts
CHANGED
|
@@ -11255,8 +11255,14 @@ export interface MediaTransformer {
|
|
|
11255
11255
|
* @returns A generator for producing the transformed media output
|
|
11256
11256
|
*/
|
|
11257
11257
|
transform(
|
|
11258
|
-
transform
|
|
11258
|
+
transform?: MediaTransformationInputOptions,
|
|
11259
11259
|
): MediaTransformationGenerator;
|
|
11260
|
+
/**
|
|
11261
|
+
* Generates the final media output with specified options.
|
|
11262
|
+
* @param output - Configuration for the output format and parameters
|
|
11263
|
+
* @returns The final transformation result containing the transformed media
|
|
11264
|
+
*/
|
|
11265
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11260
11266
|
}
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Generator for producing media transformation results.
|
|
@@ -11268,7 +11274,7 @@ export interface MediaTransformationGenerator {
|
|
|
11268
11274
|
* @param output - Configuration for the output format and parameters
|
|
11269
11275
|
* @returns The final transformation result containing the transformed media
|
|
11270
11276
|
*/
|
|
11271
|
-
output(output
|
|
11277
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11272
11278
|
}
|
|
11273
11279
|
/**
|
|
11274
11280
|
* Result of a media transformation operation.
|
|
@@ -11277,19 +11283,19 @@ export interface MediaTransformationGenerator {
|
|
|
11277
11283
|
export interface MediaTransformationResult {
|
|
11278
11284
|
/**
|
|
11279
11285
|
* Returns the transformed media as a readable stream of bytes.
|
|
11280
|
-
* @returns A
|
|
11286
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11281
11287
|
*/
|
|
11282
|
-
media(): ReadableStream<Uint8Array
|
|
11288
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11283
11289
|
/**
|
|
11284
11290
|
* Returns the transformed media as an HTTP response object.
|
|
11285
|
-
* @returns The transformed media as a Response
|
|
11291
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11286
11292
|
*/
|
|
11287
|
-
response(): Response
|
|
11293
|
+
response(): Promise<Response>;
|
|
11288
11294
|
/**
|
|
11289
11295
|
* Returns the MIME type of the transformed media.
|
|
11290
|
-
* @returns
|
|
11296
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11291
11297
|
*/
|
|
11292
|
-
contentType(): string
|
|
11298
|
+
contentType(): Promise<string>;
|
|
11293
11299
|
}
|
|
11294
11300
|
/**
|
|
11295
11301
|
* Configuration options for transforming media input.
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -11305,8 +11305,14 @@ interface MediaTransformer {
|
|
|
11305
11305
|
* @returns A generator for producing the transformed media output
|
|
11306
11306
|
*/
|
|
11307
11307
|
transform(
|
|
11308
|
-
transform
|
|
11308
|
+
transform?: MediaTransformationInputOptions,
|
|
11309
11309
|
): MediaTransformationGenerator;
|
|
11310
|
+
/**
|
|
11311
|
+
* Generates the final media output with specified options.
|
|
11312
|
+
* @param output - Configuration for the output format and parameters
|
|
11313
|
+
* @returns The final transformation result containing the transformed media
|
|
11314
|
+
*/
|
|
11315
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11310
11316
|
}
|
|
11311
11317
|
/**
|
|
11312
11318
|
* Generator for producing media transformation results.
|
|
@@ -11318,7 +11324,7 @@ interface MediaTransformationGenerator {
|
|
|
11318
11324
|
* @param output - Configuration for the output format and parameters
|
|
11319
11325
|
* @returns The final transformation result containing the transformed media
|
|
11320
11326
|
*/
|
|
11321
|
-
output(output
|
|
11327
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11322
11328
|
}
|
|
11323
11329
|
/**
|
|
11324
11330
|
* Result of a media transformation operation.
|
|
@@ -11327,19 +11333,19 @@ interface MediaTransformationGenerator {
|
|
|
11327
11333
|
interface MediaTransformationResult {
|
|
11328
11334
|
/**
|
|
11329
11335
|
* Returns the transformed media as a readable stream of bytes.
|
|
11330
|
-
* @returns A
|
|
11336
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11331
11337
|
*/
|
|
11332
|
-
media(): ReadableStream<Uint8Array
|
|
11338
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11333
11339
|
/**
|
|
11334
11340
|
* Returns the transformed media as an HTTP response object.
|
|
11335
|
-
* @returns The transformed media as a Response
|
|
11341
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11336
11342
|
*/
|
|
11337
|
-
response(): Response
|
|
11343
|
+
response(): Promise<Response>;
|
|
11338
11344
|
/**
|
|
11339
11345
|
* Returns the MIME type of the transformed media.
|
|
11340
|
-
* @returns
|
|
11346
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11341
11347
|
*/
|
|
11342
|
-
contentType(): string
|
|
11348
|
+
contentType(): Promise<string>;
|
|
11343
11349
|
}
|
|
11344
11350
|
/**
|
|
11345
11351
|
* Configuration options for transforming media input.
|
package/2022-01-31/index.ts
CHANGED
|
@@ -11322,8 +11322,14 @@ export interface MediaTransformer {
|
|
|
11322
11322
|
* @returns A generator for producing the transformed media output
|
|
11323
11323
|
*/
|
|
11324
11324
|
transform(
|
|
11325
|
-
transform
|
|
11325
|
+
transform?: MediaTransformationInputOptions,
|
|
11326
11326
|
): MediaTransformationGenerator;
|
|
11327
|
+
/**
|
|
11328
|
+
* Generates the final media output with specified options.
|
|
11329
|
+
* @param output - Configuration for the output format and parameters
|
|
11330
|
+
* @returns The final transformation result containing the transformed media
|
|
11331
|
+
*/
|
|
11332
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11327
11333
|
}
|
|
11328
11334
|
/**
|
|
11329
11335
|
* Generator for producing media transformation results.
|
|
@@ -11335,7 +11341,7 @@ export interface MediaTransformationGenerator {
|
|
|
11335
11341
|
* @param output - Configuration for the output format and parameters
|
|
11336
11342
|
* @returns The final transformation result containing the transformed media
|
|
11337
11343
|
*/
|
|
11338
|
-
output(output
|
|
11344
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11339
11345
|
}
|
|
11340
11346
|
/**
|
|
11341
11347
|
* Result of a media transformation operation.
|
|
@@ -11344,19 +11350,19 @@ export interface MediaTransformationGenerator {
|
|
|
11344
11350
|
export interface MediaTransformationResult {
|
|
11345
11351
|
/**
|
|
11346
11352
|
* Returns the transformed media as a readable stream of bytes.
|
|
11347
|
-
* @returns A
|
|
11353
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11348
11354
|
*/
|
|
11349
|
-
media(): ReadableStream<Uint8Array
|
|
11355
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11350
11356
|
/**
|
|
11351
11357
|
* Returns the transformed media as an HTTP response object.
|
|
11352
|
-
* @returns The transformed media as a Response
|
|
11358
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11353
11359
|
*/
|
|
11354
|
-
response(): Response
|
|
11360
|
+
response(): Promise<Response>;
|
|
11355
11361
|
/**
|
|
11356
11362
|
* Returns the MIME type of the transformed media.
|
|
11357
|
-
* @returns
|
|
11363
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11358
11364
|
*/
|
|
11359
|
-
contentType(): string
|
|
11365
|
+
contentType(): Promise<string>;
|
|
11360
11366
|
}
|
|
11361
11367
|
/**
|
|
11362
11368
|
* Configuration options for transforming media input.
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -11313,8 +11313,14 @@ interface MediaTransformer {
|
|
|
11313
11313
|
* @returns A generator for producing the transformed media output
|
|
11314
11314
|
*/
|
|
11315
11315
|
transform(
|
|
11316
|
-
transform
|
|
11316
|
+
transform?: MediaTransformationInputOptions,
|
|
11317
11317
|
): MediaTransformationGenerator;
|
|
11318
|
+
/**
|
|
11319
|
+
* Generates the final media output with specified options.
|
|
11320
|
+
* @param output - Configuration for the output format and parameters
|
|
11321
|
+
* @returns The final transformation result containing the transformed media
|
|
11322
|
+
*/
|
|
11323
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11318
11324
|
}
|
|
11319
11325
|
/**
|
|
11320
11326
|
* Generator for producing media transformation results.
|
|
@@ -11326,7 +11332,7 @@ interface MediaTransformationGenerator {
|
|
|
11326
11332
|
* @param output - Configuration for the output format and parameters
|
|
11327
11333
|
* @returns The final transformation result containing the transformed media
|
|
11328
11334
|
*/
|
|
11329
|
-
output(output
|
|
11335
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11330
11336
|
}
|
|
11331
11337
|
/**
|
|
11332
11338
|
* Result of a media transformation operation.
|
|
@@ -11335,19 +11341,19 @@ interface MediaTransformationGenerator {
|
|
|
11335
11341
|
interface MediaTransformationResult {
|
|
11336
11342
|
/**
|
|
11337
11343
|
* Returns the transformed media as a readable stream of bytes.
|
|
11338
|
-
* @returns A
|
|
11344
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11339
11345
|
*/
|
|
11340
|
-
media(): ReadableStream<Uint8Array
|
|
11346
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11341
11347
|
/**
|
|
11342
11348
|
* Returns the transformed media as an HTTP response object.
|
|
11343
|
-
* @returns The transformed media as a Response
|
|
11349
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11344
11350
|
*/
|
|
11345
|
-
response(): Response
|
|
11351
|
+
response(): Promise<Response>;
|
|
11346
11352
|
/**
|
|
11347
11353
|
* Returns the MIME type of the transformed media.
|
|
11348
|
-
* @returns
|
|
11354
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11349
11355
|
*/
|
|
11350
|
-
contentType(): string
|
|
11356
|
+
contentType(): Promise<string>;
|
|
11351
11357
|
}
|
|
11352
11358
|
/**
|
|
11353
11359
|
* Configuration options for transforming media input.
|
package/2022-03-21/index.ts
CHANGED
|
@@ -11330,8 +11330,14 @@ export interface MediaTransformer {
|
|
|
11330
11330
|
* @returns A generator for producing the transformed media output
|
|
11331
11331
|
*/
|
|
11332
11332
|
transform(
|
|
11333
|
-
transform
|
|
11333
|
+
transform?: MediaTransformationInputOptions,
|
|
11334
11334
|
): MediaTransformationGenerator;
|
|
11335
|
+
/**
|
|
11336
|
+
* Generates the final media output with specified options.
|
|
11337
|
+
* @param output - Configuration for the output format and parameters
|
|
11338
|
+
* @returns The final transformation result containing the transformed media
|
|
11339
|
+
*/
|
|
11340
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11335
11341
|
}
|
|
11336
11342
|
/**
|
|
11337
11343
|
* Generator for producing media transformation results.
|
|
@@ -11343,7 +11349,7 @@ export interface MediaTransformationGenerator {
|
|
|
11343
11349
|
* @param output - Configuration for the output format and parameters
|
|
11344
11350
|
* @returns The final transformation result containing the transformed media
|
|
11345
11351
|
*/
|
|
11346
|
-
output(output
|
|
11352
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11347
11353
|
}
|
|
11348
11354
|
/**
|
|
11349
11355
|
* Result of a media transformation operation.
|
|
@@ -11352,19 +11358,19 @@ export interface MediaTransformationGenerator {
|
|
|
11352
11358
|
export interface MediaTransformationResult {
|
|
11353
11359
|
/**
|
|
11354
11360
|
* Returns the transformed media as a readable stream of bytes.
|
|
11355
|
-
* @returns A
|
|
11361
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11356
11362
|
*/
|
|
11357
|
-
media(): ReadableStream<Uint8Array
|
|
11363
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11358
11364
|
/**
|
|
11359
11365
|
* Returns the transformed media as an HTTP response object.
|
|
11360
|
-
* @returns The transformed media as a Response
|
|
11366
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11361
11367
|
*/
|
|
11362
|
-
response(): Response
|
|
11368
|
+
response(): Promise<Response>;
|
|
11363
11369
|
/**
|
|
11364
11370
|
* Returns the MIME type of the transformed media.
|
|
11365
|
-
* @returns
|
|
11371
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11366
11372
|
*/
|
|
11367
|
-
contentType(): string
|
|
11373
|
+
contentType(): Promise<string>;
|
|
11368
11374
|
}
|
|
11369
11375
|
/**
|
|
11370
11376
|
* Configuration options for transforming media input.
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -11314,8 +11314,14 @@ interface MediaTransformer {
|
|
|
11314
11314
|
* @returns A generator for producing the transformed media output
|
|
11315
11315
|
*/
|
|
11316
11316
|
transform(
|
|
11317
|
-
transform
|
|
11317
|
+
transform?: MediaTransformationInputOptions,
|
|
11318
11318
|
): MediaTransformationGenerator;
|
|
11319
|
+
/**
|
|
11320
|
+
* Generates the final media output with specified options.
|
|
11321
|
+
* @param output - Configuration for the output format and parameters
|
|
11322
|
+
* @returns The final transformation result containing the transformed media
|
|
11323
|
+
*/
|
|
11324
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11319
11325
|
}
|
|
11320
11326
|
/**
|
|
11321
11327
|
* Generator for producing media transformation results.
|
|
@@ -11327,7 +11333,7 @@ interface MediaTransformationGenerator {
|
|
|
11327
11333
|
* @param output - Configuration for the output format and parameters
|
|
11328
11334
|
* @returns The final transformation result containing the transformed media
|
|
11329
11335
|
*/
|
|
11330
|
-
output(output
|
|
11336
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11331
11337
|
}
|
|
11332
11338
|
/**
|
|
11333
11339
|
* Result of a media transformation operation.
|
|
@@ -11336,19 +11342,19 @@ interface MediaTransformationGenerator {
|
|
|
11336
11342
|
interface MediaTransformationResult {
|
|
11337
11343
|
/**
|
|
11338
11344
|
* Returns the transformed media as a readable stream of bytes.
|
|
11339
|
-
* @returns A
|
|
11345
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11340
11346
|
*/
|
|
11341
|
-
media(): ReadableStream<Uint8Array
|
|
11347
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11342
11348
|
/**
|
|
11343
11349
|
* Returns the transformed media as an HTTP response object.
|
|
11344
|
-
* @returns The transformed media as a Response
|
|
11350
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11345
11351
|
*/
|
|
11346
|
-
response(): Response
|
|
11352
|
+
response(): Promise<Response>;
|
|
11347
11353
|
/**
|
|
11348
11354
|
* Returns the MIME type of the transformed media.
|
|
11349
|
-
* @returns
|
|
11355
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11350
11356
|
*/
|
|
11351
|
-
contentType(): string
|
|
11357
|
+
contentType(): Promise<string>;
|
|
11352
11358
|
}
|
|
11353
11359
|
/**
|
|
11354
11360
|
* Configuration options for transforming media input.
|
package/2022-08-04/index.ts
CHANGED
|
@@ -11331,8 +11331,14 @@ export interface MediaTransformer {
|
|
|
11331
11331
|
* @returns A generator for producing the transformed media output
|
|
11332
11332
|
*/
|
|
11333
11333
|
transform(
|
|
11334
|
-
transform
|
|
11334
|
+
transform?: MediaTransformationInputOptions,
|
|
11335
11335
|
): MediaTransformationGenerator;
|
|
11336
|
+
/**
|
|
11337
|
+
* Generates the final media output with specified options.
|
|
11338
|
+
* @param output - Configuration for the output format and parameters
|
|
11339
|
+
* @returns The final transformation result containing the transformed media
|
|
11340
|
+
*/
|
|
11341
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11336
11342
|
}
|
|
11337
11343
|
/**
|
|
11338
11344
|
* Generator for producing media transformation results.
|
|
@@ -11344,7 +11350,7 @@ export interface MediaTransformationGenerator {
|
|
|
11344
11350
|
* @param output - Configuration for the output format and parameters
|
|
11345
11351
|
* @returns The final transformation result containing the transformed media
|
|
11346
11352
|
*/
|
|
11347
|
-
output(output
|
|
11353
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11348
11354
|
}
|
|
11349
11355
|
/**
|
|
11350
11356
|
* Result of a media transformation operation.
|
|
@@ -11353,19 +11359,19 @@ export interface MediaTransformationGenerator {
|
|
|
11353
11359
|
export interface MediaTransformationResult {
|
|
11354
11360
|
/**
|
|
11355
11361
|
* Returns the transformed media as a readable stream of bytes.
|
|
11356
|
-
* @returns A
|
|
11362
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11357
11363
|
*/
|
|
11358
|
-
media(): ReadableStream<Uint8Array
|
|
11364
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11359
11365
|
/**
|
|
11360
11366
|
* Returns the transformed media as an HTTP response object.
|
|
11361
|
-
* @returns The transformed media as a Response
|
|
11367
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11362
11368
|
*/
|
|
11363
|
-
response(): Response
|
|
11369
|
+
response(): Promise<Response>;
|
|
11364
11370
|
/**
|
|
11365
11371
|
* Returns the MIME type of the transformed media.
|
|
11366
|
-
* @returns
|
|
11372
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11367
11373
|
*/
|
|
11368
|
-
contentType(): string
|
|
11374
|
+
contentType(): Promise<string>;
|
|
11369
11375
|
}
|
|
11370
11376
|
/**
|
|
11371
11377
|
* Configuration options for transforming media input.
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -11334,8 +11334,14 @@ interface MediaTransformer {
|
|
|
11334
11334
|
* @returns A generator for producing the transformed media output
|
|
11335
11335
|
*/
|
|
11336
11336
|
transform(
|
|
11337
|
-
transform
|
|
11337
|
+
transform?: MediaTransformationInputOptions,
|
|
11338
11338
|
): MediaTransformationGenerator;
|
|
11339
|
+
/**
|
|
11340
|
+
* Generates the final media output with specified options.
|
|
11341
|
+
* @param output - Configuration for the output format and parameters
|
|
11342
|
+
* @returns The final transformation result containing the transformed media
|
|
11343
|
+
*/
|
|
11344
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11339
11345
|
}
|
|
11340
11346
|
/**
|
|
11341
11347
|
* Generator for producing media transformation results.
|
|
@@ -11347,7 +11353,7 @@ interface MediaTransformationGenerator {
|
|
|
11347
11353
|
* @param output - Configuration for the output format and parameters
|
|
11348
11354
|
* @returns The final transformation result containing the transformed media
|
|
11349
11355
|
*/
|
|
11350
|
-
output(output
|
|
11356
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11351
11357
|
}
|
|
11352
11358
|
/**
|
|
11353
11359
|
* Result of a media transformation operation.
|
|
@@ -11356,19 +11362,19 @@ interface MediaTransformationGenerator {
|
|
|
11356
11362
|
interface MediaTransformationResult {
|
|
11357
11363
|
/**
|
|
11358
11364
|
* Returns the transformed media as a readable stream of bytes.
|
|
11359
|
-
* @returns A
|
|
11365
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11360
11366
|
*/
|
|
11361
|
-
media(): ReadableStream<Uint8Array
|
|
11367
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11362
11368
|
/**
|
|
11363
11369
|
* Returns the transformed media as an HTTP response object.
|
|
11364
|
-
* @returns The transformed media as a Response
|
|
11370
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11365
11371
|
*/
|
|
11366
|
-
response(): Response
|
|
11372
|
+
response(): Promise<Response>;
|
|
11367
11373
|
/**
|
|
11368
11374
|
* Returns the MIME type of the transformed media.
|
|
11369
|
-
* @returns
|
|
11375
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11370
11376
|
*/
|
|
11371
|
-
contentType(): string
|
|
11377
|
+
contentType(): Promise<string>;
|
|
11372
11378
|
}
|
|
11373
11379
|
/**
|
|
11374
11380
|
* Configuration options for transforming media input.
|
package/2022-10-31/index.ts
CHANGED
|
@@ -11351,8 +11351,14 @@ export interface MediaTransformer {
|
|
|
11351
11351
|
* @returns A generator for producing the transformed media output
|
|
11352
11352
|
*/
|
|
11353
11353
|
transform(
|
|
11354
|
-
transform
|
|
11354
|
+
transform?: MediaTransformationInputOptions,
|
|
11355
11355
|
): MediaTransformationGenerator;
|
|
11356
|
+
/**
|
|
11357
|
+
* Generates the final media output with specified options.
|
|
11358
|
+
* @param output - Configuration for the output format and parameters
|
|
11359
|
+
* @returns The final transformation result containing the transformed media
|
|
11360
|
+
*/
|
|
11361
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11356
11362
|
}
|
|
11357
11363
|
/**
|
|
11358
11364
|
* Generator for producing media transformation results.
|
|
@@ -11364,7 +11370,7 @@ export interface MediaTransformationGenerator {
|
|
|
11364
11370
|
* @param output - Configuration for the output format and parameters
|
|
11365
11371
|
* @returns The final transformation result containing the transformed media
|
|
11366
11372
|
*/
|
|
11367
|
-
output(output
|
|
11373
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11368
11374
|
}
|
|
11369
11375
|
/**
|
|
11370
11376
|
* Result of a media transformation operation.
|
|
@@ -11373,19 +11379,19 @@ export interface MediaTransformationGenerator {
|
|
|
11373
11379
|
export interface MediaTransformationResult {
|
|
11374
11380
|
/**
|
|
11375
11381
|
* Returns the transformed media as a readable stream of bytes.
|
|
11376
|
-
* @returns A
|
|
11382
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11377
11383
|
*/
|
|
11378
|
-
media(): ReadableStream<Uint8Array
|
|
11384
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11379
11385
|
/**
|
|
11380
11386
|
* Returns the transformed media as an HTTP response object.
|
|
11381
|
-
* @returns The transformed media as a Response
|
|
11387
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11382
11388
|
*/
|
|
11383
|
-
response(): Response
|
|
11389
|
+
response(): Promise<Response>;
|
|
11384
11390
|
/**
|
|
11385
11391
|
* Returns the MIME type of the transformed media.
|
|
11386
|
-
* @returns
|
|
11392
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11387
11393
|
*/
|
|
11388
|
-
contentType(): string
|
|
11394
|
+
contentType(): Promise<string>;
|
|
11389
11395
|
}
|
|
11390
11396
|
/**
|
|
11391
11397
|
* Configuration options for transforming media input.
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -11339,8 +11339,14 @@ interface MediaTransformer {
|
|
|
11339
11339
|
* @returns A generator for producing the transformed media output
|
|
11340
11340
|
*/
|
|
11341
11341
|
transform(
|
|
11342
|
-
transform
|
|
11342
|
+
transform?: MediaTransformationInputOptions,
|
|
11343
11343
|
): MediaTransformationGenerator;
|
|
11344
|
+
/**
|
|
11345
|
+
* Generates the final media output with specified options.
|
|
11346
|
+
* @param output - Configuration for the output format and parameters
|
|
11347
|
+
* @returns The final transformation result containing the transformed media
|
|
11348
|
+
*/
|
|
11349
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11344
11350
|
}
|
|
11345
11351
|
/**
|
|
11346
11352
|
* Generator for producing media transformation results.
|
|
@@ -11352,7 +11358,7 @@ interface MediaTransformationGenerator {
|
|
|
11352
11358
|
* @param output - Configuration for the output format and parameters
|
|
11353
11359
|
* @returns The final transformation result containing the transformed media
|
|
11354
11360
|
*/
|
|
11355
|
-
output(output
|
|
11361
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11356
11362
|
}
|
|
11357
11363
|
/**
|
|
11358
11364
|
* Result of a media transformation operation.
|
|
@@ -11361,19 +11367,19 @@ interface MediaTransformationGenerator {
|
|
|
11361
11367
|
interface MediaTransformationResult {
|
|
11362
11368
|
/**
|
|
11363
11369
|
* Returns the transformed media as a readable stream of bytes.
|
|
11364
|
-
* @returns A
|
|
11370
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11365
11371
|
*/
|
|
11366
|
-
media(): ReadableStream<Uint8Array
|
|
11372
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11367
11373
|
/**
|
|
11368
11374
|
* Returns the transformed media as an HTTP response object.
|
|
11369
|
-
* @returns The transformed media as a Response
|
|
11375
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11370
11376
|
*/
|
|
11371
|
-
response(): Response
|
|
11377
|
+
response(): Promise<Response>;
|
|
11372
11378
|
/**
|
|
11373
11379
|
* Returns the MIME type of the transformed media.
|
|
11374
|
-
* @returns
|
|
11380
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11375
11381
|
*/
|
|
11376
|
-
contentType(): string
|
|
11382
|
+
contentType(): Promise<string>;
|
|
11377
11383
|
}
|
|
11378
11384
|
/**
|
|
11379
11385
|
* Configuration options for transforming media input.
|
package/2022-11-30/index.ts
CHANGED
|
@@ -11356,8 +11356,14 @@ export interface MediaTransformer {
|
|
|
11356
11356
|
* @returns A generator for producing the transformed media output
|
|
11357
11357
|
*/
|
|
11358
11358
|
transform(
|
|
11359
|
-
transform
|
|
11359
|
+
transform?: MediaTransformationInputOptions,
|
|
11360
11360
|
): MediaTransformationGenerator;
|
|
11361
|
+
/**
|
|
11362
|
+
* Generates the final media output with specified options.
|
|
11363
|
+
* @param output - Configuration for the output format and parameters
|
|
11364
|
+
* @returns The final transformation result containing the transformed media
|
|
11365
|
+
*/
|
|
11366
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11361
11367
|
}
|
|
11362
11368
|
/**
|
|
11363
11369
|
* Generator for producing media transformation results.
|
|
@@ -11369,7 +11375,7 @@ export interface MediaTransformationGenerator {
|
|
|
11369
11375
|
* @param output - Configuration for the output format and parameters
|
|
11370
11376
|
* @returns The final transformation result containing the transformed media
|
|
11371
11377
|
*/
|
|
11372
|
-
output(output
|
|
11378
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11373
11379
|
}
|
|
11374
11380
|
/**
|
|
11375
11381
|
* Result of a media transformation operation.
|
|
@@ -11378,19 +11384,19 @@ export interface MediaTransformationGenerator {
|
|
|
11378
11384
|
export interface MediaTransformationResult {
|
|
11379
11385
|
/**
|
|
11380
11386
|
* Returns the transformed media as a readable stream of bytes.
|
|
11381
|
-
* @returns A
|
|
11387
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11382
11388
|
*/
|
|
11383
|
-
media(): ReadableStream<Uint8Array
|
|
11389
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11384
11390
|
/**
|
|
11385
11391
|
* Returns the transformed media as an HTTP response object.
|
|
11386
|
-
* @returns The transformed media as a Response
|
|
11392
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11387
11393
|
*/
|
|
11388
|
-
response(): Response
|
|
11394
|
+
response(): Promise<Response>;
|
|
11389
11395
|
/**
|
|
11390
11396
|
* Returns the MIME type of the transformed media.
|
|
11391
|
-
* @returns
|
|
11397
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11392
11398
|
*/
|
|
11393
|
-
contentType(): string
|
|
11399
|
+
contentType(): Promise<string>;
|
|
11394
11400
|
}
|
|
11395
11401
|
/**
|
|
11396
11402
|
* Configuration options for transforming media input.
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -11345,8 +11345,14 @@ interface MediaTransformer {
|
|
|
11345
11345
|
* @returns A generator for producing the transformed media output
|
|
11346
11346
|
*/
|
|
11347
11347
|
transform(
|
|
11348
|
-
transform
|
|
11348
|
+
transform?: MediaTransformationInputOptions,
|
|
11349
11349
|
): MediaTransformationGenerator;
|
|
11350
|
+
/**
|
|
11351
|
+
* Generates the final media output with specified options.
|
|
11352
|
+
* @param output - Configuration for the output format and parameters
|
|
11353
|
+
* @returns The final transformation result containing the transformed media
|
|
11354
|
+
*/
|
|
11355
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11350
11356
|
}
|
|
11351
11357
|
/**
|
|
11352
11358
|
* Generator for producing media transformation results.
|
|
@@ -11358,7 +11364,7 @@ interface MediaTransformationGenerator {
|
|
|
11358
11364
|
* @param output - Configuration for the output format and parameters
|
|
11359
11365
|
* @returns The final transformation result containing the transformed media
|
|
11360
11366
|
*/
|
|
11361
|
-
output(output
|
|
11367
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11362
11368
|
}
|
|
11363
11369
|
/**
|
|
11364
11370
|
* Result of a media transformation operation.
|
|
@@ -11367,19 +11373,19 @@ interface MediaTransformationGenerator {
|
|
|
11367
11373
|
interface MediaTransformationResult {
|
|
11368
11374
|
/**
|
|
11369
11375
|
* Returns the transformed media as a readable stream of bytes.
|
|
11370
|
-
* @returns A
|
|
11376
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11371
11377
|
*/
|
|
11372
|
-
media(): ReadableStream<Uint8Array
|
|
11378
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11373
11379
|
/**
|
|
11374
11380
|
* Returns the transformed media as an HTTP response object.
|
|
11375
|
-
* @returns The transformed media as a Response
|
|
11381
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11376
11382
|
*/
|
|
11377
|
-
response(): Response
|
|
11383
|
+
response(): Promise<Response>;
|
|
11378
11384
|
/**
|
|
11379
11385
|
* Returns the MIME type of the transformed media.
|
|
11380
|
-
* @returns
|
|
11386
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11381
11387
|
*/
|
|
11382
|
-
contentType(): string
|
|
11388
|
+
contentType(): Promise<string>;
|
|
11383
11389
|
}
|
|
11384
11390
|
/**
|
|
11385
11391
|
* Configuration options for transforming media input.
|
package/2023-03-01/index.ts
CHANGED
|
@@ -11362,8 +11362,14 @@ export interface MediaTransformer {
|
|
|
11362
11362
|
* @returns A generator for producing the transformed media output
|
|
11363
11363
|
*/
|
|
11364
11364
|
transform(
|
|
11365
|
-
transform
|
|
11365
|
+
transform?: MediaTransformationInputOptions,
|
|
11366
11366
|
): MediaTransformationGenerator;
|
|
11367
|
+
/**
|
|
11368
|
+
* Generates the final media output with specified options.
|
|
11369
|
+
* @param output - Configuration for the output format and parameters
|
|
11370
|
+
* @returns The final transformation result containing the transformed media
|
|
11371
|
+
*/
|
|
11372
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11367
11373
|
}
|
|
11368
11374
|
/**
|
|
11369
11375
|
* Generator for producing media transformation results.
|
|
@@ -11375,7 +11381,7 @@ export interface MediaTransformationGenerator {
|
|
|
11375
11381
|
* @param output - Configuration for the output format and parameters
|
|
11376
11382
|
* @returns The final transformation result containing the transformed media
|
|
11377
11383
|
*/
|
|
11378
|
-
output(output
|
|
11384
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11379
11385
|
}
|
|
11380
11386
|
/**
|
|
11381
11387
|
* Result of a media transformation operation.
|
|
@@ -11384,19 +11390,19 @@ export interface MediaTransformationGenerator {
|
|
|
11384
11390
|
export interface MediaTransformationResult {
|
|
11385
11391
|
/**
|
|
11386
11392
|
* Returns the transformed media as a readable stream of bytes.
|
|
11387
|
-
* @returns A
|
|
11393
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11388
11394
|
*/
|
|
11389
|
-
media(): ReadableStream<Uint8Array
|
|
11395
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11390
11396
|
/**
|
|
11391
11397
|
* Returns the transformed media as an HTTP response object.
|
|
11392
|
-
* @returns The transformed media as a Response
|
|
11398
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11393
11399
|
*/
|
|
11394
|
-
response(): Response
|
|
11400
|
+
response(): Promise<Response>;
|
|
11395
11401
|
/**
|
|
11396
11402
|
* Returns the MIME type of the transformed media.
|
|
11397
|
-
* @returns
|
|
11403
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11398
11404
|
*/
|
|
11399
|
-
contentType(): string
|
|
11405
|
+
contentType(): Promise<string>;
|
|
11400
11406
|
}
|
|
11401
11407
|
/**
|
|
11402
11408
|
* Configuration options for transforming media input.
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -11345,8 +11345,14 @@ interface MediaTransformer {
|
|
|
11345
11345
|
* @returns A generator for producing the transformed media output
|
|
11346
11346
|
*/
|
|
11347
11347
|
transform(
|
|
11348
|
-
transform
|
|
11348
|
+
transform?: MediaTransformationInputOptions,
|
|
11349
11349
|
): MediaTransformationGenerator;
|
|
11350
|
+
/**
|
|
11351
|
+
* Generates the final media output with specified options.
|
|
11352
|
+
* @param output - Configuration for the output format and parameters
|
|
11353
|
+
* @returns The final transformation result containing the transformed media
|
|
11354
|
+
*/
|
|
11355
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11350
11356
|
}
|
|
11351
11357
|
/**
|
|
11352
11358
|
* Generator for producing media transformation results.
|
|
@@ -11358,7 +11364,7 @@ interface MediaTransformationGenerator {
|
|
|
11358
11364
|
* @param output - Configuration for the output format and parameters
|
|
11359
11365
|
* @returns The final transformation result containing the transformed media
|
|
11360
11366
|
*/
|
|
11361
|
-
output(output
|
|
11367
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11362
11368
|
}
|
|
11363
11369
|
/**
|
|
11364
11370
|
* Result of a media transformation operation.
|
|
@@ -11367,19 +11373,19 @@ interface MediaTransformationGenerator {
|
|
|
11367
11373
|
interface MediaTransformationResult {
|
|
11368
11374
|
/**
|
|
11369
11375
|
* Returns the transformed media as a readable stream of bytes.
|
|
11370
|
-
* @returns A
|
|
11376
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11371
11377
|
*/
|
|
11372
|
-
media(): ReadableStream<Uint8Array
|
|
11378
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11373
11379
|
/**
|
|
11374
11380
|
* Returns the transformed media as an HTTP response object.
|
|
11375
|
-
* @returns The transformed media as a Response
|
|
11381
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11376
11382
|
*/
|
|
11377
|
-
response(): Response
|
|
11383
|
+
response(): Promise<Response>;
|
|
11378
11384
|
/**
|
|
11379
11385
|
* Returns the MIME type of the transformed media.
|
|
11380
|
-
* @returns
|
|
11386
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11381
11387
|
*/
|
|
11382
|
-
contentType(): string
|
|
11388
|
+
contentType(): Promise<string>;
|
|
11383
11389
|
}
|
|
11384
11390
|
/**
|
|
11385
11391
|
* Configuration options for transforming media input.
|
package/2023-07-01/index.ts
CHANGED
|
@@ -11362,8 +11362,14 @@ export interface MediaTransformer {
|
|
|
11362
11362
|
* @returns A generator for producing the transformed media output
|
|
11363
11363
|
*/
|
|
11364
11364
|
transform(
|
|
11365
|
-
transform
|
|
11365
|
+
transform?: MediaTransformationInputOptions,
|
|
11366
11366
|
): MediaTransformationGenerator;
|
|
11367
|
+
/**
|
|
11368
|
+
* Generates the final media output with specified options.
|
|
11369
|
+
* @param output - Configuration for the output format and parameters
|
|
11370
|
+
* @returns The final transformation result containing the transformed media
|
|
11371
|
+
*/
|
|
11372
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11367
11373
|
}
|
|
11368
11374
|
/**
|
|
11369
11375
|
* Generator for producing media transformation results.
|
|
@@ -11375,7 +11381,7 @@ export interface MediaTransformationGenerator {
|
|
|
11375
11381
|
* @param output - Configuration for the output format and parameters
|
|
11376
11382
|
* @returns The final transformation result containing the transformed media
|
|
11377
11383
|
*/
|
|
11378
|
-
output(output
|
|
11384
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11379
11385
|
}
|
|
11380
11386
|
/**
|
|
11381
11387
|
* Result of a media transformation operation.
|
|
@@ -11384,19 +11390,19 @@ export interface MediaTransformationGenerator {
|
|
|
11384
11390
|
export interface MediaTransformationResult {
|
|
11385
11391
|
/**
|
|
11386
11392
|
* Returns the transformed media as a readable stream of bytes.
|
|
11387
|
-
* @returns A
|
|
11393
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11388
11394
|
*/
|
|
11389
|
-
media(): ReadableStream<Uint8Array
|
|
11395
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11390
11396
|
/**
|
|
11391
11397
|
* Returns the transformed media as an HTTP response object.
|
|
11392
|
-
* @returns The transformed media as a Response
|
|
11398
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11393
11399
|
*/
|
|
11394
|
-
response(): Response
|
|
11400
|
+
response(): Promise<Response>;
|
|
11395
11401
|
/**
|
|
11396
11402
|
* Returns the MIME type of the transformed media.
|
|
11397
|
-
* @returns
|
|
11403
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11398
11404
|
*/
|
|
11399
|
-
contentType(): string
|
|
11405
|
+
contentType(): Promise<string>;
|
|
11400
11406
|
}
|
|
11401
11407
|
/**
|
|
11402
11408
|
* Configuration options for transforming media input.
|
package/experimental/index.d.ts
CHANGED
|
@@ -12006,8 +12006,14 @@ interface MediaTransformer {
|
|
|
12006
12006
|
* @returns A generator for producing the transformed media output
|
|
12007
12007
|
*/
|
|
12008
12008
|
transform(
|
|
12009
|
-
transform
|
|
12009
|
+
transform?: MediaTransformationInputOptions,
|
|
12010
12010
|
): MediaTransformationGenerator;
|
|
12011
|
+
/**
|
|
12012
|
+
* Generates the final media output with specified options.
|
|
12013
|
+
* @param output - Configuration for the output format and parameters
|
|
12014
|
+
* @returns The final transformation result containing the transformed media
|
|
12015
|
+
*/
|
|
12016
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
12011
12017
|
}
|
|
12012
12018
|
/**
|
|
12013
12019
|
* Generator for producing media transformation results.
|
|
@@ -12019,7 +12025,7 @@ interface MediaTransformationGenerator {
|
|
|
12019
12025
|
* @param output - Configuration for the output format and parameters
|
|
12020
12026
|
* @returns The final transformation result containing the transformed media
|
|
12021
12027
|
*/
|
|
12022
|
-
output(output
|
|
12028
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
12023
12029
|
}
|
|
12024
12030
|
/**
|
|
12025
12031
|
* Result of a media transformation operation.
|
|
@@ -12028,19 +12034,19 @@ interface MediaTransformationGenerator {
|
|
|
12028
12034
|
interface MediaTransformationResult {
|
|
12029
12035
|
/**
|
|
12030
12036
|
* Returns the transformed media as a readable stream of bytes.
|
|
12031
|
-
* @returns A
|
|
12037
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
12032
12038
|
*/
|
|
12033
|
-
media(): ReadableStream<Uint8Array
|
|
12039
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
12034
12040
|
/**
|
|
12035
12041
|
* Returns the transformed media as an HTTP response object.
|
|
12036
|
-
* @returns The transformed media as a Response
|
|
12042
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
12037
12043
|
*/
|
|
12038
|
-
response(): Response
|
|
12044
|
+
response(): Promise<Response>;
|
|
12039
12045
|
/**
|
|
12040
12046
|
* Returns the MIME type of the transformed media.
|
|
12041
|
-
* @returns
|
|
12047
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
12042
12048
|
*/
|
|
12043
|
-
contentType(): string
|
|
12049
|
+
contentType(): Promise<string>;
|
|
12044
12050
|
}
|
|
12045
12051
|
/**
|
|
12046
12052
|
* Configuration options for transforming media input.
|
package/experimental/index.ts
CHANGED
|
@@ -12023,8 +12023,14 @@ export interface MediaTransformer {
|
|
|
12023
12023
|
* @returns A generator for producing the transformed media output
|
|
12024
12024
|
*/
|
|
12025
12025
|
transform(
|
|
12026
|
-
transform
|
|
12026
|
+
transform?: MediaTransformationInputOptions,
|
|
12027
12027
|
): MediaTransformationGenerator;
|
|
12028
|
+
/**
|
|
12029
|
+
* Generates the final media output with specified options.
|
|
12030
|
+
* @param output - Configuration for the output format and parameters
|
|
12031
|
+
* @returns The final transformation result containing the transformed media
|
|
12032
|
+
*/
|
|
12033
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
12028
12034
|
}
|
|
12029
12035
|
/**
|
|
12030
12036
|
* Generator for producing media transformation results.
|
|
@@ -12036,7 +12042,7 @@ export interface MediaTransformationGenerator {
|
|
|
12036
12042
|
* @param output - Configuration for the output format and parameters
|
|
12037
12043
|
* @returns The final transformation result containing the transformed media
|
|
12038
12044
|
*/
|
|
12039
|
-
output(output
|
|
12045
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
12040
12046
|
}
|
|
12041
12047
|
/**
|
|
12042
12048
|
* Result of a media transformation operation.
|
|
@@ -12045,19 +12051,19 @@ export interface MediaTransformationGenerator {
|
|
|
12045
12051
|
export interface MediaTransformationResult {
|
|
12046
12052
|
/**
|
|
12047
12053
|
* Returns the transformed media as a readable stream of bytes.
|
|
12048
|
-
* @returns A
|
|
12054
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
12049
12055
|
*/
|
|
12050
|
-
media(): ReadableStream<Uint8Array
|
|
12056
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
12051
12057
|
/**
|
|
12052
12058
|
* Returns the transformed media as an HTTP response object.
|
|
12053
|
-
* @returns The transformed media as a Response
|
|
12059
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
12054
12060
|
*/
|
|
12055
|
-
response(): Response
|
|
12061
|
+
response(): Promise<Response>;
|
|
12056
12062
|
/**
|
|
12057
12063
|
* Returns the MIME type of the transformed media.
|
|
12058
|
-
* @returns
|
|
12064
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
12059
12065
|
*/
|
|
12060
|
-
contentType(): string
|
|
12066
|
+
contentType(): Promise<string>;
|
|
12061
12067
|
}
|
|
12062
12068
|
/**
|
|
12063
12069
|
* Configuration options for transforming media input.
|
package/index.d.ts
CHANGED
|
@@ -11238,8 +11238,14 @@ interface MediaTransformer {
|
|
|
11238
11238
|
* @returns A generator for producing the transformed media output
|
|
11239
11239
|
*/
|
|
11240
11240
|
transform(
|
|
11241
|
-
transform
|
|
11241
|
+
transform?: MediaTransformationInputOptions,
|
|
11242
11242
|
): MediaTransformationGenerator;
|
|
11243
|
+
/**
|
|
11244
|
+
* Generates the final media output with specified options.
|
|
11245
|
+
* @param output - Configuration for the output format and parameters
|
|
11246
|
+
* @returns The final transformation result containing the transformed media
|
|
11247
|
+
*/
|
|
11248
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11243
11249
|
}
|
|
11244
11250
|
/**
|
|
11245
11251
|
* Generator for producing media transformation results.
|
|
@@ -11251,7 +11257,7 @@ interface MediaTransformationGenerator {
|
|
|
11251
11257
|
* @param output - Configuration for the output format and parameters
|
|
11252
11258
|
* @returns The final transformation result containing the transformed media
|
|
11253
11259
|
*/
|
|
11254
|
-
output(output
|
|
11260
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11255
11261
|
}
|
|
11256
11262
|
/**
|
|
11257
11263
|
* Result of a media transformation operation.
|
|
@@ -11260,19 +11266,19 @@ interface MediaTransformationGenerator {
|
|
|
11260
11266
|
interface MediaTransformationResult {
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Returns the transformed media as a readable stream of bytes.
|
|
11263
|
-
* @returns A
|
|
11269
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11264
11270
|
*/
|
|
11265
|
-
media(): ReadableStream<Uint8Array
|
|
11271
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11266
11272
|
/**
|
|
11267
11273
|
* Returns the transformed media as an HTTP response object.
|
|
11268
|
-
* @returns The transformed media as a Response
|
|
11274
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11269
11275
|
*/
|
|
11270
|
-
response(): Response
|
|
11276
|
+
response(): Promise<Response>;
|
|
11271
11277
|
/**
|
|
11272
11278
|
* Returns the MIME type of the transformed media.
|
|
11273
|
-
* @returns
|
|
11279
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11274
11280
|
*/
|
|
11275
|
-
contentType(): string
|
|
11281
|
+
contentType(): Promise<string>;
|
|
11276
11282
|
}
|
|
11277
11283
|
/**
|
|
11278
11284
|
* Configuration options for transforming media input.
|
package/index.ts
CHANGED
|
@@ -11255,8 +11255,14 @@ export interface MediaTransformer {
|
|
|
11255
11255
|
* @returns A generator for producing the transformed media output
|
|
11256
11256
|
*/
|
|
11257
11257
|
transform(
|
|
11258
|
-
transform
|
|
11258
|
+
transform?: MediaTransformationInputOptions,
|
|
11259
11259
|
): MediaTransformationGenerator;
|
|
11260
|
+
/**
|
|
11261
|
+
* Generates the final media output with specified options.
|
|
11262
|
+
* @param output - Configuration for the output format and parameters
|
|
11263
|
+
* @returns The final transformation result containing the transformed media
|
|
11264
|
+
*/
|
|
11265
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11260
11266
|
}
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Generator for producing media transformation results.
|
|
@@ -11268,7 +11274,7 @@ export interface MediaTransformationGenerator {
|
|
|
11268
11274
|
* @param output - Configuration for the output format and parameters
|
|
11269
11275
|
* @returns The final transformation result containing the transformed media
|
|
11270
11276
|
*/
|
|
11271
|
-
output(output
|
|
11277
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11272
11278
|
}
|
|
11273
11279
|
/**
|
|
11274
11280
|
* Result of a media transformation operation.
|
|
@@ -11277,19 +11283,19 @@ export interface MediaTransformationGenerator {
|
|
|
11277
11283
|
export interface MediaTransformationResult {
|
|
11278
11284
|
/**
|
|
11279
11285
|
* Returns the transformed media as a readable stream of bytes.
|
|
11280
|
-
* @returns A
|
|
11286
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11281
11287
|
*/
|
|
11282
|
-
media(): ReadableStream<Uint8Array
|
|
11288
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11283
11289
|
/**
|
|
11284
11290
|
* Returns the transformed media as an HTTP response object.
|
|
11285
|
-
* @returns The transformed media as a Response
|
|
11291
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11286
11292
|
*/
|
|
11287
|
-
response(): Response
|
|
11293
|
+
response(): Promise<Response>;
|
|
11288
11294
|
/**
|
|
11289
11295
|
* Returns the MIME type of the transformed media.
|
|
11290
|
-
* @returns
|
|
11296
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11291
11297
|
*/
|
|
11292
|
-
contentType(): string
|
|
11298
|
+
contentType(): Promise<string>;
|
|
11293
11299
|
}
|
|
11294
11300
|
/**
|
|
11295
11301
|
* Configuration options for transforming media input.
|
package/latest/index.d.ts
CHANGED
|
@@ -11378,8 +11378,14 @@ interface MediaTransformer {
|
|
|
11378
11378
|
* @returns A generator for producing the transformed media output
|
|
11379
11379
|
*/
|
|
11380
11380
|
transform(
|
|
11381
|
-
transform
|
|
11381
|
+
transform?: MediaTransformationInputOptions,
|
|
11382
11382
|
): MediaTransformationGenerator;
|
|
11383
|
+
/**
|
|
11384
|
+
* Generates the final media output with specified options.
|
|
11385
|
+
* @param output - Configuration for the output format and parameters
|
|
11386
|
+
* @returns The final transformation result containing the transformed media
|
|
11387
|
+
*/
|
|
11388
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11383
11389
|
}
|
|
11384
11390
|
/**
|
|
11385
11391
|
* Generator for producing media transformation results.
|
|
@@ -11391,7 +11397,7 @@ interface MediaTransformationGenerator {
|
|
|
11391
11397
|
* @param output - Configuration for the output format and parameters
|
|
11392
11398
|
* @returns The final transformation result containing the transformed media
|
|
11393
11399
|
*/
|
|
11394
|
-
output(output
|
|
11400
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11395
11401
|
}
|
|
11396
11402
|
/**
|
|
11397
11403
|
* Result of a media transformation operation.
|
|
@@ -11400,19 +11406,19 @@ interface MediaTransformationGenerator {
|
|
|
11400
11406
|
interface MediaTransformationResult {
|
|
11401
11407
|
/**
|
|
11402
11408
|
* Returns the transformed media as a readable stream of bytes.
|
|
11403
|
-
* @returns A
|
|
11409
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11404
11410
|
*/
|
|
11405
|
-
media(): ReadableStream<Uint8Array
|
|
11411
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11406
11412
|
/**
|
|
11407
11413
|
* Returns the transformed media as an HTTP response object.
|
|
11408
|
-
* @returns The transformed media as a Response
|
|
11414
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11409
11415
|
*/
|
|
11410
|
-
response(): Response
|
|
11416
|
+
response(): Promise<Response>;
|
|
11411
11417
|
/**
|
|
11412
11418
|
* Returns the MIME type of the transformed media.
|
|
11413
|
-
* @returns
|
|
11419
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11414
11420
|
*/
|
|
11415
|
-
contentType(): string
|
|
11421
|
+
contentType(): Promise<string>;
|
|
11416
11422
|
}
|
|
11417
11423
|
/**
|
|
11418
11424
|
* Configuration options for transforming media input.
|
package/latest/index.ts
CHANGED
|
@@ -11395,8 +11395,14 @@ export interface MediaTransformer {
|
|
|
11395
11395
|
* @returns A generator for producing the transformed media output
|
|
11396
11396
|
*/
|
|
11397
11397
|
transform(
|
|
11398
|
-
transform
|
|
11398
|
+
transform?: MediaTransformationInputOptions,
|
|
11399
11399
|
): MediaTransformationGenerator;
|
|
11400
|
+
/**
|
|
11401
|
+
* Generates the final media output with specified options.
|
|
11402
|
+
* @param output - Configuration for the output format and parameters
|
|
11403
|
+
* @returns The final transformation result containing the transformed media
|
|
11404
|
+
*/
|
|
11405
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11400
11406
|
}
|
|
11401
11407
|
/**
|
|
11402
11408
|
* Generator for producing media transformation results.
|
|
@@ -11408,7 +11414,7 @@ export interface MediaTransformationGenerator {
|
|
|
11408
11414
|
* @param output - Configuration for the output format and parameters
|
|
11409
11415
|
* @returns The final transformation result containing the transformed media
|
|
11410
11416
|
*/
|
|
11411
|
-
output(output
|
|
11417
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11412
11418
|
}
|
|
11413
11419
|
/**
|
|
11414
11420
|
* Result of a media transformation operation.
|
|
@@ -11417,19 +11423,19 @@ export interface MediaTransformationGenerator {
|
|
|
11417
11423
|
export interface MediaTransformationResult {
|
|
11418
11424
|
/**
|
|
11419
11425
|
* Returns the transformed media as a readable stream of bytes.
|
|
11420
|
-
* @returns A
|
|
11426
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11421
11427
|
*/
|
|
11422
|
-
media(): ReadableStream<Uint8Array
|
|
11428
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11423
11429
|
/**
|
|
11424
11430
|
* Returns the transformed media as an HTTP response object.
|
|
11425
|
-
* @returns The transformed media as a Response
|
|
11431
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11426
11432
|
*/
|
|
11427
|
-
response(): Response
|
|
11433
|
+
response(): Promise<Response>;
|
|
11428
11434
|
/**
|
|
11429
11435
|
* Returns the MIME type of the transformed media.
|
|
11430
|
-
* @returns
|
|
11436
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11431
11437
|
*/
|
|
11432
|
-
contentType(): string
|
|
11438
|
+
contentType(): Promise<string>;
|
|
11433
11439
|
}
|
|
11434
11440
|
/**
|
|
11435
11441
|
* Configuration options for transforming media input.
|
package/oldest/index.d.ts
CHANGED
|
@@ -11238,8 +11238,14 @@ interface MediaTransformer {
|
|
|
11238
11238
|
* @returns A generator for producing the transformed media output
|
|
11239
11239
|
*/
|
|
11240
11240
|
transform(
|
|
11241
|
-
transform
|
|
11241
|
+
transform?: MediaTransformationInputOptions,
|
|
11242
11242
|
): MediaTransformationGenerator;
|
|
11243
|
+
/**
|
|
11244
|
+
* Generates the final media output with specified options.
|
|
11245
|
+
* @param output - Configuration for the output format and parameters
|
|
11246
|
+
* @returns The final transformation result containing the transformed media
|
|
11247
|
+
*/
|
|
11248
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11243
11249
|
}
|
|
11244
11250
|
/**
|
|
11245
11251
|
* Generator for producing media transformation results.
|
|
@@ -11251,7 +11257,7 @@ interface MediaTransformationGenerator {
|
|
|
11251
11257
|
* @param output - Configuration for the output format and parameters
|
|
11252
11258
|
* @returns The final transformation result containing the transformed media
|
|
11253
11259
|
*/
|
|
11254
|
-
output(output
|
|
11260
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11255
11261
|
}
|
|
11256
11262
|
/**
|
|
11257
11263
|
* Result of a media transformation operation.
|
|
@@ -11260,19 +11266,19 @@ interface MediaTransformationGenerator {
|
|
|
11260
11266
|
interface MediaTransformationResult {
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Returns the transformed media as a readable stream of bytes.
|
|
11263
|
-
* @returns A
|
|
11269
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11264
11270
|
*/
|
|
11265
|
-
media(): ReadableStream<Uint8Array
|
|
11271
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11266
11272
|
/**
|
|
11267
11273
|
* Returns the transformed media as an HTTP response object.
|
|
11268
|
-
* @returns The transformed media as a Response
|
|
11274
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11269
11275
|
*/
|
|
11270
|
-
response(): Response
|
|
11276
|
+
response(): Promise<Response>;
|
|
11271
11277
|
/**
|
|
11272
11278
|
* Returns the MIME type of the transformed media.
|
|
11273
|
-
* @returns
|
|
11279
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11274
11280
|
*/
|
|
11275
|
-
contentType(): string
|
|
11281
|
+
contentType(): Promise<string>;
|
|
11276
11282
|
}
|
|
11277
11283
|
/**
|
|
11278
11284
|
* Configuration options for transforming media input.
|
package/oldest/index.ts
CHANGED
|
@@ -11255,8 +11255,14 @@ export interface MediaTransformer {
|
|
|
11255
11255
|
* @returns A generator for producing the transformed media output
|
|
11256
11256
|
*/
|
|
11257
11257
|
transform(
|
|
11258
|
-
transform
|
|
11258
|
+
transform?: MediaTransformationInputOptions,
|
|
11259
11259
|
): MediaTransformationGenerator;
|
|
11260
|
+
/**
|
|
11261
|
+
* Generates the final media output with specified options.
|
|
11262
|
+
* @param output - Configuration for the output format and parameters
|
|
11263
|
+
* @returns The final transformation result containing the transformed media
|
|
11264
|
+
*/
|
|
11265
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11260
11266
|
}
|
|
11261
11267
|
/**
|
|
11262
11268
|
* Generator for producing media transformation results.
|
|
@@ -11268,7 +11274,7 @@ export interface MediaTransformationGenerator {
|
|
|
11268
11274
|
* @param output - Configuration for the output format and parameters
|
|
11269
11275
|
* @returns The final transformation result containing the transformed media
|
|
11270
11276
|
*/
|
|
11271
|
-
output(output
|
|
11277
|
+
output(output?: MediaTransformationOutputOptions): MediaTransformationResult;
|
|
11272
11278
|
}
|
|
11273
11279
|
/**
|
|
11274
11280
|
* Result of a media transformation operation.
|
|
@@ -11277,19 +11283,19 @@ export interface MediaTransformationGenerator {
|
|
|
11277
11283
|
export interface MediaTransformationResult {
|
|
11278
11284
|
/**
|
|
11279
11285
|
* Returns the transformed media as a readable stream of bytes.
|
|
11280
|
-
* @returns A
|
|
11286
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
11281
11287
|
*/
|
|
11282
|
-
media(): ReadableStream<Uint8Array
|
|
11288
|
+
media(): Promise<ReadableStream<Uint8Array>>;
|
|
11283
11289
|
/**
|
|
11284
11290
|
* Returns the transformed media as an HTTP response object.
|
|
11285
|
-
* @returns The transformed media as a Response
|
|
11291
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
11286
11292
|
*/
|
|
11287
|
-
response(): Response
|
|
11293
|
+
response(): Promise<Response>;
|
|
11288
11294
|
/**
|
|
11289
11295
|
* Returns the MIME type of the transformed media.
|
|
11290
|
-
* @returns
|
|
11296
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
11291
11297
|
*/
|
|
11292
|
-
contentType(): string
|
|
11298
|
+
contentType(): Promise<string>;
|
|
11293
11299
|
}
|
|
11294
11300
|
/**
|
|
11295
11301
|
* Configuration options for transforming media input.
|
package/package.json
CHANGED