@wix/auto_sdk_media_files 1.0.65 → 1.0.66

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 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/media-site-media-v1-file-descriptor-files.public.ts","../../src/media-site-media-v1-file-descriptor-files.universal.ts","../../src/media-site-media-v1-file-descriptor-files.http.ts","../../src/media-site-media-v1-file-descriptor-files.context.ts"],"sourcesContent":["export * from './src/media-site-media-v1-file-descriptor-files.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkDeleteFilesOptions,\n BulkImportFileOptions,\n BulkImportFileResponse,\n BulkImportFilesResponse,\n FileDescriptor,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n FileDescriptorQuery,\n FilesQueryBuilder,\n GenerateFileDownloadUrlOptions,\n GenerateFileDownloadUrlResponse,\n GenerateFileDownloadUrlValidationErrors,\n GenerateFileResumableUploadUrlOptions,\n GenerateFileResumableUploadUrlResponse,\n GenerateFileResumableUploadUrlValidationErrors,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlResponse,\n GenerateFileUploadUrlValidationErrors,\n GenerateFilesDownloadUrlResponse,\n GenerateVideoStreamingUrlOptions,\n GenerateVideoStreamingUrlResponse,\n GetFileDescriptorValidationErrors,\n GetFileDescriptorsResponse,\n GetFileDescriptorsValidationErrors,\n ImportFileOptions,\n ImportFileRequest,\n ImportFileResponse,\n ImportFileValidationErrors,\n ListDeletedFilesOptions,\n ListDeletedFilesResponse,\n ListDeletedFilesValidationErrors,\n ListFilesOptions,\n ListFilesResponse,\n ListFilesValidationErrors,\n QueryFileDescriptorsResponse,\n SearchFilesOptions,\n SearchFilesResponse,\n SearchFilesValidationErrors,\n UpdateFileDescriptorValidationErrors,\n bulkDeleteFiles as universalBulkDeleteFiles,\n bulkImportFile as universalBulkImportFile,\n bulkImportFiles as universalBulkImportFiles,\n bulkRestoreFilesFromTrashBin as universalBulkRestoreFilesFromTrashBin,\n generateFileDownloadUrl as universalGenerateFileDownloadUrl,\n generateFileResumableUploadUrl as universalGenerateFileResumableUploadUrl,\n generateFileUploadUrl as universalGenerateFileUploadUrl,\n generateFilesDownloadUrl as universalGenerateFilesDownloadUrl,\n generateVideoStreamingUrl as universalGenerateVideoStreamingUrl,\n getFileDescriptor as universalGetFileDescriptor,\n getFileDescriptors as universalGetFileDescriptors,\n importFile as universalImportFile,\n listDeletedFiles as universalListDeletedFiles,\n listFiles as universalListFiles,\n queryFileDescriptors as universalQueryFileDescriptors,\n searchFiles as universalSearchFiles,\n typedQueryFileDescriptors as universalTypedQueryFileDescriptors,\n updateFileDescriptor as universalUpdateFileDescriptor,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/media' };\n\nexport function generateFilesDownloadUrl(\n httpClient: HttpClient\n): GenerateFilesDownloadUrlSignature {\n return (fileIds: string[]) =>\n universalGenerateFilesDownloadUrl(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFilesDownloadUrlSignature {\n /**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @param - IDs of the files to download.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<\n NonNullablePaths<GenerateFilesDownloadUrlResponse, `downloadUrl`, 2>\n >;\n}\n\nexport function generateFileDownloadUrl(\n httpClient: HttpClient\n): GenerateFileDownloadUrlSignature {\n return (fileId: string, options?: GenerateFileDownloadUrlOptions) =>\n universalGenerateFileDownloadUrl(\n fileId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileDownloadUrlSignature {\n /**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @param - Options to use when generating a file's download URL.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<\n NonNullablePaths<\n GenerateFileDownloadUrlResponse,\n | `downloadUrls`\n | `downloadUrls.${number}.url`\n | `downloadUrls.${number}.assetKey`,\n 4\n > & {\n __validationErrorsType?: GenerateFileDownloadUrlValidationErrors;\n }\n >;\n}\n\nexport function getFileDescriptor(\n httpClient: HttpClient\n): GetFileDescriptorSignature {\n return (fileId: string) =>\n universalGetFileDescriptor(\n fileId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFileDescriptorSignature {\n /**\n * Gets information about a specific file in the Media Manager.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @returns Information about the file.\n */\n (fileId: string): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorValidationErrors;\n }\n >;\n}\n\nexport function getFileDescriptors(\n httpClient: HttpClient\n): GetFileDescriptorsSignature {\n return (fileIds: string[]) =>\n universalGetFileDescriptors(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFileDescriptorsSignature {\n /**\n * Gets information about specific files in the Media Manager.\n * @param - File IDs.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<\n NonNullablePaths<\n GetFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorsValidationErrors;\n }\n >;\n}\n\nexport function updateFileDescriptor(\n httpClient: HttpClient\n): UpdateFileDescriptorSignature {\n return (file: NonNullablePaths<FileDescriptor, `_id`, 2>) =>\n universalUpdateFileDescriptor(\n file,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateFileDescriptorSignature {\n /**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n * @param - The file to update.\n * @returns Information about the updated file.\n */\n (file: NonNullablePaths<FileDescriptor, `_id`, 2>): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: UpdateFileDescriptorValidationErrors;\n }\n >;\n}\n\nexport function generateFileUploadUrl(\n httpClient: HttpClient\n): GenerateFileUploadUrlSignature {\n return (mimeType: string, options?: GenerateFileUploadUrlOptions) =>\n universalGenerateFileUploadUrl(\n mimeType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileUploadUrlSignature {\n /**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n * @param - File mime type.\n * @param - Options to use when generating a file's upload URL.\n */\n (mimeType: string, options?: GenerateFileUploadUrlOptions): Promise<\n NonNullablePaths<GenerateFileUploadUrlResponse, `uploadUrl`, 2> & {\n __validationErrorsType?: GenerateFileUploadUrlValidationErrors;\n }\n >;\n}\n\nexport function generateFileResumableUploadUrl(\n httpClient: HttpClient\n): GenerateFileResumableUploadUrlSignature {\n return (mimeType: string, options?: GenerateFileResumableUploadUrlOptions) =>\n universalGenerateFileResumableUploadUrl(\n mimeType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileResumableUploadUrlSignature {\n /**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @param - File mime type.\n * @param - Options to use when generating a resumable upload URL.\n */\n (mimeType: string, options?: GenerateFileResumableUploadUrlOptions): Promise<\n NonNullablePaths<\n GenerateFileResumableUploadUrlResponse,\n `uploadProtocol` | `uploadUrl` | `uploadToken`,\n 2\n > & {\n __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors;\n }\n >;\n}\n\nexport function importFile(httpClient: HttpClient): ImportFileSignature {\n return (url: string, options?: ImportFileOptions) =>\n universalImportFile(\n url,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ImportFileSignature {\n /**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Publicly accessible external file URL.\n * @param - Options to use when importing a single file.\n */\n (url: string, options?: ImportFileOptions): Promise<\n NonNullablePaths<\n ImportFileResponse,\n | `file._id`\n | `file.displayName`\n | `file.url`\n | `file.hash`\n | `file.private`\n | `file.mediaType`\n | `file.media.image.colors.palette`\n | `file.media.image.faces`\n | `file.media.image.faces.${number}.confidence`\n | `file.media.image.faces.${number}.x`\n | `file.media.image.faces.${number}.y`\n | `file.media.image.faces.${number}.height`\n | `file.media.image.faces.${number}.width`\n | `file.media.audio._id`\n | `file.media.audio.assets`\n | `file.media.archive._id`\n | `file.media.archive.url`\n | `file.media.model3d._id`\n | `file.media.model3d.url`\n | `file.operationStatus`\n | `file.labels`\n | `file.siteId`\n | `file.state`,\n 7\n > & {\n __validationErrorsType?: ImportFileValidationErrors;\n }\n >;\n}\n\nexport function bulkImportFiles(\n httpClient: HttpClient\n): BulkImportFilesSignature {\n return (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n ) =>\n universalBulkImportFiles(\n importFileRequests,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkImportFilesSignature {\n /**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Information about the files to import.\n * @param - Options to use when uploading multiple files.\n * @deprecated\n */\n (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n ): Promise<\n NonNullablePaths<\n BulkImportFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n >;\n}\n\nexport function bulkImportFile(\n httpClient: HttpClient\n): BulkImportFileSignature {\n return (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n ) =>\n universalBulkImportFile(\n importFileRequests,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkImportFileSignature {\n /**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Information about the files to import.\n * @param - Options to include the file descriptor in the response.\n */\n (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n ): Promise<\n NonNullablePaths<\n BulkImportFileResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.displayName`\n | `results.${number}.item.url`\n | `results.${number}.item.hash`\n | `results.${number}.item.private`\n | `results.${number}.item.mediaType`\n | `results.${number}.item.operationStatus`\n | `results.${number}.item.siteId`\n | `results.${number}.item.state`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function listFiles(httpClient: HttpClient): ListFilesSignature {\n return (options?: ListFilesOptions) =>\n universalListFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListFilesSignature {\n /**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n * @param - Options to use when listing media files.\n */\n (options?: ListFilesOptions): Promise<\n NonNullablePaths<\n ListFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListFilesValidationErrors;\n }\n >;\n}\n\nexport function searchFiles(httpClient: HttpClient): SearchFilesSignature {\n return (options?: SearchFilesOptions) =>\n universalSearchFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchFilesSignature {\n /**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n * @param - Options to specify which folders to search.\n */\n (options?: SearchFilesOptions): Promise<\n NonNullablePaths<\n SearchFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: SearchFilesValidationErrors;\n }\n >;\n}\n\nexport function generateVideoStreamingUrl(\n httpClient: HttpClient\n): GenerateVideoStreamingUrlSignature {\n return (fileId: string, options?: GenerateVideoStreamingUrlOptions) =>\n universalGenerateVideoStreamingUrl(\n fileId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateVideoStreamingUrlSignature {\n /**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n * @param - Options to use when generating a video file's streaming URL.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<\n NonNullablePaths<\n GenerateVideoStreamingUrlResponse,\n `downloadUrl.url` | `downloadUrl.assetKey`,\n 3\n >\n >;\n}\n\nexport function bulkDeleteFiles(\n httpClient: HttpClient\n): BulkDeleteFilesSignature {\n return (fileIds: string[], options?: BulkDeleteFilesOptions) =>\n universalBulkDeleteFiles(\n fileIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFilesSignature {\n /**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n * @param - Options to use when deleting files.\n * @param - IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[], options?: BulkDeleteFilesOptions): Promise<void>;\n}\n\nexport function bulkRestoreFilesFromTrashBin(\n httpClient: HttpClient\n): BulkRestoreFilesFromTrashBinSignature {\n return (fileIds: string[]) =>\n universalBulkRestoreFilesFromTrashBin(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkRestoreFilesFromTrashBinSignature {\n /**\n * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.\n * @param - IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<void>;\n}\n\nexport function listDeletedFiles(\n httpClient: HttpClient\n): ListDeletedFilesSignature {\n return (options?: ListDeletedFilesOptions) =>\n universalListDeletedFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDeletedFilesSignature {\n /**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n * @param - Options to use when listing deleted files from the trash bin.\n */\n (options?: ListDeletedFilesOptions): Promise<\n NonNullablePaths<\n ListDeletedFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListDeletedFilesValidationErrors;\n }\n >;\n}\n\nexport function queryFileDescriptors(\n httpClient: HttpClient\n): QueryFileDescriptorsSignature {\n return () =>\n universalQueryFileDescriptors(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryFileDescriptorsSignature {\n /** */\n (): FilesQueryBuilder;\n}\n\nexport function typedQueryFileDescriptors(\n httpClient: HttpClient\n): TypedQueryFileDescriptorsSignature {\n return (query: FileDescriptorQuery) =>\n universalTypedQueryFileDescriptors(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryFileDescriptorsSignature {\n /** */\n (query: FileDescriptorQuery): Promise<\n NonNullablePaths<\n QueryFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n >;\n}\n\nexport const onFileDescriptorFileFailed = EventDefinition(\n 'wix.media.site_media.v1.file_descriptor_file_failed',\n true,\n (event: FileDescriptorFileFailedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<FileDescriptorFileFailedEnvelope>();\nexport const onFileDescriptorFileReady = EventDefinition(\n 'wix.media.site_media.v1.file_descriptor_file_ready',\n true,\n (event: FileDescriptorFileReadyEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.file.createdDate' },\n { path: 'data.file.updatedDate' },\n { path: 'data.file.lastUsedDate' },\n { path: 'data.file.media.archive.urlExpirationDate' },\n { path: 'data.file.media.model3d.urlExpirationDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'data.file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'data.file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'data.file.media.image.image' },\n { path: 'data.file.media.image.previewImage' },\n { path: 'data.file.media.vector.image' },\n { path: 'data.file.media.vector.previewImage' },\n { path: 'data.file.media.model3d.thumbnail' },\n { path: 'data.file.media.icon.image' },\n { path: 'data.file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'data.file.media.image.faces.confidence' },\n { path: 'data.file.media.vector.faces.confidence' },\n { path: 'data.file.media.icon.faces.confidence' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'data.file.media.audio.assets', isRepeated: true }],\n },\n ])\n )\n)<FileDescriptorFileReadyEnvelope>();\n\nexport {\n AccountInfo,\n ActionEvent,\n ApplicationError,\n Archive,\n AudioV2,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkAnnotateImageResult,\n BulkAnnotateImagesRequest,\n BulkAnnotateImagesResponse,\n BulkDeleteFilesOptions,\n BulkDeleteFilesRequest,\n BulkDeleteFilesResponse,\n BulkImportFileOptions,\n BulkImportFileRequest,\n BulkImportFileResponse,\n BulkImportFileResult,\n BulkImportFilesRequest,\n BulkImportFilesResponse,\n BulkInternalImportFilesRequest,\n BulkInternalImportFilesResponse,\n BulkPublishDraftFileResult,\n BulkPublishDraftFilesRequest,\n BulkPublishDraftFilesResponse,\n BulkRestoreFilesFromTrashBinRequest,\n BulkRestoreFilesFromTrashBinResponse,\n Color,\n ColorRGB,\n Colors,\n CommonCursorPaging,\n ContentDisposition,\n CursorPaging,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n DownloadUrl,\n DraftFilePublished,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExternalInfo,\n FaceRecognition,\n FileDescriptor,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n FileDescriptorQuerySpec,\n FileFailed,\n FileMedia,\n FileMediaMediaOneOf,\n FileReady,\n FilesQueryBuilder,\n FilesQueryResult,\n FocalPoint,\n FontAsset,\n FontMedia,\n GenerateAnimatedVectorRequest,\n GenerateAnimatedVectorResponse,\n GenerateFileDownloadUrlOptions,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n GenerateFileResumableUploadUrlOptions,\n GenerateFileResumableUploadUrlRequest,\n GenerateFileResumableUploadUrlResponse,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlRequest,\n GenerateFileUploadUrlResponse,\n GenerateFilesDownloadUrlRequest,\n GenerateFilesDownloadUrlResponse,\n GenerateVideoStreamingUrlOptions,\n GenerateVideoStreamingUrlRequest,\n GenerateVideoStreamingUrlResponse,\n GenerateWebSocketTokenRequest,\n GenerateWebSocketTokenResponse,\n GetFileDescriptorRequest,\n GetFileDescriptorResponse,\n GetFileDescriptorsRequest,\n GetFileDescriptorsResponse,\n GetSiteFileDescriptorsRequest,\n GetSiteFileDescriptorsResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentityInfo,\n IdentityType,\n ImageAnnotationConfigurations,\n ImageAnnotationType,\n ImageMedia,\n ImportFileOptions,\n ImportFileRequest,\n ImportFileResponse,\n ItemMetadata,\n ListDeletedFilesOptions,\n ListDeletedFilesRequest,\n ListDeletedFilesResponse,\n ListFilesOptions,\n ListFilesRequest,\n ListFilesResponse,\n MediaType,\n MessageEnvelope,\n Model3D,\n Namespace,\n OperationStatus,\n OtherMedia,\n PagingMetadataV2,\n Plan,\n Plans,\n QueryFileDescriptorsRequest,\n QueryFileDescriptorsResponse,\n RestoreInfo,\n RootFolder,\n SearchFilesOptions,\n SearchFilesRequest,\n SearchFilesResponse,\n ServiceError,\n SiteQuotaExceededError,\n SortOrder,\n Sorting,\n State,\n StreamFormat,\n TotalQuota,\n UnsupportedRequestValueError,\n UpdateFileDescriptorRequest,\n UpdateFileDescriptorResponse,\n UpdateFileRequest,\n UpdateFileResponse,\n UploadProtocol,\n VideoResolution,\n WebhookIdentityType,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptor from './media-site-media-v1-file-descriptor-files.http.js';\n// @ts-ignore\nimport { transformSDKAudioToRESTAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformSDKDocumentToRESTDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface FileDescriptor {\n /**\n * File ID. Generated when a file is uploaded to the Media Manager.\n * @readonly\n * @maxLength 1000\n */\n _id?: string;\n /**\n * File name as it appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string;\n /**\n * Static URL of the file.\n * @readonly\n * @format WEB_URL\n */\n url?: string;\n /**\n * ID of the file's parent folder.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File hash.\n * @readonly\n * @maxLength 100\n */\n hash?: string;\n /**\n * Size of the uploaded file in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n * @readonly\n */\n private?: boolean;\n /**\n * Media file type.\n * @readonly\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Media file content.\n * @readonly\n */\n media?: FileMedia;\n /**\n * Status of the file that was uploaded.\n * @readonly\n */\n operationStatus?: OperationStatusWithLiterals;\n /**\n * URL where the file was uploaded from.\n * @readonly\n * @format WEB_URL\n */\n sourceUrl?: string | null;\n /**\n * URL of the file's thumbnail.\n * @readonly\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 100\n * @maxLength 200\n */\n labels?: string[];\n /**\n * Date and time the file was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the file was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * The Wix site ID where the media file is stored.\n * @readonly\n * @maxLength 100\n */\n siteId?: string;\n /**\n * State of the file.\n * @readonly\n */\n state?: StateWithLiterals;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n AUDIO = 'AUDIO',\n DOCUMENT = 'DOCUMENT',\n VECTOR = 'VECTOR',\n ARCHIVE = 'ARCHIVE',\n MODEL3D = 'MODEL3D',\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT'\n | 'VECTOR'\n | 'ARCHIVE'\n | 'MODEL3D'\n | 'OTHER';\n\nexport interface FileMedia extends FileMediaMediaOneOf {\n /** Information about the image. */\n image?: ImageMedia;\n /** Information about the video. */\n video?: string;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: string;\n /** Information about the vector. */\n vector?: ImageMedia;\n /** Information about the archive. */\n archive?: Archive;\n /** Information about the 3D Model. */\n model3d?: Model3D;\n}\n\n/** @oneof */\nexport interface FileMediaMediaOneOf {\n /** Information about the image. */\n image?: ImageMedia;\n /** Information about the video. */\n video?: string;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: string;\n /** Information about the vector. */\n vector?: ImageMedia;\n /** Information about the archive. */\n archive?: Archive;\n /** Information about the 3D Model. */\n model3d?: Model3D;\n}\n\nexport interface ImageMedia {\n /** Image data. */\n image?: string;\n /** Image colors. */\n colors?: Colors;\n /**\n * Information about faces in the image. Use to crop images without cutting out faces.\n * @maxSize 100\n */\n faces?: FaceRecognition[];\n /**\n * Information about the image preview.\n * You can use this to display a preview for private images.\n */\n previewImage?: string;\n /**\n * Optional, An AI generated description of the image\n * @readonly\n * @maxLength 300\n */\n caption?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface Colors {\n /** Main color of the image. */\n prominent?: Color;\n /**\n * Color palette of the image.\n * @maxSize 100\n */\n palette?: Color[];\n}\n\nexport interface Color {\n /**\n * HEX color.\n * @format COLOR_HEX\n */\n hex?: string | null;\n /** RGB color. */\n rgb?: ColorRGB;\n}\n\nexport interface ColorRGB {\n /**\n * Red channel.\n * @max 255\n */\n r?: number | null;\n /**\n * Green channel.\n * @max 255\n */\n g?: number | null;\n /**\n * Blue channel.\n * @max 255\n */\n b?: number | null;\n}\n\n/**\n * Using this object you can crop images while centering on faces\n * ------------------------\n * | |\n * | x,y |\n * | *-------- |\n * | | . . | |\n * | | | | height |\n * | | \\ / | |\n * | | | |\n * | --------- |\n * | width |\n * | |\n * |______________________|\n */\nexport interface FaceRecognition {\n /** The accuracy percentage of the face recognition. The likelihood that a face is detected. */\n confidence?: number;\n /** Top left x pixel coordinate of the face. */\n x?: number;\n /** Top left y pixel coordinate of the face. */\n y?: number;\n /** Face pixel height. */\n height?: number;\n /** Face pixel width. */\n width?: number;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /**\n * Video format\n * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'\n * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]\n */\n format?: string;\n}\n\nexport interface AudioV2 {\n /**\n * WixMedia ID.\n * @maxLength 200\n */\n _id?: string;\n /**\n * Audio formats available for this file.\n * @maxSize 100\n */\n assets?: string[];\n /**\n * Audio bitrate.\n * @readonly\n */\n bitrate?: number | null;\n /**\n * Audio format.\n * @readonly\n * @maxLength 100\n */\n format?: string | null;\n /**\n * Audio duration in seconds.\n * @readonly\n */\n duration?: number | null;\n /**\n * Audio size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { maxScale:0 }\n */\n sizeInBytes?: string | null;\n}\n\nexport interface Archive {\n /** WixMedia ID. */\n _id?: string;\n /** Archive URL. */\n url?: string;\n /**\n * Archive URL expiration date (when relevant).\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * Archive size in bytes.\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /** Archive filename. */\n filename?: string | null;\n}\n\nexport interface Model3D {\n /** WixMedia 3D ID. */\n _id?: string;\n /** 3D URL. */\n url?: string;\n /** 3D thumbnail Image */\n thumbnail?: string;\n /** 3D alt text. */\n altText?: string | null;\n /**\n * 3D URL expiration date (when relevant).\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * 3D filename.\n * @readonly\n */\n filename?: string | null;\n /**\n * 3D size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n}\n\nexport interface OtherMedia {\n /**\n * WixMedia ID. for use with Site Media APIs only\n * @maxLength 200\n */\n _id?: string;\n /**\n * The media type of the file: 'package', 'raw'\n * @readonly\n * @maxLength 100\n */\n internalMediaType?: string | null;\n /**\n * size in bytes. Optional.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * The file URL.\n * @format WEB_URL\n */\n url?: string;\n}\n\nexport interface FontMedia {\n /**\n * WixMedia ID. for use with Site Media APIs only\n * @maxLength 200\n */\n _id?: string | null;\n /**\n * size in bytes. Optional.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * The format of the font asset. ttf, woff, woff2\n * @maxLength 200\n */\n format?: string | null;\n /**\n * The font family name.\n * @maxLength 100\n */\n family?: string | null;\n /**\n * The font name\n * @maxLength 100\n */\n fontName?: string | null;\n /**\n * Font formats available for this file.\n * @maxSize 5\n */\n assets?: FontAsset[];\n}\n\nexport interface FontAsset {\n /**\n * Keys for downloading different assets of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxLength 100\n */\n assetKey?: string | null;\n /**\n * The URL of the font asset.\n * @maxLength 200\n */\n url?: string | null;\n /**\n * The format of the font asset. ttf, woff, woff2\n * @maxLength 200\n */\n format?: string | null;\n}\n\nexport enum OperationStatus {\n /** The file failed to upload, for example, during media post processing. */\n FAILED = 'FAILED',\n /** The file uploaded, finished all processing, and is ready for use. */\n READY = 'READY',\n /** The file is processing and the URLs are not yet available. This response is returned when importing a file. */\n PENDING = 'PENDING',\n}\n\n/** @enumType */\nexport type OperationStatusWithLiterals =\n | OperationStatus\n | 'FAILED'\n | 'READY'\n | 'PENDING';\n\nexport enum State {\n /** File is ready for consumption */\n OK = 'OK',\n /** Deleted file */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'OK' | 'DELETED';\n\nexport enum Namespace {\n /** No namespaces */\n NO_NAMESPACE = 'NO_NAMESPACE',\n /** Custom namespace */\n OTHERS = 'OTHERS',\n /** Wix videos */\n WIX_VIDEO = 'WIX_VIDEO',\n /** Wix music */\n WIX_MUSIC = 'WIX_MUSIC',\n /** Albums and art store */\n ALBUMS_AND_ART_STORE = 'ALBUMS_AND_ART_STORE',\n /** Wix ecom */\n WIX_ECOM = 'WIX_ECOM',\n /** Photo share */\n PHOTO_SHARE_APP = 'PHOTO_SHARE_APP',\n /** Sharing app */\n SHARING_APP = 'SHARING_APP',\n /** Chat (engage) */\n CHAT = 'CHAT',\n /** Logo builder */\n LOGO_BUILDER = 'LOGO_BUILDER',\n /** Albums old namespace */\n ALBUMS_OLD = 'ALBUMS_OLD',\n /** Mobile chat */\n CHAT_MOBILE = 'CHAT_MOBILE',\n /** Wix Forms */\n WIX_FORMS = 'WIX_FORMS',\n /** Wix legends */\n WIX_LEGENDS = 'WIX_LEGENDS',\n /** Portfolio */\n PORTFOLIO = 'PORTFOLIO',\n /** LOGOS */\n LOGOS = 'LOGOS',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'NO_NAMESPACE'\n | 'OTHERS'\n | 'WIX_VIDEO'\n | 'WIX_MUSIC'\n | 'ALBUMS_AND_ART_STORE'\n | 'WIX_ECOM'\n | 'PHOTO_SHARE_APP'\n | 'SHARING_APP'\n | 'CHAT'\n | 'LOGO_BUILDER'\n | 'ALBUMS_OLD'\n | 'CHAT_MOBILE'\n | 'WIX_FORMS'\n | 'WIX_LEGENDS'\n | 'PORTFOLIO'\n | 'LOGOS';\n\nexport interface IdentityInfo {\n /** The type of the user that uploaded the file */\n identityType?: IdentityTypeWithLiterals;\n /**\n * User Id. empty when UNKNOWN\n * @format GUID\n */\n identityId?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n | IdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface DraftFilePublished {\n /** The file after it was published */\n file?: FileDescriptor;\n /** The namespace the file was published to */\n namespace?: NamespaceWithLiterals;\n}\n\nexport interface FileFailed {\n /** External information specified in the file import or upload. */\n externalInfo?: ExternalInfo;\n /** Error information. */\n error?: ApplicationError;\n}\n\nexport interface ExternalInfo {\n /**\n * External information to specify in the File Ready or File Failed events.\n * @maxLength 1000\n */\n origin?: string;\n /**\n * External IDs to specify in the File Ready or File Failed events.\n * @maxSize 30\n * @maxLength 4000\n */\n externalIds?: string[];\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface FileReady {\n /** File entity that is ready with full information. */\n file?: FileDescriptor;\n /** External information specified in the file import or upload. */\n externalInfo?: ExternalInfo;\n /** File was restored from the trash-bin. */\n triggeredByUndelete?: boolean;\n}\n\nexport interface BulkAnnotateImagesRequest {\n /**\n * The file ids to run detection on\n * @minSize 1\n * @maxSize 10\n * @maxLength 1000\n */\n fileIds?: string[];\n /**\n * A list of detections types to fill for the image\n * @minSize 1\n * @maxSize 10\n */\n annotationTypes?: ImageAnnotationTypeWithLiterals[];\n /** When true the endpoint will detect listed information even if the image has this information */\n overwrite?: boolean | null;\n /** Should the response return the item following the operation */\n returnEntity?: boolean;\n}\n\nexport enum ImageAnnotationType {\n UNKNOWN_IMAGE_ANNOTATION_TYPE = 'UNKNOWN_IMAGE_ANNOTATION_TYPE',\n CONTAINS_TEXT = 'CONTAINS_TEXT',\n IS_ANIMATED = 'IS_ANIMATED',\n FACES = 'FACES',\n LABELS = 'LABELS',\n COLORS = 'COLORS',\n CAPTION = 'CAPTION',\n}\n\n/** @enumType */\nexport type ImageAnnotationTypeWithLiterals =\n | ImageAnnotationType\n | 'UNKNOWN_IMAGE_ANNOTATION_TYPE'\n | 'CONTAINS_TEXT'\n | 'IS_ANIMATED'\n | 'FACES'\n | 'LABELS'\n | 'COLORS'\n | 'CAPTION';\n\nexport interface BulkAnnotateImagesResponse {\n /** Results of individual items */\n results?: BulkAnnotateImageResult[];\n /** Metadata of the operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAnnotateImageResult {\n /** Item metadata */\n itemMetadata?: ItemMetadata;\n /**\n * The item following the operation\n * Only returned if operation was successful and if returnEntity flag was on\n */\n item?: FileDescriptor;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface GenerateAnimatedVectorRequest {\n /**\n * Start file id\n * @maxLength 1000\n */\n startVectorId?: string;\n /**\n * End file id\n * @maxLength 1000\n */\n endVectorId?: string;\n /**\n * Result file name as it appears in the Media Manager.\n * @maxLength 256\n */\n displayName?: string;\n}\n\nexport interface GenerateAnimatedVectorResponse {\n /** Information about the result file. */\n file?: FileDescriptor;\n}\n\nexport interface GenerateFilesDownloadUrlRequest {\n /**\n * IDs of the files to download.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface GenerateFilesDownloadUrlResponse {\n /**\n * URL for downloading the compressed file containing the specified files in the Media Manager.\n * @format WEB_URL\n */\n downloadUrl?: string;\n}\n\nexport interface GenerateFileDownloadUrlRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId: string;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type. <br />\n *\n * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.\n * @maxLength 100\n */\n downloadFileName?: string | null;\n /**\n * The time that it takes in minutes for the download URL to expire. <br />\n * Default: `600`. <br />\n * Limit: `525600` (1 year).\n * @min 1\n */\n expirationInMinutes?: number | null;\n /**\n * The redirect URL for when the temporary download URL with a token expires. <br />\n * Default: A 403 Forbidden response page.\n * @format WEB_URL\n */\n expirationRedirectUrl?: string | null;\n /**\n * Keys for downloading different assets (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxSize 100\n * @maxLength 100\n */\n assetKeys?: string[] | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n *\n * - `ATTACHMENT`: The link downloads the file.\n * - `INLINE`: The link opens the file in the browser.\n *\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\nexport enum ContentDisposition {\n /** Using the link in the browser will download the file */\n ATTACHMENT = 'ATTACHMENT',\n /** Using the link in the browser will open the file in the browser */\n INLINE = 'INLINE',\n}\n\n/** @enumType */\nexport type ContentDispositionWithLiterals =\n | ContentDisposition\n | 'ATTACHMENT'\n | 'INLINE';\n\nexport interface GenerateFileDownloadUrlResponse {\n /**\n * URL for downloading a specific file in the Media Manager.\n * @maxSize 100\n */\n downloadUrls?: DownloadUrl[];\n}\n\nexport interface DownloadUrl {\n /**\n * The file download URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Key for downloading a different asset (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxLength 100\n */\n assetKey?: string;\n}\n\nexport interface ServiceError {\n /**\n * Error codes are groups of related errors\n * The error code can be used to provide additional details to wix support while debugging service errors\n * @maxLength 200\n */\n internalCode?: string | null;\n /** Debugging information, http status code returned from wix media internal API */\n internalHttpStatusCode?: number | null;\n /**\n * Optional Debugging information, error key will represent the error \"family\" returned from wix media internal API\n * @maxLength 200\n */\n internalKey?: string | null;\n}\n\nexport interface GetFileDescriptorRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n *\n * If you are working in REST, note that you must encode the Wix media URL to specify it as a query param because it contains special characters. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032` becomes `wix%3Aimage%3A%2F%2Fv1%2F0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg%2Fleon.jpg%23originWidth%3D3024%26originHeight%3D4032`.\n * @maxLength 1000\n */\n fileId: string;\n}\n\nexport interface GetFileDescriptorResponse {\n /** Information about the file. */\n file?: FileDescriptor;\n}\n\nexport interface GetFileDescriptorsRequest {\n /**\n * File IDs.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 100\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface GetFileDescriptorsResponse {\n /**\n * Information about the requested files.\n * @maxSize 100\n */\n files?: FileDescriptor[];\n}\n\nexport interface GetSiteFileDescriptorsRequest {\n /**\n * File IDs.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 1500\n * @maxLength 1000\n */\n fileIds?: string[];\n}\n\nexport interface GetSiteFileDescriptorsResponse {\n /**\n * Information about the requested files.\n * @maxSize 1500\n */\n files?: FileDescriptor[];\n /**\n * @maxSize 1500\n * @maxLength 1000\n */\n missingFileIds?: string[];\n}\n\nexport interface UpdateFileDescriptorRequest {\n /** The file to update. */\n file: FileDescriptor;\n}\n\nexport interface UpdateFileDescriptorResponse {\n /** Information about the updated file. */\n file?: FileDescriptor;\n}\n\nexport interface UnsupportedRequestValueError {\n /**\n * Optional A list of allowed values\n * @maxSize 100\n * @maxLength 200\n */\n allowedValues?: string[];\n /**\n * The unsupported value send in the request\n * @maxLength 200\n */\n requestValue?: string;\n}\n\nexport interface GenerateFileUploadUrlRequest {\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType: string | null;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 50\n * @maxLength 200\n */\n labels?: string[] | null;\n /** A place to map an external entity to an uploaded file in the Wix Media Manager. */\n externalInfo?: ExternalInfo;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport interface ImageAnnotationConfigurations {\n /** Whether to skip detection for the image */\n skipDetection?: boolean | null;\n /**\n * A list of detections types to fill for the image\n * If specified at least one valid annotation type should be provided\n * Default will be all detections\n * @maxSize 10\n */\n annotationTypes?: ImageAnnotationTypeWithLiterals[];\n}\n\nexport interface GenerateFileUploadUrlResponse {\n /**\n * The URL for uploading a file to the Media Manager.\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface SiteQuotaExceededError {\n /**\n * Error codes are groups of related errors\n * The error code can be used to provide additional details to wix support while debugging service errors\n * @maxLength 200\n */\n internalCode?: string | null;\n /** Debugging information, http status code returned from wix media internal API */\n internalHttpStatusCode?: number | null;\n /**\n * Optional Debugging information, error key will represent the error \"family\" returned from wix media internal API\n * @maxLength 200\n */\n internalKey?: string | null;\n /** The quota details */\n quota?: TotalQuota;\n}\n\nexport interface TotalQuota {\n /** Storage quota in bytes. */\n storage?: string | null;\n /** Premium plans that determine the storage quota. */\n plans?: Plans;\n /** Time for which the quota is relevant - When the plans were retrieved from premium */\n timestamp?: Date | null;\n}\n\nexport interface Plans {\n /** Current premium plan details. */\n premium?: Plan;\n /**\n * URL for upgrading the storage quota.\n * @format WEB_URL\n */\n upgradeUrl?: string;\n}\n\nexport interface Plan {\n /**\n * Plan ID.\n * @readonly\n * @format GUID\n */\n _id?: string;\n /** Plan name. */\n name?: string;\n /** Date and time when the plan was created. */\n createdAt?: Date | null;\n /** Date and time when the plan expires. */\n expiresAt?: Date | null;\n}\n\nexport interface GenerateFileResumableUploadUrlRequest {\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType: string | null;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport enum UploadProtocol {\n /** The upload protocol to use for implementing the resumable upload. */\n TUS = 'TUS',\n}\n\n/** @enumType */\nexport type UploadProtocolWithLiterals = UploadProtocol | 'TUS';\n\nexport interface GenerateFileResumableUploadUrlResponse {\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * The URL for uploading a file to the Media Manager.\n * @format WEB_URL\n */\n uploadUrl?: string;\n /**\n * Single-use upload token.\n * @maxLength 2000\n */\n uploadToken?: string;\n}\n\nexport interface ImportFileRequest {\n /**\n * Publicly accessible external file URL.\n * @format WEB_URL\n * @minLength 2\n */\n url: string;\n /**\n * Media type of the file to import.\n * excluding: OTHER media type\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType?: string;\n /** Information sent to the File Ready and File Failed events. See [Importing Files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files) to learn more. */\n externalInfo?: ExternalInfo;\n /** Optional parameters that should be sent with the external URL. */\n urlParams?: Record<string, any> | null;\n /** Optional headers that should be sent with the external URL. */\n urlHeaders?: Record<string, any> | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport interface ImportFileResponse {\n /** Information about the imported file. */\n file?: FileDescriptor;\n}\n\nexport interface BulkImportFilesRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 100\n */\n importFileRequests: ImportFileRequest[];\n}\n\nexport interface BulkImportFilesResponse {\n /**\n * Information about the imported files.\n * @maxSize 100\n */\n files?: FileDescriptor[];\n}\n\nexport interface BulkImportFileRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 100\n */\n importFileRequests: ImportFileRequest[];\n /** Default: `true` */\n returnEntity?: boolean | null;\n}\n\nexport interface BulkImportFileResponse {\n /** Items created by bulk action. */\n results?: BulkImportFileResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkImportFileResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */\n item?: FileDescriptor;\n}\n\nexport interface BulkInternalImportFilesRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 5\n */\n importFileRequests?: ImportFileRequest[];\n}\n\nexport interface BulkInternalImportFilesResponse {\n /** Items created by bulk action. */\n results?: BulkImportFileResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListFilesRequest {\n /**\n * ID of the file's parent folder.\n *\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of:\n *\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ListFilesResponse {\n /**\n * List of files in the Media Manager.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n}\n\nexport interface SearchFilesRequest {\n /**\n * Free text to match in searchable fields.\n *\n * For example, search for specific values in a file's\n * `displayName`, `mimeType`, or `label`.\n * @maxLength 200\n */\n search?: string | null;\n /**\n * The root folder in the media manager to search in.\n * For more information, see Root Folders in [Terminology](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology).\n *\n * Default: `MEDIA_ROOT`.\n */\n rootFolder?: RootFolderWithLiterals;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by.\n *\n * One of:\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport enum RootFolder {\n /** Contains all files and folders in the Media Manager's **Site Files** tab in the UI. */\n MEDIA_ROOT = 'MEDIA_ROOT',\n /** Contains all files and folders in the Media Manager's **Trash** tab in the UI. */\n TRASH_ROOT = 'TRASH_ROOT',\n /** Contains all files and folders created by site visitors or members. */\n VISITOR_UPLOADS_ROOT = 'VISITOR_UPLOADS_ROOT',\n}\n\n/** @enumType */\nexport type RootFolderWithLiterals =\n | RootFolder\n | 'MEDIA_ROOT'\n | 'TRASH_ROOT'\n | 'VISITOR_UPLOADS_ROOT';\n\nexport interface SearchFilesResponse {\n /**\n * Retrieved files that match the search criteria specified in the request.\n *\n * Each file includes all standard file information.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface GenerateVideoStreamingUrlRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId: string;\n /** Video stream format. */\n format?: StreamFormatWithLiterals;\n}\n\nexport enum StreamFormat {\n UNKNOWN = 'UNKNOWN',\n HLS = 'HLS',\n DASH = 'DASH',\n}\n\n/** @enumType */\nexport type StreamFormatWithLiterals =\n | StreamFormat\n | 'UNKNOWN'\n | 'HLS'\n | 'DASH';\n\nexport interface GenerateVideoStreamingUrlResponse {\n /** URL for streaming a specific file in the Media Manager. */\n downloadUrl?: DownloadUrl;\n}\n\nexport interface GenerateWebSocketTokenRequest {}\n\nexport interface GenerateWebSocketTokenResponse {\n /**\n * The web socket token for the identity in the request\n * @maxLength 2000\n */\n token?: string;\n}\n\nexport interface BulkDeleteFilesRequest {\n /**\n * IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n /**\n * Whether the specified files are permanently deleted. <br />\n * Default: `false`\n */\n permanent?: boolean;\n}\n\nexport interface BulkDeleteFilesResponse {}\n\nexport interface BulkRestoreFilesFromTrashBinRequest {\n /**\n * IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface BulkRestoreFilesFromTrashBinResponse {}\n\nexport interface ListDeletedFilesRequest {\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /** \\n`true`: Returns only private files. \\n`false`: Returns only public files. \\n`undefined`: Returns public and private files. \\n Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of: <br />\n * * `displayName`\n * * `updatedDate`\n * * `sizeInBytes`\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport interface ListDeletedFilesResponse {\n /**\n * List of files in the Media Manager's trash bin.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface BulkPublishDraftFilesRequest {\n /**\n * IDs of the draft files to be published.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 100\n * @maxLength 1000\n */\n fileIds?: string[];\n /**\n * The namespace the files will be published to\n * Note, private files must have a namespace\n */\n namespace?: NamespaceWithLiterals;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n /** Should the response return the item following the operation */\n returnEntity?: boolean;\n}\n\nexport interface BulkPublishDraftFilesResponse {\n /** Results of individual items */\n results?: BulkPublishDraftFileResult[];\n /** Metadata of the operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPublishDraftFileResult {\n /** Item metadata */\n itemMetadata?: ItemMetadata;\n /**\n * The item following the operation\n * Only returned if operation was successful and if returnEntity flag was on\n */\n item?: FileDescriptor;\n}\n\nexport interface UpdateFileRequest {\n /**\n * ID of the file to update.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId?: string;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n}\n\nexport interface UpdateFileResponse {\n /** Information about the updated file. */\n file?: FileDescriptor;\n}\n\nexport interface QueryFileDescriptorsRequest {\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\n}\n\nexport interface CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryFileDescriptorsResponse {\n /** @maxSize 200 */\n files?: FileDescriptor[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GenerateFileDownloadUrlValidationErrors = {\n ruleName?: 'INVALID_ASSET_KEY';\n};\n/** @docsIgnore */\nexport type GetFileDescriptorValidationErrors = {\n ruleName?: 'RESOURCE_NOT_FOUND';\n};\n/** @docsIgnore */\nexport type GetFileDescriptorsValidationErrors = {\n ruleName?: 'RESOURCE_NOT_FOUND';\n};\n/** @docsIgnore */\nexport type UpdateFileDescriptorValidationErrors = {\n ruleName?: 'FIELD_MASK_IS_EMPTY_OR_MISSING';\n};\n/** @docsIgnore */\nexport type GenerateFileUploadUrlValidationErrors =\n | {\n ruleName?: 'MISMATCH_MIME_TYPE';\n }\n | {\n ruleName?: 'ZERO_FILE_SIZE';\n }\n | {\n ruleName?: 'UNSUPPORTED_FILE_FORMAT';\n }\n | {\n ruleName?: 'FILE_SIZE_OVER_LIMIT';\n }\n | {\n ruleName?: 'SITE_QUOTA_EXCEEDED';\n };\n/** @docsIgnore */\nexport type GenerateFileResumableUploadUrlValidationErrors =\n | {\n ruleName?: 'MISMATCH_MIME_TYPE';\n }\n | {\n ruleName?: 'ZERO_FILE_SIZE';\n }\n | {\n ruleName?: 'UNSUPPORTED_FILE_FORMAT';\n }\n | {\n ruleName?: 'FILE_SIZE_OVER_LIMIT';\n };\n/** @docsIgnore */\nexport type ImportFileValidationErrors = {\n ruleName?: 'SITE_QUOTA_EXCEEDED';\n};\n/** @docsIgnore */\nexport type ListFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n/** @docsIgnore */\nexport type SearchFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n/** @docsIgnore */\nexport type ListDeletedFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface FileDescriptorFileFailedEnvelope {\n data: FileFailed;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a file's import fails. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Challenges\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Read Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER\n * @permissionScope Manage Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER\n * @permissionScope Manage Portfolio\n * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO\n * @permissionScope View SEO Settings\n * @permissionScopeId SCOPE.PROMOTE.VIEW-SEO\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @webhook\n * @eventType wix.media.site_media.v1.file_descriptor_file_failed\n * @slug file_failed\n */\nexport declare function onFileDescriptorFileFailed(\n handler: (event: FileDescriptorFileFailedEnvelope) => void | Promise<void>\n): void;\n\nexport interface FileDescriptorFileReadyEnvelope {\n data: FileReady;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a file finishes processing successfully. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Challenges\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Read Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER\n * @permissionScope Manage Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER\n * @permissionScope Manage Portfolio\n * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO\n * @permissionScope View SEO Settings\n * @permissionScopeId SCOPE.PROMOTE.VIEW-SEO\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @webhook\n * @eventType wix.media.site_media.v1.file_descriptor_file_ready\n * @slug file_ready\n */\nexport declare function onFileDescriptorFileReady(\n handler: (event: FileDescriptorFileReadyEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @public\n * @requiredField fileIds\n * @param fileIds - IDs of the files to download.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl\n */\nexport async function generateFilesDownloadUrl(\n fileIds: string[]\n): Promise<\n NonNullablePaths<GenerateFilesDownloadUrlResponse, `downloadUrl`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFilesDownloadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @public\n * @requiredField fileId\n * @param options - Options to use when generating a file's download URL.\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD_URL\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl\n */\nexport async function generateFileDownloadUrl(\n fileId: string,\n options?: GenerateFileDownloadUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateFileDownloadUrlResponse,\n | `downloadUrls`\n | `downloadUrls.${number}.url`\n | `downloadUrls.${number}.assetKey`,\n 4\n > & {\n __validationErrorsType?: GenerateFileDownloadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileId: fileId,\n downloadFileName: options?.downloadFileName,\n expirationInMinutes: options?.expirationInMinutes,\n expirationRedirectUrl: options?.expirationRedirectUrl,\n assetKeys: options?.assetKeys,\n contentDisposition: options?.contentDisposition,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileDownloadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fileId: '$[0]',\n downloadFileName: '$[1].downloadFileName',\n expirationInMinutes: '$[1].expirationInMinutes',\n expirationRedirectUrl: '$[1].expirationRedirectUrl',\n assetKeys: '$[1].assetKeys',\n contentDisposition: '$[1].contentDisposition',\n },\n singleArgumentUnchanged: false,\n },\n ['fileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileDownloadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type. <br />\n *\n * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.\n * @maxLength 100\n */\n downloadFileName?: string | null;\n /**\n * The time that it takes in minutes for the download URL to expire. <br />\n * Default: `600`. <br />\n * Limit: `525600` (1 year).\n * @min 1\n */\n expirationInMinutes?: number | null;\n /**\n * The redirect URL for when the temporary download URL with a token expires. <br />\n * Default: A 403 Forbidden response page.\n * @format WEB_URL\n */\n expirationRedirectUrl?: string | null;\n /**\n * Keys for downloading different assets (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxSize 100\n * @maxLength 100\n */\n assetKeys?: string[] | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n *\n * - `ATTACHMENT`: The link downloads the file.\n * - `INLINE`: The link opens the file in the browser.\n *\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\n/**\n * Gets information about a specific file in the Media Manager.\n * @public\n * @requiredField fileId\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @returns Information about the file.\n * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptor\n */\nexport async function getFileDescriptor(fileId: string): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileId: fileId });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptor(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )?.file!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Gets information about specific files in the Media Manager.\n * @public\n * @requiredField fileIds\n * @param fileIds - File IDs.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptors\n */\nexport async function getFileDescriptors(fileIds: string[]): Promise<\n NonNullablePaths<\n GetFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorsValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptors(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n * @param file - The file to update.\n * @public\n * @requiredField file\n * @requiredField file._id\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPDATE\n * @applicableIdentity APP\n * @returns Information about the updated file.\n * @fqn com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor\n */\nexport async function updateFileDescriptor(\n file: NonNullablePaths<FileDescriptor, `_id`, 2>\n): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: UpdateFileDescriptorValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ file: file }),\n [\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.updateFileDescriptor(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )?.file!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { file: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['file']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n * @param mimeType - File mime type.\n * @public\n * @requiredField mimeType\n * @param options - Options to use when generating a file's upload URL.\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl\n */\nexport async function generateFileUploadUrl(\n mimeType: string,\n options?: GenerateFileUploadUrlOptions\n): Promise<\n NonNullablePaths<GenerateFileUploadUrlResponse, `uploadUrl`, 2> & {\n __validationErrorsType?: GenerateFileUploadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mimeType: mimeType,\n fileName: options?.fileName,\n sizeInBytes: options?.sizeInBytes,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n externalInfo: options?.externalInfo,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileUploadUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mimeType: '$[0]',\n fileName: '$[1].fileName',\n sizeInBytes: '$[1].sizeInBytes',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n externalInfo: '$[1].externalInfo',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['mimeType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileUploadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 50\n * @maxLength 200\n */\n labels?: string[] | null;\n /** A place to map an external entity to an uploaded file in the Wix Media Manager. */\n externalInfo?: ExternalInfo;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @param mimeType - File mime type.\n * @public\n * @requiredField mimeType\n * @param options - Options to use when generating a resumable upload URL.\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl\n */\nexport async function generateFileResumableUploadUrl(\n mimeType: string,\n options?: GenerateFileResumableUploadUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateFileResumableUploadUrlResponse,\n `uploadProtocol` | `uploadUrl` | `uploadToken`,\n 2\n > & {\n __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mimeType: mimeType,\n fileName: options?.fileName,\n sizeInBytes: options?.sizeInBytes,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n uploadProtocol: options?.uploadProtocol,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileResumableUploadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mimeType: '$[0]',\n fileName: '$[1].fileName',\n sizeInBytes: '$[1].sizeInBytes',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n uploadProtocol: '$[1].uploadProtocol',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['mimeType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileResumableUploadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param url - Publicly accessible external file URL.\n * @public\n * @requiredField url\n * @param options - Options to use when importing a single file.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ImportFile\n */\nexport async function importFile(\n url: string,\n options?: ImportFileOptions\n): Promise<\n NonNullablePaths<\n ImportFileResponse,\n | `file._id`\n | `file.displayName`\n | `file.url`\n | `file.hash`\n | `file.private`\n | `file.mediaType`\n | `file.media.image.colors.palette`\n | `file.media.image.faces`\n | `file.media.image.faces.${number}.confidence`\n | `file.media.image.faces.${number}.x`\n | `file.media.image.faces.${number}.y`\n | `file.media.image.faces.${number}.height`\n | `file.media.image.faces.${number}.width`\n | `file.media.audio._id`\n | `file.media.audio.assets`\n | `file.media.archive._id`\n | `file.media.archive.url`\n | `file.media.model3d._id`\n | `file.media.model3d.url`\n | `file.operationStatus`\n | `file.labels`\n | `file.siteId`\n | `file.state`,\n 7\n > & {\n __validationErrorsType?: ImportFileValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n url: url,\n mediaType: options?.mediaType,\n displayName: options?.displayName,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n mimeType: options?.mimeType,\n externalInfo: options?.externalInfo,\n urlParams: options?.urlParams,\n urlHeaders: options?.urlHeaders,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.importFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n url: '$[0]',\n mediaType: '$[1].mediaType',\n displayName: '$[1].displayName',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n mimeType: '$[1].mimeType',\n externalInfo: '$[1].externalInfo',\n urlParams: '$[1].urlParams',\n urlHeaders: '$[1].urlHeaders',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['url', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ImportFileOptions {\n /**\n * Media type of the file to import.\n * excluding: OTHER media type\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType?: string;\n /** Information sent to the File Ready and File Failed events. See [Importing Files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files) to learn more. */\n externalInfo?: ExternalInfo;\n /** Optional parameters that should be sent with the external URL. */\n urlParams?: Record<string, any> | null;\n /** Optional headers that should be sent with the external URL. */\n urlHeaders?: Record<string, any> | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param importFileRequests - Information about the files to import.\n * @public\n * @requiredField importFileRequests\n * @requiredField importFileRequests.url\n * @param options - Options to use when uploading multiple files.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFiles\n * @deprecated\n * @replacedBy com.wix.media.site_media.v1.FilesService.BulkImportFile\n * @targetRemovalDate 2024-03-31\n */\nexport async function bulkImportFiles(\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n): Promise<\n NonNullablePaths<\n BulkImportFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importFileRequests: importFileRequests,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importFileRequests: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importFileRequests']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param importFileRequests - Information about the files to import.\n * @public\n * @requiredField importFileRequests\n * @requiredField importFileRequests.url\n * @param options - Options to include the file descriptor in the response.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFile\n */\nexport async function bulkImportFile(\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n): Promise<\n NonNullablePaths<\n BulkImportFileResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.displayName`\n | `results.${number}.item.url`\n | `results.${number}.item.hash`\n | `results.${number}.item.private`\n | `results.${number}.item.mediaType`\n | `results.${number}.item.operationStatus`\n | `results.${number}.item.siteId`\n | `results.${number}.item.state`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importFileRequests: importFileRequests,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.media.image.image' },\n { path: 'results.item.media.image.previewImage' },\n { path: 'results.item.media.vector.image' },\n { path: 'results.item.media.vector.previewImage' },\n { path: 'results.item.media.model3d.thumbnail' },\n { path: 'results.item.media.icon.image' },\n { path: 'results.item.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [\n { path: 'results.item.media.audio.assets', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importFileRequests: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['importFileRequests', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkImportFileOptions {\n /** Default: `true` */\n returnEntity?: boolean | null;\n}\n\n/**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n * @public\n * @param options - Options to use when listing media files.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ListFiles\n */\nexport async function listFiles(options?: ListFilesOptions): Promise<\n NonNullablePaths<\n ListFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n parentFolderId: options?.parentFolderId,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n parentFolderId: '$[0].parentFolderId',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListFilesOptions {\n /**\n * ID of the file's parent folder.\n *\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of:\n *\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n * @public\n * @param options - Options to specify which folders to search.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.SearchFiles\n */\nexport async function searchFiles(options?: SearchFilesOptions): Promise<\n NonNullablePaths<\n SearchFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: SearchFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n search: options?.search,\n rootFolder: options?.rootFolder,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.searchFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n search: '$[0].search',\n rootFolder: '$[0].rootFolder',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchFilesOptions {\n /**\n * Free text to match in searchable fields.\n *\n * For example, search for specific values in a file's\n * `displayName`, `mimeType`, or `label`.\n * @maxLength 200\n */\n search?: string | null;\n /**\n * The root folder in the media manager to search in.\n * For more information, see Root Folders in [Terminology](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology).\n *\n * Default: `MEDIA_ROOT`.\n */\n rootFolder?: RootFolderWithLiterals;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by.\n *\n * One of:\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n * @public\n * @requiredField fileId\n * @param options - Options to use when generating a video file's streaming URL.\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl\n */\nexport async function generateVideoStreamingUrl(\n fileId: string,\n options?: GenerateVideoStreamingUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateVideoStreamingUrlResponse,\n `downloadUrl.url` | `downloadUrl.assetKey`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileId: fileId,\n format: options?.format,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateVideoStreamingUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileId: '$[0]', format: '$[1].format' },\n singleArgumentUnchanged: false,\n },\n ['fileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateVideoStreamingUrlOptions {\n /** Video stream format. */\n format?: StreamFormatWithLiterals;\n}\n\n/**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n * @public\n * @requiredField fileIds\n * @param options - Options to use when deleting files.\n * @param fileIds - IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_MOVE_TO_TRASH\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkDeleteFiles\n */\nexport async function bulkDeleteFiles(\n fileIds: string[],\n options?: BulkDeleteFilesOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileIds: fileIds,\n permanent: options?.permanent,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkDeleteFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fileIds: '$[0]',\n permanent: '$[1].permanent',\n },\n singleArgumentUnchanged: false,\n },\n ['fileIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkDeleteFilesOptions {\n /**\n * Whether the specified files are permanently deleted. <br />\n * Default: `false`\n */\n permanent?: boolean;\n}\n\n/**\n * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.\n * @public\n * @requiredField fileIds\n * @param fileIds - IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_RESTORE_FROM_TRASH\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin\n */\nexport async function bulkRestoreFilesFromTrashBin(\n fileIds: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkRestoreFilesFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n * @public\n * @param options - Options to use when listing deleted files from the trash bin.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST_DELETED\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ListDeletedFiles\n */\nexport async function listDeletedFiles(\n options?: ListDeletedFilesOptions\n): Promise<\n NonNullablePaths<\n ListDeletedFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListDeletedFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n parentFolderId: options?.parentFolderId,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listDeletedFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n parentFolderId: '$[0].parentFolderId',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedFilesOptions {\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /** \\n`true`: Returns only private files. \\n`false`: Returns only public files. \\n`undefined`: Returns public and private files. \\n Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of: <br />\n * * `displayName`\n * * `updatedDate`\n * * `sizeInBytes`\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/** @public\n * @permissionId media:site_media:v1:file_descriptor:query_file_descriptors\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors\n */\nexport function queryFileDescriptors(): FilesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n FileDescriptor,\n 'CURSOR',\n QueryFileDescriptorsRequest,\n QueryFileDescriptorsResponse\n >({\n func: async (payload: QueryFileDescriptorsRequest) => {\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.queryFileDescriptors(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryFileDescriptorsRequest['query']) => {\n const args = [query, {}] as [QueryFileDescriptorsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryFileDescriptorsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n );\n\n return {\n items: transformedData?.files,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface FilesQueryResult extends QueryCursorResult {\n items: FileDescriptor[];\n query: FilesQueryBuilder;\n next: () => Promise<FilesQueryResult>;\n prev: () => Promise<FilesQueryResult>;\n}\n\nexport interface FilesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'private' | 'mediaType' | 'state',\n value: any\n ) => FilesQueryBuilder;\n in: (propertyName: 'mediaType', value: any) => FilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>\n ) => FilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>\n ) => FilesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => FilesQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => FilesQueryBuilder;\n find: () => Promise<FilesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors\n * @requiredField query\n */\nexport async function typedQueryFileDescriptors(\n query: FileDescriptorQuery\n): Promise<\n NonNullablePaths<\n QueryFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.queryFileDescriptors(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface FileDescriptorQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['displayName'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['sizeInBytes'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['private'];\n operators: ['$eq'];\n sort: 'NONE';\n },\n {\n fields: ['mediaType'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n },\n {\n fields: ['_updatedDate'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['state'];\n operators: ['$eq'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n FileDescriptor,\n FileDescriptorQuerySpec\n>;\nexport type FileDescriptorQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixMediaSiteMediaV1FilesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-privatemedia-proxy-server/v1',\n destPath: '/v1',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-media/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_media_files';\n\n/**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n */\nexport function generateFilesDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFilesDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-download-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFilesDownloadUrl;\n}\n\n/**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n */\nexport function generateFileDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-file-download-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileDownloadUrl;\n}\n\n/** Gets information about a specific file in the Media Manager. */\nexport function getFileDescriptor(payload: object): RequestOptionsFactory<any> {\n function __getFileDescriptor({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.GetFileDescriptor',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-file-by-id',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-file-by-id',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getFileDescriptor;\n}\n\n/** Gets information about specific files in the Media Manager. */\nexport function getFileDescriptors(\n payload: object\n): RequestOptionsFactory<any> {\n function __getFileDescriptors({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.GetFileDescriptors',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-files',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getFileDescriptors;\n}\n\n/**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n */\nexport function updateFileDescriptor(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateFileDescriptor({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/update-file-descriptor',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateFileDescriptor;\n}\n\n/**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n */\nexport function generateFileUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileUploadUrl;\n}\n\n/**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport function generateFileResumableUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileResumableUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-resumable-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileResumableUploadUrl;\n}\n\n/**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n */\nexport function importFile(payload: object): RequestOptionsFactory<any> {\n function __importFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ImportFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/import',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __importFile;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @deprecated It has been replaced with com.wix.media.site_media.v1.FilesService.BulkImportFile(), and will be removed on 2024-03-31.\n */\nexport function bulkImportFiles(payload: object): RequestOptionsFactory<any> {\n function __bulkImportFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkImportFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/import',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkImportFiles;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n */\nexport function bulkImportFile(payload: object): RequestOptionsFactory<any> {\n function __bulkImportFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkImportFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/import-v2',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.lastUsedDate' },\n { path: 'results.item.media.image.image.urlExpirationDate' },\n {\n path: 'results.item.media.image.previewImage.urlExpirationDate',\n },\n { path: 'results.item.media.video.urlExpirationDate' },\n {\n path: 'results.item.media.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.media.video.posters.urlExpirationDate' },\n { path: 'results.item.media.audio.assets.urlExpirationDate' },\n { path: 'results.item.media.document.urlExpirationDate' },\n {\n path: 'results.item.media.document.thumbnail.urlExpirationDate',\n },\n { path: 'results.item.media.vector.image.urlExpirationDate' },\n {\n path: 'results.item.media.vector.previewImage.urlExpirationDate',\n },\n { path: 'results.item.media.archive.urlExpirationDate' },\n { path: 'results.item.media.model3d.urlExpirationDate' },\n {\n path: 'results.item.media.model3d.thumbnail.urlExpirationDate',\n },\n { path: 'results.item.media.icon.image.urlExpirationDate' },\n {\n path: 'results.item.media.icon.previewImage.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.media.image.image.focalPoint.x' },\n { path: 'results.item.media.image.image.focalPoint.y' },\n { path: 'results.item.media.image.faces.confidence' },\n { path: 'results.item.media.image.previewImage.focalPoint.x' },\n { path: 'results.item.media.image.previewImage.focalPoint.y' },\n {\n path: 'results.item.media.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.media.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.media.video.posters.focalPoint.x' },\n { path: 'results.item.media.video.posters.focalPoint.y' },\n { path: 'results.item.media.document.thumbnail.focalPoint.x' },\n { path: 'results.item.media.document.thumbnail.focalPoint.y' },\n { path: 'results.item.media.vector.image.focalPoint.x' },\n { path: 'results.item.media.vector.image.focalPoint.y' },\n { path: 'results.item.media.vector.faces.confidence' },\n { path: 'results.item.media.vector.previewImage.focalPoint.x' },\n { path: 'results.item.media.vector.previewImage.focalPoint.y' },\n { path: 'results.item.media.model3d.thumbnail.focalPoint.x' },\n { path: 'results.item.media.model3d.thumbnail.focalPoint.y' },\n { path: 'results.item.media.icon.image.focalPoint.x' },\n { path: 'results.item.media.icon.image.focalPoint.y' },\n { path: 'results.item.media.icon.faces.confidence' },\n { path: 'results.item.media.icon.previewImage.focalPoint.x' },\n { path: 'results.item.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkImportFile;\n}\n\n/**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n */\nexport function listFiles(payload: object): RequestOptionsFactory<any> {\n function __listFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ListFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listFiles;\n}\n\n/**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\nexport function searchFiles(payload: object): RequestOptionsFactory<any> {\n function __searchFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.SearchFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchFiles;\n}\n\n/**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n */\nexport function generateVideoStreamingUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateVideoStreamingUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-video-stream-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateVideoStreamingUrl;\n}\n\n/**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n */\nexport function bulkDeleteFiles(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkDeleteFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFiles;\n}\n\n/** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */\nexport function bulkRestoreFilesFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkRestoreFilesFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/trash-bin/files/restore',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkRestoreFilesFromTrashBin;\n}\n\n/**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n */\nexport function listDeletedFiles(payload: object): RequestOptionsFactory<any> {\n function __listDeletedFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ListDeletedFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/trash-bin/files',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedFiles;\n}\n\nexport function queryFileDescriptors(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryFileDescriptors({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.QueryFileDescriptors',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryFileDescriptors;\n}\n","import {\n generateFilesDownloadUrl as publicGenerateFilesDownloadUrl,\n generateFileDownloadUrl as publicGenerateFileDownloadUrl,\n getFileDescriptor as publicGetFileDescriptor,\n getFileDescriptors as publicGetFileDescriptors,\n updateFileDescriptor as publicUpdateFileDescriptor,\n generateFileUploadUrl as publicGenerateFileUploadUrl,\n generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl,\n importFile as publicImportFile,\n bulkImportFiles as publicBulkImportFiles,\n bulkImportFile as publicBulkImportFile,\n listFiles as publicListFiles,\n searchFiles as publicSearchFiles,\n generateVideoStreamingUrl as publicGenerateVideoStreamingUrl,\n bulkDeleteFiles as publicBulkDeleteFiles,\n bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin,\n listDeletedFiles as publicListDeletedFiles,\n queryFileDescriptors as publicQueryFileDescriptors,\n typedQueryFileDescriptors as publicTypedQueryFileDescriptors,\n} from './media-site-media-v1-file-descriptor-files.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n FileDescriptorQuery,\n FilesQueryBuilder,\n typedQueryFileDescriptors as universalTypedQueryFileDescriptors,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nimport { onFileDescriptorFileFailed as publicOnFileDescriptorFileFailed } from './media-site-media-v1-file-descriptor-files.public.js';\nimport { onFileDescriptorFileReady as publicOnFileDescriptorFileReady } from './media-site-media-v1-file-descriptor-files.public.js';\n\nfunction customQueryFileDescriptors(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryFileDescriptors(httpClient)(),\n typedQueryFunction: (query: FileDescriptorQuery) =>\n publicTypedQueryFileDescriptors(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): FilesQueryBuilder;\n function overloadedQuery(\n query: FileDescriptorQuery\n ): ReturnType<typeof universalTypedQueryFileDescriptors>;\n function overloadedQuery(query?: FileDescriptorQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const generateFilesDownloadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFilesDownloadUrl> &\n typeof publicGenerateFilesDownloadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFilesDownloadUrl);\nexport const generateFileDownloadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileDownloadUrl> &\n typeof publicGenerateFileDownloadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileDownloadUrl);\nexport const getFileDescriptor: MaybeContext<\n BuildRESTFunction<typeof publicGetFileDescriptor> &\n typeof publicGetFileDescriptor\n> = /*#__PURE__*/ createRESTModule(publicGetFileDescriptor);\nexport const getFileDescriptors: MaybeContext<\n BuildRESTFunction<typeof publicGetFileDescriptors> &\n typeof publicGetFileDescriptors\n> = /*#__PURE__*/ createRESTModule(publicGetFileDescriptors);\nexport const updateFileDescriptor: MaybeContext<\n BuildRESTFunction<typeof publicUpdateFileDescriptor> &\n typeof publicUpdateFileDescriptor\n> = /*#__PURE__*/ createRESTModule(publicUpdateFileDescriptor);\nexport const generateFileUploadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileUploadUrl> &\n typeof publicGenerateFileUploadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileUploadUrl);\nexport const generateFileResumableUploadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileResumableUploadUrl> &\n typeof publicGenerateFileResumableUploadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileResumableUploadUrl);\nexport const importFile: MaybeContext<\n BuildRESTFunction<typeof publicImportFile> & typeof publicImportFile\n> = /*#__PURE__*/ createRESTModule(publicImportFile);\nexport const bulkImportFiles: MaybeContext<\n BuildRESTFunction<typeof publicBulkImportFiles> & typeof publicBulkImportFiles\n> = /*#__PURE__*/ createRESTModule(publicBulkImportFiles);\nexport const bulkImportFile: MaybeContext<\n BuildRESTFunction<typeof publicBulkImportFile> & typeof publicBulkImportFile\n> = /*#__PURE__*/ createRESTModule(publicBulkImportFile);\nexport const listFiles: MaybeContext<\n BuildRESTFunction<typeof publicListFiles> & typeof publicListFiles\n> = /*#__PURE__*/ createRESTModule(publicListFiles);\nexport const searchFiles: MaybeContext<\n BuildRESTFunction<typeof publicSearchFiles> & typeof publicSearchFiles\n> = /*#__PURE__*/ createRESTModule(publicSearchFiles);\nexport const generateVideoStreamingUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateVideoStreamingUrl> &\n typeof publicGenerateVideoStreamingUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateVideoStreamingUrl);\nexport const bulkDeleteFiles: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFiles> & typeof publicBulkDeleteFiles\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteFiles);\nexport const bulkRestoreFilesFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicBulkRestoreFilesFromTrashBin> &\n typeof publicBulkRestoreFilesFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicBulkRestoreFilesFromTrashBin);\nexport const listDeletedFiles: MaybeContext<\n BuildRESTFunction<typeof publicListDeletedFiles> &\n typeof publicListDeletedFiles\n> = /*#__PURE__*/ createRESTModule(publicListDeletedFiles);\nexport const queryFileDescriptors: MaybeContext<\n BuildRESTFunction<typeof customQueryFileDescriptors> &\n typeof customQueryFileDescriptors\n> = /*#__PURE__*/ createRESTModule(customQueryFileDescriptors);\n/**\n * Triggered when a file's import fails. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport const onFileDescriptorFileFailed: BuildEventDefinition<\n typeof publicOnFileDescriptorFileFailed\n> &\n typeof publicOnFileDescriptorFileFailed = createEventModule(\n publicOnFileDescriptorFileFailed\n);\n/**\n * Triggered when a file finishes processing successfully. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport const onFileDescriptorFileReady: BuildEventDefinition<\n typeof publicOnFileDescriptorFileReady\n> &\n typeof publicOnFileDescriptorFileReady = createEventModule(\n publicOnFileDescriptorFileReady\n);\n\nexport {\n MediaType,\n OperationStatus,\n State,\n Namespace,\n IdentityType,\n ImageAnnotationType,\n ContentDisposition,\n UploadProtocol,\n SortOrder,\n RootFolder,\n StreamFormat,\n WebhookIdentityType,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nexport {\n FileDescriptor,\n FileMedia,\n FileMediaMediaOneOf,\n ImageMedia,\n FocalPoint,\n Colors,\n Color,\n ColorRGB,\n FaceRecognition,\n VideoResolution,\n AudioV2,\n Archive,\n Model3D,\n OtherMedia,\n FontMedia,\n FontAsset,\n IdentityInfo,\n DraftFilePublished,\n FileFailed,\n ExternalInfo,\n ApplicationError,\n FileReady,\n BulkAnnotateImagesRequest,\n BulkAnnotateImagesResponse,\n BulkAnnotateImageResult,\n ItemMetadata,\n BulkActionMetadata,\n GenerateAnimatedVectorRequest,\n GenerateAnimatedVectorResponse,\n GenerateFilesDownloadUrlRequest,\n GenerateFilesDownloadUrlResponse,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n DownloadUrl,\n ServiceError,\n GetFileDescriptorRequest,\n GetFileDescriptorResponse,\n GetFileDescriptorsRequest,\n GetFileDescriptorsResponse,\n GetSiteFileDescriptorsRequest,\n GetSiteFileDescriptorsResponse,\n UpdateFileDescriptorRequest,\n UpdateFileDescriptorResponse,\n UnsupportedRequestValueError,\n GenerateFileUploadUrlRequest,\n ImageAnnotationConfigurations,\n GenerateFileUploadUrlResponse,\n SiteQuotaExceededError,\n TotalQuota,\n Plans,\n Plan,\n GenerateFileResumableUploadUrlRequest,\n GenerateFileResumableUploadUrlResponse,\n ImportFileRequest,\n ImportFileResponse,\n BulkImportFilesRequest,\n BulkImportFilesResponse,\n BulkImportFileRequest,\n BulkImportFileResponse,\n BulkImportFileResult,\n BulkInternalImportFilesRequest,\n BulkInternalImportFilesResponse,\n ListFilesRequest,\n Sorting,\n CursorPaging,\n ListFilesResponse,\n PagingMetadataV2,\n Cursors,\n SearchFilesRequest,\n SearchFilesResponse,\n GenerateVideoStreamingUrlRequest,\n GenerateVideoStreamingUrlResponse,\n GenerateWebSocketTokenRequest,\n GenerateWebSocketTokenResponse,\n BulkDeleteFilesRequest,\n BulkDeleteFilesResponse,\n BulkRestoreFilesFromTrashBinRequest,\n BulkRestoreFilesFromTrashBinResponse,\n ListDeletedFilesRequest,\n ListDeletedFilesResponse,\n BulkPublishDraftFilesRequest,\n BulkPublishDraftFilesResponse,\n BulkPublishDraftFileResult,\n UpdateFileRequest,\n UpdateFileResponse,\n QueryFileDescriptorsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CommonCursorPaging,\n QueryFileDescriptorsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n GenerateFileDownloadUrlOptions,\n GenerateFileUploadUrlOptions,\n GenerateFileResumableUploadUrlOptions,\n ImportFileOptions,\n BulkImportFileOptions,\n ListFilesOptions,\n SearchFilesOptions,\n GenerateVideoStreamingUrlOptions,\n BulkDeleteFilesOptions,\n ListDeletedFilesOptions,\n FilesQueryResult,\n FilesQueryBuilder,\n FileDescriptorQuerySpec,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nexport {\n MediaTypeWithLiterals,\n OperationStatusWithLiterals,\n StateWithLiterals,\n NamespaceWithLiterals,\n IdentityTypeWithLiterals,\n ImageAnnotationTypeWithLiterals,\n ContentDispositionWithLiterals,\n UploadProtocolWithLiterals,\n SortOrderWithLiterals,\n RootFolderWithLiterals,\n StreamFormatWithLiterals,\n WebhookIdentityTypeWithLiterals,\n GenerateFileDownloadUrlValidationErrors,\n GetFileDescriptorValidationErrors,\n GetFileDescriptorsValidationErrors,\n UpdateFileDescriptorValidationErrors,\n GenerateFileUploadUrlValidationErrors,\n GenerateFileResumableUploadUrlValidationErrors,\n ImportFileValidationErrors,\n ListFilesValidationErrors,\n SearchFilesValidationErrors,\n ListDeletedFilesValidationErrors,\n CommonQueryWithEntityContext,\n FileDescriptorQuery,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;A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;AAC3C,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,6BAGK,2DAAiBA,0BAA+B;AAC3D,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAC9D,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMjB,wBAGK,2DAAiB,0BAA0B;AAItD,IAAMkB,kCAG+B;AAAA,EAC1C;AACF;AAIO,IAAMC,iCAG8B;AAAA,EACzC;AACF;","names":["bulkDeleteFiles","bulkImportFile","bulkImportFiles","bulkRestoreFilesFromTrashBin","generateFileDownloadUrl","generateFileResumableUploadUrl","generateFileUploadUrl","generateFilesDownloadUrl","generateVideoStreamingUrl","getFileDescriptor","getFileDescriptors","importFile","listDeletedFiles","listFiles","onFileDescriptorFileFailed","onFileDescriptorFileReady","queryFileDescriptors","searchFiles","updateFileDescriptor","import_rename_all_nested_keys","import_audio","import_document","import_float","import_image","import_timestamp","import_transform_paths","import_video_v2","import_float","import_timestamp","import_rest_modules","payload","import_audio","import_image","import_video_v2","import_document","import_transform_paths","MediaType","OperationStatus","State","Namespace","IdentityType","ImageAnnotationType","ContentDisposition","UploadProtocol","SortOrder","RootFolder","StreamFormat","WebhookIdentityType","generateFilesDownloadUrl","sdkTransformError","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","queryFileDescriptors","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","queryFileDescriptors","typedQueryFileDescriptors","import_rest_modules","queryFileDescriptors","typedQueryFileDescriptors","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","onFileDescriptorFileFailed","onFileDescriptorFileReady"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/media-site-media-v1-file-descriptor-files.public.ts","../../src/media-site-media-v1-file-descriptor-files.universal.ts","../../src/media-site-media-v1-file-descriptor-files.http.ts","../../src/media-site-media-v1-file-descriptor-files.context.ts"],"sourcesContent":["export * from './src/media-site-media-v1-file-descriptor-files.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkDeleteFilesOptions,\n BulkImportFileOptions,\n BulkImportFileResponse,\n BulkImportFilesResponse,\n FileDescriptor,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n FileDescriptorQuery,\n FilesQueryBuilder,\n GenerateFileDownloadUrlOptions,\n GenerateFileDownloadUrlResponse,\n GenerateFileDownloadUrlValidationErrors,\n GenerateFileResumableUploadUrlOptions,\n GenerateFileResumableUploadUrlResponse,\n GenerateFileResumableUploadUrlValidationErrors,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlResponse,\n GenerateFileUploadUrlValidationErrors,\n GenerateFilesDownloadUrlResponse,\n GenerateVideoStreamingUrlOptions,\n GenerateVideoStreamingUrlResponse,\n GetFileDescriptorValidationErrors,\n GetFileDescriptorsResponse,\n GetFileDescriptorsValidationErrors,\n ImportFileOptions,\n ImportFileRequest,\n ImportFileResponse,\n ImportFileValidationErrors,\n ListDeletedFilesOptions,\n ListDeletedFilesResponse,\n ListDeletedFilesValidationErrors,\n ListFilesOptions,\n ListFilesResponse,\n ListFilesValidationErrors,\n QueryFileDescriptorsResponse,\n SearchFilesOptions,\n SearchFilesResponse,\n SearchFilesValidationErrors,\n UpdateFileDescriptorValidationErrors,\n bulkDeleteFiles as universalBulkDeleteFiles,\n bulkImportFile as universalBulkImportFile,\n bulkImportFiles as universalBulkImportFiles,\n bulkRestoreFilesFromTrashBin as universalBulkRestoreFilesFromTrashBin,\n generateFileDownloadUrl as universalGenerateFileDownloadUrl,\n generateFileResumableUploadUrl as universalGenerateFileResumableUploadUrl,\n generateFileUploadUrl as universalGenerateFileUploadUrl,\n generateFilesDownloadUrl as universalGenerateFilesDownloadUrl,\n generateVideoStreamingUrl as universalGenerateVideoStreamingUrl,\n getFileDescriptor as universalGetFileDescriptor,\n getFileDescriptors as universalGetFileDescriptors,\n importFile as universalImportFile,\n listDeletedFiles as universalListDeletedFiles,\n listFiles as universalListFiles,\n queryFileDescriptors as universalQueryFileDescriptors,\n searchFiles as universalSearchFiles,\n typedQueryFileDescriptors as universalTypedQueryFileDescriptors,\n updateFileDescriptor as universalUpdateFileDescriptor,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/media' };\n\nexport function generateFilesDownloadUrl(\n httpClient: HttpClient\n): GenerateFilesDownloadUrlSignature {\n return (fileIds: string[]) =>\n universalGenerateFilesDownloadUrl(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFilesDownloadUrlSignature {\n /**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @param - IDs of the files to download.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<\n NonNullablePaths<GenerateFilesDownloadUrlResponse, `downloadUrl`, 2>\n >;\n}\n\nexport function generateFileDownloadUrl(\n httpClient: HttpClient\n): GenerateFileDownloadUrlSignature {\n return (fileId: string, options?: GenerateFileDownloadUrlOptions) =>\n universalGenerateFileDownloadUrl(\n fileId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileDownloadUrlSignature {\n /**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @param - Options to use when generating a file's download URL.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<\n NonNullablePaths<\n GenerateFileDownloadUrlResponse,\n | `downloadUrls`\n | `downloadUrls.${number}.url`\n | `downloadUrls.${number}.assetKey`,\n 4\n > & {\n __validationErrorsType?: GenerateFileDownloadUrlValidationErrors;\n }\n >;\n}\n\nexport function getFileDescriptor(\n httpClient: HttpClient\n): GetFileDescriptorSignature {\n return (fileId: string) =>\n universalGetFileDescriptor(\n fileId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFileDescriptorSignature {\n /**\n * Gets information about a specific file in the Media Manager.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @returns Information about the file.\n */\n (fileId: string): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorValidationErrors;\n }\n >;\n}\n\nexport function getFileDescriptors(\n httpClient: HttpClient\n): GetFileDescriptorsSignature {\n return (fileIds: string[]) =>\n universalGetFileDescriptors(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFileDescriptorsSignature {\n /**\n * Gets information about specific files in the Media Manager.\n * @param - File IDs.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<\n NonNullablePaths<\n GetFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorsValidationErrors;\n }\n >;\n}\n\nexport function updateFileDescriptor(\n httpClient: HttpClient\n): UpdateFileDescriptorSignature {\n return (file: NonNullablePaths<FileDescriptor, `_id`, 2>) =>\n universalUpdateFileDescriptor(\n file,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateFileDescriptorSignature {\n /**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n * @param - The file to update.\n * @returns Information about the updated file.\n */\n (file: NonNullablePaths<FileDescriptor, `_id`, 2>): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: UpdateFileDescriptorValidationErrors;\n }\n >;\n}\n\nexport function generateFileUploadUrl(\n httpClient: HttpClient\n): GenerateFileUploadUrlSignature {\n return (mimeType: string, options?: GenerateFileUploadUrlOptions) =>\n universalGenerateFileUploadUrl(\n mimeType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileUploadUrlSignature {\n /**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n * @param - File mime type.\n * @param - Options to use when generating a file's upload URL.\n */\n (mimeType: string, options?: GenerateFileUploadUrlOptions): Promise<\n NonNullablePaths<GenerateFileUploadUrlResponse, `uploadUrl`, 2> & {\n __validationErrorsType?: GenerateFileUploadUrlValidationErrors;\n }\n >;\n}\n\nexport function generateFileResumableUploadUrl(\n httpClient: HttpClient\n): GenerateFileResumableUploadUrlSignature {\n return (mimeType: string, options?: GenerateFileResumableUploadUrlOptions) =>\n universalGenerateFileResumableUploadUrl(\n mimeType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileResumableUploadUrlSignature {\n /**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @param - File mime type.\n * @param - Options to use when generating a resumable upload URL.\n */\n (mimeType: string, options?: GenerateFileResumableUploadUrlOptions): Promise<\n NonNullablePaths<\n GenerateFileResumableUploadUrlResponse,\n `uploadProtocol` | `uploadUrl` | `uploadToken`,\n 2\n > & {\n __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors;\n }\n >;\n}\n\nexport function importFile(httpClient: HttpClient): ImportFileSignature {\n return (url: string, options?: ImportFileOptions) =>\n universalImportFile(\n url,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ImportFileSignature {\n /**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Publicly accessible external file URL.\n * @param - Options to use when importing a single file.\n */\n (url: string, options?: ImportFileOptions): Promise<\n NonNullablePaths<\n ImportFileResponse,\n | `file._id`\n | `file.displayName`\n | `file.url`\n | `file.hash`\n | `file.private`\n | `file.mediaType`\n | `file.media.image.colors.palette`\n | `file.media.image.faces`\n | `file.media.image.faces.${number}.confidence`\n | `file.media.image.faces.${number}.x`\n | `file.media.image.faces.${number}.y`\n | `file.media.image.faces.${number}.height`\n | `file.media.image.faces.${number}.width`\n | `file.media.audio._id`\n | `file.media.audio.assets`\n | `file.media.archive._id`\n | `file.media.archive.url`\n | `file.media.model3d._id`\n | `file.media.model3d.url`\n | `file.operationStatus`\n | `file.labels`\n | `file.siteId`\n | `file.state`,\n 7\n > & {\n __validationErrorsType?: ImportFileValidationErrors;\n }\n >;\n}\n\nexport function bulkImportFiles(\n httpClient: HttpClient\n): BulkImportFilesSignature {\n return (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n ) =>\n universalBulkImportFiles(\n importFileRequests,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkImportFilesSignature {\n /**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Information about the files to import.\n * @param - Options to use when uploading multiple files.\n * @deprecated\n */\n (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n ): Promise<\n NonNullablePaths<\n BulkImportFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n >;\n}\n\nexport function bulkImportFile(\n httpClient: HttpClient\n): BulkImportFileSignature {\n return (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n ) =>\n universalBulkImportFile(\n importFileRequests,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkImportFileSignature {\n /**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param - Information about the files to import.\n * @param - Options to include the file descriptor in the response.\n */\n (\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n ): Promise<\n NonNullablePaths<\n BulkImportFileResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.displayName`\n | `results.${number}.item.url`\n | `results.${number}.item.hash`\n | `results.${number}.item.private`\n | `results.${number}.item.mediaType`\n | `results.${number}.item.operationStatus`\n | `results.${number}.item.siteId`\n | `results.${number}.item.state`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function listFiles(httpClient: HttpClient): ListFilesSignature {\n return (options?: ListFilesOptions) =>\n universalListFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListFilesSignature {\n /**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n * @param - Options to use when listing media files.\n */\n (options?: ListFilesOptions): Promise<\n NonNullablePaths<\n ListFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListFilesValidationErrors;\n }\n >;\n}\n\nexport function searchFiles(httpClient: HttpClient): SearchFilesSignature {\n return (options?: SearchFilesOptions) =>\n universalSearchFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchFilesSignature {\n /**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n * @param - Options to specify which folders to search.\n */\n (options?: SearchFilesOptions): Promise<\n NonNullablePaths<\n SearchFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: SearchFilesValidationErrors;\n }\n >;\n}\n\nexport function generateVideoStreamingUrl(\n httpClient: HttpClient\n): GenerateVideoStreamingUrlSignature {\n return (fileId: string, options?: GenerateVideoStreamingUrlOptions) =>\n universalGenerateVideoStreamingUrl(\n fileId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateVideoStreamingUrlSignature {\n /**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n * @param - Options to use when generating a video file's streaming URL.\n * @param - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<\n NonNullablePaths<\n GenerateVideoStreamingUrlResponse,\n `downloadUrl.url` | `downloadUrl.assetKey`,\n 3\n >\n >;\n}\n\nexport function bulkDeleteFiles(\n httpClient: HttpClient\n): BulkDeleteFilesSignature {\n return (fileIds: string[], options?: BulkDeleteFilesOptions) =>\n universalBulkDeleteFiles(\n fileIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFilesSignature {\n /**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n * @param - Options to use when deleting files.\n * @param - IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[], options?: BulkDeleteFilesOptions): Promise<void>;\n}\n\nexport function bulkRestoreFilesFromTrashBin(\n httpClient: HttpClient\n): BulkRestoreFilesFromTrashBinSignature {\n return (fileIds: string[]) =>\n universalBulkRestoreFilesFromTrashBin(\n fileIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkRestoreFilesFromTrashBinSignature {\n /**\n * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.\n * @param - IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n */\n (fileIds: string[]): Promise<void>;\n}\n\nexport function listDeletedFiles(\n httpClient: HttpClient\n): ListDeletedFilesSignature {\n return (options?: ListDeletedFilesOptions) =>\n universalListDeletedFiles(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDeletedFilesSignature {\n /**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n * @param - Options to use when listing deleted files from the trash bin.\n */\n (options?: ListDeletedFilesOptions): Promise<\n NonNullablePaths<\n ListDeletedFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListDeletedFilesValidationErrors;\n }\n >;\n}\n\nexport function queryFileDescriptors(\n httpClient: HttpClient\n): QueryFileDescriptorsSignature {\n return () =>\n universalQueryFileDescriptors(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryFileDescriptorsSignature {\n /** */\n (): FilesQueryBuilder;\n}\n\nexport function typedQueryFileDescriptors(\n httpClient: HttpClient\n): TypedQueryFileDescriptorsSignature {\n return (query: FileDescriptorQuery) =>\n universalTypedQueryFileDescriptors(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryFileDescriptorsSignature {\n /** */\n (query: FileDescriptorQuery): Promise<\n NonNullablePaths<\n QueryFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n >;\n}\n\nexport const onFileDescriptorFileFailed = EventDefinition(\n 'wix.media.site_media.v1.file_descriptor_file_failed',\n true,\n (event: FileDescriptorFileFailedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<FileDescriptorFileFailedEnvelope>();\nexport const onFileDescriptorFileReady = EventDefinition(\n 'wix.media.site_media.v1.file_descriptor_file_ready',\n true,\n (event: FileDescriptorFileReadyEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.file.createdDate' },\n { path: 'data.file.updatedDate' },\n { path: 'data.file.lastUsedDate' },\n { path: 'data.file.media.archive.urlExpirationDate' },\n { path: 'data.file.media.model3d.urlExpirationDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'data.file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'data.file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'data.file.media.image.image' },\n { path: 'data.file.media.image.previewImage' },\n { path: 'data.file.media.vector.image' },\n { path: 'data.file.media.vector.previewImage' },\n { path: 'data.file.media.model3d.thumbnail' },\n { path: 'data.file.media.icon.image' },\n { path: 'data.file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'data.file.media.image.faces.confidence' },\n { path: 'data.file.media.vector.faces.confidence' },\n { path: 'data.file.media.icon.faces.confidence' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'data.file.media.audio.assets', isRepeated: true }],\n },\n ])\n )\n)<FileDescriptorFileReadyEnvelope>();\n\nexport {\n AccountInfo,\n ActionEvent,\n ApplicationError,\n Archive,\n AudioV2,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkAnnotateImageResult,\n BulkAnnotateImagesRequest,\n BulkAnnotateImagesResponse,\n BulkDeleteFilesOptions,\n BulkDeleteFilesRequest,\n BulkDeleteFilesResponse,\n BulkImportFileOptions,\n BulkImportFileRequest,\n BulkImportFileResponse,\n BulkImportFileResult,\n BulkImportFilesRequest,\n BulkImportFilesResponse,\n BulkInternalImportFilesRequest,\n BulkInternalImportFilesResponse,\n BulkPublishDraftFileResult,\n BulkPublishDraftFilesRequest,\n BulkPublishDraftFilesResponse,\n BulkRestoreFilesFromTrashBinRequest,\n BulkRestoreFilesFromTrashBinResponse,\n Color,\n ColorRGB,\n Colors,\n CommonCursorPaging,\n ContentDisposition,\n CursorPaging,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n DownloadUrl,\n DraftFilePublished,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExternalInfo,\n FaceRecognition,\n FileDescriptor,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n FileDescriptorQuerySpec,\n FileFailed,\n FileMedia,\n FileMediaMediaOneOf,\n FileReady,\n FilesQueryBuilder,\n FilesQueryResult,\n FocalPoint,\n FontAsset,\n FontMedia,\n GenerateAnimatedVectorRequest,\n GenerateAnimatedVectorResponse,\n GenerateFileDownloadUrlOptions,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n GenerateFileResumableUploadUrlOptions,\n GenerateFileResumableUploadUrlRequest,\n GenerateFileResumableUploadUrlResponse,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlRequest,\n GenerateFileUploadUrlResponse,\n GenerateFilesDownloadUrlRequest,\n GenerateFilesDownloadUrlResponse,\n GenerateVideoStreamingUrlOptions,\n GenerateVideoStreamingUrlRequest,\n GenerateVideoStreamingUrlResponse,\n GenerateWebSocketTokenRequest,\n GenerateWebSocketTokenResponse,\n GetFileDescriptorRequest,\n GetFileDescriptorResponse,\n GetFileDescriptorsRequest,\n GetFileDescriptorsResponse,\n GetSiteFileDescriptorsRequest,\n GetSiteFileDescriptorsResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentityInfo,\n IdentityType,\n ImageAnnotationConfigurations,\n ImageAnnotationType,\n ImageMedia,\n ImportFileOptions,\n ImportFileRequest,\n ImportFileResponse,\n ItemMetadata,\n ListDeletedFilesOptions,\n ListDeletedFilesRequest,\n ListDeletedFilesResponse,\n ListFilesOptions,\n ListFilesRequest,\n ListFilesResponse,\n MediaType,\n MessageEnvelope,\n Model3D,\n Namespace,\n OperationStatus,\n OtherMedia,\n PagingMetadataV2,\n Plan,\n Plans,\n QueryFileDescriptorsRequest,\n QueryFileDescriptorsResponse,\n RestoreInfo,\n RootFolder,\n SearchFilesOptions,\n SearchFilesRequest,\n SearchFilesResponse,\n ServiceError,\n SiteQuotaExceededError,\n SortOrder,\n Sorting,\n State,\n StreamFormat,\n TotalQuota,\n UnsupportedRequestValueError,\n UpdateFileDescriptorRequest,\n UpdateFileDescriptorResponse,\n UpdateFileRequest,\n UpdateFileResponse,\n UploadProtocol,\n VideoResolution,\n WebhookIdentityType,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptor from './media-site-media-v1-file-descriptor-files.http.js';\n// @ts-ignore\nimport { transformSDKAudioToRESTAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformSDKDocumentToRESTDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface FileDescriptor {\n /**\n * File ID. Generated when a file is uploaded to the Media Manager.\n * @readonly\n * @maxLength 1000\n */\n _id?: string;\n /**\n * File name as it appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string;\n /**\n * Static URL of the file.\n * @readonly\n * @format WEB_URL\n */\n url?: string;\n /**\n * ID of the file's parent folder.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File hash.\n * @readonly\n * @maxLength 100\n */\n hash?: string;\n /**\n * Size of the uploaded file in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n * @readonly\n */\n private?: boolean;\n /**\n * Media file type.\n * @readonly\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Media file content.\n * @readonly\n */\n media?: FileMedia;\n /**\n * Status of the file that was uploaded.\n * @readonly\n */\n operationStatus?: OperationStatusWithLiterals;\n /**\n * URL where the file was uploaded from.\n * @readonly\n * @format WEB_URL\n */\n sourceUrl?: string | null;\n /**\n * URL of the file's thumbnail.\n * @readonly\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 100\n * @maxLength 200\n */\n labels?: string[];\n /**\n * Date and time the file was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the file was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * The Wix site ID where the media file is stored.\n * @readonly\n * @maxLength 100\n */\n siteId?: string;\n /**\n * State of the file.\n * @readonly\n */\n state?: StateWithLiterals;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n AUDIO = 'AUDIO',\n DOCUMENT = 'DOCUMENT',\n VECTOR = 'VECTOR',\n ARCHIVE = 'ARCHIVE',\n MODEL3D = 'MODEL3D',\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT'\n | 'VECTOR'\n | 'ARCHIVE'\n | 'MODEL3D'\n | 'OTHER';\n\nexport interface FileMedia extends FileMediaMediaOneOf {\n /** Information about the image. */\n image?: ImageMedia;\n /** Information about the video. */\n video?: string;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: string;\n /** Information about the vector. */\n vector?: ImageMedia;\n /** Information about the archive. */\n archive?: Archive;\n /** Information about the 3D Model. */\n model3d?: Model3D;\n}\n\n/** @oneof */\nexport interface FileMediaMediaOneOf {\n /** Information about the image. */\n image?: ImageMedia;\n /** Information about the video. */\n video?: string;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: string;\n /** Information about the vector. */\n vector?: ImageMedia;\n /** Information about the archive. */\n archive?: Archive;\n /** Information about the 3D Model. */\n model3d?: Model3D;\n}\n\nexport interface ImageMedia {\n /** Image data. */\n image?: string;\n /** Image colors. */\n colors?: Colors;\n /**\n * Information about faces in the image. Use to crop images without cutting out faces.\n * @maxSize 100\n */\n faces?: FaceRecognition[];\n /**\n * Information about the image preview.\n * You can use this to display a preview for private images.\n */\n previewImage?: string;\n /**\n * Optional, An AI generated description of the image\n * @readonly\n * @maxLength 300\n */\n caption?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface Colors {\n /** Main color of the image. */\n prominent?: Color;\n /**\n * Color palette of the image.\n * @maxSize 100\n */\n palette?: Color[];\n}\n\nexport interface Color {\n /**\n * HEX color.\n * @format COLOR_HEX\n */\n hex?: string | null;\n /** RGB color. */\n rgb?: ColorRGB;\n}\n\nexport interface ColorRGB {\n /**\n * Red channel.\n * @max 255\n */\n r?: number | null;\n /**\n * Green channel.\n * @max 255\n */\n g?: number | null;\n /**\n * Blue channel.\n * @max 255\n */\n b?: number | null;\n}\n\n/**\n * Using this object you can crop images while centering on faces\n * ------------------------\n * | |\n * | x,y |\n * | *-------- |\n * | | . . | |\n * | | | | height |\n * | | \\ / | |\n * | | | |\n * | --------- |\n * | width |\n * | |\n * |______________________|\n */\nexport interface FaceRecognition {\n /** The accuracy percentage of the face recognition. The likelihood that a face is detected. */\n confidence?: number;\n /** Top left x pixel coordinate of the face. */\n x?: number;\n /** Top left y pixel coordinate of the face. */\n y?: number;\n /** Face pixel height. */\n height?: number;\n /** Face pixel width. */\n width?: number;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /**\n * Video format\n * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'\n * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]\n */\n format?: string;\n}\n\nexport interface AudioV2 {\n /**\n * WixMedia ID.\n * @maxLength 200\n */\n _id?: string;\n /**\n * Audio formats available for this file.\n * @maxSize 100\n */\n assets?: string[];\n /**\n * Audio bitrate.\n * @readonly\n */\n bitrate?: number | null;\n /**\n * Audio format.\n * @readonly\n * @maxLength 100\n */\n format?: string | null;\n /**\n * Audio duration in seconds.\n * @readonly\n */\n duration?: number | null;\n /**\n * Audio size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { maxScale:0 }\n */\n sizeInBytes?: string | null;\n}\n\nexport interface Archive {\n /** WixMedia ID. */\n _id?: string;\n /** Archive URL. */\n url?: string;\n /**\n * Archive URL expiration date (when relevant).\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * Archive size in bytes.\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /** Archive filename. */\n filename?: string | null;\n}\n\nexport interface Model3D {\n /** WixMedia 3D ID. */\n _id?: string;\n /** 3D URL. */\n url?: string;\n /** 3D thumbnail Image */\n thumbnail?: string;\n /** 3D alt text. */\n altText?: string | null;\n /**\n * 3D URL expiration date (when relevant).\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * 3D filename.\n * @readonly\n */\n filename?: string | null;\n /**\n * 3D size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n}\n\nexport interface OtherMedia {\n /**\n * WixMedia ID. for use with Site Media APIs only\n * @maxLength 200\n */\n _id?: string;\n /**\n * The media type of the file: 'package', 'raw'\n * @readonly\n * @maxLength 100\n */\n internalMediaType?: string | null;\n /**\n * size in bytes. Optional.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * The file URL.\n * @format WEB_URL\n */\n url?: string;\n}\n\nexport interface FontMedia {\n /**\n * WixMedia ID. for use with Site Media APIs only\n * @maxLength 200\n */\n _id?: string | null;\n /**\n * size in bytes. Optional.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * The format of the font asset. ttf, woff, woff2\n * @maxLength 200\n */\n format?: string | null;\n /**\n * The font family name.\n * @maxLength 100\n */\n family?: string | null;\n /**\n * The font name\n * @maxLength 100\n */\n fontName?: string | null;\n /**\n * Font formats available for this file.\n * @maxSize 5\n */\n assets?: FontAsset[];\n}\n\nexport interface FontAsset {\n /**\n * Keys for downloading different assets of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxLength 100\n */\n assetKey?: string | null;\n /**\n * The URL of the font asset.\n * @maxLength 200\n */\n url?: string | null;\n /**\n * The format of the font asset. ttf, woff, woff2\n * @maxLength 200\n */\n format?: string | null;\n}\n\nexport enum OperationStatus {\n /** The file failed to upload, for example, during media post processing. */\n FAILED = 'FAILED',\n /** The file uploaded, finished all processing, and is ready for use. */\n READY = 'READY',\n /** The file is processing and the URLs are not yet available. This response is returned when importing a file. */\n PENDING = 'PENDING',\n}\n\n/** @enumType */\nexport type OperationStatusWithLiterals =\n | OperationStatus\n | 'FAILED'\n | 'READY'\n | 'PENDING';\n\nexport enum State {\n /** File is ready for consumption */\n OK = 'OK',\n /** Deleted file */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'OK' | 'DELETED';\n\nexport enum Namespace {\n /** No namespaces */\n NO_NAMESPACE = 'NO_NAMESPACE',\n /** Custom namespace */\n OTHERS = 'OTHERS',\n /** Wix videos */\n WIX_VIDEO = 'WIX_VIDEO',\n /** Wix music */\n WIX_MUSIC = 'WIX_MUSIC',\n /** Albums and art store */\n ALBUMS_AND_ART_STORE = 'ALBUMS_AND_ART_STORE',\n /** Wix ecom */\n WIX_ECOM = 'WIX_ECOM',\n /** Photo share */\n PHOTO_SHARE_APP = 'PHOTO_SHARE_APP',\n /** Sharing app */\n SHARING_APP = 'SHARING_APP',\n /** Chat (engage) */\n CHAT = 'CHAT',\n /** Logo builder */\n LOGO_BUILDER = 'LOGO_BUILDER',\n /** Albums old namespace */\n ALBUMS_OLD = 'ALBUMS_OLD',\n /** Mobile chat */\n CHAT_MOBILE = 'CHAT_MOBILE',\n /** Wix Forms */\n WIX_FORMS = 'WIX_FORMS',\n /** Wix legends */\n WIX_LEGENDS = 'WIX_LEGENDS',\n /** Portfolio */\n PORTFOLIO = 'PORTFOLIO',\n /** LOGOS */\n LOGOS = 'LOGOS',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'NO_NAMESPACE'\n | 'OTHERS'\n | 'WIX_VIDEO'\n | 'WIX_MUSIC'\n | 'ALBUMS_AND_ART_STORE'\n | 'WIX_ECOM'\n | 'PHOTO_SHARE_APP'\n | 'SHARING_APP'\n | 'CHAT'\n | 'LOGO_BUILDER'\n | 'ALBUMS_OLD'\n | 'CHAT_MOBILE'\n | 'WIX_FORMS'\n | 'WIX_LEGENDS'\n | 'PORTFOLIO'\n | 'LOGOS';\n\nexport interface IdentityInfo {\n /** The type of the user that uploaded the file */\n identityType?: IdentityTypeWithLiterals;\n /**\n * User Id. empty when UNKNOWN\n * @format GUID\n */\n identityId?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n | IdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface DraftFilePublished {\n /** The file after it was published */\n file?: FileDescriptor;\n /** The namespace the file was published to */\n namespace?: NamespaceWithLiterals;\n}\n\nexport interface FileFailed {\n /** External information specified in the file import or upload. */\n externalInfo?: ExternalInfo;\n /** Error information. */\n error?: ApplicationError;\n}\n\nexport interface ExternalInfo {\n /**\n * External information to specify in the File Ready or File Failed events.\n * @maxLength 1000\n */\n origin?: string;\n /**\n * External IDs to specify in the File Ready or File Failed events.\n * @maxSize 30\n * @maxLength 4000\n */\n externalIds?: string[];\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface FileReady {\n /** File entity that is ready with full information. */\n file?: FileDescriptor;\n /** External information specified in the file import or upload. */\n externalInfo?: ExternalInfo;\n /** File was restored from the trash-bin. */\n triggeredByUndelete?: boolean;\n}\n\nexport interface BulkAnnotateImagesRequest {\n /**\n * The file ids to run detection on\n * @minSize 1\n * @maxSize 10\n * @maxLength 1000\n */\n fileIds?: string[];\n /**\n * A list of detections types to fill for the image\n * @minSize 1\n * @maxSize 10\n */\n annotationTypes?: ImageAnnotationTypeWithLiterals[];\n /** When true the endpoint will detect listed information even if the image has this information */\n overwrite?: boolean | null;\n /** Should the response return the item following the operation */\n returnEntity?: boolean;\n}\n\nexport enum ImageAnnotationType {\n UNKNOWN_IMAGE_ANNOTATION_TYPE = 'UNKNOWN_IMAGE_ANNOTATION_TYPE',\n CONTAINS_TEXT = 'CONTAINS_TEXT',\n IS_ANIMATED = 'IS_ANIMATED',\n FACES = 'FACES',\n LABELS = 'LABELS',\n COLORS = 'COLORS',\n CAPTION = 'CAPTION',\n}\n\n/** @enumType */\nexport type ImageAnnotationTypeWithLiterals =\n | ImageAnnotationType\n | 'UNKNOWN_IMAGE_ANNOTATION_TYPE'\n | 'CONTAINS_TEXT'\n | 'IS_ANIMATED'\n | 'FACES'\n | 'LABELS'\n | 'COLORS'\n | 'CAPTION';\n\nexport interface BulkAnnotateImagesResponse {\n /** Results of individual items */\n results?: BulkAnnotateImageResult[];\n /** Metadata of the operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAnnotateImageResult {\n /** Item metadata */\n itemMetadata?: ItemMetadata;\n /**\n * The item following the operation\n * Only returned if operation was successful and if returnEntity flag was on\n */\n item?: FileDescriptor;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface GenerateAnimatedVectorRequest {\n /**\n * Start file id\n * @maxLength 1000\n */\n startVectorId?: string;\n /**\n * End file id\n * @maxLength 1000\n */\n endVectorId?: string;\n /**\n * Result file name as it appears in the Media Manager.\n * @maxLength 256\n */\n displayName?: string;\n}\n\nexport interface GenerateAnimatedVectorResponse {\n /** Information about the result file. */\n file?: FileDescriptor;\n}\n\nexport interface GenerateFilesDownloadUrlRequest {\n /**\n * IDs of the files to download.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface GenerateFilesDownloadUrlResponse {\n /**\n * URL for downloading the compressed file containing the specified files in the Media Manager.\n * @format WEB_URL\n */\n downloadUrl?: string;\n}\n\nexport interface GenerateFileDownloadUrlRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId: string;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type. <br />\n *\n * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.\n * @maxLength 100\n */\n downloadFileName?: string | null;\n /**\n * The time that it takes in minutes for the download URL to expire. <br />\n * Default: `600`. <br />\n * Limit: `525600` (1 year).\n * @min 1\n */\n expirationInMinutes?: number | null;\n /**\n * The redirect URL for when the temporary download URL with a token expires. <br />\n * Default: A 403 Forbidden response page.\n * @format WEB_URL\n */\n expirationRedirectUrl?: string | null;\n /**\n * Keys for downloading different assets (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxSize 100\n * @maxLength 100\n */\n assetKeys?: string[] | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n *\n * - `ATTACHMENT`: The link downloads the file.\n * - `INLINE`: The link opens the file in the browser.\n *\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\nexport enum ContentDisposition {\n /** Using the link in the browser will download the file */\n ATTACHMENT = 'ATTACHMENT',\n /** Using the link in the browser will open the file in the browser */\n INLINE = 'INLINE',\n}\n\n/** @enumType */\nexport type ContentDispositionWithLiterals =\n | ContentDisposition\n | 'ATTACHMENT'\n | 'INLINE';\n\nexport interface GenerateFileDownloadUrlResponse {\n /**\n * URL for downloading a specific file in the Media Manager.\n * @maxSize 100\n */\n downloadUrls?: DownloadUrl[];\n}\n\nexport interface DownloadUrl {\n /**\n * The file download URL.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Key for downloading a different asset (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxLength 100\n */\n assetKey?: string;\n}\n\nexport interface ServiceError {\n /**\n * Error codes are groups of related errors\n * The error code can be used to provide additional details to wix support while debugging service errors\n * @maxLength 200\n */\n internalCode?: string | null;\n /** Debugging information, http status code returned from wix media internal API */\n internalHttpStatusCode?: number | null;\n /**\n * Optional Debugging information, error key will represent the error \"family\" returned from wix media internal API\n * @maxLength 200\n */\n internalKey?: string | null;\n}\n\nexport interface GetFileDescriptorRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n *\n * If you are working in REST, note that you must encode the Wix media URL to specify it as a query param because it contains special characters. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032` becomes `wix%3Aimage%3A%2F%2Fv1%2F0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg%2Fleon.jpg%23originWidth%3D3024%26originHeight%3D4032`.\n * @maxLength 1000\n */\n fileId: string;\n}\n\nexport interface GetFileDescriptorResponse {\n /** Information about the file. */\n file?: FileDescriptor;\n}\n\nexport interface GetFileDescriptorsRequest {\n /**\n * File IDs.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 100\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface GetFileDescriptorsResponse {\n /**\n * Information about the requested files.\n * @maxSize 100\n */\n files?: FileDescriptor[];\n}\n\nexport interface GetSiteFileDescriptorsRequest {\n /**\n * File IDs.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @minSize 1\n * @maxSize 1500\n * @maxLength 1000\n */\n fileIds?: string[];\n}\n\nexport interface GetSiteFileDescriptorsResponse {\n /**\n * Information about the requested files.\n * @maxSize 1500\n */\n files?: FileDescriptor[];\n /**\n * @maxSize 1500\n * @maxLength 1000\n */\n missingFileIds?: string[];\n}\n\nexport interface UpdateFileDescriptorRequest {\n /** The file to update. */\n file: FileDescriptor;\n}\n\nexport interface UpdateFileDescriptorResponse {\n /** Information about the updated file. */\n file?: FileDescriptor;\n}\n\nexport interface UnsupportedRequestValueError {\n /**\n * Optional A list of allowed values\n * @maxSize 100\n * @maxLength 200\n */\n allowedValues?: string[];\n /**\n * The unsupported value send in the request\n * @maxLength 200\n */\n requestValue?: string;\n}\n\nexport interface GenerateFileUploadUrlRequest {\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType: string | null;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 50\n * @maxLength 200\n */\n labels?: string[] | null;\n /** A place to map an external entity to an uploaded file in the Wix Media Manager. */\n externalInfo?: ExternalInfo;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport interface ImageAnnotationConfigurations {\n /** Whether to skip detection for the image */\n skipDetection?: boolean | null;\n /**\n * A list of detections types to fill for the image\n * If specified at least one valid annotation type should be provided\n * Default will be all detections\n * @maxSize 10\n */\n annotationTypes?: ImageAnnotationTypeWithLiterals[];\n}\n\nexport interface GenerateFileUploadUrlResponse {\n /**\n * The URL for uploading a file to the Media Manager.\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface SiteQuotaExceededError {\n /**\n * Error codes are groups of related errors\n * The error code can be used to provide additional details to wix support while debugging service errors\n * @maxLength 200\n */\n internalCode?: string | null;\n /** Debugging information, http status code returned from wix media internal API */\n internalHttpStatusCode?: number | null;\n /**\n * Optional Debugging information, error key will represent the error \"family\" returned from wix media internal API\n * @maxLength 200\n */\n internalKey?: string | null;\n /** The quota details */\n quota?: TotalQuota;\n}\n\nexport interface TotalQuota {\n /** Storage quota in bytes. */\n storage?: string | null;\n /** Premium plans that determine the storage quota. */\n plans?: Plans;\n /** Time for which the quota is relevant - When the plans were retrieved from premium */\n timestamp?: Date | null;\n}\n\nexport interface Plans {\n /** Current premium plan details. */\n premium?: Plan;\n /**\n * URL for upgrading the storage quota.\n * @format WEB_URL\n */\n upgradeUrl?: string;\n}\n\nexport interface Plan {\n /**\n * Plan ID.\n * @readonly\n * @format GUID\n */\n _id?: string;\n /** Plan name. */\n name?: string;\n /** Date and time when the plan was created. */\n createdAt?: Date | null;\n /** Date and time when the plan expires. */\n expiresAt?: Date | null;\n}\n\nexport interface GenerateFileResumableUploadUrlRequest {\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType: string | null;\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport enum UploadProtocol {\n /** The upload protocol to use for implementing the resumable upload. */\n TUS = 'TUS',\n}\n\n/** @enumType */\nexport type UploadProtocolWithLiterals = UploadProtocol | 'TUS';\n\nexport interface GenerateFileResumableUploadUrlResponse {\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * The URL for uploading a file to the Media Manager.\n * @format WEB_URL\n */\n uploadUrl?: string;\n /**\n * Single-use upload token.\n * @maxLength 2000\n */\n uploadToken?: string;\n}\n\nexport interface ImportFileRequest {\n /**\n * Publicly accessible external file URL.\n * @format WEB_URL\n * @minLength 2\n */\n url: string;\n /**\n * Media type of the file to import.\n * excluding: OTHER media type\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType?: string;\n /** Information sent to the File Ready and File Failed events. See [Importing Files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files) to learn more. */\n externalInfo?: ExternalInfo;\n /** Optional parameters that should be sent with the external URL. */\n urlParams?: Record<string, any> | null;\n /** Optional headers that should be sent with the external URL. */\n urlHeaders?: Record<string, any> | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\nexport interface ImportFileResponse {\n /** Information about the imported file. */\n file?: FileDescriptor;\n}\n\nexport interface BulkImportFilesRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 100\n */\n importFileRequests: ImportFileRequest[];\n}\n\nexport interface BulkImportFilesResponse {\n /**\n * Information about the imported files.\n * @maxSize 100\n */\n files?: FileDescriptor[];\n}\n\nexport interface BulkImportFileRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 100\n */\n importFileRequests: ImportFileRequest[];\n /** Default: `true` */\n returnEntity?: boolean | null;\n}\n\nexport interface BulkImportFileResponse {\n /** Items created by bulk action. */\n results?: BulkImportFileResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkImportFileResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */\n item?: FileDescriptor;\n}\n\nexport interface BulkInternalImportFilesRequest {\n /**\n * Information about the files to import.\n * @minSize 1\n * @maxSize 5\n */\n importFileRequests?: ImportFileRequest[];\n}\n\nexport interface BulkInternalImportFilesResponse {\n /** Items created by bulk action. */\n results?: BulkImportFileResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListFilesRequest {\n /**\n * ID of the file's parent folder.\n *\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of:\n *\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ListFilesResponse {\n /**\n * List of files in the Media Manager.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n}\n\nexport interface SearchFilesRequest {\n /**\n * Free text to match in searchable fields.\n *\n * For example, search for specific values in a file's\n * `displayName`, `mimeType`, or `label`.\n * @maxLength 200\n */\n search?: string | null;\n /**\n * The root folder in the media manager to search in.\n * For more information, see Root Folders in [Terminology](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology).\n *\n * Default: `MEDIA_ROOT`.\n */\n rootFolder?: RootFolderWithLiterals;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by.\n *\n * One of:\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport enum RootFolder {\n /** Contains all files and folders in the Media Manager's **Site Files** tab in the UI. */\n MEDIA_ROOT = 'MEDIA_ROOT',\n /** Contains all files and folders in the Media Manager's **Trash** tab in the UI. */\n TRASH_ROOT = 'TRASH_ROOT',\n /** Contains all files and folders created by site visitors or members. */\n VISITOR_UPLOADS_ROOT = 'VISITOR_UPLOADS_ROOT',\n}\n\n/** @enumType */\nexport type RootFolderWithLiterals =\n | RootFolder\n | 'MEDIA_ROOT'\n | 'TRASH_ROOT'\n | 'VISITOR_UPLOADS_ROOT';\n\nexport interface SearchFilesResponse {\n /**\n * Retrieved files that match the search criteria specified in the request.\n *\n * Each file includes all standard file information.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface GenerateVideoStreamingUrlRequest {\n /**\n * File ID.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId: string;\n /** Video stream format. */\n format?: StreamFormatWithLiterals;\n}\n\nexport enum StreamFormat {\n UNKNOWN = 'UNKNOWN',\n HLS = 'HLS',\n DASH = 'DASH',\n}\n\n/** @enumType */\nexport type StreamFormatWithLiterals =\n | StreamFormat\n | 'UNKNOWN'\n | 'HLS'\n | 'DASH';\n\nexport interface GenerateVideoStreamingUrlResponse {\n /** URL for streaming a specific file in the Media Manager. */\n downloadUrl?: DownloadUrl;\n}\n\nexport interface GenerateWebSocketTokenRequest {}\n\nexport interface GenerateWebSocketTokenResponse {\n /**\n * The web socket token for the identity in the request\n * @maxLength 2000\n */\n token?: string;\n}\n\nexport interface BulkDeleteFilesRequest {\n /**\n * IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n /**\n * Whether the specified files are permanently deleted. <br />\n * Default: `false`\n */\n permanent?: boolean;\n}\n\nexport interface BulkDeleteFilesResponse {}\n\nexport interface BulkRestoreFilesFromTrashBinRequest {\n /**\n * IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 1000\n * @maxLength 1000\n */\n fileIds: string[];\n}\n\nexport interface BulkRestoreFilesFromTrashBinResponse {}\n\nexport interface ListDeletedFilesRequest {\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /** \\n`true`: Returns only private files. \\n`false`: Returns only public files. \\n`undefined`: Returns public and private files. \\n Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of: <br />\n * * `displayName`\n * * `updatedDate`\n * * `sizeInBytes`\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\nexport interface ListDeletedFilesResponse {\n /**\n * List of files in the Media Manager's trash bin.\n * @maxSize 200\n */\n files?: FileDescriptor[];\n /** The next cursor if it exists. */\n nextCursor?: PagingMetadataV2;\n}\n\nexport interface BulkPublishDraftFilesRequest {\n /**\n * IDs of the draft files to be published.\n *\n * You can also specify the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxSize 100\n * @maxLength 1000\n */\n fileIds?: string[];\n /**\n * The namespace the files will be published to\n * Note, private files must have a namespace\n */\n namespace?: NamespaceWithLiterals;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n /** Should the response return the item following the operation */\n returnEntity?: boolean;\n}\n\nexport interface BulkPublishDraftFilesResponse {\n /** Results of individual items */\n results?: BulkPublishDraftFileResult[];\n /** Metadata of the operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPublishDraftFileResult {\n /** Item metadata */\n itemMetadata?: ItemMetadata;\n /**\n * The item following the operation\n * Only returned if operation was successful and if returnEntity flag was on\n */\n item?: FileDescriptor;\n}\n\nexport interface UpdateFileRequest {\n /**\n * ID of the file to update.\n *\n * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.\n * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).\n * @maxLength 1000\n */\n fileId?: string;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n}\n\nexport interface UpdateFileResponse {\n /** Information about the updated file. */\n file?: FileDescriptor;\n}\n\nexport interface QueryFileDescriptorsRequest {\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CommonCursorPaging;\n}\n\nexport interface CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryFileDescriptorsResponse {\n /** @maxSize 200 */\n files?: FileDescriptor[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GenerateFileDownloadUrlValidationErrors = {\n ruleName?: 'INVALID_ASSET_KEY';\n};\n/** @docsIgnore */\nexport type GetFileDescriptorValidationErrors = {\n ruleName?: 'RESOURCE_NOT_FOUND';\n};\n/** @docsIgnore */\nexport type GetFileDescriptorsValidationErrors = {\n ruleName?: 'RESOURCE_NOT_FOUND';\n};\n/** @docsIgnore */\nexport type UpdateFileDescriptorValidationErrors = {\n ruleName?: 'FIELD_MASK_IS_EMPTY_OR_MISSING';\n};\n/** @docsIgnore */\nexport type GenerateFileUploadUrlValidationErrors =\n | {\n ruleName?: 'MISMATCH_MIME_TYPE';\n }\n | {\n ruleName?: 'ZERO_FILE_SIZE';\n }\n | {\n ruleName?: 'UNSUPPORTED_FILE_FORMAT';\n }\n | {\n ruleName?: 'FILE_SIZE_OVER_LIMIT';\n }\n | {\n ruleName?: 'SITE_QUOTA_EXCEEDED';\n };\n/** @docsIgnore */\nexport type GenerateFileResumableUploadUrlValidationErrors =\n | {\n ruleName?: 'MISMATCH_MIME_TYPE';\n }\n | {\n ruleName?: 'ZERO_FILE_SIZE';\n }\n | {\n ruleName?: 'UNSUPPORTED_FILE_FORMAT';\n }\n | {\n ruleName?: 'FILE_SIZE_OVER_LIMIT';\n };\n/** @docsIgnore */\nexport type ImportFileValidationErrors = {\n ruleName?: 'SITE_QUOTA_EXCEEDED';\n};\n/** @docsIgnore */\nexport type ListFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n/** @docsIgnore */\nexport type SearchFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n/** @docsIgnore */\nexport type ListDeletedFilesValidationErrors =\n | {\n ruleName?: 'UNSUPPORTED_MEDIA_TYPE';\n }\n | {\n ruleName?: 'UNSUPPORTED_SORT_VALUE';\n };\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\ninterface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface FileDescriptorFileFailedEnvelope {\n data: FileFailed;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a file's import fails. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Challenges\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Read Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER\n * @permissionScope Manage Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER\n * @permissionScope Manage Portfolio\n * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO\n * @permissionScope View SEO Settings\n * @permissionScopeId SCOPE.PROMOTE.VIEW-SEO\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @webhook\n * @eventType wix.media.site_media.v1.file_descriptor_file_failed\n * @slug file_failed\n */\nexport declare function onFileDescriptorFileFailed(\n handler: (event: FileDescriptorFileFailedEnvelope) => void | Promise<void>\n): void;\n\nexport interface FileDescriptorFileReadyEnvelope {\n data: FileReady;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a file finishes processing successfully. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Challenges\n * @permissionScopeId SCOPE.CHALLENGES.MANAGE\n * @permissionScope Read Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER\n * @permissionScope Manage Media Manager\n * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER\n * @permissionScope Manage Portfolio\n * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO\n * @permissionScope View SEO Settings\n * @permissionScopeId SCOPE.PROMOTE.VIEW-SEO\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @webhook\n * @eventType wix.media.site_media.v1.file_descriptor_file_ready\n * @slug file_ready\n */\nexport declare function onFileDescriptorFileReady(\n handler: (event: FileDescriptorFileReadyEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @public\n * @requiredField fileIds\n * @param fileIds - IDs of the files to download.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl\n */\nexport async function generateFilesDownloadUrl(\n fileIds: string[]\n): Promise<\n NonNullablePaths<GenerateFilesDownloadUrlResponse, `downloadUrl`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFilesDownloadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n * @public\n * @requiredField fileId\n * @param options - Options to use when generating a file's download URL.\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_DOWNLOAD_URL\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl\n */\nexport async function generateFileDownloadUrl(\n fileId: string,\n options?: GenerateFileDownloadUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateFileDownloadUrlResponse,\n | `downloadUrls`\n | `downloadUrls.${number}.url`\n | `downloadUrls.${number}.assetKey`,\n 4\n > & {\n __validationErrorsType?: GenerateFileDownloadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileId: fileId,\n downloadFileName: options?.downloadFileName,\n expirationInMinutes: options?.expirationInMinutes,\n expirationRedirectUrl: options?.expirationRedirectUrl,\n assetKeys: options?.assetKeys,\n contentDisposition: options?.contentDisposition,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileDownloadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fileId: '$[0]',\n downloadFileName: '$[1].downloadFileName',\n expirationInMinutes: '$[1].expirationInMinutes',\n expirationRedirectUrl: '$[1].expirationRedirectUrl',\n assetKeys: '$[1].assetKeys',\n contentDisposition: '$[1].contentDisposition',\n },\n singleArgumentUnchanged: false,\n },\n ['fileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileDownloadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type. <br />\n *\n * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.\n * @maxLength 100\n */\n downloadFileName?: string | null;\n /**\n * The time that it takes in minutes for the download URL to expire. <br />\n * Default: `600`. <br />\n * Limit: `525600` (1 year).\n * @min 1\n */\n expirationInMinutes?: number | null;\n /**\n * The redirect URL for when the temporary download URL with a token expires. <br />\n * Default: A 403 Forbidden response page.\n * @format WEB_URL\n */\n expirationRedirectUrl?: string | null;\n /**\n * Keys for downloading different assets (format and quality) of a file.\n * Default: `src`, key representing the original file's format and quality.\n * @maxSize 100\n * @maxLength 100\n */\n assetKeys?: string[] | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n *\n * - `ATTACHMENT`: The link downloads the file.\n * - `INLINE`: The link opens the file in the browser.\n *\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\n/**\n * Gets information about a specific file in the Media Manager.\n * @public\n * @requiredField fileId\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @returns Information about the file.\n * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptor\n */\nexport async function getFileDescriptor(fileId: string): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileId: fileId });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptor(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )?.file!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Gets information about specific files in the Media Manager.\n * @public\n * @requiredField fileIds\n * @param fileIds - File IDs.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GetFileDescriptors\n */\nexport async function getFileDescriptors(fileIds: string[]): Promise<\n NonNullablePaths<\n GetFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: GetFileDescriptorsValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptors(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n * @param file - The file to update.\n * @public\n * @requiredField file\n * @requiredField file._id\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPDATE\n * @applicableIdentity APP\n * @returns Information about the updated file.\n * @fqn com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor\n */\nexport async function updateFileDescriptor(\n file: NonNullablePaths<FileDescriptor, `_id`, 2>\n): Promise<\n NonNullablePaths<\n FileDescriptor,\n | `_id`\n | `displayName`\n | `url`\n | `hash`\n | `private`\n | `mediaType`\n | `media.image.colors.palette`\n | `media.image.faces`\n | `media.image.faces.${number}.confidence`\n | `media.image.faces.${number}.x`\n | `media.image.faces.${number}.y`\n | `media.image.faces.${number}.height`\n | `media.image.faces.${number}.width`\n | `media.audio._id`\n | `media.audio.assets`\n | `media.archive._id`\n | `media.archive.url`\n | `media.model3d._id`\n | `media.model3d.url`\n | `operationStatus`\n | `labels`\n | `siteId`\n | `state`,\n 6\n > & {\n __validationErrorsType?: UpdateFileDescriptorValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ file: file }),\n [\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.updateFileDescriptor(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )?.file!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { file: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['file']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n * @param mimeType - File mime type.\n * @public\n * @requiredField mimeType\n * @param options - Options to use when generating a file's upload URL.\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl\n */\nexport async function generateFileUploadUrl(\n mimeType: string,\n options?: GenerateFileUploadUrlOptions\n): Promise<\n NonNullablePaths<GenerateFileUploadUrlResponse, `uploadUrl`, 2> & {\n __validationErrorsType?: GenerateFileUploadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mimeType: mimeType,\n fileName: options?.fileName,\n sizeInBytes: options?.sizeInBytes,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n externalInfo: options?.externalInfo,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileUploadUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mimeType: '$[0]',\n fileName: '$[1].fileName',\n sizeInBytes: '$[1].sizeInBytes',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n externalInfo: '$[1].externalInfo',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['mimeType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileUploadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 50\n * @maxLength 200\n */\n labels?: string[] | null;\n /** A place to map an external entity to an uploaded file in the Wix Media Manager. */\n externalInfo?: ExternalInfo;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * @param mimeType - File mime type.\n * @public\n * @requiredField mimeType\n * @param options - Options to use when generating a resumable upload URL.\n * @permissionId MEDIA.SITE_MEDIA_FILES_UPLOAD\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl\n */\nexport async function generateFileResumableUploadUrl(\n mimeType: string,\n options?: GenerateFileResumableUploadUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateFileResumableUploadUrlResponse,\n `uploadProtocol` | `uploadUrl` | `uploadToken`,\n 2\n > & {\n __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mimeType: mimeType,\n fileName: options?.fileName,\n sizeInBytes: options?.sizeInBytes,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n uploadProtocol: options?.uploadProtocol,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileResumableUploadUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mimeType: '$[0]',\n fileName: '$[1].fileName',\n sizeInBytes: '$[1].sizeInBytes',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n uploadProtocol: '$[1].uploadProtocol',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['mimeType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileResumableUploadUrlOptions {\n /**\n * Temporary file name used to identify the file type. For example, a file named \"myFile.jpeg\" identifies as an \"image/jpeg\" file type.\n * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\n * @maxLength 200\n */\n fileName?: string | null;\n /**\n * File size in bytes.\n * @readonly\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:0 }\n */\n sizeInBytes?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`.<br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /** The upload protocol to use for implementing the resumable upload. */\n uploadProtocol?: UploadProtocolWithLiterals;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param url - Publicly accessible external file URL.\n * @public\n * @requiredField url\n * @param options - Options to use when importing a single file.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ImportFile\n */\nexport async function importFile(\n url: string,\n options?: ImportFileOptions\n): Promise<\n NonNullablePaths<\n ImportFileResponse,\n | `file._id`\n | `file.displayName`\n | `file.url`\n | `file.hash`\n | `file.private`\n | `file.mediaType`\n | `file.media.image.colors.palette`\n | `file.media.image.faces`\n | `file.media.image.faces.${number}.confidence`\n | `file.media.image.faces.${number}.x`\n | `file.media.image.faces.${number}.y`\n | `file.media.image.faces.${number}.height`\n | `file.media.image.faces.${number}.width`\n | `file.media.audio._id`\n | `file.media.audio.assets`\n | `file.media.archive._id`\n | `file.media.archive.url`\n | `file.media.model3d._id`\n | `file.media.model3d.url`\n | `file.operationStatus`\n | `file.labels`\n | `file.siteId`\n | `file.state`,\n 7\n > & {\n __validationErrorsType?: ImportFileValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n url: url,\n mediaType: options?.mediaType,\n displayName: options?.displayName,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n labels: options?.labels,\n mimeType: options?.mimeType,\n externalInfo: options?.externalInfo,\n urlParams: options?.urlParams,\n urlHeaders: options?.urlHeaders,\n filePath: options?.filePath,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.importFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'file.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'file.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'file.media.image.image' },\n { path: 'file.media.image.previewImage' },\n { path: 'file.media.vector.image' },\n { path: 'file.media.vector.previewImage' },\n { path: 'file.media.model3d.thumbnail' },\n { path: 'file.media.icon.image' },\n { path: 'file.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'file.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n url: '$[0]',\n mediaType: '$[1].mediaType',\n displayName: '$[1].displayName',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n labels: '$[1].labels',\n mimeType: '$[1].mimeType',\n externalInfo: '$[1].externalInfo',\n urlParams: '$[1].urlParams',\n urlHeaders: '$[1].urlHeaders',\n filePath: '$[1].filePath',\n },\n singleArgumentUnchanged: false,\n },\n ['url', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ImportFileOptions {\n /**\n * Media type of the file to import.\n * excluding: OTHER media type\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * File name that appears in the Media Manager.\n * @maxLength 200\n */\n displayName?: string | null;\n /**\n * ID of the file's parent folder. <br />\n * This folder is the path root for the `filePath`. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.\n * @maxSize 500\n * @maxLength 200\n */\n labels?: string[] | null;\n /**\n * File mime type.\n * @maxLength 100\n */\n mimeType?: string;\n /** Information sent to the File Ready and File Failed events. See [Importing Files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files) to learn more. */\n externalInfo?: ExternalInfo;\n /** Optional parameters that should be sent with the external URL. */\n urlParams?: Record<string, any> | null;\n /** Optional headers that should be sent with the external URL. */\n urlHeaders?: Record<string, any> | null;\n /**\n * Path to the folder where the file will be stored.\n * For example, `/videos/2024/december`. <br/>\n * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.\n * The folders in the path will be created if they don't already exist. <br />\n * @maxLength 100\n */\n filePath?: string | null;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param importFileRequests - Information about the files to import.\n * @public\n * @requiredField importFileRequests\n * @requiredField importFileRequests.url\n * @param options - Options to use when uploading multiple files.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFiles\n * @deprecated\n * @replacedBy com.wix.media.site_media.v1.FilesService.BulkImportFile\n * @targetRemovalDate 2024-03-31\n */\nexport async function bulkImportFiles(\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[]\n): Promise<\n NonNullablePaths<\n BulkImportFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importFileRequests: importFileRequests,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { importFileRequests: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['importFileRequests']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @param importFileRequests - Information about the files to import.\n * @public\n * @requiredField importFileRequests\n * @requiredField importFileRequests.url\n * @param options - Options to include the file descriptor in the response.\n * @permissionId MEDIA.SITE_MEDIA_FILES_IMPORT\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkImportFile\n */\nexport async function bulkImportFile(\n importFileRequests: NonNullablePaths<ImportFileRequest, `url`, 2>[],\n options?: BulkImportFileOptions\n): Promise<\n NonNullablePaths<\n BulkImportFileResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.displayName`\n | `results.${number}.item.url`\n | `results.${number}.item.hash`\n | `results.${number}.item.private`\n | `results.${number}.item.mediaType`\n | `results.${number}.item.operationStatus`\n | `results.${number}.item.siteId`\n | `results.${number}.item.state`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n importFileRequests: importFileRequests,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.media.image.image' },\n { path: 'results.item.media.image.previewImage' },\n { path: 'results.item.media.vector.image' },\n { path: 'results.item.media.vector.previewImage' },\n { path: 'results.item.media.model3d.thumbnail' },\n { path: 'results.item.media.icon.image' },\n { path: 'results.item.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [\n { path: 'results.item.media.audio.assets', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n importFileRequests: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['importFileRequests', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkImportFileOptions {\n /** Default: `true` */\n returnEntity?: boolean | null;\n}\n\n/**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n * @public\n * @param options - Options to use when listing media files.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ListFiles\n */\nexport async function listFiles(options?: ListFilesOptions): Promise<\n NonNullablePaths<\n ListFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n parentFolderId: options?.parentFolderId,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n parentFolderId: '$[0].parentFolderId',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListFilesOptions {\n /**\n * ID of the file's parent folder.\n *\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of:\n *\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n * @public\n * @param options - Options to specify which folders to search.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.SearchFiles\n */\nexport async function searchFiles(options?: SearchFilesOptions): Promise<\n NonNullablePaths<\n SearchFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: SearchFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n search: options?.search,\n rootFolder: options?.rootFolder,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.searchFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n search: '$[0].search',\n rootFolder: '$[0].rootFolder',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchFilesOptions {\n /**\n * Free text to match in searchable fields.\n *\n * For example, search for specific values in a file's\n * `displayName`, `mimeType`, or `label`.\n * @maxLength 200\n */\n search?: string | null;\n /**\n * The root folder in the media manager to search in.\n * For more information, see Root Folders in [Terminology](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology).\n *\n * Default: `MEDIA_ROOT`.\n */\n rootFolder?: RootFolderWithLiterals;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /**\n * Whether to return only private or only public files.\n * + `true`: Returns only private files.\n * + `false`: Returns only public files.\n * + `undefined`: Returns public and private files.\n *\n * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).\n */\n private?: boolean | null;\n /**\n * Field name and order to sort by.\n *\n * One of:\n * `displayName`\n * `updatedDate`\n * `sizeInBytes`\n *\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n * @public\n * @requiredField fileId\n * @param options - Options to use when generating a video file's streaming URL.\n * @param fileId - File ID.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_READ\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl\n */\nexport async function generateVideoStreamingUrl(\n fileId: string,\n options?: GenerateVideoStreamingUrlOptions\n): Promise<\n NonNullablePaths<\n GenerateVideoStreamingUrlResponse,\n `downloadUrl.url` | `downloadUrl.assetKey`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileId: fileId,\n format: options?.format,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateVideoStreamingUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileId: '$[0]', format: '$[1].format' },\n singleArgumentUnchanged: false,\n },\n ['fileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateVideoStreamingUrlOptions {\n /** Video stream format. */\n format?: StreamFormatWithLiterals;\n}\n\n/**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n * @public\n * @requiredField fileIds\n * @param options - Options to use when deleting files.\n * @param fileIds - IDs of the files to move to the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_MOVE_TO_TRASH\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkDeleteFiles\n */\nexport async function bulkDeleteFiles(\n fileIds: string[],\n options?: BulkDeleteFilesOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fileIds: fileIds,\n permanent: options?.permanent,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkDeleteFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fileIds: '$[0]',\n permanent: '$[1].permanent',\n },\n singleArgumentUnchanged: false,\n },\n ['fileIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkDeleteFilesOptions {\n /**\n * Whether the specified files are permanently deleted. <br />\n * Default: `false`\n */\n permanent?: boolean;\n}\n\n/**\n * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.\n * @public\n * @requiredField fileIds\n * @param fileIds - IDs of the files to restore from the Media Manager's trash bin.\n *\n * You can also pass the files' Wix media URLs. For example, `[\"wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032\"]`.\n * Learn more in the File and Folder IDs article.\n * @permissionId MEDIA.SITE_MEDIA_FILES_RESTORE_FROM_TRASH\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin\n */\nexport async function bulkRestoreFilesFromTrashBin(\n fileIds: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileIds: fileIds });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkRestoreFilesFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fileIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n * @public\n * @param options - Options to use when listing deleted files from the trash bin.\n * @permissionId MEDIA.SITE_MEDIA_FILES_LIST_DELETED\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.ListDeletedFiles\n */\nexport async function listDeletedFiles(\n options?: ListDeletedFilesOptions\n): Promise<\n NonNullablePaths<\n ListDeletedFilesResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n > & {\n __validationErrorsType?: ListDeletedFilesValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n parentFolderId: options?.parentFolderId,\n mediaTypes: options?.mediaTypes,\n private: options?.private,\n sort: options?.sort,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listDeletedFiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n parentFolderId: '$[0].parentFolderId',\n mediaTypes: '$[0].mediaTypes',\n private: '$[0].private',\n sort: '$[0].sort',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedFilesOptions {\n /**\n * ID of the file's parent folder. <br />\n * Default: `media-root`.\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * File media type.\n * @maxSize 30\n */\n mediaTypes?: MediaTypeWithLiterals[];\n /** \\n`true`: Returns only private files. \\n`false`: Returns only public files. \\n`undefined`: Returns public and private files. \\n Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */\n private?: boolean | null;\n /**\n * Field name and order to sort by. One of: <br />\n * * `displayName`\n * * `updatedDate`\n * * `sizeInBytes`\n * Default: `updatedDate` in `desc` order.\n */\n sort?: Sorting;\n /** Cursor and paging information. */\n paging?: CursorPaging;\n}\n\n/** @public\n * @permissionId media:site_media:v1:file_descriptor:query_file_descriptors\n * @applicableIdentity APP\n * @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors\n */\nexport function queryFileDescriptors(): FilesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n FileDescriptor,\n 'CURSOR',\n QueryFileDescriptorsRequest,\n QueryFileDescriptorsResponse\n >({\n func: async (payload: QueryFileDescriptorsRequest) => {\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.queryFileDescriptors(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryFileDescriptorsRequest['query']) => {\n const args = [query, {}] as [QueryFileDescriptorsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryFileDescriptorsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n );\n\n return {\n items: transformedData?.files,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface FilesQueryResult extends QueryCursorResult {\n items: FileDescriptor[];\n query: FilesQueryBuilder;\n next: () => Promise<FilesQueryResult>;\n prev: () => Promise<FilesQueryResult>;\n}\n\nexport interface FilesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'private' | 'mediaType' | 'state',\n value: any\n ) => FilesQueryBuilder;\n in: (propertyName: 'mediaType', value: any) => FilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>\n ) => FilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>\n ) => FilesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => FilesQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => FilesQueryBuilder;\n find: () => Promise<FilesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors\n * @requiredField query\n */\nexport async function typedQueryFileDescriptors(\n query: FileDescriptorQuery\n): Promise<\n NonNullablePaths<\n QueryFileDescriptorsResponse,\n | `files`\n | `files.${number}._id`\n | `files.${number}.displayName`\n | `files.${number}.url`\n | `files.${number}.hash`\n | `files.${number}.private`\n | `files.${number}.mediaType`\n | `files.${number}.media.audio._id`\n | `files.${number}.media.archive._id`\n | `files.${number}.media.archive.url`\n | `files.${number}.media.model3d._id`\n | `files.${number}.media.model3d.url`\n | `files.${number}.operationStatus`\n | `files.${number}.siteId`\n | `files.${number}.state`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixMediaSiteMediaV1FileDescriptor.queryFileDescriptors(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'files.media.video' }],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'files.media.document' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'files.media.image.image' },\n { path: 'files.media.image.previewImage' },\n { path: 'files.media.vector.image' },\n { path: 'files.media.vector.previewImage' },\n { path: 'files.media.model3d.thumbnail' },\n { path: 'files.media.icon.image' },\n { path: 'files.media.icon.previewImage' },\n ],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'files.media.audio.assets', isRepeated: true }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface FileDescriptorQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['displayName'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['sizeInBytes'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['private'];\n operators: ['$eq'];\n sort: 'NONE';\n },\n {\n fields: ['mediaType'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n },\n {\n fields: ['_updatedDate'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['state'];\n operators: ['$eq'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n FileDescriptor,\n FileDescriptorQuerySpec\n>;\nexport type FileDescriptorQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixMediaSiteMediaV1FilesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-privatemedia-proxy-server/v1',\n destPath: '/v1',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-media/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/_api/wix-privatemedia-proxy-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_media_files';\n\n/**\n * Generates a URL for downloading a compressed file containing specific files in the Media Manager.\n *\n * The compressed file can contain up to 1000 files.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n */\nexport function generateFilesDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFilesDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-download-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFilesDownloadUrl;\n}\n\n/**\n * Generates one or more temporary URLs for downloading a specific file in the Media Manager.\n *\n * To download different assets of the file, specify the `assetKeys` parameter which generates a download URL for each asset.\n * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.\n *\n * 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.\n *\n * 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.\n * Since this is a permanent URL, it is less secure.\n * 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.\n */\nexport function generateFileDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-file-download-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileDownloadUrl;\n}\n\n/** Gets information about a specific file in the Media Manager. */\nexport function getFileDescriptor(payload: object): RequestOptionsFactory<any> {\n function __getFileDescriptor({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.GetFileDescriptor',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-file-by-id',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-file-by-id',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getFileDescriptor;\n}\n\n/** Gets information about specific files in the Media Manager. */\nexport function getFileDescriptors(\n payload: object\n): RequestOptionsFactory<any> {\n function __getFileDescriptors({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.GetFileDescriptors',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/get-files',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getFileDescriptors;\n}\n\n/**\n * Updates a file. <br />\n *\n * Specify the `parentFolderId` parameter to move a file from its current folder to a different folder.\n */\nexport function updateFileDescriptor(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateFileDescriptor({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/update-file-descriptor',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateFileDescriptor;\n}\n\n/**\n * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>\n *\n * 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/docs/rest/assets/media/media-manager/files/upload-api).\n * > **Notes:**\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n * > - 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.\n */\nexport function generateFileUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileUploadUrl;\n}\n\n/**\n * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>\n *\n * 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.\n * 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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).\n *\n * > **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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport function generateFileResumableUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileResumableUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-resumable-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileResumableUploadUrl;\n}\n\n/**\n * Imports a file to the Media Manager using an external url.\n *\n * Returns information about the imported file.\n * Specify the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import a file, you need to do one of the following:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n */\nexport function importFile(payload: object): RequestOptionsFactory<any> {\n function __importFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ImportFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/import',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'file.createdDate' },\n { path: 'file.updatedDate' },\n { path: 'file.lastUsedDate' },\n { path: 'file.media.image.image.urlExpirationDate' },\n { path: 'file.media.image.previewImage.urlExpirationDate' },\n { path: 'file.media.video.urlExpirationDate' },\n { path: 'file.media.video.resolutions.urlExpirationDate' },\n { path: 'file.media.video.resolutions.poster.urlExpirationDate' },\n { path: 'file.media.video.posters.urlExpirationDate' },\n { path: 'file.media.audio.assets.urlExpirationDate' },\n { path: 'file.media.document.urlExpirationDate' },\n { path: 'file.media.document.thumbnail.urlExpirationDate' },\n { path: 'file.media.vector.image.urlExpirationDate' },\n { path: 'file.media.vector.previewImage.urlExpirationDate' },\n { path: 'file.media.archive.urlExpirationDate' },\n { path: 'file.media.model3d.urlExpirationDate' },\n { path: 'file.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'file.media.icon.image.urlExpirationDate' },\n { path: 'file.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'file.media.image.image.focalPoint.x' },\n { path: 'file.media.image.image.focalPoint.y' },\n { path: 'file.media.image.faces.confidence' },\n { path: 'file.media.image.previewImage.focalPoint.x' },\n { path: 'file.media.image.previewImage.focalPoint.y' },\n { path: 'file.media.video.resolutions.poster.focalPoint.x' },\n { path: 'file.media.video.resolutions.poster.focalPoint.y' },\n { path: 'file.media.video.posters.focalPoint.x' },\n { path: 'file.media.video.posters.focalPoint.y' },\n { path: 'file.media.document.thumbnail.focalPoint.x' },\n { path: 'file.media.document.thumbnail.focalPoint.y' },\n { path: 'file.media.vector.image.focalPoint.x' },\n { path: 'file.media.vector.image.focalPoint.y' },\n { path: 'file.media.vector.faces.confidence' },\n { path: 'file.media.vector.previewImage.focalPoint.x' },\n { path: 'file.media.vector.previewImage.focalPoint.y' },\n { path: 'file.media.model3d.thumbnail.focalPoint.x' },\n { path: 'file.media.model3d.thumbnail.focalPoint.y' },\n { path: 'file.media.icon.image.focalPoint.x' },\n { path: 'file.media.icon.image.focalPoint.y' },\n { path: 'file.media.icon.faces.confidence' },\n { path: 'file.media.icon.previewImage.focalPoint.x' },\n { path: 'file.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __importFile;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n * @deprecated It has been replaced with com.wix.media.site_media.v1.FilesService.BulkImportFile(), and will be removed on 2024-03-31.\n */\nexport function bulkImportFiles(payload: object): RequestOptionsFactory<any> {\n function __bulkImportFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkImportFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/import',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkImportFiles;\n}\n\n/**\n * Imports a bulk of files to the Media Manager using external urls. <br/>\n *\n * Returns information about the imported files.\n *\n * Specify the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.\n * If no folder is specified, the file is imported to the `media-root` folder.\n *\n * >**Notes:**\n * > - The `media` property isn't returned in the `files` response object.\n * > - 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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n *\n * To import files, you need to do one of the following for each file:\n * - 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'`.\n * - 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`.\n * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.\n * > **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'`.\n */\nexport function bulkImportFile(payload: object): RequestOptionsFactory<any> {\n function __bulkImportFile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkImportFile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/import-v2',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.lastUsedDate' },\n { path: 'results.item.media.image.image.urlExpirationDate' },\n {\n path: 'results.item.media.image.previewImage.urlExpirationDate',\n },\n { path: 'results.item.media.video.urlExpirationDate' },\n {\n path: 'results.item.media.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.media.video.posters.urlExpirationDate' },\n { path: 'results.item.media.audio.assets.urlExpirationDate' },\n { path: 'results.item.media.document.urlExpirationDate' },\n {\n path: 'results.item.media.document.thumbnail.urlExpirationDate',\n },\n { path: 'results.item.media.vector.image.urlExpirationDate' },\n {\n path: 'results.item.media.vector.previewImage.urlExpirationDate',\n },\n { path: 'results.item.media.archive.urlExpirationDate' },\n { path: 'results.item.media.model3d.urlExpirationDate' },\n {\n path: 'results.item.media.model3d.thumbnail.urlExpirationDate',\n },\n { path: 'results.item.media.icon.image.urlExpirationDate' },\n {\n path: 'results.item.media.icon.previewImage.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.media.image.image.focalPoint.x' },\n { path: 'results.item.media.image.image.focalPoint.y' },\n { path: 'results.item.media.image.faces.confidence' },\n { path: 'results.item.media.image.previewImage.focalPoint.x' },\n { path: 'results.item.media.image.previewImage.focalPoint.y' },\n {\n path: 'results.item.media.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.media.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.media.video.posters.focalPoint.x' },\n { path: 'results.item.media.video.posters.focalPoint.y' },\n { path: 'results.item.media.document.thumbnail.focalPoint.x' },\n { path: 'results.item.media.document.thumbnail.focalPoint.y' },\n { path: 'results.item.media.vector.image.focalPoint.x' },\n { path: 'results.item.media.vector.image.focalPoint.y' },\n { path: 'results.item.media.vector.faces.confidence' },\n { path: 'results.item.media.vector.previewImage.focalPoint.x' },\n { path: 'results.item.media.vector.previewImage.focalPoint.y' },\n { path: 'results.item.media.model3d.thumbnail.focalPoint.x' },\n { path: 'results.item.media.model3d.thumbnail.focalPoint.y' },\n { path: 'results.item.media.icon.image.focalPoint.x' },\n { path: 'results.item.media.icon.image.focalPoint.y' },\n { path: 'results.item.media.icon.faces.confidence' },\n { path: 'results.item.media.icon.previewImage.focalPoint.x' },\n { path: 'results.item.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkImportFile;\n}\n\n/**\n * Retrieves a list of files in the Media Manager.\n *\n * 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.\n */\nexport function listFiles(payload: object): RequestOptionsFactory<any> {\n function __listFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ListFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listFiles;\n}\n\n/**\n * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.\n *\n * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.\n *\n * ## Defaults\n *\n * Search Files has the following default setting, which you can override:\n * + Sorted by `updatedDate` in descending order.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\nexport function searchFiles(payload: object): RequestOptionsFactory<any> {\n function __searchFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.SearchFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchFiles;\n}\n\n/**\n * Generates a URL for streaming a specific video file in the Media Manager. <br/>\n *\n * 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.\n */\nexport function generateVideoStreamingUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateVideoStreamingUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/generate-video-stream-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateVideoStreamingUrl;\n}\n\n/**\n * Deletes the specified files from the Media Manager. <br/>\n *\n * 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.\n *\n * Note the following:\n * * The specified files can be from different folders.\n * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.\n * * Attempting to delete files that are already in the trash bin doesn't result in an error.\n * * 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).\n * * You can use Bulk Restore Files From Trash Bin to restore files from the Media Manager's trash bin.\n */\nexport function bulkDeleteFiles(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.BulkDeleteFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/files/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFiles;\n}\n\n/** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */\nexport function bulkRestoreFilesFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkRestoreFilesFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/bulk/trash-bin/files/restore',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkRestoreFilesFromTrashBin;\n}\n\n/**\n * Retrieves a list of files in the Media Manager's trash bin. <br/>\n *\n * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.\n */\nexport function listDeletedFiles(payload: object): RequestOptionsFactory<any> {\n function __listDeletedFiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn: 'com.wix.media.site_media.v1.FilesService.ListDeletedFiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/trash-bin/files',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedFiles;\n}\n\nexport function queryFileDescriptors(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryFileDescriptors({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.media.site_media.v1.file_descriptor',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.media.site_media.v1.FilesService.QueryFileDescriptors',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'files.createdDate' },\n { path: 'files.updatedDate' },\n { path: 'files.lastUsedDate' },\n { path: 'files.media.image.image.urlExpirationDate' },\n { path: 'files.media.image.previewImage.urlExpirationDate' },\n { path: 'files.media.video.urlExpirationDate' },\n { path: 'files.media.video.resolutions.urlExpirationDate' },\n {\n path: 'files.media.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'files.media.video.posters.urlExpirationDate' },\n { path: 'files.media.audio.assets.urlExpirationDate' },\n { path: 'files.media.document.urlExpirationDate' },\n { path: 'files.media.document.thumbnail.urlExpirationDate' },\n { path: 'files.media.vector.image.urlExpirationDate' },\n { path: 'files.media.vector.previewImage.urlExpirationDate' },\n { path: 'files.media.archive.urlExpirationDate' },\n { path: 'files.media.model3d.urlExpirationDate' },\n { path: 'files.media.model3d.thumbnail.urlExpirationDate' },\n { path: 'files.media.icon.image.urlExpirationDate' },\n { path: 'files.media.icon.previewImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'files.media.image.image.focalPoint.x' },\n { path: 'files.media.image.image.focalPoint.y' },\n { path: 'files.media.image.faces.confidence' },\n { path: 'files.media.image.previewImage.focalPoint.x' },\n { path: 'files.media.image.previewImage.focalPoint.y' },\n { path: 'files.media.video.resolutions.poster.focalPoint.x' },\n { path: 'files.media.video.resolutions.poster.focalPoint.y' },\n { path: 'files.media.video.posters.focalPoint.x' },\n { path: 'files.media.video.posters.focalPoint.y' },\n { path: 'files.media.document.thumbnail.focalPoint.x' },\n { path: 'files.media.document.thumbnail.focalPoint.y' },\n { path: 'files.media.vector.image.focalPoint.x' },\n { path: 'files.media.vector.image.focalPoint.y' },\n { path: 'files.media.vector.faces.confidence' },\n { path: 'files.media.vector.previewImage.focalPoint.x' },\n { path: 'files.media.vector.previewImage.focalPoint.y' },\n { path: 'files.media.model3d.thumbnail.focalPoint.x' },\n { path: 'files.media.model3d.thumbnail.focalPoint.y' },\n { path: 'files.media.icon.image.focalPoint.x' },\n { path: 'files.media.icon.image.focalPoint.y' },\n { path: 'files.media.icon.faces.confidence' },\n { path: 'files.media.icon.previewImage.focalPoint.x' },\n { path: 'files.media.icon.previewImage.focalPoint.y' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveComWixMediaSiteMediaV1FilesServiceUrl({\n protoPath: '/v1/files/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryFileDescriptors;\n}\n","import {\n generateFilesDownloadUrl as publicGenerateFilesDownloadUrl,\n generateFileDownloadUrl as publicGenerateFileDownloadUrl,\n getFileDescriptor as publicGetFileDescriptor,\n getFileDescriptors as publicGetFileDescriptors,\n updateFileDescriptor as publicUpdateFileDescriptor,\n generateFileUploadUrl as publicGenerateFileUploadUrl,\n generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl,\n importFile as publicImportFile,\n bulkImportFiles as publicBulkImportFiles,\n bulkImportFile as publicBulkImportFile,\n listFiles as publicListFiles,\n searchFiles as publicSearchFiles,\n generateVideoStreamingUrl as publicGenerateVideoStreamingUrl,\n bulkDeleteFiles as publicBulkDeleteFiles,\n bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin,\n listDeletedFiles as publicListDeletedFiles,\n queryFileDescriptors as publicQueryFileDescriptors,\n typedQueryFileDescriptors as publicTypedQueryFileDescriptors,\n} from './media-site-media-v1-file-descriptor-files.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n FileDescriptorQuery,\n FilesQueryBuilder,\n typedQueryFileDescriptors as universalTypedQueryFileDescriptors,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nimport { onFileDescriptorFileFailed as publicOnFileDescriptorFileFailed } from './media-site-media-v1-file-descriptor-files.public.js';\nimport { onFileDescriptorFileReady as publicOnFileDescriptorFileReady } from './media-site-media-v1-file-descriptor-files.public.js';\n\nfunction customQueryFileDescriptors(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryFileDescriptors(httpClient)(),\n typedQueryFunction: (query: FileDescriptorQuery) =>\n publicTypedQueryFileDescriptors(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): FilesQueryBuilder;\n function overloadedQuery(\n query: FileDescriptorQuery\n ): ReturnType<typeof universalTypedQueryFileDescriptors>;\n function overloadedQuery(query?: FileDescriptorQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const generateFilesDownloadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFilesDownloadUrl> &\n typeof publicGenerateFilesDownloadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFilesDownloadUrl);\nexport const generateFileDownloadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileDownloadUrl> &\n typeof publicGenerateFileDownloadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileDownloadUrl);\nexport const getFileDescriptor: MaybeContext<\n BuildRESTFunction<typeof publicGetFileDescriptor> &\n typeof publicGetFileDescriptor\n> = /*#__PURE__*/ createRESTModule(publicGetFileDescriptor);\nexport const getFileDescriptors: MaybeContext<\n BuildRESTFunction<typeof publicGetFileDescriptors> &\n typeof publicGetFileDescriptors\n> = /*#__PURE__*/ createRESTModule(publicGetFileDescriptors);\nexport const updateFileDescriptor: MaybeContext<\n BuildRESTFunction<typeof publicUpdateFileDescriptor> &\n typeof publicUpdateFileDescriptor\n> = /*#__PURE__*/ createRESTModule(publicUpdateFileDescriptor);\nexport const generateFileUploadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileUploadUrl> &\n typeof publicGenerateFileUploadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileUploadUrl);\nexport const generateFileResumableUploadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileResumableUploadUrl> &\n typeof publicGenerateFileResumableUploadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileResumableUploadUrl);\nexport const importFile: MaybeContext<\n BuildRESTFunction<typeof publicImportFile> & typeof publicImportFile\n> = /*#__PURE__*/ createRESTModule(publicImportFile);\nexport const bulkImportFiles: MaybeContext<\n BuildRESTFunction<typeof publicBulkImportFiles> & typeof publicBulkImportFiles\n> = /*#__PURE__*/ createRESTModule(publicBulkImportFiles);\nexport const bulkImportFile: MaybeContext<\n BuildRESTFunction<typeof publicBulkImportFile> & typeof publicBulkImportFile\n> = /*#__PURE__*/ createRESTModule(publicBulkImportFile);\nexport const listFiles: MaybeContext<\n BuildRESTFunction<typeof publicListFiles> & typeof publicListFiles\n> = /*#__PURE__*/ createRESTModule(publicListFiles);\nexport const searchFiles: MaybeContext<\n BuildRESTFunction<typeof publicSearchFiles> & typeof publicSearchFiles\n> = /*#__PURE__*/ createRESTModule(publicSearchFiles);\nexport const generateVideoStreamingUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateVideoStreamingUrl> &\n typeof publicGenerateVideoStreamingUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateVideoStreamingUrl);\nexport const bulkDeleteFiles: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFiles> & typeof publicBulkDeleteFiles\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteFiles);\nexport const bulkRestoreFilesFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicBulkRestoreFilesFromTrashBin> &\n typeof publicBulkRestoreFilesFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicBulkRestoreFilesFromTrashBin);\nexport const listDeletedFiles: MaybeContext<\n BuildRESTFunction<typeof publicListDeletedFiles> &\n typeof publicListDeletedFiles\n> = /*#__PURE__*/ createRESTModule(publicListDeletedFiles);\nexport const queryFileDescriptors: MaybeContext<\n BuildRESTFunction<typeof customQueryFileDescriptors> &\n typeof customQueryFileDescriptors\n> = /*#__PURE__*/ createRESTModule(customQueryFileDescriptors);\n/**\n * Triggered when a file's import fails. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport const onFileDescriptorFileFailed: BuildEventDefinition<\n typeof publicOnFileDescriptorFileFailed\n> &\n typeof publicOnFileDescriptorFileFailed = createEventModule(\n publicOnFileDescriptorFileFailed\n);\n/**\n * Triggered when a file finishes processing successfully. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).\n */\nexport const onFileDescriptorFileReady: BuildEventDefinition<\n typeof publicOnFileDescriptorFileReady\n> &\n typeof publicOnFileDescriptorFileReady = createEventModule(\n publicOnFileDescriptorFileReady\n);\n\nexport {\n MediaType,\n OperationStatus,\n State,\n Namespace,\n IdentityType,\n ImageAnnotationType,\n ContentDisposition,\n UploadProtocol,\n SortOrder,\n RootFolder,\n StreamFormat,\n WebhookIdentityType,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nexport {\n FileDescriptor,\n FileMedia,\n FileMediaMediaOneOf,\n ImageMedia,\n FocalPoint,\n Colors,\n Color,\n ColorRGB,\n FaceRecognition,\n VideoResolution,\n AudioV2,\n Archive,\n Model3D,\n OtherMedia,\n FontMedia,\n FontAsset,\n IdentityInfo,\n DraftFilePublished,\n FileFailed,\n ExternalInfo,\n ApplicationError,\n FileReady,\n BulkAnnotateImagesRequest,\n BulkAnnotateImagesResponse,\n BulkAnnotateImageResult,\n ItemMetadata,\n BulkActionMetadata,\n GenerateAnimatedVectorRequest,\n GenerateAnimatedVectorResponse,\n GenerateFilesDownloadUrlRequest,\n GenerateFilesDownloadUrlResponse,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n DownloadUrl,\n ServiceError,\n GetFileDescriptorRequest,\n GetFileDescriptorResponse,\n GetFileDescriptorsRequest,\n GetFileDescriptorsResponse,\n GetSiteFileDescriptorsRequest,\n GetSiteFileDescriptorsResponse,\n UpdateFileDescriptorRequest,\n UpdateFileDescriptorResponse,\n UnsupportedRequestValueError,\n GenerateFileUploadUrlRequest,\n ImageAnnotationConfigurations,\n GenerateFileUploadUrlResponse,\n SiteQuotaExceededError,\n TotalQuota,\n Plans,\n Plan,\n GenerateFileResumableUploadUrlRequest,\n GenerateFileResumableUploadUrlResponse,\n ImportFileRequest,\n ImportFileResponse,\n BulkImportFilesRequest,\n BulkImportFilesResponse,\n BulkImportFileRequest,\n BulkImportFileResponse,\n BulkImportFileResult,\n BulkInternalImportFilesRequest,\n BulkInternalImportFilesResponse,\n ListFilesRequest,\n Sorting,\n CursorPaging,\n ListFilesResponse,\n PagingMetadataV2,\n Cursors,\n SearchFilesRequest,\n SearchFilesResponse,\n GenerateVideoStreamingUrlRequest,\n GenerateVideoStreamingUrlResponse,\n GenerateWebSocketTokenRequest,\n GenerateWebSocketTokenResponse,\n BulkDeleteFilesRequest,\n BulkDeleteFilesResponse,\n BulkRestoreFilesFromTrashBinRequest,\n BulkRestoreFilesFromTrashBinResponse,\n ListDeletedFilesRequest,\n ListDeletedFilesResponse,\n BulkPublishDraftFilesRequest,\n BulkPublishDraftFilesResponse,\n BulkPublishDraftFileResult,\n UpdateFileRequest,\n UpdateFileResponse,\n QueryFileDescriptorsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CommonCursorPaging,\n QueryFileDescriptorsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n FileDescriptorFileFailedEnvelope,\n FileDescriptorFileReadyEnvelope,\n GenerateFileDownloadUrlOptions,\n GenerateFileUploadUrlOptions,\n GenerateFileResumableUploadUrlOptions,\n ImportFileOptions,\n BulkImportFileOptions,\n ListFilesOptions,\n SearchFilesOptions,\n GenerateVideoStreamingUrlOptions,\n BulkDeleteFilesOptions,\n ListDeletedFilesOptions,\n FilesQueryResult,\n FilesQueryBuilder,\n FileDescriptorQuerySpec,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\nexport {\n MediaTypeWithLiterals,\n OperationStatusWithLiterals,\n StateWithLiterals,\n NamespaceWithLiterals,\n IdentityTypeWithLiterals,\n ImageAnnotationTypeWithLiterals,\n ContentDispositionWithLiterals,\n UploadProtocolWithLiterals,\n SortOrderWithLiterals,\n RootFolderWithLiterals,\n StreamFormatWithLiterals,\n WebhookIdentityTypeWithLiterals,\n GenerateFileDownloadUrlValidationErrors,\n GetFileDescriptorValidationErrors,\n GetFileDescriptorsValidationErrors,\n UpdateFileDescriptorValidationErrors,\n GenerateFileUploadUrlValidationErrors,\n GenerateFileResumableUploadUrlValidationErrors,\n ImportFileValidationErrors,\n ListFilesValidationErrors,\n SearchFilesValidationErrors,\n ListDeletedFilesValidationErrors,\n CommonQueryWithEntityContext,\n FileDescriptorQuery,\n} from './media-site-media-v1-file-descriptor-files.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,iBAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,mBAAmD;AACnD,IAAAC,gBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,IAAAC,mBAAiD;AACjD,uBAA8D;;;ACR9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B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MC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,kCAGK,2DAAiBA,+BAAoC;AAChE,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,aAEK,2DAAiBA,UAAe;AAC3C,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,6BAGK,2DAAiBA,0BAA+B;AAC3D,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAC9D,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMjB,wBAGK,2DAAiB,0BAA0B;AAItD,IAAMkB,kCAG+B;AAAA,EAC1C;AACF;AAIO,IAAMC,iCAG8B;AAAA,EACzC;AACF;","names":["bulkDeleteFiles","bulkImportFile","bulkImportFiles","bulkRestoreFilesFromTrashBin","generateFileDownloadUrl","generateFileResumableUploadUrl","generateFileUploadUrl","generateFilesDownloadUrl","generateVideoStreamingUrl","getFileDescriptor","getFileDescriptors","importFile","listDeletedFiles","listFiles","onFileDescriptorFileFailed","onFileDescriptorFileReady","queryFileDescriptors","searchFiles","updateFileDescriptor","import_rename_all_nested_keys","import_audio","import_document","import_float","import_image","import_timestamp","import_transform_paths","import_video_v2","import_float","import_timestamp","import_rest_modules","payload","import_audio","import_image","import_video_v2","import_document","import_transform_paths","MediaType","OperationStatus","State","Namespace","IdentityType","ImageAnnotationType","ContentDisposition","UploadProtocol","SortOrder","RootFolder","StreamFormat","WebhookIdentityType","generateFilesDownloadUrl","sdkTransformError","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","queryFileDescriptors","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","queryFileDescriptors","typedQueryFileDescriptors","import_rest_modules","queryFileDescriptors","typedQueryFileDescriptors","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles","onFileDescriptorFileFailed","onFileDescriptorFileReady"]}