{"version":3,"sources":["jsdelivr-header.js","/npm/@wix/auto_sdk_forum_posts@1.0.24/index.ts","/npm/@wix/auto_sdk_forum_posts@1.0.24/src/forum-v1-post-posts.public.ts","/npm/@wix/auto_sdk_forum_posts@1.0.24/src/forum-v1-post-posts.universal.ts","/npm/@wix/auto_sdk_forum_posts@1.0.24/src/forum-v1-post-posts.http.ts","/npm/@wix/auto_sdk_forum_posts@1.0.24/src/forum-v1-post-posts.context.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8iBCNA,cAAA,GAAA,SAAA,cAAA,CAAA,WAAA,IAAA,WAAA,MAAA,IAAA,MAAA,aAAA,IAAA,aAAA,YAAA,IAAA,YAAA,MAAA,IAAA,MAAA,eAAA,IAAA,eAAA,SAAA,IAAA,SAAA,WAAA,IAAA,WAAA,oBAAA,IAAA,oBAAA,QAAA,IAAA,SAAA,cAAA,IAAA,eAAA,aAAA,IAAA,cAAA,cAAA,IAAA,eAAA,cAAA,IAAA,eAAA,YAAA,IAAA,aAAA,YAAA,IAAA,aAAA,aAAA,IAAA,cAAA,aAAA,IAAA,cAAA,cAAA,IAAA,eAAA,eAAA,IAAA,gBAAA,cAAA,IAAA,eAAA,eAAA,IAAA,gBAAA,gBAAA,IAAA,iBAAA,cAAA,IAAA,eAAA,WAAA,IAAA,cAAA,OAAA,QAAA,aAAA,eCAA,IAAA,+BAAwD,QAAA,2CACxD,cAA6C,QAAA,0CAC7C,iBAAiD,QAAA,6CACjD,kBAAqD,QAAA,8CACrD,wBAA+B,QAAA,oDAC/B,iBAAiD,QAAA,6CACjD,iBAA8D,QAAA,kBCN9D,uBAAoD,QAAA,oCACpD,8BAGO,QAAA,2CCJP,oBAAkC,QAAA,iCAClC,aAA6C,QAAA,0CAC7C,iBAAqD,QAAA,8CACrD,uBAA+B,QAAA,oDAC/B,qBAA2B,QAAA,iCAI3B,SAAS,iEACP,GA6NA,SAAO,qBAAA,YAAW,OAAO,OAAO,EAAM,CAAE,iBA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ACiB,gCAAA,mBAAkB,cAKnC,kBACkB,gCAAA,mBAAkB,eAKpC,mBACmB,gCAAA,mBAAkB,gBAKrC,kBACkB,gCAAA,mBAAkB,eAKpC,mBACmB,gCAAA,mBAAkB,gBAKrC,oBAGoB,gCAAA,mBAAkB,iBAKtC,kBACkB,gCAAA,mBAAkB","file":"/npm/@wix/auto_sdk_forum_posts@1.0.24/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wix/auto_sdk_forum_posts@1.0.24/build/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export * from './src/forum-v1-post-posts.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  GetPostBySlugOptions,\n  GetPostOptions,\n  Post,\n  PostClosedEnvelope,\n  PostCreatedEnvelope,\n  PostDeletedEnvelope,\n  PostLikedEnvelope,\n  PostMovedEnvelope,\n  PostOpenedEnvelope,\n  PostPinnedEnvelope,\n  PostReactedEnvelope,\n  PostReportedEnvelope,\n  PostResponse,\n  PostUnlikedEnvelope,\n  PostUnpinnedEnvelope,\n  PostUnreactedEnvelope,\n  PostUpdatedEnvelope,\n  QueryPostsOptions,\n  QueryPostsResponse,\n  getPost as universalGetPost,\n  getPostBySlug as universalGetPostBySlug,\n  queryPosts as universalQueryPosts,\n} from './forum-v1-post-posts.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/forum' };\n\nexport function getPost(httpClient: HttpClient): GetPostSignature {\n  return (postId: string, options?: GetPostOptions) =>\n    universalGetPost(\n      postId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetPostSignature {\n  /**\n   * Retrieves a single post by ID.\n   * @param - Post ID.\n   * @param - Options specifying which additional fields to return.\n   * @returns Post for the provided post ID.\n   * @deprecated\n   */\n  (postId: string, options?: GetPostOptions): Promise<\n    NonNullablePaths<\n      Post,\n      | `categoryId`\n      | `images`\n      | `videos`\n      | `commentInteraction`\n      | `markedComments`\n      | `recentActivity.memberId`\n      | `recentActivity.entityId`\n      | `recentActivity.type`\n      | `recentActivity.activityDate`\n      | `reactionIdentities`\n      | `reactionIdentities.${number}.reactionCode`\n      | `reactionIdentities.${number}.count`,\n      4\n    >\n  >;\n}\n\nexport function getPostBySlug(httpClient: HttpClient): GetPostBySlugSignature {\n  return (slug: string, options?: GetPostBySlugOptions) =>\n    universalGetPostBySlug(\n      slug,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetPostBySlugSignature {\n  /**\n   * Retrieves a single post by URL slug.\n   * @param - URL slug.\n   * @param - Options specifying which additional fields to return.\n   * @deprecated\n   */\n  (slug: string, options?: GetPostBySlugOptions): Promise<\n    NonNullablePaths<\n      PostResponse,\n      | `post.categoryId`\n      | `post.images`\n      | `post.videos`\n      | `post.commentInteraction`\n      | `post.markedComments`\n      | `post.recentActivity.memberId`\n      | `post.recentActivity.entityId`\n      | `post.recentActivity.type`\n      | `post.recentActivity.activityDate`\n      | `post.reactionIdentities`\n      | `post.reactionIdentities.${number}.reactionCode`\n      | `post.reactionIdentities.${number}.count`,\n      5\n    >\n  >;\n}\n\nexport function queryPosts(httpClient: HttpClient): QueryPostsSignature {\n  return (options?: QueryPostsOptions) =>\n    universalQueryPosts(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryPostsSignature {\n  /**\n   * Returns a list of posts by query.\n   *\n   * Paging\n   * - limit: default - 10, min - 0, max - 100\n   * - offset: default - 0, min - 0\n   *\n   * Filterable fields:\n   * - id\n   * - categoryId\n   * - ownerId\n   * - title\n   * - contentText\n   * - bestAnswerCommentId\n   * - pinned\n   * - commentingEnabled\n   * - commentCount\n   * - likeCount\n   * - viewCount\n   * - createdDate\n   * - editedDate\n   * - lastActivityDate\n   * - slug\n   *\n   * Sortable fields:\n   * - lastActivityDate\n   * - createdDate\n   * - commentCount\n   * - viewCount\n   * - likeCount\n   * - pinned\n   * @param - Options for sorting, filtering, paging, and specifying return fields.\n   * @deprecated\n   */\n  (options?: QueryPostsOptions): Promise<\n    NonNullablePaths<\n      QueryPostsResponse,\n      | `posts`\n      | `posts.${number}.categoryId`\n      | `posts.${number}.commentInteraction`\n      | `posts.${number}.recentActivity.memberId`\n      | `posts.${number}.recentActivity.entityId`\n      | `posts.${number}.recentActivity.type`\n      | `posts.${number}.recentActivity.activityDate`\n      | `metaData.count`\n      | `metaData.offset`\n      | `metaData.total`,\n      5\n    >\n  >;\n}\n\nexport const onPostClosed = EventDefinition(\n  'wix.forum.post_closed',\n  true,\n  (event: PostClosedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostClosedEnvelope>();\nexport const onPostCreated = EventDefinition(\n  'wix.forum.post_created',\n  true,\n  (event: PostCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.lastActivityDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'entity.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'entity.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'entity.videos', isRepeated: true }],\n        },\n      ])\n    )\n)<PostCreatedEnvelope>();\nexport const onPostDeleted = EventDefinition(\n  'wix.forum.post_deleted',\n  true,\n  (event: PostDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'undefined.createdDate' },\n            { path: 'undefined.lastActivityDate' },\n            { path: 'undefined.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'undefined.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'undefined.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'undefined.videos', isRepeated: true }],\n        },\n      ])\n    )\n)<PostDeletedEnvelope>();\nexport const onPostLiked = EventDefinition(\n  'wix.forum.post_liked',\n  true,\n  (event: PostLikedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostLikedEnvelope>();\nexport const onPostMoved = EventDefinition(\n  'wix.forum.post_moved',\n  true,\n  (event: PostMovedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostMovedEnvelope>();\nexport const onPostOpened = EventDefinition(\n  'wix.forum.post_opened',\n  true,\n  (event: PostOpenedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostOpenedEnvelope>();\nexport const onPostPinned = EventDefinition(\n  'wix.forum.post_pinned',\n  true,\n  (event: PostPinnedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostPinnedEnvelope>();\nexport const onPostReacted = EventDefinition(\n  'wix.forum.post_reacted',\n  true,\n  (event: PostReactedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostReactedEnvelope>();\nexport const onPostReported = EventDefinition(\n  'wix.forum.post_reported',\n  true,\n  (event: PostReportedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostReportedEnvelope>();\nexport const onPostUnliked = EventDefinition(\n  'wix.forum.post_unliked',\n  true,\n  (event: PostUnlikedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostUnlikedEnvelope>();\nexport const onPostUnpinned = EventDefinition(\n  'wix.forum.post_unpinned',\n  true,\n  (event: PostUnpinnedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostUnpinnedEnvelope>();\nexport const onPostUnreacted = EventDefinition(\n  'wix.forum.post_unreacted',\n  true,\n  (event: PostUnreactedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [{ path: 'metadata.eventTime' }],\n        },\n      ])\n    )\n)<PostUnreactedEnvelope>();\nexport const onPostUpdated = EventDefinition(\n  'wix.forum.post_updated',\n  true,\n  (event: PostUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.lastActivityDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'entity.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'entity.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'entity.videos', isRepeated: true }],\n        },\n      ])\n    )\n)<PostUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  AddReactionRequest,\n  AddReactionResponse,\n  BaseEventMetadata,\n  Closed,\n  CreatePostRequest,\n  CreatePostResponse,\n  DeletePostRequest,\n  DeletePostResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityType,\n  EntityUpdatedEvent,\n  EventMetadata,\n  Field,\n  FocalPoint,\n  GetPostBySlugOptions,\n  GetPostOptions,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  Identity,\n  IdentityType,\n  Interaction,\n  Liked,\n  MarkPostReadRequest,\n  MarkPostReadResponse,\n  MarkPostUnreadRequest,\n  MarkPostUnreadResponse,\n  MarkPostsSeenRequest,\n  MarkPostsSeenResponse,\n  MessageEnvelope,\n  Moved,\n  Opened,\n  Order,\n  PinPostRequest,\n  PinPostResponse,\n  Pinned,\n  Post,\n  PostClosedEnvelope,\n  PostCreatedEnvelope,\n  PostDeletedEnvelope,\n  PostFieldField,\n  PostLikedEnvelope,\n  PostMovedEnvelope,\n  PostOpenedEnvelope,\n  PostPinnedEnvelope,\n  PostReactedEnvelope,\n  PostReportedEnvelope,\n  PostRequest,\n  PostResponse,\n  PostSlugRequest,\n  PostType,\n  PostUnlikedEnvelope,\n  PostUnpinnedEnvelope,\n  PostUnreactedEnvelope,\n  PostUpdatedEnvelope,\n  PostsPaging,\n  PostsSort,\n  QueryPostsOptions,\n  QueryPostsRequest,\n  QueryPostsResponse,\n  QueryPostsResponseMetaData,\n  Reacted,\n  ReactionCodeCount,\n  ReactionIdentity,\n  RecentActivity,\n  RecentActivityInitiatorOneOf,\n  RemoveBestAnswerRequest,\n  RemoveBestAnswerResponse,\n  RemoveReactionRequest,\n  RemoveReactionResponse,\n  ReportPostRequest,\n  ReportPostResponse,\n  ReportType,\n  Reported,\n  RestoreInfo,\n  SetBestAnswerRequest,\n  SetBestAnswerResponse,\n  Unliked,\n  UnpinPostRequest,\n  UnpinPostResponse,\n  Unpinned,\n  Unreacted,\n  UpdatePostRequest,\n  UpdatePostResponse,\n  VideoResolution,\n  ViewPostRequest,\n  ViewPostResponse,\n  WebhookIdentityType,\n} from './forum-v1-post-posts.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 ambassadorWixForumV1Post from './forum-v1-post-posts.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Post {\n  /**\n   * Post ID.\n   * @readonly\n   */\n  _id?: string | null;\n  /** Category ID the post is listed under. */\n  categoryId?: string;\n  /**\n   * Post owner's member ID.\n   * @readonly\n   */\n  ownerId?: string | null;\n  /**\n   * Post title.\n   * @minLength 1\n   * @maxLength 140\n   */\n  title?: string | null;\n  /** The post content in plain text. */\n  contentText?: string | null;\n  /**\n   * Total number of post comments.\n   * @readonly\n   */\n  commentCount?: number | null;\n  /**\n   * Total number of post likes.\n   * @readonly\n   */\n  likeCount?: number | null;\n  /**\n   * Total number of post views.\n   * @readonly\n   */\n  viewCount?: number | null;\n  /**\n   * Date post was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date of latest activity on this post (e.g., date the latest comment was added to post).\n   * @readonly\n   */\n  lastActivityDate?: Date | null;\n  /**\n   * Post URL.\n   * @readonly\n   */\n  url?: string;\n  /**\n   * Post slug.\n   * @readonly\n   */\n  slug?: string | null;\n  /**\n   * @internal\n   * @internal\n   * @readonly\n   * @deprecated\n   */\n  bestAnswerCommentId?: string | null;\n  /**\n   * The post content as a stringified [Rich Content document](https://dev.wix.com/docs/ricos/api-reference/ricos-document)\n   * @readonly\n   */\n  content?: string | null;\n  /**\n   * Images from post content.\n   * @readonly\n   */\n  images?: string[];\n  /**\n   * Videos from post content.\n   * @readonly\n   */\n  videos?: string[];\n  /** Whether the post is pinned. Places the post at the top of the post list. */\n  pinned?: boolean | null;\n  /** Whether post is closed and commenting is disabled. */\n  closed?: boolean | null;\n  /** Date post was updated. */\n  _updatedDate?: Date | null;\n  /** Defines what interactions may be applied on the comment under the post, vote or like. */\n  commentInteraction?: InteractionWithLiterals;\n  /**\n   * IDs of the marked comments for this post. Posts are marked by the forum admin or the post owner.\n   * @readonly\n   * @maxSize 10\n   */\n  markedComments?: string[];\n  /**\n   * Recent activity of post. For example, a comment added to a post.\n   * @readonly\n   */\n  recentActivity?: RecentActivity;\n  /**\n   * List of reaction identities grouped by reaction code.\n   * @readonly\n   * @maxSize 6\n   */\n  reactionIdentities?: ReactionIdentity[];\n}\n\nexport enum PostType {\n  DISCUSSION = 'DISCUSSION',\n  QUESTION = 'QUESTION',\n}\n\n/** @enumType */\nexport type PostTypeWithLiterals = PostType | 'DISCUSSION' | 'QUESTION';\n\nexport interface FocalPoint {\n  /** X-coordinate of the focal point. */\n  x?: number;\n  /** Y-coordinate of the focal point. */\n  y?: number;\n  /** crop by height */\n  height?: number | null;\n  /** crop by width */\n  width?: number | null;\n}\n\nexport interface VideoResolution {\n  /** Video URL. */\n  url?: string;\n  /** Video height. */\n  height?: number;\n  /** Video width. */\n  width?: number;\n  /** Video format for example, mp4, hls. */\n  format?: string;\n}\n\nexport enum Interaction {\n  UNKNOWN = 'UNKNOWN',\n  REACTION = 'REACTION',\n  VOTE = 'VOTE',\n  NONE = 'NONE',\n}\n\n/** @enumType */\nexport type InteractionWithLiterals =\n  | Interaction\n  | 'UNKNOWN'\n  | 'REACTION'\n  | 'VOTE'\n  | 'NONE';\n\nexport interface RecentActivity extends RecentActivityInitiatorOneOf {\n  /** Site member ID. */\n  memberId?: string;\n  /** ID of recent activity entity. */\n  entityId?: string;\n  /** Type of entity. */\n  type?: EntityTypeWithLiterals;\n  /** Date activity was created. */\n  activityDate?: string;\n}\n\n/** @oneof */\nexport interface RecentActivityInitiatorOneOf {\n  /** Site member ID. */\n  memberId?: string;\n}\n\nexport enum EntityType {\n  UNKNOWN = 'UNKNOWN',\n  COMMENT = 'COMMENT',\n  REPLY = 'REPLY',\n}\n\n/** @enumType */\nexport type EntityTypeWithLiterals =\n  | EntityType\n  | 'UNKNOWN'\n  | 'COMMENT'\n  | 'REPLY';\n\nexport interface ReactionCodeCount {\n  /** Reaction code. */\n  reactionCode?: string;\n  /** Total number of reaction. */\n  count?: number;\n}\n\nexport interface ReactionIdentity {\n  /** Reaction code. */\n  reactionCode?: string;\n  /**\n   * Reacted identities.\n   * @readonly\n   * @maxSize 500\n   */\n  identities?: Identity[];\n  /** Total number of reacted identities count. */\n  count?: number;\n}\n\nexport enum IdentityType {\n  UNKNOWN = 'UNKNOWN',\n  VISITOR = 'VISITOR',\n  MEMBER = 'MEMBER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n  | IdentityType\n  | 'UNKNOWN'\n  | 'VISITOR'\n  | 'MEMBER';\n\nexport interface Identity {\n  /** Identity id. */\n  identityId?: string;\n  /** Reacted identity type. */\n  identityType?: IdentityTypeWithLiterals;\n}\n\nexport interface Moved {\n  /** Old category ID. */\n  oldCategoryId?: string;\n  /** New current category ID. */\n  currentCategoryId?: string;\n  /** ID of the moved post. */\n  postId?: string;\n}\n\nexport interface Liked {\n  /** ID of the liked post. */\n  postId?: string;\n}\n\nexport interface Unliked {\n  /** ID of the unliked post. */\n  postId?: string;\n}\n\nexport interface Pinned {\n  /** ID of the pinned post. */\n  postId?: string;\n}\n\nexport interface Unpinned {\n  /** ID of the unpinned post. */\n  postId?: string;\n}\n\nexport interface Closed {\n  /** ID of the closed post. */\n  postId?: string;\n}\n\nexport interface Opened {\n  /** ID of the opened post. */\n  postId?: string;\n}\n\nexport interface Reported {\n  /** Type of report. */\n  reportType?: ReportTypeWithLiterals;\n  /** ID of the reported post. */\n  postId?: string;\n}\n\nexport enum ReportType {\n  OFFENSIVE_CONTENT = 'OFFENSIVE_CONTENT',\n  OFFENSIVE_MEDIA = 'OFFENSIVE_MEDIA',\n  SPAM = 'SPAM',\n}\n\n/** @enumType */\nexport type ReportTypeWithLiterals =\n  | ReportType\n  | 'OFFENSIVE_CONTENT'\n  | 'OFFENSIVE_MEDIA'\n  | 'SPAM';\n\nexport interface Reacted {\n  postId?: string;\n  reactionCode?: string;\n}\n\nexport interface Unreacted {\n  postId?: string;\n  reactionCode?: string;\n}\n\nexport interface PostRequest {\n  /** Post ID. */\n  postId: string;\n  /** Array of extra post fields to be added in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n\nexport enum PostFieldField {\n  UNKNOWN = 'UNKNOWN',\n  /** Includes Post content as a stringified DraftJS document (internal only). */\n  CONTENT = 'CONTENT',\n  /** Includes images from Post content (internal only). */\n  IMAGES = 'IMAGES',\n  /** Includes videos from Post content (internal only). */\n  VIDEOS = 'VIDEOS',\n  /** Includes Post URL. */\n  URL = 'URL',\n  /** Includes Post content as a stringified Rich Content document (internal only). */\n  RICH_CONTENT = 'RICH_CONTENT',\n}\n\n/** @enumType */\nexport type PostFieldFieldWithLiterals =\n  | PostFieldField\n  | 'UNKNOWN'\n  | 'CONTENT'\n  | 'IMAGES'\n  | 'VIDEOS'\n  | 'URL'\n  | 'RICH_CONTENT';\n\nexport enum Field {\n  /** Undefined field type. */\n  UNKNOWN = 'UNKNOWN',\n  /** Include images from post content. */\n  IMAGES = 'IMAGES',\n  /** Include videos from post content. */\n  VIDEOS = 'VIDEOS',\n  /** Include post URL. */\n  URL = 'URL',\n  /** Include reaction identities. */\n  REACTION_IDENTITIES = 'REACTION_IDENTITIES',\n  /** Includes the post content as a stringified [Rich Content document](https://dev.wix.com/docs/ricos/api-reference/ricos-document) */\n  RICH_CONTENT = 'RICH_CONTENT',\n}\n\n/** @enumType */\nexport type FieldWithLiterals =\n  | Field\n  | 'UNKNOWN'\n  | 'IMAGES'\n  | 'VIDEOS'\n  | 'URL'\n  | 'REACTION_IDENTITIES'\n  | 'RICH_CONTENT';\n\nexport interface PostResponse {\n  /** Post for the provided post ID. */\n  post?: Post;\n}\n\nexport interface PostSlugRequest {\n  /** URL slug. */\n  slug: string;\n  /** Array of extra post fields to be added in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n\nexport interface QueryPostsRequest {\n  /** Paging object (e.g., { limit: 10, offset: 100 } ). */\n  paging?: PostsPaging;\n  /** Filter object (e.g., { $and: [{ ownerId: { eq: 'ownerId' } }, { likeCount: { $gt: 0 }] } ). */\n  filter?: Record<string, any> | null;\n  /** Array of sort objects (e.g.,  [{ fieldName: createdDate, order: Order.ASC }] ). */\n  sort?: PostsSort[];\n  /** Array of extra post fields to be added in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n\nexport interface PostsPaging {\n  /**\n   * The number of items to load.\n   * @max 100\n   */\n  limit?: number;\n  /** Number of items to skip in the current sort order. */\n  offset?: number;\n}\n\nexport interface PostsSort {\n  /**\n   * Records can be sorted by:\n   * lastActivityDate\n   * createdDate\n   * commentCount\n   * viewCount\n   * likeCount\n   * isPinned\n   */\n  fieldName?: string;\n  /** Records can be sorted in ascending (default) or descending order. */\n  order?: OrderWithLiterals;\n}\n\nexport enum Order {\n  /** Sort by ascending order. */\n  ASC = 'ASC',\n  /** Sort by descending order. */\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type OrderWithLiterals = Order | 'ASC' | 'DESC';\n\nexport interface QueryPostsResponse {\n  /** List of posts. */\n  posts?: Post[];\n  /** Pagination. */\n  metaData?: QueryPostsResponseMetaData;\n}\n\nexport interface QueryPostsResponseMetaData {\n  /** Total number of records returned. */\n  count?: number;\n  /** Offset of records. */\n  offset?: number;\n  /** Total number of records that match the filters. */\n  total?: number;\n}\n\nexport interface ViewPostRequest {\n  /** ID of the read post. */\n  postId?: string;\n}\n\nexport interface ViewPostResponse {}\n\nexport interface MarkPostReadRequest {\n  /** ID of the read post. */\n  postId?: string;\n}\n\nexport interface MarkPostReadResponse {}\n\nexport interface MarkPostsSeenRequest {\n  /**\n   * IDs of the seen posts.\n   * @minSize 1\n   * @maxSize 100\n   */\n  postsIds?: string[];\n}\n\nexport interface MarkPostsSeenResponse {}\n\nexport interface MarkPostUnreadRequest {\n  /** ID of the unread post. */\n  postId?: string;\n}\n\nexport interface MarkPostUnreadResponse {}\n\nexport interface CreatePostRequest {\n  /** New post to create. */\n  post?: Post;\n}\n\nexport interface CreatePostResponse {\n  /** Created post. */\n  post?: Post;\n}\n\nexport interface UpdatePostRequest {\n  /** ID of the post to update. */\n  postId?: string;\n  /** Field mask of fields to update. */\n  fieldMask?: string[];\n  /** Post data with partial data to update. */\n  post?: Post;\n}\n\nexport interface UpdatePostResponse {\n  /** Updated post. */\n  post?: Post;\n}\n\nexport interface DeletePostRequest {\n  /** ID of the post to delete. */\n  postId?: string;\n}\n\nexport interface DeletePostResponse {\n  /** Deleted post. */\n  post?: Post;\n}\n\nexport interface SetBestAnswerRequest {\n  /** Post ID. */\n  postId?: string;\n  /** ID of the \"best answer\" comment on the post. */\n  commentId?: string;\n}\n\nexport interface SetBestAnswerResponse {}\n\nexport interface RemoveBestAnswerRequest {\n  /** Post ID */\n  postId?: string;\n}\n\nexport interface RemoveBestAnswerResponse {}\n\nexport interface PinPostRequest {\n  /** Post ID */\n  postId?: string;\n  /** The amount of minutes after which the pin will be removed (unpinned) */\n  expiresInMinutes?: number | null;\n}\n\nexport interface PinPostResponse {}\n\nexport interface UnpinPostRequest {\n  /** Post ID */\n  postId?: string;\n}\n\nexport interface UnpinPostResponse {}\n\nexport interface AddReactionRequest {\n  /** Post ID */\n  postId?: string;\n  /** Code of reaction to add. */\n  reactionCode?: string;\n}\n\nexport interface AddReactionResponse {\n  /**\n   * Total number of comment reactions.\n   * @readonly\n   */\n  reactionCount?: number;\n  /**\n   * List of reacted identities grouped by reaction code.\n   * @readonly\n   * @maxSize 6\n   */\n  reactionIdentities?: ReactionIdentity[];\n}\n\nexport interface RemoveReactionRequest {\n  /** Post ID */\n  postId?: string;\n  /** Code of reaction to remove. */\n  reactionCode?: string;\n}\n\nexport interface RemoveReactionResponse {\n  /**\n   * Total number of comment reactions.\n   * @readonly\n   */\n  reactionCount?: number;\n  /**\n   * List of reacted identities grouped by reaction code.\n   * @readonly\n   * @maxSize 6\n   */\n  reactionIdentities?: ReactionIdentity[];\n}\n\nexport interface ReportPostRequest {\n  /** Post ID */\n  postId?: string;\n  /** Type of report. */\n  reportType?: ReportTypeWithLiterals;\n}\n\nexport interface ReportPostResponse {}\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\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 PostClosedEnvelope {\n  data: Closed;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was closed for further comments.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_closed\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug closed\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostClosed(\n  handler: (event: PostClosedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostCreatedEnvelope {\n  entity: Post;\n  metadata: EventMetadata;\n}\n\n/**\n * A new post was created.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_created\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug created\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostCreated(\n  handler: (event: PostCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was removed.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_deleted\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug deleted\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostDeleted(\n  handler: (event: PostDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostLikedEnvelope {\n  data: Liked;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was liked.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_liked\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug liked\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostLiked(\n  handler: (event: PostLikedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostMovedEnvelope {\n  data: Moved;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was moved to a different category.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_moved\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug moved\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostMoved(\n  handler: (event: PostMovedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostOpenedEnvelope {\n  data: Opened;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was opened for further comments.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_opened\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug opened\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostOpened(\n  handler: (event: PostOpenedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostPinnedEnvelope {\n  data: Pinned;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was pinned to the top of the post list.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_pinned\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug pinned\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostPinned(\n  handler: (event: PostPinnedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostReactedEnvelope {\n  data: Reacted;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was reacted.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_reacted\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug reacted\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostReacted(\n  handler: (event: PostReactedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostReportedEnvelope {\n  data: Reported;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was reported as inappropriate.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_reported\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug reported\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostReported(\n  handler: (event: PostReportedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostUnlikedEnvelope {\n  data: Unliked;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was unliked.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_unliked\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug unliked\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostUnliked(\n  handler: (event: PostUnlikedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostUnpinnedEnvelope {\n  data: Unpinned;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was unpinned from the top of the post list.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_unpinned\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug unpinned\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostUnpinned(\n  handler: (event: PostUnpinnedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostUnreactedEnvelope {\n  data: Unreacted;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was unreacted.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_unreacted\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug unreacted\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostUnreacted(\n  handler: (event: PostUnreactedEnvelope) => void | Promise<void>\n): void;\n\nexport interface PostUpdatedEnvelope {\n  entity: Post;\n  metadata: EventMetadata;\n}\n\n/**\n * An existing post was updated.\n * @permissionScope Read Forums\n * @permissionScopeId SCOPE.DC-FORUM.READ-FORUM\n * @permissionScope Manage Forums\n * @permissionScopeId SCOPE.DC-FORUM.MANAGE-FORUM\n * @permissionId WIX_FORUM.CATEGORY_READ_ALL\n * @webhook\n * @eventType wix.forum.post_updated\n * @serviceIdentifier com.wixpress.npm.communities.forum.api.PostManagementService\n * @slug updated\n * @documentationMaturity preview\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport declare function onPostUpdated(\n  handler: (event: PostUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a single post by ID.\n * @param postId - Post ID.\n * @public\n * @documentationMaturity preview\n * @requiredField postId\n * @param options - Options specifying which additional fields to return.\n * @permissionId WIX_FORUM.POST_READ\n * @applicableIdentity APP\n * @returns Post for the provided post ID.\n * @fqn com.wixpress.npm.communities.forum.api.PostManagementService.GetPost\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\nexport async function getPost(\n  postId: string,\n  options?: GetPostOptions\n): Promise<\n  NonNullablePaths<\n    Post,\n    | `categoryId`\n    | `images`\n    | `videos`\n    | `commentInteraction`\n    | `markedComments`\n    | `recentActivity.memberId`\n    | `recentActivity.entityId`\n    | `recentActivity.type`\n    | `recentActivity.activityDate`\n    | `reactionIdentities`\n    | `reactionIdentities.${number}.reactionCode`\n    | `reactionIdentities.${number}.count`,\n    4\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    postId: postId,\n    extraFields: options?.extraFields,\n  });\n\n  const reqOpts = ambassadorWixForumV1Post.getPost(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'post.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'post.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'post.videos', isRepeated: true }],\n        },\n      ])\n    )?.post!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          postId: '$[0]',\n          extraFields: '$[1].extraFields',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['postId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetPostOptions {\n  /** Array of extra post fields to be added in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n\n/**\n * Retrieves a single post by URL slug.\n * @param slug - URL slug.\n * @public\n * @documentationMaturity preview\n * @requiredField slug\n * @param options - Options specifying which additional fields to return.\n * @permissionId WIX_FORUM.POST_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.npm.communities.forum.api.PostManagementService.GetPostBySlug\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\nexport async function getPostBySlug(\n  slug: string,\n  options?: GetPostBySlugOptions\n): Promise<\n  NonNullablePaths<\n    PostResponse,\n    | `post.categoryId`\n    | `post.images`\n    | `post.videos`\n    | `post.commentInteraction`\n    | `post.markedComments`\n    | `post.recentActivity.memberId`\n    | `post.recentActivity.entityId`\n    | `post.recentActivity.type`\n    | `post.recentActivity.activityDate`\n    | `post.reactionIdentities`\n    | `post.reactionIdentities.${number}.reactionCode`\n    | `post.reactionIdentities.${number}.count`,\n    5\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    slug: slug,\n    extraFields: options?.extraFields,\n  });\n\n  const reqOpts = ambassadorWixForumV1Post.getPostBySlug(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'post.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'post.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'post.videos', isRepeated: true }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          slug: '$[0]',\n          extraFields: '$[1].extraFields',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['slug', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetPostBySlugOptions {\n  /** Array of extra post fields to be added in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n\n/**\n * Returns a list of posts by query.\n *\n * Paging\n * - limit: default - 10, min - 0, max - 100\n * - offset: default - 0, min - 0\n *\n * Filterable fields:\n * - id\n * - categoryId\n * - ownerId\n * - title\n * - contentText\n * - bestAnswerCommentId\n * - pinned\n * - commentingEnabled\n * - commentCount\n * - likeCount\n * - viewCount\n * - createdDate\n * - editedDate\n * - lastActivityDate\n * - slug\n *\n * Sortable fields:\n * - lastActivityDate\n * - createdDate\n * - commentCount\n * - viewCount\n * - likeCount\n * - pinned\n * @public\n * @documentationMaturity preview\n * @param options - Options for sorting, filtering, paging, and specifying return fields.\n * @permissionId WIX_FORUM.POST_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.npm.communities.forum.api.PostManagementService.QueryPosts\n * @deprecated\n * @targetRemovalDate 2025-10-15\n */\nexport async function queryPosts(\n  options?: QueryPostsOptions\n): Promise<\n  NonNullablePaths<\n    QueryPostsResponse,\n    | `posts`\n    | `posts.${number}.categoryId`\n    | `posts.${number}.commentInteraction`\n    | `posts.${number}.recentActivity.memberId`\n    | `posts.${number}.recentActivity.entityId`\n    | `posts.${number}.recentActivity.type`\n    | `posts.${number}.recentActivity.activityDate`\n    | `metaData.count`\n    | `metaData.offset`\n    | `metaData.total`,\n    5\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    paging: options?.paging,\n    filter: options?.filter,\n    sort: options?.sort,\n    extraFields: options?.extraFields,\n  });\n\n  const reqOpts = ambassadorWixForumV1Post.queryPosts(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTPageURLToSDKPageURL,\n          paths: [{ path: 'posts.url' }],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'posts.images', isRepeated: true }],\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: [{ path: 'posts.videos', isRepeated: true }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          paging: '$[0].paging',\n          filter: '$[0].filter',\n          sort: '$[0].sort',\n          extraFields: '$[0].extraFields',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface QueryPostsOptions {\n  /** Paging object (e.g., { limit: 10, offset: 100 } ). */\n  paging?: PostsPaging;\n  /** Filter object (e.g., { $and: [{ ownerId: { eq: 'ownerId' } }, { likeCount: { $gt: 0 }] } ). */\n  filter?: Record<string, any> | null;\n  /** Array of sort objects (e.g.,  [{ fieldName: createdDate, order: Order.ASC }] ). */\n  sort?: PostsSort[];\n  /** Array of extra post fields to be included in the response. */\n  extraFields?: FieldWithLiterals[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressNpmCommunitiesForumApiPostManagementServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/_internal/communities',\n        destPath: '',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/communities-forum-app',\n        destPath: '',\n      },\n      {\n        srcPath: '/communities',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/',\n        destPath: '/_api',\n      },\n    ],\n    'forums.wixapps.net': [\n      {\n        srcPath: '',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    'forums._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '',\n        destPath: '',\n      },\n      {\n        srcPath: '/forum/v1/draft-posts',\n        destPath: '/v1/draft-posts',\n      },\n      {\n        srcPath: '/forum/v1/categories',\n        destPath: '/v1/categories',\n      },\n      {\n        srcPath: '/forum/v1/comments',\n        destPath: '/v1/comments',\n      },\n      {\n        srcPath: '/forum/v1/posts',\n        destPath: '/v1/posts',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities-forum-app',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/forums/this',\n        destPath: '/_api/forums/this',\n      },\n      {\n        srcPath: '/_api/communities/categories',\n        destPath: '/_api/categories',\n      },\n      {\n        srcPath: '/_api/communities/posts',\n        destPath: '/_api/posts',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1/draft-posts',\n        destPath: '/v1/draft-posts',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1/categories',\n        destPath: '/v1/categories',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1/comments',\n        destPath: '/v1/comments',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1/posts',\n        destPath: '/v1/posts',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    '*.pub.wix-code.com': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1',\n        destPath: '/v1',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n      {\n        srcPath: '/_api/communities/platformized/v1/posts',\n        destPath: '/v1/posts',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'notifications-app.wixapps.net': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/communities',\n        destPath: '/_api',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/forum/v1/notifications',\n        destPath: '/v1/notifications',\n      },\n      {\n        srcPath: '/forum/v1/draft-posts',\n        destPath: '/v1/draft-posts',\n      },\n      {\n        srcPath: '/forum/v1/categories',\n        destPath: '/v1/categories',\n      },\n      {\n        srcPath: '/forum/v1/comments',\n        destPath: '/v1/comments',\n      },\n      {\n        srcPath: '/forum/v1/posts',\n        destPath: '/v1/posts',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forum_posts';\n\n/**\n * Retrieves a single post by ID.\n * @deprecated Will be removed on 2025-04-15.\n */\nexport function getPost(payload: object): RequestOptionsFactory<any> {\n  function __getPost({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.forum.v1.post',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.npm.communities.forum.api.PostManagementService.GetPost',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressNpmCommunitiesForumApiPostManagementServiceUrl({\n        protoPath: '/v1/posts/{postId}',\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: 'post.createdDate' },\n              { path: 'post.lastActivityDate' },\n              { path: 'post.updatedDate' },\n              { path: 'post.images.urlExpirationDate' },\n              { path: 'post.videos.urlExpirationDate' },\n              { path: 'post.videos.resolutions.urlExpirationDate' },\n              { path: 'post.videos.resolutions.poster.urlExpirationDate' },\n              { path: 'post.videos.posters.urlExpirationDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'post.images.focalPoint.x' },\n              { path: 'post.images.focalPoint.y' },\n              { path: 'post.videos.resolutions.poster.focalPoint.x' },\n              { path: 'post.videos.resolutions.poster.focalPoint.y' },\n              { path: 'post.videos.posters.focalPoint.x' },\n              { path: 'post.videos.posters.focalPoint.y' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getPost;\n}\n\n/**\n * Retrieves a single post by URL slug.\n * @deprecated Will be removed on 2025-04-15.\n */\nexport function getPostBySlug(payload: object): RequestOptionsFactory<any> {\n  function __getPostBySlug({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.forum.v1.post',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.npm.communities.forum.api.PostManagementService.GetPostBySlug',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressNpmCommunitiesForumApiPostManagementServiceUrl({\n        protoPath: '/v1/posts/slugs/{slug}',\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: 'post.createdDate' },\n              { path: 'post.lastActivityDate' },\n              { path: 'post.updatedDate' },\n              { path: 'post.images.urlExpirationDate' },\n              { path: 'post.videos.urlExpirationDate' },\n              { path: 'post.videos.resolutions.urlExpirationDate' },\n              { path: 'post.videos.resolutions.poster.urlExpirationDate' },\n              { path: 'post.videos.posters.urlExpirationDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'post.images.focalPoint.x' },\n              { path: 'post.images.focalPoint.y' },\n              { path: 'post.videos.resolutions.poster.focalPoint.x' },\n              { path: 'post.videos.resolutions.poster.focalPoint.y' },\n              { path: 'post.videos.posters.focalPoint.x' },\n              { path: 'post.videos.posters.focalPoint.y' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getPostBySlug;\n}\n\n/**\n * Returns a list of posts by query.\n *\n * Paging\n * - limit: default - 10, min - 0, max - 100\n * - offset: default - 0, min - 0\n *\n * Filterable fields:\n * - id\n * - categoryId\n * - ownerId\n * - title\n * - contentText\n * - bestAnswerCommentId\n * - pinned\n * - commentingEnabled\n * - commentCount\n * - likeCount\n * - viewCount\n * - createdDate\n * - editedDate\n * - lastActivityDate\n * - slug\n *\n * Sortable fields:\n * - lastActivityDate\n * - createdDate\n * - commentCount\n * - viewCount\n * - likeCount\n * - pinned\n * @deprecated Will be removed on 2025-10-15.\n */\nexport function queryPosts(payload: object): RequestOptionsFactory<any> {\n  function __queryPosts({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.forum.v1.post',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.npm.communities.forum.api.PostManagementService.QueryPosts',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressNpmCommunitiesForumApiPostManagementServiceUrl({\n        protoPath: '/v1/posts/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'posts.createdDate' },\n              { path: 'posts.lastActivityDate' },\n              { path: 'posts.updatedDate' },\n              { path: 'posts.images.urlExpirationDate' },\n              { path: 'posts.videos.urlExpirationDate' },\n              { path: 'posts.videos.resolutions.urlExpirationDate' },\n              { path: 'posts.videos.resolutions.poster.urlExpirationDate' },\n              { path: 'posts.videos.posters.urlExpirationDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'posts.images.focalPoint.x' },\n              { path: 'posts.images.focalPoint.y' },\n              { path: 'posts.videos.resolutions.poster.focalPoint.x' },\n              { path: 'posts.videos.resolutions.poster.focalPoint.y' },\n              { path: 'posts.videos.posters.focalPoint.x' },\n              { path: 'posts.videos.posters.focalPoint.y' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryPosts;\n}\n","import {\n  getPost as publicGetPost,\n  getPostBySlug as publicGetPostBySlug,\n  queryPosts as publicQueryPosts,\n} from './forum-v1-post-posts.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 { onPostClosed as publicOnPostClosed } from './forum-v1-post-posts.public.js';\nimport { onPostCreated as publicOnPostCreated } from './forum-v1-post-posts.public.js';\nimport { onPostDeleted as publicOnPostDeleted } from './forum-v1-post-posts.public.js';\nimport { onPostLiked as publicOnPostLiked } from './forum-v1-post-posts.public.js';\nimport { onPostMoved as publicOnPostMoved } from './forum-v1-post-posts.public.js';\nimport { onPostOpened as publicOnPostOpened } from './forum-v1-post-posts.public.js';\nimport { onPostPinned as publicOnPostPinned } from './forum-v1-post-posts.public.js';\nimport { onPostReacted as publicOnPostReacted } from './forum-v1-post-posts.public.js';\nimport { onPostReported as publicOnPostReported } from './forum-v1-post-posts.public.js';\nimport { onPostUnliked as publicOnPostUnliked } from './forum-v1-post-posts.public.js';\nimport { onPostUnpinned as publicOnPostUnpinned } from './forum-v1-post-posts.public.js';\nimport { onPostUnreacted as publicOnPostUnreacted } from './forum-v1-post-posts.public.js';\nimport { onPostUpdated as publicOnPostUpdated } from './forum-v1-post-posts.public.js';\n\nexport const getPost: MaybeContext<\n  BuildRESTFunction<typeof publicGetPost> & typeof publicGetPost\n> = /*#__PURE__*/ createRESTModule(publicGetPost);\nexport const getPostBySlug: MaybeContext<\n  BuildRESTFunction<typeof publicGetPostBySlug> & typeof publicGetPostBySlug\n> = /*#__PURE__*/ createRESTModule(publicGetPostBySlug);\nexport const queryPosts: MaybeContext<\n  BuildRESTFunction<typeof publicQueryPosts> & typeof publicQueryPosts\n> = /*#__PURE__*/ createRESTModule(publicQueryPosts);\n/**\n * An existing post was closed for further comments.\n * @deprecated\n */\nexport const onPostClosed: BuildEventDefinition<typeof publicOnPostClosed> &\n  typeof publicOnPostClosed = createEventModule(publicOnPostClosed);\n/**\n * A new post was created.\n * @deprecated\n */\nexport const onPostCreated: BuildEventDefinition<typeof publicOnPostCreated> &\n  typeof publicOnPostCreated = createEventModule(publicOnPostCreated);\n/**\n * An existing post was removed.\n * @deprecated\n */\nexport const onPostDeleted: BuildEventDefinition<typeof publicOnPostDeleted> &\n  typeof publicOnPostDeleted = createEventModule(publicOnPostDeleted);\n/**\n * An existing post was liked.\n * @deprecated\n */\nexport const onPostLiked: BuildEventDefinition<typeof publicOnPostLiked> &\n  typeof publicOnPostLiked = createEventModule(publicOnPostLiked);\n/**\n * An existing post was moved to a different category.\n * @deprecated\n */\nexport const onPostMoved: BuildEventDefinition<typeof publicOnPostMoved> &\n  typeof publicOnPostMoved = createEventModule(publicOnPostMoved);\n/**\n * An existing post was opened for further comments.\n * @deprecated\n */\nexport const onPostOpened: BuildEventDefinition<typeof publicOnPostOpened> &\n  typeof publicOnPostOpened = createEventModule(publicOnPostOpened);\n/**\n * An existing post was pinned to the top of the post list.\n * @deprecated\n */\nexport const onPostPinned: BuildEventDefinition<typeof publicOnPostPinned> &\n  typeof publicOnPostPinned = createEventModule(publicOnPostPinned);\n/**\n * An existing post was reacted.\n * @deprecated\n */\nexport const onPostReacted: BuildEventDefinition<typeof publicOnPostReacted> &\n  typeof publicOnPostReacted = createEventModule(publicOnPostReacted);\n/**\n * An existing post was reported as inappropriate.\n * @deprecated\n */\nexport const onPostReported: BuildEventDefinition<typeof publicOnPostReported> &\n  typeof publicOnPostReported = createEventModule(publicOnPostReported);\n/**\n * An existing post was unliked.\n * @deprecated\n */\nexport const onPostUnliked: BuildEventDefinition<typeof publicOnPostUnliked> &\n  typeof publicOnPostUnliked = createEventModule(publicOnPostUnliked);\n/**\n * An existing post was unpinned from the top of the post list.\n * @deprecated\n */\nexport const onPostUnpinned: BuildEventDefinition<typeof publicOnPostUnpinned> &\n  typeof publicOnPostUnpinned = createEventModule(publicOnPostUnpinned);\n/**\n * An existing post was unreacted.\n * @deprecated\n */\nexport const onPostUnreacted: BuildEventDefinition<\n  typeof publicOnPostUnreacted\n> &\n  typeof publicOnPostUnreacted = createEventModule(publicOnPostUnreacted);\n/**\n * An existing post was updated.\n * @deprecated\n */\nexport const onPostUpdated: BuildEventDefinition<typeof publicOnPostUpdated> &\n  typeof publicOnPostUpdated = createEventModule(publicOnPostUpdated);\n\nexport {\n  PostType,\n  Interaction,\n  EntityType,\n  IdentityType,\n  ReportType,\n  PostFieldField,\n  Field,\n  Order,\n  WebhookIdentityType,\n} from './forum-v1-post-posts.universal.js';\nexport {\n  Post,\n  FocalPoint,\n  VideoResolution,\n  RecentActivity,\n  RecentActivityInitiatorOneOf,\n  ReactionCodeCount,\n  ReactionIdentity,\n  Identity,\n  Moved,\n  Liked,\n  Unliked,\n  Pinned,\n  Unpinned,\n  Closed,\n  Opened,\n  Reported,\n  Reacted,\n  Unreacted,\n  PostRequest,\n  PostResponse,\n  PostSlugRequest,\n  QueryPostsRequest,\n  PostsPaging,\n  PostsSort,\n  QueryPostsResponse,\n  QueryPostsResponseMetaData,\n  ViewPostRequest,\n  ViewPostResponse,\n  MarkPostReadRequest,\n  MarkPostReadResponse,\n  MarkPostsSeenRequest,\n  MarkPostsSeenResponse,\n  MarkPostUnreadRequest,\n  MarkPostUnreadResponse,\n  CreatePostRequest,\n  CreatePostResponse,\n  UpdatePostRequest,\n  UpdatePostResponse,\n  DeletePostRequest,\n  DeletePostResponse,\n  SetBestAnswerRequest,\n  SetBestAnswerResponse,\n  RemoveBestAnswerRequest,\n  RemoveBestAnswerResponse,\n  PinPostRequest,\n  PinPostResponse,\n  UnpinPostRequest,\n  UnpinPostResponse,\n  AddReactionRequest,\n  AddReactionResponse,\n  RemoveReactionRequest,\n  RemoveReactionResponse,\n  ReportPostRequest,\n  ReportPostResponse,\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  PostClosedEnvelope,\n  PostCreatedEnvelope,\n  PostDeletedEnvelope,\n  PostLikedEnvelope,\n  PostMovedEnvelope,\n  PostOpenedEnvelope,\n  PostPinnedEnvelope,\n  PostReactedEnvelope,\n  PostReportedEnvelope,\n  PostUnlikedEnvelope,\n  PostUnpinnedEnvelope,\n  PostUnreactedEnvelope,\n  PostUpdatedEnvelope,\n  GetPostOptions,\n  GetPostBySlugOptions,\n  QueryPostsOptions,\n} from './forum-v1-post-posts.universal.js';\nexport {\n  PostTypeWithLiterals,\n  InteractionWithLiterals,\n  EntityTypeWithLiterals,\n  IdentityTypeWithLiterals,\n  ReportTypeWithLiterals,\n  PostFieldFieldWithLiterals,\n  FieldWithLiterals,\n  OrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n} from './forum-v1-post-posts.universal.js';\n"]}