@wix/auto_sdk_media_files 1.0.93 → 1.0.94

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 (49) hide show
  1. package/build/cjs/index.d.ts +14 -3
  2. package/build/cjs/index.js +139 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +38 -7
  5. package/build/cjs/index.typings.js +131 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +20 -5
  8. package/build/cjs/meta.js +97 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +197 -1
  11. package/build/cjs/schemas.js +252 -7
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +14 -3
  14. package/build/es/index.mjs +138 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +38 -7
  17. package/build/es/index.typings.mjs +130 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +20 -5
  20. package/build/es/meta.mjs +96 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +197 -1
  23. package/build/es/schemas.mjs +250 -7
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +14 -3
  26. package/build/internal/cjs/index.js +139 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +38 -7
  29. package/build/internal/cjs/index.typings.js +131 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +20 -5
  32. package/build/internal/cjs/meta.js +97 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +197 -1
  35. package/build/internal/cjs/schemas.js +252 -7
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +14 -3
  38. package/build/internal/es/index.mjs +138 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +38 -7
  41. package/build/internal/es/index.typings.mjs +130 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +20 -5
  44. package/build/internal/es/meta.mjs +96 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +197 -1
  47. package/build/internal/es/schemas.mjs +250 -7
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -993,7 +993,8 @@ interface GenerateFileUploadUrlRequest {
993
993
  /**
994
994
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
995
995
  * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>
996
- * @maxLength 200
996
+ * The file name is truncated to 255 characters if longer.
997
+ * @maxLength 1000
997
998
  */
998
999
  fileName?: string | null;
999
1000
  /**
@@ -1106,7 +1107,8 @@ interface GenerateFileResumableUploadUrlRequest {
1106
1107
  /**
1107
1108
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
1108
1109
  * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>
1109
- * @maxLength 200
1110
+ * The file name is truncated to 255 characters if longer.
1111
+ * @maxLength 1000
1110
1112
  */
1111
1113
  fileName?: string | null;
1112
1114
  /**
@@ -1176,7 +1178,8 @@ interface ImportFileRequest {
1176
1178
  mediaType?: MediaTypeWithLiterals;
1177
1179
  /**
1178
1180
  * File name that appears in the Media Manager.
1179
- * @maxLength 255
1181
+ * The file name is truncated to 255 characters if longer.
1182
+ * @maxLength 1000
1180
1183
  */
1181
1184
  displayName?: string | null;
1182
1185
  /**
@@ -1448,6 +1451,17 @@ interface SearchFilesResponse {
1448
1451
  /** The next cursor if it exists. */
1449
1452
  nextCursor?: PagingMetadataV2;
1450
1453
  }
1454
+ interface SearchFilesCrossSiteRequest {
1455
+ /** File media type filter. `UNKNOWN` (default) means no media-type filter is applied. */
1456
+ mediaType?: MediaTypeWithLiterals;
1457
+ }
1458
+ interface SearchFilesCrossSiteResponse {
1459
+ /**
1460
+ * Files matching the tag across all sites of the account.
1461
+ * @maxSize 200
1462
+ */
1463
+ files?: FileDescriptor[];
1464
+ }
1451
1465
  interface GenerateVideoStreamingUrlRequest {
1452
1466
  /**
1453
1467
  * File ID.
@@ -2229,7 +2243,8 @@ interface GenerateFileUploadUrlOptions {
2229
2243
  /**
2230
2244
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
2231
2245
  * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>
2232
- * @maxLength 200
2246
+ * The file name is truncated to 255 characters if longer.
2247
+ * @maxLength 1000
2233
2248
  */
2234
2249
  fileName?: string | null;
2235
2250
  /**
@@ -2287,7 +2302,8 @@ interface GenerateFileResumableUploadUrlOptions {
2287
2302
  /**
2288
2303
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
2289
2304
  * <br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>
2290
- * @maxLength 200
2305
+ * The file name is truncated to 255 characters if longer.
2306
+ * @maxLength 1000
2291
2307
  */
2292
2308
  fileName?: string | null;
2293
2309
  /**
@@ -2358,7 +2374,8 @@ interface ImportFileOptions {
2358
2374
  mediaType?: MediaTypeWithLiterals;
2359
2375
  /**
2360
2376
  * File name that appears in the Media Manager.
2361
- * @maxLength 255
2377
+ * The file name is truncated to 255 characters if longer.
2378
+ * @maxLength 1000
2362
2379
  */
2363
2380
  displayName?: string | null;
2364
2381
  /**
@@ -2578,6 +2595,20 @@ interface SearchFilesOptions {
2578
2595
  /** Cursor and paging information. */
2579
2596
  paging?: CursorPaging;
2580
2597
  }
