@cloudflare/workers-types 4.20260303.0 → 4.20260305.0

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.
@@ -9520,7 +9520,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
9520
9520
  * });
9521
9521
  * ```
9522
9522
  */
9523
- aiSearch: AiSearchAccountService;
9523
+ aiSearch(): AiSearchAccountService;
9524
9524
  /**
9525
9525
  * @deprecated AutoRAG has been replaced by AI Search.
9526
9526
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11225,6 +11225,86 @@ type ImageOutputOptions = {
11225
11225
  background?: string;
11226
11226
  anim?: boolean;
11227
11227
  };
11228
+ interface ImageMetadata {
11229
+ id: string;
11230
+ filename?: string;
11231
+ uploaded?: string;
11232
+ requireSignedURLs: boolean;
11233
+ meta?: Record<string, unknown>;
11234
+ variants: string[];
11235
+ draft?: boolean;
11236
+ creator?: string;
11237
+ }
11238
+ interface ImageUploadOptions {
11239
+ id?: string;
11240
+ filename?: string;
11241
+ requireSignedURLs?: boolean;
11242
+ metadata?: Record<string, unknown>;
11243
+ creator?: string;
11244
+ encoding?: "base64";
11245
+ }
11246
+ interface ImageUpdateOptions {
11247
+ requireSignedURLs?: boolean;
11248
+ metadata?: Record<string, unknown>;
11249
+ creator?: string;
11250
+ }
11251
+ interface ImageListOptions {
11252
+ limit?: number;
11253
+ cursor?: string;
11254
+ sortOrder?: "asc" | "desc";
11255
+ creator?: string;
11256
+ }
11257
+ interface ImageList {
11258
+ images: ImageMetadata[];
11259
+ cursor?: string;
11260
+ listComplete: boolean;
11261
+ }
11262
+ interface HostedImagesBinding {
11263
+ /**
11264
+ * Get detailed metadata for a hosted image
11265
+ * @param imageId The ID of the image (UUID or custom ID)
11266
+ * @returns Image metadata, or null if not found
11267
+ */
11268
+ details(imageId: string): Promise<ImageMetadata | null>;
11269
+ /**
11270
+ * Get the raw image data for a hosted image
11271
+ * @param imageId The ID of the image (UUID or custom ID)
11272
+ * @returns ReadableStream of image bytes, or null if not found
11273
+ */
11274
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11275
+ /**
11276
+ * Upload a new hosted image
11277
+ * @param image The image file to upload
11278
+ * @param options Upload configuration
11279
+ * @returns Metadata for the uploaded image
11280
+ * @throws {@link ImagesError} if upload fails
11281
+ */
11282
+ upload(
11283
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11284
+ options?: ImageUploadOptions,
11285
+ ): Promise<ImageMetadata>;
11286
+ /**
11287
+ * Update hosted image metadata
11288
+ * @param imageId The ID of the image
11289
+ * @param options Properties to update
11290
+ * @returns Updated image metadata
11291
+ * @throws {@link ImagesError} if update fails
11292
+ */
11293
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11294
+ /**
11295
+ * Delete a hosted image
11296
+ * @param imageId The ID of the image
11297
+ * @returns True if deleted, false if not found
11298
+ */
11299
+ delete(imageId: string): Promise<boolean>;
11300
+ /**
11301
+ * List hosted images with pagination
11302
+ * @param options List configuration
11303
+ * @returns List of images with pagination info
11304
+ * @throws {@link ImagesError} if list fails
11305
+ */
11306
+ list(options?: ImageListOptions): Promise<ImageList>;
11307
+ }
11228
11308
  interface ImagesBinding {
11229
11309
  /**
11230
11310
  * Get image metadata (type, width and height)
@@ -11244,6 +11324,10 @@ interface ImagesBinding {
11244
11324
  stream: ReadableStream<Uint8Array>,
11245
11325
  options?: ImageInputOptions,
11246
11326
  ): ImageTransformer;
11327
+ /**
11328
+ * Access hosted images CRUD operations
11329
+ */
11330
+ readonly hosted: HostedImagesBinding;
11247
11331
  }
11248
11332
  interface ImageTransformer {
11249
11333
  /**
@@ -9532,7 +9532,7 @@ export declare abstract class Ai<
9532
9532
  * });
9533
9533
  * ```
