@wix/auto_sdk_media_files 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/build/cjs/index.d.ts +315 -1
  2. package/build/cjs/index.js +2264 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2266 -1
  5. package/build/cjs/index.typings.js +1935 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1053 -1
  8. package/build/cjs/meta.js +1326 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → es/index.d.mts} +93 -36
  11. package/build/es/index.mjs +2212 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts → es/index.typings.d.mts} +227 -487
  14. package/build/es/index.typings.mjs +1887 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/{internal/es/src/media-site-media-v1-file-descriptor-files.types.d.ts → es/meta.d.mts} +106 -585
  17. package/build/es/meta.mjs +1287 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +315 -1
  20. package/build/internal/cjs/index.js +2264 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2266 -1
  23. package/build/internal/cjs/index.typings.js +1935 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1053 -1
  26. package/build/internal/cjs/meta.js +1326 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/{cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → internal/es/index.d.mts} +93 -36
  29. package/build/internal/es/index.mjs +2212 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/media-site-media-v1-file-descriptor-files.universal.d.ts → index.typings.d.mts} +227 -487
  32. package/build/internal/es/index.typings.mjs +1887 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/{es/src/media-site-media-v1-file-descriptor-files.types.d.ts → internal/es/meta.d.mts} +106 -585
  35. package/build/internal/es/meta.mjs +1287 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +10 -9
  38. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  39. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  40. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  41. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  42. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  43. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  44. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  45. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  46. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  47. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  48. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  49. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  50. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  51. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  52. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  53. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  54. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  65. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  66. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  67. package/build/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  68. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  69. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  70. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  71. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  72. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  73. package/build/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  74. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  75. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  76. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  77. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  78. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  79. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  80. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  81. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  82. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  83. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  84. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  85. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  86. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  87. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  88. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  89. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  90. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  91. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  92. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  93. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  94. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  95. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  96. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  107. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  108. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  109. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  110. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  111. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  112. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  113. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  114. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  115. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  116. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  117. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  118. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  119. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  120. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  121. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0FAAwE"}
1
+ {"version":3,"sources":["../../meta.ts","../../src/media-site-media-v1-file-descriptor-files.http.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 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 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 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 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 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 Upload API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/upload-api) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/upload-api)).\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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).\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 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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/resumable-upload-api) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api)).\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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).\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 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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).\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 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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).\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 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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_knowing-when-a-file-is-ready) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready)).\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 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 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 * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>\n *\n * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.\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 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 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 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 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 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","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"],"mappings":";;;;;;;;;;;;;;;;;;;;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;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,w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,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC,gBAAgB,OAAO;AAErE,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,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","generateFilesDownloadUrl","generateFileDownloadUrl","getFileDescriptor","getFileDescriptors","updateFileDescriptor","generateFileUploadUrl","generateFileResumableUploadUrl","importFile","bulkImportFiles","bulkImportFile","listFiles","searchFiles","generateVideoStreamingUrl","bulkDeleteFiles","bulkRestoreFilesFromTrashBin","listDeletedFiles"]}
@@ -1,9 +1,8 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { BulkDeleteFilesOptions, BulkImportFileOptions, BulkImportFileResponse, BulkImportFilesResponse, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlResponse, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlResponse, GenerateFileUploadUrlOptions, GenerateFileUploadUrlResponse, GenerateFilesDownloadUrlResponse, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlResponse, GetFileDescriptorsResponse, ImportFileOptions, ImportFileRequest, ImportFileResponse, ListDeletedFilesOptions, ListDeletedFilesResponse, ListFilesOptions, ListFilesResponse, SearchFilesOptions, SearchFilesResponse } from './media-site-media-v1-file-descriptor-files.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function generateFilesDownloadUrl(httpClient: HttpClient): GenerateFilesDownloadUrlSignature;
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlValidationErrors, FileDescriptor, GetFileDescriptorValidationErrors, GetFileDescriptorsResponse, GetFileDescriptorsValidationErrors, UpdateFileDescriptorValidationErrors, GenerateFileUploadUrlOptions, GenerateFileUploadUrlResponse, GenerateFileUploadUrlValidationErrors, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlValidationErrors, ImportFileOptions, ImportFileResponse, ImportFileValidationErrors, ImportFileRequest, BulkImportFilesResponse, BulkImportFileOptions, BulkImportFileResponse, ListFilesOptions, ListFilesResponse, ListFilesValidationErrors, SearchFilesOptions, SearchFilesResponse, SearchFilesValidationErrors, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlResponse, BulkDeleteFilesOptions, ListDeletedFilesOptions, ListDeletedFilesResponse, ListDeletedFilesValidationErrors, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope } from './index.typings.mjs';
3
+ export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileRequest, BulkImportFileResult, BulkImportFilesRequest, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlRequest, GenerateFileResumableUploadUrlRequest, GenerateFileUploadUrlRequest, GenerateFilesDownloadUrlRequest, GenerateVideoStreamingUrlRequest, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ItemMetadata, ListDeletedFilesRequest, ListFilesRequest, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesRequest, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType } from './index.typings.mjs';
4
+
5
+ declare function generateFilesDownloadUrl$1(httpClient: HttpClient): GenerateFilesDownloadUrlSignature;
7
6
  interface GenerateFilesDownloadUrlSignature {
8
7
  /**
9
8
  * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
@@ -20,7 +19,7 @@ interface GenerateFilesDownloadUrlSignature {
20
19
  */
21
20
  (fileIds: string[]): Promise<GenerateFilesDownloadUrlResponse>;
22
21
  }
