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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.68",
3
+ "version": "0.4.69",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
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;
@@ -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>;