@wix/auto_sdk_media_files 1.0.56 → 1.0.57

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":["../../meta.ts","../../src/media-site-media-v1-file-descriptor-files.http.ts","../../src/media-site-media-v1-file-descriptor-files.types.ts","../../src/media-site-media-v1-file-descriptor-files.meta.ts"],"sourcesContent":["export * from './src/media-site-media-v1-file-descriptor-files.meta.js';\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","export 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?: VideoV2;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: Document;\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?: VideoV2;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: Document;\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?: Image;\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?: Image;\n /**\n * Optional, An AI generated description of the image\n * @readonly\n * @maxLength 300\n */\n caption?: string | null;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: 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 VideoV2 {\n /** WixMedia ID. */\n id?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @readonly\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @readonly\n */\n filename?: string | null;\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?: Audio[];\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 Audio {\n /** WixMedia ID. */\n id?: string;\n /** Audio URL. */\n url?: string;\n /**\n * Audio filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface Document {\n /** WixMedia ID. */\n id?: string;\n /** Document URL. */\n url?: string;\n /** Document filename. */\n filename?: 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?: Image;\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 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 */\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 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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/** @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","import * as ambassadorWixMediaSiteMediaV1FileDescriptor from './media-site-media-v1-file-descriptor-files.http.js';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptorTypes from './media-site-media-v1-file-descriptor-files.types.js';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes from './media-site-media-v1-file-descriptor-files.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function generateFilesDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFilesDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFilesDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFilesDownloadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFilesDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFilesDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileDownloadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-file-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getFileDescriptor(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptor(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/files/get-file-by-id',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getFileDescriptors(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorsRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorsRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorsResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptors(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/get-files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateFileDescriptor(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.UpdateFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.UpdateFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.UpdateFileDescriptorResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.UpdateFileDescriptorResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.updateFileDescriptor(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/files/update-file-descriptor',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileUploadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileUploadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileUploadUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileResumableUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileResumableUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileResumableUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileResumableUploadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileResumableUploadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileResumableUploadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-resumable-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function importFile(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ImportFileResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ImportFileResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.importFile(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/import',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkImportFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/import',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkImportFile(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFileResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFileResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFile(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/import-v2',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listFiles(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.SearchFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.SearchFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.SearchFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.SearchFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.searchFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateVideoStreamingUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateVideoStreamingUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateVideoStreamingUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateVideoStreamingUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateVideoStreamingUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateVideoStreamingUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-video-stream-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkDeleteFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkDeleteFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkDeleteFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkDeleteFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkDeleteFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkRestoreFilesFromTrashBin(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkRestoreFilesFromTrashBinRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkRestoreFilesFromTrashBinRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkRestoreFilesFromTrashBinResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkRestoreFilesFromTrashBinResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkRestoreFilesFromTrashBin(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/trash-bin/files/restore',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDeletedFiles(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListDeletedFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListDeletedFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListDeletedFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListDeletedFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listDeletedFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/trash-bin/files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n FileDescriptor as FileDescriptorOriginal,\n MediaType as MediaTypeOriginal,\n MediaTypeWithLiterals as MediaTypeWithLiteralsOriginal,\n FileMedia as FileMediaOriginal,\n FileMediaMediaOneOf as FileMediaMediaOneOfOriginal,\n ImageMedia as ImageMediaOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n Colors as ColorsOriginal,\n Color as ColorOriginal,\n ColorRGB as ColorRGBOriginal,\n FaceRecognition as FaceRecognitionOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n AudioV2 as AudioV2Original,\n Audio as AudioOriginal,\n Document as DocumentOriginal,\n Archive as ArchiveOriginal,\n Model3D as Model3DOriginal,\n OtherMedia as OtherMediaOriginal,\n FontMedia as FontMediaOriginal,\n FontAsset as FontAssetOriginal,\n OperationStatus as OperationStatusOriginal,\n OperationStatusWithLiterals as OperationStatusWithLiteralsOriginal,\n State as StateOriginal,\n StateWithLiterals as StateWithLiteralsOriginal,\n Namespace as NamespaceOriginal,\n NamespaceWithLiterals as NamespaceWithLiteralsOriginal,\n IdentityInfo as IdentityInfoOriginal,\n IdentityType as IdentityTypeOriginal,\n IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n DraftFilePublished as DraftFilePublishedOriginal,\n FileFailed as FileFailedOriginal,\n ExternalInfo as ExternalInfoOriginal,\n ApplicationError as ApplicationErrorOriginal,\n FileReady as FileReadyOriginal,\n BulkAnnotateImagesRequest as BulkAnnotateImagesRequestOriginal,\n ImageAnnotationType as ImageAnnotationTypeOriginal,\n ImageAnnotationTypeWithLiterals as ImageAnnotationTypeWithLiteralsOriginal,\n BulkAnnotateImagesResponse as BulkAnnotateImagesResponseOriginal,\n BulkAnnotateImageResult as BulkAnnotateImageResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GenerateAnimatedVectorRequest as GenerateAnimatedVectorRequestOriginal,\n GenerateAnimatedVectorResponse as GenerateAnimatedVectorResponseOriginal,\n GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequestOriginal,\n GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponseOriginal,\n GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequestOriginal,\n ContentDisposition as ContentDispositionOriginal,\n ContentDispositionWithLiterals as ContentDispositionWithLiteralsOriginal,\n GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponseOriginal,\n DownloadUrl as DownloadUrlOriginal,\n ServiceError as ServiceErrorOriginal,\n GetFileDescriptorRequest as GetFileDescriptorRequestOriginal,\n GetFileDescriptorResponse as GetFileDescriptorResponseOriginal,\n GetFileDescriptorsRequest as GetFileDescriptorsRequestOriginal,\n GetFileDescriptorsResponse as GetFileDescriptorsResponseOriginal,\n UpdateFileDescriptorRequest as UpdateFileDescriptorRequestOriginal,\n UpdateFileDescriptorResponse as UpdateFileDescriptorResponseOriginal,\n UnsupportedRequestValueError as UnsupportedRequestValueErrorOriginal,\n GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequestOriginal,\n ImageAnnotationConfigurations as ImageAnnotationConfigurationsOriginal,\n GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponseOriginal,\n SiteQuotaExceededError as SiteQuotaExceededErrorOriginal,\n TotalQuota as TotalQuotaOriginal,\n Plans as PlansOriginal,\n Plan as PlanOriginal,\n GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequestOriginal,\n UploadProtocol as UploadProtocolOriginal,\n UploadProtocolWithLiterals as UploadProtocolWithLiteralsOriginal,\n GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponseOriginal,\n ImportFileRequest as ImportFileRequestOriginal,\n ImportFileResponse as ImportFileResponseOriginal,\n BulkImportFilesRequest as BulkImportFilesRequestOriginal,\n BulkImportFilesResponse as BulkImportFilesResponseOriginal,\n BulkImportFileRequest as BulkImportFileRequestOriginal,\n BulkImportFileResponse as BulkImportFileResponseOriginal,\n BulkImportFileResult as BulkImportFileResultOriginal,\n BulkInternalImportFilesRequest as BulkInternalImportFilesRequestOriginal,\n BulkInternalImportFilesResponse as BulkInternalImportFilesResponseOriginal,\n ListFilesRequest as ListFilesRequestOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n ListFilesResponse as ListFilesResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n SearchFilesRequest as SearchFilesRequestOriginal,\n RootFolder as RootFolderOriginal,\n RootFolderWithLiterals as RootFolderWithLiteralsOriginal,\n SearchFilesResponse as SearchFilesResponseOriginal,\n GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequestOriginal,\n StreamFormat as StreamFormatOriginal,\n StreamFormatWithLiterals as StreamFormatWithLiteralsOriginal,\n GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponseOriginal,\n GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequestOriginal,\n GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponseOriginal,\n BulkDeleteFilesRequest as BulkDeleteFilesRequestOriginal,\n BulkDeleteFilesResponse as BulkDeleteFilesResponseOriginal,\n BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequestOriginal,\n BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponseOriginal,\n ListDeletedFilesRequest as ListDeletedFilesRequestOriginal,\n ListDeletedFilesResponse as ListDeletedFilesResponseOriginal,\n BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequestOriginal,\n BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponseOriginal,\n BulkPublishDraftFileResult as BulkPublishDraftFileResultOriginal,\n UpdateFileRequest as UpdateFileRequestOriginal,\n UpdateFileResponse as UpdateFileResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n GenerateFileDownloadUrlValidationErrors as GenerateFileDownloadUrlValidationErrorsOriginal,\n GetFileDescriptorValidationErrors as GetFileDescriptorValidationErrorsOriginal,\n GetFileDescriptorsValidationErrors as GetFileDescriptorsValidationErrorsOriginal,\n UpdateFileDescriptorValidationErrors as UpdateFileDescriptorValidationErrorsOriginal,\n GenerateFileUploadUrlValidationErrors as GenerateFileUploadUrlValidationErrorsOriginal,\n GenerateFileResumableUploadUrlValidationErrors as GenerateFileResumableUploadUrlValidationErrorsOriginal,\n ImportFileValidationErrors as ImportFileValidationErrorsOriginal,\n ListFilesValidationErrors as ListFilesValidationErrorsOriginal,\n SearchFilesValidationErrors as SearchFilesValidationErrorsOriginal,\n ListDeletedFilesValidationErrors as ListDeletedFilesValidationErrorsOriginal,\n} from './media-site-media-v1-file-descriptor-files.types.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,mBAAAC;AAAA,EAAA,4BAAAC;A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AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC,iBAAiB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkDeleteFiles","bulkImportFile","bulkImportFiles","bulkRestoreFilesFromTrashBin","generateFileDownloadUrl","generateFileResumableUploadUrl","generateFileUploadUrl","generateFilesDownloadUrl","generateVideoStreamingUrl","getFileDescriptor","getFileDescriptors","importFile","listDeletedFiles","listFiles","searchFiles","updateFileDescriptor","import_float","import_timestamp","import_rest_modules","payload","MediaType","OperationStatus","State","Namespace","IdentityType","ImageAnnotationType","ContentDisposition","UploadProtocol","SortOrder","RootFolder","StreamFormat","WebhookIdentityType","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/media-site-media-v1-file-descriptor-files.http.ts","../../src/media-site-media-v1-file-descriptor-files.types.ts","../../src/media-site-media-v1-file-descriptor-files.meta.ts"],"sourcesContent":["export * from './src/media-site-media-v1-file-descriptor-files.meta.js';\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","export 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?: VideoV2;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: Document;\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?: VideoV2;\n /** Information about the audio. */\n audio?: AudioV2;\n /** Information about the document. */\n document?: Document;\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?: Image;\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?: Image;\n /**\n * Optional, An AI generated description of the image\n * @readonly\n * @maxLength 300\n */\n caption?: string | null;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: 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 VideoV2 {\n /** WixMedia ID. */\n id?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @readonly\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @readonly\n */\n filename?: string | null;\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?: Audio[];\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 Audio {\n /** WixMedia ID. */\n id?: string;\n /** Audio URL. */\n url?: string;\n /**\n * Audio filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface Document {\n /** WixMedia ID. */\n id?: string;\n /** Document URL. */\n url?: string;\n /** Document filename. */\n filename?: 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?: Image;\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 */\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 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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/** @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","import * as ambassadorWixMediaSiteMediaV1FileDescriptor from './media-site-media-v1-file-descriptor-files.http.js';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptorTypes from './media-site-media-v1-file-descriptor-files.types.js';\nimport * as ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes from './media-site-media-v1-file-descriptor-files.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function generateFilesDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFilesDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFilesDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFilesDownloadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFilesDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFilesDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileDownloadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileDownloadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-file-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getFileDescriptor(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptor(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/files/get-file-by-id',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getFileDescriptors(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorsRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorsRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GetFileDescriptorsResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GetFileDescriptorsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.getFileDescriptors(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/get-files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateFileDescriptor(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.UpdateFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.UpdateFileDescriptorRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.UpdateFileDescriptorResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.UpdateFileDescriptorResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.updateFileDescriptor(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/files/update-file-descriptor',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileUploadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileUploadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileUploadUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateFileResumableUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileResumableUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileResumableUploadUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateFileResumableUploadUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateFileResumableUploadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateFileResumableUploadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-resumable-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function importFile(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ImportFileResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ImportFileResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.importFile(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/import',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkImportFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/import',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkImportFile(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFileRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkImportFileResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkImportFileResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkImportFile(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/import-v2',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listFiles(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.SearchFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.SearchFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.SearchFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.SearchFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.searchFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateVideoStreamingUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateVideoStreamingUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateVideoStreamingUrlRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.GenerateVideoStreamingUrlResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.GenerateVideoStreamingUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.generateVideoStreamingUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/files/generate-video-stream-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteFiles(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkDeleteFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkDeleteFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkDeleteFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkDeleteFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkDeleteFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/files/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkRestoreFilesFromTrashBin(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkRestoreFilesFromTrashBinRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkRestoreFilesFromTrashBinRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.BulkRestoreFilesFromTrashBinResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.BulkRestoreFilesFromTrashBinResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.bulkRestoreFilesFromTrashBin(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/trash-bin/files/restore',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDeletedFiles(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListDeletedFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListDeletedFilesRequest,\n ambassadorWixMediaSiteMediaV1FileDescriptorUniversalTypes.ListDeletedFilesResponse,\n ambassadorWixMediaSiteMediaV1FileDescriptorTypes.ListDeletedFilesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMediaSiteMediaV1FileDescriptor.listDeletedFiles(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/trash-bin/files',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n FileDescriptor as FileDescriptorOriginal,\n MediaType as MediaTypeOriginal,\n MediaTypeWithLiterals as MediaTypeWithLiteralsOriginal,\n FileMedia as FileMediaOriginal,\n FileMediaMediaOneOf as FileMediaMediaOneOfOriginal,\n ImageMedia as ImageMediaOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n Colors as ColorsOriginal,\n Color as ColorOriginal,\n ColorRGB as ColorRGBOriginal,\n FaceRecognition as FaceRecognitionOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n AudioV2 as AudioV2Original,\n Audio as AudioOriginal,\n Document as DocumentOriginal,\n Archive as ArchiveOriginal,\n Model3D as Model3DOriginal,\n OtherMedia as OtherMediaOriginal,\n FontMedia as FontMediaOriginal,\n FontAsset as FontAssetOriginal,\n OperationStatus as OperationStatusOriginal,\n OperationStatusWithLiterals as OperationStatusWithLiteralsOriginal,\n State as StateOriginal,\n StateWithLiterals as StateWithLiteralsOriginal,\n Namespace as NamespaceOriginal,\n NamespaceWithLiterals as NamespaceWithLiteralsOriginal,\n IdentityInfo as IdentityInfoOriginal,\n IdentityType as IdentityTypeOriginal,\n IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n DraftFilePublished as DraftFilePublishedOriginal,\n FileFailed as FileFailedOriginal,\n ExternalInfo as ExternalInfoOriginal,\n ApplicationError as ApplicationErrorOriginal,\n FileReady as FileReadyOriginal,\n BulkAnnotateImagesRequest as BulkAnnotateImagesRequestOriginal,\n ImageAnnotationType as ImageAnnotationTypeOriginal,\n ImageAnnotationTypeWithLiterals as ImageAnnotationTypeWithLiteralsOriginal,\n BulkAnnotateImagesResponse as BulkAnnotateImagesResponseOriginal,\n BulkAnnotateImageResult as BulkAnnotateImageResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GenerateAnimatedVectorRequest as GenerateAnimatedVectorRequestOriginal,\n GenerateAnimatedVectorResponse as GenerateAnimatedVectorResponseOriginal,\n GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequestOriginal,\n GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponseOriginal,\n GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequestOriginal,\n ContentDisposition as ContentDispositionOriginal,\n ContentDispositionWithLiterals as ContentDispositionWithLiteralsOriginal,\n GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponseOriginal,\n DownloadUrl as DownloadUrlOriginal,\n ServiceError as ServiceErrorOriginal,\n GetFileDescriptorRequest as GetFileDescriptorRequestOriginal,\n GetFileDescriptorResponse as GetFileDescriptorResponseOriginal,\n GetFileDescriptorsRequest as GetFileDescriptorsRequestOriginal,\n GetFileDescriptorsResponse as GetFileDescriptorsResponseOriginal,\n GetSiteFileDescriptorsRequest as GetSiteFileDescriptorsRequestOriginal,\n GetSiteFileDescriptorsResponse as GetSiteFileDescriptorsResponseOriginal,\n UpdateFileDescriptorRequest as UpdateFileDescriptorRequestOriginal,\n UpdateFileDescriptorResponse as UpdateFileDescriptorResponseOriginal,\n UnsupportedRequestValueError as UnsupportedRequestValueErrorOriginal,\n GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequestOriginal,\n ImageAnnotationConfigurations as ImageAnnotationConfigurationsOriginal,\n GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponseOriginal,\n SiteQuotaExceededError as SiteQuotaExceededErrorOriginal,\n TotalQuota as TotalQuotaOriginal,\n Plans as PlansOriginal,\n Plan as PlanOriginal,\n GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequestOriginal,\n UploadProtocol as UploadProtocolOriginal,\n UploadProtocolWithLiterals as UploadProtocolWithLiteralsOriginal,\n GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponseOriginal,\n ImportFileRequest as ImportFileRequestOriginal,\n ImportFileResponse as ImportFileResponseOriginal,\n BulkImportFilesRequest as BulkImportFilesRequestOriginal,\n BulkImportFilesResponse as BulkImportFilesResponseOriginal,\n BulkImportFileRequest as BulkImportFileRequestOriginal,\n BulkImportFileResponse as BulkImportFileResponseOriginal,\n BulkImportFileResult as BulkImportFileResultOriginal,\n BulkInternalImportFilesRequest as BulkInternalImportFilesRequestOriginal,\n BulkInternalImportFilesResponse as BulkInternalImportFilesResponseOriginal,\n ListFilesRequest as ListFilesRequestOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n ListFilesResponse as ListFilesResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n SearchFilesRequest as SearchFilesRequestOriginal,\n RootFolder as RootFolderOriginal,\n RootFolderWithLiterals as RootFolderWithLiteralsOriginal,\n SearchFilesResponse as SearchFilesResponseOriginal,\n GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequestOriginal,\n StreamFormat as StreamFormatOriginal,\n StreamFormatWithLiterals as StreamFormatWithLiteralsOriginal,\n GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponseOriginal,\n GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequestOriginal,\n GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponseOriginal,\n BulkDeleteFilesRequest as BulkDeleteFilesRequestOriginal,\n BulkDeleteFilesResponse as BulkDeleteFilesResponseOriginal,\n BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequestOriginal,\n BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponseOriginal,\n ListDeletedFilesRequest as ListDeletedFilesRequestOriginal,\n ListDeletedFilesResponse as ListDeletedFilesResponseOriginal,\n BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequestOriginal,\n BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponseOriginal,\n BulkPublishDraftFileResult as BulkPublishDraftFileResultOriginal,\n UpdateFileRequest as UpdateFileRequestOriginal,\n UpdateFileResponse as UpdateFileResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n GenerateFileDownloadUrlValidationErrors as GenerateFileDownloadUrlValidationErrorsOriginal,\n GetFileDescriptorValidationErrors as GetFileDescriptorValidationErrorsOriginal,\n GetFileDescriptorsValidationErrors as GetFileDescriptorsValidationErrorsOriginal,\n UpdateFileDescriptorValidationErrors as UpdateFileDescriptorValidationErrorsOriginal,\n GenerateFileUploadUrlValidationErrors as GenerateFileUploadUrlValidationErrorsOriginal,\n GenerateFileResumableUploadUrlValidationErrors as GenerateFileResumableUploadUrlValidationErrorsOriginal,\n ImportFileValidationErrors as ImportFileValidationErrorsOriginal,\n ListFilesValidationErrors as ListFilesValidationErrorsOriginal,\n SearchFilesValidationErrors as SearchFilesValidationErrorsOriginal,\n ListDeletedFilesValidationErrors as ListDeletedFilesValidationErrorsOriginal,\n} from './media-site-media-v1-file-descriptor-files.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,s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kB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC,iBAAiB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkDeleteFiles","bulkImportFile","bulkImportFiles","bulkRestoreFilesFromTrashBin","generateFileDownloadUrl","generateFileResumableUploadUrl","generateFileUploadUrl","generateFilesDownloadUrl","generateVideoStreamingUrl","getFileDescriptor","getFileDescriptors","importFile","listDeletedFiles","listFiles","searchFiles","updateFileDescriptor","import_float","import_timestamp","import_rest_modules","payload","MediaType","OperationStatus","State","Namespace","IdentityType","ImageAnnotationType","ContentDisposition","UploadProtocol","SortOrder","RootFolder","StreamFormat","WebhookIdentityType","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles"]}