@wix/media 1.0.139 → 1.0.140

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/media",
3
- "version": "1.0.139",
3
+ "version": "1.0.140",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@wix/media_enterprise-media-categories": "1.0.37",
25
25
  "@wix/media_enterprise-media-items": "1.0.41",
26
- "@wix/media_files": "1.0.67",
27
- "@wix/media_folders": "1.0.43"
26
+ "@wix/media_files": "1.0.68",
27
+ "@wix/media_folders": "1.0.44"
28
28
  },
29
29
  "devDependencies": {
30
30
  "glob": "^10.4.1",
@@ -49,5 +49,5 @@
49
49
  "fqdn": ""
50
50
  }
51
51
  },
52
- "falconPackageHash": "87e2f3361af01681cd54416ef452e96ec43fecc175448f0893734a8e"
52
+ "falconPackageHash": "4d6261e37a097ae5110fc6680acff4689c607f43c715d75a8de1a922"
53
53
  }
@@ -2441,9 +2441,11 @@ interface BulkAnnotateImagesRequest {
2441
2441
  annotationTypes?: ImageAnnotationType[];
2442
2442
  /** When true the endpoint will detect listed information even if the image has this information */
2443
2443
  overwrite?: boolean | null;
2444
+ /** Should the response return the item following the operation */
2445
+ returnEntity?: boolean;
2444
2446
  }