9534
9534
  */
9535
- aiSearch: AiSearchAccountService;
9535
+ aiSearch(): AiSearchAccountService;
9536
9536
  /**
9537
9537
  * @deprecated AutoRAG has been replaced by AI Search.
9538
9538
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11242,6 +11242,86 @@ export type ImageOutputOptions = {
11242
11242
  background?: string;
11243
11243
  anim?: boolean;
11244
11244
  };
11245
+ export interface ImageMetadata {
11246
+ id: string;
11247
+ filename?: string;
11248
+ uploaded?: string;
11249
+ requireSignedURLs: boolean;
11250
+ meta?: Record<string, unknown>;
11251
+ variants: string[];
11252
+ draft?: boolean;
11253
+ creator?: string;
11254
+ }
11255
+ export interface ImageUploadOptions {
11256
+ id?: string;
11257
+ filename?: string;
11258
+ requireSignedURLs?: boolean;
11259
+ metadata?: Record<string, unknown>;
11260
+ creator?: string;
11261
+ encoding?: "base64";
11262
+ }
11263
+ export interface ImageUpdateOptions {
11264
+ requireSignedURLs?: boolean;
11265
+ metadata?: Record<string, unknown>;
11266
+ creator?: string;
11267
+ }
11268
+ export interface ImageListOptions {
11269
+ limit?: number;
11270
+ cursor?: string;
11271
+ sortOrder?: "asc" | "desc";
11272
+ creator?: string;
11273
+ }
11274
+ export interface ImageList {
11275
+ images: ImageMetadata[];
11276
+ cursor?: string;
11277
+ listComplete: boolean;
11278
+ }
11279
+ export interface HostedImagesBinding {
11280
+ /**
11281
+ * Get detailed metadata for a hosted image
11282
+ * @param imageId The ID of the image (UUID or custom ID)
11283
+ * @returns Image metadata, or null if not found
11284
+ */
11285
+ details(imageId: string): Promise<ImageMetadata | null>;
11286
+ /**
11287
+ * Get the raw image data for a hosted image
11288
+ * @param imageId The ID of the image (UUID or custom ID)
11289
+ * @returns ReadableStream of image bytes, or null if not found
11290
+ */
11291
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11292
+ /**
11293
+ * Upload a new hosted image
11294
+ * @param image The image file to upload
11295
+ * @param options Upload configuration
11296
+ * @returns Metadata for the uploaded image
11297
+ * @throws {@link ImagesError} if upload fails
11298
+ */
11299
+ upload(
11300
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11301
+ options?: ImageUploadOptions,
11302
+ ): Promise<ImageMetadata>;
11303
+ /**
11304
+ * Update hosted image metadata
11305
+ * @param imageId The ID of the image
11306
+ * @param options Properties to update
11307
+ * @returns Updated image metadata
11308
+ * @throws {@link ImagesError} if update fails
11309
+ */
11310
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11311
+ /**
11312
+ * Delete a hosted image
11313
+ * @param imageId The ID of the image
11314
+ * @returns True if deleted, false if not found
11315
+ */
11316
+ delete(imageId: string): Promise<boolean>;
11317
+ /**
11318
+ * List hosted images with pagination
11319
+ * @param options List configuration
11320
+ * @returns List of images with pagination info
11321
+ * @throws {@link ImagesError} if list fails
11322
+ */
11323
+ list(options?: ImageListOptions): Promise<ImageList>;
11324
+ }
11245
11325
  export interface ImagesBinding {
11246
11326
  /**
11247
11327
  * Get image metadata (type, width and height)
@@ -11261,6 +11341,10 @@ export interface ImagesBinding {
11261
11341
  stream: ReadableStream<Uint8Array>,
11262
11342
  options?: ImageInputOptions,
11263
11343
  ): ImageTransformer;
11344
+ /**
11345
+ * Access hosted images CRUD operations
11346
+ */
11347
+ readonly hosted: HostedImagesBinding;
11264
11348
  }
