lumiverse-spindle-types 0.4.68 → 0.4.69
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/package.json +1 -1
- package/src/api.ts +7 -0
- package/src/spindle-api.ts +4 -0
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -2197,6 +2197,13 @@ export type WorkerToHost =
|
|
|
2197
2197
|
userId?: string;
|
|
2198
2198
|
}
|
|
2199
2199
|
| { type: "images_upload"; requestId: string; input: ImageUploadDTO; userId?: string }
|
|
2200
|
+
| {
|
|
2201
|
+
type: "images_upload_many";
|
|
2202
|
+
requestId: string;
|
|
2203
|
+
items: ImageUploadDTO[];
|
|
2204
|
+
userId?: string;
|
|
2205
|
+
concurrency?: number;
|
|
2206
|
+
}
|
|
2200
2207
|
| {
|
|
2201
2208
|
type: "images_upload_from_data_url";
|
|
2202
2209
|
requestId: string;
|
package/src/spindle-api.ts
CHANGED
|
@@ -665,6 +665,10 @@ export interface SpindleAPI {
|
|
|
665
665
|
get(imageId: string, userId?: string): Promise<ImageDTO | null>;
|
|
666
666
|
get(imageId: string, options?: ImageGetOptionsDTO): Promise<ImageDTO | null>;
|
|
667
667
|
upload(input: ImageUploadDTO, userId?: string): Promise<ImageDTO>;
|
|
668
|
+
uploadMany(
|
|
669
|
+
items: ImageUploadDTO[],
|
|
670
|
+
options?: { userId?: string; concurrency?: number },
|
|
671
|
+
): Promise<Array<{ id?: string; error?: string }>>;
|
|
668
672
|
uploadFromDataUrl(dataUrl: string, originalFilename?: string, userId?: string): Promise<ImageDTO>;
|
|
669
673
|
uploadFromDataUrl(dataUrl: string, options?: ImageUploadFromDataUrlOptionsDTO): Promise<ImageDTO>;
|
|
670
674
|
delete(imageId: string, userId?: string): Promise<boolean>;
|