23
- export declare function generateFileDownloadUrl(httpClient: HttpClient): GenerateFileDownloadUrlSignature;
22
+ declare function generateFileDownloadUrl$1(httpClient: HttpClient): GenerateFileDownloadUrlSignature;
24
23
  interface GenerateFileDownloadUrlSignature {
25
24
  /**
26
25
  * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
@@ -39,9 +38,11 @@ interface GenerateFileDownloadUrlSignature {
39
38
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
40
39
  * Learn more in the File and Folder IDs article.
41
40
  */
42
- (fileId: string, options?: GenerateFileDownloadUrlOptions | undefined): Promise<GenerateFileDownloadUrlResponse>;
41
+ (fileId: string, options?: GenerateFileDownloadUrlOptions | undefined): Promise<GenerateFileDownloadUrlResponse & {
42
+ __validationErrorsType?: GenerateFileDownloadUrlValidationErrors | undefined;
43
+ }>;
43
44
  }
44
- export declare function getFileDescriptor(httpClient: HttpClient): GetFileDescriptorSignature;
45
+ declare function getFileDescriptor$1(httpClient: HttpClient): GetFileDescriptorSignature;
45
46
  interface GetFileDescriptorSignature {
46
47
  /**
47
48
  * Gets information about a specific file in the Media Manager.
@@ -51,9 +52,11 @@ interface GetFileDescriptorSignature {
51
52
  * Learn more in the File and Folder IDs article.
52
53
  * @returns Information about the file.
53
54
  */
54
- (fileId: string): Promise<FileDescriptor>;
55
+ (fileId: string): Promise<FileDescriptor & {
56
+ __validationErrorsType?: GetFileDescriptorValidationErrors | undefined;
57
+ }>;
55
58
  }
56
- export declare function getFileDescriptors(httpClient: HttpClient): GetFileDescriptorsSignature;
59
+ declare function getFileDescriptors$1(httpClient: HttpClient): GetFileDescriptorsSignature;
57
60
  interface GetFileDescriptorsSignature {
58
61
  /**
59
62
  * Gets information about specific files in the Media Manager.
@@ -62,9 +65,11 @@ interface GetFileDescriptorsSignature {
62
65
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
63
66
  * Learn more in the File and Folder IDs article.
64
67
  */
65
- (fileIds: string[]): Promise<GetFileDescriptorsResponse>;
68
+ (fileIds: string[]): Promise<GetFileDescriptorsResponse & {
69
+ __validationErrorsType?: GetFileDescriptorsValidationErrors | undefined;
70
+ }>;
66
71
  }
67
- export declare function updateFileDescriptor(httpClient: HttpClient): UpdateFileDescriptorSignature;
72
+ declare function updateFileDescriptor$1(httpClient: HttpClient): UpdateFileDescriptorSignature;
68
73
  interface UpdateFileDescriptorSignature {
69
74
  /**
70
75
  * Updates a file. <br />
@@ -73,9 +78,11 @@ interface UpdateFileDescriptorSignature {
73
78
  * @param - The file to update.
74
79
  * @returns Information about the updated file.
75
80
  */
76
- (file: FileDescriptor): Promise<FileDescriptor>;
81
+ (file: FileDescriptor): Promise<FileDescriptor & {
82
+ __validationErrorsType?: UpdateFileDescriptorValidationErrors | undefined;
83
+ }>;
77
84
  }