11265
11349
  export interface ImageTransformer {
11266
11350
  /**
@@ -9540,7 +9540,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
9540
9540
  * });
9541
9541
  * ```
9542
9542
  */
9543
- aiSearch: AiSearchAccountService;
9543
+ aiSearch(): AiSearchAccountService;
9544
9544
  /**
9545
9545
  * @deprecated AutoRAG has been replaced by AI Search.
9546
9546
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11245,6 +11245,86 @@ type ImageOutputOptions = {
11245
11245
  background?: string;
11246
11246
  anim?: boolean;
11247
11247
  };
11248
+ interface ImageMetadata {
11249
+ id: string;
11250
+ filename?: string;
11251
+ uploaded?: string;
11252
+ requireSignedURLs: boolean;
11253
+ meta?: Record<string, unknown>;
11254
+ variants: string[];
11255
+ draft?: boolean;
11256
+ creator?: string;
11257
+ }
11258
+ interface ImageUploadOptions {
11259
+ id?: string;
11260
+ filename?: string;
11261
+ requireSignedURLs?: boolean;
11262
+ metadata?: Record<string, unknown>;
11263
+ creator?: string;
11264
+ encoding?: "base64";
11265
+ }
11266
+ interface ImageUpdateOptions {
11267
+ requireSignedURLs?: boolean;
11268
+ metadata?: Record<string, unknown>;
11269
+ creator?: string;
11270
+ }
11271
+ interface ImageListOptions {
11272
+ limit?: number;
11273
+ cursor?: string;
11274
+ sortOrder?: "asc" | "desc";
11275
+ creator?: string;
11276
+ }
11277
+ interface ImageList {
11278
+ images: ImageMetadata[];
11279
+ cursor?: string;
11280
+ listComplete: boolean;
11281
+ }
11282
+ interface HostedImagesBinding {
11283
+ /**
11284
+ * Get detailed metadata for a hosted image
11285
+ * @param imageId The ID of the image (UUID or custom ID)
11286
+ * @returns Image metadata, or null if not found
11287
+ */
11288
+ details(imageId: string): Promise<ImageMetadata | null>;
11289
+ /**
11290
+ * Get the raw image data for a hosted image
11291
+ * @param imageId The ID of the image (UUID or custom ID)
11292
+ * @returns ReadableStream of image bytes, or null if not found
11293
+ */
11294
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11295
+ /**
11296
+ * Upload a new hosted image
11297
+ * @param image The image file to upload
11298
+ * @param options Upload configuration
11299
+ * @returns Metadata for the uploaded image
11300
+ * @throws {@link ImagesError} if upload fails
11301
+ */
11302
+ upload(
11303
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11304
+ options?: ImageUploadOptions,
11305
+ ): Promise<ImageMetadata>;
11306
+ /**
11307
+ * Update hosted image metadata
11308
+ * @param imageId The ID of the image
11309
+ * @param options Properties to update
11310
+ * @returns Updated image metadata
11311
+ * @throws {@link ImagesError} if update fails
11312
+ */
11313
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11314
+ /**
11315
+ * Delete a hosted image
11316
+ * @param imageId The ID of the image
11317
+ * @returns True if deleted, false if not found
11318
+ */
11319
+ delete(imageId: string): Promise<boolean>;
11320
+ /**
11321
+ * List hosted images with pagination
11322
+ * @param options List configuration
11323
+ * @returns List of images with pagination info
11324
+ * @throws {@link ImagesError} if list fails
11325
+ */
11326
+ list(options?: ImageListOptions): Promise<ImageList>;
11327
+ }
11248
11328
  interface ImagesBinding {
11249
11329
  /**
11250
11330
  * Get image metadata (type, width and height)
@@ -11264,6 +11344,10 @@ interface ImagesBinding {
11264
11344
  stream: ReadableStream<Uint8Array>,
11265
11345
  options?: ImageInputOptions,
11266
11346
  ): ImageTransformer;
11347
+ /**
11348
+ * Access hosted images CRUD operations
11349
+ */
11350
+ readonly hosted: HostedImagesBinding;
11267
11351
  }