2598
+ /**
2599
+ * Searches files by an internal tag across all sites of the account.
2600
+ *
2601
+ * Unlike SearchFiles, which is scoped to a single site, this account-level action
2602
+ * matches files by their internal tag across every site belonging to the account.
2603
+ * @public
2604
+ * @permissionId media:site_media:v1:file_descriptor:search_files_cross_site
2605
+ * @fqn com.wix.media.site_media.v1.FilesService.SearchFilesCrossSite
2606
+ */
2607
+ declare function searchFilesCrossSite(options?: SearchFilesCrossSiteOptions): Promise<NonNullablePaths<SearchFilesCrossSiteResponse, `files` | `files.${number}._id` | `files.${number}.displayName` | `files.${number}.url` | `files.${number}.hash` | `files.${number}.private` | `files.${number}.mediaType` | `files.${number}.media.audio._id` | `files.${number}.media.archive._id` | `files.${number}.media.archive.url` | `files.${number}.media.model3d._id` | `files.${number}.media.model3d.url` | `files.${number}.operationStatus` | `files.${number}.siteId` | `files.${number}.state`, 6>>;
2608
+ interface SearchFilesCrossSiteOptions {
2609
+ /** File media type filter. `UNKNOWN` (default) means no media-type filter is applied. */
2610
+ mediaType?: MediaTypeWithLiterals;
2611
+ }
2581
2612
  /**
2582
2613
  * Generates a URL for streaming a specific video file in the Media Manager. <br/>
2583
2614
  *
@@ -2831,4 +2862,4 @@ declare const utils: {
2831
2862
  };
2832
2863
  };
2833
2864
 
2834
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type AnnotationContext, type ApplicationError, type Archive, type AudioAdditionalProperties, type AudioAssetAdditionalProperties, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, type CommonQueryWithEntityContext, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DocumentAdditionalProperties, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileAdditionalProperties, type FileAdditionalPropertiesMediaAdditionalPropertiesOneOf, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileDescriptorQuery, type FileDescriptorQuerySpec, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FilesQueryBuilder, type FilesQueryResult, type FocalPoint, type FontAdditionalProperties, type FontAsset, type FontAssetAdditionalProperties, type FontMedia, type GenerateAnimatedVectorRequest, type GenerateAnimatedVectorResponse, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type GetSiteFileDescriptorsRequest, type GetSiteFileDescriptorsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAdditionalProperties, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImageOutputAdditionalProperties, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, type ListRecentItemsRequest, type ListRecentItemsResponse, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, type Model3dAdditionalProperties, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type QueryFileDescriptorsRequest, type QueryFileDescriptorsResponse, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type SyncImportFileDescriptorRequest, type SyncImportFileDescriptorResponse, type SyncImportFileRequest, type SyncImportFileResponse, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoAdditionalProperties, type VideoResolution, type VideoResolutionAdditionalProperties, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, queryFileDescriptors, searchFiles, typedQueryFileDescriptors, updateFileDescriptor, utils };
2865
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type AnnotationContext, type ApplicationError, type Archive, type AudioAdditionalProperties, type AudioAssetAdditionalProperties, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, type CommonQueryWithEntityContext, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DocumentAdditionalProperties, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileAdditionalProperties, type FileAdditionalPropertiesMediaAdditionalPropertiesOneOf, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileDescriptorQuery, type FileDescriptorQuerySpec, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FilesQueryBuilder, type FilesQueryResult, type FocalPoint, type FontAdditionalProperties, type FontAsset, type FontAssetAdditionalProperties, type FontMedia, type GenerateAnimatedVectorRequest, type GenerateAnimatedVectorResponse, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type GetSiteFileDescriptorsRequest, type GetSiteFileDescriptorsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAdditionalProperties, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImageOutputAdditionalProperties, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, type ListRecentItemsRequest, type ListRecentItemsResponse, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, type Model3dAdditionalProperties, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type QueryFileDescriptorsRequest, type QueryFileDescriptorsResponse, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesCrossSiteOptions, type SearchFilesCrossSiteRequest, type SearchFilesCrossSiteResponse, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type SyncImportFileDescriptorRequest, type SyncImportFileDescriptorResponse, type SyncImportFileRequest, type SyncImportFileResponse, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoAdditionalProperties, type VideoResolution, type VideoResolutionAdditionalProperties, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, queryFileDescriptors, searchFiles, searchFilesCrossSite, typedQueryFileDescriptors, updateFileDescriptor, utils };
@@ -900,6 +900,83 @@ function searchFiles(payload) {
900
900
  }
901
901
  return __searchFiles;
902
902
  }
903
+ function searchFilesCrossSite(payload) {
904
+ function __searchFilesCrossSite({ host }) {
905
+ const metadata = {
906
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
907
+ method: "POST",
908
+ methodFqn: "com.wix.media.site_media.v1.FilesService.SearchFilesCrossSite",
909
+ packageName: PACKAGE_NAME,
910
+ migrationOptions: {
911
+ optInTransformResponse: true
912
+ },
913
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
914
+ protoPath: "/v1/files/search-cross-site",
915
+ data: payload,
916
+ host
917
+ }),
918
+ data: payload,
919
+ transformResponse: (payload2) => transformPaths(payload2, [
920
+ {
921
+ transformFn: transformRESTTimestampToSDKTimestamp,
922
+ paths: [
923
+ { path: "files.createdDate" },
924
+ { path: "files.updatedDate" },
925
+ { path: "files.lastUsedDate" },
926
+ { path: "files.media.image.image.urlExpirationDate" },
927
+ { path: "files.media.image.previewImage.urlExpirationDate" },
928
+ { path: "files.media.video.urlExpirationDate" },
929
+ { path: "files.media.video.resolutions.urlExpirationDate" },
930
+ {
931
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
932
+ },
933
+ { path: "files.media.video.posters.urlExpirationDate" },
934
+ { path: "files.media.audio.assets.urlExpirationDate" },
935
+ { path: "files.media.document.urlExpirationDate" },
936
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
937
+ { path: "files.media.vector.image.urlExpirationDate" },
938
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
939
+ { path: "files.media.archive.urlExpirationDate" },
940
+ { path: "files.media.model3d.urlExpirationDate" },
941
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
942
+ { path: "files.media.icon.image.urlExpirationDate" },
943
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
944
+ ]
945
+ },
946
+ {
947
+ transformFn: transformRESTFloatToSDKFloat,
948
+ paths: [
949
+ { path: "files.media.image.image.focalPoint.x" },
950
+ { path: "files.media.image.image.focalPoint.y" },
951
+ { path: "files.media.image.faces.confidence" },
952
+ { path: "files.media.image.previewImage.focalPoint.x" },
953
+ { path: "files.media.image.previewImage.focalPoint.y" },
954
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
955
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
956
+ { path: "files.media.video.posters.focalPoint.x" },
957
+ { path: "files.media.video.posters.focalPoint.y" },
958
+ { path: "files.media.document.thumbnail.focalPoint.x" },
959
+ { path: "files.media.document.thumbnail.focalPoint.y" },
960
+ { path: "files.media.vector.image.focalPoint.x" },
961
+ { path: "files.media.vector.image.focalPoint.y" },
962
+ { path: "files.media.vector.faces.confidence" },
963
+ { path: "files.media.vector.previewImage.focalPoint.x" },
964
+ { path: "files.media.vector.previewImage.focalPoint.y" },
965
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
966
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
967
+ { path: "files.media.icon.image.focalPoint.x" },
968
+ { path: "files.media.icon.image.focalPoint.y" },
969
+ { path: "files.media.icon.faces.confidence" },
970
+ { path: "files.media.icon.previewImage.focalPoint.x" },
971
+ { path: "files.media.icon.previewImage.focalPoint.y" }
972
+ ]
973
+ }
974
+ ])
975
+ };
976
+ return metadata;
977
+ }
978
+ return __searchFilesCrossSite;
979
+ }
903
980
  function generateVideoStreamingUrl(payload) {
904
981
  function __generateVideoStreamingUrl({ host }) {
905
982
  const metadata = {
@@ -1875,6 +1952,58 @@ async function searchFiles2(options) {
1875
1952
  throw transformedError;
1876
1953
  }
1877
1954
  }
1955
+ async function searchFilesCrossSite2(options) {
1956
+ const { httpClient, sideEffects } = arguments[1];
1957
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1958
+ mediaType: options?.mediaType
1959
+ });
1960
+ const reqOpts = searchFilesCrossSite(payload);
1961
+ sideEffects?.onSiteCall?.();
1962
+ try {
1963
+ const result = await httpClient.request(reqOpts);
1964
+ sideEffects?.onSuccess?.(result);
1965
+ return renameKeysFromRESTResponseToSDKResponse(
1966
+ transformPaths2(result.data, [
1967
+ {
1968
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1969
+ paths: [{ path: "files.media.video" }]
1970
+ },
1971
+ {
1972
+ transformFn: transformRESTDocumentToSDKDocument,
1973
+ paths: [{ path: "files.media.document" }]
1974
+ },
1975
+ {
1976
+ transformFn: transformRESTImageToSDKImage,
1977
+ paths: [
1978
+ { path: "files.media.image.image" },
1979
+ { path: "files.media.image.previewImage" },
1980
+ { path: "files.media.vector.image" },
1981
+ { path: "files.media.vector.previewImage" },
1982
+ { path: "files.media.model3d.thumbnail" },
1983
+ { path: "files.media.icon.image" },
1984
+ { path: "files.media.icon.previewImage" }
1985
+ ]
1986
+ },
1987
+ {
1988
+ transformFn: transformRESTAudioToSDKAudio,
1989
+ paths: [{ path: "files.media.audio.assets", isRepeated: true }]
1990
+ }
1991
+ ])
1992
+ );
1993
+ } catch (err) {
1994
+ const transformedError = sdkTransformError(
1995
+ err,
1996
+ {
1997
+ spreadPathsToArguments: {},
1998
+ explicitPathsToArguments: { mediaType: "$[0].mediaType" },
1999
+ singleArgumentUnchanged: false
2000
+ },
2001
+ ["options"]
2002
+ );
2003
+ sideEffects?.onError?.(err);
2004
+ throw transformedError;
2005
+ }
2006
+ }
1878
2007
  async function generateVideoStreamingUrl2(fileId, options) {
1879
2008
  const { httpClient, sideEffects } = arguments[2];
1880
2009
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -2179,6 +2308,7 @@ export {
2179
2308
  listFiles2 as listFiles,
2180
2309
  queryFileDescriptors2 as queryFileDescriptors,
2181
2310
  searchFiles2 as searchFiles,
2311
+ searchFilesCrossSite2 as searchFilesCrossSite,
2182
2312
  typedQueryFileDescriptors,
2183
2313
  updateFileDescriptor2 as updateFileDescriptor,
2184
2314
  utils