@cloudflare/workers-types 4.20260331.1 → 4.20260401.1
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 +34 -7
- package/2021-11-03/index.ts +34 -7
- package/2022-01-31/index.d.ts +34 -7
- package/2022-01-31/index.ts +34 -7
- package/2022-03-21/index.d.ts +34 -7
- package/2022-03-21/index.ts +34 -7
- package/2022-08-04/index.d.ts +34 -7
- package/2022-08-04/index.ts +34 -7
- package/2022-10-31/index.d.ts +34 -7
- package/2022-10-31/index.ts +34 -7
- package/2022-11-30/index.d.ts +34 -7
- package/2022-11-30/index.ts +34 -7
- package/2023-03-01/index.d.ts +34 -7
- package/2023-03-01/index.ts +34 -7
- package/2023-07-01/index.d.ts +34 -7
- package/2023-07-01/index.ts +34 -7
- package/experimental/index.d.ts +5 -8
- package/experimental/index.ts +5 -8
- package/index.d.ts +34 -7
- package/index.ts +34 -7
- package/latest/index.d.ts +34 -7
- package/latest/index.ts +34 -7
- package/oldest/index.d.ts +34 -7
- package/oldest/index.ts +34 -7
- package/package.json +1 -1
package/oldest/index.d.ts
CHANGED
|
@@ -3662,12 +3662,42 @@ interface Container {
|
|
|
3662
3662
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3663
3663
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3664
3664
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3665
|
+
snapshotDirectory(
|
|
3666
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3667
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3668
|
+
snapshotContainer(
|
|
3669
|
+
options: ContainerSnapshotOptions,
|
|
3670
|
+
): Promise<ContainerSnapshot>;
|
|
3671
|
+
}
|
|
3672
|
+
interface ContainerDirectorySnapshot {
|
|
3673
|
+
id: string;
|
|
3674
|
+
size: number;
|
|
3675
|
+
dir: string;
|
|
3676
|
+
name?: string;
|
|
3677
|
+
}
|
|
3678
|
+
interface ContainerDirectorySnapshotOptions {
|
|
3679
|
+
dir: string;
|
|
3680
|
+
name?: string;
|
|
3681
|
+
}
|
|
3682
|
+
interface ContainerDirectorySnapshotRestoreParams {
|
|
3683
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3684
|
+
mountPoint?: string;
|
|
3685
|
+
}
|
|
3686
|
+
interface ContainerSnapshot {
|
|
3687
|
+
id: string;
|
|
3688
|
+
size: number;
|
|
3689
|
+
name?: string;
|
|
3690
|
+
}
|
|
3691
|
+
interface ContainerSnapshotOptions {
|
|
3692
|
+
name?: string;
|
|
3665
3693
|
}
|
|
3666
3694
|
interface ContainerStartupOptions {
|
|
3667
3695
|
entrypoint?: string[];
|
|
3668
3696
|
enableInternet: boolean;
|
|
3669
3697
|
env?: Record<string, string>;
|
|
3670
3698
|
labels?: Record<string, string>;
|
|
3699
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3700
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3671
3701
|
}
|
|
3672
3702
|
/**
|
|
3673
3703
|
* The **`MessagePort`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
@@ -13172,14 +13202,13 @@ interface StreamScopedCaptions {
|
|
|
13172
13202
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13173
13203
|
* One caption or subtitle file per language is allowed.
|
|
13174
13204
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13175
|
-
* @param
|
|
13205
|
+
* @param input The caption or subtitle stream to upload.
|
|
13176
13206
|
* @returns The created caption entry.
|
|
13177
13207
|
* @throws {NotFoundError} if the video is not found
|
|
13178
13208
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13179
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13180
13209
|
* @throws {InternalError} if an unexpected error occurs
|
|
13181
13210
|
*/
|
|
13182
|
-
upload(language: string,
|
|
13211
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13183
13212
|
/**
|
|
13184
13213
|
* Generate captions or subtitles for the provided language via AI.
|
|
13185
13214
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13255,17 +13284,16 @@ interface StreamVideos {
|
|
|
13255
13284
|
interface StreamWatermarks {
|
|
13256
13285
|
/**
|
|
13257
13286
|
* Generate a new watermark profile
|
|
13258
|
-
* @param
|
|
13287
|
+
* @param input The image stream to upload
|
|
13259
13288
|
* @param params The watermark creation parameters.
|
|
13260
13289
|
* @returns The created watermark profile.
|
|
13261
13290
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13262
13291
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13263
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13264
13292
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13265
13293
|
* @throws {InternalError} if an unexpected error occurs
|
|
13266
13294
|
*/
|
|
13267
13295
|
generate(
|
|
13268
|
-
|
|
13296
|
+
input: ReadableStream,
|
|
13269
13297
|
params: StreamWatermarkCreateParams,
|
|
13270
13298
|
): Promise<StreamWatermark>;
|
|
13271
13299
|
/**
|
|
@@ -13275,7 +13303,6 @@ interface StreamWatermarks {
|
|
|
13275
13303
|
* @returns The created watermark profile.
|
|
13276
13304
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13277
13305
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13278
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13279
13306
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13280
13307
|
* @throws {InternalError} if an unexpected error occurs
|
|
13281
13308
|
*/
|
package/oldest/index.ts
CHANGED
|
@@ -3668,12 +3668,42 @@ export interface Container {
|
|
|
3668
3668
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3669
3669
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3670
3670
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3671
|
+
snapshotDirectory(
|
|
3672
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3673
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3674
|
+
snapshotContainer(
|
|
3675
|
+
options: ContainerSnapshotOptions,
|
|
3676
|
+
): Promise<ContainerSnapshot>;
|
|
3677
|
+
}
|
|
3678
|
+
export interface ContainerDirectorySnapshot {
|
|
3679
|
+
id: string;
|
|
3680
|
+
size: number;
|
|
3681
|
+
dir: string;
|
|
3682
|
+
name?: string;
|
|
3683
|
+
}
|
|
3684
|
+
export interface ContainerDirectorySnapshotOptions {
|
|
3685
|
+
dir: string;
|
|
3686
|
+
name?: string;
|
|
3687
|
+
}
|
|
3688
|
+
export interface ContainerDirectorySnapshotRestoreParams {
|
|
3689
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3690
|
+
mountPoint?: string;
|
|
3691
|
+
}
|
|
3692
|
+
export interface ContainerSnapshot {
|
|
3693
|
+
id: string;
|
|
3694
|
+
size: number;
|
|
3695
|
+
name?: string;
|
|
3696
|
+
}
|
|
3697
|
+
export interface ContainerSnapshotOptions {
|
|
3698
|
+
name?: string;
|
|
3671
3699
|
}
|
|
3672
3700
|
export interface ContainerStartupOptions {
|
|
3673
3701
|
entrypoint?: string[];
|
|
3674
3702
|
enableInternet: boolean;
|
|
3675
3703
|
env?: Record<string, string>;
|
|
3676
3704
|
labels?: Record<string, string>;
|
|
3705
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3706
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3677
3707
|
}
|
|
3678
3708
|
/**
|
|
3679
3709
|
* The **`MessagePort`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
@@ -13129,14 +13159,13 @@ export interface StreamScopedCaptions {
|
|
|
13129
13159
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13130
13160
|
* One caption or subtitle file per language is allowed.
|
|
13131
13161
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13132
|
-
* @param
|
|
13162
|
+
* @param input The caption or subtitle stream to upload.
|
|
13133
13163
|
* @returns The created caption entry.
|
|
13134
13164
|
* @throws {NotFoundError} if the video is not found
|
|
13135
13165
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13136
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13137
13166
|
* @throws {InternalError} if an unexpected error occurs
|
|
13138
13167
|
*/
|
|
13139
|
-
upload(language: string,
|
|
13168
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13140
13169
|
/**
|
|
13141
13170
|
* Generate captions or subtitles for the provided language via AI.
|
|
13142
13171
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13212,17 +13241,16 @@ export interface StreamVideos {
|
|
|
13212
13241
|
export interface StreamWatermarks {
|
|
13213
13242
|
/**
|
|
13214
13243
|
* Generate a new watermark profile
|
|
13215
|
-
* @param
|
|
13244
|
+
* @param input The image stream to upload
|
|
13216
13245
|
* @param params The watermark creation parameters.
|
|
13217
13246
|
* @returns The created watermark profile.
|
|
13218
13247
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13219
13248
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13220
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13221
13249
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13222
13250
|
* @throws {InternalError} if an unexpected error occurs
|
|
13223
13251
|
*/
|
|
13224
13252
|
generate(
|
|
13225
|
-
|
|
13253
|
+
input: ReadableStream,
|
|
13226
13254
|
params: StreamWatermarkCreateParams,
|
|
13227
13255
|
): Promise<StreamWatermark>;
|
|
13228
13256
|
/**
|
|
@@ -13232,7 +13260,6 @@ export interface StreamWatermarks {
|
|
|
13232
13260
|
* @returns The created watermark profile.
|
|
13233
13261
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13234
13262
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13235
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13236
13263
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13237
13264
|
* @throws {InternalError} if an unexpected error occurs
|
|
13238
13265
|
*/
|
package/package.json
CHANGED