import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { I as ItemUploadCallbackOptions, a as ItemUploadCallbackResponse, G as GenerateFileUploadUrlOptions, b as GenerateFileUploadUrlResponse, c as ImportFileOptions, d as ImportFileResponse, e as ImportFileRequest, B as BulkImportFilesOptions, f as BulkImportFilesResponse, E as EnterpriseMediaItemSearch, S as SearchItemsResponse, U as UpdateItem, g as EnterpriseMediaItem, h as UpdateItemRequest, i as BulkUpdateItemOptions, j as BulkUpdateItemResponse, L as LinkItemToCategoriesOptions, k as LinkItemToCategoriesResponse, l as UnlinkItemFromCategoriesOptions, m as UnlinkItemFromCategoriesResponse, O as OverwriteItemCategoriesOptions, n as OverwriteItemCategoriesResponse, o as EnterpriseItemCreatedEnvelope, p as EnterpriseItemItemCategoriesChangedEnvelope, q as EnterpriseItemPublishStatusChangedEnvelope, r as EnterpriseItemUpdatedEnvelope, s as ItemsQueryBuilder, t as EnterpriseMediaItemQuery, u as typedQueryItems } from './media-enterprise-public-media-v1-enterprise-item-enterprise-media-items.universal-BygimTZI.js'; export { an as AccountInfo, aq as AccountInfoMetadata, aj as ActionEvent, K as ApplicationError, A as Archive, ao as BaseEventMetadata, N as BulkActionMetadata, F as BulkImportFilesRequest, H as BulkImportFilesResult, a7 as BulkItemUpdateResult, a6 as BulkUpdateItemRequest, aA as CommonQueryWithEntityContext, az as CommonSearchWithEntityContext, $ as Cursors, ad as DomainEvent, ae as DomainEventBodyOneOf, at as EnterpriseMediaItemQuerySpec, ar as EnterpriseMediaItemSearchSpec, af as EntityCreatedEvent, ai as EntityDeletedEvent, ah as EntityUpdatedEvent, ap as EventMetadata, D as GenerateFileUploadUrlRequest, a8 as GetItemRequest, a9 as GetItemResponse, al as IdentificationData, am as IdentificationDataIdOneOf, w as ItemAssets, x as ItemAssetsAssetsOneOf, z as ItemCategoriesChanged, J as ItemMetadata, C as ItemUploadCallbackRequest, as as ItemsQueryResult, aa as LinkItemToCategoriesRequest, M as MediaType, av as MediaTypeWithLiterals, ak as MessageEnvelope, y as Model3D, ac as OverwriteItemCategoriesRequest, Z as Paging, _ as PagingMetadataV2, P as PublishStatus, a5 as PublishStatusChanged, aw as PublishStatusWithLiterals, a0 as QueryItemsRequest, a3 as QueryItemsResponse, a1 as QueryV2, a2 as QueryV2PagingMethodOneOf, ag as RestoreInfo, R as Search, Y as SearchDetails, Q as SearchItemsRequest, T as SearchPagingMethodOneOf, v as SortOrder, ax as SortOrderWithLiterals, X as Sorting, ab as UnlinkItemFromCategoriesRequest, a4 as UpdateItemResponse, V as VideoResolution, W as WebhookIdentityType, ay as WebhookIdentityTypeWithLiterals, au as utils } from './media-enterprise-public-media-v1-enterprise-item-enterprise-media-items.universal-BygimTZI.js'; declare function itemUploadCallback$1(httpClient: HttpClient): ItemUploadCallbackSignature; interface ItemUploadCallbackSignature { /** * Internal endpoint called by the public media backend when a file is created. Creates domain events for the Enterprise Public Media system. */ (options?: ItemUploadCallbackOptions): Promise; } declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature; interface GenerateFileUploadUrlSignature { /** * Generates an upload URL for uploading local files to the Enterprise Public Media system. After uploading the file to the returned URL, the system processes it asynchronously. The item becomes available once processing completes. */ (options?: GenerateFileUploadUrlOptions): Promise>; } declare function importFile$1(httpClient: HttpClient): ImportFileSignature; interface ImportFileSignature { /** * Imports a file from a URL into the Enterprise Public Media system. * * To import a single file from your local machine, call [Generate File Upload Url](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/generate-file-upload-url). * @param - URL of the file to import. */ (url: string, options?: ImportFileOptions): Promise>; } declare function bulkImportFiles$1(httpClient: HttpClient): BulkImportFilesSignature; interface BulkImportFilesSignature { /** * Imports multiple files from URLs in a single API call. Check the `itemMetadata` in each result to identify successes and failures, and use `bulkActionMetadata` for an overview of total succeeded and failed operations. * * To import a single file from a URL, call [Import File](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/import-file). * @param - List of files to import. */ (importFileRequests: NonNullablePaths[], options?: BulkImportFilesOptions): Promise>; } declare function searchItems$1(httpClient: HttpClient): SearchItemsSignature; interface SearchItemsSignature { /** * Searches for items using text-based search criteria. * * Search Items runs with these defaults, which you can override: * * - `paging.limit` is `50` * - `paging.offset` is `0` * * All filters support equality only. Each search must include a `categoryId` filter. Use this endpoint when you need to search for items by text. For retrieving items with custom sorting, use [Query Items](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/query-items). * * To learn about working with search methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging). * @param - Search query for text-based matching across item `title`, `displayTags`, and `internalTags` fields. Partial matching is supported for `title` and `displayTags`. `internalTags` require a full exact match. All filters support equality only. Each query must include a `categoryId` filter. */ (query: EnterpriseMediaItemSearch): Promise>; } declare function updateItem$1(httpClient: HttpClient): UpdateItemSignature; interface UpdateItemSignature { /** * Updates an item. * To update multiple items in a single API call, call [Bulk Update Item](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/bulk-update-item). * @param - Item ID. * @returns Updated item. */ (_id: string, item: UpdateItem): Promise>; } declare function bulkUpdateItem$1(httpClient: HttpClient): BulkUpdateItemSignature; interface BulkUpdateItemSignature { /** * Updates multiple items in a single API call. * * To update a single item, call [Update Item](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/update-item). * @param - List of items to update. Each item must include an ID. */ (updateItemRequests: NonNullablePaths[], options?: BulkUpdateItemOptions): Promise>; } declare function getItem$1(httpClient: HttpClient): GetItemSignature; interface GetItemSignature { /** * Retrieves an item by ID. * @param - Item ID. * @returns Retrieved item. */ (itemId: string): Promise>; } declare function linkItemToCategories$1(httpClient: HttpClient): LinkItemToCategoriesSignature; interface LinkItemToCategoriesSignature { /** * Links an item to multiple categories. Adds to existing category links without removing them. * * To replace all category links, call [Overwrite Item Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/overwrite-item-categories). To remove specific category links, call [Unlink Item From Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/unlink-item-from-categories). * @param - Item ID. */ (itemId: string, options?: LinkItemToCategoriesOptions): Promise>; } declare function unlinkItemFromCategories$1(httpClient: HttpClient): UnlinkItemFromCategoriesSignature; interface UnlinkItemFromCategoriesSignature { /** * Unlinks an item from multiple categories. Removes specified category links while keeping others. * * To replace all category links, call [Overwrite Item Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/overwrite-item-categories). To add category links, call [Link Item To Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/link-item-to-categories). * @param - Item ID. */ (itemId: string, options?: UnlinkItemFromCategoriesOptions): Promise>; } declare function overwriteItemCategories$1(httpClient: HttpClient): OverwriteItemCategoriesSignature; interface OverwriteItemCategoriesSignature { /** * Replaces all existing category links with the specified categories. * * To add category links without removing existing ones, call [Link Item To Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/link-item-to-categories). To remove specific category links, call [Unlink Item From Categories](https://dev.wix.com/docs/api-reference/assets/media/enterprise-media/enterprise-item/unlink-item-from-categories). * @param - Item ID. */ (itemId: string, options?: OverwriteItemCategoriesOptions): Promise>; } declare const onEnterpriseItemCreated$1: EventDefinition; declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition; declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition; declare const onEnterpriseItemUpdated$1: EventDefinition; declare function customQueryItems(httpClient: HttpClient): { (): ItemsQueryBuilder; (query: EnterpriseMediaItemQuery): ReturnType; }; declare const itemUploadCallback: MaybeContext & typeof itemUploadCallback$1>; declare const generateFileUploadUrl: MaybeContext & typeof generateFileUploadUrl$1>; declare const importFile: MaybeContext & typeof importFile$1>; declare const bulkImportFiles: MaybeContext & typeof bulkImportFiles$1>; declare const searchItems: MaybeContext & typeof searchItems$1>; declare const updateItem: MaybeContext & typeof updateItem$1>; declare const bulkUpdateItem: MaybeContext & typeof bulkUpdateItem$1>; declare const getItem: MaybeContext & typeof getItem$1>; declare const linkItemToCategories: MaybeContext & typeof linkItemToCategories$1>; declare const unlinkItemFromCategories: MaybeContext & typeof unlinkItemFromCategories$1>; declare const overwriteItemCategories: MaybeContext & typeof overwriteItemCategories$1>; declare const queryItems: MaybeContext & typeof customQueryItems>; /** * Triggered when an item is created. */ declare const onEnterpriseItemCreated: BuildEventDefinition & typeof onEnterpriseItemCreated$1; /** * Triggered when an item's category links change. */ declare const onEnterpriseItemItemCategoriesChanged: BuildEventDefinition & typeof onEnterpriseItemItemCategoriesChanged$1; /** * Triggered when an item's `publishStatus` changes. */ declare const onEnterpriseItemPublishStatusChanged: BuildEventDefinition & typeof onEnterpriseItemPublishStatusChanged$1; /** * Triggered when an item is updated. */ declare const onEnterpriseItemUpdated: BuildEventDefinition & typeof onEnterpriseItemUpdated$1; export { BulkImportFilesOptions, BulkImportFilesResponse, BulkUpdateItemOptions, BulkUpdateItemResponse, EnterpriseItemCreatedEnvelope, EnterpriseItemItemCategoriesChangedEnvelope, EnterpriseItemPublishStatusChangedEnvelope, EnterpriseItemUpdatedEnvelope, EnterpriseMediaItem, EnterpriseMediaItemQuery, EnterpriseMediaItemSearch, GenerateFileUploadUrlOptions, GenerateFileUploadUrlResponse, ImportFileOptions, ImportFileRequest, ImportFileResponse, ItemUploadCallbackOptions, ItemUploadCallbackResponse, ItemsQueryBuilder, LinkItemToCategoriesOptions, LinkItemToCategoriesResponse, OverwriteItemCategoriesOptions, OverwriteItemCategoriesResponse, SearchItemsResponse, UnlinkItemFromCategoriesOptions, UnlinkItemFromCategoriesResponse, UpdateItem, UpdateItemRequest, bulkImportFiles, bulkUpdateItem, generateFileUploadUrl, getItem, importFile, itemUploadCallback, linkItemToCategories, onEnterpriseItemCreated, onEnterpriseItemItemCategoriesChanged, onEnterpriseItemPublishStatusChanged, onEnterpriseItemUpdated, overwriteItemCategories, queryItems, searchItems, unlinkItemFromCategories, updateItem };