11268
11352
  interface ImageTransformer {
11269
11353
  /**
@@ -9552,7 +9552,7 @@ export declare abstract class Ai<
9552
9552
  * });
9553
9553
  * ```
9554
9554
  */
9555
- aiSearch: AiSearchAccountService;
9555
+ aiSearch(): AiSearchAccountService;
9556
9556
  /**
9557
9557
  * @deprecated AutoRAG has been replaced by AI Search.
9558
9558
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11262,6 +11262,86 @@ export type ImageOutputOptions = {
11262
11262
  background?: string;
11263
11263
  anim?: boolean;
11264
11264
  };
11265
+ export interface ImageMetadata {
11266
+ id: string;
11267
+ filename?: string;
11268
+ uploaded?: string;
11269
+ requireSignedURLs: boolean;
11270
+ meta?: Record<string, unknown>;
11271
+ variants: string[];
11272
+ draft?: boolean;
11273
+ creator?: string;
11274
+ }
11275
+ export interface ImageUploadOptions {
11276
+ id?: string;
11277
+ filename?: string;
11278
+ requireSignedURLs?: boolean;
11279
+ metadata?: Record<string, unknown>;
11280
+ creator?: string;
11281
+ encoding?: "base64";
11282
+ }
11283
+ export interface ImageUpdateOptions {
11284
+ requireSignedURLs?: boolean;
11285
+ metadata?: Record<string, unknown>;
11286
+ creator?: string;
11287
+ }
11288
+ export interface ImageListOptions {
11289
+ limit?: number;
11290
+ cursor?: string;
11291
+ sortOrder?: "asc" | "desc";
11292
+ creator?: string;
11293
+ }
11294
+ export interface ImageList {
11295
+ images: ImageMetadata[];
11296
+ cursor?: string;
11297
+ listComplete: boolean;
11298
+ }
11299
+ export interface HostedImagesBinding {
11300
+ /**
11301
+ * Get detailed metadata for a hosted image
11302
+ * @param imageId The ID of the image (UUID or custom ID)
11303
+ * @returns Image metadata, or null if not found
11304
+ */
11305
+ details(imageId: string): Promise<ImageMetadata | null>;
11306
+ /**
11307
+ * Get the raw image data for a hosted image
11308
+ * @param imageId The ID of the image (UUID or custom ID)
11309
+ * @returns ReadableStream of image bytes, or null if not found
11310
+ */
11311
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11312
+ /**
11313
+ * Upload a new hosted image
11314
+ * @param image The image file to upload
11315
+ * @param options Upload configuration
11316
+ * @returns Metadata for the uploaded image
11317
+ * @throws {@link ImagesError} if upload fails
11318
+ */
11319
+ upload(
11320
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11321
+ options?: ImageUploadOptions,
11322
+ ): Promise<ImageMetadata>;
11323
+ /**
11324
+ * Update hosted image metadata
11325
+ * @param imageId The ID of the image
11326
+ * @param options Properties to update
11327
+ * @returns Updated image metadata
11328
+ * @throws {@link ImagesError} if update fails
11329
+ */
11330
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11331
+ /**
11332
+ * Delete a hosted image
11333
+ * @param imageId The ID of the image
11334
+ * @returns True if deleted, false if not found
11335
+ */
11336
+ delete(imageId: string): Promise<boolean>;
11337
+ /**
11338
+ * List hosted images with pagination
11339
+ * @param options List configuration
11340
+ * @returns List of images with pagination info
11341
+ * @throws {@link ImagesError} if list fails
11342
+ */
11343
+ list(options?: ImageListOptions): Promise<ImageList>;
11344
+ }
11265
11345
  export interface ImagesBinding {
11266
11346
  /**
11267
11347
  * Get image metadata (type, width and height)
@@ -11281,6 +11361,10 @@ export interface ImagesBinding {
11281
11361
  stream: ReadableStream<Uint8Array>,
11282
11362
  options?: ImageInputOptions,
11283
11363
  ): ImageTransformer;
11364
+ /**
11365
+ * Access hosted images CRUD operations
11366
+ */
11367
+ readonly hosted: HostedImagesBinding;
11284
11368
  }
