@wix/media 1.0.8 → 1.0.10

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.
Files changed (43) hide show
  1. package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +11 -2
  2. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +96 -40
  3. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
  4. package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +5 -4
  5. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +22 -16
  6. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
  7. package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +69 -16
  8. package/build/cjs/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
  9. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +178 -24
  10. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +124 -59
  11. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
  12. package/build/cjs/src/media-site-media-v1-folder.http.js +30 -27
  13. package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
  14. package/build/cjs/src/media-site-media-v1-folder.public.d.ts +1 -1
  15. package/build/cjs/src/media-site-media-v1-folder.public.js +9 -9
  16. package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
  17. package/build/cjs/src/media-site-media-v1-folder.types.d.ts +29 -7
  18. package/build/cjs/src/media-site-media-v1-folder.types.js.map +1 -1
  19. package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +68 -9
  20. package/build/cjs/src/media-site-media-v1-folder.universal.js +37 -34
  21. package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
  22. package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +11 -2
  23. package/build/es/src/media-site-media-v1-file-descriptor.http.js +60 -5
  24. package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
  25. package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +5 -4
  26. package/build/es/src/media-site-media-v1-file-descriptor.public.js +8 -3
  27. package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
  28. package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +69 -16
  29. package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
  30. package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +178 -24
  31. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +77 -13
  32. package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
  33. package/build/es/src/media-site-media-v1-folder.http.js +9 -6
  34. package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
  35. package/build/es/src/media-site-media-v1-folder.public.d.ts +1 -1
  36. package/build/es/src/media-site-media-v1-folder.public.js +1 -1
  37. package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
  38. package/build/es/src/media-site-media-v1-folder.types.d.ts +29 -7
  39. package/build/es/src/media-site-media-v1-folder.types.js.map +1 -1
  40. package/build/es/src/media-site-media-v1-folder.universal.d.ts +68 -9
  41. package/build/es/src/media-site-media-v1-folder.universal.js +10 -7
  42. package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
  43. package/package.json +2 -2
@@ -1,43 +1,86 @@
1
1
  export interface FileDescriptor {
2
- /** File ID. Generated when a file is uploaded to the Media Manager. */
2
+ /**
3
+ * File ID. Generated when a file is uploaded to the Media Manager.
4
+ * @readonly
5
+ */
3
6
  id?: string;
4
- /** File name as it appears in the Media Manager. */
7
+ /**
8
+ * File name as it appears in the Media Manager.
9
+ * @readonly
10
+ */
5
11
  displayName?: string;
6
- /** Static URL of the file. */
12
+ /**
13
+ * Static URL of the file.
14
+ * @readonly
15
+ */
7
16
  url?: string;
8
- /** ID of the file's parent folder. */
17
+ /**
18
+ * ID of the file's parent folder.
19
+ * @readonly
20
+ */
9
21
  parentFolderId?: string | null;
10
- /** File hash. */
22
+ /**
23
+ * File hash.
24
+ * @readonly
25
+ */
11
26
  hash?: string;
12
27
  /**
13
28
  * Whether the link to the uploaded file is public or private. Private links require a token.
14
29
  * @readonly
15
30
  */
16
31
  private?: boolean;
17
- /** Media file type. */
32
+ /**
33
+ * Media file type.
34
+ * @readonly
35
+ */
18
36
  mediaType?: MediaType;
19
- /** Media file content. */
37
+ /**
38
+ * Media file content.
39
+ * @readonly
40
+ */
20
41
  media?: FileMedia;
21
42
  /**
22
43
  * Status of the file that was uploaded.
23
44
  * * `FAILED`: The file failed to upload, for example, during media post processing.
24
45
  * * `READY`: The file uploaded, finished all processing, and is ready for use.
25
46
  * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
47
+ * @readonly
26
48
  */
27
49
  operationStatus?: OperationStatus;
28
- /** URL where the file was uploaded from. */
50
+ /**
51
+ * URL where the file was uploaded from.
52
+ * @readonly
53
+ */
29
54
  sourceUrl?: string | null;
30
- /** URL of the file's thumbnail. */
55
+ /**
56
+ * URL of the file's thumbnail.
57
+ * @readonly
58
+ */
31
59
  thumbnailUrl?: string | null;
32
- /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
60
+ /**
61
+ * Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
62
+ * @readonly
63
+ */
33
64
  labels?: string[];
34
- /** Date and time the file was created. */
65
+ /**
66
+ * Date and time the file was created.
67
+ * @readonly
68
+ */
35
69
  createdDate?: Date;
36
- /** Date and time the file was updated. */
70
+ /**
71
+ * Date and time the file was updated.
72
+ * @readonly
73
+ */
37
74
  updatedDate?: Date;
38
- /** The Wix site ID where the media file is stored. */
75
+ /**
76
+ * The Wix site ID where the media file is stored.
77
+ * @readonly
78
+ */
39
79
  siteId?: string;
40
- /** State of the file. */
80
+ /**
81
+ * State of the file.
82
+ * @readonly
83
+ */
41
84
  state?: State;
42
85
  }
