@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/2021-11-03/index.d.ts
CHANGED
|
@@ -3668,6 +3668,7 @@ interface Container {
|
|
|
3668
3668
|
snapshotContainer(
|
|
3669
3669
|
options: ContainerSnapshotOptions,
|
|
3670
3670
|
): Promise<ContainerSnapshot>;
|
|
3671
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3671
3672
|
}
|
|
3672
3673
|
interface ContainerDirectorySnapshot {
|
|
3673
3674
|
id: string;
|
|
@@ -12089,19 +12090,37 @@ interface ImageList {
|
|
|
12089
12090
|
cursor?: string;
|
|
12090
12091
|
listComplete: boolean;
|
|
12091
12092
|
}
|
|
12092
|
-
interface
|
|
12093
|
+
interface ImageHandle {
|
|
12093
12094
|
/**
|
|
12094
|
-
* Get
|
|
12095
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12095
|
+
* Get metadata for a hosted image
|
|
12096
12096
|
* @returns Image metadata, or null if not found
|
|
12097
12097
|
*/
|
|
12098
|
-
details(
|
|
12098
|
+
details(): Promise<ImageMetadata | null>;
|
|
12099
12099
|
/**
|
|
12100
12100
|
* Get the raw image data for a hosted image
|
|
12101
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12102
12101
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12103
12102
|
*/
|
|
12104
|
-
|
|
12103
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12104
|
+
/**
|
|
12105
|
+
* Update hosted image metadata
|
|
12106
|
+
* @param options Properties to update
|
|
12107
|
+
* @returns Updated image metadata
|
|
12108
|
+
* @throws {@link ImagesError} if update fails
|
|
12109
|
+
*/
|
|
12110
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12111
|
+
/**
|
|
12112
|
+
* Delete a hosted image
|
|
12113
|
+
* @returns True if deleted, false if not found
|
|
12114
|
+
*/
|
|
12115
|
+
delete(): Promise<boolean>;
|
|
12116
|
+
}
|
|
12117
|
+
interface HostedImagesBinding {
|
|
12118
|
+
/**
|
|
12119
|
+
* Get a handle for a hosted image
|
|
12120
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12121
|
+
* @returns A handle for per-image operations
|
|
12122
|
+
*/
|
|
12123
|
+
image(imageId: string): ImageHandle;
|
|
12105
12124
|
/**
|
|
12106
12125
|
* Upload a new hosted image
|
|
12107
12126
|
* @param image The image file to upload
|
|
@@ -12113,20 +12132,6 @@ interface HostedImagesBinding {
|
|
|
12113
12132
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12114
12133
|
options?: ImageUploadOptions,
|
|
12115
12134
|
): Promise<ImageMetadata>;
|
|
12116
|
-
/**
|
|
12117
|
-
* Update hosted image metadata
|
|
12118
|
-
* @param imageId The ID of the image
|
|
12119
|
-
* @param options Properties to update
|
|
12120
|
-
* @returns Updated image metadata
|
|
12121
|
-
* @throws {@link ImagesError} if update fails
|
|
12122
|
-
*/
|
|
12123
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12124
|
-
/**
|
|
12125
|
-
* Delete a hosted image
|
|
12126
|
-
* @param imageId The ID of the image
|
|
12127
|
-
* @returns True if deleted, false if not found
|
|
12128
|
-
*/
|
|
12129
|
-
delete(imageId: string): Promise<boolean>;
|
|
12130
12135
|
/**
|
|
12131
12136
|
* List hosted images with pagination
|
|
12132
12137
|
* @param options List configuration
|
package/2021-11-03/index.ts
CHANGED
|
@@ -3674,6 +3674,7 @@ export interface Container {
|
|
|
3674
3674
|
snapshotContainer(
|
|
3675
3675
|
options: ContainerSnapshotOptions,
|
|
3676
3676
|
): Promise<ContainerSnapshot>;
|
|
3677
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3677
3678
|
}
|
|
3678
3679
|
export interface ContainerDirectorySnapshot {
|
|
3679
3680
|
id: string;
|
|
@@ -12105,19 +12106,37 @@ export interface ImageList {
|
|
|
12105
12106
|
cursor?: string;
|
|
12106
12107
|
listComplete: boolean;
|
|
12107
12108
|
}
|
|
12108
|
-
export interface
|
|
12109
|
+
export interface ImageHandle {
|
|
12109
12110
|
/**
|
|
12110
|
-
* Get
|
|
12111
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12111
|
+
* Get metadata for a hosted image
|
|
12112
12112
|
* @returns Image metadata, or null if not found
|
|
12113
12113
|
*/
|
|
12114
|
-
details(
|
|
12114
|
+
details(): Promise<ImageMetadata | null>;
|
|
12115
12115
|
/**
|
|
12116
12116
|
* Get the raw image data for a hosted image
|
|
12117
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12118
12117
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12119
12118
|
*/
|
|
12120
|
-
|
|
12119
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12120
|
+
/**
|
|
12121
|
+
* Update hosted image metadata
|
|
12122
|
+
* @param options Properties to update
|
|
12123
|
+
* @returns Updated image metadata
|
|
12124
|
+
* @throws {@link ImagesError} if update fails
|
|
12125
|
+
*/
|
|
12126
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12127
|
+
/**
|
|
12128
|
+
* Delete a hosted image
|
|
12129
|
+
* @returns True if deleted, false if not found
|
|
12130
|
+
*/
|
|
12131
|
+
delete(): Promise<boolean>;
|
|
12132
|
+
}
|
|
12133
|
+
export interface HostedImagesBinding {
|
|
12134
|
+
/**
|
|
12135
|
+
* Get a handle for a hosted image
|
|
12136
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12137
|
+
* @returns A handle for per-image operations
|
|
12138
|
+
*/
|
|
12139
|
+
image(imageId: string): ImageHandle;
|
|
12121
12140
|
/**
|
|
12122
12141
|
* Upload a new hosted image
|
|
12123
12142
|
* @param image The image file to upload
|
|
@@ -12129,20 +12148,6 @@ export interface HostedImagesBinding {
|
|
|
12129
12148
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12130
12149
|
options?: ImageUploadOptions,
|
|
12131
12150
|
): Promise<ImageMetadata>;
|
|
12132
|
-
/**
|
|
12133
|
-
* Update hosted image metadata
|
|
12134
|
-
* @param imageId The ID of the image
|
|
12135
|
-
* @param options Properties to update
|
|
12136
|
-
* @returns Updated image metadata
|
|
12137
|
-
* @throws {@link ImagesError} if update fails
|
|
12138
|
-
*/
|
|
12139
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12140
|
-
/**
|
|
12141
|
-
* Delete a hosted image
|
|
12142
|
-
* @param imageId The ID of the image
|
|
12143
|
-
* @returns True if deleted, false if not found
|
|
12144
|
-
*/
|
|
12145
|
-
delete(imageId: string): Promise<boolean>;
|
|
12146
12151
|
/**
|
|
12147
12152
|
* List hosted images with pagination
|
|
12148
12153
|
* @param options List configuration
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -3735,6 +3735,7 @@ interface Container {
|
|
|
3735
3735
|
snapshotContainer(
|
|
3736
3736
|
options: ContainerSnapshotOptions,
|
|
3737
3737
|
): Promise<ContainerSnapshot>;
|
|
3738
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3738
3739
|
}
|
|
3739
3740
|
interface ContainerDirectorySnapshot {
|
|
3740
3741
|
id: string;
|
|
@@ -12156,19 +12157,37 @@ interface ImageList {
|
|
|
12156
12157
|
cursor?: string;
|
|
12157
12158
|
listComplete: boolean;
|
|
12158
12159
|
}
|
|
12159
|
-
interface
|
|
12160
|
+
interface ImageHandle {
|
|
12160
12161
|
/**
|
|
12161
|
-
* Get
|
|
12162
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12162
|
+
* Get metadata for a hosted image
|
|
12163
12163
|
* @returns Image metadata, or null if not found
|
|
12164
12164
|
*/
|
|
12165
|
-
details(
|
|
12165
|
+
details(): Promise<ImageMetadata | null>;
|
|
12166
12166
|
/**
|
|
12167
12167
|
* Get the raw image data for a hosted image
|
|
12168
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12169
12168
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12170
12169
|
*/
|
|
12171
|
-
|
|
12170
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12171
|
+
/**
|
|
12172
|
+
* Update hosted image metadata
|
|
12173
|
+
* @param options Properties to update
|
|
12174
|
+
* @returns Updated image metadata
|
|
12175
|
+
* @throws {@link ImagesError} if update fails
|
|
12176
|
+
*/
|
|
12177
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12178
|
+
/**
|
|
12179
|
+
* Delete a hosted image
|
|
12180
|
+
* @returns True if deleted, false if not found
|
|
12181
|
+
*/
|
|
12182
|
+
delete(): Promise<boolean>;
|
|
12183
|
+
}
|
|
12184
|
+
interface HostedImagesBinding {
|
|
12185
|
+
/**
|
|
12186
|
+
* Get a handle for a hosted image
|
|
12187
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12188
|
+
* @returns A handle for per-image operations
|
|
12189
|
+
*/
|
|
12190
|
+
image(imageId: string): ImageHandle;
|
|
12172
12191
|
/**
|
|
12173
12192
|
* Upload a new hosted image
|
|
12174
12193
|
* @param image The image file to upload
|
|
@@ -12180,20 +12199,6 @@ interface HostedImagesBinding {
|
|
|
12180
12199
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12181
12200
|
options?: ImageUploadOptions,
|
|
12182
12201
|
): Promise<ImageMetadata>;
|
|
12183
|
-
/**
|
|
12184
|
-
* Update hosted image metadata
|
|
12185
|
-
* @param imageId The ID of the image
|
|
12186
|
-
* @param options Properties to update
|
|
12187
|
-
* @returns Updated image metadata
|
|
12188
|
-
* @throws {@link ImagesError} if update fails
|
|
12189
|
-
*/
|
|
12190
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12191
|
-
/**
|
|
12192
|
-
* Delete a hosted image
|
|
12193
|
-
* @param imageId The ID of the image
|
|
12194
|
-
* @returns True if deleted, false if not found
|
|
12195
|
-
*/
|
|
12196
|
-
delete(imageId: string): Promise<boolean>;
|
|
12197
12202
|
/**
|
|
12198
12203
|
* List hosted images with pagination
|
|
12199
12204
|
* @param options List configuration
|
package/2022-01-31/index.ts
CHANGED
|
@@ -3741,6 +3741,7 @@ export interface Container {
|
|
|
3741
3741
|
snapshotContainer(
|
|
3742
3742
|
options: ContainerSnapshotOptions,
|
|
3743
3743
|
): Promise<ContainerSnapshot>;
|
|
3744
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3744
3745
|
}
|
|
3745
3746
|
export interface ContainerDirectorySnapshot {
|
|
3746
3747
|
id: string;
|
|
@@ -12172,19 +12173,37 @@ export interface ImageList {
|
|
|
12172
12173
|
cursor?: string;
|
|
12173
12174
|
listComplete: boolean;
|
|
12174
12175
|
}
|
|
12175
|
-
export interface
|
|
12176
|
+
export interface ImageHandle {
|
|
12176
12177
|
/**
|
|
12177
|
-
* Get
|
|
12178
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12178
|
+
* Get metadata for a hosted image
|
|
12179
12179
|
* @returns Image metadata, or null if not found
|
|
12180
12180
|
*/
|
|
12181
|
-
details(
|
|
12181
|
+
details(): Promise<ImageMetadata | null>;
|
|
12182
12182
|
/**
|
|
12183
12183
|
* Get the raw image data for a hosted image
|
|
12184
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12185
12184
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12186
12185
|
*/
|
|
12187
|
-
|
|
12186
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12187
|
+
/**
|
|
12188
|
+
* Update hosted image metadata
|
|
12189
|
+
* @param options Properties to update
|
|
12190
|
+
* @returns Updated image metadata
|
|
12191
|
+
* @throws {@link ImagesError} if update fails
|
|
12192
|
+
*/
|
|
12193
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12194
|
+
/**
|
|
12195
|
+
* Delete a hosted image
|
|
12196
|
+
* @returns True if deleted, false if not found
|
|
12197
|
+
*/
|
|
12198
|
+
delete(): Promise<boolean>;
|
|
12199
|
+
}
|
|
12200
|
+
export interface HostedImagesBinding {
|
|
12201
|
+
/**
|
|
12202
|
+
* Get a handle for a hosted image
|
|
12203
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12204
|
+
* @returns A handle for per-image operations
|
|
12205
|
+
*/
|
|
12206
|
+
image(imageId: string): ImageHandle;
|
|
12188
12207
|
/**
|
|
12189
12208
|
* Upload a new hosted image
|
|
12190
12209
|
* @param image The image file to upload
|
|
@@ -12196,20 +12215,6 @@ export interface HostedImagesBinding {
|
|
|
12196
12215
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12197
12216
|
options?: ImageUploadOptions,
|
|
12198
12217
|
): Promise<ImageMetadata>;
|
|
12199
|
-
/**
|
|
12200
|
-
* Update hosted image metadata
|
|
12201
|
-
* @param imageId The ID of the image
|
|
12202
|
-
* @param options Properties to update
|
|
12203
|
-
* @returns Updated image metadata
|
|
12204
|
-
* @throws {@link ImagesError} if update fails
|
|
12205
|
-
*/
|
|
12206
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12207
|
-
/**
|
|
12208
|
-
* Delete a hosted image
|
|
12209
|
-
* @param imageId The ID of the image
|
|
12210
|
-
* @returns True if deleted, false if not found
|
|
12211
|
-
*/
|
|
12212
|
-
delete(imageId: string): Promise<boolean>;
|
|
12213
12218
|
/**
|
|
12214
12219
|
* List hosted images with pagination
|
|
12215
12220
|
* @param options List configuration
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -3743,6 +3743,7 @@ interface Container {
|
|
|
3743
3743
|
snapshotContainer(
|
|
3744
3744
|
options: ContainerSnapshotOptions,
|
|
3745
3745
|
): Promise<ContainerSnapshot>;
|
|
3746
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3746
3747
|
}
|
|
3747
3748
|
interface ContainerDirectorySnapshot {
|
|
3748
3749
|
id: string;
|
|
@@ -12164,19 +12165,37 @@ interface ImageList {
|
|
|
12164
12165
|
cursor?: string;
|
|
12165
12166
|
listComplete: boolean;
|
|
12166
12167
|
}
|
|
12167
|
-
interface
|
|
12168
|
+
interface ImageHandle {
|
|
12168
12169
|
/**
|
|
12169
|
-
* Get
|
|
12170
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12170
|
+
* Get metadata for a hosted image
|
|
12171
12171
|
* @returns Image metadata, or null if not found
|
|
12172
12172
|
*/
|
|
12173
|
-
details(
|
|
12173
|
+
details(): Promise<ImageMetadata | null>;
|
|
12174
12174
|
/**
|
|
12175
12175
|
* Get the raw image data for a hosted image
|
|
12176
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12177
12176
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12178
12177
|
*/
|
|
12179
|
-
|
|
12178
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12179
|
+
/**
|
|
12180
|
+
* Update hosted image metadata
|
|
12181
|
+
* @param options Properties to update
|
|
12182
|
+
* @returns Updated image metadata
|
|
12183
|
+
* @throws {@link ImagesError} if update fails
|
|
12184
|
+
*/
|
|
12185
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12186
|
+
/**
|
|
12187
|
+
* Delete a hosted image
|
|
12188
|
+
* @returns True if deleted, false if not found
|
|
12189
|
+
*/
|
|
12190
|
+
delete(): Promise<boolean>;
|
|
12191
|
+
}
|
|
12192
|
+
interface HostedImagesBinding {
|
|
12193
|
+
/**
|
|
12194
|
+
* Get a handle for a hosted image
|
|
12195
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12196
|
+
* @returns A handle for per-image operations
|
|
12197
|
+
*/
|
|
12198
|
+
image(imageId: string): ImageHandle;
|
|
12180
12199
|
/**
|
|
12181
12200
|
* Upload a new hosted image
|
|
12182
12201
|
* @param image The image file to upload
|
|
@@ -12188,20 +12207,6 @@ interface HostedImagesBinding {
|
|
|
12188
12207
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12189
12208
|
options?: ImageUploadOptions,
|
|
12190
12209
|
): Promise<ImageMetadata>;
|
|
12191
|
-
/**
|
|
12192
|
-
* Update hosted image metadata
|
|
12193
|
-
* @param imageId The ID of the image
|
|
12194
|
-
* @param options Properties to update
|
|
12195
|
-
* @returns Updated image metadata
|
|
12196
|
-
* @throws {@link ImagesError} if update fails
|
|
12197
|
-
*/
|
|
12198
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12199
|
-
/**
|
|
12200
|
-
* Delete a hosted image
|
|
12201
|
-
* @param imageId The ID of the image
|
|
12202
|
-
* @returns True if deleted, false if not found
|
|
12203
|
-
*/
|
|
12204
|
-
delete(imageId: string): Promise<boolean>;
|
|
12205
12210
|
/**
|
|
12206
12211
|
* List hosted images with pagination
|
|
12207
12212
|
* @param options List configuration
|
package/2022-03-21/index.ts
CHANGED
|
@@ -3749,6 +3749,7 @@ export interface Container {
|
|
|
3749
3749
|
snapshotContainer(
|
|
3750
3750
|
options: ContainerSnapshotOptions,
|
|
3751
3751
|
): Promise<ContainerSnapshot>;
|
|
3752
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3752
3753
|
}
|
|
3753
3754
|
export interface ContainerDirectorySnapshot {
|
|
3754
3755
|
id: string;
|
|
@@ -12180,19 +12181,37 @@ export interface ImageList {
|
|
|
12180
12181
|
cursor?: string;
|
|
12181
12182
|
listComplete: boolean;
|
|
12182
12183
|
}
|
|
12183
|
-
export interface
|
|
12184
|
+
export interface ImageHandle {
|
|
12184
12185
|
/**
|
|
12185
|
-
* Get
|
|
12186
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12186
|
+
* Get metadata for a hosted image
|
|
12187
12187
|
* @returns Image metadata, or null if not found
|
|
12188
12188
|
*/
|
|
12189
|
-
details(
|
|
12189
|
+
details(): Promise<ImageMetadata | null>;
|
|
12190
12190
|
/**
|
|
12191
12191
|
* Get the raw image data for a hosted image
|
|
12192
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12193
12192
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12194
12193
|
*/
|
|
12195
|
-
|
|
12194
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12195
|
+
/**
|
|
12196
|
+
* Update hosted image metadata
|
|
12197
|
+
* @param options Properties to update
|
|
12198
|
+
* @returns Updated image metadata
|
|
12199
|
+
* @throws {@link ImagesError} if update fails
|
|
12200
|
+
*/
|
|
12201
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12202
|
+
/**
|
|
12203
|
+
* Delete a hosted image
|
|
12204
|
+
* @returns True if deleted, false if not found
|
|
12205
|
+
*/
|
|
12206
|
+
delete(): Promise<boolean>;
|
|
12207
|
+
}
|
|
12208
|
+
export interface HostedImagesBinding {
|
|
12209
|
+
/**
|
|
12210
|
+
* Get a handle for a hosted image
|
|
12211
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12212
|
+
* @returns A handle for per-image operations
|
|
12213
|
+
*/
|
|
12214
|
+
image(imageId: string): ImageHandle;
|
|
12196
12215
|
/**
|
|
12197
12216
|
* Upload a new hosted image
|
|
12198
12217
|
* @param image The image file to upload
|
|
@@ -12204,20 +12223,6 @@ export interface HostedImagesBinding {
|
|
|
12204
12223
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12205
12224
|
options?: ImageUploadOptions,
|
|
12206
12225
|
): Promise<ImageMetadata>;
|
|
12207
|
-
/**
|
|
12208
|
-
* Update hosted image metadata
|
|
12209
|
-
* @param imageId The ID of the image
|
|
12210
|
-
* @param options Properties to update
|
|
12211
|
-
* @returns Updated image metadata
|
|
12212
|
-
* @throws {@link ImagesError} if update fails
|
|
12213
|
-
*/
|
|
12214
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12215
|
-
/**
|
|
12216
|
-
* Delete a hosted image
|
|
12217
|
-
* @param imageId The ID of the image
|
|
12218
|
-
* @returns True if deleted, false if not found
|
|
12219
|
-
*/
|
|
12220
|
-
delete(imageId: string): Promise<boolean>;
|
|
12221
12226
|
/**
|
|
12222
12227
|
* List hosted images with pagination
|
|
12223
12228
|
* @param options List configuration
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -3744,6 +3744,7 @@ interface Container {
|
|
|
3744
3744
|
snapshotContainer(
|
|
3745
3745
|
options: ContainerSnapshotOptions,
|
|
3746
3746
|
): Promise<ContainerSnapshot>;
|
|
3747
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3747
3748
|
}
|
|
3748
3749
|
interface ContainerDirectorySnapshot {
|
|
3749
3750
|
id: string;
|
|
@@ -12165,19 +12166,37 @@ interface ImageList {
|
|
|
12165
12166
|
cursor?: string;
|
|
12166
12167
|
listComplete: boolean;
|
|
12167
12168
|
}
|
|
12168
|
-
interface
|
|
12169
|
+
interface ImageHandle {
|
|
12169
12170
|
/**
|
|
12170
|
-
* Get
|
|
12171
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12171
|
+
* Get metadata for a hosted image
|
|
12172
12172
|
* @returns Image metadata, or null if not found
|
|
12173
12173
|
*/
|
|
12174
|
-
details(
|
|
12174
|
+
details(): Promise<ImageMetadata | null>;
|
|
12175
12175
|
/**
|
|
12176
12176
|
* Get the raw image data for a hosted image
|
|
12177
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12178
12177
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12179
12178
|
*/
|
|
12180
|
-
|
|
12179
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12180
|
+
/**
|
|
12181
|
+
* Update hosted image metadata
|
|
12182
|
+
* @param options Properties to update
|
|
12183
|
+
* @returns Updated image metadata
|
|
12184
|
+
* @throws {@link ImagesError} if update fails
|
|
12185
|
+
*/
|
|
12186
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12187
|
+
/**
|
|
12188
|
+
* Delete a hosted image
|
|
12189
|
+
* @returns True if deleted, false if not found
|
|
12190
|
+
*/
|
|
12191
|
+
delete(): Promise<boolean>;
|
|
12192
|
+
}
|
|
12193
|
+
interface HostedImagesBinding {
|
|
12194
|
+
/**
|
|
12195
|
+
* Get a handle for a hosted image
|
|
12196
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12197
|
+
* @returns A handle for per-image operations
|
|
12198
|
+
*/
|
|
12199
|
+
image(imageId: string): ImageHandle;
|
|
12181
12200
|
/**
|
|
12182
12201
|
* Upload a new hosted image
|
|
12183
12202
|
* @param image The image file to upload
|
|
@@ -12189,20 +12208,6 @@ interface HostedImagesBinding {
|
|
|
12189
12208
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12190
12209
|
options?: ImageUploadOptions,
|
|
12191
12210
|
): Promise<ImageMetadata>;
|
|
12192
|
-
/**
|
|
12193
|
-
* Update hosted image metadata
|
|
12194
|
-
* @param imageId The ID of the image
|
|
12195
|
-
* @param options Properties to update
|
|
12196
|
-
* @returns Updated image metadata
|
|
12197
|
-
* @throws {@link ImagesError} if update fails
|
|
12198
|
-
*/
|
|
12199
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12200
|
-
/**
|
|
12201
|
-
* Delete a hosted image
|
|
12202
|
-
* @param imageId The ID of the image
|
|
12203
|
-
* @returns True if deleted, false if not found
|
|
12204
|
-
*/
|
|
12205
|
-
delete(imageId: string): Promise<boolean>;
|
|
12206
12211
|
/**
|
|
12207
12212
|
* List hosted images with pagination
|
|
12208
12213
|
* @param options List configuration
|
package/2022-08-04/index.ts
CHANGED
|
@@ -3750,6 +3750,7 @@ export interface Container {
|
|
|
3750
3750
|
snapshotContainer(
|
|
3751
3751
|
options: ContainerSnapshotOptions,
|
|
3752
3752
|
): Promise<ContainerSnapshot>;
|
|
3753
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3753
3754
|
}
|
|
3754
3755
|
export interface ContainerDirectorySnapshot {
|
|
3755
3756
|
id: string;
|
|
@@ -12181,19 +12182,37 @@ export interface ImageList {
|
|
|
12181
12182
|
cursor?: string;
|
|
12182
12183
|
listComplete: boolean;
|
|
12183
12184
|
}
|
|
12184
|
-
export interface
|
|
12185
|
+
export interface ImageHandle {
|
|
12185
12186
|
/**
|
|
12186
|
-
* Get
|
|
12187
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12187
|
+
* Get metadata for a hosted image
|
|
12188
12188
|
* @returns Image metadata, or null if not found
|
|
12189
12189
|
*/
|
|
12190
|
-
details(
|
|
12190
|
+
details(): Promise<ImageMetadata | null>;
|
|
12191
12191
|
/**
|
|
12192
12192
|
* Get the raw image data for a hosted image
|
|
12193
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12194
12193
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12195
12194
|
*/
|
|
12196
|
-
|
|
12195
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12196
|
+
/**
|
|
12197
|
+
* Update hosted image metadata
|
|
12198
|
+
* @param options Properties to update
|
|
12199
|
+
* @returns Updated image metadata
|
|
12200
|
+
* @throws {@link ImagesError} if update fails
|
|
12201
|
+
*/
|
|
12202
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12203
|
+
/**
|
|
12204
|
+
* Delete a hosted image
|
|
12205
|
+
* @returns True if deleted, false if not found
|
|
12206
|
+
*/
|
|
12207
|
+
delete(): Promise<boolean>;
|
|
12208
|
+
}
|
|
12209
|
+
export interface HostedImagesBinding {
|
|
12210
|
+
/**
|
|
12211
|
+
* Get a handle for a hosted image
|
|
12212
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12213
|
+
* @returns A handle for per-image operations
|
|
12214
|
+
*/
|
|
12215
|
+
image(imageId: string): ImageHandle;
|
|
12197
12216
|
/**
|
|
12198
12217
|
* Upload a new hosted image
|
|
12199
12218
|
* @param image The image file to upload
|
|
@@ -12205,20 +12224,6 @@ export interface HostedImagesBinding {
|
|
|
12205
12224
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12206
12225
|
options?: ImageUploadOptions,
|
|
12207
12226
|
): Promise<ImageMetadata>;
|
|
12208
|
-
/**
|
|
12209
|
-
* Update hosted image metadata
|
|
12210
|
-
* @param imageId The ID of the image
|
|
12211
|
-
* @param options Properties to update
|
|
12212
|
-
* @returns Updated image metadata
|
|
12213
|
-
* @throws {@link ImagesError} if update fails
|
|
12214
|
-
*/
|
|
12215
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12216
|
-
/**
|
|
12217
|
-
* Delete a hosted image
|
|
12218
|
-
* @param imageId The ID of the image
|
|
12219
|
-
* @returns True if deleted, false if not found
|
|
12220
|
-
*/
|
|
12221
|
-
delete(imageId: string): Promise<boolean>;
|
|
12222
12227
|
/**
|
|
12223
12228
|
* List hosted images with pagination
|
|
12224
12229
|
* @param options List configuration
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -3764,6 +3764,7 @@ interface Container {
|
|
|
3764
3764
|
snapshotContainer(
|
|
3765
3765
|
options: ContainerSnapshotOptions,
|
|
3766
3766
|
): Promise<ContainerSnapshot>;
|
|
3767
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3767
3768
|
}
|
|
3768
3769
|
interface ContainerDirectorySnapshot {
|
|
3769
3770
|
id: string;
|
|
@@ -12185,19 +12186,37 @@ interface ImageList {
|
|
|
12185
12186
|
cursor?: string;
|
|
12186
12187
|
listComplete: boolean;
|
|
12187
12188
|
}
|
|
12188
|
-
interface
|
|
12189
|
+
interface ImageHandle {
|
|
12189
12190
|
/**
|
|
12190
|
-
* Get
|
|
12191
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12191
|
+
* Get metadata for a hosted image
|
|
12192
12192
|
* @returns Image metadata, or null if not found
|
|
12193
12193
|
*/
|
|
12194
|
-
details(
|
|
12194
|
+
details(): Promise<ImageMetadata | null>;
|
|
12195
12195
|
/**
|
|
12196
12196
|
* Get the raw image data for a hosted image
|
|
12197
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12198
12197
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12199
12198
|
*/
|
|
12200
|
-
|
|
12199
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12200
|
+
/**
|
|
12201
|
+
* Update hosted image metadata
|
|
12202
|
+
* @param options Properties to update
|
|
12203
|
+
* @returns Updated image metadata
|
|
12204
|
+
* @throws {@link ImagesError} if update fails
|
|
12205
|
+
*/
|
|
12206
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12207
|
+
/**
|
|
12208
|
+
* Delete a hosted image
|
|
12209
|
+
* @returns True if deleted, false if not found
|
|
12210
|
+
*/
|
|
12211
|
+
delete(): Promise<boolean>;
|
|
12212
|
+
}
|
|
12213
|
+
interface HostedImagesBinding {
|
|
12214
|
+
/**
|
|
12215
|
+
* Get a handle for a hosted image
|
|
12216
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12217
|
+
* @returns A handle for per-image operations
|
|
12218
|
+
*/
|
|
12219
|
+
image(imageId: string): ImageHandle;
|
|
12201
12220
|
/**
|
|
12202
12221
|
* Upload a new hosted image
|
|
12203
12222
|
* @param image The image file to upload
|
|
@@ -12209,20 +12228,6 @@ interface HostedImagesBinding {
|
|
|
12209
12228
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12210
12229
|
options?: ImageUploadOptions,
|
|
12211
12230
|
): Promise<ImageMetadata>;
|
|
12212
|
-
/**
|
|
12213
|
-
* Update hosted image metadata
|
|
12214
|
-
* @param imageId The ID of the image
|
|
12215
|
-
* @param options Properties to update
|
|
12216
|
-
* @returns Updated image metadata
|
|
12217
|
-
* @throws {@link ImagesError} if update fails
|
|
12218
|
-
*/
|
|
12219
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12220
|
-
/**
|
|
12221
|
-
* Delete a hosted image
|
|
12222
|
-
* @param imageId The ID of the image
|
|
12223
|
-
* @returns True if deleted, false if not found
|
|
12224
|
-
*/
|
|
12225
|
-
delete(imageId: string): Promise<boolean>;
|
|
12226
12231
|
/**
|
|
12227
12232
|
* List hosted images with pagination
|
|
12228
12233
|
* @param options List configuration
|