@wix/media 1.0.2 → 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 +10 -2
  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 +143 -36
  10. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +118 -22
  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 +10 -2
  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 +143 -36
  27. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +116 -21
  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;
@@ -320,7 +342,11 @@ export interface GenerateFileResumableUploadUrlResponse {
320
342
  export interface ImportFileRequest {
321
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,9 +363,9 @@ 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;
340
- /** Optional parameters that should be sent with the external URL */
366
+ /** Optional parameters that should be sent with the external URL. */
341
367
  urlParams?: Record<string, any> | null;
342
- /** Optional headers that should be sent with the external URL */
368
+ /** Optional headers that should be sent with the external URL. */
343
369
  urlHeaders?: Record<string, any> | null;
344
370
  }
345
371
  export interface ImportFileResponse {
@@ -377,7 +403,11 @@ export interface ListFilesRequest {
377
403
  export interface Sorting {
378
404
  /** Name of the field to sort by. */
379
405
  fieldName?: string;
380
- /** Sort order. */
406
+ /**
407
+ * Sort order
408
+ *
409
+ * Supported values: `"ASC"`, `"DESC"`
410
+ */
381
411
  order?: SortOrder;
382
412
  }
383
413
  export declare enum SortOrder {
@@ -515,9 +545,11 @@ export interface ListDeletedFilesResponse {
515
545
  nextCursor?: PagingMetadataV2;
516
546
  }
517
547
  /**
518
- * 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.
519
549
  *
520
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.
521
553
  * @param fileIds - IDs of the files to download.
522
554
  * @public
523
555
  * @documentationMaturity preview
@@ -531,10 +563,13 @@ export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<Gen
531
563
  * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
532
564
  *
533
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.
534
568
  * @param fileId - File ID.
535
569
  * @public
536
570
  * @documentationMaturity preview
537
571
  * @requiredField fileId
572
+ * @param options - Options to use when generating a file's download URL.
538
573
  */
539
574
  export declare function generateFileDownloadUrl(fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<GenerateFileDownloadUrlResponse>;
540
575
  export interface GenerateFileDownloadUrlOptions {
@@ -563,6 +598,8 @@ export interface GenerateFileDownloadUrlOptions {
563
598
  }
564
599
  /**
565
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.
566
603
  * @param fileId - File ID.
567
604
  * @public
568
605
  * @documentationMaturity preview
@@ -570,13 +607,24 @@ export interface GenerateFileDownloadUrlOptions {
570
607
  */
571
608
  export declare function getFileDescriptor(fileId: string): Promise<GetFileDescriptorResponse>;
572
609
  /**
573
- * 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.
574
619
  *
575
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.
576
623
  * @param fileId - ID of the file to update.
577
624
  * @public
578
625
  * @documentationMaturity preview
579
626
  * @requiredField fileId
627
+ * @param options - Options to use when updating a file.
580
628
  */
581
629
  export declare function updateFile(fileId: string, options?: UpdateFileOptions): Promise<UpdateFileResponse>;
582
630
  export interface UpdateFileOptions {
@@ -591,14 +639,17 @@ export interface UpdateFileOptions {
591
639
  labels?: string[] | null;
592
640
  }
593
641
  /**
594
- * 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.
595
643
  *
596
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.
597
- * >**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.
598
648
  * @param mimeType - File mime type.
599
649
  * @public
600
650
  * @documentationMaturity preview
601
651
  * @requiredField mimeType
652
+ * @param options - Options to use when generating a file's upload URL.
602
653
  */
603
654
  export declare function generateFileUploadUrl(mimeType: string | null, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse>;
604
655
  export interface GenerateFileUploadUrlOptions {
@@ -622,14 +673,18 @@ export interface GenerateFileUploadUrlOptions {
622
673
  externalInfo?: ExternalInfo;
623
674
  }
624
675
  /**
625
- * 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.
626
677
  *
627
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
+ *
628
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.
629
683
  * @param mimeType - File mime type.
630
684
  * @public
631
685
  * @documentationMaturity preview
632
686
  * @requiredField mimeType
687
+ * @param options - Options to use when generating a resumable upload URL.
633
688
  */
634
689
  export declare function generateFileResumableUploadUrl(mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions): Promise<GenerateFileResumableUploadUrlResponse>;
635
690
  export interface GenerateFileResumableUploadUrlOptions {
@@ -649,30 +704,42 @@ export interface GenerateFileResumableUploadUrlOptions {
649
704
  private?: boolean | null;
650
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. */
651
706
  labels?: string[] | null;
652
- /** 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
+ */
653
712
  uploadProtocol?: UploadProtocol;
654
713
  }
655
714
  /**
656
715
  * Imports a file to the Media Manager using an external url.
657
716
  *
658
- * Returns information about the imported file.
717
+ * This function returns information about the imported file.
659
718
  * Use the `parentFolderId` parameter to specify which folder you want the file to be imported to.
660
719
  * If no folder is specified, the file is imported to the `media-root` folder.
661
720
  *
662
721
  * To import a file, you need to provide one of the following:
663
- * 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'.
664
- * 2. Pass the file's name and extenstion. For example, 'my-image.png'.
665
- * 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.
666
729
  *
667
- * >**Note:** The `media` property isn't returned in the `files` response object.
668
730
  * @param url - Publicly accessible external file URL.
669
731
  * @public
670
732
  * @documentationMaturity preview
671
733
  * @requiredField url
734
+ * @param options - Options to use when importing a single file.
672
735
  */
673
736
  export declare function importFile(url: string, options?: ImportFileOptions): Promise<ImportFileResponse>;
674
737
  export interface ImportFileOptions {
675
- /** 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
+ */
676
743
  mediaType?: MediaType;
677
744
  /** File name that appears in the Media Manager. */
678
745
  displayName?: string | null;
@@ -689,26 +756,29 @@ export interface ImportFileOptions {
689
756
  mimeType?: string;
690
757
  /** A place to map an external entity to an imported file in the Wix Media Manager. */
691
758
  externalInfo?: ExternalInfo;
692
- /** Optional parameters that should be sent with the external URL */
759
+ /** Optional parameters that should be sent with the external URL. */
693
760
  urlParams?: Record<string, any> | null;
694
- /** Optional headers that should be sent with the external URL */
761
+ /** Optional headers that should be sent with the external URL. */
695
762
  urlHeaders?: Record<string, any> | null;
696
763
  }
697
764
  /**
698
- * 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.
699
766
  *
700
767
  * Returns information about the imported files. Use the `parentFolderId` parameter to specify in which folder you want each file to be imported to.
701
768
  * If no folder is specified, the file is imported to the `media-root` folder.
702
769
  *
703
770
  * To import files, you need to provide one of the following:
704
- * 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'.
705
- * 2. Pass each file's name and extenstion. For example, 'my-image.png'.
706
- * 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.
707
774
  *
708
- * >**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.
709
778
  * @public
710
779
  * @documentationMaturity preview
711
780
  * @requiredField options.importFileRequests.url
781
+ * @param options - Options to use when uploading multiple files.
712
782
  */
713
783
  export declare function bulkImportFiles(options?: BulkImportFilesOptions): Promise<BulkImportFilesResponse>;
714
784
  export interface BulkImportFilesOptions {
@@ -719,8 +789,11 @@ export interface BulkImportFilesOptions {
719
789
  * Retrieves a list of files in the Media Manager.
720
790
  *
721
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.
722
794
  * @public
723
795
  * @documentationMaturity preview
796
+ * @param options - Options to use when listing media files.
724
797
  */
725
798
  export declare function listFiles(options?: ListFilesOptions): Promise<ListFilesResponse>;
726
799
  export interface ListFilesOptions {
@@ -729,7 +802,11 @@ export interface ListFilesOptions {
729
802
  * Default:`media-root`.
730
803
  */
731
804
  parentFolderId?: string | null;
732
- /** File media type. */
805
+ /**
806
+ * Media file type.
807
+ *
808
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
809
+ */
733
810
  mediaTypes?: MediaType[];
734
811
  /** Whether the link to the imported file is public or private. */
735
812
  private?: boolean | null;
@@ -744,11 +821,14 @@ export interface ListFilesOptions {
744
821
  paging?: CursorPaging;
745
822
  }
746
823
  /**
747
- * 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.
748
825
  *
749
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.
750
829
  * @public
751
830
  * @documentationMaturity preview
831
+ * @param options - Options to specify which folders to search.
752
832
  */
753
833
  export declare function searchFiles(options?: SearchFilesOptions): Promise<SearchFilesResponse>;
754
834
  export interface SearchFilesOptions {
@@ -763,7 +843,11 @@ export interface SearchFilesOptions {
763
843
  * Default: `MEDIA_ROOT`.
764
844
  */
765
845
  rootFolder?: RootFolder;
766
- /** File media type. */
846
+ /**
847
+ * Media file type.
848
+ *
849
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
850
+ */
767
851
  mediaTypes?: MediaType[];
768
852
  /** Whether the link to the imported file is public or private. */
769
853
  private?: boolean | null;
@@ -778,21 +862,31 @@ export interface SearchFilesOptions {
778
862
  paging?: CursorPaging;
779
863
  }
780
864
  /**
781
- * 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.
782
866
  *
783
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.
784
870
  * @param fileId - File ID.
785
871
  * @public
786
872
  * @documentationMaturity preview
787
873
  * @requiredField fileId
874
+ * @param options - Options to use when generating a video file's streaming URL.
788
875
  */
789
876
  export declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<GenerateVideoStreamingUrlResponse>;
790
877
  export interface GenerateVideoStreamingUrlOptions {
791
- /** Video stream format. */
878
+ /**
879
+ * Video stream format.
880
+ *
881
+ * Supported values: `"UNKNOWN"`, `"HLS"`, `"DASH"`
882
+ *
883
+ *
884
+ */
792
885
  format?: StreamFormat;
793
886
  }
794
887
  /**
795
- * Deletes the specified files from the Media Manager. <br/>
888
+ * Deletes the specified files from the Media Manager.
889
+ *
796
890
  *
797
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.
798
892
  *
@@ -801,9 +895,13 @@ export interface GenerateVideoStreamingUrlOptions {
801
895
  * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
802
896
  * * Attempting to delete files that are already in the trash bin doesn't result in an error.
803
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).
804
- * * 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.
805
902
  * @public
806
903
  * @documentationMaturity preview
904
+ * @param options - Options to use when deleting files.
807
905
  */
808
906
  export declare function bulkDeleteFiles(options?: BulkDeleteFilesOptions): Promise<void>;
809
907
  export interface BulkDeleteFilesOptions {
@@ -817,6 +915,8 @@ export interface BulkDeleteFilesOptions {
817
915
  }
818
916
  /**
819
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.
820
920
  * @param fileIds - IDs of the files to restore from the Media Manager's trash bin.
821
921
  * @public
822
922
  * @documentationMaturity preview
@@ -824,11 +924,14 @@ export interface BulkDeleteFilesOptions {
824
924
  */
825
925
  export declare function bulkRestoreFilesFromTrashBin(fileIds: string[]): Promise<void>;
826
926
  /**
827
- * 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.
828
928
  *
829
- * >**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.
830
932
  * @public
831
933
  * @documentationMaturity preview
934
+ * @param options - Options to use when listing deleted files from the trash bin.
832
935
  */
833
936
  export declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<ListDeletedFilesResponse>;
834
937
  export interface ListDeletedFilesOptions {
@@ -837,7 +940,11 @@ export interface ListDeletedFilesOptions {
837
940
  * Default: `media-root`.
838
941
  */
839
942
  parentFolderId?: string | null;
840
- /** File media type. */
943
+ /**
944
+ * Media file type.
945
+ *
946
+ * Supported values: `"IMAGE"`, `"VIDEO"`, `"AUDIO"`, `"DOCUMENT"`, `"VECTOR"`
947
+ */
841
948
  mediaTypes?: MediaType[];
842
949
  /** Whether the link to the imported file is public or private. */
843
950
  private?: boolean | null;