@wix/media 1.0.1 → 1.0.3

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 (35) hide show
  1. package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +62 -24
  2. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +95 -24
  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 +2 -1
  5. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +7 -1
  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 +13 -1
  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 +149 -34
  10. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +121 -23
  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.d.ts +35 -11
  13. package/build/cjs/src/media-site-media-v1-folder.http.js +35 -11
  14. package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
  15. package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +43 -12
  16. package/build/cjs/src/media-site-media-v1-folder.universal.js +30 -8
  17. package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
  18. package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +62 -24
  19. package/build/es/src/media-site-media-v1-file-descriptor.http.js +93 -23
  20. package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
  21. package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
  22. package/build/es/src/media-site-media-v1-file-descriptor.public.js +6 -1
  23. package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
  24. package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +13 -1
  25. package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
  26. package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +149 -34
  27. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +119 -22
  28. package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
  29. package/build/es/src/media-site-media-v1-folder.http.d.ts +35 -11
  30. package/build/es/src/media-site-media-v1-folder.http.js +35 -11
  31. package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
  32. package/build/es/src/media-site-media-v1-folder.universal.d.ts +43 -12
  33. package/build/es/src/media-site-media-v1-folder.universal.js +30 -8
  34. package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
  35. package/package.json +2 -2
@@ -20,12 +20,18 @@ export interface FileDescriptor {
20
20
  * @readonly
21
21
  */
22
22
  private?: boolean;
23
- /** Media file type. */
23
+ /**
24
+ * Media file type.
25
+ *
26
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
27
+ */
24
28
  mediaType?: MediaType;
25
29
  /** Media file content. */
26
30
  media?: FileMedia;
27
31
  /**
28
32
  * Status of the file that was uploaded.
33
+ *
34
+ * Supported values: `"FAILED"`, `"READY"`, `"PENDING"`
29
35
  * * `FAILED`: The file failed to upload, for example, during media post processing.
30
36
  * * `READY`: The file uploaded, finished all processing, and is ready for use.
31
37
  * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
@@ -43,7 +49,11 @@ export interface FileDescriptor {
43
49
  _updatedDate?: Date;
44
50
  /** The Wix site ID where the media file is stored. */
45
51
  siteId?: string;
46
- /** State of the file. */
52
+ /**
53
+ * State of the file.
54
+ *
55
+ * Supported values: `"OK"`, `"DELETED"`
56
+ */
47
57
  state?: State;
48
58
  }