11285
11369
  export interface ImageTransformer {
11286
11370
  /**
@@ -9545,7 +9545,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
9545
9545
  * });
9546
9546
  * ```
9547
9547
  */
9548
- aiSearch: AiSearchAccountService;
9548
+ aiSearch(): AiSearchAccountService;
9549
9549
  /**
9550
9550
  * @deprecated AutoRAG has been replaced by AI Search.
9551
9551
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11250,6 +11250,86 @@ type ImageOutputOptions = {
11250
11250
  background?: string;
11251
11251
  anim?: boolean;
11252
11252
  };
11253
+ interface ImageMetadata {
11254
+ id: string;
11255
+ filename?: string;
11256
+ uploaded?: string;
11257
+ requireSignedURLs: boolean;
11258
+ meta?: Record<string, unknown>;
11259
+ variants: string[];
11260
+ draft?: boolean;
11261
+ creator?: string;
11262
+ }
11263
+ interface ImageUploadOptions {
11264
+ id?: string;
11265
+ filename?: string;
11266
+ requireSignedURLs?: boolean;
11267
+ metadata?: Record<string, unknown>;
11268
+ creator?: string;
11269
+ encoding?: "base64";
11270
+ }
11271
+ interface ImageUpdateOptions {
11272
+ requireSignedURLs?: boolean;
11273
+ metadata?: Record<string, unknown>;
11274
+ creator?: string;
11275
+ }
11276
+ interface ImageListOptions {
11277
+ limit?: number;
11278
+ cursor?: string;
11279
+ sortOrder?: "asc" | "desc";
11280
+ creator?: string;
11281
+ }
11282
+ interface ImageList {
11283
+ images: ImageMetadata[];
11284
+ cursor?: string;
11285
+ listComplete: boolean;
11286
+ }
11287
+ interface HostedImagesBinding {
11288
+ /**
11289
+ * Get detailed metadata for a hosted image
11290
+ * @param imageId The ID of the image (UUID or custom ID)
11291
+ * @returns Image metadata, or null if not found
11292
+ */
11293
+ details(imageId: string): Promise<ImageMetadata | null>;
11294
+ /**
11295
+ * Get the raw image data for a hosted image
11296
+ * @param imageId The ID of the image (UUID or custom ID)
11297
+ * @returns ReadableStream of image bytes, or null if not found
11298
+ */
11299
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11300
+ /**
11301
+ * Upload a new hosted image
11302
+ * @param image The image file to upload
11303
+ * @param options Upload configuration
11304
+ * @returns Metadata for the uploaded image
11305
+ * @throws {@link ImagesError} if upload fails
11306
+ */
11307
+ upload(
11308
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11309
+ options?: ImageUploadOptions,
11310
+ ): Promise<ImageMetadata>;
11311
+ /**
11312
+ * Update hosted image metadata
11313
+ * @param imageId The ID of the image
11314
+ * @param options Properties to update
11315
+ * @returns Updated image metadata
11316
+ * @throws {@link ImagesError} if update fails
11317
+ */
11318
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11319
+ /**
11320
+ * Delete a hosted image
11321
+ * @param imageId The ID of the image
11322
+ * @returns True if deleted, false if not found
11323
+ */
11324
+ delete(imageId: string): Promise<boolean>;
11325
+ /**
11326
+ * List hosted images with pagination
11327
+ * @param options List configuration
11328
+ * @returns List of images with pagination info
11329
+ * @throws {@link ImagesError} if list fails
11330
+ */
11331
+ list(options?: ImageListOptions): Promise<ImageList>;
11332
+ }
11253
11333
  interface ImagesBinding {
11254
11334
  /**
11255
11335
  * Get image metadata (type, width and height)
@@ -11269,6 +11349,10 @@ interface ImagesBinding {
11269
11349
  stream: ReadableStream<Uint8Array>,
11270
11350
  options?: ImageInputOptions,
11271
11351
  ): ImageTransformer;
11352
+ /**
11353
+ * Access hosted images CRUD operations
11354
+ */
11355
+ readonly hosted: HostedImagesBinding;
11272
11356
  }