78
- export declare function generateFileUploadUrl(httpClient: HttpClient): GenerateFileUploadUrlSignature;
85
+ declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature;
79
86
  interface GenerateFileUploadUrlSignature {
80
87
  /**
81
88
  * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
@@ -87,9 +94,11 @@ interface GenerateFileUploadUrlSignature {
87
94
  * @param - File mime type.
88
95
  * @param - Options to use when generating a file's upload URL.
89
96
  */
90
- (mimeType: string, options?: GenerateFileUploadUrlOptions | undefined): Promise<GenerateFileUploadUrlResponse>;
97
+ (mimeType: string, options?: GenerateFileUploadUrlOptions | undefined): Promise<GenerateFileUploadUrlResponse & {
98
+ __validationErrorsType?: GenerateFileUploadUrlValidationErrors | undefined;
99
+ }>;
91
100
  }
92
- export declare function generateFileResumableUploadUrl(httpClient: HttpClient): GenerateFileResumableUploadUrlSignature;
101
+ declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): GenerateFileResumableUploadUrlSignature;
93
102
  interface GenerateFileResumableUploadUrlSignature {
94
103
  /**
95
104
  * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
@@ -101,9 +110,11 @@ interface GenerateFileResumableUploadUrlSignature {
101
110
  * @param - File mime type.
102
111
  * @param - Options to use when generating a resumable upload URL.
103
112
  */
104
- (mimeType: string, options?: GenerateFileResumableUploadUrlOptions | undefined): Promise<GenerateFileResumableUploadUrlResponse>;
113
+ (mimeType: string, options?: GenerateFileResumableUploadUrlOptions | undefined): Promise<GenerateFileResumableUploadUrlResponse & {
114
+ __validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors | undefined;
115
+ }>;
105
116
  }
106
- export declare function importFile(httpClient: HttpClient): ImportFileSignature;
117
+ declare function importFile$1(httpClient: HttpClient): ImportFileSignature;
107
118
  interface ImportFileSignature {
108
119
  /**
109
120
  * Imports a file to the Media Manager using an external url.
@@ -124,9 +135,11 @@ interface ImportFileSignature {
124
135
  * @param - Publicly accessible external file URL.
125
136
  * @param - Options to use when importing a single file.
126
137
  */
127
- (url: string, options?: ImportFileOptions | undefined): Promise<ImportFileResponse>;
138
+ (url: string, options?: ImportFileOptions | undefined): Promise<ImportFileResponse & {
139
+ __validationErrorsType?: ImportFileValidationErrors | undefined;
140
+ }>;
128
141
  }
129
- export declare function bulkImportFiles(httpClient: HttpClient): BulkImportFilesSignature;
142
+ declare function bulkImportFiles$1(httpClient: HttpClient): BulkImportFilesSignature;
130
143
  interface BulkImportFilesSignature {
131
144
  /**
132
145
  * Imports a bulk of files to the Media Manager using external urls. <br/>
@@ -151,7 +164,7 @@ interface BulkImportFilesSignature {
151
164
  */
152
165
  (importFileRequests: ImportFileRequest[]): Promise<BulkImportFilesResponse>;
153
166
  }
154
- export declare function bulkImportFile(httpClient: HttpClient): BulkImportFileSignature;
167
+ declare function bulkImportFile$1(httpClient: HttpClient): BulkImportFileSignature;
155
168
  interface BulkImportFileSignature {
156
169
  /**
157
170
  * Imports a bulk of files to the Media Manager using external urls. <br/>
@@ -175,7 +188,7 @@ interface BulkImportFileSignature {
175
188
  */
176
189
  (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions | undefined): Promise<BulkImportFileResponse>;
177
190
  }
178
- export declare function listFiles(httpClient: HttpClient): ListFilesSignature;
191
+ declare function listFiles$1(httpClient: HttpClient): ListFilesSignature;
179
192
  interface ListFilesSignature {
180
193
  /**
181
194
  * Retrieves a list of files in the Media Manager.
@@ -183,9 +196,11 @@ interface ListFilesSignature {
183
196
  * 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.
184
197
  * @param - Options to use when listing media files.
185
198
  */
186
- (options?: ListFilesOptions | undefined): Promise<ListFilesResponse>;
199
+ (options?: ListFilesOptions | undefined): Promise<ListFilesResponse & {
200
+ __validationErrorsType?: ListFilesValidationErrors | undefined;
201
+ }>;
187
202
  }
