@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.
- package/2021-11-03/index.d.ts +85 -1
- package/2021-11-03/index.ts +85 -1
- package/2022-01-31/index.d.ts +85 -1
- package/2022-01-31/index.ts +85 -1
- package/2022-03-21/index.d.ts +85 -1
- package/2022-03-21/index.ts +85 -1
- package/2022-08-04/index.d.ts +85 -1
- package/2022-08-04/index.ts +85 -1
- package/2022-10-31/index.d.ts +85 -1
- package/2022-10-31/index.ts +85 -1
- package/2022-11-30/index.d.ts +85 -1
- package/2022-11-30/index.ts +85 -1
- package/2023-03-01/index.d.ts +85 -1
- package/2023-03-01/index.ts +85 -1
- package/2023-07-01/index.d.ts +85 -1
- package/2023-07-01/index.ts +85 -1
- package/experimental/index.d.ts +107 -3
- package/experimental/index.ts +107 -3
- package/index.d.ts +85 -1
- package/index.ts +85 -1
- package/latest/index.d.ts +85 -1
- package/latest/index.ts +85 -1
- package/oldest/index.d.ts +85 -1
- package/oldest/index.ts +85 -1
- package/package.json +1 -1
package/oldest/index.ts
CHANGED
|
@@ -9456,7 +9456,7 @@ export declare abstract class Ai<
|
|
|
9456
9456
|
* });
|
|
9457
9457
|
* ```
|
|
9458
9458
|
*/
|
|
9459
|
-
aiSearch: AiSearchAccountService;
|
|
9459
|
+
aiSearch(): AiSearchAccountService;
|
|
9460
9460
|
/**
|
|
9461
9461
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
9462
9462
|
* Use `env.AI.aiSearch` instead for better API design and new features.
|
|
@@ -11166,6 +11166,86 @@ export type ImageOutputOptions = {
|
|
|
11166
11166
|
background?: string;
|
|
11167
11167
|
anim?: boolean;
|
|
11168
11168
|
};
|
|
11169
|
+
export interface ImageMetadata {
|
|
11170
|
+
id: string;
|
|
11171
|
+
filename?: string;
|
|
11172
|
+
uploaded?: string;
|
|
11173
|
+
requireSignedURLs: boolean;
|
|
11174
|
+
meta?: Record<string, unknown>;
|
|
11175
|
+
variants: string[];
|
|
11176
|
+
draft?: boolean;
|
|
11177
|
+
creator?: string;
|
|
11178
|
+
}
|
|
11179
|
+
export interface ImageUploadOptions {
|
|
11180
|
+
id?: string;
|
|
11181
|
+
filename?: string;
|
|
11182
|
+
requireSignedURLs?: boolean;
|
|
11183
|
+
metadata?: Record<string, unknown>;
|
|
11184
|
+
creator?: string;
|
|
11185
|
+
encoding?: "base64";
|
|
11186
|
+
}
|
|
11187
|
+
export interface ImageUpdateOptions {
|
|
11188
|
+
requireSignedURLs?: boolean;
|
|
11189
|
+
metadata?: Record<string, unknown>;
|
|
11190
|
+
creator?: string;
|
|
11191
|
+
}
|
|
11192
|
+
export interface ImageListOptions {
|
|
11193
|
+
limit?: number;
|
|
11194
|
+
cursor?: string;
|
|
11195
|
+
sortOrder?: "asc" | "desc";
|
|
11196
|
+
creator?: string;
|
|
11197
|
+
}
|
|
11198
|
+
export interface ImageList {
|
|
11199
|
+
images: ImageMetadata[];
|
|
11200
|
+
cursor?: string;
|
|
11201
|
+
listComplete: boolean;
|
|
11202
|
+
}
|
|
11203
|
+
export interface HostedImagesBinding {
|
|
11204
|
+
/**
|
|
11205
|
+
* Get detailed metadata for a hosted image
|
|
11206
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
11207
|
+
* @returns Image metadata, or null if not found
|
|
11208
|
+
*/
|
|
11209
|
+
details(imageId: string): Promise<ImageMetadata | null>;
|
|
11210
|
+
/**
|
|
11211
|
+
* Get the raw image data for a hosted image
|
|
11212
|
+
* @param imageId The ID of the image (UUID or custom ID)
|
|
11213
|
+
* @returns ReadableStream of image bytes, or null if not found
|
|
11214
|
+
*/
|
|
11215
|
+
image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
|
|
11216
|
+
/**
|
|
11217
|
+
* Upload a new hosted image
|
|
11218
|
+
* @param image The image file to upload
|
|
11219
|
+
* @param options Upload configuration
|
|
11220
|
+
* @returns Metadata for the uploaded image
|
|
11221
|
+
* @throws {@link ImagesError} if upload fails
|
|
11222
|
+
*/
|
|
11223
|
+
upload(
|
|
11224
|
+
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
11225
|
+
options?: ImageUploadOptions,
|
|
11226
|
+
): Promise<ImageMetadata>;
|
|
11227
|
+
/**
|
|
11228
|
+
* Update hosted image metadata
|
|
11229
|
+
* @param imageId The ID of the image
|
|
11230
|
+
* @param options Properties to update
|
|
11231
|
+
* @returns Updated image metadata
|
|
11232
|
+
* @throws {@link ImagesError} if update fails
|
|
11233
|
+
*/
|
|
11234
|
+
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
11235
|
+
/**
|
|
11236
|
+
* Delete a hosted image
|
|
11237
|
+
* @param imageId The ID of the image
|
|
11238
|
+
* @returns True if deleted, false if not found
|
|
11239
|
+
*/
|
|
11240
|
+
delete(imageId: string): Promise<boolean>;
|
|
11241
|
+
/**
|
|
11242
|
+
* List hosted images with pagination
|
|
11243
|
+
* @param options List configuration
|
|
11244
|
+
* @returns List of images with pagination info
|
|
11245
|
+
* @throws {@link ImagesError} if list fails
|
|
11246
|
+
*/
|
|
11247
|
+
list(options?: ImageListOptions): Promise<ImageList>;
|
|
11248
|
+
}
|
|
11169
11249
|
export interface ImagesBinding {
|
|
11170
11250
|
/**
|
|
11171
11251
|
* Get image metadata (type, width and height)
|
|
@@ -11185,6 +11265,10 @@ export interface ImagesBinding {
|
|
|
11185
11265
|
stream: ReadableStream<Uint8Array>,
|
|
11186
11266
|
options?: ImageInputOptions,
|
|
11187
11267
|
): ImageTransformer;
|
|
11268
|
+
/**
|
|
11269
|
+
* Access hosted images CRUD operations
|
|
11270
|
+
*/
|
|
11271
|
+
readonly hosted: HostedImagesBinding;
|
|
11188
11272
|
}
|
|
11189
11273
|
export interface ImageTransformer {
|
|
11190
11274
|
/**
|
package/package.json
CHANGED