2445
2447
  declare enum ImageAnnotationType {
2446
- UNKNOWN_ANNOTATION_TYPE = "UNKNOWN_ANNOTATION_TYPE",
2448
+ UNKNOWN_IMAGE_ANNOTATION_TYPE = "UNKNOWN_IMAGE_ANNOTATION_TYPE",
2447
2449
  CONTAINS_TEXT = "CONTAINS_TEXT",
2448
2450
  IS_ANIMATED = "IS_ANIMATED",
2449
2451
  FACES = "FACES",
@@ -2452,8 +2454,37 @@ declare enum ImageAnnotationType {
2452
2454
  CAPTION = "CAPTION"
2453
2455
  }
2454
2456
  interface BulkAnnotateImagesResponse {
2455
- /** The updated file info */
2456
- files?: FileDescriptor[];
2457
+ /** Results of individual items */
2458
+ results?: BulkAnnotateImageResult[];
2459
+ /** Metadata of the operation */
2460
+ bulkActionMetadata?: BulkActionMetadata;
2461
+ }
2462
+ interface BulkAnnotateImageResult {
2463
+ /** Item metadata */
2464
+ itemMetadata?: ItemMetadata;
2465
+ /**
2466
+ * The item following the operation
2467
+ * Only returned if operation was successful and if returnEntity flag was on
2468
+ */
2469
+ item?: FileDescriptor;
2470
+ }
2471
+ interface ItemMetadata {
2472
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2473
+ _id?: string | null;
2474
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2475
+ originalIndex?: number;
2476
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2477
+ success?: boolean;
2478
+ /** Details about the error in case of failure. */
2479
+ error?: ApplicationError;
2480
+ }
2481
+ interface BulkActionMetadata {
2482
+ /** Number of items that were successfully processed. */
2483
+ totalSuccesses?: number;
2484
+ /** Number of items that couldn't be processed. */
2485
+ totalFailures?: number;
2486
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2487
+ undetailedFailures?: number;
2457
2488
  }
2458
2489
  interface GenerateFilesDownloadUrlRequest {
2459
2490
  /**
@@ -2613,6 +2644,16 @@ interface GenerateFileUploadUrlRequest {
2613
2644
  */
2614
2645
  filePath?: string | null;
2615
2646
  }
2647
+ interface ImageAnnotationConfigurations {
2648
+ /** Whether to skip detection for the image */
2649
+ skipDetection?: boolean | null;
2650
+ /**
2651
+ * A list of detections types to fill for the image
2652
+ * If specified at least one valid annotation type should be provided
2653
+ * Default will be all detections
2654
+ */
2655
+ annotationTypes?: ImageAnnotationType[];
2656
+ }
2616
2657
  interface GenerateFileUploadUrlResponse {
2617
2658
  /** The URL for uploading a file to the Media Manager. */
2618
2659
  uploadUrl?: string;
@@ -2768,24 +2809,6 @@ interface BulkImportFileResult {
2768
2809
  /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
2769
2810
  item?: FileDescriptor;
2770
2811
  }
2771
- interface ItemMetadata {
2772
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2773
- _id?: string | null;
2774
- /** Index of the item within the request array. Allows for correlation between request and response items. */
2775
- originalIndex?: number;
2776
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2777
- success?: boolean;
2778
- /** Details about the error in case of failure. */
2779
- error?: ApplicationError;
2780
- }
2781
- interface BulkActionMetadata {
2782
- /** Number of items that were successfully processed. */
2783
- totalSuccesses?: number;
2784
- /** Number of items that couldn't be processed. */
2785
- totalFailures?: number;
2786
- /** Number of failures without details because detailed failure threshold was exceeded. */
2787
- undetailedFailures?: number;
2788
- }
2789
2812
  interface ListFilesRequest {
2790
2813
  /**
2791
2814
  * ID of the file's parent folder. <br />
@@ -2967,7 +2990,7 @@ interface ListDeletedFilesResponse {
2967
2990
  }
2968
2991
  interface BulkPublishDraftFilesRequest {
2969
2992
  /**
2970
- * IDs of the files to move to the Media Manager's trash bin.
2993
+ * IDs of the draft files to be published.
2971
2994
  *
2972
2995
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2973
2996
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
@@ -2991,9 +3014,23 @@ interface BulkPublishDraftFilesRequest {
2991
3014
  * The folders in the path will be created if they don't already exist. <br />
2992
3015
  */
2993
3016
  filePath?: string | null;
3017
+ /** Should the response return the item following the operation */
3018
+ returnEntity?: boolean;
2994
3019
  }
2995
3020
  interface BulkPublishDraftFilesResponse {
2996
- files?: FileDescriptor[];
3021
+ /** Results of individual items */
3022
+ results?: BulkPublishDraftFileResult[];
3023
+ /** Metadata of the operation */
3024
+ bulkActionMetadata?: BulkActionMetadata;
3025
+ }
3026
+ interface BulkPublishDraftFileResult {
3027
+ /** Item metadata */
3028
+ itemMetadata?: ItemMetadata;
3029
+ /**
3030
+ * The item following the operation
3031
+ * Only returned if operation was successful and if returnEntity flag was on
3032
+ */
3033
+ item?: FileDescriptor;
2997
3034
  }
2998
3035
  interface UpdateFileRequest {
2999
3036
  /**
@@ -3809,25 +3846,38 @@ declare const bulkRestoreFilesFromTrashBin: MaybeContext<BuildRESTFunction<typeo
3809
3846
  declare const listDeletedFiles: MaybeContext<BuildRESTFunction<typeof listDeletedFiles$1> & typeof listDeletedFiles$1>;
3810
3847
 
3811
3848
  type _publicOnFileDescriptorDeletedType = typeof onFileDescriptorDeleted$1;
3812
- /** */
3849
+ /**
3850
+ * Triggered when a file is deleted.
3851
+ *
3852
+ * 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.
3853
+ */
3813
3854
  declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorDeletedType>>;
3814
3855
 
3815
3856
  type _publicOnFileDescriptorFileFailedType = typeof onFileDescriptorFileFailed$1;
3816
- /** */
3857
+ /**
3858
+ * Triggered when a file fails during essential post-upload processing.
3859
+ */
3817
3860
  declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorFileFailedType>>;
3818
3861
 
3819
3862
  type _publicOnFileDescriptorFileReadyType = typeof onFileDescriptorFileReady$1;
3820
- /** */
3863
+ /**
3864
+ * Triggered when a file is ready to be used, after any post-upload processing.
3865
+ *
3866
+ * This event is also triggred when a file is restored from the Media Manager's trash bin.
3867
+ */
3821
3868
  declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorFileReadyType>>;
3822
3869
 
3823
3870
  type _publicOnFileDescriptorUpdatedType = typeof onFileDescriptorUpdated$1;
3824
- /** */
3871
+ /**
3872
+ * Triggered when a file is updated, including when a file is moved to a different folder.
3873
+ */
3825
3874
  declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorUpdatedType>>;
3826
3875
 
3827
3876
  type context$1_ApplicationError = ApplicationError;
3828
3877
  type context$1_Archive = Archive;
3829
3878
  type context$1_AudioV2 = AudioV2;
3830
3879
  type context$1_BulkActionMetadata = BulkActionMetadata;
3880
+ type context$1_BulkAnnotateImageResult = BulkAnnotateImageResult;
3831
3881
  type context$1_BulkAnnotateImagesRequest = BulkAnnotateImagesRequest;
3832
3882
  type context$1_BulkAnnotateImagesResponse = BulkAnnotateImagesResponse;
3833
3883
  type context$1_BulkDeleteFilesOptions = BulkDeleteFilesOptions;
@@ -3841,6 +3891,7 @@ type context$1_BulkImportFileResult = BulkImportFileResult;
3841
3891
  type context$1_BulkImportFilesRequest = BulkImportFilesRequest;
3842
3892
  type context$1_BulkImportFilesResponse = BulkImportFilesResponse;
3843
3893
  type context$1_BulkImportFilesResponseNonNullableFields = BulkImportFilesResponseNonNullableFields;
3894
+ type context$1_BulkPublishDraftFileResult = BulkPublishDraftFileResult;
3844
3895
  type context$1_BulkPublishDraftFilesRequest = BulkPublishDraftFilesRequest;
3845
3896
  type context$1_BulkPublishDraftFilesResponse = BulkPublishDraftFilesResponse;
3846
3897
  type context$1_BulkRestoreFilesFromTrashBinRequest = BulkRestoreFilesFromTrashBinRequest;
@@ -3897,6 +3948,7 @@ type context$1_GetFileDescriptorsResponseNonNullableFields = GetFileDescriptorsR
3897
3948
  type context$1_IdentityInfo = IdentityInfo;
3898
3949
  type context$1_IdentityType = IdentityType;
3899
3950
  declare const context$1_IdentityType: typeof IdentityType;
3951
+ type context$1_ImageAnnotationConfigurations = ImageAnnotationConfigurations;
3900
3952
  type context$1_ImageAnnotationType = ImageAnnotationType;
3901
3953
  declare const context$1_ImageAnnotationType: typeof ImageAnnotationType;
3902
3954
  type context$1_ImageMedia = ImageMedia;
@@ -3963,7 +4015,7 @@ declare const context$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
3963
4015
  declare const context$1_searchFiles: typeof searchFiles;
3964
4016
  declare const context$1_updateFileDescriptor: typeof updateFileDescriptor;
3965
4017
  declare namespace context$1 {
3966
- export { type ActionEvent$1 as ActionEvent, type context$1_ApplicationError as ApplicationError, type context$1_Archive as Archive, type context$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BulkActionMetadata as BulkActionMetadata, type context$1_BulkAnnotateImagesRequest as BulkAnnotateImagesRequest, type context$1_BulkAnnotateImagesResponse as BulkAnnotateImagesResponse, type context$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type context$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type context$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type context$1_BulkImportFileOptions as BulkImportFileOptions, type context$1_BulkImportFileRequest as BulkImportFileRequest, type context$1_BulkImportFileResponse as BulkImportFileResponse, type context$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type context$1_BulkImportFileResult as BulkImportFileResult, type context$1_BulkImportFilesRequest as BulkImportFilesRequest, type context$1_BulkImportFilesResponse as BulkImportFilesResponse, type context$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type context$1_BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequest, type context$1_BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponse, type context$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type context$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type context$1_Color as Color, type context$1_ColorRGB as ColorRGB, type context$1_Colors as Colors, context$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_DownloadUrl as DownloadUrl, type context$1_DraftFilePublished as DraftFilePublished, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_ExternalInfo as ExternalInfo, type context$1_FaceRecognition as FaceRecognition, type context$1_FileDescriptor as FileDescriptor, type context$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type context$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type context$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type context$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type context$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type context$1_FileFailed as FileFailed, type context$1_FileMedia as FileMedia, type context$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type context$1_FileReady as FileReady, type context$1_FocalPoint as FocalPoint, type context$1_FontAsset as FontAsset, type context$1_FontMedia as FontMedia, type context$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type context$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type context$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type context$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type context$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type context$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type context$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type context$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type context$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type context$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type context$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type context$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type context$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type context$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type context$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type context$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type context$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type context$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type context$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type context$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type context$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type context$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type context$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type context$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type context$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type context$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_IdentityInfo as IdentityInfo, context$1_IdentityType as IdentityType, context$1_ImageAnnotationType as ImageAnnotationType, type context$1_ImageMedia as ImageMedia, type context$1_ImportFileOptions as ImportFileOptions, type context$1_ImportFileRequest as ImportFileRequest, type context$1_ImportFileResponse as ImportFileResponse, type context$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type context$1_ItemMetadata as ItemMetadata, type context$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type context$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type context$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type context$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type context$1_ListFilesOptions as ListFilesOptions, type context$1_ListFilesRequest as ListFilesRequest, type context$1_ListFilesResponse as ListFilesResponse, type context$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, context$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type context$1_Model3D as Model3D, Namespace$1 as Namespace, context$1_OperationStatus as OperationStatus, type context$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type context$1_Plan as Plan, type context$1_Plans as Plans, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type context$1_SearchFilesOptions as SearchFilesOptions, type context$1_SearchFilesRequest as SearchFilesRequest, type context$1_SearchFilesResponse as SearchFilesResponse, type context$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, type context$1_ServiceError as ServiceError, type context$1_SiteQuotaExceededError as SiteQuotaExceededError, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, context$1_StreamFormat as StreamFormat, type context$1_TotalQuota as TotalQuota, type UnsupportedRequestValueError$1 as UnsupportedRequestValueError, type context$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type context$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type context$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type context$1_UpdateFileRequest as UpdateFileRequest, type context$1_UpdateFileResponse as UpdateFileResponse, context$1_UploadProtocol as UploadProtocol, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnFileDescriptorDeletedType as _publicOnFileDescriptorDeletedType, type context$1__publicOnFileDescriptorFileFailedType as _publicOnFileDescriptorFileFailedType, type context$1__publicOnFileDescriptorFileReadyType as _publicOnFileDescriptorFileReadyType, type context$1__publicOnFileDescriptorUpdatedType as _publicOnFileDescriptorUpdatedType, context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, onFileDescriptorDeleted$1 as publicOnFileDescriptorDeleted, onFileDescriptorFileFailed$1 as publicOnFileDescriptorFileFailed, onFileDescriptorFileReady$1 as publicOnFileDescriptorFileReady, onFileDescriptorUpdated$1 as publicOnFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
4018
+ export { type ActionEvent$1 as ActionEvent, type context$1_ApplicationError as ApplicationError, type context$1_Archive as Archive, type context$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BulkActionMetadata as BulkActionMetadata, type context$1_BulkAnnotateImageResult as BulkAnnotateImageResult, type context$1_BulkAnnotateImagesRequest as BulkAnnotateImagesRequest, type context$1_BulkAnnotateImagesResponse as BulkAnnotateImagesResponse, type context$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type context$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type context$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type context$1_BulkImportFileOptions as BulkImportFileOptions, type context$1_BulkImportFileRequest as BulkImportFileRequest, type context$1_BulkImportFileResponse as BulkImportFileResponse, type context$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type context$1_BulkImportFileResult as BulkImportFileResult, type context$1_BulkImportFilesRequest as BulkImportFilesRequest, type context$1_BulkImportFilesResponse as BulkImportFilesResponse, type context$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type context$1_BulkPublishDraftFileResult as BulkPublishDraftFileResult, type context$1_BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequest, type context$1_BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponse, type context$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type context$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type context$1_Color as Color, type context$1_ColorRGB as ColorRGB, type context$1_Colors as Colors, context$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_DownloadUrl as DownloadUrl, type context$1_DraftFilePublished as DraftFilePublished, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_ExternalInfo as ExternalInfo, type context$1_FaceRecognition as FaceRecognition, type context$1_FileDescriptor as FileDescriptor, type context$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type context$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type context$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type context$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type context$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type context$1_FileFailed as FileFailed, type context$1_FileMedia as FileMedia, type context$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type context$1_FileReady as FileReady, type context$1_FocalPoint as FocalPoint, type context$1_FontAsset as FontAsset, type context$1_FontMedia as FontMedia, type context$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type context$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type context$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type context$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type context$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type context$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type context$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type context$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type context$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type context$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type context$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type context$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type context$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type context$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type context$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type context$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type context$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type context$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type context$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type context$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type context$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type context$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type context$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type context$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type context$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type context$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_IdentityInfo as IdentityInfo, context$1_IdentityType as IdentityType, type context$1_ImageAnnotationConfigurations as ImageAnnotationConfigurations, context$1_ImageAnnotationType as ImageAnnotationType, type context$1_ImageMedia as ImageMedia, type context$1_ImportFileOptions as ImportFileOptions, type context$1_ImportFileRequest as ImportFileRequest, type context$1_ImportFileResponse as ImportFileResponse, type context$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type context$1_ItemMetadata as ItemMetadata, type context$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type context$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type context$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type context$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type context$1_ListFilesOptions as ListFilesOptions, type context$1_ListFilesRequest as ListFilesRequest, type context$1_ListFilesResponse as ListFilesResponse, type context$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, context$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type context$1_Model3D as Model3D, Namespace$1 as Namespace, context$1_OperationStatus as OperationStatus, type context$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type context$1_Plan as Plan, type context$1_Plans as Plans, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type context$1_SearchFilesOptions as SearchFilesOptions, type context$1_SearchFilesRequest as SearchFilesRequest, type context$1_SearchFilesResponse as SearchFilesResponse, type context$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, type context$1_ServiceError as ServiceError, type context$1_SiteQuotaExceededError as SiteQuotaExceededError, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, context$1_StreamFormat as StreamFormat, type context$1_TotalQuota as TotalQuota, type UnsupportedRequestValueError$1 as UnsupportedRequestValueError, type context$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type context$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type context$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type context$1_UpdateFileRequest as UpdateFileRequest, type context$1_UpdateFileResponse as UpdateFileResponse, context$1_UploadProtocol as UploadProtocol, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnFileDescriptorDeletedType as _publicOnFileDescriptorDeletedType, type context$1__publicOnFileDescriptorFileFailedType as _publicOnFileDescriptorFileFailedType, type context$1__publicOnFileDescriptorFileReadyType as _publicOnFileDescriptorFileReadyType, type context$1__publicOnFileDescriptorUpdatedType as _publicOnFileDescriptorUpdatedType, context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, onFileDescriptorDeleted$1 as publicOnFileDescriptorDeleted, onFileDescriptorFileFailed$1 as publicOnFileDescriptorFileFailed, onFileDescriptorFileReady$1 as publicOnFileDescriptorFileReady, onFileDescriptorUpdated$1 as publicOnFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
3967
4019
  }
3968
4020
 
3969
4021
  interface Folder {
@@ -4044,10 +4096,10 @@ interface ListFoldersRequest {
4044
4096
  */
4045
4097
  parentFolderId?: string | null;
4046
4098
  /**
4047
- * Field name and order to sort by. One of:
4048
- * - `displayName`
4049
- * - `_updatedDate`
4050
- * Default: `_updatedDate` in `"DESC"` order.
4099
+ * Field name and order to sort by. One of: <br />
4100
+ * * `displayName`
4101
+ * * `updatedDate`
4102
+ * Default: `updatedDate` in `desc` order.
4051
4103
  */
4052
4104
  sort?: Sorting;
4053
4105
  /** Cursor and paging information. */
@@ -4092,16 +4144,15 @@ interface Cursors {
4092
4144
  }
4093
4145
  interface SearchFoldersRequest {
4094
4146
  /**
4095
- * A root folder in the media manager to search in. <br />
4147
+ * A root folder in the Media Manager to search in. <br />
4096
4148
  * Default: `MEDIA_ROOT`.
4097
4149
  */
4098
4150
  rootFolder?: RootFolder;
4099
4151
  /**
4100
4152
  * Field name and order to sort by. One of:
4101
- * - `displayName`
4102
- * - `_updatedDate`
4103
- *
4104
- * Default: `_updatedDate` in `"DESC"` order.
4153
+ * * `displayName`
4154
+ * * `updatedDate`
4155
+ * Default: `updatedDate` in `desc` order.
4105
4156
  */
4106
4157
  sort?: Sorting;
4107
4158
  /** Cursor and paging information. */
@@ -4127,7 +4178,7 @@ interface SearchFoldersResponse {
4127
4178
  nextCursor?: PagingMetadataV2;
4128
4179
  }
4129
4180
  interface UpdateFolderRequest {
4130
- /** The folder to update. */
4181
+ /** Folder to update. */
4131
4182
  folder: Folder;
4132
4183
  }
4133
4184
  interface UpdateFolderResponse {
@@ -4170,10 +4221,9 @@ interface ListDeletedFoldersRequest {
4170
4221
  parentFolderId?: string | null;
4171
4222
  /**
4172
4223
  * Field name and order to sort by. One of:
4173
- * - `displayName`
4174
- * - `_updatedDate`
4175
- *
4176
- * Default: `_updatedDate` in `"DESC"` order.
4224
+ * * `displayName`
4225
+ * * `updatedDate`
4226
+ * Default: `updatedDate` in `desc` order.
4177
4227
  */
4178
4228
  sort?: Sorting;
4179
4229
  /** Cursor and paging information. */
@@ -4391,11 +4441,10 @@ interface ListFoldersOptions {
4391
4441
  */
4392
4442
  parentFolderId?: string | null;
4393
4443
  /**
4394
- * Field name and order to sort by. One of:
4395
- * - `displayName`
4396
- * - `_updatedDate`
4397
- *
4398
- * Default: `_updatedDate` in `"DESC"` order.
4444
+ * Field name and order to sort by. One of: <br />
4445
+ * * `displayName`
4446
+ * * `updatedDate`
4447
+ * Default: `updatedDate` in `desc` order.
4399
4448
  */
4400
4449
  sort?: Sorting;
4401
4450
  /** Cursor and paging information. */
@@ -4403,24 +4452,22 @@ interface ListFoldersOptions {
4403
4452
  }
4404
4453
  interface SearchFoldersOptions {
4405
4454
  /**
4406
- * A root folder in the media manager to search in. <br />
4455
+ * A root folder in the Media Manager to search in. <br />
4407
4456
  * Default: `MEDIA_ROOT`.
4408
4457
  */
4409
4458
  rootFolder?: RootFolder;
4410
4459
  /**
4411
4460
  * Field name and order to sort by. One of:
4412
- * - `displayName`
4413
- * - `_updatedDate`
4414
- *
4415
- * Default: `_updatedDate` in `"DESC"` order.
4461
+ * * `displayName`
4462
+ * * `updatedDate`
4463
+ * Default: `updatedDate` in `desc` order.
4416
4464
  */
4417
4465
  sort?: Sorting;
4418
4466
  /** Cursor and paging information. */
4419
4467
  paging?: CursorPaging;
4420
4468
  /**
4421
- * Term to search for, such as the value of a folder's `displayName`.
4422
- *
4423
- * For example, if a folder's `displayName` is 'my-videos-folder', the search term is `'my-videos-folder'`.
4469
+ * Term to search for, such as the value of a folder's `displayName`. <br />
4470
+ * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
4424
4471
  */
4425
4472
  search?: string | null;
4426
4473
  }
@@ -4459,10 +4506,9 @@ interface ListDeletedFoldersOptions {
4459
4506
  parentFolderId?: string | null;
4460
4507
  /**
4461
4508
  * Field name and order to sort by. One of:
4462
- * - `displayName`
4463
- * - `_updatedDate`
4464
- *
4465
- * Default: `_updatedDate` in `"DESC"` order.
4509
+ * * `displayName`
4510
+ * * `updatedDate`
4511
+ * Default: `updatedDate` in `desc` order.
4466
4512
  */
4467
4513
  sort?: Sorting;
4468
4514
  /** Cursor and paging information. */
@@ -4472,9 +4518,7 @@ interface ListDeletedFoldersOptions {
4472
4518
  declare function createFolder$1(httpClient: HttpClient): CreateFolderSignature;
4473
4519
  interface CreateFolderSignature {
4474
4520
  /**
4475
- * Creates a new folder in the Media Manager.
4476
- *
4477
- * The `createFolder()` function returns a Promise that resolves to the created folder.
4521
+ * Creates a new folder in the Media Manager. <br/>
4478
4522
  *
4479
4523
  * Use the `parentFolderId` parameter to specify in which existing folder you want the new folder to be created.
4480
4524
  * If no folder is specified, the new folder is created in the `media-root` folder.
@@ -4486,9 +4530,7 @@ interface CreateFolderSignature {
4486
4530
  declare function getFolder$1(httpClient: HttpClient): GetFolderSignature;
4487
4531
  interface GetFolderSignature {
4488
4532
  /**
4489
- * Gets information from the specified folder in the Media Manager.
4490
- *
4491
- * The `getFolder()` function returns a Promise that resolves to information about the specified folder.
4533
+ * Gets information from a specific folder in the Media Manager.
4492
4534
  * @param - Folder ID.
4493
4535
  * @returns Information about the folder.
4494
4536
  */
@@ -4497,13 +4539,7 @@ interface GetFolderSignature {
4497
4539
  declare function listFolders$1(httpClient: HttpClient): ListFoldersSignature;
4498
4540
  interface ListFoldersSignature {
4499
4541
  /**
4500
- * Retrieves a list of folders in the Media Manager.
4501
- *
4502
- * The `listFolders()` function returns a Promise that resolves to information about the specified folders and cursor information.
4503
- *
4504
- * To retrieve a list of folders within a specific folder in the Media Manager, pass the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of folders within the root folder of the Media Manager.
4505
- *
4506
- * To retrieve a list of (non-permanently) deleted folders, use the `listDeletedFolders()` function.
4542
+ * Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager.
4507
4543
  * @param - Options to use when listing folders from the Media Manager.
4508
4544
  */
4509
4545
  (options?: ListFoldersOptions | undefined): Promise<ListFoldersResponse & ListFoldersResponseNonNullableFields>;
@@ -4511,11 +4547,9 @@ interface ListFoldersSignature {
4511
4547
  declare function searchFolders$1(httpClient: HttpClient): SearchFoldersSignature;
4512
4548
  interface SearchFoldersSignature {
4513
4549
  /**
4514
- * Searches the Media Manager and returns a list of folders that match the terms specified in the parameters.
4550
+ * Searches the Media Manager and returns a list of folders that match the terms specified in the parameters. <br/>
4515
4551
  *
4516
- * The `searchFolders()` function returns a Promise that resolves to information about the specified folders and cursor information.
4517
- *
4518
- * If no parameters are specified, the function returns all folders in the `MEDIA_ROOT` folder.
4552
+ * If no parameters are specified, the method returns all folders in the `MEDIA_ROOT` folder.
4519
4553
  * @param - Options specifying which folders to search.
4520
4554
  */
4521
4555
  (options?: SearchFoldersOptions | undefined): Promise<SearchFoldersResponse & SearchFoldersResponseNonNullableFields>;
@@ -4523,9 +4557,7 @@ interface SearchFoldersSignature {
4523
4557
  declare function updateFolder$1(httpClient: HttpClient): UpdateFolderSignature;
4524
4558
  interface UpdateFolderSignature {
4525
4559
  /**
4526
- * Updates a folder.
4527
- *
4528
- * The `updateFolder()` function returns a Promise that resolves to information about the updated folder.
4560
+ * Updates a folder. <br />
4529
4561
  *
4530
4562
  * You can use the `parentFolderId` parameter to move a folder from its current parent folder to a different parent folder.
4531
4563
  * @param - Folder ID. Generated when a folder is created in the Media Manager.
@@ -4537,9 +4569,7 @@ interface UpdateFolderSignature {
4537
4569
  declare function generateFolderDownloadUrl$1(httpClient: HttpClient): GenerateFolderDownloadUrlSignature;
4538
4570
  interface GenerateFolderDownloadUrlSignature {
4539
4571
  /**
4540
- * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager.
4541
- *
4542
- * The `generateFolderDownloadUrl()` function returns a Promise that resolves to a download URL.
4572
+ * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager. <br/>
4543
4573
  *
4544
4574
  * The compressed file can contain sub-folders, and up to 1000 files.
4545
4575
  * @param - Folder ID.
@@ -4549,19 +4579,17 @@ interface GenerateFolderDownloadUrlSignature {
4549
4579
  declare function bulkDeleteFolders$1(httpClient: HttpClient): BulkDeleteFoldersSignature;
4550
4580
  interface BulkDeleteFoldersSignature {
4551
4581
  /**
4552
- * Temporarily deletes the specified folders from the Media Manager.
4553
- *
4554
- * The `bulkDeleteFolders()` function returns a Promise that resolves when the folders are deleted.
4582
+ * Temporarily deletes the specified folders from the Media Manager. <br/>
4555
4583
  *
4556
- * The deleted folders are moved to the Media Manager's `TRASH_ROOT` folder (trash bin) unless permanently deleted. To permanently delete folders, pass the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
4584
+ * The deleted folders are moved to the Media Manager's `trash-root` folder (trash bin) unless permanently deleted. To permanently delete folders, specify the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
4557
4585
  *
4558
- * >**Notes:**
4559
- * > - When a folder is deleted, the files in that folder are deleted.
4560
- * > - The specified folders can be from different parent folders.
4561
- * > - Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
4562
- * > - Attempting to delete folders that are already in the trash bin doesn't result in an error.
4563
- * > - If your site contains files from a non-permanently deleted media folder, the files still appear on your site as the deleted folder is still in the Media Manager (in the trash bin).
4564
- * > - You can use the `bulkRestoreFoldersFromTrashBin()` function to restore folders from the Media Manager's trash bin.
4586
+ * Note the following:
4587
+ * * When a folder is deleted, the files in that folder are deleted.
4588
+ * * The specified folders can be from different parent folders.
4589
+ * * Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
4590
+ * * Attempting to delete folders that are already in the trash bin doesn't result in an error.
4591
+ * * If a site contains files from a deleted media folder, the files still appear on the site as the deleted folder is still in the Media Manager (in the trash bin).
4592
+ * * You can also use the Bulk Restore Folders From Trash Bin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/folders/bulk-restore-folders-from-trash-bin) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/folders/bulk-restore-folders-from-trash-bin)) method to restore folders from the Media Manager's trash bin.
4565
4593
  * @param - IDs of the folders to move to the Media Manager's trash bin.
4566
4594
  * @param - Options to use when deleting folders.
4567
4595
  */
@@ -4571,9 +4599,6 @@ declare function bulkRestoreFoldersFromTrashBin$1(httpClient: HttpClient): BulkR
4571
4599
  interface BulkRestoreFoldersFromTrashBinSignature {
4572
4600
  /**
4573
4601
  * Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
4574
- *
4575
- *
4576
- * The `bulkRestoreFoldersFromTrashBin()` function returns a Promise that resolves when the folders have been restored.
4577
4602
  * @param - IDs of the folders to restore from the Media Manager's trash bin.
4578
4603
  */
4579
4604
  (folderIds: string[]): Promise<void>;
@@ -4581,11 +4606,7 @@ interface BulkRestoreFoldersFromTrashBinSignature {
4581
4606
  declare function listDeletedFolders$1(httpClient: HttpClient): ListDeletedFoldersSignature;
4582
4607
  interface ListDeletedFoldersSignature {
4583
4608
  /**
4584
- * Retrieves a list of deleted folders from the trash bin.
4585
- *
4586
- * The `listDeletedFolders()` function returns a Promise that resolves to information about the specified deleted folders and cursor information.
4587
- *
4588
- * To retrieve a list of non-deleted folders, use the `listFolders()` function.
4609
+ * Retrieves a list of folders in the Media Manager's trash bin.
4589
4610
  * @param - Options to use when listing deleted folders from the trash bin.
4590
4611
  */
4591
4612
  (options?: ListDeletedFoldersOptions | undefined): Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
@@ -4607,15 +4628,25 @@ declare const bulkRestoreFoldersFromTrashBin: MaybeContext<BuildRESTFunction<typ
4607
4628
  declare const listDeletedFolders: MaybeContext<BuildRESTFunction<typeof listDeletedFolders$1> & typeof listDeletedFolders$1>;
4608
4629
 
4609
4630
  type _publicOnFolderCreatedType = typeof onFolderCreated$1;
4610
- /** */
4631
+ /**
4632
+ * Triggered when a folder is created.
4633
+ *
4634
+ * This event is also triggered when a folder is restored from the Media Manager's trash bin.
4635
+ */
4611
4636
  declare const onFolderCreated: ReturnType<typeof createEventModule<_publicOnFolderCreatedType>>;
4612
4637
 
4613
4638
  type _publicOnFolderDeletedType = typeof onFolderDeleted$1;
4614
- /** */
4639
+ /**
4640
+ * Triggered when a folder is deleted.
4641
+ *
4642
+ * If the `movedToTrash` property in the event object is `true`, the folder was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the folder was permanently deleted.
4643
+ */
4615
4644
  declare const onFolderDeleted: ReturnType<typeof createEventModule<_publicOnFolderDeletedType>>;
4616
4645
 
4617
4646
  type _publicOnFolderUpdatedType = typeof onFolderUpdated$1;
4618
- /** */
4647
+ /**
4648
+ * Triggered when a folder is updated, including when a folder is moved to a different parent folder.
4649
+ */
4619
4650
  declare const onFolderUpdated: ReturnType<typeof createEventModule<_publicOnFolderUpdatedType>>;
4620
4651
 
4621
4652
  type context_ActionEvent = ActionEvent;
@@ -2441,9 +2441,11 @@ interface BulkAnnotateImagesRequest {
2441
2441
  annotationTypes?: ImageAnnotationType[];
2442
2442
  /** When true the endpoint will detect listed information even if the image has this information */
2443
2443
  overwrite?: boolean | null;
2444
+ /** Should the response return the item following the operation */
2445
+ returnEntity?: boolean;
2444
2446
  }
2445
2447
  declare enum ImageAnnotationType {
2446
- UNKNOWN_ANNOTATION_TYPE = "UNKNOWN_ANNOTATION_TYPE",
2448
+ UNKNOWN_IMAGE_ANNOTATION_TYPE = "UNKNOWN_IMAGE_ANNOTATION_TYPE",
2447
2449
  CONTAINS_TEXT = "CONTAINS_TEXT",
2448
2450
  IS_ANIMATED = "IS_ANIMATED",
2449
2451
  FACES = "FACES",
@@ -2452,8 +2454,37 @@ declare enum ImageAnnotationType {
2452
2454
  CAPTION = "CAPTION"
2453
2455
  }
2454
2456
  interface BulkAnnotateImagesResponse {
2455
- /** The updated file info */
2456
- files?: FileDescriptor[];
2457
+ /** Results of individual items */
2458
+ results?: BulkAnnotateImageResult[];
2459
+ /** Metadata of the operation */
2460
+ bulkActionMetadata?: BulkActionMetadata;
2461
+ }
2462
+ interface BulkAnnotateImageResult {
2463
+ /** Item metadata */
2464
+ itemMetadata?: ItemMetadata;
2465
+ /**
2466
+ * The item following the operation
2467
+ * Only returned if operation was successful and if returnEntity flag was on
2468
+ */
2469
+ item?: FileDescriptor;
2470
+ }
2471
+ interface ItemMetadata {
2472
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2473
+ _id?: string | null;
2474
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2475
+ originalIndex?: number;
2476
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2477
+ success?: boolean;
2478
+ /** Details about the error in case of failure. */
2479
+ error?: ApplicationError;
2480
+ }
2481
+ interface BulkActionMetadata {
2482
+ /** Number of items that were successfully processed. */
2483
+ totalSuccesses?: number;
2484
+ /** Number of items that couldn't be processed. */
2485
+ totalFailures?: number;
2486
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2487
+ undetailedFailures?: number;
2457
2488
  }
2458
2489
  interface GenerateFilesDownloadUrlRequest {
2459
2490
  /**
@@ -2613,6 +2644,16 @@ interface GenerateFileUploadUrlRequest {
2613
2644
  */
2614
2645
  filePath?: string | null;
2615
2646
  }
2647
+ interface ImageAnnotationConfigurations {
2648
+ /** Whether to skip detection for the image */
2649
+ skipDetection?: boolean | null;
2650
+ /**
2651
+ * A list of detections types to fill for the image
2652
+ * If specified at least one valid annotation type should be provided
2653
+ * Default will be all detections
2654
+ */
2655
+ annotationTypes?: ImageAnnotationType[];
2656
+ }
2616
2657
  interface GenerateFileUploadUrlResponse {
2617
2658
  /** The URL for uploading a file to the Media Manager. */
2618
2659
  uploadUrl?: string;
@@ -2768,24 +2809,6 @@ interface BulkImportFileResult {
2768
2809
  /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
2769
2810
  item?: FileDescriptor;
2770
2811
  }
2771
- interface ItemMetadata {
2772
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2773
- _id?: string | null;
2774
- /** Index of the item within the request array. Allows for correlation between request and response items. */
2775
- originalIndex?: number;
2776
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2777
- success?: boolean;
2778
- /** Details about the error in case of failure. */
2779
- error?: ApplicationError;
2780
- }
2781
- interface BulkActionMetadata {
2782
- /** Number of items that were successfully processed. */
2783
- totalSuccesses?: number;
2784
- /** Number of items that couldn't be processed. */
2785
- totalFailures?: number;
2786
- /** Number of failures without details because detailed failure threshold was exceeded. */
2787
- undetailedFailures?: number;
2788
- }
2789
2812
  interface ListFilesRequest {
2790
2813
  /**
2791
2814
  * ID of the file's parent folder. <br />
@@ -2967,7 +2990,7 @@ interface ListDeletedFilesResponse {
2967
2990
  }
2968
2991
  interface BulkPublishDraftFilesRequest {
2969
2992
  /**
2970
- * IDs of the files to move to the Media Manager's trash bin.
2993
+ * IDs of the draft files to be published.
2971
2994
  *
2972
2995
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2973
2996
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
@@ -2991,9 +3014,23 @@ interface BulkPublishDraftFilesRequest {
2991
3014
  * The folders in the path will be created if they don't already exist. <br />
2992
3015
  */
2993
3016
  filePath?: string | null;
3017
+ /** Should the response return the item following the operation */
3018
+ returnEntity?: boolean;
2994
3019
  }
2995
3020
  interface BulkPublishDraftFilesResponse {
2996
- files?: FileDescriptor[];
3021
+ /** Results of individual items */
3022
+ results?: BulkPublishDraftFileResult[];
3023
+ /** Metadata of the operation */
3024
+ bulkActionMetadata?: BulkActionMetadata;
3025
+ }
3026
+ interface BulkPublishDraftFileResult {
3027
+ /** Item metadata */
3028
+ itemMetadata?: ItemMetadata;
3029
+ /**
3030
+ * The item following the operation
3031
+ * Only returned if operation was successful and if returnEntity flag was on
3032
+ */
3033
+ item?: FileDescriptor;
2997
3034
  }
2998
3035
  interface UpdateFileRequest {
2999
3036
  /**
@@ -3809,25 +3846,38 @@ declare const bulkRestoreFilesFromTrashBin: MaybeContext<BuildRESTFunction<typeo
3809
3846
  declare const listDeletedFiles: MaybeContext<BuildRESTFunction<typeof listDeletedFiles$1> & typeof listDeletedFiles$1>;
3810
3847
 
3811
3848
  type _publicOnFileDescriptorDeletedType = typeof onFileDescriptorDeleted$1;
3812
- /** */
3849
+ /**
3850
+ * Triggered when a file is deleted.
3851
+ *
3852
+ * 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.
3853
+ */
3813
3854
  declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorDeletedType>>;
3814
3855
 
3815
3856
  type _publicOnFileDescriptorFileFailedType = typeof onFileDescriptorFileFailed$1;
3816
- /** */
3857
+ /**
3858
+ * Triggered when a file fails during essential post-upload processing.
3859
+ */
3817
3860
  declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorFileFailedType>>;
3818
3861
 
3819
3862
  type _publicOnFileDescriptorFileReadyType = typeof onFileDescriptorFileReady$1;
3820
- /** */
3863
+ /**
3864
+ * Triggered when a file is ready to be used, after any post-upload processing.
3865
+ *
3866
+ * This event is also triggred when a file is restored from the Media Manager's trash bin.
3867
+ */
3821
3868
  declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorFileReadyType>>;
3822
3869
 
3823
3870
  type _publicOnFileDescriptorUpdatedType = typeof onFileDescriptorUpdated$1;
3824
- /** */
3871
+ /**
3872
+ * Triggered when a file is updated, including when a file is moved to a different folder.
3873
+ */
3825
3874
  declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule$1<_publicOnFileDescriptorUpdatedType>>;
3826
3875
 
3827
3876
  type index_d$1_ApplicationError = ApplicationError;
3828
3877
  type index_d$1_Archive = Archive;
3829
3878
  type index_d$1_AudioV2 = AudioV2;
3830
3879
  type index_d$1_BulkActionMetadata = BulkActionMetadata;
3880
+ type index_d$1_BulkAnnotateImageResult = BulkAnnotateImageResult;
3831
3881
  type index_d$1_BulkAnnotateImagesRequest = BulkAnnotateImagesRequest;
3832
3882
  type index_d$1_BulkAnnotateImagesResponse = BulkAnnotateImagesResponse;
3833
3883
  type index_d$1_BulkDeleteFilesOptions = BulkDeleteFilesOptions;
@@ -3841,6 +3891,7 @@ type index_d$1_BulkImportFileResult = BulkImportFileResult;
3841
3891
  type index_d$1_BulkImportFilesRequest = BulkImportFilesRequest;
3842
3892
  type index_d$1_BulkImportFilesResponse = BulkImportFilesResponse;
3843
3893
  type index_d$1_BulkImportFilesResponseNonNullableFields = BulkImportFilesResponseNonNullableFields;
3894
+ type index_d$1_BulkPublishDraftFileResult = BulkPublishDraftFileResult;
3844
3895
  type index_d$1_BulkPublishDraftFilesRequest = BulkPublishDraftFilesRequest;
3845
3896
  type index_d$1_BulkPublishDraftFilesResponse = BulkPublishDraftFilesResponse;
3846
3897
  type index_d$1_BulkRestoreFilesFromTrashBinRequest = BulkRestoreFilesFromTrashBinRequest;
@@ -3897,6 +3948,7 @@ type index_d$1_GetFileDescriptorsResponseNonNullableFields = GetFileDescriptorsR
3897
3948
  type index_d$1_IdentityInfo = IdentityInfo;
3898
3949
  type index_d$1_IdentityType = IdentityType;
3899
3950
  declare const index_d$1_IdentityType: typeof IdentityType;
3951
+ type index_d$1_ImageAnnotationConfigurations = ImageAnnotationConfigurations;
3900
3952
  type index_d$1_ImageAnnotationType = ImageAnnotationType;
3901
3953
  declare const index_d$1_ImageAnnotationType: typeof ImageAnnotationType;
3902
3954
  type index_d$1_ImageMedia = ImageMedia;
@@ -3963,7 +4015,7 @@ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
3963
4015
  declare const index_d$1_searchFiles: typeof searchFiles;
3964
4016
  declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
3965
4017
  declare namespace index_d$1 {
3966
- export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkAnnotateImagesRequest as BulkAnnotateImagesRequest, type index_d$1_BulkAnnotateImagesResponse as BulkAnnotateImagesResponse, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequest, type index_d$1_BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponse, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type index_d$1_DraftFilePublished as DraftFilePublished, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_FocalPoint as FocalPoint, type index_d$1_FontAsset as FontAsset, type index_d$1_FontMedia as FontMedia, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, index_d$1_ImageAnnotationType as ImageAnnotationType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_Plan as Plan, type index_d$1_Plans as Plans, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, type index_d$1_ServiceError as ServiceError, type index_d$1_SiteQuotaExceededError as SiteQuotaExceededError, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_TotalQuota as TotalQuota, type UnsupportedRequestValueError$1 as UnsupportedRequestValueError, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnFileDescriptorDeletedType as _publicOnFileDescriptorDeletedType, type index_d$1__publicOnFileDescriptorFileFailedType as _publicOnFileDescriptorFileFailedType, type index_d$1__publicOnFileDescriptorFileReadyType as _publicOnFileDescriptorFileReadyType, type index_d$1__publicOnFileDescriptorUpdatedType as _publicOnFileDescriptorUpdatedType, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, onFileDescriptorDeleted$1 as publicOnFileDescriptorDeleted, onFileDescriptorFileFailed$1 as publicOnFileDescriptorFileFailed, onFileDescriptorFileReady$1 as publicOnFileDescriptorFileReady, onFileDescriptorUpdated$1 as publicOnFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
4018
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkAnnotateImageResult as BulkAnnotateImageResult, type index_d$1_BulkAnnotateImagesRequest as BulkAnnotateImagesRequest, type index_d$1_BulkAnnotateImagesResponse as BulkAnnotateImagesResponse, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkPublishDraftFileResult as BulkPublishDraftFileResult, type index_d$1_BulkPublishDraftFilesRequest as BulkPublishDraftFilesRequest, type index_d$1_BulkPublishDraftFilesResponse as BulkPublishDraftFilesResponse, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type index_d$1_DraftFilePublished as DraftFilePublished, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_FocalPoint as FocalPoint, type index_d$1_FontAsset as FontAsset, type index_d$1_FontMedia as FontMedia, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageAnnotationConfigurations as ImageAnnotationConfigurations, index_d$1_ImageAnnotationType as ImageAnnotationType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_Plan as Plan, type index_d$1_Plans as Plans, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, type index_d$1_ServiceError as ServiceError, type index_d$1_SiteQuotaExceededError as SiteQuotaExceededError, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_TotalQuota as TotalQuota, type UnsupportedRequestValueError$1 as UnsupportedRequestValueError, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnFileDescriptorDeletedType as _publicOnFileDescriptorDeletedType, type index_d$1__publicOnFileDescriptorFileFailedType as _publicOnFileDescriptorFileFailedType, type index_d$1__publicOnFileDescriptorFileReadyType as _publicOnFileDescriptorFileReadyType, type index_d$1__publicOnFileDescriptorUpdatedType as _publicOnFileDescriptorUpdatedType, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, onFileDescriptorDeleted$1 as publicOnFileDescriptorDeleted, onFileDescriptorFileFailed$1 as publicOnFileDescriptorFileFailed, onFileDescriptorFileReady$1 as publicOnFileDescriptorFileReady, onFileDescriptorUpdated$1 as publicOnFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
3967
4019
  }
3968
4020
 
3969
4021
  interface Folder {
@@ -4044,10 +4096,10 @@ interface ListFoldersRequest {
4044
4096
  */
4045
4097
  parentFolderId?: string | null;
4046
4098
  /**
4047
- * Field name and order to sort by. One of:
4048
- * - `displayName`
4049
- * - `_updatedDate`
4050
- * Default: `_updatedDate` in `"DESC"` order.
4099
+ * Field name and order to sort by. One of: <br />
4100
+ * * `displayName`
4101
+ * * `updatedDate`
4102
+ * Default: `updatedDate` in `desc` order.
4051
4103
  */
4052
4104
  sort?: Sorting;
4053
4105
  /** Cursor and paging information. */
@@ -4092,16 +4144,15 @@ interface Cursors {
4092
4144
  }
4093
4145
  interface SearchFoldersRequest {
4094
4146
  /**
4095
- * A root folder in the media manager to search in. <br />
4147
+ * A root folder in the Media Manager to search in. <br />
4096
4148
  * Default: `MEDIA_ROOT`.
4097
4149
  */
4098
4150
  rootFolder?: RootFolder;
4099
4151
  /**
4100
4152
  * Field name and order to sort by. One of:
4101
- * - `displayName`
4102
- * - `_updatedDate`
4103
- *
4104
- * Default: `_updatedDate` in `"DESC"` order.
4153
+ * * `displayName`
4154
+ * * `updatedDate`
4155
+ * Default: `updatedDate` in `desc` order.
4105
4156
  */
4106
4157
  sort?: Sorting;
4107
4158
  /** Cursor and paging information. */
@@ -4127,7 +4178,7 @@ interface SearchFoldersResponse {
4127
4178
  nextCursor?: PagingMetadataV2;
4128
4179
  }
4129
4180
  interface UpdateFolderRequest {
4130
- /** The folder to update. */
4181
+ /** Folder to update. */
4131
4182
  folder: Folder;
4132
4183
  }
4133
4184
  interface UpdateFolderResponse {
@@ -4170,10 +4221,9 @@ interface ListDeletedFoldersRequest {
4170
4221
  parentFolderId?: string | null;
4171
4222
  /**
4172
4223
  * Field name and order to sort by. One of:
4173
- * - `displayName`
4174
- * - `_updatedDate`
4175
- *
4176
- * Default: `_updatedDate` in `"DESC"` order.
4224
+ * * `displayName`
4225
+ * * `updatedDate`
4226
+ * Default: `updatedDate` in `desc` order.
4177
4227
  */
4178
4228
  sort?: Sorting;
4179
4229
  /** Cursor and paging information. */
@@ -4391,11 +4441,10 @@ interface ListFoldersOptions {
4391
4441
  */
4392
4442
  parentFolderId?: string | null;
4393
4443
  /**
4394
- * Field name and order to sort by. One of:
4395
- * - `displayName`
4396
- * - `_updatedDate`
4397
- *
4398
- * Default: `_updatedDate` in `"DESC"` order.
4444
+ * Field name and order to sort by. One of: <br />
4445
+ * * `displayName`
4446
+ * * `updatedDate`
4447
+ * Default: `updatedDate` in `desc` order.
4399
4448
  */
4400
4449
  sort?: Sorting;
4401
4450
  /** Cursor and paging information. */
@@ -4403,24 +4452,22 @@ interface ListFoldersOptions {
4403
4452
  }
4404
4453
  interface SearchFoldersOptions {
4405
4454
  /**
4406
- * A root folder in the media manager to search in. <br />
4455
+ * A root folder in the Media Manager to search in. <br />
4407
4456
  * Default: `MEDIA_ROOT`.
4408
4457
  */
4409
4458
  rootFolder?: RootFolder;
4410
4459
  /**
4411
4460
  * Field name and order to sort by. One of:
4412
- * - `displayName`
4413
- * - `_updatedDate`
4414
- *
4415
- * Default: `_updatedDate` in `"DESC"` order.
4461
+ * * `displayName`
4462
+ * * `updatedDate`
4463
+ * Default: `updatedDate` in `desc` order.
4416
4464
  */
4417
4465
  sort?: Sorting;
4418
4466
  /** Cursor and paging information. */
4419
4467
  paging?: CursorPaging;
4420
4468
  /**
4421
- * Term to search for, such as the value of a folder's `displayName`.
4422
- *
4423
- * For example, if a folder's `displayName` is 'my-videos-folder', the search term is `'my-videos-folder'`.
4469
+ * Term to search for, such as the value of a folder's `displayName`. <br />
4470
+ * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
4424
4471
  */
4425
4472
  search?: string | null;
4426
4473
  }
@@ -4459,10 +4506,9 @@ interface ListDeletedFoldersOptions {
4459
4506
  parentFolderId?: string | null;
4460
4507
  /**
4461
4508
  * Field name and order to sort by. One of:
4462
- * - `displayName`
4463
- * - `_updatedDate`
4464
- *
4465
- * Default: `_updatedDate` in `"DESC"` order.
4509
+ * * `displayName`
4510
+ * * `updatedDate`
4511
+ * Default: `updatedDate` in `desc` order.
4466
4512
  */
4467
4513
  sort?: Sorting;
4468
4514
  /** Cursor and paging information. */
@@ -4472,9 +4518,7 @@ interface ListDeletedFoldersOptions {
4472
4518
  declare function createFolder$1(httpClient: HttpClient): CreateFolderSignature;
4473
4519
  interface CreateFolderSignature {
4474
4520
  /**
4475
- * Creates a new folder in the Media Manager.
4476
- *
4477
- * The `createFolder()` function returns a Promise that resolves to the created folder.
4521
+ * Creates a new folder in the Media Manager. <br/>
4478
4522
  *
4479
4523
  * Use the `parentFolderId` parameter to specify in which existing folder you want the new folder to be created.
4480
4524
  * If no folder is specified, the new folder is created in the `media-root` folder.
@@ -4486,9 +4530,7 @@ interface CreateFolderSignature {
4486
4530
  declare function getFolder$1(httpClient: HttpClient): GetFolderSignature;
4487
4531
  interface GetFolderSignature {
4488
4532
  /**
4489
- * Gets information from the specified folder in the Media Manager.
4490
- *
4491
- * The `getFolder()` function returns a Promise that resolves to information about the specified folder.
4533
+ * Gets information from a specific folder in the Media Manager.
4492
4534
  * @param - Folder ID.
4493
4535
  * @returns Information about the folder.
4494
4536
  */
@@ -4497,13 +4539,7 @@ interface GetFolderSignature {
4497
4539
  declare function listFolders$1(httpClient: HttpClient): ListFoldersSignature;
4498
4540
  interface ListFoldersSignature {
4499
4541
  /**
4500
- * Retrieves a list of folders in the Media Manager.
4501
- *
4502
- * The `listFolders()` function returns a Promise that resolves to information about the specified folders and cursor information.
4503
- *
4504
- * To retrieve a list of folders within a specific folder in the Media Manager, pass the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of folders within the root folder of the Media Manager.
4505
- *
4506
- * To retrieve a list of (non-permanently) deleted folders, use the `listDeletedFolders()` function.
4542
+ * Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager.
4507
4543
  * @param - Options to use when listing folders from the Media Manager.
4508
4544
  */
4509
4545
  (options?: ListFoldersOptions | undefined): Promise<ListFoldersResponse & ListFoldersResponseNonNullableFields>;
@@ -4511,11 +4547,9 @@ interface ListFoldersSignature {
4511
4547
  declare function searchFolders$1(httpClient: HttpClient): SearchFoldersSignature;
4512
4548
  interface SearchFoldersSignature {
4513
4549
  /**
4514
- * Searches the Media Manager and returns a list of folders that match the terms specified in the parameters.
4550
+ * Searches the Media Manager and returns a list of folders that match the terms specified in the parameters. <br/>
4515
4551
  *
4516
- * The `searchFolders()` function returns a Promise that resolves to information about the specified folders and cursor information.
4517
- *
4518
- * If no parameters are specified, the function returns all folders in the `MEDIA_ROOT` folder.
4552
+ * If no parameters are specified, the method returns all folders in the `MEDIA_ROOT` folder.
4519
4553
  * @param - Options specifying which folders to search.
4520
4554
  */
4521
4555
  (options?: SearchFoldersOptions | undefined): Promise<SearchFoldersResponse & SearchFoldersResponseNonNullableFields>;
@@ -4523,9 +4557,7 @@ interface SearchFoldersSignature {
4523
4557
  declare function updateFolder$1(httpClient: HttpClient): UpdateFolderSignature;
4524
4558
  interface UpdateFolderSignature {
4525
4559
  /**
4526
- * Updates a folder.
4527
- *
4528
- * The `updateFolder()` function returns a Promise that resolves to information about the updated folder.
4560
+ * Updates a folder. <br />
4529
4561
  *
4530
4562
  * You can use the `parentFolderId` parameter to move a folder from its current parent folder to a different parent folder.
4531
4563
  * @param - Folder ID. Generated when a folder is created in the Media Manager.
@@ -4537,9 +4569,7 @@ interface UpdateFolderSignature {
4537
4569
  declare function generateFolderDownloadUrl$1(httpClient: HttpClient): GenerateFolderDownloadUrlSignature;
4538
4570
  interface GenerateFolderDownloadUrlSignature {
4539
4571
  /**
4540
- * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager.
4541
- *
4542
- * The `generateFolderDownloadUrl()` function returns a Promise that resolves to a download URL.
4572
+ * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager. <br/>
4543
4573
  *
4544
4574
  * The compressed file can contain sub-folders, and up to 1000 files.
4545
4575
  * @param - Folder ID.
@@ -4549,19 +4579,17 @@ interface GenerateFolderDownloadUrlSignature {
4549
4579
  declare function bulkDeleteFolders$1(httpClient: HttpClient): BulkDeleteFoldersSignature;
4550
4580
  interface BulkDeleteFoldersSignature {
4551
4581
  /**
4552
- * Temporarily deletes the specified folders from the Media Manager.
4553
- *
4554
- * The `bulkDeleteFolders()` function returns a Promise that resolves when the folders are deleted.
4582
+ * Temporarily deletes the specified folders from the Media Manager. <br/>
4555
4583
  *
4556
- * The deleted folders are moved to the Media Manager's `TRASH_ROOT` folder (trash bin) unless permanently deleted. To permanently delete folders, pass the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
4584
+ * The deleted folders are moved to the Media Manager's `trash-root` folder (trash bin) unless permanently deleted. To permanently delete folders, specify the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
4557
4585
  *
4558
- * >**Notes:**
4559
- * > - When a folder is deleted, the files in that folder are deleted.
4560
- * > - The specified folders can be from different parent folders.
4561
- * > - Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
4562
- * > - Attempting to delete folders that are already in the trash bin doesn't result in an error.
4563
- * > - If your site contains files from a non-permanently deleted media folder, the files still appear on your site as the deleted folder is still in the Media Manager (in the trash bin).
4564
- * > - You can use the `bulkRestoreFoldersFromTrashBin()` function to restore folders from the Media Manager's trash bin.
4586
+ * Note the following:
4587
+ * * When a folder is deleted, the files in that folder are deleted.
4588
+ * * The specified folders can be from different parent folders.
4589
+ * * Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
4590
+ * * Attempting to delete folders that are already in the trash bin doesn't result in an error.
4591
+ * * If a site contains files from a deleted media folder, the files still appear on the site as the deleted folder is still in the Media Manager (in the trash bin).
4592
+ * * You can also use the Bulk Restore Folders From Trash Bin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/folders/bulk-restore-folders-from-trash-bin) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/folders/bulk-restore-folders-from-trash-bin)) method to restore folders from the Media Manager's trash bin.
4565
4593
  * @param - IDs of the folders to move to the Media Manager's trash bin.
4566
4594
  * @param - Options to use when deleting folders.
4567
4595
  */
@@ -4571,9 +4599,6 @@ declare function bulkRestoreFoldersFromTrashBin$1(httpClient: HttpClient): BulkR
4571
4599
  interface BulkRestoreFoldersFromTrashBinSignature {
4572
4600
  /**
4573
4601
  * Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
4574
- *
4575
- *
4576
- * The `bulkRestoreFoldersFromTrashBin()` function returns a Promise that resolves when the folders have been restored.
4577
4602
  * @param - IDs of the folders to restore from the Media Manager's trash bin.
4578
4603
  */
4579
4604
  (folderIds: string[]): Promise<void>;
@@ -4581,11 +4606,7 @@ interface BulkRestoreFoldersFromTrashBinSignature {
4581
4606
  declare function listDeletedFolders$1(httpClient: HttpClient): ListDeletedFoldersSignature;
4582
4607
  interface ListDeletedFoldersSignature {
4583
4608
  /**
4584
- * Retrieves a list of deleted folders from the trash bin.
4585
- *
4586
- * The `listDeletedFolders()` function returns a Promise that resolves to information about the specified deleted folders and cursor information.
4587
- *
4588
- * To retrieve a list of non-deleted folders, use the `listFolders()` function.
4609
+ * Retrieves a list of folders in the Media Manager's trash bin.
4589
4610
  * @param - Options to use when listing deleted folders from the trash bin.
4590
4611
  */
4591
4612
  (options?: ListDeletedFoldersOptions | undefined): Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
@@ -4607,15 +4628,25 @@ declare const bulkRestoreFoldersFromTrashBin: MaybeContext<BuildRESTFunction<typ
4607
4628
  declare const listDeletedFolders: MaybeContext<BuildRESTFunction<typeof listDeletedFolders$1> & typeof listDeletedFolders$1>;
4608
4629
 
4609
4630
  type _publicOnFolderCreatedType = typeof onFolderCreated$1;
4610
- /** */
4631
+ /**
4632
+ * Triggered when a folder is created.
4633
+ *
4634
+ * This event is also triggered when a folder is restored from the Media Manager's trash bin.
4635
+ */
4611
4636
  declare const onFolderCreated: ReturnType<typeof createEventModule<_publicOnFolderCreatedType>>;
4612
4637
 
4613
4638
  type _publicOnFolderDeletedType = typeof onFolderDeleted$1;
4614
- /** */
4639
+ /**
4640
+ * Triggered when a folder is deleted.
4641
+ *
4642
+ * If the `movedToTrash` property in the event object is `true`, the folder was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the folder was permanently deleted.
4643
+ */
4615
4644
  declare const onFolderDeleted: ReturnType<typeof createEventModule<_publicOnFolderDeletedType>>;
4616
4645
 
4617
4646
  type _publicOnFolderUpdatedType = typeof onFolderUpdated$1;
4618
- /** */
4647
+ /**
4648
+ * Triggered when a folder is updated, including when a folder is moved to a different parent folder.
4649
+ */
4619
4650
  declare const onFolderUpdated: ReturnType<typeof createEventModule<_publicOnFolderUpdatedType>>;
4620
4651
 
4621
4652
  type index_d_ActionEvent = ActionEvent;
@@ -1795,6 +1795,24 @@ interface ApplicationError$1 {
1795
1795
  /** Data related to the error. */
1796
1796
  data?: Record<string, any> | null;
1797
1797
  }
1798
+ interface ItemMetadata$1 {
1799
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1800
+ id?: string | null;
1801
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1802
+ originalIndex?: number;
1803
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1804
+ success?: boolean;
1805
+ /** Details about the error in case of failure. */
1806
+ error?: ApplicationError$1;
1807
+ }
1808
+ interface BulkActionMetadata$1 {
1809
+ /** Number of items that were successfully processed. */
1810
+ totalSuccesses?: number;
1811
+ /** Number of items that couldn't be processed. */
1812
+ totalFailures?: number;
1813
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1814
+ undetailedFailures?: number;
1815
+ }
1798
1816
  interface GenerateFilesDownloadUrlRequest$1 {
1799
1817
  /**
1800
1818
  * IDs of the files to download.
@@ -2051,24 +2069,6 @@ interface BulkImportFileResult$1 {
2051
2069
  /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
2052
2070
  item?: FileDescriptor$1;
2053
2071
  }
2054
- interface ItemMetadata$1 {
2055
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2056
- id?: string | null;
2057
- /** Index of the item within the request array. Allows for correlation between request and response items. */
2058
- originalIndex?: number;
2059
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2060
- success?: boolean;
2061
- /** Details about the error in case of failure. */
2062
- error?: ApplicationError$1;
2063
- }
2064
- interface BulkActionMetadata$1 {
2065
- /** Number of items that were successfully processed. */
2066
- totalSuccesses?: number;
2067
- /** Number of items that couldn't be processed. */
2068
- totalFailures?: number;
2069
- /** Number of failures without details because detailed failure threshold was exceeded. */
2070
- undetailedFailures?: number;
2071
- }
2072
2072
  interface ListFilesRequest$1 {
2073
2073
  /**
2074
2074
  * ID of the file's parent folder. <br />
@@ -2719,6 +2719,24 @@ interface ApplicationError {
2719
2719
  /** Data related to the error. */
2720
2720
  data?: Record<string, any> | null;
2721
2721
  }
2722
+ interface ItemMetadata {
2723
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2724
+ _id?: string | null;
2725
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2726
+ originalIndex?: number;
2727
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2728
+ success?: boolean;
2729
+ /** Details about the error in case of failure. */
2730
+ error?: ApplicationError;
2731
+ }
2732
+ interface BulkActionMetadata {
2733
+ /** Number of items that were successfully processed. */
2734
+ totalSuccesses?: number;
2735
+ /** Number of items that couldn't be processed. */
2736
+ totalFailures?: number;
2737
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2738
+ undetailedFailures?: number;
2739
+ }
2722
2740
  interface GenerateFilesDownloadUrlRequest {
2723
2741
  /**
2724
2742
  * IDs of the files to download.
@@ -2975,24 +2993,6 @@ interface BulkImportFileResult {
2975
2993
  /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
2976
2994
  item?: FileDescriptor;
2977
2995
  }
2978
- interface ItemMetadata {
2979
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2980
- _id?: string | null;
2981
- /** Index of the item within the request array. Allows for correlation between request and response items. */
2982
- originalIndex?: number;
2983
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2984
- success?: boolean;
2985
- /** Details about the error in case of failure. */
2986
- error?: ApplicationError;
2987
- }
2988
- interface BulkActionMetadata {
2989
- /** Number of items that were successfully processed. */
2990
- totalSuccesses?: number;
2991
- /** Number of items that couldn't be processed. */
2992
- totalFailures?: number;
2993
- /** Number of failures without details because detailed failure threshold was exceeded. */
2994
- undetailedFailures?: number;
2995
- }
2996
2996
  interface ListFilesRequest {
2997
2997
  /**
2998
2998
  * ID of the file's parent folder. <br />
@@ -3467,12 +3467,12 @@ interface Cursors$1 {
3467
3467
  }
3468
3468
  interface SearchFoldersRequest$1 {
3469
3469
  /**
3470
- * A root folder in the media manager to search in. <br />
3470
+ * A root folder in the Media Manager to search in. <br />
3471
3471
  * Default: `MEDIA_ROOT`.
3472
3472
  */
3473
3473
  rootFolder?: RootFolder$1;
3474
3474
  /**
3475
- * Field name and order to sort by. One of: <br />
3475
+ * Field name and order to sort by. One of:
3476
3476
  * * `displayName`
3477
3477
  * * `updatedDate`
3478
3478
  * Default: `updatedDate` in `desc` order.
@@ -3501,7 +3501,7 @@ interface SearchFoldersResponse$1 {
3501
3501
  nextCursor?: PagingMetadataV2$1;
3502
3502
  }
3503
3503
  interface UpdateFolderRequest$1 {
3504
- /** The folder to update. */
3504
+ /** Folder to update. */
3505
3505
  folder: Folder$1;
3506
3506
  }
3507
3507
  interface UpdateFolderResponse$1 {
@@ -3537,7 +3537,7 @@ interface ListDeletedFoldersRequest$1 {
3537
3537
  /** ID of the folder's parent folder. */
3538
3538
  parentFolderId?: string | null;
3539
3539
  /**
3540
- * Field name and order to sort by. One of: <br />
3540
+ * Field name and order to sort by. One of:
3541
3541
  * * `displayName`
3542
3542
  * * `updatedDate`
3543
3543
  * Default: `updatedDate` in `desc` order.
@@ -3659,10 +3659,10 @@ interface ListFoldersRequest {
3659
3659
  */
3660
3660
  parentFolderId?: string | null;
3661
3661
  /**
3662
- * Field name and order to sort by. One of:
3663
- * - `displayName`
3664
- * - `_updatedDate`
3665
- * Default: `_updatedDate` in `"DESC"` order.
3662
+ * Field name and order to sort by. One of: <br />
3663
+ * * `displayName`
3664
+ * * `updatedDate`
3665
+ * Default: `updatedDate` in `desc` order.
3666
3666
  */
3667
3667
  sort?: Sorting;
3668
3668
  /** Cursor and paging information. */
@@ -3707,16 +3707,15 @@ interface Cursors {
3707
3707
  }
3708
3708
  interface SearchFoldersRequest {
3709
3709
  /**
3710
- * A root folder in the media manager to search in. <br />
3710
+ * A root folder in the Media Manager to search in. <br />
3711
3711
  * Default: `MEDIA_ROOT`.
3712
3712
  */
3713
3713
  rootFolder?: RootFolder;
3714
3714
  /**
3715
3715
  * Field name and order to sort by. One of:
3716
- * - `displayName`
3717
- * - `_updatedDate`
3718
- *
3719
- * Default: `_updatedDate` in `"DESC"` order.
3716
+ * * `displayName`
3717
+ * * `updatedDate`
3718
+ * Default: `updatedDate` in `desc` order.
3720
3719
  */
3721
3720
  sort?: Sorting;
3722
3721
  /** Cursor and paging information. */
@@ -3742,7 +3741,7 @@ interface SearchFoldersResponse {
3742
3741
  nextCursor?: PagingMetadataV2;
3743
3742
  }
3744
3743
  interface UpdateFolderRequest {
3745
- /** The folder to update. */
3744
+ /** Folder to update. */
3746
3745
  folder: Folder;
3747
3746
  }
3748
3747
  interface UpdateFolderResponse {
@@ -3779,10 +3778,9 @@ interface ListDeletedFoldersRequest {
3779
3778
  parentFolderId?: string | null;
3780
3779
  /**
3781
3780
  * Field name and order to sort by. One of:
3782
- * - `displayName`
3783
- * - `_updatedDate`
3784
- *
3785
- * Default: `_updatedDate` in `"DESC"` order.
3781
+ * * `displayName`
3782
+ * * `updatedDate`
3783
+ * Default: `updatedDate` in `desc` order.
3786
3784
  */
3787
3785
  sort?: Sorting;
3788
3786
  /** Cursor and paging information. */