@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/experimental/index.ts
CHANGED
|
@@ -2412,7 +2412,7 @@ export interface Queue<Body = unknown> {
|
|
|
2412
2412
|
export interface QueueSendMetrics {
|
|
2413
2413
|
backlogCount: number;
|
|
2414
2414
|
backlogBytes: number;
|
|
2415
|
-
oldestMessageTimestamp
|
|
2415
|
+
oldestMessageTimestamp?: Date;
|
|
2416
2416
|
}
|
|
2417
2417
|
export interface QueueSendMetadata {
|
|
2418
2418
|
metrics: QueueSendMetrics;
|
|
@@ -2423,7 +2423,7 @@ export interface QueueSendResponse {
|
|
|
2423
2423
|
export interface QueueSendBatchMetrics {
|
|
2424
2424
|
backlogCount: number;
|
|
2425
2425
|
backlogBytes: number;
|
|
2426
|
-
oldestMessageTimestamp
|
|
2426
|
+
oldestMessageTimestamp?: Date;
|
|
2427
2427
|
}
|
|
2428
2428
|
export interface QueueSendBatchMetadata {
|
|
2429
2429
|
metrics: QueueSendBatchMetrics;
|
|
@@ -2446,12 +2446,12 @@ export interface MessageSendRequest<Body = unknown> {
|
|
|
2446
2446
|
export interface QueueMetrics {
|
|
2447
2447
|
backlogCount: number;
|
|
2448
2448
|
backlogBytes: number;
|
|
2449
|
-
oldestMessageTimestamp
|
|
2449
|
+
oldestMessageTimestamp?: Date;
|
|
2450
2450
|
}
|
|
2451
2451
|
export interface MessageBatchMetrics {
|
|
2452
2452
|
backlogCount: number;
|
|
2453
2453
|
backlogBytes: number;
|
|
2454
|
-
oldestMessageTimestamp
|
|
2454
|
+
oldestMessageTimestamp?: Date;
|
|
2455
2455
|
}
|
|
2456
2456
|
export interface MessageBatchMetadata {
|
|
2457
2457
|
metrics: MessageBatchMetrics;
|
|
@@ -3939,6 +3939,28 @@ export interface EventSourceEventSourceInit {
|
|
|
3939
3939
|
withCredentials?: boolean;
|
|
3940
3940
|
fetcher?: Fetcher;
|
|
3941
3941
|
}
|
|
3942
|
+
export interface ExecOutput {
|
|
3943
|
+
readonly stdout: ArrayBuffer;
|
|
3944
|
+
readonly stderr: ArrayBuffer;
|
|
3945
|
+
readonly exitCode: number;
|
|
3946
|
+
}
|
|
3947
|
+
export interface ContainerExecOptions {
|
|
3948
|
+
cwd?: string;
|
|
3949
|
+
env?: Record<string, string>;
|
|
3950
|
+
user?: string;
|
|
3951
|
+
stdin?: ReadableStream | "pipe";
|
|
3952
|
+
stdout?: "pipe" | "ignore";
|
|
3953
|
+
stderr?: "pipe" | "ignore" | "combined";
|
|
3954
|
+
}
|
|
3955
|
+
export interface ExecProcess {
|
|
3956
|
+
readonly stdin: WritableStream | null;
|
|
3957
|
+
readonly stdout: ReadableStream | null;
|
|
3958
|
+
readonly stderr: ReadableStream | null;
|
|
3959
|
+
readonly pid: number;
|
|
3960
|
+
readonly exitCode: Promise<number>;
|
|
3961
|
+
output(): Promise<ExecOutput>;
|
|
3962
|
+
kill(signal?: number): void;
|
|
3963
|
+
}
|
|
3942
3964
|
export interface Container {
|
|
3943
3965
|
get running(): boolean;
|
|
3944
3966
|
start(options?: ContainerStartupOptions): void;
|
|
@@ -3956,6 +3978,8 @@ export interface Container {
|
|
|
3956
3978
|
options: ContainerSnapshotOptions,
|
|
3957
3979
|
): Promise<ContainerSnapshot>;
|
|
3958
3980
|
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3981
|
+
exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
|
|
3982
|
+
interceptOutboundTcp(addr: string, binding: Fetcher): Promise<void>;
|
|
3959
3983
|
}
|
|
3960
3984
|
export interface ContainerDirectorySnapshot {
|
|
3961
3985
|
id: string;
|
|
@@ -12940,19 +12964,37 @@ export interface ImageList {
|
|
|
12940
12964
|
cursor?: string;
|
|
12941
12965
|
listComplete: boolean;
|
|
12942
12966
|
}
|
|
12943
|
-
export interface
|
|
12967
|
+
export interface ImageHandle {
|
|
12944
12968
|
/**
|
|
12945
|
-
* Get
|
|
12946
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12969
|
+
* Get metadata for a hosted image
|
|
12947
12970
|
* @returns Image metadata, or null if not found
|
|
12948
12971
|
*/
|
|
12949
|
-
details(
|
|
12972
|
+
details(): Promise<ImageMetadata | null>;
|
|
12950
12973
|
/**
|
|
12951
12974
|
* Get the raw image data for a hosted image
|
|
12952
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12953
12975
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12954
12976
|
*/
|
|
12955
|
-
|
|
12977
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12978
|
+
/**
|
|
12979
|
+
* Update hosted image metadata
|
|
12980
|
+
* @param options Properties to update
|
|
12981
|
+
* @returns Updated image metadata
|
|
12982
|
+
* @throws {@link ImagesError} if update fails
|
|
12983
|
+
*/
|
|
12984
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12985
|
+
/**
|
|
12986
|
+
* Delete a hosted image
|
|
12987
|
+
* @returns True if deleted, false if not found
|
|
12988
|
+
*/
|
|
12989
|
+
delete(): Promise<boolean>;
|
|
12990
|
+
}
|
|
12991
|
+
export interface HostedImagesBinding {
|
|
12992
|
+
/**
|
|
12993
|
+
* Get a handle for a hosted image
|
|
12994
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12995
|
+
* @returns A handle for per-image operations
|
|
12996
|
+
*/
|
|
12997
|
+
image(imageId: string): ImageHandle;
|
|
12956
12998
|
/**
|
|
12957
12999
|
* Upload a new hosted image
|
|
12958
13000
|
* @param image The image file to upload
|
|
@@ -12964,20 +13006,6 @@ export interface HostedImagesBinding {
|
|
|
12964
13006
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12965
13007
|
options?: ImageUploadOptions,
|
|
12966
13008
|
): Promise<ImageMetadata>;
|
|
12967
|
-
/**
|
|
12968
|
-
* Update hosted image metadata
|
|
12969
|
-
* @param imageId The ID of the image
|
|
12970
|
-
* @param options Properties to update
|
|
12971
|
-
* @returns Updated image metadata
|
|
12972
|
-
* @throws {@link ImagesError} if update fails
|
|
12973
|
-
*/
|
|
12974
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12975
|
-
/**
|
|
12976
|
-
* Delete a hosted image
|
|
12977
|
-
* @param imageId The ID of the image
|
|
12978
|
-
* @returns True if deleted, false if not found
|
|
12979
|
-
*/
|
|
12980
|
-
delete(imageId: string): Promise<boolean>;
|
|
12981
13009
|
/**
|
|
12982
13010
|
* List hosted images with pagination
|
|
12983
13011
|
* @param options List configuration
|
package/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/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/latest/index.d.ts
CHANGED
|
@@ -3788,6 +3788,7 @@ interface Container {
|
|
|
3788
3788
|
snapshotContainer(
|
|
3789
3789
|
options: ContainerSnapshotOptions,
|
|
3790
3790
|
): Promise<ContainerSnapshot>;
|
|
3791
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3791
3792
|
}
|
|
3792
3793
|
interface ContainerDirectorySnapshot {
|
|
3793
3794
|
id: string;
|
|
@@ -12229,19 +12230,37 @@ interface ImageList {
|
|
|
12229
12230
|
cursor?: string;
|
|
12230
12231
|
listComplete: boolean;
|
|
12231
12232
|
}
|
|
12232
|
-
interface
|
|
12233
|
+
interface ImageHandle {
|
|
12233
12234
|
/**
|
|
12234
|
-
* Get
|
|
12235
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12235
|
+
* Get metadata for a hosted image
|
|
12236
12236
|
* @returns Image metadata, or null if not found
|
|
12237
12237
|
*/
|
|
12238
|
-
details(
|
|
12238
|
+
details(): Promise<ImageMetadata | null>;
|
|
12239
12239
|
/**
|
|
12240
12240
|
* Get the raw image data for a hosted image
|
|
12241
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12242
12241
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12243
12242
|
*/
|
|
12244
|
-
|
|
12243
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12244
|
+
/**
|
|
12245
|
+
* Update hosted image metadata
|
|
12246
|
+
* @param options Properties to update
|
|
12247
|
+
* @returns Updated image metadata
|
|
12248
|
+
* @throws {@link ImagesError} if update fails
|
|
12249
|
+
*/
|
|
12250
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12251
|
+
/**
|
|
12252
|
+
* Delete a hosted image
|
|
12253
|
+
* @returns True if deleted, false if not found
|
|
12254
|
+
*/
|
|
12255
|
+
delete(): Promise<boolean>;
|
|
12256
|
+
}
|
|
12257
|
+
interface HostedImagesBinding {
|
|
12258
|
+
/**
|
|
12259
|
+
* Get a handle for a hosted image
|
|
12260
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12261
|
+
* @returns A handle for per-image operations
|
|
12262
|
+
*/
|
|
12263
|
+
image(imageId: string): ImageHandle;
|
|
12245
12264
|
/**
|
|
12246
12265
|
* Upload a new hosted image
|
|
12247
12266
|
* @param image The image file to upload
|
|
@@ -12253,20 +12272,6 @@ interface HostedImagesBinding {
|
|
|
12253
12272
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12254
12273
|
options?: ImageUploadOptions,
|
|
12255
12274
|
): Promise<ImageMetadata>;
|
|
12256
|
-
/**
|
|
12257
|
-
* Update hosted image metadata
|
|
12258
|
-
* @param imageId The ID of the image
|
|
12259
|
-
* @param options Properties to update
|
|
12260
|
-
* @returns Updated image metadata
|
|
12261
|
-
* @throws {@link ImagesError} if update fails
|
|
12262
|
-
*/
|
|
12263
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12264
|
-
/**
|
|
12265
|
-
* Delete a hosted image
|
|
12266
|
-
* @param imageId The ID of the image
|
|
12267
|
-
* @returns True if deleted, false if not found
|
|
12268
|
-
*/
|
|
12269
|
-
delete(imageId: string): Promise<boolean>;
|
|
12270
12275
|
/**
|
|
12271
12276
|
* List hosted images with pagination
|
|
12272
12277
|
* @param options List configuration
|
package/latest/index.ts
CHANGED
|
@@ -3794,6 +3794,7 @@ export interface Container {
|
|
|
3794
3794
|
snapshotContainer(
|
|
3795
3795
|
options: ContainerSnapshotOptions,
|
|
3796
3796
|
): Promise<ContainerSnapshot>;
|
|
3797
|
+
interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
|
|
3797
3798
|
}
|
|
3798
3799
|
export interface ContainerDirectorySnapshot {
|
|
3799
3800
|
id: string;
|
|
@@ -12245,19 +12246,37 @@ export interface ImageList {
|
|
|
12245
12246
|
cursor?: string;
|
|
12246
12247
|
listComplete: boolean;
|
|
12247
12248
|
}
|
|
12248
|
-
export interface
|
|
12249
|
+
export interface ImageHandle {
|
|
12249
12250
|
/**
|
|
12250
|
-
* Get
|
|
12251
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12251
|
+
* Get metadata for a hosted image
|
|
12252
12252
|
* @returns Image metadata, or null if not found
|
|
12253
12253
|
*/
|
|
12254
|
-
details(
|
|
12254
|
+
details(): Promise<ImageMetadata | null>;
|
|
12255
12255
|
/**
|
|
12256
12256
|
* Get the raw image data for a hosted image
|
|
12257
|
-
* @param imageId The ID of the image (UUID or custom ID)
|
|
12258
12257
|
* @returns ReadableStream of image bytes, or null if not found
|
|
12259
12258
|
*/
|
|
12260
|
-
|
|
12259
|
+
bytes(): Promise<ReadableStream<Uint8Array> | null>;
|
|
12260
|
+
/**
|
|
12261
|
+
* Update hosted image metadata
|
|
12262
|
+
* @param options Properties to update
|
|
12263
|
+
* @returns Updated image metadata
|
|
12264
|
+
* @throws {@link ImagesError} if update fails
|
|
12265
|
+
*/
|
|
12266
|
+
update(options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12267
|
+
/**
|
|
12268
|
+
* Delete a hosted image
|
|
12269
|
+
* @returns True if deleted, false if not found
|
|
12270
|
+
*/
|
|
12271
|
+
delete(): Promise<boolean>;
|
|
12272
|
+
}
|
|
12273
|
+
export interface HostedImagesBinding {
|
|
12274
|
+
/**
|
|
12275
|
+
* Get a handle for a hosted image
|
|
12276
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
12277
|
+
* @returns A handle for per-image operations
|
|
12278
|
+
*/
|
|
12279
|
+
image(imageId: string): ImageHandle;
|
|
12261
12280
|
/**
|
|
12262
12281
|
* Upload a new hosted image
|
|
12263
12282
|
* @param image The image file to upload
|
|
@@ -12269,20 +12288,6 @@ export interface HostedImagesBinding {
|
|
|
12269
12288
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
12270
12289
|
options?: ImageUploadOptions,
|
|
12271
12290
|
): Promise<ImageMetadata>;
|
|
12272
|
-
/**
|
|
12273
|
-
* Update hosted image metadata
|
|
12274
|
-
* @param imageId The ID of the image
|
|
12275
|
-
* @param options Properties to update
|
|
12276
|
-
* @returns Updated image metadata
|
|
12277
|
-
* @throws {@link ImagesError} if update fails
|
|
12278
|
-
*/
|
|
12279
|
-
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
12280
|
-
/**
|
|
12281
|
-
* Delete a hosted image
|
|
12282
|
-
* @param imageId The ID of the image
|
|
12283
|
-
* @returns True if deleted, false if not found
|
|
12284
|
-
*/
|
|
12285
|
-
delete(imageId: string): Promise<boolean>;
|
|
12286
12291
|
/**
|
|
12287
12292
|
* List hosted images with pagination
|
|
12288
12293
|
* @param options List configuration
|
package/oldest/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/oldest/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/package.json
CHANGED