188
- export declare function searchFiles(httpClient: HttpClient): SearchFilesSignature;
203
+ declare function searchFiles$1(httpClient: HttpClient): SearchFilesSignature;
189
204
  interface SearchFilesSignature {
190
205
  /**
191
206
  * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
@@ -193,9 +208,11 @@ interface SearchFilesSignature {
193
208
  * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
194
209
  * @param - Options to specify which folders to search.
195
210
  */
196
- (options?: SearchFilesOptions | undefined): Promise<SearchFilesResponse>;
211
+ (options?: SearchFilesOptions | undefined): Promise<SearchFilesResponse & {
212
+ __validationErrorsType?: SearchFilesValidationErrors | undefined;
213
+ }>;
197
214
  }
198
- export declare function generateVideoStreamingUrl(httpClient: HttpClient): GenerateVideoStreamingUrlSignature;
215
+ declare function generateVideoStreamingUrl$1(httpClient: HttpClient): GenerateVideoStreamingUrlSignature;
199
216
  interface GenerateVideoStreamingUrlSignature {
200
217
  /**
201
218
  * Generates a URL for streaming a specific video file in the Media Manager. <br/>
@@ -209,7 +226,7 @@ interface GenerateVideoStreamingUrlSignature {
209
226
  */
210
227
  (fileId: string, options?: GenerateVideoStreamingUrlOptions | undefined): Promise<GenerateVideoStreamingUrlResponse>;
211
228
  }
212
- export declare function bulkDeleteFiles(httpClient: HttpClient): BulkDeleteFilesSignature;
229
+ declare function bulkDeleteFiles$1(httpClient: HttpClient): BulkDeleteFilesSignature;
213
230
  interface BulkDeleteFilesSignature {
214
231
  /**
215
232
  * Deletes the specified files from the Media Manager. <br/>
@@ -230,7 +247,7 @@ interface BulkDeleteFilesSignature {
230
247
  */
231
248
  (fileIds: string[], options?: BulkDeleteFilesOptions | undefined): Promise<void>;
232
249
  }
233
- export declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): BulkRestoreFilesFromTrashBinSignature;
250
+ declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient): BulkRestoreFilesFromTrashBinSignature;
234
251
  interface BulkRestoreFilesFromTrashBinSignature {
235
252
  /**
236
253
  * Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
@@ -241,7 +258,7 @@ interface BulkRestoreFilesFromTrashBinSignature {
241
258
  */
242
259
  (fileIds: string[]): Promise<void>;
243
260
  }
244
- export declare function listDeletedFiles(httpClient: HttpClient): ListDeletedFilesSignature;
261
+ declare function listDeletedFiles$1(httpClient: HttpClient): ListDeletedFilesSignature;
245
262
  interface ListDeletedFilesSignature {
246
263
  /**
247
264
  * Retrieves a list of files in the Media Manager's trash bin. <br/>
@@ -249,10 +266,50 @@ interface ListDeletedFilesSignature {
249
266
  * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
250
267
  * @param - Options to use when listing deleted files from the trash bin.
251
268
  */
252
- (options?: ListDeletedFilesOptions | undefined): Promise<ListDeletedFilesResponse>;
269
+ (options?: ListDeletedFilesOptions | undefined): Promise<ListDeletedFilesResponse & {
270
+ __validationErrorsType?: ListDeletedFilesValidationErrors | undefined;
271
+ }>;
253
272
  }
