{"version":3,"sources":["../../src/promote-publisher-v1-item-items.public.ts","../../src/promote-publisher-v1-item-items.universal.ts","../../src/promote-publisher-v1-item-items.http.ts","../../src/promote-publisher-v1-item-items.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  BulkPublishItemsApplicationErrors,\n  BulkPublishItemsOptions,\n  BulkPublishItemsResponse,\n  CancelScheduledItemApplicationErrors,\n  CancelScheduledItemResponse,\n  CreateDraftItemOptions,\n  DeleteItemApplicationErrors,\n  GetItemsResponse,\n  Item,\n  ItemPublishFailedEnvelope,\n  ItemPublishScheduledEnvelope,\n  ItemPublishStartedEnvelope,\n  ItemPublishedEnvelope,\n  PublishItemApplicationErrors,\n  PublishItemByIdApplicationErrors,\n  PublishItemByIdOptions,\n  PublishItemByIdResponse,\n  PublishItemOptions,\n  PublishItemResponse,\n  PublishMultiStoryDraftApplicationErrors,\n  PublishMultiStoryDraftOptions,\n  PublishMultiStoryDraftResponse,\n  Query,\n  QueryItemsResponse,\n  RescheduleItemApplicationErrors,\n  RescheduleItemOptions,\n  RescheduleItemResponse,\n  UpdateItem,\n  UpdateItemApplicationErrors,\n  bulkPublishItems as universalBulkPublishItems,\n  cancelScheduledItem as universalCancelScheduledItem,\n  createDraftItem as universalCreateDraftItem,\n  deleteItem as universalDeleteItem,\n  getItem as universalGetItem,\n  getItems as universalGetItems,\n  publishItem as universalPublishItem,\n  publishItemById as universalPublishItemById,\n  publishMultiStoryDraft as universalPublishMultiStoryDraft,\n  queryItems as universalQueryItems,\n  rescheduleItem as universalRescheduleItem,\n  updateItem as universalUpdateItem,\n} from './promote-publisher-v1-item-items.universal.js';\n\nexport const __metadata = {\n  PACKAGE_NAME: '@wix/promote-growth-tools-publisher',\n};\n\nexport function publishItem(httpClient: HttpClient): PublishItemSignature {\n  return (\n    options?: NonNullablePaths<\n      PublishItemOptions,\n      `item.channel` | `item.channel.accountId`,\n      2\n    >\n  ) =>\n    universalPublishItem(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishItemSignature {\n  /**\n   * Publishes an item to a connected social channel.\n   *\n   * Use this method to publish a fully-formed post in a single call. To publish a previously created draft, call Publish Item By ID. To save a post without publishing it, call Create Draft Item. To schedule the post, set `item.schedulingInfo.scheduledDate`; otherwise it's published immediately.\n   *\n   * Published items appear on the site's Social Media Marketing page in the dashboard.\n   */\n  (\n    options?: NonNullablePaths<\n      PublishItemOptions,\n      `item.channel` | `item.channel.accountId`,\n      2\n    >\n  ): Promise<\n    NonNullablePaths<\n      PublishItemResponse,\n      | `item.instagramPost.mediaWrapper.media`\n      | `item.instagramPost.mediaWrapper.media.${number}.type`\n      | `item.instagramPost.insights.likes`\n      | `item.instagramPost.insights.engagement`\n      | `item.instagramPost.insights.impressions`\n      | `item.instagramPost.insights.plays`\n      | `item.instagramPost.insights.reach`\n      | `item.instagramPost.insights.comments`\n      | `item.instagramPost.insights.shares`\n      | `item.instagramPost.insights.saved`\n      | `item.instagramPost.insights.totalInteractions`\n      | `item.instagramStory.insights.impressions`\n      | `item.instagramStory.insights.reach`\n      | `item.instagramStory.insights.replies`\n      | `item.facebookPost.insights.impressions.unique`\n      | `item.facebookPost.insights.impressions.total`\n      | `item.facebookPost.insights.interactions.unique`\n      | `item.facebookPost.insights.interactions.total`\n      | `item.facebookPost.insights.reactions.like`\n      | `item.facebookPost.insights.reactions.love`\n      | `item.facebookPost.insights.reactions.wow`\n      | `item.facebookPost.insights.reactions.haha`\n      | `item.facebookPost.insights.reactions.sad`\n      | `item.facebookPost.insights.reactions.anger`\n      | `item.facebookPost.insights.activity.share`\n      | `item.facebookPost.insights.activity.like`\n      | `item.facebookPost.insights.activity.comment`\n      | `item.youtubeVideo.notifySubscribers`\n      | `item.youtubeVideo.insights.views`\n      | `item.youtubeVideo.insights.comments`\n      | `item.youtubeVideo.insights.likes`\n      | `item.youtubeVideo.insights.dislikes`\n      | `item.youtubeVideo.insights.shares`\n      | `item.youtubeShort.notifySubscribers`\n      | `item.linkedinPost.insights.uniqueImpressions`\n      | `item.linkedinPost.insights.impression`\n      | `item.linkedinPost.insights.shares`\n      | `item.linkedinPost.insights.engagement`\n      | `item.linkedinPost.insights.clicks`\n      | `item.linkedinPost.insights.likes`\n      | `item.linkedinPost.insights.comments`\n      | `item.twitterPost.insights.retweets`\n      | `item.twitterPost.insights.replies`\n      | `item.twitterPost.insights.likes`\n      | `item.twitterPost.insights.quotes`\n      | `item.twitterPost.insights.bookmarks`\n      | `item.twitterPost.insights.impressions`\n      | `item.pinterestPost.insights.impressions`\n      | `item.pinterestPost.insights.clicks`\n      | `item.pinterestPost.insights.saves`\n      | `item.pinterestPost.insights.comments`\n      | `item.pinterestPost.insights.reactions`\n      | `item.gbpPost.callToAction.actionType`\n      | `item.gbpPost.insights.shares`\n      | `item.tiktokVideo.privacyLevel`\n      | `item.tiktokVideo.disableComment`\n      | `item.tiktokVideo.disableDuet`\n      | `item.tiktokVideo.disableStitch`\n      | `item.tiktokVideo.brandContentToggle`\n      | `item.tiktokVideo.brandOrganicToggle`\n      | `item.tiktokVideo.insights.views`\n      | `item.tiktokVideo.insights.likes`\n      | `item.tiktokVideo.insights.comments`\n      | `item.tiktokVideo.insights.shares`\n      | `item.tiktokPhoto.privacyLevel`\n      | `item.tiktokPhoto.disableComment`\n      | `item.tiktokPhoto.autoAddMusic`\n      | `item.tiktokPhoto.brandContentToggle`\n      | `item.tiktokPhoto.brandOrganicToggle`\n      | `item.channel.name`\n      | `item.type`\n      | `item.status`\n      | `item.siteAnalytics.traffic`\n      | `item.siteAnalytics.pageView`\n      | `item.siteAnalytics.siteBounceRate`\n      | `item.siteAnalytics.revenue`\n      | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `item.insightsSummary.impressions`\n      | `item.insightsSummary.interactions`\n      | `item.insightsSummary.impressionsTotal`\n      | `item.suggested`\n      | `item.external`\n      | `item.siteAssetRef.siteAssetRefType`\n      | `item.siteAssetRef.name`,\n      5\n    > & {\n      __applicationErrorsType?: PublishItemApplicationErrors;\n    }\n  >;\n}\n\nexport function publishItemById(\n  httpClient: HttpClient\n): PublishItemByIdSignature {\n  return (_id: string, options?: PublishItemByIdOptions) =>\n    universalPublishItemById(\n      _id,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishItemByIdSignature {\n  /**\n   * Publishes a previously created item by its `id`.\n   *\n   * The item can be a draft or a scheduled item. To schedule the item for a future date, set `scheduledDate`; otherwise it's published immediately.\n   *\n   * Published items appear on the site's Social Media Marketing page in the dashboard.\n   * @param - ID of the item to publish.\n   */\n  (_id: string, options?: PublishItemByIdOptions): Promise<\n    NonNullablePaths<\n      PublishItemByIdResponse,\n      | `item.instagramPost.mediaWrapper.media`\n      | `item.instagramPost.mediaWrapper.media.${number}.type`\n      | `item.instagramPost.insights.likes`\n      | `item.instagramPost.insights.engagement`\n      | `item.instagramPost.insights.impressions`\n      | `item.instagramPost.insights.plays`\n      | `item.instagramPost.insights.reach`\n      | `item.instagramPost.insights.comments`\n      | `item.instagramPost.insights.shares`\n      | `item.instagramPost.insights.saved`\n      | `item.instagramPost.insights.totalInteractions`\n      | `item.instagramStory.insights.impressions`\n      | `item.instagramStory.insights.reach`\n      | `item.instagramStory.insights.replies`\n      | `item.facebookPost.insights.impressions.unique`\n      | `item.facebookPost.insights.impressions.total`\n      | `item.facebookPost.insights.interactions.unique`\n      | `item.facebookPost.insights.interactions.total`\n      | `item.facebookPost.insights.reactions.like`\n      | `item.facebookPost.insights.reactions.love`\n      | `item.facebookPost.insights.reactions.wow`\n      | `item.facebookPost.insights.reactions.haha`\n      | `item.facebookPost.insights.reactions.sad`\n      | `item.facebookPost.insights.reactions.anger`\n      | `item.facebookPost.insights.activity.share`\n      | `item.facebookPost.insights.activity.like`\n      | `item.facebookPost.insights.activity.comment`\n      | `item.youtubeVideo.notifySubscribers`\n      | `item.youtubeVideo.insights.views`\n      | `item.youtubeVideo.insights.comments`\n      | `item.youtubeVideo.insights.likes`\n      | `item.youtubeVideo.insights.dislikes`\n      | `item.youtubeVideo.insights.shares`\n      | `item.youtubeShort.notifySubscribers`\n      | `item.linkedinPost.insights.uniqueImpressions`\n      | `item.linkedinPost.insights.impression`\n      | `item.linkedinPost.insights.shares`\n      | `item.linkedinPost.insights.engagement`\n      | `item.linkedinPost.insights.clicks`\n      | `item.linkedinPost.insights.likes`\n      | `item.linkedinPost.insights.comments`\n      | `item.twitterPost.insights.retweets`\n      | `item.twitterPost.insights.replies`\n      | `item.twitterPost.insights.likes`\n      | `item.twitterPost.insights.quotes`\n      | `item.twitterPost.insights.bookmarks`\n      | `item.twitterPost.insights.impressions`\n      | `item.pinterestPost.insights.impressions`\n      | `item.pinterestPost.insights.clicks`\n      | `item.pinterestPost.insights.saves`\n      | `item.pinterestPost.insights.comments`\n      | `item.pinterestPost.insights.reactions`\n      | `item.gbpPost.callToAction.actionType`\n      | `item.gbpPost.insights.shares`\n      | `item.tiktokVideo.privacyLevel`\n      | `item.tiktokVideo.disableComment`\n      | `item.tiktokVideo.disableDuet`\n      | `item.tiktokVideo.disableStitch`\n      | `item.tiktokVideo.brandContentToggle`\n      | `item.tiktokVideo.brandOrganicToggle`\n      | `item.tiktokVideo.insights.views`\n      | `item.tiktokVideo.insights.likes`\n      | `item.tiktokVideo.insights.comments`\n      | `item.tiktokVideo.insights.shares`\n      | `item.tiktokPhoto.privacyLevel`\n      | `item.tiktokPhoto.disableComment`\n      | `item.tiktokPhoto.autoAddMusic`\n      | `item.tiktokPhoto.brandContentToggle`\n      | `item.tiktokPhoto.brandOrganicToggle`\n      | `item.channel.name`\n      | `item.type`\n      | `item.status`\n      | `item.siteAnalytics.traffic`\n      | `item.siteAnalytics.pageView`\n      | `item.siteAnalytics.siteBounceRate`\n      | `item.siteAnalytics.revenue`\n      | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `item.insightsSummary.impressions`\n      | `item.insightsSummary.interactions`\n      | `item.insightsSummary.impressionsTotal`\n      | `item.suggested`\n      | `item.external`\n      | `item.siteAssetRef.siteAssetRefType`\n      | `item.siteAssetRef.name`,\n      5\n    > & {\n      __applicationErrorsType?: PublishItemByIdApplicationErrors;\n    }\n  >;\n}\n\nexport function createDraftItem(\n  httpClient: HttpClient\n): CreateDraftItemSignature {\n  return (\n    options?: NonNullablePaths<CreateDraftItemOptions, `item.channel`, 1>\n  ) =>\n    universalCreateDraftItem(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateDraftItemSignature {\n  /**\n   * Creates a draft item.\n   *\n   * A draft is an item that's saved but not yet published, with a `status` of `DRAFT`. Drafts appear on the site's Social Media Marketing page in the dashboard, where they can be reviewed and published. To publish a draft, call Publish Item By ID.\n   *\n   * The item's `type` and content must match a combination supported by the target channel. See `item.type` for the supported combinations.\n   * @returns Created draft item.\n   */\n  (\n    options?: NonNullablePaths<CreateDraftItemOptions, `item.channel`, 1>\n  ): Promise<\n    NonNullablePaths<\n      Item,\n      | `instagramPost.mediaWrapper.media`\n      | `instagramPost.mediaWrapper.media.${number}.type`\n      | `instagramPost.insights.likes`\n      | `instagramPost.insights.engagement`\n      | `instagramPost.insights.impressions`\n      | `instagramPost.insights.plays`\n      | `instagramPost.insights.reach`\n      | `instagramPost.insights.comments`\n      | `instagramPost.insights.shares`\n      | `instagramPost.insights.saved`\n      | `instagramPost.insights.totalInteractions`\n      | `instagramStory.insights.impressions`\n      | `instagramStory.insights.reach`\n      | `instagramStory.insights.replies`\n      | `facebookPost.insights.impressions.unique`\n      | `facebookPost.insights.impressions.total`\n      | `facebookPost.insights.interactions.unique`\n      | `facebookPost.insights.interactions.total`\n      | `facebookPost.insights.reactions.like`\n      | `facebookPost.insights.reactions.love`\n      | `facebookPost.insights.reactions.wow`\n      | `facebookPost.insights.reactions.haha`\n      | `facebookPost.insights.reactions.sad`\n      | `facebookPost.insights.reactions.anger`\n      | `facebookPost.insights.activity.share`\n      | `facebookPost.insights.activity.like`\n      | `facebookPost.insights.activity.comment`\n      | `youtubeVideo.notifySubscribers`\n      | `youtubeVideo.insights.views`\n      | `youtubeVideo.insights.comments`\n      | `youtubeVideo.insights.likes`\n      | `youtubeVideo.insights.dislikes`\n      | `youtubeVideo.insights.shares`\n      | `youtubeShort.notifySubscribers`\n      | `linkedinPost.insights.uniqueImpressions`\n      | `linkedinPost.insights.impression`\n      | `linkedinPost.insights.shares`\n      | `linkedinPost.insights.engagement`\n      | `linkedinPost.insights.clicks`\n      | `linkedinPost.insights.likes`\n      | `linkedinPost.insights.comments`\n      | `twitterPost.insights.retweets`\n      | `twitterPost.insights.replies`\n      | `twitterPost.insights.likes`\n      | `twitterPost.insights.quotes`\n      | `twitterPost.insights.bookmarks`\n      | `twitterPost.insights.impressions`\n      | `pinterestPost.insights.impressions`\n      | `pinterestPost.insights.clicks`\n      | `pinterestPost.insights.saves`\n      | `pinterestPost.insights.comments`\n      | `pinterestPost.insights.reactions`\n      | `gbpPost.callToAction.actionType`\n      | `gbpPost.insights.shares`\n      | `tiktokVideo.privacyLevel`\n      | `tiktokVideo.disableComment`\n      | `tiktokVideo.disableDuet`\n      | `tiktokVideo.disableStitch`\n      | `tiktokVideo.brandContentToggle`\n      | `tiktokVideo.brandOrganicToggle`\n      | `tiktokVideo.insights.views`\n      | `tiktokVideo.insights.likes`\n      | `tiktokVideo.insights.comments`\n      | `tiktokVideo.insights.shares`\n      | `tiktokPhoto.privacyLevel`\n      | `tiktokPhoto.disableComment`\n      | `tiktokPhoto.autoAddMusic`\n      | `tiktokPhoto.brandContentToggle`\n      | `tiktokPhoto.brandOrganicToggle`\n      | `channel.name`\n      | `type`\n      | `status`\n      | `siteAnalytics.traffic`\n      | `siteAnalytics.pageView`\n      | `siteAnalytics.siteBounceRate`\n      | `siteAnalytics.revenue`\n      | `siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `siteAnalytics.conversionFunnel.checkOutSessions`\n      | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `insightsSummary.impressions`\n      | `insightsSummary.interactions`\n      | `insightsSummary.impressionsTotal`\n      | `suggested`\n      | `external`\n      | `siteAssetRef.siteAssetRefType`\n      | `siteAssetRef.name`,\n      4\n    >\n  >;\n}\n\nexport function publishMultiStoryDraft(\n  httpClient: HttpClient\n): PublishMultiStoryDraftSignature {\n  return (_id: string, options?: PublishMultiStoryDraftOptions) =>\n    universalPublishMultiStoryDraft(\n      _id,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishMultiStoryDraftSignature {\n  /**\n   * Publishes a multi-story draft as a sequence of single-media story items.\n   *\n   * The draft's media list is split into individual story items that are published sequentially\n   * in media order, stopping on the first failure. Each story item gets a derived `referenceId`\n   * of `{draftReferenceId}:story:{index}` (the draft `id` is used when the draft has no `referenceId`).\n   * Story items already published by a previous call are skipped, so the method can be safely retried\n   * after a partial failure. The draft is deleted only after all story items are published.\n   * To schedule the story sequence, set `schedulingInfo.scheduledDate`; otherwise it's published immediately.\n   * @param - ID of the multi-story draft to publish.\n   * @returns PublishMultiStoryDraftResponse\n   */\n  (_id: string, options?: PublishMultiStoryDraftOptions): Promise<\n    NonNullablePaths<\n      PublishMultiStoryDraftResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `results.${number}.item.youtubeVideo.notifySubscribers`\n      | `results.${number}.item.youtubeShort.notifySubscribers`\n      | `results.${number}.item.tiktokVideo.privacyLevel`\n      | `results.${number}.item.tiktokVideo.disableComment`\n      | `results.${number}.item.tiktokVideo.disableDuet`\n      | `results.${number}.item.tiktokVideo.disableStitch`\n      | `results.${number}.item.tiktokVideo.brandContentToggle`\n      | `results.${number}.item.tiktokVideo.brandOrganicToggle`\n      | `results.${number}.item.tiktokPhoto.privacyLevel`\n      | `results.${number}.item.tiktokPhoto.disableComment`\n      | `results.${number}.item.tiktokPhoto.autoAddMusic`\n      | `results.${number}.item.tiktokPhoto.brandContentToggle`\n      | `results.${number}.item.tiktokPhoto.brandOrganicToggle`\n      | `results.${number}.item.channel.name`\n      | `results.${number}.item.type`\n      | `results.${number}.item.status`\n      | `results.${number}.item.siteAnalytics.traffic`\n      | `results.${number}.item.siteAnalytics.pageView`\n      | `results.${number}.item.siteAnalytics.siteBounceRate`\n      | `results.${number}.item.siteAnalytics.revenue`\n      | `results.${number}.item.insightsSummary.impressions`\n      | `results.${number}.item.insightsSummary.interactions`\n      | `results.${number}.item.insightsSummary.impressionsTotal`\n      | `results.${number}.item.suggested`\n      | `results.${number}.item.external`\n      | `results.${number}.item.siteAssetRef.siteAssetRefType`\n      | `results.${number}.item.siteAssetRef.name`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      4\n    > & {\n      __applicationErrorsType?: PublishMultiStoryDraftApplicationErrors;\n    }\n  >;\n}\n\nexport function getItem(httpClient: HttpClient): GetItemSignature {\n  return (_id: string) =>\n    universalGetItem(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetItemSignature {\n  /**\n   * Retrieves an item by ID.\n   * @param - ID of the item to retrieve.\n   * @returns Retrieved item.\n   */\n  (_id: string): Promise<\n    NonNullablePaths<\n      Item,\n      | `instagramPost.mediaWrapper.media`\n      | `instagramPost.mediaWrapper.media.${number}.type`\n      | `instagramPost.insights.likes`\n      | `instagramPost.insights.engagement`\n      | `instagramPost.insights.impressions`\n      | `instagramPost.insights.plays`\n      | `instagramPost.insights.reach`\n      | `instagramPost.insights.comments`\n      | `instagramPost.insights.shares`\n      | `instagramPost.insights.saved`\n      | `instagramPost.insights.totalInteractions`\n      | `instagramStory.insights.impressions`\n      | `instagramStory.insights.reach`\n      | `instagramStory.insights.replies`\n      | `facebookPost.insights.impressions.unique`\n      | `facebookPost.insights.impressions.total`\n      | `facebookPost.insights.interactions.unique`\n      | `facebookPost.insights.interactions.total`\n      | `facebookPost.insights.reactions.like`\n      | `facebookPost.insights.reactions.love`\n      | `facebookPost.insights.reactions.wow`\n      | `facebookPost.insights.reactions.haha`\n      | `facebookPost.insights.reactions.sad`\n      | `facebookPost.insights.reactions.anger`\n      | `facebookPost.insights.activity.share`\n      | `facebookPost.insights.activity.like`\n      | `facebookPost.insights.activity.comment`\n      | `youtubeVideo.notifySubscribers`\n      | `youtubeVideo.insights.views`\n      | `youtubeVideo.insights.comments`\n      | `youtubeVideo.insights.likes`\n      | `youtubeVideo.insights.dislikes`\n      | `youtubeVideo.insights.shares`\n      | `youtubeShort.notifySubscribers`\n      | `linkedinPost.insights.uniqueImpressions`\n      | `linkedinPost.insights.impression`\n      | `linkedinPost.insights.shares`\n      | `linkedinPost.insights.engagement`\n      | `linkedinPost.insights.clicks`\n      | `linkedinPost.insights.likes`\n      | `linkedinPost.insights.comments`\n      | `twitterPost.insights.retweets`\n      | `twitterPost.insights.replies`\n      | `twitterPost.insights.likes`\n      | `twitterPost.insights.quotes`\n      | `twitterPost.insights.bookmarks`\n      | `twitterPost.insights.impressions`\n      | `pinterestPost.insights.impressions`\n      | `pinterestPost.insights.clicks`\n      | `pinterestPost.insights.saves`\n      | `pinterestPost.insights.comments`\n      | `pinterestPost.insights.reactions`\n      | `gbpPost.callToAction.actionType`\n      | `gbpPost.insights.shares`\n      | `tiktokVideo.privacyLevel`\n      | `tiktokVideo.disableComment`\n      | `tiktokVideo.disableDuet`\n      | `tiktokVideo.disableStitch`\n      | `tiktokVideo.brandContentToggle`\n      | `tiktokVideo.brandOrganicToggle`\n      | `tiktokVideo.insights.views`\n      | `tiktokVideo.insights.likes`\n      | `tiktokVideo.insights.comments`\n      | `tiktokVideo.insights.shares`\n      | `tiktokPhoto.privacyLevel`\n      | `tiktokPhoto.disableComment`\n      | `tiktokPhoto.autoAddMusic`\n      | `tiktokPhoto.brandContentToggle`\n      | `tiktokPhoto.brandOrganicToggle`\n      | `channel.name`\n      | `type`\n      | `status`\n      | `siteAnalytics.traffic`\n      | `siteAnalytics.pageView`\n      | `siteAnalytics.siteBounceRate`\n      | `siteAnalytics.revenue`\n      | `siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `siteAnalytics.conversionFunnel.checkOutSessions`\n      | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `insightsSummary.impressions`\n      | `insightsSummary.interactions`\n      | `insightsSummary.impressionsTotal`\n      | `suggested`\n      | `external`\n      | `siteAssetRef.siteAssetRefType`\n      | `siteAssetRef.name`,\n      4\n    >\n  >;\n}\n\nexport function getItems(httpClient: HttpClient): GetItemsSignature {\n  return (ids: string[]) =>\n    universalGetItems(\n      ids,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetItemsSignature {\n  /**\n   * Retrieves a list of items by their IDs.\n   * @param - IDs of the items to retrieve.\n   */\n  (ids: string[]): Promise<\n    NonNullablePaths<\n      GetItemsResponse,\n      | `items`\n      | `items.${number}.instagramPost.insights.likes`\n      | `items.${number}.instagramPost.insights.engagement`\n      | `items.${number}.instagramPost.insights.impressions`\n      | `items.${number}.instagramPost.insights.plays`\n      | `items.${number}.instagramPost.insights.reach`\n      | `items.${number}.instagramPost.insights.comments`\n      | `items.${number}.instagramPost.insights.shares`\n      | `items.${number}.instagramPost.insights.saved`\n      | `items.${number}.instagramPost.insights.totalInteractions`\n      | `items.${number}.instagramStory.insights.impressions`\n      | `items.${number}.instagramStory.insights.reach`\n      | `items.${number}.instagramStory.insights.replies`\n      | `items.${number}.youtubeVideo.notifySubscribers`\n      | `items.${number}.youtubeVideo.insights.views`\n      | `items.${number}.youtubeVideo.insights.comments`\n      | `items.${number}.youtubeVideo.insights.likes`\n      | `items.${number}.youtubeVideo.insights.dislikes`\n      | `items.${number}.youtubeVideo.insights.shares`\n      | `items.${number}.youtubeShort.notifySubscribers`\n      | `items.${number}.linkedinPost.insights.uniqueImpressions`\n      | `items.${number}.linkedinPost.insights.impression`\n      | `items.${number}.linkedinPost.insights.shares`\n      | `items.${number}.linkedinPost.insights.engagement`\n      | `items.${number}.linkedinPost.insights.clicks`\n      | `items.${number}.linkedinPost.insights.likes`\n      | `items.${number}.linkedinPost.insights.comments`\n      | `items.${number}.twitterPost.insights.retweets`\n      | `items.${number}.twitterPost.insights.replies`\n      | `items.${number}.twitterPost.insights.likes`\n      | `items.${number}.twitterPost.insights.quotes`\n      | `items.${number}.twitterPost.insights.bookmarks`\n      | `items.${number}.twitterPost.insights.impressions`\n      | `items.${number}.pinterestPost.insights.impressions`\n      | `items.${number}.pinterestPost.insights.clicks`\n      | `items.${number}.pinterestPost.insights.saves`\n      | `items.${number}.pinterestPost.insights.comments`\n      | `items.${number}.pinterestPost.insights.reactions`\n      | `items.${number}.gbpPost.callToAction.actionType`\n      | `items.${number}.gbpPost.insights.shares`\n      | `items.${number}.tiktokVideo.privacyLevel`\n      | `items.${number}.tiktokVideo.disableComment`\n      | `items.${number}.tiktokVideo.disableDuet`\n      | `items.${number}.tiktokVideo.disableStitch`\n      | `items.${number}.tiktokVideo.brandContentToggle`\n      | `items.${number}.tiktokVideo.brandOrganicToggle`\n      | `items.${number}.tiktokVideo.insights.views`\n      | `items.${number}.tiktokVideo.insights.likes`\n      | `items.${number}.tiktokVideo.insights.comments`\n      | `items.${number}.tiktokVideo.insights.shares`\n      | `items.${number}.tiktokPhoto.privacyLevel`\n      | `items.${number}.tiktokPhoto.disableComment`\n      | `items.${number}.tiktokPhoto.autoAddMusic`\n      | `items.${number}.tiktokPhoto.brandContentToggle`\n      | `items.${number}.tiktokPhoto.brandOrganicToggle`\n      | `items.${number}.channel.name`\n      | `items.${number}.type`\n      | `items.${number}.status`\n      | `items.${number}.siteAnalytics.traffic`\n      | `items.${number}.siteAnalytics.pageView`\n      | `items.${number}.siteAnalytics.siteBounceRate`\n      | `items.${number}.siteAnalytics.revenue`\n      | `items.${number}.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `items.${number}.insightsSummary.impressions`\n      | `items.${number}.insightsSummary.interactions`\n      | `items.${number}.insightsSummary.impressionsTotal`\n      | `items.${number}.suggested`\n      | `items.${number}.external`\n      | `items.${number}.siteAssetRef.siteAssetRefType`\n      | `items.${number}.siteAssetRef.name`,\n      4\n    >\n  >;\n}\n\nexport function queryItems(httpClient: HttpClient): QueryItemsSignature {\n  return (query: Query) =>\n    universalQueryItems(\n      query,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryItemsSignature {\n  /**\n   * Retrieves a list of items, given the provided paging, filtering, and sorting.\n   *\n   * Query Items runs with these defaults, which you can override:\n   * - `paging.limit` is `50`\n   * - `paging.offset` is `0`\n   *\n   * Query Items supports a fixed set of filterable fields:\n   * - `status`: `PUBLISHED`, `SCHEDULED`, `DRAFT`, `FAILED`, `CANCELED`, `PROCESSING`, or `IN_QUEUE`.\n   * - `channel`: a channel name, such as `FACEBOOK` or `INSTAGRAM`.\n   * - `type`: `POST`, `STORY`, `REEL`, `VIDEO`, or `SHORT`.\n   * - `mediaType`: `IMAGE` or `VIDEO`.\n   * - `suggested`: `true` or `false`.\n   * - `ids`: a list of item IDs.\n   *\n   * Each of these supports the `$eq` and `$in` operators, and a bare value as shorthand for `$eq`, except\n   * for `ids`, which supports `$in` only. Enum values are case insensitive. A value that the API doesn't\n   * define matches no items rather than returning an error, and a field that isn't listed above is ignored\n   * rather than rejected, so a filter on an unsupported field returns the same items as no filter at all.\n   *\n   * Sorting is supported on these fields:\n   * - `date`: the default. Newest first, unless you specify `order`.\n   * - `impressionsTotal`, `impressions`, `interactions`, and `siteVisits`: require the site to have post\n   * insights. Without them, the items are sorted by `date` instead, in whichever direction you\n   * specified.\n   *\n   * To learn about working with Query 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), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n   * @param - Query options, including paging, filtering, and sorting.\n   */\n  (query: Query): Promise<\n    NonNullablePaths<\n      QueryItemsResponse,\n      | `items`\n      | `items.${number}.instagramPost.insights.likes`\n      | `items.${number}.instagramPost.insights.engagement`\n      | `items.${number}.instagramPost.insights.impressions`\n      | `items.${number}.instagramPost.insights.plays`\n      | `items.${number}.instagramPost.insights.reach`\n      | `items.${number}.instagramPost.insights.comments`\n      | `items.${number}.instagramPost.insights.shares`\n      | `items.${number}.instagramPost.insights.saved`\n      | `items.${number}.instagramPost.insights.totalInteractions`\n      | `items.${number}.instagramStory.insights.impressions`\n      | `items.${number}.instagramStory.insights.reach`\n      | `items.${number}.instagramStory.insights.replies`\n      | `items.${number}.youtubeVideo.notifySubscribers`\n      | `items.${number}.youtubeVideo.insights.views`\n      | `items.${number}.youtubeVideo.insights.comments`\n      | `items.${number}.youtubeVideo.insights.likes`\n      | `items.${number}.youtubeVideo.insights.dislikes`\n      | `items.${number}.youtubeVideo.insights.shares`\n      | `items.${number}.youtubeShort.notifySubscribers`\n      | `items.${number}.linkedinPost.insights.uniqueImpressions`\n      | `items.${number}.linkedinPost.insights.impression`\n      | `items.${number}.linkedinPost.insights.shares`\n      | `items.${number}.linkedinPost.insights.engagement`\n      | `items.${number}.linkedinPost.insights.clicks`\n      | `items.${number}.linkedinPost.insights.likes`\n      | `items.${number}.linkedinPost.insights.comments`\n      | `items.${number}.twitterPost.insights.retweets`\n      | `items.${number}.twitterPost.insights.replies`\n      | `items.${number}.twitterPost.insights.likes`\n      | `items.${number}.twitterPost.insights.quotes`\n      | `items.${number}.twitterPost.insights.bookmarks`\n      | `items.${number}.twitterPost.insights.impressions`\n      | `items.${number}.pinterestPost.insights.impressions`\n      | `items.${number}.pinterestPost.insights.clicks`\n      | `items.${number}.pinterestPost.insights.saves`\n      | `items.${number}.pinterestPost.insights.comments`\n      | `items.${number}.pinterestPost.insights.reactions`\n      | `items.${number}.gbpPost.callToAction.actionType`\n      | `items.${number}.gbpPost.insights.shares`\n      | `items.${number}.tiktokVideo.privacyLevel`\n      | `items.${number}.tiktokVideo.disableComment`\n      | `items.${number}.tiktokVideo.disableDuet`\n      | `items.${number}.tiktokVideo.disableStitch`\n      | `items.${number}.tiktokVideo.brandContentToggle`\n      | `items.${number}.tiktokVideo.brandOrganicToggle`\n      | `items.${number}.tiktokVideo.insights.views`\n      | `items.${number}.tiktokVideo.insights.likes`\n      | `items.${number}.tiktokVideo.insights.comments`\n      | `items.${number}.tiktokVideo.insights.shares`\n      | `items.${number}.tiktokPhoto.privacyLevel`\n      | `items.${number}.tiktokPhoto.disableComment`\n      | `items.${number}.tiktokPhoto.autoAddMusic`\n      | `items.${number}.tiktokPhoto.brandContentToggle`\n      | `items.${number}.tiktokPhoto.brandOrganicToggle`\n      | `items.${number}.channel.name`\n      | `items.${number}.type`\n      | `items.${number}.status`\n      | `items.${number}.siteAnalytics.traffic`\n      | `items.${number}.siteAnalytics.pageView`\n      | `items.${number}.siteAnalytics.siteBounceRate`\n      | `items.${number}.siteAnalytics.revenue`\n      | `items.${number}.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `items.${number}.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `items.${number}.insightsSummary.impressions`\n      | `items.${number}.insightsSummary.interactions`\n      | `items.${number}.insightsSummary.impressionsTotal`\n      | `items.${number}.suggested`\n      | `items.${number}.external`\n      | `items.${number}.siteAssetRef.siteAssetRefType`\n      | `items.${number}.siteAssetRef.name`,\n      4\n    >\n  >;\n}\n\nexport function cancelScheduledItem(\n  httpClient: HttpClient\n): CancelScheduledItemSignature {\n  return (_id: string) =>\n    universalCancelScheduledItem(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CancelScheduledItemSignature {\n  /**\n   * Cancels the scheduling of a scheduled item.\n   *\n   * The item is no longer published at its scheduled time. Only an item with a `status` of `SCHEDULED` can be canceled.\n   * @param - ID of the scheduled item to cancel.\n   */\n  (_id: string): Promise<\n    NonNullablePaths<\n      CancelScheduledItemResponse,\n      | `item.instagramPost.mediaWrapper.media`\n      | `item.instagramPost.mediaWrapper.media.${number}.type`\n      | `item.instagramPost.insights.likes`\n      | `item.instagramPost.insights.engagement`\n      | `item.instagramPost.insights.impressions`\n      | `item.instagramPost.insights.plays`\n      | `item.instagramPost.insights.reach`\n      | `item.instagramPost.insights.comments`\n      | `item.instagramPost.insights.shares`\n      | `item.instagramPost.insights.saved`\n      | `item.instagramPost.insights.totalInteractions`\n      | `item.instagramStory.insights.impressions`\n      | `item.instagramStory.insights.reach`\n      | `item.instagramStory.insights.replies`\n      | `item.facebookPost.insights.impressions.unique`\n      | `item.facebookPost.insights.impressions.total`\n      | `item.facebookPost.insights.interactions.unique`\n      | `item.facebookPost.insights.interactions.total`\n      | `item.facebookPost.insights.reactions.like`\n      | `item.facebookPost.insights.reactions.love`\n      | `item.facebookPost.insights.reactions.wow`\n      | `item.facebookPost.insights.reactions.haha`\n      | `item.facebookPost.insights.reactions.sad`\n      | `item.facebookPost.insights.reactions.anger`\n      | `item.facebookPost.insights.activity.share`\n      | `item.facebookPost.insights.activity.like`\n      | `item.facebookPost.insights.activity.comment`\n      | `item.youtubeVideo.notifySubscribers`\n      | `item.youtubeVideo.insights.views`\n      | `item.youtubeVideo.insights.comments`\n      | `item.youtubeVideo.insights.likes`\n      | `item.youtubeVideo.insights.dislikes`\n      | `item.youtubeVideo.insights.shares`\n      | `item.youtubeShort.notifySubscribers`\n      | `item.linkedinPost.insights.uniqueImpressions`\n      | `item.linkedinPost.insights.impression`\n      | `item.linkedinPost.insights.shares`\n      | `item.linkedinPost.insights.engagement`\n      | `item.linkedinPost.insights.clicks`\n      | `item.linkedinPost.insights.likes`\n      | `item.linkedinPost.insights.comments`\n      | `item.twitterPost.insights.retweets`\n      | `item.twitterPost.insights.replies`\n      | `item.twitterPost.insights.likes`\n      | `item.twitterPost.insights.quotes`\n      | `item.twitterPost.insights.bookmarks`\n      | `item.twitterPost.insights.impressions`\n      | `item.pinterestPost.insights.impressions`\n      | `item.pinterestPost.insights.clicks`\n      | `item.pinterestPost.insights.saves`\n      | `item.pinterestPost.insights.comments`\n      | `item.pinterestPost.insights.reactions`\n      | `item.gbpPost.callToAction.actionType`\n      | `item.gbpPost.insights.shares`\n      | `item.tiktokVideo.privacyLevel`\n      | `item.tiktokVideo.disableComment`\n      | `item.tiktokVideo.disableDuet`\n      | `item.tiktokVideo.disableStitch`\n      | `item.tiktokVideo.brandContentToggle`\n      | `item.tiktokVideo.brandOrganicToggle`\n      | `item.tiktokVideo.insights.views`\n      | `item.tiktokVideo.insights.likes`\n      | `item.tiktokVideo.insights.comments`\n      | `item.tiktokVideo.insights.shares`\n      | `item.tiktokPhoto.privacyLevel`\n      | `item.tiktokPhoto.disableComment`\n      | `item.tiktokPhoto.autoAddMusic`\n      | `item.tiktokPhoto.brandContentToggle`\n      | `item.tiktokPhoto.brandOrganicToggle`\n      | `item.channel.name`\n      | `item.type`\n      | `item.status`\n      | `item.siteAnalytics.traffic`\n      | `item.siteAnalytics.pageView`\n      | `item.siteAnalytics.siteBounceRate`\n      | `item.siteAnalytics.revenue`\n      | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `item.insightsSummary.impressions`\n      | `item.insightsSummary.interactions`\n      | `item.insightsSummary.impressionsTotal`\n      | `item.suggested`\n      | `item.external`\n      | `item.siteAssetRef.siteAssetRefType`\n      | `item.siteAssetRef.name`,\n      5\n    > & {\n      __applicationErrorsType?: CancelScheduledItemApplicationErrors;\n    }\n  >;\n}\n\nexport function updateItem(httpClient: HttpClient): UpdateItemSignature {\n  return (_id: string, item: UpdateItem) =>\n    universalUpdateItem(\n      _id,\n      item,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateItemSignature {\n  /**\n   * Updates an item.\n   *\n   * Provide the `id` of the item to update along with the fields to change. Only the fields you include are changed. To change a scheduled item's publish date, call Reschedule Item instead.\n   * @param - Item ID.\n   * @returns Updated item.\n   */\n  (_id: string, item: UpdateItem): Promise<\n    NonNullablePaths<\n      Item,\n      | `instagramPost.mediaWrapper.media`\n      | `instagramPost.mediaWrapper.media.${number}.type`\n      | `instagramPost.insights.likes`\n      | `instagramPost.insights.engagement`\n      | `instagramPost.insights.impressions`\n      | `instagramPost.insights.plays`\n      | `instagramPost.insights.reach`\n      | `instagramPost.insights.comments`\n      | `instagramPost.insights.shares`\n      | `instagramPost.insights.saved`\n      | `instagramPost.insights.totalInteractions`\n      | `instagramStory.insights.impressions`\n      | `instagramStory.insights.reach`\n      | `instagramStory.insights.replies`\n      | `facebookPost.insights.impressions.unique`\n      | `facebookPost.insights.impressions.total`\n      | `facebookPost.insights.interactions.unique`\n      | `facebookPost.insights.interactions.total`\n      | `facebookPost.insights.reactions.like`\n      | `facebookPost.insights.reactions.love`\n      | `facebookPost.insights.reactions.wow`\n      | `facebookPost.insights.reactions.haha`\n      | `facebookPost.insights.reactions.sad`\n      | `facebookPost.insights.reactions.anger`\n      | `facebookPost.insights.activity.share`\n      | `facebookPost.insights.activity.like`\n      | `facebookPost.insights.activity.comment`\n      | `youtubeVideo.notifySubscribers`\n      | `youtubeVideo.insights.views`\n      | `youtubeVideo.insights.comments`\n      | `youtubeVideo.insights.likes`\n      | `youtubeVideo.insights.dislikes`\n      | `youtubeVideo.insights.shares`\n      | `youtubeShort.notifySubscribers`\n      | `linkedinPost.insights.uniqueImpressions`\n      | `linkedinPost.insights.impression`\n      | `linkedinPost.insights.shares`\n      | `linkedinPost.insights.engagement`\n      | `linkedinPost.insights.clicks`\n      | `linkedinPost.insights.likes`\n      | `linkedinPost.insights.comments`\n      | `twitterPost.insights.retweets`\n      | `twitterPost.insights.replies`\n      | `twitterPost.insights.likes`\n      | `twitterPost.insights.quotes`\n      | `twitterPost.insights.bookmarks`\n      | `twitterPost.insights.impressions`\n      | `pinterestPost.insights.impressions`\n      | `pinterestPost.insights.clicks`\n      | `pinterestPost.insights.saves`\n      | `pinterestPost.insights.comments`\n      | `pinterestPost.insights.reactions`\n      | `gbpPost.callToAction.actionType`\n      | `gbpPost.insights.shares`\n      | `tiktokVideo.privacyLevel`\n      | `tiktokVideo.disableComment`\n      | `tiktokVideo.disableDuet`\n      | `tiktokVideo.disableStitch`\n      | `tiktokVideo.brandContentToggle`\n      | `tiktokVideo.brandOrganicToggle`\n      | `tiktokVideo.insights.views`\n      | `tiktokVideo.insights.likes`\n      | `tiktokVideo.insights.comments`\n      | `tiktokVideo.insights.shares`\n      | `tiktokPhoto.privacyLevel`\n      | `tiktokPhoto.disableComment`\n      | `tiktokPhoto.autoAddMusic`\n      | `tiktokPhoto.brandContentToggle`\n      | `tiktokPhoto.brandOrganicToggle`\n      | `channel.name`\n      | `type`\n      | `status`\n      | `siteAnalytics.traffic`\n      | `siteAnalytics.pageView`\n      | `siteAnalytics.siteBounceRate`\n      | `siteAnalytics.revenue`\n      | `siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `siteAnalytics.conversionFunnel.checkOutSessions`\n      | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `insightsSummary.impressions`\n      | `insightsSummary.interactions`\n      | `insightsSummary.impressionsTotal`\n      | `suggested`\n      | `external`\n      | `siteAssetRef.siteAssetRefType`\n      | `siteAssetRef.name`,\n      4\n    > & {\n      __applicationErrorsType?: UpdateItemApplicationErrors;\n    }\n  >;\n}\n\nexport function rescheduleItem(\n  httpClient: HttpClient\n): RescheduleItemSignature {\n  return (_id: string, options?: RescheduleItemOptions) =>\n    universalRescheduleItem(\n      _id,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface RescheduleItemSignature {\n  /**\n   * Changes the scheduled publish date of a scheduled item.\n   *\n   * Only an item with a `status` of `SCHEDULED` can be rescheduled.\n   * @param - ID of the scheduled item to reschedule.\n   */\n  (_id: string, options?: RescheduleItemOptions): Promise<\n    NonNullablePaths<\n      RescheduleItemResponse,\n      | `item.instagramPost.mediaWrapper.media`\n      | `item.instagramPost.mediaWrapper.media.${number}.type`\n      | `item.instagramPost.insights.likes`\n      | `item.instagramPost.insights.engagement`\n      | `item.instagramPost.insights.impressions`\n      | `item.instagramPost.insights.plays`\n      | `item.instagramPost.insights.reach`\n      | `item.instagramPost.insights.comments`\n      | `item.instagramPost.insights.shares`\n      | `item.instagramPost.insights.saved`\n      | `item.instagramPost.insights.totalInteractions`\n      | `item.instagramStory.insights.impressions`\n      | `item.instagramStory.insights.reach`\n      | `item.instagramStory.insights.replies`\n      | `item.facebookPost.insights.impressions.unique`\n      | `item.facebookPost.insights.impressions.total`\n      | `item.facebookPost.insights.interactions.unique`\n      | `item.facebookPost.insights.interactions.total`\n      | `item.facebookPost.insights.reactions.like`\n      | `item.facebookPost.insights.reactions.love`\n      | `item.facebookPost.insights.reactions.wow`\n      | `item.facebookPost.insights.reactions.haha`\n      | `item.facebookPost.insights.reactions.sad`\n      | `item.facebookPost.insights.reactions.anger`\n      | `item.facebookPost.insights.activity.share`\n      | `item.facebookPost.insights.activity.like`\n      | `item.facebookPost.insights.activity.comment`\n      | `item.youtubeVideo.notifySubscribers`\n      | `item.youtubeVideo.insights.views`\n      | `item.youtubeVideo.insights.comments`\n      | `item.youtubeVideo.insights.likes`\n      | `item.youtubeVideo.insights.dislikes`\n      | `item.youtubeVideo.insights.shares`\n      | `item.youtubeShort.notifySubscribers`\n      | `item.linkedinPost.insights.uniqueImpressions`\n      | `item.linkedinPost.insights.impression`\n      | `item.linkedinPost.insights.shares`\n      | `item.linkedinPost.insights.engagement`\n      | `item.linkedinPost.insights.clicks`\n      | `item.linkedinPost.insights.likes`\n      | `item.linkedinPost.insights.comments`\n      | `item.twitterPost.insights.retweets`\n      | `item.twitterPost.insights.replies`\n      | `item.twitterPost.insights.likes`\n      | `item.twitterPost.insights.quotes`\n      | `item.twitterPost.insights.bookmarks`\n      | `item.twitterPost.insights.impressions`\n      | `item.pinterestPost.insights.impressions`\n      | `item.pinterestPost.insights.clicks`\n      | `item.pinterestPost.insights.saves`\n      | `item.pinterestPost.insights.comments`\n      | `item.pinterestPost.insights.reactions`\n      | `item.gbpPost.callToAction.actionType`\n      | `item.gbpPost.insights.shares`\n      | `item.tiktokVideo.privacyLevel`\n      | `item.tiktokVideo.disableComment`\n      | `item.tiktokVideo.disableDuet`\n      | `item.tiktokVideo.disableStitch`\n      | `item.tiktokVideo.brandContentToggle`\n      | `item.tiktokVideo.brandOrganicToggle`\n      | `item.tiktokVideo.insights.views`\n      | `item.tiktokVideo.insights.likes`\n      | `item.tiktokVideo.insights.comments`\n      | `item.tiktokVideo.insights.shares`\n      | `item.tiktokPhoto.privacyLevel`\n      | `item.tiktokPhoto.disableComment`\n      | `item.tiktokPhoto.autoAddMusic`\n      | `item.tiktokPhoto.brandContentToggle`\n      | `item.tiktokPhoto.brandOrganicToggle`\n      | `item.channel.name`\n      | `item.type`\n      | `item.status`\n      | `item.siteAnalytics.traffic`\n      | `item.siteAnalytics.pageView`\n      | `item.siteAnalytics.siteBounceRate`\n      | `item.siteAnalytics.revenue`\n      | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n      | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n      | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n      | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n      | `item.insightsSummary.impressions`\n      | `item.insightsSummary.interactions`\n      | `item.insightsSummary.impressionsTotal`\n      | `item.suggested`\n      | `item.external`\n      | `item.siteAssetRef.siteAssetRefType`\n      | `item.siteAssetRef.name`,\n      5\n    > & {\n      __applicationErrorsType?: RescheduleItemApplicationErrors;\n    }\n  >;\n}\n\nexport function deleteItem(httpClient: HttpClient): DeleteItemSignature {\n  return (_id: string) =>\n    universalDeleteItem(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteItemSignature {\n  /**\n   * Deletes an item.\n   * @returns DeleteItemResponse\n   */\n  (_id: string): Promise<\n    void & {\n      __applicationErrorsType?: DeleteItemApplicationErrors;\n    }\n  >;\n}\n\nexport function bulkPublishItems(\n  httpClient: HttpClient\n): BulkPublishItemsSignature {\n  return (\n    items: NonNullablePaths<Item, `channel` | `channel.accountId`, 1>[],\n    options?: BulkPublishItemsOptions\n  ) =>\n    universalBulkPublishItems(\n      items,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkPublishItemsSignature {\n  /**\n   * Publishes multiple items in a single call.\n   *\n   * Each item is published independently. To publish a single item, call Publish Item.\n   * @param - Items to publish.\n   */\n  (\n    items: NonNullablePaths<Item, `channel` | `channel.accountId`, 1>[],\n    options?: BulkPublishItemsOptions\n  ): Promise<\n    NonNullablePaths<\n      BulkPublishItemsResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `results.${number}.item.youtubeVideo.notifySubscribers`\n      | `results.${number}.item.youtubeShort.notifySubscribers`\n      | `results.${number}.item.tiktokVideo.privacyLevel`\n      | `results.${number}.item.tiktokVideo.disableComment`\n      | `results.${number}.item.tiktokVideo.disableDuet`\n      | `results.${number}.item.tiktokVideo.disableStitch`\n      | `results.${number}.item.tiktokVideo.brandContentToggle`\n      | `results.${number}.item.tiktokVideo.brandOrganicToggle`\n      | `results.${number}.item.tiktokPhoto.privacyLevel`\n      | `results.${number}.item.tiktokPhoto.disableComment`\n      | `results.${number}.item.tiktokPhoto.autoAddMusic`\n      | `results.${number}.item.tiktokPhoto.brandContentToggle`\n      | `results.${number}.item.tiktokPhoto.brandOrganicToggle`\n      | `results.${number}.item.channel.name`\n      | `results.${number}.item.type`\n      | `results.${number}.item.status`\n      | `results.${number}.item.siteAnalytics.traffic`\n      | `results.${number}.item.siteAnalytics.pageView`\n      | `results.${number}.item.siteAnalytics.siteBounceRate`\n      | `results.${number}.item.siteAnalytics.revenue`\n      | `results.${number}.item.insightsSummary.impressions`\n      | `results.${number}.item.insightsSummary.interactions`\n      | `results.${number}.item.insightsSummary.impressionsTotal`\n      | `results.${number}.item.suggested`\n      | `results.${number}.item.external`\n      | `results.${number}.item.siteAssetRef.siteAssetRefType`\n      | `results.${number}.item.siteAssetRef.name`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      4\n    > & {\n      __applicationErrorsType?: BulkPublishItemsApplicationErrors;\n    }\n  >;\n}\n\nexport const onItemPublishFailed = /*#__PURE__*/ EventDefinition(\n  'wix.promote.publisher.v1.item_item_publish_failed',\n  true,\n  (event: ItemPublishFailedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'data.item.publishedDate' },\n            { path: 'data.item.facebookPost.insights.updatedDate' },\n            { path: 'data.item.facebookReel.insights.updatedDate' },\n            { path: 'data.item.facebookStory.insights.updatedDate' },\n            { path: 'data.item.youtubeVideo.insights.updatedDate' },\n            { path: 'data.item.youtubeShort.insights.updatedDate' },\n            { path: 'data.item.linkedinPost.insights.updatedDate' },\n            { path: 'data.item.twitterPost.insights.updatedDate' },\n            { path: 'data.item.pinterestPost.insights.updatedDate' },\n            { path: 'data.item.gbpPost.insights.updatedDate' },\n            { path: 'data.item.tiktokVideo.insights.updatedDate' },\n            { path: 'data.item.tiktokPhoto.insights.updatedDate' },\n            { path: 'data.item.schedulingInfo.scheduledDate' },\n            { path: 'data.item.schedulingInfo.schedulingTimestamp' },\n            { path: 'data.item.siteAnalytics.updatedDate' },\n            { path: 'data.item.insightsSummary.updatedDate' },\n            { path: 'data.item.draftInfo.createdDate' },\n            { path: 'data.item.draftInfo.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'data.item.linkedinPost.insights.engagement' },\n            { path: 'data.item.siteAnalytics.siteBounceRate' },\n            { path: 'data.item.siteAnalytics.revenue' },\n          ],\n        },\n      ])\n    )\n)<ItemPublishFailedEnvelope>();\nexport const onItemPublishScheduled = /*#__PURE__*/ EventDefinition(\n  'wix.promote.publisher.v1.item_item_publish_scheduled',\n  true,\n  (event: ItemPublishScheduledEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'data.item.publishedDate' },\n            { path: 'data.item.facebookPost.insights.updatedDate' },\n            { path: 'data.item.facebookReel.insights.updatedDate' },\n            { path: 'data.item.facebookStory.insights.updatedDate' },\n            { path: 'data.item.youtubeVideo.insights.updatedDate' },\n            { path: 'data.item.youtubeShort.insights.updatedDate' },\n            { path: 'data.item.linkedinPost.insights.updatedDate' },\n            { path: 'data.item.twitterPost.insights.updatedDate' },\n            { path: 'data.item.pinterestPost.insights.updatedDate' },\n            { path: 'data.item.gbpPost.insights.updatedDate' },\n            { path: 'data.item.tiktokVideo.insights.updatedDate' },\n            { path: 'data.item.tiktokPhoto.insights.updatedDate' },\n            { path: 'data.item.schedulingInfo.scheduledDate' },\n            { path: 'data.item.schedulingInfo.schedulingTimestamp' },\n            { path: 'data.item.siteAnalytics.updatedDate' },\n            { path: 'data.item.insightsSummary.updatedDate' },\n            { path: 'data.item.draftInfo.createdDate' },\n            { path: 'data.item.draftInfo.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'data.item.linkedinPost.insights.engagement' },\n            { path: 'data.item.siteAnalytics.siteBounceRate' },\n            { path: 'data.item.siteAnalytics.revenue' },\n          ],\n        },\n      ])\n    )\n)<ItemPublishScheduledEnvelope>();\nexport const onItemPublishStarted = /*#__PURE__*/ EventDefinition(\n  'wix.promote.publisher.v1.item_item_publish_started',\n  true,\n  (event: ItemPublishStartedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'data.item.publishedDate' },\n            { path: 'data.item.facebookPost.insights.updatedDate' },\n            { path: 'data.item.facebookReel.insights.updatedDate' },\n            { path: 'data.item.facebookStory.insights.updatedDate' },\n            { path: 'data.item.youtubeVideo.insights.updatedDate' },\n            { path: 'data.item.youtubeShort.insights.updatedDate' },\n            { path: 'data.item.linkedinPost.insights.updatedDate' },\n            { path: 'data.item.twitterPost.insights.updatedDate' },\n            { path: 'data.item.pinterestPost.insights.updatedDate' },\n            { path: 'data.item.gbpPost.insights.updatedDate' },\n            { path: 'data.item.tiktokVideo.insights.updatedDate' },\n            { path: 'data.item.tiktokPhoto.insights.updatedDate' },\n            { path: 'data.item.schedulingInfo.scheduledDate' },\n            { path: 'data.item.schedulingInfo.schedulingTimestamp' },\n            { path: 'data.item.siteAnalytics.updatedDate' },\n            { path: 'data.item.insightsSummary.updatedDate' },\n            { path: 'data.item.draftInfo.createdDate' },\n            { path: 'data.item.draftInfo.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'data.item.linkedinPost.insights.engagement' },\n            { path: 'data.item.siteAnalytics.siteBounceRate' },\n            { path: 'data.item.siteAnalytics.revenue' },\n          ],\n        },\n      ])\n    )\n)<ItemPublishStartedEnvelope>();\nexport const onItemPublished = /*#__PURE__*/ EventDefinition(\n  'wix.promote.publisher.v1.item_item_published',\n  true,\n  (event: ItemPublishedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'data.item.publishedDate' },\n            { path: 'data.item.facebookPost.insights.updatedDate' },\n            { path: 'data.item.facebookReel.insights.updatedDate' },\n            { path: 'data.item.facebookStory.insights.updatedDate' },\n            { path: 'data.item.youtubeVideo.insights.updatedDate' },\n            { path: 'data.item.youtubeShort.insights.updatedDate' },\n            { path: 'data.item.linkedinPost.insights.updatedDate' },\n            { path: 'data.item.twitterPost.insights.updatedDate' },\n            { path: 'data.item.pinterestPost.insights.updatedDate' },\n            { path: 'data.item.gbpPost.insights.updatedDate' },\n            { path: 'data.item.tiktokVideo.insights.updatedDate' },\n            { path: 'data.item.tiktokPhoto.insights.updatedDate' },\n            { path: 'data.item.schedulingInfo.scheduledDate' },\n            { path: 'data.item.schedulingInfo.schedulingTimestamp' },\n            { path: 'data.item.siteAnalytics.updatedDate' },\n            { path: 'data.item.insightsSummary.updatedDate' },\n            { path: 'data.item.draftInfo.createdDate' },\n            { path: 'data.item.draftInfo.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [\n            { path: 'data.item.linkedinPost.insights.engagement' },\n            { path: 'data.item.siteAnalytics.siteBounceRate' },\n            { path: 'data.item.siteAnalytics.revenue' },\n          ],\n        },\n      ])\n    )\n)<ItemPublishedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  AddressLocation,\n  ApplicationError,\n  AssetReference,\n  BaseEventMetadata,\n  BulkActionMetadata,\n  BulkItemsResult,\n  BulkPublishItemsOptions,\n  BulkPublishItemsPolicy,\n  BulkPublishItemsRequest,\n  BulkPublishItemsResponse,\n  CancelScheduledItemRequest,\n  CancelScheduledItemResponse,\n  Channel,\n  ChannelName,\n  CommentTrigger,\n  ConsumerInfo,\n  ConsumerType,\n  ConversionFunnel,\n  CreateDraftItemOptions,\n  CreateDraftItemRequest,\n  CreateDraftItemResponse,\n  DeleteItemRequest,\n  DeleteItemResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  DraftInfo,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  FacebokActivity,\n  FacebookImpressions,\n  FacebookInsights,\n  FacebookInteractions,\n  FacebookPost,\n  FacebookPostUrlOneOf,\n  FacebookReactions,\n  FacebookReel,\n  FacebookStory,\n  GbpInsights,\n  GbpPost,\n  GbpPostCallToAction,\n  GbpPostCallToActionType,\n  GetItemRequest,\n  GetItemResponse,\n  GetItemsRequest,\n  GetItemsResponse,\n  GetOrCreateWixelBindingByFileRequest,\n  GetOrCreateWixelBindingByFileResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  InsightsSummary,\n  InstagramInsights,\n  InstagramPost,\n  InstagramPostUrlOneOf,\n  InstagramStory,\n  InstagramStoryInsights,\n  IsEligibleForSchedulingRequest,\n  IsEligibleForSchedulingResponse,\n  Item,\n  ItemAutomation,\n  ItemAutomationActionOneOf,\n  ItemAutomationTriggerOneOf,\n  ItemAutomationsWrapper,\n  ItemDataOneOf,\n  ItemExtras,\n  ItemMetadata,\n  ItemPublishFailed,\n  ItemPublishFailedEnvelope,\n  ItemPublishScheduled,\n  ItemPublishScheduledEnvelope,\n  ItemPublishStarted,\n  ItemPublishStartedEnvelope,\n  ItemPublished,\n  ItemPublishedEnvelope,\n  ItemType,\n  LinkMetadata,\n  LinkedinPost,\n  LinkedinPostInsights,\n  LinkedinPostUrlOneOf,\n  Media,\n  MediaType,\n  MediaWrapper,\n  MessageEnvelope,\n  Paging,\n  PagingMetadata,\n  PinterestInsights,\n  PinterestPost,\n  PublicationErrorDetails,\n  PublishDraftRequest,\n  PublishDraftResponse,\n  PublishItemByIdOptions,\n  PublishItemByIdRequest,\n  PublishItemByIdResponse,\n  PublishItemOptions,\n  PublishItemRequest,\n  PublishItemResponse,\n  PublishMultiStoryDraftOptions,\n  PublishMultiStoryDraftRequest,\n  PublishMultiStoryDraftResponse,\n  PublishingTarget,\n  Query,\n  QueryItemsRequest,\n  QueryItemsResponse,\n  ReplyToCommentAction,\n  RescheduleItemOptions,\n  RescheduleItemRequest,\n  RescheduleItemResponse,\n  RestoreInfo,\n  SchedulingInfo,\n  SchedulingRestrictedReason,\n  SendPrivateReplyAction,\n  SiteAnalytics,\n  SortOrder,\n  Sorting,\n  Status,\n  TikTokInsights,\n  TikTokPhoto,\n  TikTokPrivacyLevel,\n  TikTokVideo,\n  TwitterInsights,\n  TwitterPost,\n  TwitterPostUrlOneOf,\n  Type,\n  UpdateItem,\n  UpdateItemRequest,\n  UpdateItemResponse,\n  WebhookIdentityType,\n  YouTubeShort,\n  YouTubeVideo,\n  YoutubeInsights,\n} from './promote-publisher-v1-item-items.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPromotePublisherV1Item from './promote-publisher-v1-item-items.http.js';\n\n/** An item is a social media post managed through the Publisher API. An item can be a published post, a scheduled post, or a draft, as indicated by its `status`, and it targets a single connected social channel such as Instagram, Facebook, or TikTok. */\nexport interface Item extends ItemDataOneOf {\n  /** Instagram post content. */\n  instagramPost?: InstagramPost;\n  /** Instagram story content. */\n  instagramStory?: InstagramStory;\n  /** Facebook post content. */\n  facebookPost?: FacebookPost;\n  /** Facebook reel content. */\n  facebookReel?: FacebookReel;\n  /** Facebook story content. */\n  facebookStory?: FacebookStory;\n  /** YouTube video content. */\n  youtubeVideo?: YouTubeVideo;\n  /** YouTube short content. */\n  youtubeShort?: YouTubeShort;\n  /** LinkedIn post content. */\n  linkedinPost?: LinkedinPost;\n  /**\n   * Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @deprecated Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @targetRemovalDate 2026-07-31\n   */\n  twitterPost?: TwitterPost;\n  /** Pinterest post content. */\n  pinterestPost?: PinterestPost;\n  /** Google Business Profile post content. */\n  gbpPost?: GbpPost;\n  /** TikTok video content. */\n  tiktokVideo?: TikTokVideo;\n  /** TikTok photo content. */\n  tiktokPhoto?: TikTokPhoto;\n  /**\n   * Item ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Social channel the item is published to, and the account within that channel. */\n  channel?: Channel;\n  /**\n   * Item format. The `type` and the content set in `data` must match a combination supported by the item's `channel.name`:\n   *\n   * - Instagram: `POST` with `instagramPost`, or `STORY` with `instagramStory`.\n   * - Facebook: `POST` with `facebookPost`, `REEL` with `facebookReel`, or `STORY` with `facebookStory`.\n   * - YouTube: `VIDEO` with `youtubeVideo`, or `SHORT` with `youtubeShort`.\n   * - LinkedIn: `POST` with `linkedinPost`.\n   * - X (Twitter): `POST` with `twitterPost`. Deprecated: No longer functional as of July 31, 2026.\n   * - Pinterest: `POST` with `pinterestPost`.\n   * - Google Business Profile: `POST` with `gbpPost`.\n   * - TikTok: `POST` with `tiktokPhoto`, or `VIDEO` with `tiktokVideo`.\n   */\n  type?: ItemTypeWithLiterals;\n  /**\n   * Current status of the item in its lifecycle.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n  /**\n   * Date and time the item was published. Returned only after the item is published.\n   * @readonly\n   */\n  publishedDate?: Date | null;\n  /** Scheduling info. Set to schedule the item for a future date instead of publishing it immediately. */\n  schedulingInfo?: SchedulingInfo;\n  /**\n   * Identifies what created the item.\n   *\n   * Specify `consumerInfo.name` when you create or publish an item, using one stable name for whatever is\n   * making the call, whether that's an app, an AI agent, or a service of your own. An item created without\n   * it is stored with an empty name, and the name can't be added later, because Update Item doesn't change\n   * it. See\n   * [Identifying what created an item](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/item-v1/introduction#identifying-what-created-an-item).\n   */\n  consumerInfo?: ConsumerInfo;\n  /** Caller-defined reference that uniquely identifies the item. Can be used to prevent duplicate publishing: an attempt to publish a second item with the same `referenceId` fails. Can also be used as a UTM campaign ID. */\n  referenceId?: string | null;\n  /** Aggregated analytics for the site, attributed to traffic from this post. */\n  siteAnalytics?: SiteAnalytics;\n  /** Summary of the post's performance on the social channel, such as impressions and interactions. */\n  insightsSummary?: InsightsSummary;\n  /** Creation and update dates, returned for draft items. */\n  draftInfo?: DraftInfo;\n  /** Whether the item was generated as an AI suggestion. */\n  suggested?: boolean;\n  /** Whether the item is a post created natively on the social channel rather than published through Wix. */\n  external?: boolean;\n  /**\n   * Details of why the item failed to publish. Returned only when `status` is `FAILED`.\n   * @readonly\n   */\n  publicationError?: PublicationErrorDetails;\n  /**\n   * Reference to the site content the post promotes, such as a product, a blog post, or an event.\n   * Set per channel.\n   */\n  siteAssetRef?: AssetReference;\n  /**\n   * ID of the item this item was derived from, when publishing produced several items\n   * from one. Currently set only by `PublishMultiStoryDraft`, which splits a multi-media\n   * story draft into one published item per frame: every resulting item carries the\n   * originating draft's ID here. Lets a consumer re-correlate the new items with whatever\n   * it had recorded against the original draft, which no longer exists after the split.\n   * Set by the publisher, never by the caller.\n   * @format GUID\n   * @readonly\n   */\n  originItemId?: string | null;\n  /**\n   * Engagement automations on the published post. Updates replace the whole list. Facebook posts only.\n   * @internal\n   */\n  automationsWrapper?: ItemAutomationsWrapper;\n}\n\n/** @oneof */\nexport interface ItemDataOneOf {\n  /** Instagram post content. */\n  instagramPost?: InstagramPost;\n  /** Instagram story content. */\n  instagramStory?: InstagramStory;\n  /** Facebook post content. */\n  facebookPost?: FacebookPost;\n  /** Facebook reel content. */\n  facebookReel?: FacebookReel;\n  /** Facebook story content. */\n  facebookStory?: FacebookStory;\n  /** YouTube video content. */\n  youtubeVideo?: YouTubeVideo;\n  /** YouTube short content. */\n  youtubeShort?: YouTubeShort;\n  /** LinkedIn post content. */\n  linkedinPost?: LinkedinPost;\n  /**\n   * Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @deprecated Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @targetRemovalDate 2026-07-31\n   */\n  twitterPost?: TwitterPost;\n  /** Pinterest post content. */\n  pinterestPost?: PinterestPost;\n  /** Google Business Profile post content. */\n  gbpPost?: GbpPost;\n  /** TikTok video content. */\n  tiktokVideo?: TikTokVideo;\n  /** TikTok photo content. */\n  tiktokPhoto?: TikTokPhoto;\n}\n\n/** Supported social channel. */\nexport enum ChannelName {\n  INSTAGRAM = 'INSTAGRAM',\n  FACEBOOK = 'FACEBOOK',\n  YOUTUBE = 'YOUTUBE',\n  LINKEDIN = 'LINKEDIN',\n  /** Deprecated: No longer functional as of July 31, 2026. */\n  TWITTER = 'TWITTER',\n  PINTEREST = 'PINTEREST',\n  /** Google Business Profile. */\n  GBP = 'GBP',\n  TIKTOK = 'TIKTOK',\n}\n\n/** @enumType */\nexport type ChannelNameWithLiterals =\n  | ChannelName\n  | 'INSTAGRAM'\n  | 'FACEBOOK'\n  | 'YOUTUBE'\n  | 'LINKEDIN'\n  | 'TWITTER'\n  | 'PINTEREST'\n  | 'GBP'\n  | 'TIKTOK';\n\nexport interface PublishingTarget {\n  /**\n   * ID of the publishing target.\n   * @maxLength 128\n   */\n  _id?: string | null;\n  /**\n   * Display name of the publishing target.\n   * @maxLength 2000\n   */\n  displayName?: string | null;\n  /**\n   * URL of the publishing target's picture.\n   * @format WEB_URL\n   */\n  pictureUrl?: string | null;\n}\n\nexport enum ConsumerType {\n  METASITE = 'METASITE',\n}\n\n/** @enumType */\nexport type ConsumerTypeWithLiterals = ConsumerType | 'METASITE';\n\n/** Type of site asset. */\nexport enum Type {\n  /** A Wix Blog post. */\n  BLOG_POST = 'BLOG_POST',\n  /** A Wix Events event. */\n  EVENT = 'EVENT',\n  /** A Wix Stores product. */\n  STORES_PRODUCT = 'STORES_PRODUCT',\n  /** A Wix Bookings service. */\n  BOOKINGS_SERVICE = 'BOOKINGS_SERVICE',\n  /** A Wix Stores coupon. */\n  STORES_COUPON = 'STORES_COUPON',\n  /** A Wix Stores category. */\n  STORES_CATEGORY = 'STORES_CATEGORY',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n  | Type\n  | 'BLOG_POST'\n  | 'EVENT'\n  | 'STORES_PRODUCT'\n  | 'BOOKINGS_SERVICE'\n  | 'STORES_COUPON'\n  | 'STORES_CATEGORY';\n\nexport interface ItemAutomation\n  extends ItemAutomationTriggerOneOf,\n    ItemAutomationActionOneOf {\n  /** Triggered by a comment on the post. */\n  commentTrigger?: CommentTrigger;\n  /** Sends the commenter an automated private reply. */\n  sendPrivateReply?: SendPrivateReplyAction;\n  /** Posts an automated public reply in the comment's thread. */\n  replyToComment?: ReplyToCommentAction;\n  /** Whether the automation is active. */\n  enabled?: boolean;\n}\n\n/** @oneof */\nexport interface ItemAutomationTriggerOneOf {\n  /** Triggered by a comment on the post. */\n  commentTrigger?: CommentTrigger;\n}\n\n/** @oneof */\nexport interface ItemAutomationActionOneOf {\n  /** Sends the commenter an automated private reply. */\n  sendPrivateReply?: SendPrivateReplyAction;\n  /** Posts an automated public reply in the comment's thread. */\n  replyToComment?: ReplyToCommentAction;\n}\n\nexport interface CommentTrigger {\n  /**\n   * The automation fires when a comment contains any of these phrases (case-insensitive).\n   * @maxSize 20\n   * @maxLength 200\n   */\n  phrases?: string[];\n}\n\nexport interface SendPrivateReplyAction {\n  /**\n   * Message text of the private reply.\n   * @maxLength 2000\n   */\n  message?: string | null;\n}\n\nexport interface ReplyToCommentAction {\n  /**\n   * Message text of the public reply.\n   * @maxLength 2000\n   */\n  message?: string | null;\n}\n\nexport interface Channel {\n  /** Social channel the item is published to. */\n  name?: ChannelNameWithLiterals;\n  /** ID of the connected account the item is published to. */\n  accountId?: string | null;\n  /**\n   * Display name of the connected account the item is published to.\n   * @readonly\n   */\n  accountName?: string | null;\n  /**\n   * ID of the post on the social channel. Returned after the item is published.\n   * @readonly\n   */\n  externalItemId?: string | null;\n  /**\n   * URL of the post on the social channel. Returned after the item is published.\n   * @readonly\n   * @format WEB_URL\n   */\n  externalItemUrl?: string | null;\n  /** Specific destination within the account, such as a Facebook page or a Pinterest board. */\n  publishingTarget?: PublishingTarget;\n}\n\n/** Item format. */\nexport enum ItemType {\n  /** A standard post. */\n  POST = 'POST',\n  /** A short-form vertical video reel. */\n  REEL = 'REEL',\n  /** A video. */\n  VIDEO = 'VIDEO',\n  /** A short-form vertical video. */\n  SHORT = 'SHORT',\n  /** A story that's available for a limited time. */\n  STORY = 'STORY',\n}\n\n/** @enumType */\nexport type ItemTypeWithLiterals =\n  | ItemType\n  | 'POST'\n  | 'REEL'\n  | 'VIDEO'\n  | 'SHORT'\n  | 'STORY';\n\n/** Status of an item in its lifecycle. */\nexport enum Status {\n  /** Published to the social channel. */\n  PUBLISHED = 'PUBLISHED',\n  /** Scheduled to be published at a future date. */\n  SCHEDULED = 'SCHEDULED',\n  /** Scheduling was canceled before the item was published. */\n  CANCELED = 'CANCELED',\n  /** Publishing failed. */\n  FAILED = 'FAILED',\n  /** Deleted. */\n  DELETED = 'DELETED',\n  /** Publishing is in progress. */\n  PROCESSING = 'PROCESSING',\n  /** Saved as a draft, not yet published. */\n  DRAFT = 'DRAFT',\n  /** Queued for publishing as part of a bulk operation. */\n  IN_QUEUE = 'IN_QUEUE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'PUBLISHED'\n  | 'SCHEDULED'\n  | 'CANCELED'\n  | 'FAILED'\n  | 'DELETED'\n  | 'PROCESSING'\n  | 'DRAFT'\n  | 'IN_QUEUE';\n\nexport interface SchedulingInfo {\n  /** Date and time the item is scheduled to be published. */\n  scheduledDate?: Date | null;\n  /**\n   * Date and time the item was scheduled.\n   * @readonly\n   */\n  schedulingTimestamp?: Date | null;\n}\n\nexport interface ConsumerInfo {\n  /**\n   * The consumer type\n   * @internal\n   */\n  type?: ConsumerTypeWithLiterals;\n  /**\n   * The consumer id\n   * @internal\n   */\n  _id?: string | null;\n  /**\n   * Stable name identifying what created the item, for example `social-marketing` for\n   * the Social Media Marketing dashboard. Use the same name across every call the caller makes, so\n   * that its items can be told apart from items created elsewhere on the site. Set on creation only.\n   * Update Item ignores it.\n   */\n  name?: string | null;\n  /**\n   * The consumer asset id e.g. store item, an event etc'\n   * @internal\n   */\n  assetId?: string | null;\n}\n\nexport interface InstagramPost extends InstagramPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Caption for the post. Can include hashtags (for example, `#crazywildebeest`) and mentions of Instagram users (for example, `@natgeo`). Mentioned users are notified when the post is published. Supports up to 30 hashtags and 20 mentions.\n   * @maxLength 2200\n   */\n  caption?: string | null;\n  /**\n   * The post URL on Instagram.\n   * @readonly\n   */\n  postUrl?: string | null;\n  /**\n   * Insights from Instagram.\n   * @readonly\n   */\n  insights?: InstagramInsights;\n}\n\n/** @oneof */\nexport interface InstagramPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface MediaWrapper {\n  /** List of media items. */\n  media?: Media[];\n}\n\nexport interface Media {\n  /** Media type. */\n  type?: MediaTypeWithLiterals;\n  /**\n   * Media URL.\n   * @format WEB_URL\n   */\n  url?: string | null;\n  /**\n   * Media Manager file ID backing the media. Available only when the media is stored in the Media Manager.\n   * @maxLength 1000\n   */\n  fileId?: string | null;\n  /**\n   * Set on media whose url is temporary and should be imported into the user's Media Manager.\n   * May be passed on input, and may also be returned when relevant so the client can pass it back\n   * on the item write. When true, the server imports the temporary url into the user's Media Manager\n   * on publish/schedule/save and stores the resulting url + file_id.\n   * @internal\n   */\n  requiresPersistence?: boolean | null;\n}\n\nexport enum MediaType {\n  IMAGE = 'IMAGE',\n  VIDEO = 'VIDEO',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals = MediaType | 'IMAGE' | 'VIDEO';\n\nexport interface InstagramInsights {\n  /** Number of likes. */\n  likes?: number;\n  /** Number of engagements. */\n  engagement?: number;\n  /** Number of impressions. */\n  impressions?: number;\n  /** Number of plays. */\n  plays?: number;\n  /** Number of accounts reached. */\n  reach?: number;\n  /** Number of comments. */\n  comments?: number;\n  /** Number of shares. */\n  shares?: number;\n  /** Number of saves. */\n  saved?: number;\n  /** Total number of interactions. */\n  totalInteractions?: number;\n}\n\nexport interface InstagramStory {\n  /**\n   * The story URL on Instagram.\n   * @readonly\n   * @format WEB_URL\n   */\n  storyUrl?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * insights data from Instagram.\n   * @readonly\n   */\n  insights?: InstagramStoryInsights;\n}\n\nexport interface InstagramStoryInsights {\n  /** Number of impressions. */\n  impressions?: number;\n  /** Number of accounts reached. */\n  reach?: number;\n  /** Number of replies. */\n  replies?: number;\n}\n\nexport interface FacebookPost extends FacebookPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /** The page ID to publish the post to. */\n  pageId?: string | null;\n  /** Caption for the post. */\n  caption?: string | null;\n  /**\n   * The post URL on Facebook.\n   * @readonly\n   */\n  postUrl?: string | null;\n  /** Link preview metadata. Available only when the post contains a link. */\n  linkMetadata?: LinkMetadata;\n  /**\n   * Insights from Facebook.\n   * @readonly\n   */\n  insights?: FacebookInsights;\n}\n\n/** @oneof */\nexport interface FacebookPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface LinkMetadata {\n  /** Thumbnail URL for the link preview. */\n  thumbnailUrl?: string | null;\n  /** Title for the link preview. */\n  title?: string | null;\n  /** Description for the link preview. */\n  description?: string | null;\n}\n\nexport interface FacebookInsights {\n  /** Impression counts. */\n  impressions?: FacebookImpressions;\n  /** Interaction counts. */\n  interactions?: FacebookInteractions;\n  /** Reaction counts. */\n  reactions?: FacebookReactions;\n  /** Activity counts. */\n  activity?: FacebokActivity;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface FacebookImpressions {\n  /** Number of unique impressions. */\n  unique?: number;\n  /** Total number of impressions. */\n  total?: number;\n}\n\nexport interface FacebookInteractions {\n  /** Number of unique interactions. */\n  unique?: number;\n  /** Total number of interactions. */\n  total?: number;\n}\n\nexport interface FacebookReactions {\n  /** Number of \"like\" reactions. */\n  like?: number;\n  /** Number of \"love\" reactions. */\n  love?: number;\n  /** Number of \"wow\" reactions. */\n  wow?: number;\n  /** Number of \"haha\" reactions. */\n  haha?: number;\n  /** Number of \"sad\" reactions. */\n  sad?: number;\n  /** Number of \"angry\" reactions. */\n  anger?: number;\n}\n\nexport interface FacebokActivity {\n  /** Number of shares. */\n  share?: number;\n  /** Number of likes. */\n  like?: number;\n  /** Number of comments. */\n  comment?: number;\n}\n\nexport interface FacebookReel {\n  /** The page ID to publish the reel to. */\n  pageId?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** A description for the reel. */\n  description?: string | null;\n  /**\n   * Insights from Facebook.\n   * @readonly\n   */\n  insights?: FacebookInsights;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface FacebookStory {\n  /**\n   * The page ID to publish the story to.\n   * @maxLength 1024\n   */\n  pageId?: string | null;\n  /**\n   * The story URL on Facebook.\n   * @readonly\n   * @format WEB_URL\n   */\n  storyUrl?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Insights from Facebook.\n   * @readonly\n   */\n  insights?: FacebookInsights;\n}\n\nexport interface YouTubeVideo {\n  /** The channel ID to publish the video to. */\n  channelId?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** A title for the video. */\n  title?: string | null;\n  /** A description for the video. */\n  description?: string | null;\n  /** A category for the video. */\n  categoryId?: string | null;\n  /** Whether to notify channel subscribers when the video is published. */\n  notifySubscribers?: boolean;\n  /**\n   * Insights data from YouTube.\n   * @readonly\n   */\n  insights?: YoutubeInsights;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface YoutubeInsights {\n  /** Number of views. */\n  views?: number;\n  /** Number of comments. */\n  comments?: number;\n  /** Number of likes. */\n  likes?: number;\n  /** Number of dislikes. */\n  dislikes?: number;\n  /** Number of shares. */\n  shares?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface YouTubeShort {\n  /** The channel ID to publish the short to. */\n  channelId?: string | null;\n  /** The short URL. */\n  videoUrl?: string | null;\n  /** A title for the short. */\n  title?: string | null;\n  /** A description for the short. */\n  description?: string | null;\n  /** A category for the short. */\n  categoryId?: string | null;\n  /** Whether to notify channel subscribers when the short is published. */\n  notifySubscribers?: boolean;\n  /**\n   * Insights data from YouTube.\n   * @readonly\n   */\n  insights?: YoutubeInsights;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface LinkedinPost extends LinkedinPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /** Author ID of the post. Can be an organization page or a personal feed. */\n  authorId?: string | null;\n  /** Caption for the post. */\n  caption?: string | null;\n  /** Link preview metadata. Available only when the post contains a link. */\n  linkMetadata?: LinkMetadata;\n  /**\n   * Insights from LinkedIn.\n   * @readonly\n   */\n  insights?: LinkedinPostInsights;\n}\n\n/** @oneof */\nexport interface LinkedinPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\nexport interface LinkedinPostInsights {\n  /** Number of unique impressions. */\n  uniqueImpressions?: number;\n  /** Total number of impressions. */\n  impression?: number;\n  /** Number of shares. */\n  shares?: number;\n  /** Engagement rate. */\n  engagement?: number;\n  /** Number of clicks. */\n  clicks?: number;\n  /** Number of likes. */\n  likes?: number;\n  /** Number of comments. */\n  comments?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\n/** Deprecated: No longer functional as of July 31, 2026. */\nexport interface TwitterPost extends TwitterPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /** Caption for the post. */\n  caption?: string | null;\n  /** Link preview metadata. Available only when the post contains a link. */\n  linkMetadata?: LinkMetadata;\n  /**\n   * Insights from X (Twitter).\n   * @readonly\n   */\n  insights?: TwitterInsights;\n}\n\n/** @oneof */\nexport interface TwitterPostUrlOneOf {\n  /** The image URL. */\n  imageUrl?: string | null;\n  /** The video URL. */\n  videoUrl?: string | null;\n  /** The link URL. */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n}\n\n/** Deprecated: No longer functional as of July 31, 2026. */\nexport interface TwitterInsights {\n  /** Number of retweets. */\n  retweets?: number;\n  /** Number of replies. */\n  replies?: number;\n  /** Number of likes. */\n  likes?: number;\n  /** Number of quote posts. */\n  quotes?: number;\n  /** Number of bookmarks. */\n  bookmarks?: number;\n  /** Number of impressions. */\n  impressions?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface PinterestPost {\n  /**\n   * The board ID to publish the post to.\n   * @maxLength 128\n   */\n  boardId?: string | null;\n  /**\n   * The title of the post.\n   * @maxLength 100\n   */\n  title?: string | null;\n  /**\n   * The description of the post.\n   * @maxLength 800\n   */\n  description?: string | null;\n  /**\n   * The link to include in the post.\n   * @maxLength 2048\n   */\n  link?: string | null;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Insights from Pinterest.\n   * @readonly\n   */\n  insights?: PinterestInsights;\n}\n\nexport interface PinterestInsights {\n  /** Number of impressions. */\n  impressions?: number;\n  /** Number of clicks. */\n  clicks?: number;\n  /** Number of saves. */\n  saves?: number;\n  /** Number of comments. */\n  comments?: number;\n  /** Number of reactions. */\n  reactions?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface GbpPost {\n  /**\n   * The location ID to publish the post to.\n   * @maxLength 128\n   */\n  locationId?: string | null;\n  /**\n   * Account (group) ID of the location.\n   * @maxLength 128\n   */\n  locationAccountId?: string | null;\n  /**\n   * The description of the post.\n   * @maxLength 1500\n   */\n  description?: string | null;\n  /** Call to action type and URL to include in the post. */\n  callToAction?: GbpPostCallToAction;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Insights from Google Business Profile.\n   * @readonly\n   */\n  insights?: GbpInsights;\n}\n\nexport interface GbpPostCallToAction {\n  /** Type of the call to action. */\n  actionType?: GbpPostCallToActionTypeWithLiterals;\n  /**\n   * URL of the call to action.\n   * @maxLength 2048\n   */\n  url?: string | null;\n}\n\n/** Type of call to action button shown on the post. */\nexport enum GbpPostCallToActionType {\n  BOOK = 'BOOK',\n  ORDER = 'ORDER',\n  SHOP = 'SHOP',\n  LEARN_MORE = 'LEARN_MORE',\n  SIGN_UP = 'SIGN_UP',\n}\n\n/** @enumType */\nexport type GbpPostCallToActionTypeWithLiterals =\n  | GbpPostCallToActionType\n  | 'BOOK'\n  | 'ORDER'\n  | 'SHOP'\n  | 'LEARN_MORE'\n  | 'SIGN_UP';\n\nexport interface GbpInsights {\n  /** Number of shares. Google Business Profile post insights aren't currently available, so this returns `-1`. */\n  shares?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface TikTokVideo {\n  /**\n   * The account ID to publish the video to.\n   * @maxLength 128\n   */\n  accountId?: string | null;\n  /** Privacy level for the video. */\n  privacyLevel?: TikTokPrivacyLevelWithLiterals;\n  /**\n   * A description for the video.\n   * @maxLength 2200\n   */\n  description?: string | null;\n  /** Whether comments are disabled for the video. */\n  disableComment?: boolean;\n  /** Whether duets are disabled for the video. */\n  disableDuet?: boolean;\n  /** Whether stitches are disabled for the video. */\n  disableStitch?: boolean;\n  /** Whether the content is a paid partnership promoting a third-party business. */\n  brandContentToggle?: boolean;\n  /** Whether the content promotes the creator's own business. */\n  brandOrganicToggle?: boolean;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Insights from TikTok.\n   * @readonly\n   */\n  insights?: TikTokInsights;\n}\n\nexport enum TikTokPrivacyLevel {\n  PUBLIC_TO_EVERYONE = 'PUBLIC_TO_EVERYONE',\n  FOLLOWER_OF_CREATOR = 'FOLLOWER_OF_CREATOR',\n  MUTUAL_FOLLOW_FRIENDS = 'MUTUAL_FOLLOW_FRIENDS',\n  SELF_ONLY = 'SELF_ONLY',\n}\n\n/** @enumType */\nexport type TikTokPrivacyLevelWithLiterals =\n  | TikTokPrivacyLevel\n  | 'PUBLIC_TO_EVERYONE'\n  | 'FOLLOWER_OF_CREATOR'\n  | 'MUTUAL_FOLLOW_FRIENDS'\n  | 'SELF_ONLY';\n\nexport interface TikTokInsights {\n  /** Number of views. */\n  views?: number;\n  /** Number of likes. */\n  likes?: number;\n  /** Number of comments. */\n  comments?: number;\n  /** Number of shares. */\n  shares?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface TikTokPhoto {\n  /**\n   * The account ID to publish the photo to.\n   * @maxLength 128\n   */\n  accountId?: string | null;\n  /** Privacy level for the photo. */\n  privacyLevel?: TikTokPrivacyLevelWithLiterals;\n  /**\n   * A title for the photo.\n   * @maxLength 90\n   */\n  title?: string | null;\n  /**\n   * A description for the photo.\n   * @maxLength 4000\n   */\n  description?: string | null;\n  /** Whether comments are disabled for the photo. */\n  disableComment?: boolean;\n  /** Whether to automatically add music to the photo. */\n  autoAddMusic?: boolean;\n  /** Whether the content is a paid partnership promoting a third-party business. */\n  brandContentToggle?: boolean;\n  /** Whether the content promotes the creator's own business. */\n  brandOrganicToggle?: boolean;\n  /** The media list. */\n  mediaWrapper?: MediaWrapper;\n  /**\n   * Insights from TikTok.\n   * @readonly\n   */\n  insights?: TikTokInsights;\n}\n\nexport interface SiteAnalytics {\n  /** Number of site sessions attributed to this post. */\n  traffic?: number;\n  /** Number of page views attributed to this post. */\n  pageView?: number;\n  /** Site bounce rate attributed to this post. */\n  siteBounceRate?: number;\n  /** Revenue attributed to this post. */\n  revenue?: number;\n  /** Conversion funnel data attributed to this post. */\n  conversionFunnel?: ConversionFunnel;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n}\n\nexport interface ConversionFunnel {\n  /** Number of sessions that viewed the cart. */\n  cartViewsSessions?: number;\n  /** Number of sessions that reached checkout. */\n  checkOutSessions?: number;\n  /** Number of sessions that placed a store order. */\n  storeOrdersSessions?: number;\n  /** Number of confirmed bookings. */\n  bookingsConfirmed?: number;\n}\n\nexport interface InsightsSummary {\n  /** Number of unique impressions (reach). */\n  impressions?: number;\n  /** Number of interactions, such as likes and comments. */\n  interactions?: number;\n  /** Date and time the insights were last updated. */\n  _updatedDate?: Date | null;\n  /** Total number of impressions. */\n  impressionsTotal?: number;\n}\n\nexport interface DraftInfo {\n  /**\n   * Date and time the draft was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the draft was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n}\n\nexport interface PublicationErrorDetails {\n  /**\n   * Error message shown when publishing fails.\n   * @readonly\n   * @maxLength 500\n   */\n  message?: string | null;\n}\n\nexport interface AssetReference {\n  /** Type of the site asset (for example, product or blog post). See `SiteAsset.Type` for the closed set of values. */\n  siteAssetRefType?: TypeWithLiterals;\n  /**\n   * ID of the asset within its provider's data store.\n   * @maxLength 256\n   */\n  _id?: string | null;\n  /**\n   * Display name of the asset (for example, the product title or blog post title), cached at post-creation time.\n   * @maxLength 3000\n   */\n  name?: string;\n}\n\nexport interface ItemAutomationsWrapper {\n  /**\n   * Automations on the item.\n   * @maxSize 10\n   */\n  automations?: ItemAutomation[];\n}\n\nexport interface PublishItemRequest {\n  /** Item to publish. */\n  item?: Item;\n  itemExtras?: ItemExtras;\n}\n\nexport interface ItemExtras {\n  /**\n   * Where the user began the flow to open the publisher. For example, `stores.product-list`.\n   * @maxLength 100\n   */\n  userOrigin?: string | null;\n}\n\nexport interface PublishItemResponse {\n  /** Published item. */\n  item?: Item;\n}\n\n/** Triggered when publishing starts for an item. */\nexport interface ItemPublishStarted {\n  /** Item being published. */\n  item?: Item;\n}\n\n/** Triggered when an item is successfully published to its social channel. */\nexport interface ItemPublished {\n  /** Published item. */\n  item?: Item;\n}\n\n/** Triggered when an item fails to publish to its social channel. */\nexport interface ItemPublishFailed {\n  /** Item that failed to publish. See `publicationError` for the reason. */\n  item?: Item;\n}\n\n/** Triggered when an item is scheduled to be published at a future date. */\nexport interface ItemPublishScheduled {\n  /** Scheduled item. */\n  item?: Item;\n}\n\nexport interface PublishItemByIdRequest {\n  /**\n   * ID of the item to publish.\n   * @format GUID\n   */\n  _id: string | null;\n  /** Date and time to publish the item. If omitted, the item is published immediately. */\n  scheduledDate?: Date | null;\n}\n\nexport interface PublishItemByIdResponse {\n  /** Published item. */\n  item?: Item;\n}\n\nexport interface CreateDraftItemRequest {\n  /** Item to create as a draft. */\n  item?: Item;\n  itemExtras?: ItemExtras;\n}\n\nexport interface CreateDraftItemResponse {\n  /** Created draft item. */\n  item?: Item;\n}\n\n/** GetOrCreateWixelBindingByFileRequest */\nexport interface GetOrCreateWixelBindingByFileRequest {\n  /**\n   * Publisher draft id that owns the media file\n   * @format GUID\n   */\n  draftId?: string;\n  /**\n   * Media Manager file id to open in Wixel\n   * @maxLength 1000\n   */\n  fileId?: string;\n}\n\n/** GetOrCreateWixelBindingByFileResponse */\nexport interface GetOrCreateWixelBindingByFileResponse {\n  /**\n   * Wixel editor URL with the bound asset selected\n   * @format WEB_URL\n   */\n  url?: string;\n  /**\n   * Wixel binding id\n   * @format GUID\n   */\n  bindingId?: string | null;\n  /**\n   * Wixel asset id\n   * @format GUID\n   */\n  assetId?: string | null;\n  /**\n   * Wixel project id\n   * @format GUID\n   */\n  projectId?: string | null;\n}\n\n/** PublishDraftRequest */\nexport interface PublishDraftRequest {\n  /**\n   * The draft item id to publish\n   * @format GUID\n   */\n  _id?: string;\n}\n\n/** PublishDraftResponse */\nexport interface PublishDraftResponse {\n  /** The published item */\n  item?: Item;\n}\n\n/** PublishMultiStoryDraftRequest */\nexport interface PublishMultiStoryDraftRequest {\n  /**\n   * ID of the multi-story draft to publish.\n   * @format GUID\n   */\n  _id: string;\n  /** Scheduling info applied to all story items. If set, the story items are scheduled instead of published immediately. */\n  schedulingInfo?: SchedulingInfo;\n}\n\n/** PublishMultiStoryDraftResponse */\nexport interface PublishMultiStoryDraftResponse {\n  /** Results, one per story item handled in this call, in story order. Story items already published by a previous call aren't included. */\n  results?: BulkItemsResult[];\n  /** Bulk action metadata. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkItemsResult {\n  /** Metadata for the individual item's publish result. */\n  itemMetadata?: ItemMetadata;\n  /** Published item. Returned only when `returnEntity` is `true` in the request. */\n  item?: Item;\n}\n\nexport interface ItemMetadata {\n  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n  _id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\n/** isEligibleForSchedulingRequest */\nexport interface IsEligibleForSchedulingRequest {}\n\n/** isEligibleForSchedulingResponse */\nexport interface IsEligibleForSchedulingResponse {\n  isEligible?: boolean;\n  reason?: SchedulingRestrictedReasonWithLiterals;\n}\n\nexport enum SchedulingRestrictedReason {\n  NO_SOCIAL_POSTS_SCHEDULING = 'NO_SOCIAL_POSTS_SCHEDULING',\n}\n\n/** @enumType */\nexport type SchedulingRestrictedReasonWithLiterals =\n  | SchedulingRestrictedReason\n  | 'NO_SOCIAL_POSTS_SCHEDULING';\n\nexport interface GetItemRequest {\n  /**\n   * ID of the item to retrieve.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface GetItemResponse {\n  /** Retrieved item. */\n  item?: Item;\n}\n\nexport interface GetItemsRequest {\n  /**\n   * IDs of the items to retrieve.\n   * @maxSize 100\n   * @format GUID\n   */\n  ids: string[];\n}\n\nexport interface GetItemsResponse {\n  /** Retrieved items. */\n  items?: Item[];\n}\n\nexport interface QueryItemsRequest {\n  /** Query options, including paging, filtering, and sorting. */\n  query: Query;\n}\n\nexport interface Query {\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: any;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   */\n  sort?: Sorting[];\n  /** Paging options to limit and skip the number of items. */\n  paging?: Paging;\n  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fields?: string[];\n  /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fieldsets?: string[];\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n  /**\n   * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n   * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n   *\n   * If multiple filters are provided, they are combined with AND operator.\n   *\n   * Example:\n   * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n   * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n   * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n   * @internal\n   * @maxSize 10\n   */\n  selectItemsBy?: Record<string, any>[] | null;\n  /**\n   * Origin point for geo-distance sorting on a GEO field\n   * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n   */\n  origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n  /** Address latitude. */\n  latitude?: number | null;\n  /** Address longitude. */\n  longitude?: number | null;\n}\n\nexport interface Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface QueryItemsResponse {\n  /** Retrieved items. */\n  items?: Item[];\n  /** Paging metadata. */\n  metadata?: PagingMetadata;\n}\n\nexport interface PagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   * @internal\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface CancelScheduledItemRequest {\n  /**\n   * ID of the scheduled item to cancel.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface CancelScheduledItemResponse {\n  /** Canceled item. */\n  item?: Item;\n}\n\nexport interface UpdateItemRequest {\n  /** Item to update. */\n  item: Item;\n  /** @internal */\n  mask?: string[];\n}\n\nexport interface UpdateItemResponse {\n  /** Updated item. */\n  item?: Item;\n}\n\nexport interface RescheduleItemRequest {\n  /**\n   * ID of the scheduled item to reschedule.\n   * @format GUID\n   */\n  _id: string | null;\n  /** Date and time to publish the item. If omitted, the item is published immediately. */\n  scheduledDate?: Date | null;\n}\n\nexport interface RescheduleItemResponse {\n  /** Rescheduled item. */\n  item?: Item;\n}\n\n/** DeleteItemRequest */\nexport interface DeleteItemRequest {\n  /** @format GUID */\n  _id: string;\n}\n\n/** DeleteItemResponse */\nexport interface DeleteItemResponse {}\n\nexport interface BulkPublishItemsRequest {\n  /**\n   * Items to publish.\n   * @minSize 1\n   * @maxSize 20\n   */\n  items: Item[];\n  /** Policy that determines how items are published when one of them fails. */\n  policy?: BulkPublishItemsPolicyWithLiterals;\n  /** Scheduling info applied to all items. If set, the items are scheduled instead of published immediately. */\n  schedulingInfo?: SchedulingInfo;\n  itemExtras?: ItemExtras;\n  /**\n   * Whether to return the published items in the response.\n   *\n   * Default: `false`\n   */\n  returnEntity?: boolean;\n}\n\n/** Policy that determines how items are published when one of them fails. */\nexport enum BulkPublishItemsPolicy {\n  /** Publish all items, regardless of whether individual items fail. */\n  CONCURRENT = 'CONCURRENT',\n  /** Stop publishing remaining items as soon as one item fails. */\n  SEQUENTIAL_STOP_ON_FAIL = 'SEQUENTIAL_STOP_ON_FAIL',\n}\n\n/** @enumType */\nexport type BulkPublishItemsPolicyWithLiterals =\n  | BulkPublishItemsPolicy\n  | 'CONCURRENT'\n  | 'SEQUENTIAL_STOP_ON_FAIL';\n\nexport interface BulkPublishItemsResponse {\n  /**\n   * Results of the bulk publish, one per item, in the order they were sent.\n   * @minSize 1\n   * @maxSize 20\n   */\n  results?: BulkItemsResult[];\n  /** Bulk action metadata. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type PublishItemApplicationErrors =\n  | {\n      code?: 'REFERENCE_ID_ALREADY_EXIST';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INELIGIBLE_FOR_FEATURE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'PUBLISH_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type PublishItemByIdApplicationErrors =\n  | {\n      code?: 'REFERENCE_ID_ALREADY_EXIST';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INELIGIBLE_FOR_FEATURE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'PUBLISH_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'MULTI_STORY_PUBLISH_NOT_SUPPORTED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type PublishMultiStoryDraftApplicationErrors =\n  | {\n      code?: 'NOT_MULTI_STORY_DRAFT';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INELIGIBLE_FOR_FEATURE';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type CancelScheduledItemApplicationErrors =\n  | {\n      code?: 'SCHEDULED_ITEM_ALREADY_CANCELED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'SCHEDULED_ITEM_ALREADY_PUBLISHED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'SCHEDULED_ITEM_ALREADY_DELETED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type UpdateItemApplicationErrors =\n  | {\n      code?: 'ITEM_NOT_EXISTS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'SCHEDULED_ITEM_DATE_CHANGED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type RescheduleItemApplicationErrors =\n  | {\n      code?: 'ITEM_NOT_EXISTS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'ITEM_IS_PUBLISHED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'ITEM_IS_DELETED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INELIGIBLE_FOR_FEATURE';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type DeleteItemApplicationErrors =\n  | {\n      code?: 'ITEM_IS_DELETED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'ITEM_NOT_EXISTS';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type BulkPublishItemsApplicationErrors = {\n  code?: 'INELIGIBLE_FOR_FEATURE';\n  description?: string;\n  data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n  accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n  /** ID of the Wix account associated with the event */\n  accountId: string;\n  /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n  siteId?: string;\n  /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n  parentAccountId?: string;\n}\n\nexport interface ItemPublishFailedEnvelope {\n  data: ItemPublishFailed;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Social Posts\n * @permissionScopeId SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS\n * @permissionId PROMOTE.PUBLISHER_EVENTS_READ\n * @webhook\n * @eventType wix.promote.publisher.v1.item_item_publish_failed\n * @serviceIdentifier com.wixpress.promote.publisher.v1.PublicationService\n * @slug item_publish_failed\n * @documentationMaturity preview\n */\nexport declare function onItemPublishFailed(\n  handler: (event: ItemPublishFailedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemPublishScheduledEnvelope {\n  data: ItemPublishScheduled;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Social Posts\n * @permissionScopeId SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS\n * @permissionId PROMOTE.PUBLISHER_EVENTS_READ\n * @webhook\n * @eventType wix.promote.publisher.v1.item_item_publish_scheduled\n * @serviceIdentifier com.wixpress.promote.publisher.v1.PublicationService\n * @slug item_publish_scheduled\n * @documentationMaturity preview\n */\nexport declare function onItemPublishScheduled(\n  handler: (event: ItemPublishScheduledEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemPublishStartedEnvelope {\n  data: ItemPublishStarted;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Social Posts\n * @permissionScopeId SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS\n * @permissionId PROMOTE.PUBLISHER_EVENTS_READ\n * @webhook\n * @eventType wix.promote.publisher.v1.item_item_publish_started\n * @serviceIdentifier com.wixpress.promote.publisher.v1.PublicationService\n * @slug item_publish_started\n * @documentationMaturity preview\n */\nexport declare function onItemPublishStarted(\n  handler: (event: ItemPublishStartedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemPublishedEnvelope {\n  data: ItemPublished;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Social Posts\n * @permissionScopeId SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS\n * @permissionId PROMOTE.PUBLISHER_EVENTS_READ\n * @webhook\n * @eventType wix.promote.publisher.v1.item_item_published\n * @serviceIdentifier com.wixpress.promote.publisher.v1.PublicationService\n * @slug item_published\n * @documentationMaturity preview\n */\nexport declare function onItemPublished(\n  handler: (event: ItemPublishedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Publishes an item to a connected social channel.\n *\n * Use this method to publish a fully-formed post in a single call. To publish a previously created draft, call Publish Item By ID. To save a post without publishing it, call Create Draft Item. To schedule the post, set `item.schedulingInfo.scheduledDate`; otherwise it's published immediately.\n *\n * Published items appear on the site's Social Media Marketing page in the dashboard.\n * @public\n * @documentationMaturity preview\n * @requiredField options.item.channel\n * @requiredField options.item.channel.accountId\n * @permissionId PROMOTE.PUBLISHER_ITEM_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.PublishItem\n */\nexport async function publishItem(\n  options?: NonNullablePaths<\n    PublishItemOptions,\n    `item.channel` | `item.channel.accountId`,\n    2\n  >\n): Promise<\n  NonNullablePaths<\n    PublishItemResponse,\n    | `item.instagramPost.mediaWrapper.media`\n    | `item.instagramPost.mediaWrapper.media.${number}.type`\n    | `item.instagramPost.insights.likes`\n    | `item.instagramPost.insights.engagement`\n    | `item.instagramPost.insights.impressions`\n    | `item.instagramPost.insights.plays`\n    | `item.instagramPost.insights.reach`\n    | `item.instagramPost.insights.comments`\n    | `item.instagramPost.insights.shares`\n    | `item.instagramPost.insights.saved`\n    | `item.instagramPost.insights.totalInteractions`\n    | `item.instagramStory.insights.impressions`\n    | `item.instagramStory.insights.reach`\n    | `item.instagramStory.insights.replies`\n    | `item.facebookPost.insights.impressions.unique`\n    | `item.facebookPost.insights.impressions.total`\n    | `item.facebookPost.insights.interactions.unique`\n    | `item.facebookPost.insights.interactions.total`\n    | `item.facebookPost.insights.reactions.like`\n    | `item.facebookPost.insights.reactions.love`\n    | `item.facebookPost.insights.reactions.wow`\n    | `item.facebookPost.insights.reactions.haha`\n    | `item.facebookPost.insights.reactions.sad`\n    | `item.facebookPost.insights.reactions.anger`\n    | `item.facebookPost.insights.activity.share`\n    | `item.facebookPost.insights.activity.like`\n    | `item.facebookPost.insights.activity.comment`\n    | `item.youtubeVideo.notifySubscribers`\n    | `item.youtubeVideo.insights.views`\n    | `item.youtubeVideo.insights.comments`\n    | `item.youtubeVideo.insights.likes`\n    | `item.youtubeVideo.insights.dislikes`\n    | `item.youtubeVideo.insights.shares`\n    | `item.youtubeShort.notifySubscribers`\n    | `item.linkedinPost.insights.uniqueImpressions`\n    | `item.linkedinPost.insights.impression`\n    | `item.linkedinPost.insights.shares`\n    | `item.linkedinPost.insights.engagement`\n    | `item.linkedinPost.insights.clicks`\n    | `item.linkedinPost.insights.likes`\n    | `item.linkedinPost.insights.comments`\n    | `item.twitterPost.insights.retweets`\n    | `item.twitterPost.insights.replies`\n    | `item.twitterPost.insights.likes`\n    | `item.twitterPost.insights.quotes`\n    | `item.twitterPost.insights.bookmarks`\n    | `item.twitterPost.insights.impressions`\n    | `item.pinterestPost.insights.impressions`\n    | `item.pinterestPost.insights.clicks`\n    | `item.pinterestPost.insights.saves`\n    | `item.pinterestPost.insights.comments`\n    | `item.pinterestPost.insights.reactions`\n    | `item.gbpPost.callToAction.actionType`\n    | `item.gbpPost.insights.shares`\n    | `item.tiktokVideo.privacyLevel`\n    | `item.tiktokVideo.disableComment`\n    | `item.tiktokVideo.disableDuet`\n    | `item.tiktokVideo.disableStitch`\n    | `item.tiktokVideo.brandContentToggle`\n    | `item.tiktokVideo.brandOrganicToggle`\n    | `item.tiktokVideo.insights.views`\n    | `item.tiktokVideo.insights.likes`\n    | `item.tiktokVideo.insights.comments`\n    | `item.tiktokVideo.insights.shares`\n    | `item.tiktokPhoto.privacyLevel`\n    | `item.tiktokPhoto.disableComment`\n    | `item.tiktokPhoto.autoAddMusic`\n    | `item.tiktokPhoto.brandContentToggle`\n    | `item.tiktokPhoto.brandOrganicToggle`\n    | `item.channel.name`\n    | `item.type`\n    | `item.status`\n    | `item.siteAnalytics.traffic`\n    | `item.siteAnalytics.pageView`\n    | `item.siteAnalytics.siteBounceRate`\n    | `item.siteAnalytics.revenue`\n    | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `item.insightsSummary.impressions`\n    | `item.insightsSummary.interactions`\n    | `item.insightsSummary.impressionsTotal`\n    | `item.suggested`\n    | `item.external`\n    | `item.siteAssetRef.siteAssetRefType`\n    | `item.siteAssetRef.name`,\n    5\n  > & {\n    __applicationErrorsType?: PublishItemApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    item: options?.item,\n    itemExtras: options?.itemExtras,\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.publishItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          item: '$[0].item',\n          itemExtras: '$[0].itemExtras',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PublishItemOptions {\n  /** Item to publish. */\n  item?: Item;\n  itemExtras?: ItemExtras;\n}\n\n/**\n * Publishes a previously created item by its `id`.\n *\n * The item can be a draft or a scheduled item. To schedule the item for a future date, set `scheduledDate`; otherwise it's published immediately.\n *\n * Published items appear on the site's Social Media Marketing page in the dashboard.\n * @param _id - ID of the item to publish.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.PublishItemById\n */\nexport async function publishItemById(\n  _id: string,\n  options?: PublishItemByIdOptions\n): Promise<\n  NonNullablePaths<\n    PublishItemByIdResponse,\n    | `item.instagramPost.mediaWrapper.media`\n    | `item.instagramPost.mediaWrapper.media.${number}.type`\n    | `item.instagramPost.insights.likes`\n    | `item.instagramPost.insights.engagement`\n    | `item.instagramPost.insights.impressions`\n    | `item.instagramPost.insights.plays`\n    | `item.instagramPost.insights.reach`\n    | `item.instagramPost.insights.comments`\n    | `item.instagramPost.insights.shares`\n    | `item.instagramPost.insights.saved`\n    | `item.instagramPost.insights.totalInteractions`\n    | `item.instagramStory.insights.impressions`\n    | `item.instagramStory.insights.reach`\n    | `item.instagramStory.insights.replies`\n    | `item.facebookPost.insights.impressions.unique`\n    | `item.facebookPost.insights.impressions.total`\n    | `item.facebookPost.insights.interactions.unique`\n    | `item.facebookPost.insights.interactions.total`\n    | `item.facebookPost.insights.reactions.like`\n    | `item.facebookPost.insights.reactions.love`\n    | `item.facebookPost.insights.reactions.wow`\n    | `item.facebookPost.insights.reactions.haha`\n    | `item.facebookPost.insights.reactions.sad`\n    | `item.facebookPost.insights.reactions.anger`\n    | `item.facebookPost.insights.activity.share`\n    | `item.facebookPost.insights.activity.like`\n    | `item.facebookPost.insights.activity.comment`\n    | `item.youtubeVideo.notifySubscribers`\n    | `item.youtubeVideo.insights.views`\n    | `item.youtubeVideo.insights.comments`\n    | `item.youtubeVideo.insights.likes`\n    | `item.youtubeVideo.insights.dislikes`\n    | `item.youtubeVideo.insights.shares`\n    | `item.youtubeShort.notifySubscribers`\n    | `item.linkedinPost.insights.uniqueImpressions`\n    | `item.linkedinPost.insights.impression`\n    | `item.linkedinPost.insights.shares`\n    | `item.linkedinPost.insights.engagement`\n    | `item.linkedinPost.insights.clicks`\n    | `item.linkedinPost.insights.likes`\n    | `item.linkedinPost.insights.comments`\n    | `item.twitterPost.insights.retweets`\n    | `item.twitterPost.insights.replies`\n    | `item.twitterPost.insights.likes`\n    | `item.twitterPost.insights.quotes`\n    | `item.twitterPost.insights.bookmarks`\n    | `item.twitterPost.insights.impressions`\n    | `item.pinterestPost.insights.impressions`\n    | `item.pinterestPost.insights.clicks`\n    | `item.pinterestPost.insights.saves`\n    | `item.pinterestPost.insights.comments`\n    | `item.pinterestPost.insights.reactions`\n    | `item.gbpPost.callToAction.actionType`\n    | `item.gbpPost.insights.shares`\n    | `item.tiktokVideo.privacyLevel`\n    | `item.tiktokVideo.disableComment`\n    | `item.tiktokVideo.disableDuet`\n    | `item.tiktokVideo.disableStitch`\n    | `item.tiktokVideo.brandContentToggle`\n    | `item.tiktokVideo.brandOrganicToggle`\n    | `item.tiktokVideo.insights.views`\n    | `item.tiktokVideo.insights.likes`\n    | `item.tiktokVideo.insights.comments`\n    | `item.tiktokVideo.insights.shares`\n    | `item.tiktokPhoto.privacyLevel`\n    | `item.tiktokPhoto.disableComment`\n    | `item.tiktokPhoto.autoAddMusic`\n    | `item.tiktokPhoto.brandContentToggle`\n    | `item.tiktokPhoto.brandOrganicToggle`\n    | `item.channel.name`\n    | `item.type`\n    | `item.status`\n    | `item.siteAnalytics.traffic`\n    | `item.siteAnalytics.pageView`\n    | `item.siteAnalytics.siteBounceRate`\n    | `item.siteAnalytics.revenue`\n    | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `item.insightsSummary.impressions`\n    | `item.insightsSummary.interactions`\n    | `item.insightsSummary.impressionsTotal`\n    | `item.suggested`\n    | `item.external`\n    | `item.siteAssetRef.siteAssetRefType`\n    | `item.siteAssetRef.name`,\n    5\n  > & {\n    __applicationErrorsType?: PublishItemByIdApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    id: _id,\n    scheduledDate: options?.scheduledDate,\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.publishItemById(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          id: '$[0]',\n          scheduledDate: '$[1].scheduledDate',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PublishItemByIdOptions {\n  /** Date and time to publish the item. If omitted, the item is published immediately. */\n  scheduledDate?: Date | null;\n}\n\n/**\n * Creates a draft item.\n *\n * A draft is an item that's saved but not yet published, with a `status` of `DRAFT`. Drafts appear on the site's Social Media Marketing page in the dashboard, where they can be reviewed and published. To publish a draft, call Publish Item By ID.\n *\n * The item's `type` and content must match a combination supported by the target channel. See `item.type` for the supported combinations.\n * @public\n * @documentationMaturity preview\n * @requiredField options.item.channel\n * @permissionId PROMOTE.PUBLISHER_ITEM_CREATE\n * @applicableIdentity APP\n * @returns Created draft item.\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.CreateDraftItem\n */\nexport async function createDraftItem(\n  options?: NonNullablePaths<CreateDraftItemOptions, `item.channel`, 1>\n): Promise<\n  NonNullablePaths<\n    Item,\n    | `instagramPost.mediaWrapper.media`\n    | `instagramPost.mediaWrapper.media.${number}.type`\n    | `instagramPost.insights.likes`\n    | `instagramPost.insights.engagement`\n    | `instagramPost.insights.impressions`\n    | `instagramPost.insights.plays`\n    | `instagramPost.insights.reach`\n    | `instagramPost.insights.comments`\n    | `instagramPost.insights.shares`\n    | `instagramPost.insights.saved`\n    | `instagramPost.insights.totalInteractions`\n    | `instagramStory.insights.impressions`\n    | `instagramStory.insights.reach`\n    | `instagramStory.insights.replies`\n    | `facebookPost.insights.impressions.unique`\n    | `facebookPost.insights.impressions.total`\n    | `facebookPost.insights.interactions.unique`\n    | `facebookPost.insights.interactions.total`\n    | `facebookPost.insights.reactions.like`\n    | `facebookPost.insights.reactions.love`\n    | `facebookPost.insights.reactions.wow`\n    | `facebookPost.insights.reactions.haha`\n    | `facebookPost.insights.reactions.sad`\n    | `facebookPost.insights.reactions.anger`\n    | `facebookPost.insights.activity.share`\n    | `facebookPost.insights.activity.like`\n    | `facebookPost.insights.activity.comment`\n    | `youtubeVideo.notifySubscribers`\n    | `youtubeVideo.insights.views`\n    | `youtubeVideo.insights.comments`\n    | `youtubeVideo.insights.likes`\n    | `youtubeVideo.insights.dislikes`\n    | `youtubeVideo.insights.shares`\n    | `youtubeShort.notifySubscribers`\n    | `linkedinPost.insights.uniqueImpressions`\n    | `linkedinPost.insights.impression`\n    | `linkedinPost.insights.shares`\n    | `linkedinPost.insights.engagement`\n    | `linkedinPost.insights.clicks`\n    | `linkedinPost.insights.likes`\n    | `linkedinPost.insights.comments`\n    | `twitterPost.insights.retweets`\n    | `twitterPost.insights.replies`\n    | `twitterPost.insights.likes`\n    | `twitterPost.insights.quotes`\n    | `twitterPost.insights.bookmarks`\n    | `twitterPost.insights.impressions`\n    | `pinterestPost.insights.impressions`\n    | `pinterestPost.insights.clicks`\n    | `pinterestPost.insights.saves`\n    | `pinterestPost.insights.comments`\n    | `pinterestPost.insights.reactions`\n    | `gbpPost.callToAction.actionType`\n    | `gbpPost.insights.shares`\n    | `tiktokVideo.privacyLevel`\n    | `tiktokVideo.disableComment`\n    | `tiktokVideo.disableDuet`\n    | `tiktokVideo.disableStitch`\n    | `tiktokVideo.brandContentToggle`\n    | `tiktokVideo.brandOrganicToggle`\n    | `tiktokVideo.insights.views`\n    | `tiktokVideo.insights.likes`\n    | `tiktokVideo.insights.comments`\n    | `tiktokVideo.insights.shares`\n    | `tiktokPhoto.privacyLevel`\n    | `tiktokPhoto.disableComment`\n    | `tiktokPhoto.autoAddMusic`\n    | `tiktokPhoto.brandContentToggle`\n    | `tiktokPhoto.brandOrganicToggle`\n    | `channel.name`\n    | `type`\n    | `status`\n    | `siteAnalytics.traffic`\n    | `siteAnalytics.pageView`\n    | `siteAnalytics.siteBounceRate`\n    | `siteAnalytics.revenue`\n    | `siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `siteAnalytics.conversionFunnel.checkOutSessions`\n    | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `insightsSummary.impressions`\n    | `insightsSummary.interactions`\n    | `insightsSummary.impressionsTotal`\n    | `suggested`\n    | `external`\n    | `siteAssetRef.siteAssetRefType`\n    | `siteAssetRef.name`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    item: options?.item,\n    itemExtras: options?.itemExtras,\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.createDraftItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.item!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          item: '$[0].item',\n          itemExtras: '$[0].itemExtras',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateDraftItemOptions {\n  /** Item to create as a draft. */\n  item?: Item;\n  itemExtras?: ItemExtras;\n}\n\n/**\n * Publishes a multi-story draft as a sequence of single-media story items.\n *\n * The draft's media list is split into individual story items that are published sequentially\n * in media order, stopping on the first failure. Each story item gets a derived `referenceId`\n * of `{draftReferenceId}:story:{index}` (the draft `id` is used when the draft has no `referenceId`).\n * Story items already published by a previous call are skipped, so the method can be safely retried\n * after a partial failure. The draft is deleted only after all story items are published.\n * To schedule the story sequence, set `schedulingInfo.scheduledDate`; otherwise it's published immediately.\n * @param _id - ID of the multi-story draft to publish.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_CREATE\n * @applicableIdentity APP\n * @returns PublishMultiStoryDraftResponse\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.PublishMultiStoryDraft\n */\nexport async function publishMultiStoryDraft(\n  _id: string,\n  options?: PublishMultiStoryDraftOptions\n): Promise<\n  NonNullablePaths<\n    PublishMultiStoryDraftResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `results.${number}.item.youtubeVideo.notifySubscribers`\n    | `results.${number}.item.youtubeShort.notifySubscribers`\n    | `results.${number}.item.tiktokVideo.privacyLevel`\n    | `results.${number}.item.tiktokVideo.disableComment`\n    | `results.${number}.item.tiktokVideo.disableDuet`\n    | `results.${number}.item.tiktokVideo.disableStitch`\n    | `results.${number}.item.tiktokVideo.brandContentToggle`\n    | `results.${number}.item.tiktokVideo.brandOrganicToggle`\n    | `results.${number}.item.tiktokPhoto.privacyLevel`\n    | `results.${number}.item.tiktokPhoto.disableComment`\n    | `results.${number}.item.tiktokPhoto.autoAddMusic`\n    | `results.${number}.item.tiktokPhoto.brandContentToggle`\n    | `results.${number}.item.tiktokPhoto.brandOrganicToggle`\n    | `results.${number}.item.channel.name`\n    | `results.${number}.item.type`\n    | `results.${number}.item.status`\n    | `results.${number}.item.siteAnalytics.traffic`\n    | `results.${number}.item.siteAnalytics.pageView`\n    | `results.${number}.item.siteAnalytics.siteBounceRate`\n    | `results.${number}.item.siteAnalytics.revenue`\n    | `results.${number}.item.insightsSummary.impressions`\n    | `results.${number}.item.insightsSummary.interactions`\n    | `results.${number}.item.insightsSummary.impressionsTotal`\n    | `results.${number}.item.suggested`\n    | `results.${number}.item.external`\n    | `results.${number}.item.siteAssetRef.siteAssetRefType`\n    | `results.${number}.item.siteAssetRef.name`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    4\n  > & {\n    __applicationErrorsType?: PublishMultiStoryDraftApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    id: _id,\n    schedulingInfo: options?.schedulingInfo,\n  });\n\n  const reqOpts =\n    ambassadorWixPromotePublisherV1Item.publishMultiStoryDraft(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          id: '$[0]',\n          schedulingInfo: '$[1].schedulingInfo',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PublishMultiStoryDraftOptions {\n  /** Scheduling info applied to all story items. If set, the story items are scheduled instead of published immediately. */\n  schedulingInfo?: SchedulingInfo;\n}\n\n/**\n * Retrieves an item by ID.\n * @param _id - ID of the item to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_READ\n * @applicableIdentity APP\n * @returns Retrieved item.\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.GetItem\n */\nexport async function getItem(\n  _id: string\n): Promise<\n  NonNullablePaths<\n    Item,\n    | `instagramPost.mediaWrapper.media`\n    | `instagramPost.mediaWrapper.media.${number}.type`\n    | `instagramPost.insights.likes`\n    | `instagramPost.insights.engagement`\n    | `instagramPost.insights.impressions`\n    | `instagramPost.insights.plays`\n    | `instagramPost.insights.reach`\n    | `instagramPost.insights.comments`\n    | `instagramPost.insights.shares`\n    | `instagramPost.insights.saved`\n    | `instagramPost.insights.totalInteractions`\n    | `instagramStory.insights.impressions`\n    | `instagramStory.insights.reach`\n    | `instagramStory.insights.replies`\n    | `facebookPost.insights.impressions.unique`\n    | `facebookPost.insights.impressions.total`\n    | `facebookPost.insights.interactions.unique`\n    | `facebookPost.insights.interactions.total`\n    | `facebookPost.insights.reactions.like`\n    | `facebookPost.insights.reactions.love`\n    | `facebookPost.insights.reactions.wow`\n    | `facebookPost.insights.reactions.haha`\n    | `facebookPost.insights.reactions.sad`\n    | `facebookPost.insights.reactions.anger`\n    | `facebookPost.insights.activity.share`\n    | `facebookPost.insights.activity.like`\n    | `facebookPost.insights.activity.comment`\n    | `youtubeVideo.notifySubscribers`\n    | `youtubeVideo.insights.views`\n    | `youtubeVideo.insights.comments`\n    | `youtubeVideo.insights.likes`\n    | `youtubeVideo.insights.dislikes`\n    | `youtubeVideo.insights.shares`\n    | `youtubeShort.notifySubscribers`\n    | `linkedinPost.insights.uniqueImpressions`\n    | `linkedinPost.insights.impression`\n    | `linkedinPost.insights.shares`\n    | `linkedinPost.insights.engagement`\n    | `linkedinPost.insights.clicks`\n    | `linkedinPost.insights.likes`\n    | `linkedinPost.insights.comments`\n    | `twitterPost.insights.retweets`\n    | `twitterPost.insights.replies`\n    | `twitterPost.insights.likes`\n    | `twitterPost.insights.quotes`\n    | `twitterPost.insights.bookmarks`\n    | `twitterPost.insights.impressions`\n    | `pinterestPost.insights.impressions`\n    | `pinterestPost.insights.clicks`\n    | `pinterestPost.insights.saves`\n    | `pinterestPost.insights.comments`\n    | `pinterestPost.insights.reactions`\n    | `gbpPost.callToAction.actionType`\n    | `gbpPost.insights.shares`\n    | `tiktokVideo.privacyLevel`\n    | `tiktokVideo.disableComment`\n    | `tiktokVideo.disableDuet`\n    | `tiktokVideo.disableStitch`\n    | `tiktokVideo.brandContentToggle`\n    | `tiktokVideo.brandOrganicToggle`\n    | `tiktokVideo.insights.views`\n    | `tiktokVideo.insights.likes`\n    | `tiktokVideo.insights.comments`\n    | `tiktokVideo.insights.shares`\n    | `tiktokPhoto.privacyLevel`\n    | `tiktokPhoto.disableComment`\n    | `tiktokPhoto.autoAddMusic`\n    | `tiktokPhoto.brandContentToggle`\n    | `tiktokPhoto.brandOrganicToggle`\n    | `channel.name`\n    | `type`\n    | `status`\n    | `siteAnalytics.traffic`\n    | `siteAnalytics.pageView`\n    | `siteAnalytics.siteBounceRate`\n    | `siteAnalytics.revenue`\n    | `siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `siteAnalytics.conversionFunnel.checkOutSessions`\n    | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `insightsSummary.impressions`\n    | `insightsSummary.interactions`\n    | `insightsSummary.impressionsTotal`\n    | `suggested`\n    | `external`\n    | `siteAssetRef.siteAssetRefType`\n    | `siteAssetRef.name`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.getItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.item!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of items by their IDs.\n * @param ids - IDs of the items to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId PROMOTE.PUBLISHER_ITEM_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.GetItems\n */\nexport async function getItems(\n  ids: string[]\n): Promise<\n  NonNullablePaths<\n    GetItemsResponse,\n    | `items`\n    | `items.${number}.instagramPost.insights.likes`\n    | `items.${number}.instagramPost.insights.engagement`\n    | `items.${number}.instagramPost.insights.impressions`\n    | `items.${number}.instagramPost.insights.plays`\n    | `items.${number}.instagramPost.insights.reach`\n    | `items.${number}.instagramPost.insights.comments`\n    | `items.${number}.instagramPost.insights.shares`\n    | `items.${number}.instagramPost.insights.saved`\n    | `items.${number}.instagramPost.insights.totalInteractions`\n    | `items.${number}.instagramStory.insights.impressions`\n    | `items.${number}.instagramStory.insights.reach`\n    | `items.${number}.instagramStory.insights.replies`\n    | `items.${number}.youtubeVideo.notifySubscribers`\n    | `items.${number}.youtubeVideo.insights.views`\n    | `items.${number}.youtubeVideo.insights.comments`\n    | `items.${number}.youtubeVideo.insights.likes`\n    | `items.${number}.youtubeVideo.insights.dislikes`\n    | `items.${number}.youtubeVideo.insights.shares`\n    | `items.${number}.youtubeShort.notifySubscribers`\n    | `items.${number}.linkedinPost.insights.uniqueImpressions`\n    | `items.${number}.linkedinPost.insights.impression`\n    | `items.${number}.linkedinPost.insights.shares`\n    | `items.${number}.linkedinPost.insights.engagement`\n    | `items.${number}.linkedinPost.insights.clicks`\n    | `items.${number}.linkedinPost.insights.likes`\n    | `items.${number}.linkedinPost.insights.comments`\n    | `items.${number}.twitterPost.insights.retweets`\n    | `items.${number}.twitterPost.insights.replies`\n    | `items.${number}.twitterPost.insights.likes`\n    | `items.${number}.twitterPost.insights.quotes`\n    | `items.${number}.twitterPost.insights.bookmarks`\n    | `items.${number}.twitterPost.insights.impressions`\n    | `items.${number}.pinterestPost.insights.impressions`\n    | `items.${number}.pinterestPost.insights.clicks`\n    | `items.${number}.pinterestPost.insights.saves`\n    | `items.${number}.pinterestPost.insights.comments`\n    | `items.${number}.pinterestPost.insights.reactions`\n    | `items.${number}.gbpPost.callToAction.actionType`\n    | `items.${number}.gbpPost.insights.shares`\n    | `items.${number}.tiktokVideo.privacyLevel`\n    | `items.${number}.tiktokVideo.disableComment`\n    | `items.${number}.tiktokVideo.disableDuet`\n    | `items.${number}.tiktokVideo.disableStitch`\n    | `items.${number}.tiktokVideo.brandContentToggle`\n    | `items.${number}.tiktokVideo.brandOrganicToggle`\n    | `items.${number}.tiktokVideo.insights.views`\n    | `items.${number}.tiktokVideo.insights.likes`\n    | `items.${number}.tiktokVideo.insights.comments`\n    | `items.${number}.tiktokVideo.insights.shares`\n    | `items.${number}.tiktokPhoto.privacyLevel`\n    | `items.${number}.tiktokPhoto.disableComment`\n    | `items.${number}.tiktokPhoto.autoAddMusic`\n    | `items.${number}.tiktokPhoto.brandContentToggle`\n    | `items.${number}.tiktokPhoto.brandOrganicToggle`\n    | `items.${number}.channel.name`\n    | `items.${number}.type`\n    | `items.${number}.status`\n    | `items.${number}.siteAnalytics.traffic`\n    | `items.${number}.siteAnalytics.pageView`\n    | `items.${number}.siteAnalytics.siteBounceRate`\n    | `items.${number}.siteAnalytics.revenue`\n    | `items.${number}.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `items.${number}.insightsSummary.impressions`\n    | `items.${number}.insightsSummary.interactions`\n    | `items.${number}.insightsSummary.impressionsTotal`\n    | `items.${number}.suggested`\n    | `items.${number}.external`\n    | `items.${number}.siteAssetRef.siteAssetRefType`\n    | `items.${number}.siteAssetRef.name`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.getItems(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { ids: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['ids']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of items, given the provided paging, filtering, and sorting.\n *\n * Query Items runs with these defaults, which you can override:\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * Query Items supports a fixed set of filterable fields:\n * - `status`: `PUBLISHED`, `SCHEDULED`, `DRAFT`, `FAILED`, `CANCELED`, `PROCESSING`, or `IN_QUEUE`.\n * - `channel`: a channel name, such as `FACEBOOK` or `INSTAGRAM`.\n * - `type`: `POST`, `STORY`, `REEL`, `VIDEO`, or `SHORT`.\n * - `mediaType`: `IMAGE` or `VIDEO`.\n * - `suggested`: `true` or `false`.\n * - `ids`: a list of item IDs.\n *\n * Each of these supports the `$eq` and `$in` operators, and a bare value as shorthand for `$eq`, except\n * for `ids`, which supports `$in` only. Enum values are case insensitive. A value that the API doesn't\n * define matches no items rather than returning an error, and a field that isn't listed above is ignored\n * rather than rejected, so a filter on an unsupported field returns the same items as no filter at all.\n *\n * Sorting is supported on these fields:\n * - `date`: the default. Newest first, unless you specify `order`.\n * - `impressionsTotal`, `impressions`, `interactions`, and `siteVisits`: require the site to have post\n * insights. Without them, the items are sorted by `date` instead, in whichever direction you\n * specified.\n *\n * To learn about working with Query 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), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n * @param query - Query options, including paging, filtering, and sorting.\n * @public\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId PROMOTE.PUBLISHER_ITEM_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.QueryItems\n */\nexport async function queryItems(\n  query: Query\n): Promise<\n  NonNullablePaths<\n    QueryItemsResponse,\n    | `items`\n    | `items.${number}.instagramPost.insights.likes`\n    | `items.${number}.instagramPost.insights.engagement`\n    | `items.${number}.instagramPost.insights.impressions`\n    | `items.${number}.instagramPost.insights.plays`\n    | `items.${number}.instagramPost.insights.reach`\n    | `items.${number}.instagramPost.insights.comments`\n    | `items.${number}.instagramPost.insights.shares`\n    | `items.${number}.instagramPost.insights.saved`\n    | `items.${number}.instagramPost.insights.totalInteractions`\n    | `items.${number}.instagramStory.insights.impressions`\n    | `items.${number}.instagramStory.insights.reach`\n    | `items.${number}.instagramStory.insights.replies`\n    | `items.${number}.youtubeVideo.notifySubscribers`\n    | `items.${number}.youtubeVideo.insights.views`\n    | `items.${number}.youtubeVideo.insights.comments`\n    | `items.${number}.youtubeVideo.insights.likes`\n    | `items.${number}.youtubeVideo.insights.dislikes`\n    | `items.${number}.youtubeVideo.insights.shares`\n    | `items.${number}.youtubeShort.notifySubscribers`\n    | `items.${number}.linkedinPost.insights.uniqueImpressions`\n    | `items.${number}.linkedinPost.insights.impression`\n    | `items.${number}.linkedinPost.insights.shares`\n    | `items.${number}.linkedinPost.insights.engagement`\n    | `items.${number}.linkedinPost.insights.clicks`\n    | `items.${number}.linkedinPost.insights.likes`\n    | `items.${number}.linkedinPost.insights.comments`\n    | `items.${number}.twitterPost.insights.retweets`\n    | `items.${number}.twitterPost.insights.replies`\n    | `items.${number}.twitterPost.insights.likes`\n    | `items.${number}.twitterPost.insights.quotes`\n    | `items.${number}.twitterPost.insights.bookmarks`\n    | `items.${number}.twitterPost.insights.impressions`\n    | `items.${number}.pinterestPost.insights.impressions`\n    | `items.${number}.pinterestPost.insights.clicks`\n    | `items.${number}.pinterestPost.insights.saves`\n    | `items.${number}.pinterestPost.insights.comments`\n    | `items.${number}.pinterestPost.insights.reactions`\n    | `items.${number}.gbpPost.callToAction.actionType`\n    | `items.${number}.gbpPost.insights.shares`\n    | `items.${number}.tiktokVideo.privacyLevel`\n    | `items.${number}.tiktokVideo.disableComment`\n    | `items.${number}.tiktokVideo.disableDuet`\n    | `items.${number}.tiktokVideo.disableStitch`\n    | `items.${number}.tiktokVideo.brandContentToggle`\n    | `items.${number}.tiktokVideo.brandOrganicToggle`\n    | `items.${number}.tiktokVideo.insights.views`\n    | `items.${number}.tiktokVideo.insights.likes`\n    | `items.${number}.tiktokVideo.insights.comments`\n    | `items.${number}.tiktokVideo.insights.shares`\n    | `items.${number}.tiktokPhoto.privacyLevel`\n    | `items.${number}.tiktokPhoto.disableComment`\n    | `items.${number}.tiktokPhoto.autoAddMusic`\n    | `items.${number}.tiktokPhoto.brandContentToggle`\n    | `items.${number}.tiktokPhoto.brandOrganicToggle`\n    | `items.${number}.channel.name`\n    | `items.${number}.type`\n    | `items.${number}.status`\n    | `items.${number}.siteAnalytics.traffic`\n    | `items.${number}.siteAnalytics.pageView`\n    | `items.${number}.siteAnalytics.siteBounceRate`\n    | `items.${number}.siteAnalytics.revenue`\n    | `items.${number}.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `items.${number}.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `items.${number}.insightsSummary.impressions`\n    | `items.${number}.insightsSummary.interactions`\n    | `items.${number}.insightsSummary.impressionsTotal`\n    | `items.${number}.suggested`\n    | `items.${number}.external`\n    | `items.${number}.siteAssetRef.siteAssetRefType`\n    | `items.${number}.siteAssetRef.name`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.queryItems(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Cancels the scheduling of a scheduled item.\n *\n * The item is no longer published at its scheduled time. Only an item with a `status` of `SCHEDULED` can be canceled.\n * @param _id - ID of the scheduled item to cancel.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_CANCEL_SCHEDULED\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.CancelScheduledItem\n */\nexport async function cancelScheduledItem(_id: string): Promise<\n  NonNullablePaths<\n    CancelScheduledItemResponse,\n    | `item.instagramPost.mediaWrapper.media`\n    | `item.instagramPost.mediaWrapper.media.${number}.type`\n    | `item.instagramPost.insights.likes`\n    | `item.instagramPost.insights.engagement`\n    | `item.instagramPost.insights.impressions`\n    | `item.instagramPost.insights.plays`\n    | `item.instagramPost.insights.reach`\n    | `item.instagramPost.insights.comments`\n    | `item.instagramPost.insights.shares`\n    | `item.instagramPost.insights.saved`\n    | `item.instagramPost.insights.totalInteractions`\n    | `item.instagramStory.insights.impressions`\n    | `item.instagramStory.insights.reach`\n    | `item.instagramStory.insights.replies`\n    | `item.facebookPost.insights.impressions.unique`\n    | `item.facebookPost.insights.impressions.total`\n    | `item.facebookPost.insights.interactions.unique`\n    | `item.facebookPost.insights.interactions.total`\n    | `item.facebookPost.insights.reactions.like`\n    | `item.facebookPost.insights.reactions.love`\n    | `item.facebookPost.insights.reactions.wow`\n    | `item.facebookPost.insights.reactions.haha`\n    | `item.facebookPost.insights.reactions.sad`\n    | `item.facebookPost.insights.reactions.anger`\n    | `item.facebookPost.insights.activity.share`\n    | `item.facebookPost.insights.activity.like`\n    | `item.facebookPost.insights.activity.comment`\n    | `item.youtubeVideo.notifySubscribers`\n    | `item.youtubeVideo.insights.views`\n    | `item.youtubeVideo.insights.comments`\n    | `item.youtubeVideo.insights.likes`\n    | `item.youtubeVideo.insights.dislikes`\n    | `item.youtubeVideo.insights.shares`\n    | `item.youtubeShort.notifySubscribers`\n    | `item.linkedinPost.insights.uniqueImpressions`\n    | `item.linkedinPost.insights.impression`\n    | `item.linkedinPost.insights.shares`\n    | `item.linkedinPost.insights.engagement`\n    | `item.linkedinPost.insights.clicks`\n    | `item.linkedinPost.insights.likes`\n    | `item.linkedinPost.insights.comments`\n    | `item.twitterPost.insights.retweets`\n    | `item.twitterPost.insights.replies`\n    | `item.twitterPost.insights.likes`\n    | `item.twitterPost.insights.quotes`\n    | `item.twitterPost.insights.bookmarks`\n    | `item.twitterPost.insights.impressions`\n    | `item.pinterestPost.insights.impressions`\n    | `item.pinterestPost.insights.clicks`\n    | `item.pinterestPost.insights.saves`\n    | `item.pinterestPost.insights.comments`\n    | `item.pinterestPost.insights.reactions`\n    | `item.gbpPost.callToAction.actionType`\n    | `item.gbpPost.insights.shares`\n    | `item.tiktokVideo.privacyLevel`\n    | `item.tiktokVideo.disableComment`\n    | `item.tiktokVideo.disableDuet`\n    | `item.tiktokVideo.disableStitch`\n    | `item.tiktokVideo.brandContentToggle`\n    | `item.tiktokVideo.brandOrganicToggle`\n    | `item.tiktokVideo.insights.views`\n    | `item.tiktokVideo.insights.likes`\n    | `item.tiktokVideo.insights.comments`\n    | `item.tiktokVideo.insights.shares`\n    | `item.tiktokPhoto.privacyLevel`\n    | `item.tiktokPhoto.disableComment`\n    | `item.tiktokPhoto.autoAddMusic`\n    | `item.tiktokPhoto.brandContentToggle`\n    | `item.tiktokPhoto.brandOrganicToggle`\n    | `item.channel.name`\n    | `item.type`\n    | `item.status`\n    | `item.siteAnalytics.traffic`\n    | `item.siteAnalytics.pageView`\n    | `item.siteAnalytics.siteBounceRate`\n    | `item.siteAnalytics.revenue`\n    | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `item.insightsSummary.impressions`\n    | `item.insightsSummary.interactions`\n    | `item.insightsSummary.impressionsTotal`\n    | `item.suggested`\n    | `item.external`\n    | `item.siteAssetRef.siteAssetRefType`\n    | `item.siteAssetRef.name`,\n    5\n  > & {\n    __applicationErrorsType?: CancelScheduledItemApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n  const reqOpts =\n    ambassadorWixPromotePublisherV1Item.cancelScheduledItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates an item.\n *\n * Provide the `id` of the item to update along with the fields to change. Only the fields you include are changed. To change a scheduled item's publish date, call Reschedule Item instead.\n * @param _id - Item ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField item\n * @permissionId PROMOTE.PUBLISHER_ITEM_UPDATE\n * @applicableIdentity APP\n * @returns Updated item.\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.UpdateItem\n */\nexport async function updateItem(\n  _id: string,\n  item: UpdateItem\n): Promise<\n  NonNullablePaths<\n    Item,\n    | `instagramPost.mediaWrapper.media`\n    | `instagramPost.mediaWrapper.media.${number}.type`\n    | `instagramPost.insights.likes`\n    | `instagramPost.insights.engagement`\n    | `instagramPost.insights.impressions`\n    | `instagramPost.insights.plays`\n    | `instagramPost.insights.reach`\n    | `instagramPost.insights.comments`\n    | `instagramPost.insights.shares`\n    | `instagramPost.insights.saved`\n    | `instagramPost.insights.totalInteractions`\n    | `instagramStory.insights.impressions`\n    | `instagramStory.insights.reach`\n    | `instagramStory.insights.replies`\n    | `facebookPost.insights.impressions.unique`\n    | `facebookPost.insights.impressions.total`\n    | `facebookPost.insights.interactions.unique`\n    | `facebookPost.insights.interactions.total`\n    | `facebookPost.insights.reactions.like`\n    | `facebookPost.insights.reactions.love`\n    | `facebookPost.insights.reactions.wow`\n    | `facebookPost.insights.reactions.haha`\n    | `facebookPost.insights.reactions.sad`\n    | `facebookPost.insights.reactions.anger`\n    | `facebookPost.insights.activity.share`\n    | `facebookPost.insights.activity.like`\n    | `facebookPost.insights.activity.comment`\n    | `youtubeVideo.notifySubscribers`\n    | `youtubeVideo.insights.views`\n    | `youtubeVideo.insights.comments`\n    | `youtubeVideo.insights.likes`\n    | `youtubeVideo.insights.dislikes`\n    | `youtubeVideo.insights.shares`\n    | `youtubeShort.notifySubscribers`\n    | `linkedinPost.insights.uniqueImpressions`\n    | `linkedinPost.insights.impression`\n    | `linkedinPost.insights.shares`\n    | `linkedinPost.insights.engagement`\n    | `linkedinPost.insights.clicks`\n    | `linkedinPost.insights.likes`\n    | `linkedinPost.insights.comments`\n    | `twitterPost.insights.retweets`\n    | `twitterPost.insights.replies`\n    | `twitterPost.insights.likes`\n    | `twitterPost.insights.quotes`\n    | `twitterPost.insights.bookmarks`\n    | `twitterPost.insights.impressions`\n    | `pinterestPost.insights.impressions`\n    | `pinterestPost.insights.clicks`\n    | `pinterestPost.insights.saves`\n    | `pinterestPost.insights.comments`\n    | `pinterestPost.insights.reactions`\n    | `gbpPost.callToAction.actionType`\n    | `gbpPost.insights.shares`\n    | `tiktokVideo.privacyLevel`\n    | `tiktokVideo.disableComment`\n    | `tiktokVideo.disableDuet`\n    | `tiktokVideo.disableStitch`\n    | `tiktokVideo.brandContentToggle`\n    | `tiktokVideo.brandOrganicToggle`\n    | `tiktokVideo.insights.views`\n    | `tiktokVideo.insights.likes`\n    | `tiktokVideo.insights.comments`\n    | `tiktokVideo.insights.shares`\n    | `tiktokPhoto.privacyLevel`\n    | `tiktokPhoto.disableComment`\n    | `tiktokPhoto.autoAddMusic`\n    | `tiktokPhoto.brandContentToggle`\n    | `tiktokPhoto.brandOrganicToggle`\n    | `channel.name`\n    | `type`\n    | `status`\n    | `siteAnalytics.traffic`\n    | `siteAnalytics.pageView`\n    | `siteAnalytics.siteBounceRate`\n    | `siteAnalytics.revenue`\n    | `siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `siteAnalytics.conversionFunnel.checkOutSessions`\n    | `siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `insightsSummary.impressions`\n    | `insightsSummary.interactions`\n    | `insightsSummary.impressionsTotal`\n    | `suggested`\n    | `external`\n    | `siteAssetRef.siteAssetRefType`\n    | `siteAssetRef.name`,\n    4\n  > & {\n    __applicationErrorsType?: UpdateItemApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    item: { ...item, id: _id },\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.updateItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.item!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { item: '$[1]' },\n        explicitPathsToArguments: { 'item.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'item']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateItem {\n  /** Instagram post content. */\n  instagramPost?: InstagramPost;\n  /** Instagram story content. */\n  instagramStory?: InstagramStory;\n  /** Facebook post content. */\n  facebookPost?: FacebookPost;\n  /** Facebook reel content. */\n  facebookReel?: FacebookReel;\n  /** Facebook story content. */\n  facebookStory?: FacebookStory;\n  /** YouTube video content. */\n  youtubeVideo?: YouTubeVideo;\n  /** YouTube short content. */\n  youtubeShort?: YouTubeShort;\n  /** LinkedIn post content. */\n  linkedinPost?: LinkedinPost;\n  /**\n   * Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @deprecated Deprecated: No longer functional as of July 31, 2026.\n   * X (Twitter) post content.\n   * @targetRemovalDate 2026-07-31\n   */\n  twitterPost?: TwitterPost;\n  /** Pinterest post content. */\n  pinterestPost?: PinterestPost;\n  /** Google Business Profile post content. */\n  gbpPost?: GbpPost;\n  /** TikTok video content. */\n  tiktokVideo?: TikTokVideo;\n  /** TikTok photo content. */\n  tiktokPhoto?: TikTokPhoto;\n  /**\n   * Item ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Social channel the item is published to, and the account within that channel. */\n  channel?: Channel;\n  /**\n   * Item format. The `type` and the content set in `data` must match a combination supported by the item's `channel.name`:\n   *\n   * - Instagram: `POST` with `instagramPost`, or `STORY` with `instagramStory`.\n   * - Facebook: `POST` with `facebookPost`, `REEL` with `facebookReel`, or `STORY` with `facebookStory`.\n   * - YouTube: `VIDEO` with `youtubeVideo`, or `SHORT` with `youtubeShort`.\n   * - LinkedIn: `POST` with `linkedinPost`.\n   * - X (Twitter): `POST` with `twitterPost`. Deprecated: No longer functional as of July 31, 2026.\n   * - Pinterest: `POST` with `pinterestPost`.\n   * - Google Business Profile: `POST` with `gbpPost`.\n   * - TikTok: `POST` with `tiktokPhoto`, or `VIDEO` with `tiktokVideo`.\n   */\n  type?: ItemTypeWithLiterals;\n  /**\n   * Current status of the item in its lifecycle.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n  /**\n   * Date and time the item was published. Returned only after the item is published.\n   * @readonly\n   */\n  publishedDate?: Date | null;\n  /** Scheduling info. Set to schedule the item for a future date instead of publishing it immediately. */\n  schedulingInfo?: SchedulingInfo;\n  /**\n   * Identifies what created the item.\n   *\n   * Specify `consumerInfo.name` when you create or publish an item, using one stable name for whatever is\n   * making the call, whether that's an app, an AI agent, or a service of your own. An item created without\n   * it is stored with an empty name, and the name can't be added later, because Update Item doesn't change\n   * it. See\n   * [Identifying what created an item](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/item-v1/introduction#identifying-what-created-an-item).\n   */\n  consumerInfo?: ConsumerInfo;\n  /** Caller-defined reference that uniquely identifies the item. Can be used to prevent duplicate publishing: an attempt to publish a second item with the same `referenceId` fails. Can also be used as a UTM campaign ID. */\n  referenceId?: string | null;\n  /** Aggregated analytics for the site, attributed to traffic from this post. */\n  siteAnalytics?: SiteAnalytics;\n  /** Summary of the post's performance on the social channel, such as impressions and interactions. */\n  insightsSummary?: InsightsSummary;\n  /** Creation and update dates, returned for draft items. */\n  draftInfo?: DraftInfo;\n  /** Whether the item was generated as an AI suggestion. */\n  suggested?: boolean;\n  /** Whether the item is a post created natively on the social channel rather than published through Wix. */\n  external?: boolean;\n  /**\n   * Details of why the item failed to publish. Returned only when `status` is `FAILED`.\n   * @readonly\n   */\n  publicationError?: PublicationErrorDetails;\n  /**\n   * Reference to the site content the post promotes, such as a product, a blog post, or an event.\n   * Set per channel.\n   */\n  siteAssetRef?: AssetReference;\n  /**\n   * ID of the item this item was derived from, when publishing produced several items\n   * from one. Currently set only by `PublishMultiStoryDraft`, which splits a multi-media\n   * story draft into one published item per frame: every resulting item carries the\n   * originating draft's ID here. Lets a consumer re-correlate the new items with whatever\n   * it had recorded against the original draft, which no longer exists after the split.\n   * Set by the publisher, never by the caller.\n   * @format GUID\n   * @readonly\n   */\n  originItemId?: string | null;\n  /**\n   * Engagement automations on the published post. Updates replace the whole list. Facebook posts only.\n   * @internal\n   */\n  automationsWrapper?: ItemAutomationsWrapper;\n}\n\n/**\n * Changes the scheduled publish date of a scheduled item.\n *\n * Only an item with a `status` of `SCHEDULED` can be rescheduled.\n * @param _id - ID of the scheduled item to reschedule.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_UPDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.RescheduleItem\n */\nexport async function rescheduleItem(\n  _id: string,\n  options?: RescheduleItemOptions\n): Promise<\n  NonNullablePaths<\n    RescheduleItemResponse,\n    | `item.instagramPost.mediaWrapper.media`\n    | `item.instagramPost.mediaWrapper.media.${number}.type`\n    | `item.instagramPost.insights.likes`\n    | `item.instagramPost.insights.engagement`\n    | `item.instagramPost.insights.impressions`\n    | `item.instagramPost.insights.plays`\n    | `item.instagramPost.insights.reach`\n    | `item.instagramPost.insights.comments`\n    | `item.instagramPost.insights.shares`\n    | `item.instagramPost.insights.saved`\n    | `item.instagramPost.insights.totalInteractions`\n    | `item.instagramStory.insights.impressions`\n    | `item.instagramStory.insights.reach`\n    | `item.instagramStory.insights.replies`\n    | `item.facebookPost.insights.impressions.unique`\n    | `item.facebookPost.insights.impressions.total`\n    | `item.facebookPost.insights.interactions.unique`\n    | `item.facebookPost.insights.interactions.total`\n    | `item.facebookPost.insights.reactions.like`\n    | `item.facebookPost.insights.reactions.love`\n    | `item.facebookPost.insights.reactions.wow`\n    | `item.facebookPost.insights.reactions.haha`\n    | `item.facebookPost.insights.reactions.sad`\n    | `item.facebookPost.insights.reactions.anger`\n    | `item.facebookPost.insights.activity.share`\n    | `item.facebookPost.insights.activity.like`\n    | `item.facebookPost.insights.activity.comment`\n    | `item.youtubeVideo.notifySubscribers`\n    | `item.youtubeVideo.insights.views`\n    | `item.youtubeVideo.insights.comments`\n    | `item.youtubeVideo.insights.likes`\n    | `item.youtubeVideo.insights.dislikes`\n    | `item.youtubeVideo.insights.shares`\n    | `item.youtubeShort.notifySubscribers`\n    | `item.linkedinPost.insights.uniqueImpressions`\n    | `item.linkedinPost.insights.impression`\n    | `item.linkedinPost.insights.shares`\n    | `item.linkedinPost.insights.engagement`\n    | `item.linkedinPost.insights.clicks`\n    | `item.linkedinPost.insights.likes`\n    | `item.linkedinPost.insights.comments`\n    | `item.twitterPost.insights.retweets`\n    | `item.twitterPost.insights.replies`\n    | `item.twitterPost.insights.likes`\n    | `item.twitterPost.insights.quotes`\n    | `item.twitterPost.insights.bookmarks`\n    | `item.twitterPost.insights.impressions`\n    | `item.pinterestPost.insights.impressions`\n    | `item.pinterestPost.insights.clicks`\n    | `item.pinterestPost.insights.saves`\n    | `item.pinterestPost.insights.comments`\n    | `item.pinterestPost.insights.reactions`\n    | `item.gbpPost.callToAction.actionType`\n    | `item.gbpPost.insights.shares`\n    | `item.tiktokVideo.privacyLevel`\n    | `item.tiktokVideo.disableComment`\n    | `item.tiktokVideo.disableDuet`\n    | `item.tiktokVideo.disableStitch`\n    | `item.tiktokVideo.brandContentToggle`\n    | `item.tiktokVideo.brandOrganicToggle`\n    | `item.tiktokVideo.insights.views`\n    | `item.tiktokVideo.insights.likes`\n    | `item.tiktokVideo.insights.comments`\n    | `item.tiktokVideo.insights.shares`\n    | `item.tiktokPhoto.privacyLevel`\n    | `item.tiktokPhoto.disableComment`\n    | `item.tiktokPhoto.autoAddMusic`\n    | `item.tiktokPhoto.brandContentToggle`\n    | `item.tiktokPhoto.brandOrganicToggle`\n    | `item.channel.name`\n    | `item.type`\n    | `item.status`\n    | `item.siteAnalytics.traffic`\n    | `item.siteAnalytics.pageView`\n    | `item.siteAnalytics.siteBounceRate`\n    | `item.siteAnalytics.revenue`\n    | `item.siteAnalytics.conversionFunnel.cartViewsSessions`\n    | `item.siteAnalytics.conversionFunnel.checkOutSessions`\n    | `item.siteAnalytics.conversionFunnel.storeOrdersSessions`\n    | `item.siteAnalytics.conversionFunnel.bookingsConfirmed`\n    | `item.insightsSummary.impressions`\n    | `item.insightsSummary.interactions`\n    | `item.insightsSummary.impressionsTotal`\n    | `item.suggested`\n    | `item.external`\n    | `item.siteAssetRef.siteAssetRefType`\n    | `item.siteAssetRef.name`,\n    5\n  > & {\n    __applicationErrorsType?: RescheduleItemApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    id: _id,\n    scheduledDate: options?.scheduledDate,\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.rescheduleItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          id: '$[0]',\n          scheduledDate: '$[1].scheduledDate',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface RescheduleItemOptions {\n  /** Date and time to publish the item. If omitted, the item is published immediately. */\n  scheduledDate?: Date | null;\n}\n\n/**\n * Deletes an item.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId PROMOTE.PUBLISHER_ITEM_DELETE\n * @applicableIdentity APP\n * @returns DeleteItemResponse\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.DeleteItem\n */\nexport async function deleteItem(_id: string): Promise<\n  void & {\n    __applicationErrorsType?: DeleteItemApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.deleteItem(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Publishes multiple items in a single call.\n *\n * Each item is published independently. To publish a single item, call Publish Item.\n * @param items - Items to publish.\n * @public\n * @documentationMaturity preview\n * @requiredField items\n * @requiredField items.channel\n * @requiredField items.channel.accountId\n * @permissionId PROMOTE.PUBLISHER_ITEM_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.promote.publisher.v1.PublicationService.BulkPublishItems\n */\nexport async function bulkPublishItems(\n  items: NonNullablePaths<Item, `channel` | `channel.accountId`, 1>[],\n  options?: BulkPublishItemsOptions\n): Promise<\n  NonNullablePaths<\n    BulkPublishItemsResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `results.${number}.item.youtubeVideo.notifySubscribers`\n    | `results.${number}.item.youtubeShort.notifySubscribers`\n    | `results.${number}.item.tiktokVideo.privacyLevel`\n    | `results.${number}.item.tiktokVideo.disableComment`\n    | `results.${number}.item.tiktokVideo.disableDuet`\n    | `results.${number}.item.tiktokVideo.disableStitch`\n    | `results.${number}.item.tiktokVideo.brandContentToggle`\n    | `results.${number}.item.tiktokVideo.brandOrganicToggle`\n    | `results.${number}.item.tiktokPhoto.privacyLevel`\n    | `results.${number}.item.tiktokPhoto.disableComment`\n    | `results.${number}.item.tiktokPhoto.autoAddMusic`\n    | `results.${number}.item.tiktokPhoto.brandContentToggle`\n    | `results.${number}.item.tiktokPhoto.brandOrganicToggle`\n    | `results.${number}.item.channel.name`\n    | `results.${number}.item.type`\n    | `results.${number}.item.status`\n    | `results.${number}.item.siteAnalytics.traffic`\n    | `results.${number}.item.siteAnalytics.pageView`\n    | `results.${number}.item.siteAnalytics.siteBounceRate`\n    | `results.${number}.item.siteAnalytics.revenue`\n    | `results.${number}.item.insightsSummary.impressions`\n    | `results.${number}.item.insightsSummary.interactions`\n    | `results.${number}.item.insightsSummary.impressionsTotal`\n    | `results.${number}.item.suggested`\n    | `results.${number}.item.external`\n    | `results.${number}.item.siteAssetRef.siteAssetRefType`\n    | `results.${number}.item.siteAssetRef.name`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    4\n  > & {\n    __applicationErrorsType?: BulkPublishItemsApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    items: items,\n    policy: options?.policy,\n    schedulingInfo: options?.schedulingInfo,\n    itemExtras: options?.itemExtras,\n    returnEntity: options?.returnEntity,\n  });\n\n  const reqOpts = ambassadorWixPromotePublisherV1Item.bulkPublishItems(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          items: '$[0]',\n          policy: '$[1].policy',\n          schedulingInfo: '$[1].schedulingInfo',\n          itemExtras: '$[1].itemExtras',\n          returnEntity: '$[1].returnEntity',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['items', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface BulkPublishItemsOptions {\n  /** Policy that determines how items are published when one of them fails. */\n  policy?: BulkPublishItemsPolicyWithLiterals;\n  /** Scheduling info applied to all items. If set, the items are scheduled instead of published immediately. */\n  schedulingInfo?: SchedulingInfo;\n  itemExtras?: ItemExtras;\n  /**\n   * Whether to return the published items in the response.\n   *\n   * Default: `false`\n   */\n  returnEntity?: boolean;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPromotePublisherV1PublicationServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'bo._base_domain_': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n      {\n        srcPath: '/_mcp/social-publisher',\n        destPath: '/mcp',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n      {\n        srcPath: '/_mcp/social-publisher',\n        destPath: '/mcp',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n      {\n        srcPath: '/_mcp/social-publisher',\n        destPath: '/mcp',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_serverless/publisher',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/social-publisher',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/social-publisher',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/social-publisher',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/social-publisher',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_promote-growth-tools-publisher_items';\n\n/**\n * Publishes an item to a connected social channel.\n *\n * Use this method to publish a fully-formed post in a single call. To publish a previously created draft, call Publish Item By ID. To save a post without publishing it, call Create Draft Item. To schedule the post, set `item.schedulingInfo.scheduledDate`; otherwise it's published immediately.\n *\n * Published items appear on the site's Social Media Marketing page in the dashboard.\n */\nexport function publishItem(payload: object): RequestOptionsFactory<any> {\n  function __publishItem({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'item.publishedDate' },\n          { path: 'item.facebookPost.insights.updatedDate' },\n          { path: 'item.facebookReel.insights.updatedDate' },\n          { path: 'item.facebookStory.insights.updatedDate' },\n          { path: 'item.youtubeVideo.insights.updatedDate' },\n          { path: 'item.youtubeShort.insights.updatedDate' },\n          { path: 'item.linkedinPost.insights.updatedDate' },\n          { path: 'item.twitterPost.insights.updatedDate' },\n          { path: 'item.pinterestPost.insights.updatedDate' },\n          { path: 'item.gbpPost.insights.updatedDate' },\n          { path: 'item.tiktokVideo.insights.updatedDate' },\n          { path: 'item.tiktokPhoto.insights.updatedDate' },\n          { path: 'item.schedulingInfo.scheduledDate' },\n          { path: 'item.schedulingInfo.schedulingTimestamp' },\n          { path: 'item.siteAnalytics.updatedDate' },\n          { path: 'item.insightsSummary.updatedDate' },\n          { path: 'item.draftInfo.createdDate' },\n          { path: 'item.draftInfo.updatedDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'item.linkedinPost.insights.engagement' },\n          { path: 'item.siteAnalytics.siteBounceRate' },\n          { path: 'item.siteAnalytics.revenue' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.PublishItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/publish',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __publishItem;\n}\n\n/**\n * Publishes a previously created item by its `id`.\n *\n * The item can be a draft or a scheduled item. To schedule the item for a future date, set `scheduledDate`; otherwise it's published immediately.\n *\n * Published items appear on the site's Social Media Marketing page in the dashboard.\n */\nexport function publishItemById(payload: object): RequestOptionsFactory<any> {\n  function __publishItemById({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'scheduledDate' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.PublishItemById',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/publish-by-id',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __publishItemById;\n}\n\n/**\n * Creates a draft item.\n *\n * A draft is an item that's saved but not yet published, with a `status` of `DRAFT`. Drafts appear on the site's Social Media Marketing page in the dashboard, where they can be reviewed and published. To publish a draft, call Publish Item By ID.\n *\n * The item's `type` and content must match a combination supported by the target channel. See `item.type` for the supported combinations.\n */\nexport function createDraftItem(payload: object): RequestOptionsFactory<any> {\n  function __createDraftItem({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'item.publishedDate' },\n          { path: 'item.facebookPost.insights.updatedDate' },\n          { path: 'item.facebookReel.insights.updatedDate' },\n          { path: 'item.facebookStory.insights.updatedDate' },\n          { path: 'item.youtubeVideo.insights.updatedDate' },\n          { path: 'item.youtubeShort.insights.updatedDate' },\n          { path: 'item.linkedinPost.insights.updatedDate' },\n          { path: 'item.twitterPost.insights.updatedDate' },\n          { path: 'item.pinterestPost.insights.updatedDate' },\n          { path: 'item.gbpPost.insights.updatedDate' },\n          { path: 'item.tiktokVideo.insights.updatedDate' },\n          { path: 'item.tiktokPhoto.insights.updatedDate' },\n          { path: 'item.schedulingInfo.scheduledDate' },\n          { path: 'item.schedulingInfo.schedulingTimestamp' },\n          { path: 'item.siteAnalytics.updatedDate' },\n          { path: 'item.insightsSummary.updatedDate' },\n          { path: 'item.draftInfo.createdDate' },\n          { path: 'item.draftInfo.updatedDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'item.linkedinPost.insights.engagement' },\n          { path: 'item.siteAnalytics.siteBounceRate' },\n          { path: 'item.siteAnalytics.revenue' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.CreateDraftItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createDraftItem;\n}\n\n/**\n * Publishes a multi-story draft as a sequence of single-media story items.\n *\n * The draft's media list is split into individual story items that are published sequentially\n * in media order, stopping on the first failure. Each story item gets a derived `referenceId`\n * of `{draftReferenceId}:story:{index}` (the draft `id` is used when the draft has no `referenceId`).\n * Story items already published by a previous call are skipped, so the method can be safely retried\n * after a partial failure. The draft is deleted only after all story items are published.\n * To schedule the story sequence, set `schedulingInfo.scheduledDate`; otherwise it's published immediately.\n */\nexport function publishMultiStoryDraft(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __publishMultiStoryDraft({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'schedulingInfo.scheduledDate' },\n          { path: 'schedulingInfo.schedulingTimestamp' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.PublishMultiStoryDraft',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/publish-multi-story-draft',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.item.publishedDate' },\n              { path: 'results.item.facebookPost.insights.updatedDate' },\n              { path: 'results.item.facebookReel.insights.updatedDate' },\n              { path: 'results.item.facebookStory.insights.updatedDate' },\n              { path: 'results.item.youtubeVideo.insights.updatedDate' },\n              { path: 'results.item.youtubeShort.insights.updatedDate' },\n              { path: 'results.item.linkedinPost.insights.updatedDate' },\n              { path: 'results.item.twitterPost.insights.updatedDate' },\n              { path: 'results.item.pinterestPost.insights.updatedDate' },\n              { path: 'results.item.gbpPost.insights.updatedDate' },\n              { path: 'results.item.tiktokVideo.insights.updatedDate' },\n              { path: 'results.item.tiktokPhoto.insights.updatedDate' },\n              { path: 'results.item.schedulingInfo.scheduledDate' },\n              { path: 'results.item.schedulingInfo.schedulingTimestamp' },\n              { path: 'results.item.siteAnalytics.updatedDate' },\n              { path: 'results.item.insightsSummary.updatedDate' },\n              { path: 'results.item.draftInfo.createdDate' },\n              { path: 'results.item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'results.item.linkedinPost.insights.engagement' },\n              { path: 'results.item.siteAnalytics.siteBounceRate' },\n              { path: 'results.item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __publishMultiStoryDraft;\n}\n\n/** Retrieves an item by ID. */\nexport function getItem(payload: object): RequestOptionsFactory<any> {\n  function __getItem({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.promote.publisher.v1.PublicationService.GetItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getItem;\n}\n\n/** Retrieves a list of items by their IDs. */\nexport function getItems(payload: object): RequestOptionsFactory<any> {\n  function __getItems({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.GetItems',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'items.publishedDate' },\n              { path: 'items.facebookPost.insights.updatedDate' },\n              { path: 'items.facebookReel.insights.updatedDate' },\n              { path: 'items.facebookStory.insights.updatedDate' },\n              { path: 'items.youtubeVideo.insights.updatedDate' },\n              { path: 'items.youtubeShort.insights.updatedDate' },\n              { path: 'items.linkedinPost.insights.updatedDate' },\n              { path: 'items.twitterPost.insights.updatedDate' },\n              { path: 'items.pinterestPost.insights.updatedDate' },\n              { path: 'items.gbpPost.insights.updatedDate' },\n              { path: 'items.tiktokVideo.insights.updatedDate' },\n              { path: 'items.tiktokPhoto.insights.updatedDate' },\n              { path: 'items.schedulingInfo.scheduledDate' },\n              { path: 'items.schedulingInfo.schedulingTimestamp' },\n              { path: 'items.siteAnalytics.updatedDate' },\n              { path: 'items.insightsSummary.updatedDate' },\n              { path: 'items.draftInfo.createdDate' },\n              { path: 'items.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'items.linkedinPost.insights.engagement' },\n              { path: 'items.siteAnalytics.siteBounceRate' },\n              { path: 'items.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getItems;\n}\n\n/**\n * Retrieves a list of items, given the provided paging, filtering, and sorting.\n *\n * Query Items runs with these defaults, which you can override:\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * Query Items supports a fixed set of filterable fields:\n * - `status`: `PUBLISHED`, `SCHEDULED`, `DRAFT`, `FAILED`, `CANCELED`, `PROCESSING`, or `IN_QUEUE`.\n * - `channel`: a channel name, such as `FACEBOOK` or `INSTAGRAM`.\n * - `type`: `POST`, `STORY`, `REEL`, `VIDEO`, or `SHORT`.\n * - `mediaType`: `IMAGE` or `VIDEO`.\n * - `suggested`: `true` or `false`.\n * - `ids`: a list of item IDs.\n *\n * Each of these supports the `$eq` and `$in` operators, and a bare value as shorthand for `$eq`, except\n * for `ids`, which supports `$in` only. Enum values are case insensitive. A value that the API doesn't\n * define matches no items rather than returning an error, and a field that isn't listed above is ignored\n * rather than rejected, so a filter on an unsupported field returns the same items as no filter at all.\n *\n * Sorting is supported on these fields:\n * - `date`: the default. Newest first, unless you specify `order`.\n * - `impressionsTotal`, `impressions`, `interactions`, and `siteVisits`: require the site to have post\n * insights. Without them, the items are sorted by `date` instead, in whichever direction you\n * specified.\n *\n * To learn about working with Query 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), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryItems(payload: object): RequestOptionsFactory<any> {\n  function __queryItems({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'query.sort.origin.latitude' },\n          { path: 'query.sort.origin.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.QueryItems',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/query',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'items.publishedDate' },\n              { path: 'items.facebookPost.insights.updatedDate' },\n              { path: 'items.facebookReel.insights.updatedDate' },\n              { path: 'items.facebookStory.insights.updatedDate' },\n              { path: 'items.youtubeVideo.insights.updatedDate' },\n              { path: 'items.youtubeShort.insights.updatedDate' },\n              { path: 'items.linkedinPost.insights.updatedDate' },\n              { path: 'items.twitterPost.insights.updatedDate' },\n              { path: 'items.pinterestPost.insights.updatedDate' },\n              { path: 'items.gbpPost.insights.updatedDate' },\n              { path: 'items.tiktokVideo.insights.updatedDate' },\n              { path: 'items.tiktokPhoto.insights.updatedDate' },\n              { path: 'items.schedulingInfo.scheduledDate' },\n              { path: 'items.schedulingInfo.schedulingTimestamp' },\n              { path: 'items.siteAnalytics.updatedDate' },\n              { path: 'items.insightsSummary.updatedDate' },\n              { path: 'items.draftInfo.createdDate' },\n              { path: 'items.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'items.linkedinPost.insights.engagement' },\n              { path: 'items.siteAnalytics.siteBounceRate' },\n              { path: 'items.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryItems;\n}\n\n/**\n * Cancels the scheduling of a scheduled item.\n *\n * The item is no longer published at its scheduled time. Only an item with a `status` of `SCHEDULED` can be canceled.\n */\nexport function cancelScheduledItem(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __cancelScheduledItem({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.CancelScheduledItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/{id}/cancel',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __cancelScheduledItem;\n}\n\n/**\n * Updates an item.\n *\n * Provide the `id` of the item to update along with the fields to change. Only the fields you include are changed. To change a scheduled item's publish date, call Reschedule Item instead.\n */\nexport function updateItem(payload: object): RequestOptionsFactory<any> {\n  function __updateItem({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'item.publishedDate' },\n          { path: 'item.facebookPost.insights.updatedDate' },\n          { path: 'item.facebookReel.insights.updatedDate' },\n          { path: 'item.facebookStory.insights.updatedDate' },\n          { path: 'item.youtubeVideo.insights.updatedDate' },\n          { path: 'item.youtubeShort.insights.updatedDate' },\n          { path: 'item.linkedinPost.insights.updatedDate' },\n          { path: 'item.twitterPost.insights.updatedDate' },\n          { path: 'item.pinterestPost.insights.updatedDate' },\n          { path: 'item.gbpPost.insights.updatedDate' },\n          { path: 'item.tiktokVideo.insights.updatedDate' },\n          { path: 'item.tiktokPhoto.insights.updatedDate' },\n          { path: 'item.schedulingInfo.scheduledDate' },\n          { path: 'item.schedulingInfo.schedulingTimestamp' },\n          { path: 'item.siteAnalytics.updatedDate' },\n          { path: 'item.insightsSummary.updatedDate' },\n          { path: 'item.draftInfo.createdDate' },\n          { path: 'item.draftInfo.updatedDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'item.linkedinPost.insights.engagement' },\n          { path: 'item.siteAnalytics.siteBounceRate' },\n          { path: 'item.siteAnalytics.revenue' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.UpdateItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/{item.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateItem;\n}\n\n/**\n * Changes the scheduled publish date of a scheduled item.\n *\n * Only an item with a `status` of `SCHEDULED` can be rescheduled.\n */\nexport function rescheduleItem(payload: object): RequestOptionsFactory<any> {\n  function __rescheduleItem({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'scheduledDate' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.RescheduleItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/{id}/reschedule',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'item.publishedDate' },\n              { path: 'item.facebookPost.insights.updatedDate' },\n              { path: 'item.facebookReel.insights.updatedDate' },\n              { path: 'item.facebookStory.insights.updatedDate' },\n              { path: 'item.youtubeVideo.insights.updatedDate' },\n              { path: 'item.youtubeShort.insights.updatedDate' },\n              { path: 'item.linkedinPost.insights.updatedDate' },\n              { path: 'item.twitterPost.insights.updatedDate' },\n              { path: 'item.pinterestPost.insights.updatedDate' },\n              { path: 'item.gbpPost.insights.updatedDate' },\n              { path: 'item.tiktokVideo.insights.updatedDate' },\n              { path: 'item.tiktokPhoto.insights.updatedDate' },\n              { path: 'item.schedulingInfo.scheduledDate' },\n              { path: 'item.schedulingInfo.schedulingTimestamp' },\n              { path: 'item.siteAnalytics.updatedDate' },\n              { path: 'item.insightsSummary.updatedDate' },\n              { path: 'item.draftInfo.createdDate' },\n              { path: 'item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'item.linkedinPost.insights.engagement' },\n              { path: 'item.siteAnalytics.siteBounceRate' },\n              { path: 'item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __rescheduleItem;\n}\n\n/** Deletes an item. */\nexport function deleteItem(payload: object): RequestOptionsFactory<any> {\n  function __deleteItem({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.DeleteItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/items/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteItem;\n}\n\n/**\n * Publishes multiple items in a single call.\n *\n * Each item is published independently. To publish a single item, call Publish Item.\n */\nexport function bulkPublishItems(payload: object): RequestOptionsFactory<any> {\n  function __bulkPublishItems({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'items.publishedDate' },\n          { path: 'items.facebookPost.insights.updatedDate' },\n          { path: 'items.facebookReel.insights.updatedDate' },\n          { path: 'items.facebookStory.insights.updatedDate' },\n          { path: 'items.youtubeVideo.insights.updatedDate' },\n          { path: 'items.youtubeShort.insights.updatedDate' },\n          { path: 'items.linkedinPost.insights.updatedDate' },\n          { path: 'items.twitterPost.insights.updatedDate' },\n          { path: 'items.pinterestPost.insights.updatedDate' },\n          { path: 'items.gbpPost.insights.updatedDate' },\n          { path: 'items.tiktokVideo.insights.updatedDate' },\n          { path: 'items.tiktokPhoto.insights.updatedDate' },\n          { path: 'items.schedulingInfo.scheduledDate' },\n          { path: 'items.schedulingInfo.schedulingTimestamp' },\n          { path: 'items.siteAnalytics.updatedDate' },\n          { path: 'items.insightsSummary.updatedDate' },\n          { path: 'items.draftInfo.createdDate' },\n          { path: 'items.draftInfo.updatedDate' },\n          { path: 'schedulingInfo.scheduledDate' },\n          { path: 'schedulingInfo.schedulingTimestamp' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'items.linkedinPost.insights.engagement' },\n          { path: 'items.siteAnalytics.siteBounceRate' },\n          { path: 'items.siteAnalytics.revenue' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.promote.publisher.v1.item',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.promote.publisher.v1.PublicationService.BulkPublishItems',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPromotePublisherV1PublicationServiceUrl({\n        protoPath: '/v1/bulk/publish',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.item.publishedDate' },\n              { path: 'results.item.facebookPost.insights.updatedDate' },\n              { path: 'results.item.facebookReel.insights.updatedDate' },\n              { path: 'results.item.facebookStory.insights.updatedDate' },\n              { path: 'results.item.youtubeVideo.insights.updatedDate' },\n              { path: 'results.item.youtubeShort.insights.updatedDate' },\n              { path: 'results.item.linkedinPost.insights.updatedDate' },\n              { path: 'results.item.twitterPost.insights.updatedDate' },\n              { path: 'results.item.pinterestPost.insights.updatedDate' },\n              { path: 'results.item.gbpPost.insights.updatedDate' },\n              { path: 'results.item.tiktokVideo.insights.updatedDate' },\n              { path: 'results.item.tiktokPhoto.insights.updatedDate' },\n              { path: 'results.item.schedulingInfo.scheduledDate' },\n              { path: 'results.item.schedulingInfo.schedulingTimestamp' },\n              { path: 'results.item.siteAnalytics.updatedDate' },\n              { path: 'results.item.insightsSummary.updatedDate' },\n              { path: 'results.item.draftInfo.createdDate' },\n              { path: 'results.item.draftInfo.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'results.item.linkedinPost.insights.engagement' },\n              { path: 'results.item.siteAnalytics.siteBounceRate' },\n              { path: 'results.item.siteAnalytics.revenue' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkPublishItems;\n}\n","import {\n  publishItem as publicPublishItem,\n  publishItemById as publicPublishItemById,\n  createDraftItem as publicCreateDraftItem,\n  publishMultiStoryDraft as publicPublishMultiStoryDraft,\n  getItem as publicGetItem,\n  getItems as publicGetItems,\n  queryItems as publicQueryItems,\n  cancelScheduledItem as publicCancelScheduledItem,\n  updateItem as publicUpdateItem,\n  rescheduleItem as publicRescheduleItem,\n  deleteItem as publicDeleteItem,\n  bulkPublishItems as publicBulkPublishItems,\n} from './promote-publisher-v1-item-items.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onItemPublishFailed as publicOnItemPublishFailed } from './promote-publisher-v1-item-items.public.js';\nimport { onItemPublishScheduled as publicOnItemPublishScheduled } from './promote-publisher-v1-item-items.public.js';\nimport { onItemPublishStarted as publicOnItemPublishStarted } from './promote-publisher-v1-item-items.public.js';\nimport { onItemPublished as publicOnItemPublished } from './promote-publisher-v1-item-items.public.js';\n\nexport const publishItem: MaybeContext<\n  BuildRESTFunction<typeof publicPublishItem> & typeof publicPublishItem\n> = /*#__PURE__*/ createRESTModule(publicPublishItem);\nexport const publishItemById: MaybeContext<\n  BuildRESTFunction<typeof publicPublishItemById> & typeof publicPublishItemById\n> = /*#__PURE__*/ createRESTModule(publicPublishItemById);\nexport const createDraftItem: MaybeContext<\n  BuildRESTFunction<typeof publicCreateDraftItem> & typeof publicCreateDraftItem\n> = /*#__PURE__*/ createRESTModule(publicCreateDraftItem);\nexport const publishMultiStoryDraft: MaybeContext<\n  BuildRESTFunction<typeof publicPublishMultiStoryDraft> &\n    typeof publicPublishMultiStoryDraft\n> = /*#__PURE__*/ createRESTModule(publicPublishMultiStoryDraft);\nexport const getItem: MaybeContext<\n  BuildRESTFunction<typeof publicGetItem> & typeof publicGetItem\n> = /*#__PURE__*/ createRESTModule(publicGetItem);\nexport const getItems: MaybeContext<\n  BuildRESTFunction<typeof publicGetItems> & typeof publicGetItems\n> = /*#__PURE__*/ createRESTModule(publicGetItems);\nexport const queryItems: MaybeContext<\n  BuildRESTFunction<typeof publicQueryItems> & typeof publicQueryItems\n> = /*#__PURE__*/ createRESTModule(publicQueryItems);\nexport const cancelScheduledItem: MaybeContext<\n  BuildRESTFunction<typeof publicCancelScheduledItem> &\n    typeof publicCancelScheduledItem\n> = /*#__PURE__*/ createRESTModule(publicCancelScheduledItem);\nexport const updateItem: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateItem> & typeof publicUpdateItem\n> = /*#__PURE__*/ createRESTModule(publicUpdateItem);\nexport const rescheduleItem: MaybeContext<\n  BuildRESTFunction<typeof publicRescheduleItem> & typeof publicRescheduleItem\n> = /*#__PURE__*/ createRESTModule(publicRescheduleItem);\nexport const deleteItem: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteItem> & typeof publicDeleteItem\n> = /*#__PURE__*/ createRESTModule(publicDeleteItem);\nexport const bulkPublishItems: MaybeContext<\n  BuildRESTFunction<typeof publicBulkPublishItems> &\n    typeof publicBulkPublishItems\n> = /*#__PURE__*/ createRESTModule(publicBulkPublishItems);\n/** */\nexport const onItemPublishFailed: BuildEventDefinition<\n  typeof publicOnItemPublishFailed\n> &\n  typeof publicOnItemPublishFailed = /*#__PURE__*/ createEventModule(\n  publicOnItemPublishFailed\n);\n/** */\nexport const onItemPublishScheduled: BuildEventDefinition<\n  typeof publicOnItemPublishScheduled\n> &\n  typeof publicOnItemPublishScheduled = /*#__PURE__*/ createEventModule(\n  publicOnItemPublishScheduled\n);\n/** */\nexport const onItemPublishStarted: BuildEventDefinition<\n  typeof publicOnItemPublishStarted\n> &\n  typeof publicOnItemPublishStarted = /*#__PURE__*/ createEventModule(\n  publicOnItemPublishStarted\n);\n/** */\nexport const onItemPublished: BuildEventDefinition<\n  typeof publicOnItemPublished\n> &\n  typeof publicOnItemPublished = /*#__PURE__*/ createEventModule(\n  publicOnItemPublished\n);\n\nexport {\n  ChannelName,\n  ConsumerType,\n  Type,\n  ItemType,\n  Status,\n  MediaType,\n  GbpPostCallToActionType,\n  TikTokPrivacyLevel,\n  SchedulingRestrictedReason,\n  SortOrder,\n  BulkPublishItemsPolicy,\n  WebhookIdentityType,\n} from './promote-publisher-v1-item-items.universal.js';\nexport {\n  Item,\n  ItemDataOneOf,\n  PublishingTarget,\n  ItemAutomation,\n  ItemAutomationTriggerOneOf,\n  ItemAutomationActionOneOf,\n  CommentTrigger,\n  SendPrivateReplyAction,\n  ReplyToCommentAction,\n  Channel,\n  SchedulingInfo,\n  ConsumerInfo,\n  InstagramPost,\n  InstagramPostUrlOneOf,\n  MediaWrapper,\n  Media,\n  InstagramInsights,\n  InstagramStory,\n  InstagramStoryInsights,\n  FacebookPost,\n  FacebookPostUrlOneOf,\n  LinkMetadata,\n  FacebookInsights,\n  FacebookImpressions,\n  FacebookInteractions,\n  FacebookReactions,\n  FacebokActivity,\n  FacebookReel,\n  FacebookStory,\n  YouTubeVideo,\n  YoutubeInsights,\n  YouTubeShort,\n  LinkedinPost,\n  LinkedinPostUrlOneOf,\n  LinkedinPostInsights,\n  TwitterPost,\n  TwitterPostUrlOneOf,\n  TwitterInsights,\n  PinterestPost,\n  PinterestInsights,\n  GbpPost,\n  GbpPostCallToAction,\n  GbpInsights,\n  TikTokVideo,\n  TikTokInsights,\n  TikTokPhoto,\n  SiteAnalytics,\n  ConversionFunnel,\n  InsightsSummary,\n  DraftInfo,\n  PublicationErrorDetails,\n  AssetReference,\n  ItemAutomationsWrapper,\n  PublishItemRequest,\n  ItemExtras,\n  PublishItemResponse,\n  ItemPublishStarted,\n  ItemPublished,\n  ItemPublishFailed,\n  ItemPublishScheduled,\n  PublishItemByIdRequest,\n  PublishItemByIdResponse,\n  CreateDraftItemRequest,\n  CreateDraftItemResponse,\n  GetOrCreateWixelBindingByFileRequest,\n  GetOrCreateWixelBindingByFileResponse,\n  PublishDraftRequest,\n  PublishDraftResponse,\n  PublishMultiStoryDraftRequest,\n  PublishMultiStoryDraftResponse,\n  BulkItemsResult,\n  ItemMetadata,\n  ApplicationError,\n  BulkActionMetadata,\n  IsEligibleForSchedulingRequest,\n  IsEligibleForSchedulingResponse,\n  GetItemRequest,\n  GetItemResponse,\n  GetItemsRequest,\n  GetItemsResponse,\n  QueryItemsRequest,\n  Query,\n  Sorting,\n  AddressLocation,\n  Paging,\n  QueryItemsResponse,\n  PagingMetadata,\n  CancelScheduledItemRequest,\n  CancelScheduledItemResponse,\n  UpdateItemRequest,\n  UpdateItemResponse,\n  RescheduleItemRequest,\n  RescheduleItemResponse,\n  DeleteItemRequest,\n  DeleteItemResponse,\n  BulkPublishItemsRequest,\n  BulkPublishItemsResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  ItemPublishFailedEnvelope,\n  ItemPublishScheduledEnvelope,\n  ItemPublishStartedEnvelope,\n  ItemPublishedEnvelope,\n  PublishItemOptions,\n  PublishItemByIdOptions,\n  CreateDraftItemOptions,\n  PublishMultiStoryDraftOptions,\n  UpdateItem,\n  RescheduleItemOptions,\n  BulkPublishItemsOptions,\n} from './promote-publisher-v1-item-items.universal.js';\nexport {\n  ChannelNameWithLiterals,\n  ConsumerTypeWithLiterals,\n  TypeWithLiterals,\n  ItemTypeWithLiterals,\n  StatusWithLiterals,\n  MediaTypeWithLiterals,\n  GbpPostCallToActionTypeWithLiterals,\n  TikTokPrivacyLevelWithLiterals,\n  SchedulingRestrictedReasonWithLiterals,\n  SortOrderWithLiterals,\n  BulkPublishItemsPolicyWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  PublishItemApplicationErrors,\n  PublishItemByIdApplicationErrors,\n  PublishMultiStoryDraftApplicationErrors,\n  CancelScheduledItemApplicationErrors,\n  UpdateItemApplicationErrors,\n  RescheduleItemApplicationErrors,\n  DeleteItemApplicationErrors,\n  BulkPublishItemsApplicationErrors,\n} from './promote-publisher-v1-item-items.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACJ9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SA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MC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,0BAGK,iCAAiBA,uBAA4B;AACxD,IAAMC,WAEK,iCAAiBA,QAAa;AACzC,IAAMC,YAEK,iCAAiBA,SAAc;AAC1C,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAElD,IAAMC,uBAGsC;AAAA,EACjD;AACF;AAEO,IAAMC,0BAGyC;AAAA,EACpD;AACF;AAEO,IAAMC,wBAGuC;AAAA,EAClD;AACF;AAEO,IAAMC,mBAGkC;AAAA,EAC7C;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","transformPaths","payload","ChannelName","ConsumerType","Type","ItemType","Status","MediaType","GbpPostCallToActionType","TikTokPrivacyLevel","SchedulingRestrictedReason","SortOrder","BulkPublishItemsPolicy","WebhookIdentityType","publishItem","publishItemById","createDraftItem","publishMultiStoryDraft","getItem","getItems","queryItems","cancelScheduledItem","updateItem","rescheduleItem","deleteItem","bulkPublishItems","publishItem","publishItemById","createDraftItem","publishMultiStoryDraft","getItem","getItems","queryItems","cancelScheduledItem","updateItem","rescheduleItem","deleteItem","bulkPublishItems","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTFloatToSDKFloat","publishItem","publishItemById","createDraftItem","publishMultiStoryDraft","getItem","getItems","queryItems","cancelScheduledItem","updateItem","rescheduleItem","deleteItem","bulkPublishItems","onItemPublishFailed","onItemPublishScheduled","onItemPublishStarted","onItemPublished"]}