43
86
  export declare enum MediaType {
@@ -315,6 +358,16 @@ export interface UpdateFileResponse {
315
358
  /** Information about the updated file. */
316
359
  file?: FileDescriptor;
317
360
  }
361
+ export interface UpdateFileDescriptorRequest {
362
+ /** A partial file object, see updatable properties in the FileDescriptor object */
363
+ file: FileDescriptor;
364
+ /** field mask */
365
+ fieldMask?: string[];
366
+ }
367
+ export interface UpdateFileDescriptorResponse {
368
+ /** Information about the updated file. */
369
+ file?: FileDescriptor;
370
+ }
318
371
  export interface GenerateFileUploadUrlRequest {
319
372
  /** File mime type. */
320
373
  mimeType: string | null;
@@ -406,7 +459,7 @@ export interface ImportFileResponse {
406
459
  }
407
460
  export interface BulkImportFilesRequest {
408
461
  /** Information about the files to import. */
409
- importFileRequests?: ImportFileRequest[];
462
+ importFileRequests: ImportFileRequest[];
410
463
  }
411
464
  export interface BulkImportFilesResponse {
412
465
  /** Information about the imported files. */
@@ -531,7 +584,7 @@ export interface GenerateWebSocketTokenResponse {
531
584
  }
532
585
  export interface BulkDeleteFilesRequest {
533
586
  /** IDs of the files to move to the Media Manager's trash bin. */
534
- fileIds?: string[];
587
+ fileIds: string[];
535
588
  /**
536
589
  * Whether the specified files are permanently deleted. <br />
537
590
  * Default: `false`
@@ -1 +1 @@
1
- {"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":";;;AA2CA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;AACnB,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AA4KD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAED,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,kBAAS,CAAA;IACT,4BAAmB,CAAA;AACrB,CAAC,EAHW,KAAK,GAAL,aAAK,KAAL,aAAK,QAGhB;AAqKD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,wEAAwE;IACxE,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAgFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AA2DD,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,uCAAyB,CAAA;IACzB,sCAAsC;IACtC,uCAAyB,CAAA;IACzB,kCAAkC;IAClC,2DAA6C,CAAA;AAC/C,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AAgBD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
1
+ {"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":";;;AAsFA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;AACnB,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AA4KD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAED,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,kBAAS,CAAA;IACT,4BAAmB,CAAA;AACrB,CAAC,EAHW,KAAK,GAAL,aAAK,KAAL,aAAK,QAGhB;AAiLD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,wEAAwE;IACxE,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAgFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AA2DD,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,uCAAyB,CAAA;IACzB,sCAAsC;IACtC,uCAAyB,CAAA;IACzB,kCAAkC;IAClC,2DAA6C,CAAA;AAC/C,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AAgBD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
@@ -5,15 +5,30 @@ export declare const __debug: {
5
5
  };
6
6
  };
7
7
  export interface FileDescriptor {
8
- /** File ID. Generated when a file is uploaded to the Media Manager. */
8
+ /**
9
+ * File ID. Generated when a file is uploaded to the Media Manager.
10
+ * @readonly
11
+ */
9
12
  _id?: string;
10
- /** File name as it appears in the Media Manager. */
13
+ /**
14
+ * File name as it appears in the Media Manager.
15
+ * @readonly
16
+ */
11
17
  displayName?: string;
12
- /** Static URL of the file. */
18
+ /**
19
+ * Static URL of the file.
20
+ * @readonly
21
+ */
13
22
  url?: string;
14
- /** ID of the file's parent folder. */
23
+ /**
24
+ * ID of the file's parent folder.
25
+ * @readonly
26
+ */
15
27
  parentFolderId?: string | null;
16
- /** File hash. */
28
+ /**
29
+ * File hash.
30
+ * @readonly
31
+ */
17
32
  hash?: string;
18
33
  /**
19
34
  * Whether the link to the uploaded file is public or private. Private links require a token.
@@ -24,9 +39,13 @@ export interface FileDescriptor {
24
39
  * Media file type.
25
40
  *
26
41
  * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
42
+ * @readonly
27
43
  */
28
44
  mediaType?: MediaType;
29
- /** Media file content. */
45
+ /**
46
+ * Media file content.
47
+ * @readonly
48
+ */
30
49
  media?: FileMedia;
31
50
  /**
32
51
  * Status of the file that was uploaded.
@@ -35,24 +54,44 @@ export interface FileDescriptor {
35
54
  * * `FAILED`: The file failed to upload, for example, during media post processing.
36
55
  * * `READY`: The file uploaded, finished all processing, and is ready for use.
37
56
  * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
57
+ * @readonly
38
58
  */
39
59
  operationStatus?: OperationStatus;
40
- /** URL where the file was uploaded from. */
60
+ /**
61
+ * URL where the file was uploaded from.
62
+ * @readonly
63
+ */
41
64
  sourceUrl?: string | null;
42
- /** URL of the file's thumbnail. */
65
+ /**
66
+ * URL of the file's thumbnail.
67
+ * @readonly
68
+ */
43
69
  thumbnailUrl?: string | null;
44
- /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
70
+ /**
71
+ * Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
72
+ * @readonly
73
+ */
45
74
  labels?: string[];
46
- /** Date and time the file was created. */
75
+ /**
76
+ * Date and time the file was created.
77
+ * @readonly
78
+ */
47
79
  _createdDate?: Date;
48
- /** Date and time the file was updated. */
80
+ /**
81
+ * Date and time the file was updated.
82
+ * @readonly
83
+ */
49
84
  _updatedDate?: Date;
50
- /** The Wix site ID where the media file is stored. */
85
+ /**
86
+ * The Wix site ID where the media file is stored.
87
+ * @readonly
88
+ */
51
89
  siteId?: string;
52
90
  /**
53
91
  * State of the file.
54
92
  *
55
93
  * Supported values: `"OK"`, `"DELETED"`
94
+ * @readonly
56
95
  */
57
96
  state?: State;
58
97
  }
@@ -275,6 +314,16 @@ export interface UpdateFileResponse {
275
314
  /** Information about the updated file. */
276
315
  file?: FileDescriptor;
277
316
  }
317
+ export interface UpdateFileDescriptorRequest {
318
+ /** A partial file object, see updatable properties in the FileDescriptor object */
319
+ file: FileDescriptor;
320
+ /** field mask */
321
+ fieldMask?: string[];
322
+ }
323
+ export interface UpdateFileDescriptorResponse {
324
+ /** Information about the updated file. */
325
+ file?: FileDescriptor;
326
+ }
278
327
  export interface GenerateFileUploadUrlRequest {
279
328
  /** File mime type. */
280
329
  mimeType: string | null;
@@ -374,7 +423,7 @@ export interface ImportFileResponse {
374
423
  }
375
424
  export interface BulkImportFilesRequest {
376
425
  /** Information about the files to import. */
377
- importFileRequests?: ImportFileRequest[];
426
+ importFileRequests: ImportFileRequest[];
378
427
  }
379
428
  export interface BulkImportFilesResponse {
380
429
  /** Information about the imported files. */
@@ -503,7 +552,7 @@ export interface GenerateWebSocketTokenResponse {
503
552
  }
504
553
  export interface BulkDeleteFilesRequest {
505
554
  /** IDs of the files to move to the Media Manager's trash bin. */
506
- fileIds?: string[];
555
+ fileIds: string[];
507
556
  /**
508
557
  * Whether the specified files are permanently deleted. <br />
509
558
  * Default: `false`
@@ -606,7 +655,8 @@ export interface GenerateFileDownloadUrlOptions {
606
655
  */
607
656
  export declare function getFileDescriptor(fileId: string): Promise<GetFileDescriptorResponse>;
608
657
  /**
609
- * Gets information about a specific files in the Media Manager.
658
+ * Gets information about the specified files in the Media Manager.
659
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
610
660
  * @param fileIds - File IDs.
611
661
  * @public
612
662
  * @documentationMaturity preview
@@ -637,6 +687,112 @@ export interface UpdateFileOptions {
637
687
  /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
638
688
  labels?: string[] | null;
639
689
  }
690
+ /**
691
+ * Updates a file. <br />
692
+ * Supported fields: displayName, parentFolderId, labels. Any unsupported field will be ignored
693
+ * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
694
+ * @param _id - File ID. Generated when a file is uploaded to the Media Manager.
695
+ * @public
696
+ * @documentationMaturity preview
697
+ * @requiredField _id
698
+ * @requiredField file
699
+ */
700
+ export declare function updateFileDescriptor(_id: string, file: UpdateFileDescriptorFile, options?: UpdateFileDescriptorOptions): Promise<UpdateFileDescriptorResponse>;
701
+ export interface UpdateFileDescriptorFile {
702
+ /**
703
+ * File ID. Generated when a file is uploaded to the Media Manager.
704
+ * @readonly
705
+ */
706
+ _id?: string;
707
+ /**
708
+ * File name as it appears in the Media Manager.
709
+ * @readonly
710
+ */
711
+ displayName?: string;
712
+ /**
713
+ * Static URL of the file.
714
+ * @readonly
715
+ */
716
+ url?: string;
717
+ /**
718
+ * ID of the file's parent folder.
719
+ * @readonly
720
+ */
721
+ parentFolderId?: string | null;
722
+ /**
723
+ * File hash.
724
+ * @readonly
725
+ */
726
+ hash?: string;
727
+ /**
728
+ * Whether the link to the uploaded file is public or private. Private links require a token.
729
+ * @readonly
730
+ */
731
+ private?: boolean;
732
+ /**
733
+ * Media file type.
734
+ *
735
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
736
+ * @readonly
737
+ */
738
+ mediaType?: MediaType;
739
+ /**
740
+ * Media file content.
741
+ * @readonly
742
+ */
743
+ media?: FileMedia;
744
+ /**
745
+ * Status of the file that was uploaded.
746
+ *
747
+ * Supported values: `"FAILED"`, `"READY"`, `"PENDING"`
748
+ * * `FAILED`: The file failed to upload, for example, during media post processing.
749
+ * * `READY`: The file uploaded, finished all processing, and is ready for use.
750
+ * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
751
+ * @readonly
752
+ */
753
+ operationStatus?: OperationStatus;
754
+ /**
755
+ * URL where the file was uploaded from.
756
+ * @readonly
757
+ */
758
+ sourceUrl?: string | null;
759
+ /**
760
+ * URL of the file's thumbnail.
761
+ * @readonly
762
+ */
763
+ thumbnailUrl?: string | null;
764
+ /**
765
+ * Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
766
+ * @readonly
767
+ */
768
+ labels?: string[];
769
+ /**
770
+ * Date and time the file was created.
771
+ * @readonly
772
+ */
773
+ _createdDate?: Date;
774
+ /**
775
+ * Date and time the file was updated.
776
+ * @readonly
777
+ */
778
+ _updatedDate?: Date;
779
+ /**
780
+ * The Wix site ID where the media file is stored.
781
+ * @readonly
782
+ */
783
+ siteId?: string;
784
+ /**
785
+ * State of the file.
786
+ *
787
+ * Supported values: `"OK"`, `"DELETED"`
788
+ * @readonly
789
+ */
790
+ state?: State;
791
+ }
792
+ export interface UpdateFileDescriptorOptions {
793
+ /** field mask */
794
+ fieldMask?: string[];
795
+ }
640
796
  /**
641
797
  * Generates an upload URL to allow external clients to upload a file to the Media Manager.
642
798
  *
@@ -774,16 +930,14 @@ export interface ImportFileOptions {
774
930
  * >**Notes:**
775
931
  * > - This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
776
932
  * > - The `media` property isn't returned in the `files` response object.
933
+ * @param importFileRequests - Information about the files to import.
777
934
  * @public
778
935
  * @documentationMaturity preview
779
- * @requiredField options.importFileRequests.url
936
+ * @requiredField importFileRequests
937
+ * @requiredField importFileRequests.url
780
938
  * @param options - Options to use when uploading multiple files.
781
939
  */
782
- export declare function bulkImportFiles(options?: BulkImportFilesOptions): Promise<BulkImportFilesResponse>;
783
- export interface BulkImportFilesOptions {
784
- /** Information about the files to import. */
785
- importFileRequests?: ImportFileRequest[];
786
- }
940
+ export declare function bulkImportFiles(importFileRequests: ImportFileRequest[]): Promise<BulkImportFilesResponse>;
787
941
  /**
788
942
  * Retrieves a list of files in the Media Manager.
789
943
  *
@@ -898,14 +1052,14 @@ export interface GenerateVideoStreamingUrlOptions {
898
1052
  *
899
1053
  *
900
1054
  * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1055
+ * @param fileIds - IDs of the files to move to the Media Manager's trash bin.
901
1056
  * @public
902
1057
  * @documentationMaturity preview
1058
+ * @requiredField fileIds
903
1059
  * @param options - Options to use when deleting files.
904
1060
  */
905
- export declare function bulkDeleteFiles(options?: BulkDeleteFilesOptions): Promise<void>;
1061
+ export declare function bulkDeleteFiles(fileIds: string[], options?: BulkDeleteFilesOptions): Promise<void>;
906
1062
  export interface BulkDeleteFilesOptions {
907
- /** IDs of the files to move to the Media Manager's trash bin. */
908
- fileIds?: string[];
909
1063
  /**
910
1064
  * Whether the specified files are permanently deleted. <br />
911
1065
  * Default: `false`