11273
11357
  interface ImageTransformer {
11274
11358
  /**
@@ -9557,7 +9557,7 @@ export declare abstract class Ai<
9557
9557
  * });
9558
9558
  * ```
9559
9559
  */
9560
- aiSearch: AiSearchAccountService;
9560
+ aiSearch(): AiSearchAccountService;
9561
9561
  /**
9562
9562
  * @deprecated AutoRAG has been replaced by AI Search.
9563
9563
  * Use `env.AI.aiSearch` instead for better API design and new features.
@@ -11267,6 +11267,86 @@ export type ImageOutputOptions = {
11267
11267
  background?: string;
11268
11268
  anim?: boolean;
11269
11269
  };
11270
+ export interface ImageMetadata {
11271
+ id: string;
11272
+ filename?: string;
11273
+ uploaded?: string;
11274
+ requireSignedURLs: boolean;
11275
+ meta?: Record<string, unknown>;
11276
+ variants: string[];
11277
+ draft?: boolean;
11278
+ creator?: string;
11279
+ }
11280
+ export interface ImageUploadOptions {
11281
+ id?: string;
11282
+ filename?: string;
11283
+ requireSignedURLs?: boolean;
11284
+ metadata?: Record<string, unknown>;
11285
+ creator?: string;
11286
+ encoding?: "base64";
11287
+ }
11288
+ export interface ImageUpdateOptions {
11289
+ requireSignedURLs?: boolean;
11290
+ metadata?: Record<string, unknown>;
11291
+ creator?: string;
11292
+ }
11293
+ export interface ImageListOptions {
11294
+ limit?: number;
11295
+ cursor?: string;
11296
+ sortOrder?: "asc" | "desc";
11297
+ creator?: string;
11298
+ }
11299
+ export interface ImageList {
11300
+ images: ImageMetadata[];
11301
+ cursor?: string;
11302
+ listComplete: boolean;
11303
+ }
11304
+ export interface HostedImagesBinding {
11305
+ /**
11306
+ * Get detailed metadata for a hosted image
11307
+ * @param imageId The ID of the image (UUID or custom ID)
11308
+ * @returns Image metadata, or null if not found
11309
+ */
11310
+ details(imageId: string): Promise<ImageMetadata | null>;
11311
+ /**
11312
+ * Get the raw image data for a hosted image
11313
+ * @param imageId The ID of the image (UUID or custom ID)
11314
+ * @returns ReadableStream of image bytes, or null if not found
11315
+ */
11316
+ image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
11317
+ /**
11318
+ * Upload a new hosted image
11319
+ * @param image The image file to upload
11320
+ * @param options Upload configuration
11321
+ * @returns Metadata for the uploaded image
11322
+ * @throws {@link ImagesError} if upload fails
11323
+ */
11324
+ upload(
11325
+ image: ReadableStream<Uint8Array> | ArrayBuffer,
11326
+ options?: ImageUploadOptions,
11327
+ ): Promise<ImageMetadata>;
11328
+ /**
11329
+ * Update hosted image metadata
11330
+ * @param imageId The ID of the image
11331
+ * @param options Properties to update
11332
+ * @returns Updated image metadata
11333
+ * @throws {@link ImagesError} if update fails
11334
+ */
11335
+ update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
11336
+ /**
11337
+ * Delete a hosted image
11338
+ * @param imageId The ID of the image
11339
+ * @returns True if deleted, false if not found
11340
+ */
11341
+ delete(imageId: string): Promise<boolean>;
11342
+ /**
11343
+ * List hosted images with pagination
11344
+ * @param options List configuration
11345
+ * @returns List of images with pagination info
11346
+ * @throws {@link ImagesError} if list fails
11347
+ */
11348
+ list(options?: ImageListOptions): Promise<ImageList>;
11349
+ }
11270
11350
  export interface ImagesBinding {
11271
11351
  /**
11272
11352
  * Get image metadata (type, width and height)
@@ -11286,6 +11366,10 @@ export interface ImagesBinding {
11286
11366
  stream: ReadableStream<Uint8Array>,
11287
11367
  options?: ImageInputOptions,
11288
11368
  ): ImageTransformer;
11369
+ /**
11370
+ * Access hosted images CRUD operations
11371
+ */
11372
+ readonly hosted: HostedImagesBinding;
11289
11373
  }
11290
11374
  export interface ImageTransformer {
11291
11375
  /**