49
59
  export declare enum MediaType {
@@ -240,6 +250,14 @@ export interface GetFileDescriptorResponse {
240
250
  /** Information about the file. */
241
251
  file?: FileDescriptor;
242
252
  }
253
+ export interface GetFileDescriptorsRequest {
254
+ /** File IDs. */
255
+ fileIds: string[];
256
+ }
257
+ export interface GetFileDescriptorsResponse {
258
+ /** Information about the requested files. */
259
+ files?: FileDescriptor[];
260
+ }
243
261
  export interface UpdateFileRequest {
244
262
  /** ID of the file to update. */
245
263
  fileId: string;
@@ -310,7 +328,11 @@ export declare enum UploadProtocol {
310
328
  TUS = "TUS"
311
329
  }
312
330
  export interface GenerateFileResumableUploadUrlResponse {
313
- /** The upload protocol to use for implementing the resumable upload. */
331
+ /**
332
+ * The upload protocol to use for implementing the resumable upload.
333
+ *
334
+ * Supported values: `"TUS"`
335
+ */
314
336
  uploadProtocol?: UploadProtocol;
315
337
  /** The URL for uploading a file to the Media Manager. */
316
338
  uploadUrl?: string;
@@ -318,9 +340,13 @@ export interface GenerateFileResumableUploadUrlResponse {
318
340
  uploadToken?: string;
319
341
  }
320
342
  export interface ImportFileRequest {
321
- /** Publicly accessible external file url. */
343
+ /** Publicly accessible external file URL. */
322
344
  url: string;
323
- /** Media type of the file to import. */
345
+ /**
346
+ * Media type of the file to import.
347
+ *
348
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
349
+ */
324
350
  mediaType?: MediaType;
325
351
  /** File name that appears in the Media Manager. */
326
352
  displayName?: string | null;
@@ -337,6 +363,10 @@ export interface ImportFileRequest {
337
363
  mimeType?: string;
338
364
  /** A place to map an external entity to an imported file in the Wix Media Manager. */
339
365
  externalInfo?: ExternalInfo;
366
+ /** Optional parameters that should be sent with the external URL. */
367
+ urlParams?: Record<string, any> | null;
368
+ /** Optional headers that should be sent with the external URL. */
369
+ urlHeaders?: Record<string, any> | null;
340
370
  }
341
371
  export interface ImportFileResponse {
342
372
  /** Information about the imported file. */
@@ -373,7 +403,11 @@ export interface ListFilesRequest {
373
403
  export interface Sorting {
374
404
  /** Name of the field to sort by. */
375
405
  fieldName?: string;
376
- /** Sort order. */
406
+ /**
407
+ * Sort order
408
+ *
409
+ * Supported values: `"ASC"`, `"DESC"`
410
+ */
377
411
  order?: SortOrder;
378
412
  }
379
413
  export declare enum SortOrder {
@@ -511,9 +545,11 @@ export interface ListDeletedFilesResponse {
511
545
  nextCursor?: PagingMetadataV2;
512
546
  }
513
547
  /**
514
- * Generates a URL for downloading a compressed file containing specific files in the Media Manager. <br/>
548
+ * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
515
549
  *
516
550
  * The compressed file can contain up to 1000 files.
551
+ *
552
+ * >**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.
517
553
  * @param fileIds - IDs of the files to download.
518
554
  * @public
519
555
  * @documentationMaturity preview
@@ -527,10 +563,13 @@ export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<Gen
527
563
  * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
528
564
  *
529
565
  * Use this endpoint to grant external clients access to a private media file. Use the `expirationInMinutes` parameter to set the URL expiration time, and the `expirationRedirectUrl` parameter to add a redirect url when the URL expires.
566
+ *
567
+ * >**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.
530
568
  * @param fileId - File ID.
531
569
  * @public
532
570
  * @documentationMaturity preview
533
571
  * @requiredField fileId
572
+ * @param options - Options to use when generating a file's download URL.
534
573
  */
535
574
  export declare function generateFileDownloadUrl(fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<GenerateFileDownloadUrlResponse>;
536
575
  export interface GenerateFileDownloadUrlOptions {
@@ -559,6 +598,8 @@ export interface GenerateFileDownloadUrlOptions {
559
598
  }
560
599
  /**
561
600
  * Gets information about a specific file in the Media Manager.
601
+ *
602
+ * >**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.
562
603
  * @param fileId - File ID.
563
604
  * @public
564
605
  * @documentationMaturity preview
@@ -566,13 +607,24 @@ export interface GenerateFileDownloadUrlOptions {
566
607
  */
567
608
  export declare function getFileDescriptor(fileId: string): Promise<GetFileDescriptorResponse>;
568
609
  /**
569
- * Updates a file. <br />
610
+ * Gets information about a specific files in the Media Manager.
611
+ * @param fileIds - File IDs.
612
+ * @public
613
+ * @documentationMaturity preview
614
+ * @requiredField fileIds
615
+ */
616
+ export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDescriptorsResponse>;
617
+ /**
618
+ * Updates a file by the specified ID.
570
619
  *
571
620
  * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
621
+ *
622
+ * >**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.
572
623
  * @param fileId - ID of the file to update.
573
624
  * @public
574
625
  * @documentationMaturity preview
575
626
  * @requiredField fileId
627
+ * @param options - Options to use when updating a file.
576
628
  */
577
629
  export declare function updateFile(fileId: string, options?: UpdateFileOptions): Promise<UpdateFileResponse>;
578
630
  export interface UpdateFileOptions {
@@ -587,14 +639,17 @@ export interface UpdateFileOptions {
587
639
  labels?: string[] | null;
588
640
  }
589
641
  /**
590
- * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
642
+ * Generates an upload URL to allow external clients to upload a file to the Media Manager.
591
643
  *
592
644
  * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see the [Upload API](https://dev.wix.com/api/rest/media/media-manager/upload-api) article.
593
- * >**Note:** Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, use the [Generate File Resumable Upload Url](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-resumable-upload-url) instead. With the resumable upload URL, any interruption in the upload process pauses the file upload, and resumes the file upload process after the interruption.
645
+ * > **Notes:**
646
+ * > - 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.
647
+ * > - Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, use the [Generate File Resumable Upload Url](https://www.wix.com/velo/reference/wix-media-v2/files/generatefileresumableuploadurl) instead. With the resumable upload URL, any interruption in the upload process pauses the file upload, and resumes the file upload process after the interruption.
594
648
  * @param mimeType - File mime type.
595
649
  * @public
596
650
  * @documentationMaturity preview
597
651
  * @requiredField mimeType
652
+ * @param options - Options to use when generating a file's upload URL.
598
653
  */
599
654
  export declare function generateFileUploadUrl(mimeType: string | null, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse>;
600
655
  export interface GenerateFileUploadUrlOptions {
@@ -618,14 +673,18 @@ export interface GenerateFileUploadUrlOptions {
618
673
  externalInfo?: ExternalInfo;
619
674
  }
620
675
  /**
621
- * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
676
+ * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager.
622
677
  *
623
678
  * With the resumable upload URL, any interruptions in the upload process pauses the file upload, and resumes the file upload process after the interruption. The resumable upload URL is also helpful when network connection is poor.
679
+ *
624
680
  * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see the [Resumable Upload API](https://dev.wix.com/api/rest/media/media-manager/resumable-upload-api) article.
681
+ *
682
+ * >**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.
625
683
  * @param mimeType - File mime type.
626
684
  * @public
627
685
  * @documentationMaturity preview
628
686
  * @requiredField mimeType
687
+ * @param options - Options to use when generating a resumable upload URL.
629
688
  */
630
689
  export declare function generateFileResumableUploadUrl(mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions): Promise<GenerateFileResumableUploadUrlResponse>;
631
690
  export interface GenerateFileResumableUploadUrlOptions {
@@ -645,30 +704,42 @@ export interface GenerateFileResumableUploadUrlOptions {
645
704
  private?: boolean | null;
646
705
  /** 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. */
647
706
  labels?: string[] | null;
648
- /** The upload protocol to use for implementing the resumable upload. */
707
+ /**
708
+ * The upload protocol to use for implementing the resumable upload.
709
+ *
710
+ * Supported values: `"TUS"`
711
+ */
649
712
  uploadProtocol?: UploadProtocol;
650
713
  }
651
714
  /**
652
715
  * Imports a file to the Media Manager using an external url.
653
716
  *
654
- * Returns information about the imported file.
717
+ * This function returns information about the imported file.
655
718
  * Use the `parentFolderId` parameter to specify which folder you want the file to be imported to.
656
719
  * If no folder is specified, the file is imported to the `media-root` folder.
657
720
  *
658
721
  * To import a file, you need to provide one of the following:
659
- * 1. Pass the file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, 'image/png'.
660
- * 2. Pass the file's name and extenstion. For example, 'my-image.png'.
661
- * 3. If you don't know the file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, 'IMAGE'. Note that this option only works if the server hosting the media allows a 'HEAD' request.
722
+ * 1. Pass the file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, `'image/png'`.
723
+ * 2. Pass the file's name and extension. For example, `'my-image.png'`.
724
+ * 3. If you don't know the file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, `'IMAGE'`. Note that this option only works if the server hosting the media allows a 'HEAD' request.
725
+ *
726
+ * >**Notes:**
727
+ * > - 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.
728
+ * > - The `media` property isn't returned in the `files` response object.
662
729
  *
663
- * >**Note:** The `media` property isn't returned in the `files` response object.
664
- * @param url - Publicly accessible external file url.
730
+ * @param url - Publicly accessible external file URL.
665
731
  * @public
666
732
  * @documentationMaturity preview
667
733
  * @requiredField url
734
+ * @param options - Options to use when importing a single file.
668
735
  */
669
736
  export declare function importFile(url: string, options?: ImportFileOptions): Promise<ImportFileResponse>;
670
737
  export interface ImportFileOptions {
671
- /** Media type of the file to import. */
738
+ /**
739
+ * Media type of the file to import.
740
+ *
741
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
742
+ */
672
743
  mediaType?: MediaType;
673
744
  /** File name that appears in the Media Manager. */
674
745
  displayName?: string | null;
@@ -685,22 +756,29 @@ export interface ImportFileOptions {
685
756
  mimeType?: string;
686
757
  /** A place to map an external entity to an imported file in the Wix Media Manager. */
687
758
  externalInfo?: ExternalInfo;
759
+ /** Optional parameters that should be sent with the external URL. */
760
+ urlParams?: Record<string, any> | null;
761
+ /** Optional headers that should be sent with the external URL. */
762
+ urlHeaders?: Record<string, any> | null;
688
763
  }
689
764
  /**
690
- * Imports a bulk of files to the Media Manager using external urls. <br/>
765
+ * Imports a bulk of files to the Media Manager using external urls.
691
766
  *
692
767
  * Returns information about the imported files. Use the `parentFolderId` parameter to specify in which folder you want each file to be imported to.
693
768
  * If no folder is specified, the file is imported to the `media-root` folder.
694
769
  *
695
770
  * To import files, you need to provide one of the following:
696
- * 1. Pass each file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, 'image/png'.
697
- * 2. Pass each file's name and extenstion. For example, 'my-image.png'.
698
- * 3. If you don't know a file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, 'IMAGE'. Note that this option only works if the server hosting the media allows a 'HEAD' request.
771
+ * 1. Pass each file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, `'image/png'`.
772
+ * 2. Pass each file's name and extension. For example, `'my-image.png'`.
773
+ * 3. If you don't know a file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, `'IMAGE'`. Note that this option only works if the server hosting the media allows a 'HEAD' request.
699
774
  *
700
- * >**Note:** The `media` property isn't returned in the `files` response object.
775
+ * >**Notes:**
776
+ * > - 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.
777
+ * > - The `media` property isn't returned in the `files` response object.
701
778
  * @public
702
779
  * @documentationMaturity preview
703
780
  * @requiredField options.importFileRequests.url
781
+ * @param options - Options to use when uploading multiple files.
704
782
  */
705
783
  export declare function bulkImportFiles(options?: BulkImportFilesOptions): Promise<BulkImportFilesResponse>;
706
784
  export interface BulkImportFilesOptions {
@@ -711,8 +789,11 @@ export interface BulkImportFilesOptions {
711
789
  * Retrieves a list of files in the Media Manager.
712
790
  *
713
791
  * To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
792
+ *
793
+ * >**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.
714
794
  * @public
715
795
  * @documentationMaturity preview
796
+ * @param options - Options to use when listing media files.
716
797
  */
717
798
  export declare function listFiles(options?: ListFilesOptions): Promise<ListFilesResponse>;
718
799
  export interface ListFilesOptions {
@@ -721,7 +802,11 @@ export interface ListFilesOptions {
721
802
  * Default:`media-root`.
722
803
  */
723
804
  parentFolderId?: string | null;
724
- /** File media type. */
805
+ /**
806
+ * Media file type.
807
+ *
808
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
809
+ */
725
810
  mediaTypes?: MediaType[];
726
811
  /** Whether the link to the imported file is public or private. */
727
812
  private?: boolean | null;
@@ -736,11 +821,14 @@ export interface ListFilesOptions {
736
821
  paging?: CursorPaging;
737
822
  }
738
823
  /**
739
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
824
+ * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the optional parameters.
740
825
  *
741
826
  * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
827
+ *
828
+ * >**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.
742
829
  * @public
743
830
  * @documentationMaturity preview
831
+ * @param options - Options to specify which folders to search.
744
832
  */
745
833
  export declare function searchFiles(options?: SearchFilesOptions): Promise<SearchFilesResponse>;
746
834
  export interface SearchFilesOptions {
@@ -755,7 +843,11 @@ export interface SearchFilesOptions {
755
843
  * Default: `MEDIA_ROOT`.
756
844
  */
757
845
  rootFolder?: RootFolder;
758
- /** File media type. */
846
+ /**
847
+ * Media file type.
848
+ *
849
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
850
+ */
759
851
  mediaTypes?: MediaType[];
760
852
  /** Whether the link to the imported file is public or private. */
761
853
  private?: boolean | null;
@@ -770,21 +862,31 @@ export interface SearchFilesOptions {
770
862
  paging?: CursorPaging;
771
863
  }
772
864
  /**
773
- * Generates a URL for streaming a specific video file in the Media Manager. <br/>
865
+ * Generates a URL for streaming a specific video file in the Media Manager.
774
866
  *
775
867
  * To stream different assets of the file, use the `assetKeys` parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to `src`, which generates one video streaming URL in the original file's format and quality.
868
+ *
869
+ * >**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.
776
870
  * @param fileId - File ID.
777
871
  * @public
778
872
  * @documentationMaturity preview
779
873
  * @requiredField fileId
874
+ * @param options - Options to use when generating a video file's streaming URL.
780
875
  */
781
876
  export declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<GenerateVideoStreamingUrlResponse>;
782
877
  export interface GenerateVideoStreamingUrlOptions {
783
- /** Video stream format. */
878
+ /**
879
+ * Video stream format.
880
+ *
881
+ * Supported values: `"UNKNOWN"`, `"HLS"`, `"DASH"`
882
+ *
883
+ *
884
+ */
784
885
  format?: StreamFormat;
785
886
  }
786
887
  /**
787
- * Deletes the specified files from the Media Manager. <br/>
888
+ * Deletes the specified files from the Media Manager.
889
+ *
788
890
  *
789
891
  * The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, pass the `permanent` parameter with the value `true`. Permanently deleting files isn't reversible, so make sure that these files aren't being used in a site or in any other way as the files will no longer be accessible.
790
892
  *
@@ -793,9 +895,13 @@ export interface GenerateVideoStreamingUrlOptions {
793
895
  * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
794
896
  * * Attempting to delete files that are already in the trash bin doesn't result in an error.
795
897
  * * If your site contains deleted media files, the deleted media files still appear on your site as the files are still in the Media Manager (in the trash bin).
796
- * * You can use the [Bulk Restore Files From Trash Bin](https://dev.wix.com/api/rest/media/media-manager/files/bulk-restore-files-from-trash-bin) endpoint to restore files from the Media Manager's trash bin.
898
+ * * You can use the [Bulk Restore Files From Trash Bin](https://www.wix.com/velo/reference/wix-media-v2/files/bulkrestorefilesfromtrashbin) endpoint to restore files from the Media Manager's trash bin.
899
+ *
900
+ *
901
+ * >**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.
797
902
  * @public
798
903
  * @documentationMaturity preview
904
+ * @param options - Options to use when deleting files.
799
905
  */
800
906
  export declare function bulkDeleteFiles(options?: BulkDeleteFilesOptions): Promise<void>;
801
907
  export interface BulkDeleteFilesOptions {
@@ -809,6 +915,8 @@ export interface BulkDeleteFilesOptions {
809
915
  }
810
916
  /**
811
917
  * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
918
+ *
919
+ * >**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.
812
920
  * @param fileIds - IDs of the files to restore from the Media Manager's trash bin.
813
921
  * @public
814
922
  * @documentationMaturity preview
@@ -816,11 +924,14 @@ export interface BulkDeleteFilesOptions {
816
924
  */
817
925
  export declare function bulkRestoreFilesFromTrashBin(fileIds: string[]): Promise<void>;
818
926
  /**
819
- * Retrieves a list of files in the Media Manager's trash bin. <br/>
927
+ * Retrieves a list of files in the Media Manager's trash bin.
820
928
  *
821
- * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
929
+ * >**Notes:**
930
+ * > - 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.
931
+ * > - The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
822
932
  * @public
823
933
  * @documentationMaturity preview
934
+ * @param options - Options to use when listing deleted files from the trash bin.
824
935
  */
825
936
  export declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<ListDeletedFilesResponse>;
826
937
  export interface ListDeletedFilesOptions {
@@ -829,7 +940,11 @@ export interface ListDeletedFilesOptions {
829
940
  * Default: `media-root`.
830
941
  */
831
942
  parentFolderId?: string | null;
832
- /** File media type. */
943
+ /**
944
+ * Media file type.
945
+ *
946
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
947
+ */
833
948
  mediaTypes?: MediaType[];
834
949
  /** Whether the link to the imported file is public or private. */
835
950
  private?: boolean | null;