@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/2023-07-01/index.d.ts
CHANGED
|
@@ -3769,12 +3769,42 @@ interface Container {
|
|
|
3769
3769
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3770
3770
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3771
3771
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3772
|
+
snapshotDirectory(
|
|
3773
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3774
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3775
|
+
snapshotContainer(
|
|
3776
|
+
options: ContainerSnapshotOptions,
|
|
3777
|
+
): Promise<ContainerSnapshot>;
|
|
3778
|
+
}
|
|
3779
|
+
interface ContainerDirectorySnapshot {
|
|
3780
|
+
id: string;
|
|
3781
|
+
size: number;
|
|
3782
|
+
dir: string;
|
|
3783
|
+
name?: string;
|
|
3784
|
+
}
|
|
3785
|
+
interface ContainerDirectorySnapshotOptions {
|
|
3786
|
+
dir: string;
|
|
3787
|
+
name?: string;
|
|
3788
|
+
}
|
|
3789
|
+
interface ContainerDirectorySnapshotRestoreParams {
|
|
3790
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3791
|
+
mountPoint?: string;
|
|
3792
|
+
}
|
|
3793
|
+
interface ContainerSnapshot {
|
|
3794
|
+
id: string;
|
|
3795
|
+
size: number;
|
|
3796
|
+
name?: string;
|
|
3797
|
+
}
|
|
3798
|
+
interface ContainerSnapshotOptions {
|
|
3799
|
+
name?: string;
|
|
3772
3800
|
}
|
|
3773
3801
|
interface ContainerStartupOptions {
|
|
3774
3802
|
entrypoint?: string[];
|
|
3775
3803
|
enableInternet: boolean;
|
|
3776
3804
|
env?: Record<string, string>;
|
|
3777
3805
|
labels?: Record<string, string>;
|
|
3806
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3807
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3778
3808
|
}
|
|
3779
3809
|
/**
|
|
3780
3810
|
* 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.
|
|
@@ -13279,14 +13309,13 @@ interface StreamScopedCaptions {
|
|
|
13279
13309
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13280
13310
|
* One caption or subtitle file per language is allowed.
|
|
13281
13311
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13282
|
-
* @param
|
|
13312
|
+
* @param input The caption or subtitle stream to upload.
|
|
13283
13313
|
* @returns The created caption entry.
|
|
13284
13314
|
* @throws {NotFoundError} if the video is not found
|
|
13285
13315
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13286
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13287
13316
|
* @throws {InternalError} if an unexpected error occurs
|
|
13288
13317
|
*/
|
|
13289
|
-
upload(language: string,
|
|
13318
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13290
13319
|
/**
|
|
13291
13320
|
* Generate captions or subtitles for the provided language via AI.
|
|
13292
13321
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13362,17 +13391,16 @@ interface StreamVideos {
|
|
|
13362
13391
|
interface StreamWatermarks {
|
|
13363
13392
|
/**
|
|
13364
13393
|
* Generate a new watermark profile
|
|
13365
|
-
* @param
|
|
13394
|
+
* @param input The image stream to upload
|
|
13366
13395
|
* @param params The watermark creation parameters.
|
|
13367
13396
|
* @returns The created watermark profile.
|
|
13368
13397
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13369
13398
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13370
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13371
13399
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13372
13400
|
* @throws {InternalError} if an unexpected error occurs
|
|
13373
13401
|
*/
|
|
13374
13402
|
generate(
|
|
13375
|
-
|
|
13403
|
+
input: ReadableStream,
|
|
13376
13404
|
params: StreamWatermarkCreateParams,
|
|
13377
13405
|
): Promise<StreamWatermark>;
|
|
13378
13406
|
/**
|
|
@@ -13382,7 +13410,6 @@ interface StreamWatermarks {
|
|
|
13382
13410
|
* @returns The created watermark profile.
|
|
13383
13411
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13384
13412
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13385
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13386
13413
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13387
13414
|
* @throws {InternalError} if an unexpected error occurs
|
|
13388
13415
|
*/
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3775,12 +3775,42 @@ export interface Container {
|
|
|
3775
3775
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3776
3776
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3777
3777
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3778
|
+
snapshotDirectory(
|
|
3779
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3780
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3781
|
+
snapshotContainer(
|
|
3782
|
+
options: ContainerSnapshotOptions,
|
|
3783
|
+
): Promise<ContainerSnapshot>;
|
|
3784
|
+
}
|
|
3785
|
+
export interface ContainerDirectorySnapshot {
|
|
3786
|
+
id: string;
|
|
3787
|
+
size: number;
|
|
3788
|
+
dir: string;
|
|
3789
|
+
name?: string;
|
|
3790
|
+
}
|
|
3791
|
+
export interface ContainerDirectorySnapshotOptions {
|
|
3792
|
+
dir: string;
|
|
3793
|
+
name?: string;
|
|
3794
|
+
}
|
|
3795
|
+
export interface ContainerDirectorySnapshotRestoreParams {
|
|
3796
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3797
|
+
mountPoint?: string;
|
|
3798
|
+
}
|
|
3799
|
+
export interface ContainerSnapshot {
|
|
3800
|
+
id: string;
|
|
3801
|
+
size: number;
|
|
3802
|
+
name?: string;
|
|
3803
|
+
}
|
|
3804
|
+
export interface ContainerSnapshotOptions {
|
|
3805
|
+
name?: string;
|
|
3778
3806
|
}
|
|
3779
3807
|
export interface ContainerStartupOptions {
|
|
3780
3808
|
entrypoint?: string[];
|
|
3781
3809
|
enableInternet: boolean;
|
|
3782
3810
|
env?: Record<string, string>;
|
|
3783
3811
|
labels?: Record<string, string>;
|
|
3812
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3813
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3784
3814
|
}
|
|
3785
3815
|
/**
|
|
3786
3816
|
* 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.
|
|
@@ -13236,14 +13266,13 @@ export interface StreamScopedCaptions {
|
|
|
13236
13266
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13237
13267
|
* One caption or subtitle file per language is allowed.
|
|
13238
13268
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13239
|
-
* @param
|
|
13269
|
+
* @param input The caption or subtitle stream to upload.
|
|
13240
13270
|
* @returns The created caption entry.
|
|
13241
13271
|
* @throws {NotFoundError} if the video is not found
|
|
13242
13272
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13243
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13244
13273
|
* @throws {InternalError} if an unexpected error occurs
|
|
13245
13274
|
*/
|
|
13246
|
-
upload(language: string,
|
|
13275
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13247
13276
|
/**
|
|
13248
13277
|
* Generate captions or subtitles for the provided language via AI.
|
|
13249
13278
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13319,17 +13348,16 @@ export interface StreamVideos {
|
|
|
13319
13348
|
export interface StreamWatermarks {
|
|
13320
13349
|
/**
|
|
13321
13350
|
* Generate a new watermark profile
|
|
13322
|
-
* @param
|
|
13351
|
+
* @param input The image stream to upload
|
|
13323
13352
|
* @param params The watermark creation parameters.
|
|
13324
13353
|
* @returns The created watermark profile.
|
|
13325
13354
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13326
13355
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13327
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13328
13356
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13329
13357
|
* @throws {InternalError} if an unexpected error occurs
|
|
13330
13358
|
*/
|
|
13331
13359
|
generate(
|
|
13332
|
-
|
|
13360
|
+
input: ReadableStream,
|
|
13333
13361
|
params: StreamWatermarkCreateParams,
|
|
13334
13362
|
): Promise<StreamWatermark>;
|
|
13335
13363
|
/**
|
|
@@ -13339,7 +13367,6 @@ export interface StreamWatermarks {
|
|
|
13339
13367
|
* @returns The created watermark profile.
|
|
13340
13368
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13341
13369
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13342
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13343
13370
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13344
13371
|
* @throws {InternalError} if an unexpected error occurs
|
|
13345
13372
|
*/
|
package/experimental/index.d.ts
CHANGED
|
@@ -3943,13 +3943,13 @@ interface Container {
|
|
|
3943
3943
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3944
3944
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3945
3945
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3946
|
-
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3947
3946
|
snapshotDirectory(
|
|
3948
3947
|
options: ContainerDirectorySnapshotOptions,
|
|
3949
3948
|
): Promise<ContainerDirectorySnapshot>;
|
|
3950
3949
|
snapshotContainer(
|
|
3951
3950
|
options: ContainerSnapshotOptions,
|
|
3952
3951
|
): Promise<ContainerSnapshot>;
|
|
3952
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3953
3953
|
}
|
|
3954
3954
|
interface ContainerDirectorySnapshot {
|
|
3955
3955
|
id: string;
|
|
@@ -14037,14 +14037,13 @@ interface StreamScopedCaptions {
|
|
|
14037
14037
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
14038
14038
|
* One caption or subtitle file per language is allowed.
|
|
14039
14039
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
14040
|
-
* @param
|
|
14040
|
+
* @param input The caption or subtitle stream to upload.
|
|
14041
14041
|
* @returns The created caption entry.
|
|
14042
14042
|
* @throws {NotFoundError} if the video is not found
|
|
14043
14043
|
* @throws {BadRequestError} if the language or file is invalid
|
|
14044
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14045
14044
|
* @throws {InternalError} if an unexpected error occurs
|
|
14046
14045
|
*/
|
|
14047
|
-
upload(language: string,
|
|
14046
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
14048
14047
|
/**
|
|
14049
14048
|
* Generate captions or subtitles for the provided language via AI.
|
|
14050
14049
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -14120,17 +14119,16 @@ interface StreamVideos {
|
|
|
14120
14119
|
interface StreamWatermarks {
|
|
14121
14120
|
/**
|
|
14122
14121
|
* Generate a new watermark profile
|
|
14123
|
-
* @param
|
|
14122
|
+
* @param input The image stream to upload
|
|
14124
14123
|
* @param params The watermark creation parameters.
|
|
14125
14124
|
* @returns The created watermark profile.
|
|
14126
14125
|
* @throws {BadRequestError} if the parameters are invalid
|
|
14127
14126
|
* @throws {InvalidURLError} if the URL is invalid
|
|
14128
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14129
14127
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
14130
14128
|
* @throws {InternalError} if an unexpected error occurs
|
|
14131
14129
|
*/
|
|
14132
14130
|
generate(
|
|
14133
|
-
|
|
14131
|
+
input: ReadableStream,
|
|
14134
14132
|
params: StreamWatermarkCreateParams,
|
|
14135
14133
|
): Promise<StreamWatermark>;
|
|
14136
14134
|
/**
|
|
@@ -14140,7 +14138,6 @@ interface StreamWatermarks {
|
|
|
14140
14138
|
* @returns The created watermark profile.
|
|
14141
14139
|
* @throws {BadRequestError} if the parameters are invalid
|
|
14142
14140
|
* @throws {InvalidURLError} if the URL is invalid
|
|
14143
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14144
14141
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
14145
14142
|
* @throws {InternalError} if an unexpected error occurs
|
|
14146
14143
|
*/
|
package/experimental/index.ts
CHANGED
|
@@ -3949,13 +3949,13 @@ export interface Container {
|
|
|
3949
3949
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3950
3950
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3951
3951
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3952
|
-
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3953
3952
|
snapshotDirectory(
|
|
3954
3953
|
options: ContainerDirectorySnapshotOptions,
|
|
3955
3954
|
): Promise<ContainerDirectorySnapshot>;
|
|
3956
3955
|
snapshotContainer(
|
|
3957
3956
|
options: ContainerSnapshotOptions,
|
|
3958
3957
|
): Promise<ContainerSnapshot>;
|
|
3958
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3959
3959
|
}
|
|
3960
3960
|
export interface ContainerDirectorySnapshot {
|
|
3961
3961
|
id: string;
|
|
@@ -13994,14 +13994,13 @@ export interface StreamScopedCaptions {
|
|
|
13994
13994
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13995
13995
|
* One caption or subtitle file per language is allowed.
|
|
13996
13996
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13997
|
-
* @param
|
|
13997
|
+
* @param input The caption or subtitle stream to upload.
|
|
13998
13998
|
* @returns The created caption entry.
|
|
13999
13999
|
* @throws {NotFoundError} if the video is not found
|
|
14000
14000
|
* @throws {BadRequestError} if the language or file is invalid
|
|
14001
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14002
14001
|
* @throws {InternalError} if an unexpected error occurs
|
|
14003
14002
|
*/
|
|
14004
|
-
upload(language: string,
|
|
14003
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
14005
14004
|
/**
|
|
14006
14005
|
* Generate captions or subtitles for the provided language via AI.
|
|
14007
14006
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -14077,17 +14076,16 @@ export interface StreamVideos {
|
|
|
14077
14076
|
export interface StreamWatermarks {
|
|
14078
14077
|
/**
|
|
14079
14078
|
* Generate a new watermark profile
|
|
14080
|
-
* @param
|
|
14079
|
+
* @param input The image stream to upload
|
|
14081
14080
|
* @param params The watermark creation parameters.
|
|
14082
14081
|
* @returns The created watermark profile.
|
|
14083
14082
|
* @throws {BadRequestError} if the parameters are invalid
|
|
14084
14083
|
* @throws {InvalidURLError} if the URL is invalid
|
|
14085
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14086
14084
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
14087
14085
|
* @throws {InternalError} if an unexpected error occurs
|
|
14088
14086
|
*/
|
|
14089
14087
|
generate(
|
|
14090
|
-
|
|
14088
|
+
input: ReadableStream,
|
|
14091
14089
|
params: StreamWatermarkCreateParams,
|
|
14092
14090
|
): Promise<StreamWatermark>;
|
|
14093
14091
|
/**
|
|
@@ -14097,7 +14095,6 @@ export interface StreamWatermarks {
|
|
|
14097
14095
|
* @returns The created watermark profile.
|
|
14098
14096
|
* @throws {BadRequestError} if the parameters are invalid
|
|
14099
14097
|
* @throws {InvalidURLError} if the URL is invalid
|
|
14100
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
14101
14098
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
14102
14099
|
* @throws {InternalError} if an unexpected error occurs
|
|
14103
14100
|
*/
|
package/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/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/latest/index.d.ts
CHANGED
|
@@ -3782,12 +3782,42 @@ interface Container {
|
|
|
3782
3782
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3783
3783
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3784
3784
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3785
|
+
snapshotDirectory(
|
|
3786
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3787
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3788
|
+
snapshotContainer(
|
|
3789
|
+
options: ContainerSnapshotOptions,
|
|
3790
|
+
): Promise<ContainerSnapshot>;
|
|
3791
|
+
}
|
|
3792
|
+
interface ContainerDirectorySnapshot {
|
|
3793
|
+
id: string;
|
|
3794
|
+
size: number;
|
|
3795
|
+
dir: string;
|
|
3796
|
+
name?: string;
|
|
3797
|
+
}
|
|
3798
|
+
interface ContainerDirectorySnapshotOptions {
|
|
3799
|
+
dir: string;
|
|
3800
|
+
name?: string;
|
|
3801
|
+
}
|
|
3802
|
+
interface ContainerDirectorySnapshotRestoreParams {
|
|
3803
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3804
|
+
mountPoint?: string;
|
|
3805
|
+
}
|
|
3806
|
+
interface ContainerSnapshot {
|
|
3807
|
+
id: string;
|
|
3808
|
+
size: number;
|
|
3809
|
+
name?: string;
|
|
3810
|
+
}
|
|
3811
|
+
interface ContainerSnapshotOptions {
|
|
3812
|
+
name?: string;
|
|
3785
3813
|
}
|
|
3786
3814
|
interface ContainerStartupOptions {
|
|
3787
3815
|
entrypoint?: string[];
|
|
3788
3816
|
enableInternet: boolean;
|
|
3789
3817
|
env?: Record<string, string>;
|
|
3790
3818
|
labels?: Record<string, string>;
|
|
3819
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3820
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3791
3821
|
}
|
|
3792
3822
|
/**
|
|
3793
3823
|
* 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.
|
|
@@ -13312,14 +13342,13 @@ interface StreamScopedCaptions {
|
|
|
13312
13342
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13313
13343
|
* One caption or subtitle file per language is allowed.
|
|
13314
13344
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13315
|
-
* @param
|
|
13345
|
+
* @param input The caption or subtitle stream to upload.
|
|
13316
13346
|
* @returns The created caption entry.
|
|
13317
13347
|
* @throws {NotFoundError} if the video is not found
|
|
13318
13348
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13319
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13320
13349
|
* @throws {InternalError} if an unexpected error occurs
|
|
13321
13350
|
*/
|
|
13322
|
-
upload(language: string,
|
|
13351
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13323
13352
|
/**
|
|
13324
13353
|
* Generate captions or subtitles for the provided language via AI.
|
|
13325
13354
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13395,17 +13424,16 @@ interface StreamVideos {
|
|
|
13395
13424
|
interface StreamWatermarks {
|
|
13396
13425
|
/**
|
|
13397
13426
|
* Generate a new watermark profile
|
|
13398
|
-
* @param
|
|
13427
|
+
* @param input The image stream to upload
|
|
13399
13428
|
* @param params The watermark creation parameters.
|
|
13400
13429
|
* @returns The created watermark profile.
|
|
13401
13430
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13402
13431
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13403
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13404
13432
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13405
13433
|
* @throws {InternalError} if an unexpected error occurs
|
|
13406
13434
|
*/
|
|
13407
13435
|
generate(
|
|
13408
|
-
|
|
13436
|
+
input: ReadableStream,
|
|
13409
13437
|
params: StreamWatermarkCreateParams,
|
|
13410
13438
|
): Promise<StreamWatermark>;
|
|
13411
13439
|
/**
|
|
@@ -13415,7 +13443,6 @@ interface StreamWatermarks {
|
|
|
13415
13443
|
* @returns The created watermark profile.
|
|
13416
13444
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13417
13445
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13418
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13419
13446
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13420
13447
|
* @throws {InternalError} if an unexpected error occurs
|
|
13421
13448
|
*/
|
package/latest/index.ts
CHANGED
|
@@ -3788,12 +3788,42 @@ export interface Container {
|
|
|
3788
3788
|
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3789
3789
|
interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>;
|
|
3790
3790
|
interceptAllOutboundHttp(binding: Fetcher): Promise<void>;
|
|
3791
|
+
snapshotDirectory(
|
|
3792
|
+
options: ContainerDirectorySnapshotOptions,
|
|
3793
|
+
): Promise<ContainerDirectorySnapshot>;
|
|
3794
|
+
snapshotContainer(
|
|
3795
|
+
options: ContainerSnapshotOptions,
|
|
3796
|
+
): Promise<ContainerSnapshot>;
|
|
3797
|
+
}
|
|
3798
|
+
export interface ContainerDirectorySnapshot {
|
|
3799
|
+
id: string;
|
|
3800
|
+
size: number;
|
|
3801
|
+
dir: string;
|
|
3802
|
+
name?: string;
|
|
3803
|
+
}
|
|
3804
|
+
export interface ContainerDirectorySnapshotOptions {
|
|
3805
|
+
dir: string;
|
|
3806
|
+
name?: string;
|
|
3807
|
+
}
|
|
3808
|
+
export interface ContainerDirectorySnapshotRestoreParams {
|
|
3809
|
+
snapshot: ContainerDirectorySnapshot;
|
|
3810
|
+
mountPoint?: string;
|
|
3811
|
+
}
|
|
3812
|
+
export interface ContainerSnapshot {
|
|
3813
|
+
id: string;
|
|
3814
|
+
size: number;
|
|
3815
|
+
name?: string;
|
|
3816
|
+
}
|
|
3817
|
+
export interface ContainerSnapshotOptions {
|
|
3818
|
+
name?: string;
|
|
3791
3819
|
}
|
|
3792
3820
|
export interface ContainerStartupOptions {
|
|
3793
3821
|
entrypoint?: string[];
|
|
3794
3822
|
enableInternet: boolean;
|
|
3795
3823
|
env?: Record<string, string>;
|
|
3796
3824
|
labels?: Record<string, string>;
|
|
3825
|
+
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
3826
|
+
containerSnapshot?: ContainerSnapshot;
|
|
3797
3827
|
}
|
|
3798
3828
|
/**
|
|
3799
3829
|
* 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.
|
|
@@ -13269,14 +13299,13 @@ export interface StreamScopedCaptions {
|
|
|
13269
13299
|
* Uploads the caption or subtitle file to the endpoint for a specific BCP47 language.
|
|
13270
13300
|
* One caption or subtitle file per language is allowed.
|
|
13271
13301
|
* @param language The BCP 47 language tag for the caption or subtitle.
|
|
13272
|
-
* @param
|
|
13302
|
+
* @param input The caption or subtitle stream to upload.
|
|
13273
13303
|
* @returns The created caption entry.
|
|
13274
13304
|
* @throws {NotFoundError} if the video is not found
|
|
13275
13305
|
* @throws {BadRequestError} if the language or file is invalid
|
|
13276
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13277
13306
|
* @throws {InternalError} if an unexpected error occurs
|
|
13278
13307
|
*/
|
|
13279
|
-
upload(language: string,
|
|
13308
|
+
upload(language: string, input: ReadableStream): Promise<StreamCaption>;
|
|
13280
13309
|
/**
|
|
13281
13310
|
* Generate captions or subtitles for the provided language via AI.
|
|
13282
13311
|
* @param language The BCP 47 language tag to generate.
|
|
@@ -13352,17 +13381,16 @@ export interface StreamVideos {
|
|
|
13352
13381
|
export interface StreamWatermarks {
|
|
13353
13382
|
/**
|
|
13354
13383
|
* Generate a new watermark profile
|
|
13355
|
-
* @param
|
|
13384
|
+
* @param input The image stream to upload
|
|
13356
13385
|
* @param params The watermark creation parameters.
|
|
13357
13386
|
* @returns The created watermark profile.
|
|
13358
13387
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13359
13388
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13360
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13361
13389
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13362
13390
|
* @throws {InternalError} if an unexpected error occurs
|
|
13363
13391
|
*/
|
|
13364
13392
|
generate(
|
|
13365
|
-
|
|
13393
|
+
input: ReadableStream,
|
|
13366
13394
|
params: StreamWatermarkCreateParams,
|
|
13367
13395
|
): Promise<StreamWatermark>;
|
|
13368
13396
|
/**
|
|
@@ -13372,7 +13400,6 @@ export interface StreamWatermarks {
|
|
|
13372
13400
|
* @returns The created watermark profile.
|
|
13373
13401
|
* @throws {BadRequestError} if the parameters are invalid
|
|
13374
13402
|
* @throws {InvalidURLError} if the URL is invalid
|
|
13375
|
-
* @throws {MaxFileSizeError} if the file size is too large
|
|
13376
13403
|
* @throws {TooManyWatermarksError} if the number of allowed watermarks is reached
|
|
13377
13404
|
* @throws {InternalError} if an unexpected error occurs
|
|
13378
13405
|
*/
|