254
- export declare const onFileDescriptorDeleted: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
255
- export declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
256
- export declare const onFileDescriptorFileReady: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
257
- export declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
258
- export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListFilesOptions, ListFilesRequest, ListFilesResponse, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js';
273
+ declare const onFileDescriptorDeleted$1: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
274
+ declare const onFileDescriptorFileFailed$1: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
275
+ declare const onFileDescriptorFileReady$1: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
276
+ declare const onFileDescriptorUpdated$1: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
277
+
278
+ declare const generateFilesDownloadUrl: MaybeContext<BuildRESTFunction<typeof generateFilesDownloadUrl$1> & typeof generateFilesDownloadUrl$1>;
279
+ declare const generateFileDownloadUrl: MaybeContext<BuildRESTFunction<typeof generateFileDownloadUrl$1> & typeof generateFileDownloadUrl$1>;
280
+ declare const getFileDescriptor: MaybeContext<BuildRESTFunction<typeof getFileDescriptor$1> & typeof getFileDescriptor$1>;
281
+ declare const getFileDescriptors: MaybeContext<BuildRESTFunction<typeof getFileDescriptors$1> & typeof getFileDescriptors$1>;
282
+ declare const updateFileDescriptor: MaybeContext<BuildRESTFunction<typeof updateFileDescriptor$1> & typeof updateFileDescriptor$1>;
283
+ declare const generateFileUploadUrl: MaybeContext<BuildRESTFunction<typeof generateFileUploadUrl$1> & typeof generateFileUploadUrl$1>;
284
+ declare const generateFileResumableUploadUrl: MaybeContext<BuildRESTFunction<typeof generateFileResumableUploadUrl$1> & typeof generateFileResumableUploadUrl$1>;
285
+ declare const importFile: MaybeContext<BuildRESTFunction<typeof importFile$1> & typeof importFile$1>;
286
+ declare const bulkImportFiles: MaybeContext<BuildRESTFunction<typeof bulkImportFiles$1> & typeof bulkImportFiles$1>;
287
+ declare const bulkImportFile: MaybeContext<BuildRESTFunction<typeof bulkImportFile$1> & typeof bulkImportFile$1>;
288
+ declare const listFiles: MaybeContext<BuildRESTFunction<typeof listFiles$1> & typeof listFiles$1>;
289
+ declare const searchFiles: MaybeContext<BuildRESTFunction<typeof searchFiles$1> & typeof searchFiles$1>;
290
+ declare const generateVideoStreamingUrl: MaybeContext<BuildRESTFunction<typeof generateVideoStreamingUrl$1> & typeof generateVideoStreamingUrl$1>;
291
+ declare const bulkDeleteFiles: MaybeContext<BuildRESTFunction<typeof bulkDeleteFiles$1> & typeof bulkDeleteFiles$1>;
292
+ declare const bulkRestoreFilesFromTrashBin: MaybeContext<BuildRESTFunction<typeof bulkRestoreFilesFromTrashBin$1> & typeof bulkRestoreFilesFromTrashBin$1>;
293
+ declare const listDeletedFiles: MaybeContext<BuildRESTFunction<typeof listDeletedFiles$1> & typeof listDeletedFiles$1>;
294
+ /**
295
+ * Triggered when a file is deleted.
296
+ *
297
+ * If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted.
298
+ */
299
+ declare const onFileDescriptorDeleted: BuildEventDefinition<typeof onFileDescriptorDeleted$1>;
300
+ /**
301
+ * Triggered when a file fails during essential post-upload processing.
302
+ */
303
+ declare const onFileDescriptorFileFailed: BuildEventDefinition<typeof onFileDescriptorFileFailed$1>;
304
+ /**
305
+ * Triggered when a file is ready to be used, after any post-upload processing.
306
+ *
307
+ * This event is also triggred when a file is restored from the Media Manager's trash bin.
308
+ */
309
+ declare const onFileDescriptorFileReady: BuildEventDefinition<typeof onFileDescriptorFileReady$1>;
310
+ /**
311
+ * Triggered when a file is updated, including when a file is moved to a different folder.
312
+ */
313
+ declare const onFileDescriptorUpdated: BuildEventDefinition<typeof onFileDescriptorUpdated$1>;
314
+
315
+ export { BulkDeleteFilesOptions, BulkImportFileOptions, BulkImportFileResponse, BulkImportFilesResponse, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlResponse, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlResponse, GenerateFileUploadUrlOptions, GenerateFileUploadUrlResponse, GenerateFilesDownloadUrlResponse, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlResponse, GetFileDescriptorsResponse, ImportFileOptions, ImportFileRequest, ImportFileResponse, ListDeletedFilesOptions, ListDeletedFilesResponse, ListFilesOptions, ListFilesResponse, SearchFilesOptions, SearchFilesResponse, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorDeleted, onFileDescriptorFileFailed, onFileDescriptorFileReady, onFileDescriptorUpdated, searchFiles, updateFileDescriptor };