@cloudflare/workers-types 4.20260401.1 → 4.20260403.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 +25 -20
- package/2021-11-03/index.ts +25 -20
- package/2022-01-31/index.d.ts +25 -20
- package/2022-01-31/index.ts +25 -20
- package/2022-03-21/index.d.ts +25 -20
- package/2022-03-21/index.ts +25 -20
- package/2022-08-04/index.d.ts +25 -20
- package/2022-08-04/index.ts +25 -20
- package/2022-10-31/index.d.ts +25 -20
- package/2022-10-31/index.ts +25 -20
- package/2022-11-30/index.d.ts +25 -20
- package/2022-11-30/index.ts +25 -20
- package/2023-03-01/index.d.ts +25 -20
- package/2023-03-01/index.ts +25 -20
- package/2023-07-01/index.d.ts +25 -20
- package/2023-07-01/index.ts +25 -20
- package/experimental/index.d.ts +52 -24
- package/experimental/index.ts +52 -24
- package/index.d.ts +25 -20
- package/index.ts +25 -20
- package/latest/index.d.ts +25 -20
- package/latest/index.ts +25 -20
- package/oldest/index.d.ts +25 -20
- package/oldest/index.ts +25 -20
- package/package.json +1 -1
package/2022-10-31/index.ts
CHANGED
|
@@ -3770,6 +3770,7 @@ export interface Container {
|
|
|
3770
3770
|
snapshotContainer(
|
|
3771
3771
|
options: ContainerSnapshotOptions,
|
|
3772
3772
|
): Promise<ContainerSnapshot>;
|
|
3773
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3773
3774
|
}
|
|
3774
3775
|
export interface ContainerDirectorySnapshot {
|
|
3775
3776
|
id: string;
|
|
@@ -12201,19 +12202,37 @@ export interface ImageList {
|
|
|
12201
12202
|
cursor?: string;
|
|
12202
12203
|
listComplete: boolean;
|
|
12203
12204
|
}
|
|
12204
|
-
export interface
|
|
12205
|
+
export interface ImageHandle {
|
|
12205
12206
|
/**
|
|
12206
|
-
* Get
|
|
12207
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12207
|
+
* Get metadata for a hosted image
|
|
12208
12208
|
* @returns Image metadata, or null if not found
|
|
12209
12209
|
*/
|
|
12210
|
-
details(
|
|
12210
|
+
details(): Promise<ImageMetadata | null>;
|
|
12211
12211
|
/**
|
|
12212
12212
|
* Get the raw image data for a hosted image
|
|
12213
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12214
12213
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12215
12214
|
*/
|
|
12216
|
-
|
|
12215
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12216
|
+
/**
|
|
12217
|
+
* Update hosted image metadata
|
|
12218
|
+
* @param options Properties to update
|
|
12219
|
+
* @returns Updated image metadata
|
|
12220
|
+
* @throws {@link ImagesError} if update fails
|
|
12221
|
+
*/
|
|
12222
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12223
|
+
/**
|
|
12224
|
+
* Delete a hosted image
|
|
12225
|
+
* @returns True if deleted, false if not found
|
|
12226
|
+
*/
|
|
12227
|
+
delete(): Promise<boolean>;
|
|
12228
|
+
}
|
|
12229
|
+
export interface HostedImagesBinding {
|
|
12230
|
+
/**
|
|
12231
|
+
* Get a handle for a hosted image
|
|
12232
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12233
|
+
* @returns A handle for per-image operations
|
|
12234
|
+
*/
|
|
12235
|
+
image(imageId: string): ImageHandle;
|
|
12217
12236
|
/**
|
|
12218
12237
|
* Upload a new hosted image
|
|
12219
12238
|
* @param image The image file to upload
|
|
@@ -12225,20 +12244,6 @@ export interface HostedImagesBinding {
|
|
|
12225
12244
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12226
12245
|
options?: ImageUploadOptions,
|
|
12227
12246
|
): Promise<ImageMetadata>;
|
|
12228
|
-
/**
|
|
12229
|
-
* Update hosted image metadata
|
|
12230
|
-
* @param imageId The ID of the image
|
|
12231
|
-
* @param options Properties to update
|
|
12232
|
-
* @returns Updated image metadata
|
|
12233
|
-
* @throws {@link ImagesError} if update fails
|
|
12234
|
-
*/
|
|
12235
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12236
|
-
/**
|
|
12237
|
-
* Delete a hosted image
|
|
12238
|
-
* @param imageId The ID of the image
|
|
12239
|
-
* @returns True if deleted, false if not found
|
|
12240
|
-
*/
|
|
12241
|
-
delete(imageId: string): Promise<boolean>;
|
|
12242
12247
|
/**
|
|
12243
12248
|
* List hosted images with pagination
|
|
12244
12249
|
* @param options List configuration
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -3769,6 +3769,7 @@ interface Container {
|
|
|
3769
3769
|
snapshotContainer(
|
|
3770
3770
|
options: ContainerSnapshotOptions,
|
|
3771
3771
|
): Promise<ContainerSnapshot>;
|
|
3772
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3772
3773
|
}
|
|
3773
3774
|
interface ContainerDirectorySnapshot {
|
|
3774
3775
|
id: string;
|
|
@@ -12190,19 +12191,37 @@ interface ImageList {
|
|
|
12190
12191
|
cursor?: string;
|
|
12191
12192
|
listComplete: boolean;
|
|
12192
12193
|
}
|
|
12193
|
-
interface
|
|
12194
|
+
interface ImageHandle {
|
|
12194
12195
|
/**
|
|
12195
|
-
* Get
|
|
12196
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12196
|
+
* Get metadata for a hosted image
|
|
12197
12197
|
* @returns Image metadata, or null if not found
|
|
12198
12198
|
*/
|
|
12199
|
-
details(
|
|
12199
|
+
details(): Promise<ImageMetadata | null>;
|
|
12200
12200
|
/**
|
|
12201
12201
|
* Get the raw image data for a hosted image
|
|
12202
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12203
12202
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12204
12203
|
*/
|
|
12205
|
-
|
|
12204
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12205
|
+
/**
|
|
12206
|
+
* Update hosted image metadata
|
|
12207
|
+
* @param options Properties to update
|
|
12208
|
+
* @returns Updated image metadata
|
|
12209
|
+
* @throws {@link ImagesError} if update fails
|
|
12210
|
+
*/
|
|
12211
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12212
|
+
/**
|
|
12213
|
+
* Delete a hosted image
|
|
12214
|
+
* @returns True if deleted, false if not found
|
|
12215
|
+
*/
|
|
12216
|
+
delete(): Promise<boolean>;
|
|
12217
|
+
}
|
|
12218
|
+
interface HostedImagesBinding {
|
|
12219
|
+
/**
|
|
12220
|
+
* Get a handle for a hosted image
|
|
12221
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12222
|
+
* @returns A handle for per-image operations
|
|
12223
|
+
*/
|
|
12224
|
+
image(imageId: string): ImageHandle;
|
|
12206
12225
|
/**
|
|
12207
12226
|
* Upload a new hosted image
|
|
12208
12227
|
* @param image The image file to upload
|
|
@@ -12214,20 +12233,6 @@ interface HostedImagesBinding {
|
|
|
12214
12233
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12215
12234
|
options?: ImageUploadOptions,
|
|
12216
12235
|
): Promise<ImageMetadata>;
|
|
12217
|
-
/**
|
|
12218
|
-
* Update hosted image metadata
|
|
12219
|
-
* @param imageId The ID of the image
|
|
12220
|
-
* @param options Properties to update
|
|
12221
|
-
* @returns Updated image metadata
|
|
12222
|
-
* @throws {@link ImagesError} if update fails
|
|
12223
|
-
*/
|
|
12224
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12225
|
-
/**
|
|
12226
|
-
* Delete a hosted image
|
|
12227
|
-
* @param imageId The ID of the image
|
|
12228
|
-
* @returns True if deleted, false if not found
|
|
12229
|
-
*/
|
|
12230
|
-
delete(imageId: string): Promise<boolean>;
|
|
12231
12236
|
/**
|
|
12232
12237
|
* List hosted images with pagination
|
|
12233
12238
|
* @param options List configuration
|
package/2022-11-30/index.ts
CHANGED
|
@@ -3775,6 +3775,7 @@ export interface Container {
|
|
|
3775
3775
|
snapshotContainer(
|
|
3776
3776
|
options: ContainerSnapshotOptions,
|
|
3777
3777
|
): Promise<ContainerSnapshot>;
|
|
3778
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3778
3779
|
}
|
|
3779
3780
|
export interface ContainerDirectorySnapshot {
|
|
3780
3781
|
id: string;
|
|
@@ -12206,19 +12207,37 @@ export interface ImageList {
|
|
|
12206
12207
|
cursor?: string;
|
|
12207
12208
|
listComplete: boolean;
|
|
12208
12209
|
}
|
|
12209
|
-
export interface
|
|
12210
|
+
export interface ImageHandle {
|
|
12210
12211
|
/**
|
|
12211
|
-
* Get
|
|
12212
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12212
|
+
* Get metadata for a hosted image
|
|
12213
12213
|
* @returns Image metadata, or null if not found
|
|
12214
12214
|
*/
|
|
12215
|
-
details(
|
|
12215
|
+
details(): Promise<ImageMetadata | null>;
|
|
12216
12216
|
/**
|
|
12217
12217
|
* Get the raw image data for a hosted image
|
|
12218
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12219
12218
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12220
12219
|
*/
|
|
12221
|
-
|
|
12220
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12221
|
+
/**
|
|
12222
|
+
* Update hosted image metadata
|
|
12223
|
+
* @param options Properties to update
|
|
12224
|
+
* @returns Updated image metadata
|
|
12225
|
+
* @throws {@link ImagesError} if update fails
|
|
12226
|
+
*/
|
|
12227
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12228
|
+
/**
|
|
12229
|
+
* Delete a hosted image
|
|
12230
|
+
* @returns True if deleted, false if not found
|
|
12231
|
+
*/
|
|
12232
|
+
delete(): Promise<boolean>;
|
|
12233
|
+
}
|
|
12234
|
+
export interface HostedImagesBinding {
|
|
12235
|
+
/**
|
|
12236
|
+
* Get a handle for a hosted image
|
|
12237
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12238
|
+
* @returns A handle for per-image operations
|
|
12239
|
+
*/
|
|
12240
|
+
image(imageId: string): ImageHandle;
|
|
12222
12241
|
/**
|
|
12223
12242
|
* Upload a new hosted image
|
|
12224
12243
|
* @param image The image file to upload
|
|
@@ -12230,20 +12249,6 @@ export interface HostedImagesBinding {
|
|
|
12230
12249
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12231
12250
|
options?: ImageUploadOptions,
|
|
12232
12251
|
): Promise<ImageMetadata>;
|
|
12233
|
-
/**
|
|
12234
|
-
* Update hosted image metadata
|
|
12235
|
-
* @param imageId The ID of the image
|
|
12236
|
-
* @param options Properties to update
|
|
12237
|
-
* @returns Updated image metadata
|
|
12238
|
-
* @throws {@link ImagesError} if update fails
|
|
12239
|
-
*/
|
|
12240
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12241
|
-
/**
|
|
12242
|
-
* Delete a hosted image
|
|
12243
|
-
* @param imageId The ID of the image
|
|
12244
|
-
* @returns True if deleted, false if not found
|
|
12245
|
-
*/
|
|
12246
|
-
delete(imageId: string): Promise<boolean>;
|
|
12247
12252
|
/**
|
|
12248
12253
|
* List hosted images with pagination
|
|
12249
12254
|
* @param options List configuration
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -3775,6 +3775,7 @@ interface Container {
|
|
|
3775
3775
|
snapshotContainer(
|
|
3776
3776
|
options: ContainerSnapshotOptions,
|
|
3777
3777
|
): Promise<ContainerSnapshot>;
|
|
3778
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3778
3779
|
}
|
|
3779
3780
|
interface ContainerDirectorySnapshot {
|
|
3780
3781
|
id: string;
|
|
@@ -12196,19 +12197,37 @@ interface ImageList {
|
|
|
12196
12197
|
cursor?: string;
|
|
12197
12198
|
listComplete: boolean;
|
|
12198
12199
|
}
|
|
12199
|
-
interface
|
|
12200
|
+
interface ImageHandle {
|
|
12200
12201
|
/**
|
|
12201
|
-
* Get
|
|
12202
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12202
|
+
* Get metadata for a hosted image
|
|
12203
12203
|
* @returns Image metadata, or null if not found
|
|
12204
12204
|
*/
|
|
12205
|
-
details(
|
|
12205
|
+
details(): Promise<ImageMetadata | null>;
|
|
12206
12206
|
/**
|
|
12207
12207
|
* Get the raw image data for a hosted image
|
|
12208
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12209
12208
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12210
12209
|
*/
|
|
12211
|
-
|
|
12210
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12211
|
+
/**
|
|
12212
|
+
* Update hosted image metadata
|
|
12213
|
+
* @param options Properties to update
|
|
12214
|
+
* @returns Updated image metadata
|
|
12215
|
+
* @throws {@link ImagesError} if update fails
|
|
12216
|
+
*/
|
|
12217
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12218
|
+
/**
|
|
12219
|
+
* Delete a hosted image
|
|
12220
|
+
* @returns True if deleted, false if not found
|
|
12221
|
+
*/
|
|
12222
|
+
delete(): Promise<boolean>;
|
|
12223
|
+
}
|
|
12224
|
+
interface HostedImagesBinding {
|
|
12225
|
+
/**
|
|
12226
|
+
* Get a handle for a hosted image
|
|
12227
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12228
|
+
* @returns A handle for per-image operations
|
|
12229
|
+
*/
|
|
12230
|
+
image(imageId: string): ImageHandle;
|
|
12212
12231
|
/**
|
|
12213
12232
|
* Upload a new hosted image
|
|
12214
12233
|
* @param image The image file to upload
|
|
@@ -12220,20 +12239,6 @@ interface HostedImagesBinding {
|
|
|
12220
12239
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12221
12240
|
options?: ImageUploadOptions,
|
|
12222
12241
|
): Promise<ImageMetadata>;
|
|
12223
|
-
/**
|
|
12224
|
-
* Update hosted image metadata
|
|
12225
|
-
* @param imageId The ID of the image
|
|
12226
|
-
* @param options Properties to update
|
|
12227
|
-
* @returns Updated image metadata
|
|
12228
|
-
* @throws {@link ImagesError} if update fails
|
|
12229
|
-
*/
|
|
12230
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12231
|
-
/**
|
|
12232
|
-
* Delete a hosted image
|
|
12233
|
-
* @param imageId The ID of the image
|
|
12234
|
-
* @returns True if deleted, false if not found
|
|
12235
|
-
*/
|
|
12236
|
-
delete(imageId: string): Promise<boolean>;
|
|
12237
12242
|
/**
|
|
12238
12243
|
* List hosted images with pagination
|
|
12239
12244
|
* @param options List configuration
|
package/2023-03-01/index.ts
CHANGED
|
@@ -3781,6 +3781,7 @@ export interface Container {
|
|
|
3781
3781
|
snapshotContainer(
|
|
3782
3782
|
options: ContainerSnapshotOptions,
|
|
3783
3783
|
): Promise<ContainerSnapshot>;
|
|
3784
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3784
3785
|
}
|
|
3785
3786
|
export interface ContainerDirectorySnapshot {
|
|
3786
3787
|
id: string;
|
|
@@ -12212,19 +12213,37 @@ export interface ImageList {
|
|
|
12212
12213
|
cursor?: string;
|
|
12213
12214
|
listComplete: boolean;
|
|
12214
12215
|
}
|
|
12215
|
-
export interface
|
|
12216
|
+
export interface ImageHandle {
|
|
12216
12217
|
/**
|
|
12217
|
-
* Get
|
|
12218
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12218
|
+
* Get metadata for a hosted image
|
|
12219
12219
|
* @returns Image metadata, or null if not found
|
|
12220
12220
|
*/
|
|
12221
|
-
details(
|
|
12221
|
+
details(): Promise<ImageMetadata | null>;
|
|
12222
12222
|
/**
|
|
12223
12223
|
* Get the raw image data for a hosted image
|
|
12224
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12225
12224
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12226
12225
|
*/
|
|
12227
|
-
|
|
12226
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12227
|
+
/**
|
|
12228
|
+
* Update hosted image metadata
|
|
12229
|
+
* @param options Properties to update
|
|
12230
|
+
* @returns Updated image metadata
|
|
12231
|
+
* @throws {@link ImagesError} if update fails
|
|
12232
|
+
*/
|
|
12233
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12234
|
+
/**
|
|
12235
|
+
* Delete a hosted image
|
|
12236
|
+
* @returns True if deleted, false if not found
|
|
12237
|
+
*/
|
|
12238
|
+
delete(): Promise<boolean>;
|
|
12239
|
+
}
|
|
12240
|
+
export interface HostedImagesBinding {
|
|
12241
|
+
/**
|
|
12242
|
+
* Get a handle for a hosted image
|
|
12243
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12244
|
+
* @returns A handle for per-image operations
|
|
12245
|
+
*/
|
|
12246
|
+
image(imageId: string): ImageHandle;
|
|
12228
12247
|
/**
|
|
12229
12248
|
* Upload a new hosted image
|
|
12230
12249
|
* @param image The image file to upload
|
|
@@ -12236,20 +12255,6 @@ export interface HostedImagesBinding {
|
|
|
12236
12255
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12237
12256
|
options?: ImageUploadOptions,
|
|
12238
12257
|
): Promise<ImageMetadata>;
|
|
12239
|
-
/**
|
|
12240
|
-
* Update hosted image metadata
|
|
12241
|
-
* @param imageId The ID of the image
|
|
12242
|
-
* @param options Properties to update
|
|
12243
|
-
* @returns Updated image metadata
|
|
12244
|
-
* @throws {@link ImagesError} if update fails
|
|
12245
|
-
*/
|
|
12246
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12247
|
-
/**
|
|
12248
|
-
* Delete a hosted image
|
|
12249
|
-
* @param imageId The ID of the image
|
|
12250
|
-
* @returns True if deleted, false if not found
|
|
12251
|
-
*/
|
|
12252
|
-
delete(imageId: string): Promise<boolean>;
|
|
12253
12258
|
/**
|
|
12254
12259
|
* List hosted images with pagination
|
|
12255
12260
|
* @param options List configuration
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -3775,6 +3775,7 @@ interface Container {
|
|
|
3775
3775
|
snapshotContainer(
|
|
3776
3776
|
options: ContainerSnapshotOptions,
|
|
3777
3777
|
): Promise<ContainerSnapshot>;
|
|
3778
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3778
3779
|
}
|
|
3779
3780
|
interface ContainerDirectorySnapshot {
|
|
3780
3781
|
id: string;
|
|
@@ -12196,19 +12197,37 @@ interface ImageList {
|
|
|
12196
12197
|
cursor?: string;
|
|
12197
12198
|
listComplete: boolean;
|
|
12198
12199
|
}
|
|
12199
|
-
interface
|
|
12200
|
+
interface ImageHandle {
|
|
12200
12201
|
/**
|
|
12201
|
-
* Get
|
|
12202
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12202
|
+
* Get metadata for a hosted image
|
|
12203
12203
|
* @returns Image metadata, or null if not found
|
|
12204
12204
|
*/
|
|
12205
|
-
details(
|
|
12205
|
+
details(): Promise<ImageMetadata | null>;
|
|
12206
12206
|
/**
|
|
12207
12207
|
* Get the raw image data for a hosted image
|
|
12208
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12209
12208
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12210
12209
|
*/
|
|
12211
|
-
|
|
12210
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12211
|
+
/**
|
|
12212
|
+
* Update hosted image metadata
|
|
12213
|
+
* @param options Properties to update
|
|
12214
|
+
* @returns Updated image metadata
|
|
12215
|
+
* @throws {@link ImagesError} if update fails
|
|
12216
|
+
*/
|
|
12217
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12218
|
+
/**
|
|
12219
|
+
* Delete a hosted image
|
|
12220
|
+
* @returns True if deleted, false if not found
|
|
12221
|
+
*/
|
|
12222
|
+
delete(): Promise<boolean>;
|
|
12223
|
+
}
|
|
12224
|
+
interface HostedImagesBinding {
|
|
12225
|
+
/**
|
|
12226
|
+
* Get a handle for a hosted image
|
|
12227
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12228
|
+
* @returns A handle for per-image operations
|
|
12229
|
+
*/
|
|
12230
|
+
image(imageId: string): ImageHandle;
|
|
12212
12231
|
/**
|
|
12213
12232
|
* Upload a new hosted image
|
|
12214
12233
|
* @param image The image file to upload
|
|
@@ -12220,20 +12239,6 @@ interface HostedImagesBinding {
|
|
|
12220
12239
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12221
12240
|
options?: ImageUploadOptions,
|
|
12222
12241
|
): Promise<ImageMetadata>;
|
|
12223
|
-
/**
|
|
12224
|
-
* Update hosted image metadata
|
|
12225
|
-
* @param imageId The ID of the image
|
|
12226
|
-
* @param options Properties to update
|
|
12227
|
-
* @returns Updated image metadata
|
|
12228
|
-
* @throws {@link ImagesError} if update fails
|
|
12229
|
-
*/
|
|
12230
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12231
|
-
/**
|
|
12232
|
-
* Delete a hosted image
|
|
12233
|
-
* @param imageId The ID of the image
|
|
12234
|
-
* @returns True if deleted, false if not found
|
|
12235
|
-
*/
|
|
12236
|
-
delete(imageId: string): Promise<boolean>;
|
|
12237
12242
|
/**
|
|
12238
12243
|
* List hosted images with pagination
|
|
12239
12244
|
* @param options List configuration
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3781,6 +3781,7 @@ export interface Container {
|
|
|
3781
3781
|
snapshotContainer(
|
|
3782
3782
|
options: ContainerSnapshotOptions,
|
|
3783
3783
|
): Promise<ContainerSnapshot>;
|
|
3784
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3784
3785
|
}
|
|
3785
3786
|
export interface ContainerDirectorySnapshot {
|
|
3786
3787
|
id: string;
|
|
@@ -12212,19 +12213,37 @@ export interface ImageList {
|
|
|
12212
12213
|
cursor?: string;
|
|
12213
12214
|
listComplete: boolean;
|
|
12214
12215
|
}
|
|
12215
|
-
export interface
|
|
12216
|
+
export interface ImageHandle {
|
|
12216
12217
|
/**
|
|
12217
|
-
* Get
|
|
12218
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12218
|
+
* Get metadata for a hosted image
|
|
12219
12219
|
* @returns Image metadata, or null if not found
|
|
12220
12220
|
*/
|
|
12221
|
-
details(
|
|
12221
|
+
details(): Promise<ImageMetadata | null>;
|
|
12222
12222
|
/**
|
|
12223
12223
|
* Get the raw image data for a hosted image
|
|
12224
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12225
12224
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12226
12225
|
*/
|
|
12227
|
-
|
|
12226
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12227
|
+
/**
|
|
12228
|
+
* Update hosted image metadata
|
|
12229
|
+
* @param options Properties to update
|
|
12230
|
+
* @returns Updated image metadata
|
|
12231
|
+
* @throws {@link ImagesError} if update fails
|
|
12232
|
+
*/
|
|
12233
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12234
|
+
/**
|
|
12235
|
+
* Delete a hosted image
|
|
12236
|
+
* @returns True if deleted, false if not found
|
|
12237
|
+
*/
|
|
12238
|
+
delete(): Promise<boolean>;
|
|
12239
|
+
}
|
|
12240
|
+
export interface HostedImagesBinding {
|
|
12241
|
+
/**
|
|
12242
|
+
* Get a handle for a hosted image
|
|
12243
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12244
|
+
* @returns A handle for per-image operations
|
|
12245
|
+
*/
|
|
12246
|
+
image(imageId: string): ImageHandle;
|
|
12228
12247
|
/**
|
|
12229
12248
|
* Upload a new hosted image
|
|
12230
12249
|
* @param image The image file to upload
|
|
@@ -12236,20 +12255,6 @@ export interface HostedImagesBinding {
|
|
|
12236
12255
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12237
12256
|
options?: ImageUploadOptions,
|
|
12238
12257
|
): Promise<ImageMetadata>;
|
|
12239
|
-
/**
|
|
12240
|
-
* Update hosted image metadata
|
|
12241
|
-
* @param imageId The ID of the image
|
|
12242
|
-
* @param options Properties to update
|
|
12243
|
-
* @returns Updated image metadata
|
|
12244
|
-
* @throws {@link ImagesError} if update fails
|
|
12245
|
-
*/
|
|
12246
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12247
|
-
/**
|
|
12248
|
-
* Delete a hosted image
|
|
12249
|
-
* @param imageId The ID of the image
|
|
12250
|
-
* @returns True if deleted, false if not found
|
|
12251
|
-
*/
|
|
12252
|
-
delete(imageId: string): Promise<boolean>;
|
|
12253
12258
|
/**
|
|
12254
12259
|
* List hosted images with pagination
|
|
12255
12260
|
* @param options List configuration
|
package/experimental/index.d.ts
CHANGED
|
@@ -2409,7 +2409,7 @@ interface Queue<Body = unknown> {
|
|
|
2409
2409
|
interface QueueSendMetrics {
|
|
2410
2410
|
backlogCount: number;
|
|
2411
2411
|
backlogBytes: number;
|
|
2412
|
-
oldestMessageTimestamp
|
|
2412
|
+
oldestMessageTimestamp?: Date;
|
|
2413
2413
|
}
|
|
2414
2414
|
interface QueueSendMetadata {
|
|
2415
2415
|
metrics: QueueSendMetrics;
|
|
@@ -2420,7 +2420,7 @@ interface QueueSendResponse {
|
|
|
2420
2420
|
interface QueueSendBatchMetrics {
|
|
2421
2421
|
backlogCount: number;
|
|
2422
2422
|
backlogBytes: number;
|
|
2423
|
-
oldestMessageTimestamp
|
|
2423
|
+
oldestMessageTimestamp?: Date;
|
|
2424
2424
|
}
|
|
2425
2425
|
interface QueueSendBatchMetadata {
|
|
2426
2426
|
metrics: QueueSendBatchMetrics;
|
|
@@ -2443,12 +2443,12 @@ interface MessageSendRequest<Body = unknown> {
|
|
|
2443
2443
|
interface QueueMetrics {
|
|
2444
2444
|
backlogCount: number;
|
|
2445
2445
|
backlogBytes: number;
|
|
2446
|
-
oldestMessageTimestamp
|
|
2446
|
+
oldestMessageTimestamp?: Date;
|
|
2447
2447
|
}
|
|
2448
2448
|
interface MessageBatchMetrics {
|
|
2449
2449
|
backlogCount: number;
|
|
2450
2450
|
backlogBytes: number;
|
|
2451
|
-
oldestMessageTimestamp
|
|
2451
|
+
oldestMessageTimestamp?: Date;
|
|
2452
2452
|
}
|
|
2453
2453
|
interface MessageBatchMetadata {
|
|
2454
2454
|
metrics: MessageBatchMetrics;
|
|
@@ -3933,6 +3933,28 @@ interface EventSourceEventSourceInit {
|
|
|
3933
3933
|
withCredentials?: boolean;
|
|
3934
3934
|
fetcher?: Fetcher;
|
|
3935
3935
|
}
|
|
3936
|
+
interface ExecOutput {
|
|
3937
|
+
readonly stdout: ArrayBuffer;
|
|
3938
|
+
readonly stderr: ArrayBuffer;
|
|
3939
|
+
readonly exitCode: number;
|
|
3940
|
+
}
|
|
3941
|
+
interface ContainerExecOptions {
|
|
3942
|
+
cwd?: string;
|
|
3943
|
+
env?: Record<string, string>;
|
|
3944
|
+
user?: string;
|
|
3945
|
+
stdin?: ReadableStream | "pipe";
|
|
3946
|
+
stdout?: "pipe" | "ignore";
|
|
3947
|
+
stderr?: "pipe" | "ignore" | "combined";
|
|
3948
|
+
}
|
|
3949
|
+
interface ExecProcess {
|
|
3950
|
+
readonly stdin: WritableStream | null;
|
|
3951
|
+
readonly stdout: ReadableStream | null;
|
|
3952
|
+
readonly stderr: ReadableStream | null;
|
|
3953
|
+
readonly pid: number;
|
|
3954
|
+
readonly exitCode: Promise<number>;
|
|
3955
|
+
output(): Promise<ExecOutput>;
|
|
3956
|
+
kill(signal?: number): void;
|
|
3957
|
+
}
|
|
3936
3958
|
interface Container {
|
|
3937
3959
|
get running(): boolean;
|
|
3938
3960
|
start(options?: ContainerStartupOptions): void;
|
|
@@ -3950,6 +3972,8 @@ interface Container {
|
|
|
3950
3972
|
options: ContainerSnapshotOptions,
|
|
3951
3973
|
): Promise<ContainerSnapshot>;
|
|
3952
3974
|
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3975
|
+
exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
|
|
3976
|
+
interceptOutboundTcp(addr: string, binding: Fetcher): Promise<void>;
|
|
3953
3977
|
}
|
|
3954
3978
|
interface ContainerDirectorySnapshot {
|
|
3955
3979
|
id: string;
|
|
@@ -12924,19 +12948,37 @@ interface ImageList {
|
|
|
12924
12948
|
cursor?: string;
|
|
12925
12949
|
listComplete: boolean;
|
|
12926
12950
|
}
|
|
12927
|
-
interface
|
|
12951
|
+
interface ImageHandle {
|
|
12928
12952
|
/**
|
|
12929
|
-
* Get
|
|
12930
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12953
|
+
* Get metadata for a hosted image
|
|
12931
12954
|
* @returns Image metadata, or null if not found
|
|
12932
12955
|
*/
|
|
12933
|
-
details(
|
|
12956
|
+
details(): Promise<ImageMetadata | null>;
|
|
12934
12957
|
/**
|
|
12935
12958
|
* Get the raw image data for a hosted image
|
|
12936
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12937
12959
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12938
12960
|
*/
|
|
12939
|
-
|
|
12961
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12962
|
+
/**
|
|
12963
|
+
* Update hosted image metadata
|
|
12964
|
+
* @param options Properties to update
|
|
12965
|
+
* @returns Updated image metadata
|
|
12966
|
+
* @throws {@link ImagesError} if update fails
|
|
12967
|
+
*/
|
|
12968
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12969
|
+
/**
|
|
12970
|
+
* Delete a hosted image
|
|
12971
|
+
* @returns True if deleted, false if not found
|
|
12972
|
+
*/
|
|
12973
|
+
delete(): Promise<boolean>;
|
|
12974
|
+
}
|
|
12975
|
+
interface HostedImagesBinding {
|
|
12976
|
+
/**
|
|
12977
|
+
* Get a handle for a hosted image
|
|
12978
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12979
|
+
* @returns A handle for per-image operations
|
|
12980
|
+
*/
|
|
12981
|
+
image(imageId: string): ImageHandle;
|
|
12940
12982
|
/**
|
|
12941
12983
|
* Upload a new hosted image
|
|
12942
12984
|
* @param image The image file to upload
|
|
@@ -12948,20 +12990,6 @@ interface HostedImagesBinding {
|
|
|
12948
12990
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12949
12991
|
options?: ImageUploadOptions,
|
|
12950
12992
|
): Promise<ImageMetadata>;
|
|
12951
|
-
/**
|
|
12952
|
-
* Update hosted image metadata
|
|
12953
|
-
* @param imageId The ID of the image
|
|
12954
|
-
* @param options Properties to update
|
|
12955
|
-
* @returns Updated image metadata
|
|
12956
|
-
* @throws {@link ImagesError} if update fails
|
|
12957
|
-
*/
|
|
12958
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12959
|
-
/**
|
|
12960
|
-
* Delete a hosted image
|
|
12961
|
-
* @param imageId The ID of the image
|
|
12962
|
-
* @returns True if deleted, false if not found
|
|
12963
|
-
*/
|
|
12964
|
-
delete(imageId: string): Promise<boolean>;
|
|
12965
12993
|
/**
|
|
12966
12994
|
* List hosted images with pagination
|
|
12967
12995
|
* @param options List configuration
|