@wix/auto_sdk_media_files 1.0.19 → 1.0.21

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.
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface FileDescriptor {
2
4
  /**
3
5
  * File ID. Generated when a file is uploaded to the Media Manager.
@@ -1446,6 +1448,56 @@ declare enum WebhookIdentityType {
1446
1448
  }
1447
1449
  /** @enumType */
1448
1450
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1451
+ type GenerateFileDownloadUrlValidationErrors = {
1452
+ ruleName?: 'INVALID_ASSET_KEY';
1453
+ };
1454
+ type GetFileDescriptorValidationErrors = {
1455
+ ruleName?: 'RESOURCE_NOT_FOUND';
1456
+ };
1457
+ type GetFileDescriptorsValidationErrors = {
1458
+ ruleName?: 'RESOURCE_NOT_FOUND';
1459
+ };
1460
+ type UpdateFileDescriptorValidationErrors = {
1461
+ ruleName?: 'FIELD_MASK_IS_EMPTY_OR_MISSING';
1462
+ };
1463
+ type GenerateFileUploadUrlValidationErrors = {
1464
+ ruleName?: 'MISMATCH_MIME_TYPE';
1465
+ } | {
1466
+ ruleName?: 'ZERO_FILE_SIZE';
1467
+ } | {
1468
+ ruleName?: 'UNSUPPORTED_FILE_FORMAT';
1469
+ } | {
1470
+ ruleName?: 'FILE_SIZE_OVER_LIMIT';
1471
+ } | {
1472
+ ruleName?: 'SITE_QUOTA_EXCEEDED';
1473
+ };
1474
+ type GenerateFileResumableUploadUrlValidationErrors = {
1475
+ ruleName?: 'MISMATCH_MIME_TYPE';
1476
+ } | {
1477
+ ruleName?: 'ZERO_FILE_SIZE';
1478
+ } | {
1479
+ ruleName?: 'UNSUPPORTED_FILE_FORMAT';
1480
+ } | {
1481
+ ruleName?: 'FILE_SIZE_OVER_LIMIT';
1482
+ };
1483
+ type ImportFileValidationErrors = {
1484
+ ruleName?: 'SITE_QUOTA_EXCEEDED';
1485
+ };
1486
+ type ListFilesValidationErrors = {
1487
+ ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1488
+ } | {
1489
+ ruleName?: 'UNSUPPORTED_SORT_VALUE';
1490
+ };
1491
+ type SearchFilesValidationErrors = {
1492
+ ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1493
+ } | {
1494
+ ruleName?: 'UNSUPPORTED_SORT_VALUE';
1495
+ };
1496
+ type ListDeletedFilesValidationErrors = {
1497
+ ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1498
+ } | {
1499
+ ruleName?: 'UNSUPPORTED_SORT_VALUE';
1500
+ };
1449
1501
  interface BaseEventMetadata {
1450
1502
  /**
1451
1503
  * App instance ID.
@@ -1493,18 +1545,191 @@ interface EventMetadata extends BaseEventMetadata {
1493
1545
  interface FileDescriptorDeletedEnvelope {
1494
1546
  metadata: EventMetadata;
1495
1547
  }
1548
+ /**
1549
+ * Triggered when a file is deleted.
1550
+ *
1551
+ * If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted.
1552
+ * @permissionScope Manage Stores
1553
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1554
+ * @permissionScope Manage Bookings Services and Settings
1555
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
1556
+ * @permissionScope Manage Events
1557
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1558
+ * @permissionScope Manage Challenges
1559
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1560
+ * @permissionScope Read Media Manager
1561
+ * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
1562
+ * @permissionScope Manage Media Manager
1563
+ * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
1564
+ * @permissionScope Manage Portfolio
1565
+ * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
1566
+ * @permissionScope Manage Blog
1567
+ * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1568
+ * @permissionScope Access Verticals by Automations
1569
+ * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
1570
+ * @permissionScope Manage Restaurants - all permissions
1571
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1572
+ * @permissionScope Set Up Automations
1573
+ * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1574
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1575
+ * @webhook
1576
+ * @eventType wix.media.site_media.v1.file_descriptor_deleted
1577
+ * @serviceIdentifier com.wix.media.site_media.v1.FilesService
1578
+ * @slug deleted
1579
+ */
1580
+ declare function onFileDescriptorDeleted(handler: (event: FileDescriptorDeletedEnvelope) => void | Promise<void>): void;
1496
1581
  interface FileDescriptorFileFailedEnvelope {
1497
1582
  data: FileFailed;
1498
1583
  metadata: EventMetadata;
1499
1584
  }
1585
+ /**
1586
+ * Triggered when a file fails during essential post-upload processing.
1587
+ * @permissionScope Manage Stores
1588
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1589
+ * @permissionScope Manage Bookings Services and Settings
1590
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
1591
+ * @permissionScope Manage Events
1592
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1593
+ * @permissionScope Manage Challenges
1594
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1595
+ * @permissionScope Read Media Manager
1596
+ * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
1597
+ * @permissionScope Manage Media Manager
1598
+ * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
1599
+ * @permissionScope Manage Portfolio
1600
+ * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
1601
+ * @permissionScope Manage Blog
1602
+ * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1603
+ * @permissionScope Access Verticals by Automations
1604
+ * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
1605
+ * @permissionScope Manage Restaurants - all permissions
1606
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1607
+ * @permissionScope Set Up Automations
1608
+ * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1609
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1610
+ * @webhook
1611
+ * @eventType wix.media.site_media.v1.file_descriptor_file_failed
1612
+ * @serviceIdentifier com.wix.media.site_media.v1.FilesService
1613
+ * @slug file_failed
1614
+ */
1615
+ declare function onFileDescriptorFileFailed(handler: (event: FileDescriptorFileFailedEnvelope) => void | Promise<void>): void;
1500
1616
  interface FileDescriptorFileReadyEnvelope {
1501
1617
  data: FileReady;
1502
1618
  metadata: EventMetadata;
1503
1619
  }
1620
+ /**
1621
+ * Triggered when a file is ready to be used, after any post-upload processing.
1622
+ *
1623
+ * This event is also triggred when a file is restored from the Media Manager's trash bin.
1624
+ * @permissionScope Manage Stores
1625
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1626
+ * @permissionScope Manage Bookings Services and Settings
1627
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
1628
+ * @permissionScope Manage Events
1629
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1630
+ * @permissionScope Manage Challenges
1631
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1632
+ * @permissionScope Read Media Manager
1633
+ * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
1634
+ * @permissionScope Manage Media Manager
1635
+ * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
1636
+ * @permissionScope Manage Portfolio
1637
+ * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
1638
+ * @permissionScope Manage Blog
1639
+ * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1640
+ * @permissionScope Access Verticals by Automations
1641
+ * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
1642
+ * @permissionScope Manage Restaurants - all permissions
1643
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1644
+ * @permissionScope Set Up Automations
1645
+ * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1646
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1647
+ * @webhook
1648
+ * @eventType wix.media.site_media.v1.file_descriptor_file_ready
1649
+ * @serviceIdentifier com.wix.media.site_media.v1.FilesService
1650
+ * @slug file_ready
1651
+ */
1652
+ declare function onFileDescriptorFileReady(handler: (event: FileDescriptorFileReadyEnvelope) => void | Promise<void>): void;
1504
1653
  interface FileDescriptorUpdatedEnvelope {
1505
1654
  entity: FileDescriptor;
1506
1655
  metadata: EventMetadata;
1507
1656
  }
1657
+ /**
1658
+ * Triggered when a file is updated, including when a file is moved to a different folder.
1659
+ * @permissionScope Manage Stores
1660
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1661
+ * @permissionScope Manage Bookings Services and Settings
1662
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
1663
+ * @permissionScope Manage Events
1664
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1665
+ * @permissionScope Manage Challenges
1666
+ * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1667
+ * @permissionScope Read Media Manager
1668
+ * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
1669
+ * @permissionScope Manage Media Manager
1670
+ * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
1671
+ * @permissionScope Manage Portfolio
1672
+ * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
1673
+ * @permissionScope Manage Blog
1674
+ * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1675
+ * @permissionScope Access Verticals by Automations
1676
+ * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
1677
+ * @permissionScope Manage Restaurants - all permissions
1678
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1679
+ * @permissionScope Set Up Automations
1680
+ * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1681
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1682
+ * @webhook
1683
+ * @eventType wix.media.site_media.v1.file_descriptor_updated
1684
+ * @serviceIdentifier com.wix.media.site_media.v1.FilesService
1685
+ * @slug updated
1686
+ */
1687
+ declare function onFileDescriptorUpdated(handler: (event: FileDescriptorUpdatedEnvelope) => void | Promise<void>): void;
1688
+ type FileDescriptorNonNullablePaths = `_id` | `displayName` | `url` | `hash` | `private` | `mediaType` | `media.image.colors.palette` | `media.image.faces` | `media.image.faces.${number}.confidence` | `media.image.faces.${number}.x` | `media.image.faces.${number}.y` | `media.image.faces.${number}.height` | `media.image.faces.${number}.width` | `media.audio._id` | `media.audio.assets` | `media.archive._id` | `media.archive.url` | `media.model3d._id` | `media.model3d.url` | `operationStatus` | `labels` | `siteId` | `state`;
1689
+ /**
1690
+ * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
1691
+ *
1692
+ * The compressed file can contain up to 1000 files.
1693
+ *
1694
+ * To generate a permanent URL for downloading a compressed file that contains multiple files in the Media Manager, call the Generate Files Download URL endpoint.
1695
+ * Since this is a permanent URL, it is less secure.
1696
+ * Therefore, to download private files, call the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
1697
+ * @public
1698
+ * @requiredField fileIds
1699
+ * @param fileIds - IDs of the files to download.
1700
+ *
1701
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1702
+ * Learn more in the File and Folder IDs article.
1703
+ * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD
1704
+ * @applicableIdentity APP
1705
+ * @fqn com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl
1706
+ */
1707
+ declare function generateFilesDownloadUrl(fileIds: string[]): Promise<NonNullablePaths<GenerateFilesDownloadUrlResponse, `downloadUrl`>>;
1708
+ /**
1709
+ * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
1710
+ *
1711
+ * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.
1712
+ * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
1713
+ *
1714
+ * Call this endpoint to grant external clients access to a private media file. Specify the `expirationInMinutes` parameter to set the URL expiration time, and the `expirationRedirectUrl` parameter to add a redirect url when the URL expires.
1715
+ *
1716
+ * To generate a permanent URL for downloading a compressed file that contains multiple files in the Media Manager, call the Generate Files Download URL endpoint.
1717
+ * Since this is a permanent URL, it is less secure.
1718
+ * Therefore, to download private files, call the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
1719
+ * @public
1720
+ * @requiredField fileId
1721
+ * @param options - Options to use when generating a file's download URL.
1722
+ * @param fileId - File ID.
1723
+ *
1724
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1725
+ * Learn more in the File and Folder IDs article.
1726
+ * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD_URL
1727
+ * @applicableIdentity APP
1728
+ * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl
1729
+ */
1730
+ declare function generateFileDownloadUrl(fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<NonNullablePaths<GenerateFileDownloadUrlResponse, `downloadUrls` | `downloadUrls.${number}.url` | `downloadUrls.${number}.assetKey`> & {
1731
+ __validationErrorsType?: GenerateFileDownloadUrlValidationErrors;
1732
+ }>;
1508
1733
  interface GenerateFileDownloadUrlOptions {
1509
1734
  /**
1510
1735
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
@@ -1543,6 +1768,73 @@ interface GenerateFileDownloadUrlOptions {
1543
1768
  */
1544
1769
  contentDisposition?: ContentDispositionWithLiterals;
1545
1770
  }
1771
+ /**
1772
+ * Gets information about a specific file in the Media Manager.
1773
+ * @public
1774
+ * @requiredField fileId
1775
+ * @param fileId - File ID.
1776
+ *
1777
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1778
+ * Learn more in the File and Folder IDs article.
1779
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1780
+ * @applicableIdentity APP
1781
+ * @returns Information about the file.
1782
+ * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptor
1783
+ */
1784
+ declare function getFileDescriptor(fileId: string): Promise<NonNullablePaths<FileDescriptor, FileDescriptorNonNullablePaths> & {
1785
+ __validationErrorsType?: GetFileDescriptorValidationErrors;
1786
+ }>;
1787
+ /**
1788
+ * Gets information about specific files in the Media Manager.
1789
+ * @public
1790
+ * @requiredField fileIds
1791
+ * @param fileIds - File IDs.
1792
+ *
1793
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1794
+ * Learn more in the File and Folder IDs article.
1795
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
1796
+ * @applicableIdentity APP
1797
+ * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptors
1798
+ */
1799
+ declare function getFileDescriptors(fileIds: string[]): Promise<NonNullablePaths<GetFileDescriptorsResponse, {
1800
+ [P in FileDescriptorNonNullablePaths]: `files.${number}.${P}`;
1801
+ }[FileDescriptorNonNullablePaths]> & {
1802
+ __validationErrorsType?: GetFileDescriptorsValidationErrors;
1803
+ }>;
1804
+ /**
1805
+ * Updates a file. <br />
1806
+ *
1807
+ * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.
1808
+ * @param file - The file to update.
1809
+ * @public
1810
+ * @requiredField file
1811
+ * @requiredField file._id
1812
+ * @permissionId MEDIA.SITE_MEDIA_FILES_UPDATE
1813
+ * @applicableIdentity APP
1814
+ * @returns Information about the updated file.
1815
+ * @fqn com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor
1816
+ */
1817
+ declare function updateFileDescriptor(file: NonNullablePaths<FileDescriptor, `_id`>): Promise<NonNullablePaths<FileDescriptor, FileDescriptorNonNullablePaths> & {
1818
+ __validationErrorsType?: UpdateFileDescriptorValidationErrors;
1819
+ }>;
1820
+ /**
1821
+ * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
1822
+ *
1823
+ * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see Upload API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/upload-api) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/upload-api)).
1824
+ * > **Notes:**
1825
+ * > - When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about knowing when a file is ready ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).
1826
+ * > - Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, call 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.
1827
+ * @param mimeType - File mime type.
1828
+ * @public
1829
+ * @requiredField mimeType
1830
+ * @param options - Options to use when generating a file's upload URL.
1831
+ * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD
1832
+ * @applicableIdentity APP
1833
+ * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl
1834
+ */
1835
+ declare function generateFileUploadUrl(mimeType: string, options?: GenerateFileUploadUrlOptions): Promise<NonNullablePaths<GenerateFileUploadUrlResponse, `uploadUrl`> & {
1836
+ __validationErrorsType?: GenerateFileUploadUrlValidationErrors;
1837
+ }>;
1546
1838
  interface GenerateFileUploadUrlOptions {
1547
1839
  /**
1548
1840
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
@@ -1583,6 +1875,24 @@ interface GenerateFileUploadUrlOptions {
1583
1875
  */
1584
1876
  filePath?: string | null;
1585
1877
  }
1878
+ /**
1879
+ * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
1880
+ *
1881
+ * 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.
1882
+ * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see Resumable Upload API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/resumable-upload-api) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api)).
1883
+ *
1884
+ * > **Note:** When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about knowing when a file is ready ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).
1885
+ * @param mimeType - File mime type.
1886
+ * @public
1887
+ * @requiredField mimeType
1888
+ * @param options - Options to use when generating a resumable upload URL.
1889
+ * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD
1890
+ * @applicableIdentity APP
1891
+ * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl
1892
+ */
1893
+ declare function generateFileResumableUploadUrl(mimeType: string, options?: GenerateFileResumableUploadUrlOptions): Promise<NonNullablePaths<GenerateFileResumableUploadUrlResponse, `uploadProtocol` | `uploadUrl` | `uploadToken`> & {
1894
+ __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors;
1895
+ }>;
1586
1896
  interface GenerateFileResumableUploadUrlOptions {
1587
1897
  /**
1588
1898
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
@@ -1623,6 +1933,35 @@ interface GenerateFileResumableUploadUrlOptions {
1623
1933
  */
1624
1934
  filePath?: string | null;
1625
1935
  }
1936
+ /**
1937
+ * Imports a file to the Media Manager using an external url.
1938
+ *
1939
+ * Returns information about the imported file.
1940
+ * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.
1941
+ * If no folder is specified, the file is imported to the `media-root` folder.
1942
+ *
1943
+ * >**Notes:**
1944
+ * > - The `media` property isn't returned in the `files` response object.
1945
+ * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about knowing when a file is ready ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).
1946
+ *
1947
+ * To import a file, you need to do one of the following:
1948
+ * - Specify its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
1949
+ * - Specify its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
1950
+ * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
1951
+ * > **Note:** If you want to validate the media type, specify the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
1952
+ * @param url - Publicly accessible external file URL.
1953
+ * @public
1954
+ * @requiredField url
1955
+ * @param options - Options to use when importing a single file.
1956
+ * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT
1957
+ * @applicableIdentity APP
1958
+ * @fqn com.wix.media.site_media.v1.FilesService.ImportFile
1959
+ */
1960
+ declare function importFile(url: string, options?: ImportFileOptions): Promise<NonNullablePaths<ImportFileResponse, {
1961
+ [P in FileDescriptorNonNullablePaths]: `file.${P}`;
1962
+ }[FileDescriptorNonNullablePaths]> & {
1963
+ __validationErrorsType?: ImportFileValidationErrors;
1964
+ }>;
1626
1965
  interface ImportFileOptions {
1627
1966
  /**
1628
1967
  * Media type of the file to import.
@@ -1669,10 +2008,86 @@ interface ImportFileOptions {
1669
2008
  */
1670
2009
  filePath?: string | null;
1671
2010
  }
2011
+ /**
2012
+ * Imports a bulk of files to the Media Manager using external urls. <br/>
2013
+ *
2014
+ * Returns information about the imported files.
2015
+ *
2016
+ * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
2017
+ * If no folder is specified, the file is imported to the `media-root` folder.
2018
+ *
2019
+ * >**Notes:**
2020
+ * > - The `media` property isn't returned in the `files` response object.
2021
+ * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about knowing when a file is ready ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).
2022
+ *
2023
+ * To import files, you need to do one of the following for each file:
2024
+ * - Specify its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
2025
+ * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
2026
+ * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
2027
+ * > **Note:** If you want to validate the media type, specify the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
2028
+ * @param importFileRequests - Information about the files to import.
2029
+ * @public
2030
+ * @requiredField importFileRequests
2031
+ * @requiredField importFileRequests.url
2032
+ * @param options - Options to use when uploading multiple files.
2033
+ * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT
2034
+ * @applicableIdentity APP
2035
+ * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFiles
2036
+ * @deprecated
2037
+ * @replacedBy com.wix.media.site_media.v1.FilesService.BulkImportFile
2038
+ * @targetRemovalDate 2024-03-31
2039
+ */
2040
+ declare function bulkImportFiles(importFileRequests: NonNullablePaths<ImportFileRequest, `url`>[]): Promise<NonNullablePaths<BulkImportFilesResponse, {
2041
+ [P in FileDescriptorNonNullablePaths]: `files.${number}.${P}`;
2042
+ }[FileDescriptorNonNullablePaths]>>;
2043
+ /**
2044
+ * Imports a bulk of files to the Media Manager using external urls. <br/>
2045
+ *
2046
+ * Returns information about the imported files.
2047
+ *
2048
+ * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
2049
+ * If no folder is specified, the file is imported to the `media-root` folder.
2050
+ *
2051
+ * >**Notes:**
2052
+ * > - The `media` property isn't returned in the `files` response object.
2053
+ * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about knowing when a file is ready ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).
2054
+ *
2055
+ * To import files, you need to do one of the following for each file:
2056
+ * - Specify its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
2057
+ * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
2058
+ * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
2059
+ * > **Note:** If you want to validate the media type, specify the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
2060
+ * @param importFileRequests - Information about the files to import.
2061
+ * @public
2062
+ * @requiredField importFileRequests
2063
+ * @requiredField importFileRequests.url
2064
+ * @param options - Options to include the file descriptor in the response.
2065
+ * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT
2066
+ * @applicableIdentity APP
2067
+ * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFile
2068
+ */
2069
+ declare function bulkImportFile(importFileRequests: NonNullablePaths<ImportFileRequest, `url`>[], options?: BulkImportFileOptions): Promise<NonNullablePaths<BulkImportFileResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
2070
+ [P in FileDescriptorNonNullablePaths]: `results.${number}.item.${P}`;
2071
+ }[FileDescriptorNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
1672
2072
  interface BulkImportFileOptions {
1673
2073
  /** Default: `true` */
1674
2074
  returnEntity?: boolean | null;
1675
2075
  }
2076
+ /**
2077
+ * Retrieves a list of files in the Media Manager.
2078
+ *
2079
+ * To retrieve a list of files within a specific folder in the Media Manager, specify the folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves the list of files in the root folder of the Media Manager.
2080
+ * @public
2081
+ * @param options - Options to use when listing media files.
2082
+ * @permissionId MEDIA.SITE_MEDIA_FILES_LIST
2083
+ * @applicableIdentity APP
2084
+ * @fqn com.wix.media.site_media.v1.FilesService.ListFiles
2085
+ */
2086
+ declare function listFiles(options?: ListFilesOptions): Promise<NonNullablePaths<ListFilesResponse, {
2087
+ [P in FileDescriptorNonNullablePaths]: `files.${number}.${P}`;
2088
+ }[FileDescriptorNonNullablePaths]> & {
2089
+ __validationErrorsType?: ListFilesValidationErrors;
2090
+ }>;
1676
2091
  interface ListFilesOptions {
1677
2092
  /**
1678
2093
  * ID of the file's parent folder. <br />
@@ -1698,6 +2113,21 @@ interface ListFilesOptions {
1698
2113
  /** Cursor and paging information. */
1699
2114
  paging?: CursorPaging;
1700
2115
  }
2116
+ /**
2117
+ * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
2118
+ *
2119
+ * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
2120
+ * @public
2121
+ * @param options - Options to specify which folders to search.
2122
+ * @permissionId MEDIA.SITE_MEDIA_FILES_LIST
2123
+ * @applicableIdentity APP
2124
+ * @fqn com.wix.media.site_media.v1.FilesService.SearchFiles
2125
+ */
2126
+ declare function searchFiles(options?: SearchFilesOptions): Promise<NonNullablePaths<SearchFilesResponse, {
2127
+ [P in FileDescriptorNonNullablePaths]: `files.${number}.${P}`;
2128
+ }[FileDescriptorNonNullablePaths]> & {
2129
+ __validationErrorsType?: SearchFilesValidationErrors;
2130
+ }>;
1701
2131
  interface SearchFilesOptions {
1702
2132
  /**
1703
2133
  * Term to search for. Possible terms include the value of a file's
@@ -1729,10 +2159,49 @@ interface SearchFilesOptions {
1729
2159
  /** Cursor and paging information. */
1730
2160
  paging?: CursorPaging;
1731
2161
  }
2162
+ /**
2163
+ * Generates a URL for streaming a specific video file in the Media Manager. <br/>
2164
+ *
2165
+ * To stream different assets of the file, specify 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.
2166
+ * @public
2167
+ * @requiredField fileId
2168
+ * @param options - Options to use when generating a video file's streaming URL.
2169
+ * @param fileId - File ID.
2170
+ *
2171
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2172
+ * Learn more in the File and Folder IDs article.
2173
+ * @permissionId MEDIA.SITE_MEDIA_FILES_READ
2174
+ * @applicableIdentity APP
2175
+ * @fqn com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl
2176
+ */
2177
+ declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<NonNullablePaths<GenerateVideoStreamingUrlResponse, `downloadUrl.url` | `downloadUrl.assetKey`>>;
1732
2178
  interface GenerateVideoStreamingUrlOptions {
1733
2179
  /** Video stream format. */
1734
2180
  format?: StreamFormatWithLiterals;
1735
2181
  }
2182
+ /**
2183
+ * Deletes the specified files from the Media Manager. <br/>
2184
+ *
2185
+ * The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, specify 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.
2186
+ *
2187
+ * Note the following:
2188
+ * * The specified files can be from different folders.
2189
+ * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
2190
+ * * Attempting to delete files that are already in the trash bin doesn't result in an error.
2191
+ * * If a site contains deleted media files, the deleted media files still appear on the site as the files are still in the Media Manager (in the trash bin).
2192
+ * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.
2193
+ * @public
2194
+ * @requiredField fileIds
2195
+ * @param options - Options to use when deleting files.
2196
+ * @param fileIds - IDs of the files to move to the Media Manager's trash bin.
2197
+ *
2198
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2199
+ * Learn more in the File and Folder IDs article.
2200
+ * @permissionId MEDIA.SITE_MEDIA_FILES_MOVE_TO_TRASH
2201
+ * @applicableIdentity APP
2202
+ * @fqn com.wix.media.site_media.v1.FilesService.BulkDeleteFiles
2203
+ */
2204
+ declare function bulkDeleteFiles(fileIds: string[], options?: BulkDeleteFilesOptions): Promise<void>;
1736
2205
  interface BulkDeleteFilesOptions {
1737
2206
  /**
1738
2207
  * Whether the specified files are permanently deleted. <br />
@@ -1740,6 +2209,34 @@ interface BulkDeleteFilesOptions {
1740
2209
  */
1741
2210
  permanent?: boolean;
1742
2211
  }
2212
+ /**
2213
+ * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
2214
+ * @public
2215
+ * @requiredField fileIds
2216
+ * @param fileIds - IDs of the files to restore from the Media Manager's trash bin.
2217
+ *
2218
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2219
+ * Learn more in the File and Folder IDs article.
2220
+ * @permissionId MEDIA.SITE_MEDIA_FILES_RESTORE_FROM_TRASH
2221
+ * @applicableIdentity APP
2222
+ * @fqn com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin
2223
+ */
2224
+ declare function bulkRestoreFilesFromTrashBin(fileIds: string[]): Promise<void>;
2225
+ /**
2226
+ * Retrieves a list of files in the Media Manager's trash bin. <br/>
2227
+ *
2228
+ * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
2229
+ * @public
2230
+ * @param options - Options to use when listing deleted files from the trash bin.
2231
+ * @permissionId MEDIA.SITE_MEDIA_FILES_LIST_DELETED
2232
+ * @applicableIdentity APP
2233
+ * @fqn com.wix.media.site_media.v1.FilesService.ListDeletedFiles
2234
+ */
2235
+ declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<NonNullablePaths<ListDeletedFilesResponse, {
2236
+ [P in FileDescriptorNonNullablePaths]: `files.${number}.${P}`;
2237
+ }[FileDescriptorNonNullablePaths]> & {
2238
+ __validationErrorsType?: ListDeletedFilesValidationErrors;
2239
+ }>;
1743
2240
  interface ListDeletedFilesOptions {
1744
2241
  /**
1745
2242
  * ID of the file's parent folder. <br />
@@ -1766,4 +2263,4 @@ interface ListDeletedFilesOptions {
1766
2263
  paging?: CursorPaging;
1767
2264
  }
1768
2265
 
1769
- export { type FontMedia as $, StreamFormat as A, type BulkImportFilesResponse as B, ContentDisposition as C, type FileMedia as D, type FileMediaMediaOneOf as E, type FileDescriptor as F, type GenerateFilesDownloadUrlResponse as G, type ImageMedia as H, type ImportFileOptions as I, type FocalPoint as J, type Colors as K, type ListFilesOptions as L, MediaType as M, Namespace as N, OperationStatus as O, type Color as P, type ColorRGB as Q, RootFolder as R, type SearchFilesOptions as S, type FaceRecognition as T, UploadProtocol as U, type VideoResolution as V, WebhookIdentityType as W, type AudioV2 as X, type Archive as Y, type Model3D as Z, type OtherMedia as _, type GenerateFileDownloadUrlOptions as a, type FontAsset as a0, type IdentityInfo as a1, type FileReady as a2, type ExternalInfo as a3, type FileFailed as a4, type ApplicationError as a5, type DraftFilePublished as a6, type BulkAnnotateImagesRequest as a7, type BulkAnnotateImagesResponse as a8, type BulkAnnotateImageResult as a9, type Cursors as aA, type SearchFilesRequest as aB, type GenerateVideoStreamingUrlRequest as aC, type GenerateWebSocketTokenRequest as aD, type GenerateWebSocketTokenResponse as aE, type BulkDeleteFilesRequest as aF, type BulkDeleteFilesResponse as aG, type BulkRestoreFilesFromTrashBinRequest as aH, type BulkRestoreFilesFromTrashBinResponse as aI, type ListDeletedFilesRequest as aJ, type BulkPublishDraftFilesRequest as aK, type BulkPublishDraftFilesResponse as aL, type BulkPublishDraftFileResult as aM, type UpdateFileRequest as aN, type UpdateFileResponse as aO, type DomainEvent as aP, type DomainEventBodyOneOf as aQ, type EntityCreatedEvent as aR, type RestoreInfo as aS, type EntityUpdatedEvent as aT, type EntityDeletedEvent as aU, type ActionEvent as aV, type MessageEnvelope as aW, type IdentificationData as aX, type IdentificationDataIdOneOf as aY, type BaseEventMetadata as aZ, type EventMetadata as a_, type ItemMetadata as aa, type BulkActionMetadata as ab, type GenerateFilesDownloadUrlRequest as ac, type GenerateFileDownloadUrlRequest as ad, type DownloadUrl as ae, type ServiceError as af, type GetFileDescriptorRequest as ag, type GetFileDescriptorResponse as ah, type GetFileDescriptorsRequest as ai, type UpdateFileDescriptorRequest as aj, type UpdateFileDescriptorResponse as ak, type UnsupportedRequestValueError as al, type GenerateFileUploadUrlRequest as am, type ImageAnnotationConfigurations as an, type SiteQuotaExceededError as ao, type TotalQuota as ap, type Plans as aq, type Plan as ar, type GenerateFileResumableUploadUrlRequest as as, type BulkImportFilesRequest as at, type BulkImportFileRequest as au, type BulkImportFileResult as av, type ListFilesRequest as aw, type Sorting as ax, type CursorPaging as ay, type PagingMetadataV2 as az, type GenerateFileDownloadUrlResponse as b, type GetFileDescriptorsResponse as c, type GenerateFileUploadUrlOptions as d, type GenerateFileUploadUrlResponse as e, type GenerateFileResumableUploadUrlOptions as f, type GenerateFileResumableUploadUrlResponse as g, type ImportFileResponse as h, type ImportFileRequest as i, type BulkImportFileOptions as j, type BulkImportFileResponse as k, type ListFilesResponse as l, type SearchFilesResponse as m, type GenerateVideoStreamingUrlOptions as n, type GenerateVideoStreamingUrlResponse as o, type BulkDeleteFilesOptions as p, type ListDeletedFilesOptions as q, type ListDeletedFilesResponse as r, type FileDescriptorDeletedEnvelope as s, type FileDescriptorFileFailedEnvelope as t, type FileDescriptorFileReadyEnvelope as u, type FileDescriptorUpdatedEnvelope as v, State as w, IdentityType as x, ImageAnnotationType as y, SortOrder as z };
2266
+ export { type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileDescriptor, type FileDescriptorDeletedEnvelope, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileDescriptorUpdatedEnvelope, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FocalPoint, type FontAsset, type FontMedia, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorDeleted, onFileDescriptorFileFailed, onFileDescriptorFileReady, onFileDescriptorUpdated, searchFiles, updateFileDescriptor };