{"version":3,"file":"index.mjs","names":[],"sources":["../../src/gen/models/index.ts","../../src/common/search/SearchController.ts","../../src/common/search/BaseSearchSource.ts","../../src/common/search/ActivitySearchSource.ts","../../src/common/search/FeedSearchSource.ts","../../src/common/search/UserSearchSource.ts"],"sourcesContent":["export interface AIAudioConfigRequest {\n  profile?: string;\n  rules?: BodyguardRule[];\n}\n\nexport interface AIAudioConfigResponse {\n  enabled: boolean;\n  profile: string;\n  rules: BodyguardRule[];\n}\n\nexport interface AIImageConfig {\n  enabled: boolean;\n  ocr_rules: OCRRule[];\n  rules: AWSRekognitionRule[];\n  async?: boolean;\n}\n\nexport interface AIImageLabelDefinition {\n  description: string;\n  group: string;\n  key: string;\n  label: string;\n}\n\nexport interface AITextConfig {\n  enabled: boolean;\n  profile: string;\n  rules: BodyguardRule[];\n  severity_rules: BodyguardSeverityRule[];\n  async?: boolean;\n}\n\nexport interface AIVideoConfigRequest {\n  async?: boolean;\n  enabled?: boolean;\n  rules?: AWSRekognitionRule[];\n}\n\nexport interface AIVideoConfigResponse {\n  enabled: boolean;\n  rules: AWSRekognitionRule[];\n  async?: boolean;\n}\n\nexport interface APIError {\n  /**\n   * API error code\n   */\n  code: number;\n  /**\n   * Request duration\n   */\n  duration: string;\n  /**\n   * Message describing an error\n   */\n  message: string;\n  /**\n   * URL with additional information\n   */\n  more_info: string;\n  /**\n   * Response HTTP status code\n   */\n  status_code: number;\n  /**\n   * Additional error-specific information\n   */\n  details: number[];\n  /**\n   * Flag that indicates if the error is unrecoverable, requests that return unrecoverable errors should not be retried, this error only applies to the request that caused it\n   */\n  unrecoverable?: boolean;\n  /**\n   * Additional error info\n   */\n  exception_fields?: Record<string, string>;\n}\n\nexport interface AWSRekognitionRule {\n  action:\n    | 'flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  label: string;\n  min_confidence: number;\n  subclassifications?: Record<string, any>;\n}\n\nexport interface AcceptFeedMemberInviteRequest {}\n\nexport interface AcceptFeedMemberInviteResponse {\n  duration: string;\n  member: FeedMemberResponse;\n}\n\nexport interface AcceptFollowRequest {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n  /**\n   * Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.\n   */\n  follower_role?: string;\n}\n\nexport interface AcceptFollowResponse {\n  duration: string;\n  follow: FollowResponse;\n}\n\nexport interface Action {\n  name: string;\n  text: string;\n  type: string;\n  style?: string;\n  value?: string;\n}\n\nexport interface ActionLogResponse {\n  /**\n   * Timestamp when the action was taken\n   */\n  created_at: Date;\n  /**\n   * Unique identifier of the action log\n   */\n  id: string;\n  /**\n   * Reason for the moderation action\n   */\n  reason: string;\n  /**\n   * Classification of who triggered the action (e.g. user, moderator, automod, api_integration)\n   */\n  reporter_type: string;\n  /**\n   * ID of the user who was the target of the action\n   */\n  target_user_id: string;\n  /**\n   * Type of moderation action\n   */\n  type: string;\n  /**\n   * ID of the user who performed the action\n   */\n  user_id: string;\n  ai_providers: string[];\n  /**\n   * Additional metadata about the action\n   */\n  custom: Record<string, any>;\n  review_queue_item?: ReviewQueueItemResponse;\n  /**\n   * User response object\n   */\n  target_user?: UserResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ActionSequence {\n  action: string;\n  blur: boolean;\n  cooldown_period: number;\n  threshold: number;\n  time_window: number;\n  warning: boolean;\n  warning_text: string;\n}\n\nexport interface ActivityAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.activity.added\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.activity.deleted\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityFeedbackEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  activity_feedback: ActivityFeedbackEventPayload;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.activity.feedback\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityFeedbackEventPayload {\n  /**\n   * The type of feedback action. One of: hide, show_more, show_less\n   */\n  action: 'hide' | 'show_more' | 'show_less';\n  /**\n   * The activity that received feedback\n   */\n  activity_id: string;\n  /**\n   * When the feedback was created\n   */\n  created_at: Date;\n  /**\n   * When the feedback was last updated\n   */\n  updated_at: Date;\n  /**\n   * The feedback value (true/false)\n   */\n  value: string;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface ActivityFeedbackRequest {\n  /**\n   * Whether to hide this activity\n   */\n  hide?: boolean;\n  /**\n   * Whether to show less content like this\n   */\n  show_less?: boolean;\n  /**\n   * Whether to show more content like this\n   */\n  show_more?: boolean;\n}\n\nexport interface ActivityFeedbackResponse {\n  /**\n   * The ID of the activity that received feedback\n   */\n  activity_id: string;\n  duration: string;\n}\n\nexport interface ActivityFilterConfig {\n  exclude_owner_activities: boolean;\n}\n\nexport interface ActivityMarkEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.activity.marked\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  /**\n   * Whether all activities were marked as read\n   */\n  mark_all_read?: boolean;\n  /**\n   * Whether all activities were marked as seen\n   */\n  mark_all_seen?: boolean;\n  received_at?: Date;\n  /**\n   * The IDs of activities marked as read\n   */\n  mark_read?: string[];\n  /**\n   * The IDs of activities marked as seen\n   */\n  mark_seen?: string[];\n  /**\n   * The IDs of activities marked as watched\n   */\n  mark_watched?: string[];\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityPinResponse {\n  /**\n   * When the pin was created\n   */\n  created_at: Date;\n  /**\n   * ID of the feed where activity is pinned\n   */\n  feed: string;\n  /**\n   * When the pin was last updated\n   */\n  updated_at: Date;\n  activity: ActivityResponse;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface ActivityPinnedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * The ID of the feed\n   */\n  fid: string;\n  custom: Record<string, any>;\n  pinned_activity: PinActivityResponse;\n  /**\n   * The type of event: \"feeds.activity.pinned\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityProcessorConfig {\n  type: string;\n  min_text_length?: number;\n  min_word_count?: number;\n  config?: Record<string, any>;\n}\n\nexport interface ActivityReactionAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of event: \"feeds.activity.reaction.added\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityReactionDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of the reaction that was removed\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityReactionUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of event: \"feeds.activity.reaction.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityRemovedFromFeedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.activity.removed_from_feed\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityRequest {\n  /**\n   * Type of activity\n   */\n  type: string;\n  /**\n   * List of feeds to add the activity to with a default max limit of 25 feeds\n   */\n  feeds: string[];\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create notification activities for mentioned users\n   */\n  create_notification_activity?: boolean;\n  /**\n   * Expiration time for the activity\n   */\n  expires_at?: string;\n  /**\n   * Optional ID for the activity\n   */\n  id?: string;\n  /**\n   * ID of parent activity for replies/comments\n   */\n  parent_id?: string;\n  /**\n   * ID of a poll to attach to activity\n   */\n  poll_id?: string;\n  /**\n   * Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody\n   */\n  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * Whether to skip URL enrichment for the activity\n   */\n  skip_enrich_url?: boolean;\n  /**\n   * Whether to skip push notifications\n   */\n  skip_push?: boolean;\n  /**\n   * Text content of the activity\n   */\n  text?: string;\n  /**\n   * Visibility setting for the activity. One of: public, private, tag\n   */\n  visibility?: 'public' | 'private' | 'tag';\n  /**\n   * If visibility is 'tag', this is the tag name and is required\n   */\n  visibility_tag?: string;\n  /**\n   * List of attachments for the activity\n   */\n  attachments?: Attachment[];\n  /**\n   * Collections that this activity references\n   */\n  collection_refs?: string[];\n  /**\n   * Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions.\n   */\n  collections?: CollectionRequest[];\n  /**\n   * Tags for filtering activities\n   */\n  filter_tags?: string[];\n  /**\n   * Tags for indicating user interests\n   */\n  interest_tags?: string[];\n  /**\n   * List of users mentioned in the activity\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data for the activity\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  /**\n   * Additional data for search indexing\n   */\n  search_data?: Record<string, any>;\n}\n\nexport interface ActivityResponse {\n  /**\n   * Number of bookmarks on the activity\n   */\n  bookmark_count: number;\n  /**\n   * Number of comments on the activity\n   */\n  comment_count: number;\n  /**\n   * When the activity was created\n   */\n  created_at: Date;\n  /**\n   * If this activity is hidden by this user (using activity feedback)\n   */\n  hidden: boolean;\n  /**\n   * Unique identifier for the activity\n   */\n  id: string;\n  /**\n   * Popularity score of the activity\n   */\n  popularity: number;\n  /**\n   * If this activity is obfuscated for this user. For premium content where you want to show a preview\n   */\n  preview: boolean;\n  /**\n   * Number of reactions to the activity\n   */\n  reaction_count: number;\n  /**\n   * Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody\n   */\n  restrict_replies: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * Ranking score for this activity\n   */\n  score: number;\n  /**\n   * Number of times the activity was shared\n   */\n  share_count: number;\n  /**\n   * Type of activity\n   */\n  type: string;\n  /**\n   * When the activity was last updated\n   */\n  updated_at: Date;\n  /**\n   * Visibility setting for the activity. One of: public, private, tag\n   */\n  visibility: 'public' | 'private' | 'tag';\n  /**\n   * Media attachments for the activity\n   */\n  attachments: Attachment[];\n  /**\n   * Latest 5 comments of this activity (comment replies excluded)\n   */\n  comments: CommentResponse[];\n  /**\n   * List of feed IDs containing this activity\n   */\n  feeds: string[];\n  /**\n   * Tags for filtering\n   */\n  filter_tags: string[];\n  /**\n   * Tags for user interests\n   */\n  interest_tags: string[];\n  /**\n   * Recent reactions to the activity\n   */\n  latest_reactions: FeedsReactionResponse[];\n  /**\n   * Users mentioned in the activity\n   */\n  mentioned_users: UserResponse[];\n  /**\n   * Current user's bookmarks for this activity\n   */\n  own_bookmarks: BookmarkResponse[];\n  /**\n   * Current user's reactions to this activity\n   */\n  own_reactions: FeedsReactionResponse[];\n  /**\n   * Enriched collection data referenced by this activity\n   */\n  collections: Record<string, EnrichedCollectionResponse>;\n  /**\n   * Custom data for the activity\n   */\n  custom: Record<string, any>;\n  /**\n   * Grouped reactions by type\n   */\n  reaction_groups: Record<string, FeedsReactionGroupResponse>;\n  /**\n   * Data for search indexing\n   */\n  search_data: Record<string, any>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  /**\n   * When the activity was deleted\n   */\n  deleted_at?: Date;\n  /**\n   * When the activity was last edited\n   */\n  edited_at?: Date;\n  /**\n   * When the activity will expire\n   */\n  expires_at?: Date;\n  /**\n   * Total count of reactions from friends on this activity\n   */\n  friend_reaction_count?: number;\n  /**\n   * Whether this activity has been read. Only set for feed groups with notification config (track_seen/track_read enabled).\n   */\n  is_read?: boolean;\n  /**\n   * Whether this activity has been seen. Only set for feed groups with notification config (track_seen/track_read enabled).\n   */\n  is_seen?: boolean;\n  is_watched?: boolean;\n  moderation_action?: string;\n  /**\n   * Which activity selector provided this activity (e.g., 'following', 'popular', 'interest'). Only set when using multiple activity selectors with ranking.\n   */\n  selector_source?: string;\n  /**\n   * Text content of the activity\n   */\n  text?: string;\n  /**\n   * Number of top-level comments (comments directly on the activity, excluding replies). Only returned by GetActivity when include_top_level_comment_count=true; never set on feed reads or events. Same status/deletion rules as comment_count; not adjusted per viewer.\n   */\n  top_level_comment_count?: number;\n  /**\n   * If visibility is 'tag', this is the tag name\n   */\n  visibility_tag?: string;\n  /**\n   * Reactions from users the current user follows or has mutual follows with\n   */\n  friend_reactions?: FeedsReactionResponse[];\n  /**\n   * Recent shares of the activity, one entry per share (org-gated)\n   */\n  latest_shares?: ShareResponse[];\n  current_feed?: FeedResponse;\n  i18n?: Record<string, string>;\n  location?: Location;\n  metrics?: Record<string, number>;\n  moderation?: ModerationV2Response;\n  notification_context?: NotificationContext;\n  parent?: ActivityResponse;\n  poll?: PollResponseData;\n  /**\n   * Variable values used at ranking time. Only included when include_score_vars is enabled in enrichment options.\n   */\n  score_vars?: Record<string, any>;\n}\n\nexport interface ActivityRestoredEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of the event\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivitySelectorConfig {\n  cutoff_time: Date;\n  cutoff_window?: string;\n  min_popularity?: number;\n  type?: string;\n  sort?: SortParam[];\n  filter?: Record<string, any>;\n  params?: Record<string, any>;\n}\n\nexport interface ActivityUnpinnedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * The ID of the feed\n   */\n  fid: string;\n  custom: Record<string, any>;\n  pinned_activity: PinActivityResponse;\n  /**\n   * The type of event: \"feeds.activity.unpinned\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ActivityUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of the event\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface AddActivityRequest {\n  /**\n   * Type of activity\n   */\n  type: string;\n  /**\n   * List of feeds to add the activity to with a default max limit of 25 feeds\n   */\n  feeds: string[];\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create notification activities for mentioned users\n   */\n  create_notification_activity?: boolean;\n  enrich_own_fields?: boolean;\n  /**\n   * Expiration time for the activity\n   */\n  expires_at?: string;\n  /**\n   * Optional ID for the activity\n   */\n  id?: string;\n  /**\n   * ID of parent activity for replies/comments\n   */\n  parent_id?: string;\n  /**\n   * ID of a poll to attach to activity\n   */\n  poll_id?: string;\n  /**\n   * Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody\n   */\n  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * Whether to skip URL enrichment for the activity\n   */\n  skip_enrich_url?: boolean;\n  /**\n   * Whether to skip push notifications\n   */\n  skip_push?: boolean;\n  /**\n   * Text content of the activity\n   */\n  text?: string;\n  /**\n   * Visibility setting for the activity. One of: public, private, tag\n   */\n  visibility?: 'public' | 'private' | 'tag';\n  /**\n   * If visibility is 'tag', this is the tag name and is required\n   */\n  visibility_tag?: string;\n  /**\n   * List of attachments for the activity\n   */\n  attachments?: Attachment[];\n  /**\n   * Collections that this activity references\n   */\n  collection_refs?: string[];\n  /**\n   * Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions.\n   */\n  collections?: CollectionRequest[];\n  /**\n   * Tags for filtering activities\n   */\n  filter_tags?: string[];\n  /**\n   * Tags for indicating user interests\n   */\n  interest_tags?: string[];\n  /**\n   * List of users mentioned in the activity\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data for the activity\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  /**\n   * Additional data for search indexing\n   */\n  search_data?: Record<string, any>;\n}\n\nexport interface AddActivityResponse {\n  duration: string;\n  activity: ActivityResponse;\n  /**\n   * Number of mention notification activities created for mentioned users\n   */\n  mention_notifications_created?: number;\n}\n\nexport interface AddBookmarkRequest {\n  /**\n   * ID of the folder to add the bookmark to\n   */\n  folder_id?: string;\n  /**\n   * Custom data for the bookmark\n   */\n  custom?: Record<string, any>;\n  new_folder?: AddFolderRequest;\n}\n\nexport interface AddBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface AddCommentBookmarkRequest {\n  /**\n   * ID of the folder to add the bookmark to\n   */\n  folder_id?: string;\n  /**\n   * Custom data for the bookmark\n   */\n  custom?: Record<string, any>;\n  new_folder?: AddFolderRequest;\n}\n\nexport interface AddCommentBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface AddCommentReactionRequest {\n  /**\n   * The type of reaction, eg upvote, like, ...\n   */\n  type: string;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create a notification activity for this reaction\n   */\n  create_notification_activity?: boolean;\n  /**\n   * Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one)\n   */\n  enforce_unique?: boolean;\n  skip_push?: boolean;\n  /**\n   * Optional list of feeds to create a reference (share) activity of the commented-on activity in. The reference activity's type mirrors the reaction type.\n   */\n  target_feeds?: string[];\n  /**\n   * Optional custom data to add to the reaction\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface AddCommentReactionResponse {\n  /**\n   * The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.\n   */\n  counter_delta: number;\n  /**\n   * Duration of the request\n   */\n  duration: string;\n  /**\n   * What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.\n   */\n  outcome: string;\n  comment: CommentResponse;\n  reaction: FeedsReactionResponse;\n  /**\n   * Whether notification creation was accepted for asynchronous processing\n   */\n  notification_accepted?: boolean;\n  /**\n   * @deprecated\n   * Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted\n   */\n  notification_created?: boolean;\n  /**\n   * ID of the async notification-creation task; poll GET /tasks/{id} for its status\n   */\n  notification_task_id?: string;\n  /**\n   * The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.\n   */\n  previous_reaction_type?: string;\n  reference_activity?: ActivityResponse;\n}\n\nexport interface AddCommentRequest {\n  /**\n   * Text content of the comment\n   */\n  comment?: string;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create a notification activity for this comment\n   */\n  create_notification_activity?: boolean;\n  /**\n   * Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.\n   */\n  id?: string;\n  /**\n   * ID of the object to comment on. Required for root comments\n   */\n  object_id?: string;\n  /**\n   * Type of the object to comment on. Required for root comments\n   */\n  object_type?: string;\n  /**\n   * ID of parent comment for replies. When provided, object_id and object_type are automatically inherited from the parent comment.\n   */\n  parent_id?: string;\n  /**\n   * Whether to skip URL enrichment for this comment\n   */\n  skip_enrich_url?: boolean;\n  skip_push?: boolean;\n  /**\n   * Media attachments for the reply\n   */\n  attachments?: Attachment[];\n  /**\n   * List of users mentioned in the reply\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data for the comment\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface AddCommentResponse {\n  duration: string;\n  comment: CommentResponse;\n  /**\n   * Number of mention notification activities created for mentioned users\n   */\n  mention_notifications_created?: number;\n  /**\n   * Whether a notification activity was successfully created\n   */\n  notification_created?: boolean;\n}\n\nexport interface AddCommentsBatchRequest {\n  /**\n   * List of comments to add\n   */\n  comments: AddCommentRequest[];\n}\n\nexport interface AddCommentsBatchResponse {\n  duration: string;\n  /**\n   * List of comments added\n   */\n  comments: CommentResponse[];\n}\n\nexport interface AddFolderRequest {\n  /**\n   * Name of the folder\n   */\n  name: string;\n  /**\n   * Custom data for the folder\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface AddReactionRequest {\n  /**\n   * Type of reaction\n   */\n  type: string;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create a notification activity for this reaction\n   */\n  create_notification_activity?: boolean;\n  /**\n   * Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one)\n   */\n  enforce_unique?: boolean;\n  skip_push?: boolean;\n  /**\n   * Optional list of feeds to create a reference (share) activity of the original activity in. The reference activity's type mirrors the reaction type.\n   */\n  target_feeds?: string[];\n  /**\n   * Custom data for the reaction\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface AddReactionResponse {\n  /**\n   * The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.\n   */\n  counter_delta: number;\n  duration: string;\n  /**\n   * What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.\n   */\n  outcome: string;\n  activity: ActivityResponse;\n  reaction: FeedsReactionResponse;\n  /**\n   * Whether notification creation was accepted for asynchronous processing\n   */\n  notification_accepted?: boolean;\n  /**\n   * @deprecated\n   * Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted\n   */\n  notification_created?: boolean;\n  /**\n   * ID of the async notification-creation task; poll GET /tasks/{id} for its status\n   */\n  notification_task_id?: string;\n  /**\n   * The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.\n   */\n  previous_reaction_type?: string;\n  reference_activity?: ActivityResponse;\n}\n\nexport interface AddUserGroupMembersRequest {\n  /**\n   * List of user IDs to add as members\n   */\n  member_ids: string[];\n  /**\n   * Whether to add the members as group admins. Defaults to false\n   */\n  as_admin?: boolean;\n  team_id?: string;\n}\n\nexport interface AddUserGroupMembersResponse {\n  duration: string;\n  user_group?: UserGroupResponse;\n}\n\nexport interface AggregatedActivityResponse {\n  /**\n   * Number of activities in this aggregation\n   */\n  activity_count: number;\n  /**\n   * When the aggregation was created\n   */\n  created_at: Date;\n  /**\n   * Grouping identifier\n   */\n  group: string;\n  /**\n   * Ranking score for this aggregation\n   */\n  score: number;\n  /**\n   * When the aggregation was last updated\n   */\n  updated_at: Date;\n  /**\n   * Number of unique users in this aggregation\n   */\n  user_count: number;\n  /**\n   * Whether this activity group has been truncated due to exceeding the group size limit\n   */\n  user_count_truncated: boolean;\n  /**\n   * List of activities in this aggregation\n   */\n  activities: ActivityResponse[];\n  /**\n   * Whether this aggregated group has been read. Only set for feed groups with notification config (track_seen/track_read enabled).\n   */\n  is_read?: boolean;\n  /**\n   * Whether this aggregated group has been seen. Only set for feed groups with notification config (track_seen/track_read enabled).\n   */\n  is_seen?: boolean;\n  is_watched?: boolean;\n}\n\nexport interface AggregationConfig {\n  activities_sort?: string;\n  format?: string;\n  group_size?: number;\n  score_strategy?: string;\n}\n\nexport interface AppEventResponse {\n  /**\n   * boolean\n   */\n  auto_translation_enabled: boolean;\n  /**\n   * string\n   */\n  name: string;\n  /**\n   * boolean\n   */\n  async_url_enrich_enabled?: boolean;\n  file_upload_config?: FileUploadConfig;\n  image_upload_config?: FileUploadConfig;\n}\n\nexport interface AppResponseFields {\n  async_url_enrich_enabled: boolean;\n  auto_translation_enabled: boolean;\n  id: number;\n  name: string;\n  placement: string;\n  file_upload_config: FileUploadConfig;\n  image_upload_config: FileUploadConfig;\n}\n\nexport interface AppUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  app: AppEventResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"app.updated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n}\n\nexport interface AppealItemResponse {\n  /**\n   * Reason Text of the Appeal Item\n   */\n  appeal_reason: string;\n  /**\n   * When the flag was created\n   */\n  created_at: Date;\n  /**\n   * ID of the entity\n   */\n  entity_id: string;\n  /**\n   * Type of entity\n   */\n  entity_type: string;\n  id: string;\n  /**\n   * Status of the Appeal Item\n   */\n  status: string;\n  /**\n   * When the flag was last updated\n   */\n  updated_at: Date;\n  /**\n   * Text severity level assigned by the AI provider\n   */\n  ai_text_severity?: string;\n  /**\n   * Detected language of the appeal_reason text itself\n   */\n  appeal_reason_language?: string;\n  /**\n   * CID of the channel the entity belongs to (content appeals), or of the channel ban being appealed (stream:user appeals). Empty for a global ban appeal.\n   */\n  channel_cid?: string;\n  /**\n   * Moderation policy key that was applied\n   */\n  config_key?: string;\n  /**\n   * Decision Reason of the Appeal Item\n   */\n  decision_reason?: string;\n  /**\n   * Action recommended by the automated moderation system (e.g. flag, remove, shadow)\n   */\n  recommended_action?: string;\n  /**\n   * ID of the review queue item linked to this appeal, if the appeal was submitted with one\n   */\n  review_queue_item_id?: string;\n  /**\n   * Overall content severity score (1–100)\n   */\n  severity?: number;\n  /**\n   * Full chronological history of all moderation actions on the review queue item\n   */\n  actions?: ActionLogResponse[];\n  /**\n   * Attachments(e.g. Images) of the Appeal Item\n   */\n  attachments?: string[];\n  /**\n   * Classification labels from automated and manual review\n   */\n  flag_labels?: string[];\n  /**\n   * Types of flags applied to the entity (e.g. user_report, bodyguard)\n   */\n  flag_types?: string[];\n  /**\n   * Per-provider flag records explaining why the action was taken\n   */\n  flags?: ModerationFlagResponse[];\n  /**\n   * Detected languages in the content\n   */\n  languages?: string[];\n  entity_content?: ModerationPayload;\n  moderation_action?: ActionLogResponse;\n  original_moderation_action?: ActionLogResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface AppealRequest {\n  /**\n   * Explanation for why the content is being appealed\n   */\n  appeal_reason: string;\n  /**\n   * Unique identifier of the entity being appealed\n   */\n  entity_id: string;\n  /**\n   * Type of entity being appealed (e.g., message, user)\n   */\n  entity_type: string;\n  /**\n   * CID of the channel ban being appealed. Only used when entity_type is stream:user; omit to appeal the global ban.\n   */\n  channel_cid?: string;\n  /**\n   * ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.\n   */\n  review_queue_item_id?: string;\n  /**\n   * Array of Attachment URLs(e.g., images)\n   */\n  attachments?: string[];\n}\n\nexport interface AppealResponse {\n  /**\n   * Unique identifier of the created Appeal item\n   */\n  appeal_id: string;\n  duration: string;\n}\n\nexport interface Attachment {\n  custom: Record<string, any>;\n  asset_url?: string;\n  author_icon?: string;\n  author_link?: string;\n  author_name?: string;\n  color?: string;\n  fallback?: string;\n  footer?: string;\n  footer_icon?: string;\n  image_url?: string;\n  og_scrape_url?: string;\n  original_height?: number;\n  original_width?: number;\n  pretext?: string;\n  text?: string;\n  thumb_url?: string;\n  title?: string;\n  title_link?: string;\n  /**\n   * Attachment type (e.g. image, video, url)\n   */\n  type?: string;\n  actions?: Action[];\n  fields?: Field[];\n  giphy?: Images;\n}\n\nexport interface AutomodPlatformCircumventionConfig {\n  enabled: boolean;\n  rules: AutomodRule[];\n  async?: boolean;\n}\n\nexport interface AutomodRule {\n  action:\n    | 'flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  label: string;\n  threshold: number;\n}\n\nexport interface AutomodSemanticFiltersConfig {\n  enabled: boolean;\n  rules: AutomodSemanticFiltersRule[];\n  async?: boolean;\n}\n\nexport interface AutomodSemanticFiltersRule {\n  action:\n    | 'flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  name: string;\n  threshold: number;\n}\n\nexport interface AutomodToxicityConfig {\n  enabled: boolean;\n  rules: AutomodRule[];\n  async?: boolean;\n}\n\nexport interface BanActionRequestPayload {\n  /**\n   * Also ban user from all channels this moderator creates in the future\n   */\n  ban_from_future_channels?: boolean;\n  /**\n   * Ban only from specific channel\n   */\n  channel_ban_only?: boolean;\n  channel_cid?: string;\n  /**\n   * Message deletion mode: soft, pruning, or hard\n   */\n  delete_messages?: 'soft' | 'pruning' | 'hard';\n  /**\n   * Whether to ban by IP address\n   */\n  ip_ban?: boolean;\n  /**\n   * Reason for the ban\n   */\n  reason?: string;\n  /**\n   * Whether this is a shadow ban\n   */\n  shadow?: boolean;\n  /**\n   * Optional: ban user directly without review item\n   */\n  target_user_id?: string;\n  /**\n   * Duration of ban in minutes\n   */\n  timeout?: number;\n}\n\nexport interface BanInfoResponse {\n  /**\n   * When the ban was created\n   */\n  created_at: Date;\n  /**\n   * The channel this ban applies to. Empty if this is an app-wide (global) ban rather than a per-channel ban.\n   */\n  channel_cid?: string;\n  /**\n   * When the ban expires\n   */\n  expires?: Date;\n  /**\n   * Reason for the ban\n   */\n  reason?: string;\n  /**\n   * Whether this is a shadow ban\n   */\n  shadow?: boolean;\n  channel?: ChannelMetadata;\n  /**\n   * User response object\n   */\n  created_by?: UserResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface BanOptions {\n  delete_messages?: 'soft' | 'pruning' | 'hard';\n  duration?: number;\n  ip_ban?: boolean;\n  reason?: string;\n  shadow_ban?: boolean;\n}\n\nexport interface BanRequest {\n  /**\n   * ID of the user to ban\n   */\n  target_user_id: string;\n  /**\n   * Channel where the ban applies\n   */\n  channel_cid?: string;\n  delete_messages?: 'soft' | 'pruning' | 'hard';\n  /**\n   * Whether to ban the user's IP address\n   */\n  ip_ban?: boolean;\n  /**\n   * Optional explanation for the ban\n   */\n  reason?: string;\n  /**\n   * Whether this is a shadow ban\n   */\n  shadow?: boolean;\n  /**\n   * Duration of the ban in minutes\n   */\n  timeout?: number;\n}\n\nexport interface BatchQueryActivityReactionsRequest {\n  /**\n   * Activity IDs to fetch the user's reactions for (max 100)\n   */\n  activity_ids: string[];\n  limit?: number;\n  next?: string;\n  prev?: string;\n  sort?: SortParamRequest[];\n  /**\n   * Optional filter on reaction_type or created_at\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface BatchQueryActivityReactionsResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  reactions: FeedsReactionResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface BatchQueryCommentReactionsRequest {\n  /**\n   * Comment IDs to fetch the user's reactions for (max 100)\n   */\n  comment_ids: string[];\n  limit?: number;\n  next?: string;\n  prev?: string;\n  sort?: SortParamRequest[];\n  /**\n   * Optional filter on reaction_type or created_at\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface BatchQueryCommentReactionsResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  reactions: FeedsReactionResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface BlockActionRequestPayload {\n  /**\n   * Reason for blocking\n   */\n  reason?: string;\n}\n\nexport interface BlockListConfig {\n  enabled: boolean;\n  rules: BlockListRule[];\n  async?: boolean;\n  match_substring?: boolean;\n}\n\nexport interface BlockListOptions {\n  /**\n   * Blocklist behavior. One of: flag, block, shadow_block\n   */\n  behavior: 'flag' | 'block' | 'shadow_block';\n  /**\n   * Blocklist name\n   */\n  blocklist: string;\n}\n\nexport interface BlockListResponse {\n  is_confusable_folding_enabled: boolean;\n  is_leet_check_enabled: boolean;\n  is_plural_check_enabled: boolean;\n  is_substring_matching_enabled: boolean;\n  /**\n   * Block list name\n   */\n  name: string;\n  /**\n   * Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word\n   */\n  type: string;\n  /**\n   * List of words to block\n   */\n  words: string[];\n  /**\n   * Date/time of creation\n   */\n  created_at?: Date;\n  id?: string;\n  owner_user_id?: string;\n  team?: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at?: Date;\n}\n\nexport interface BlockListRule {\n  action:\n    | 'flag'\n    | 'mask'\n    | 'mask_flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  name: string;\n  team: string;\n}\n\nexport interface BlockUsersRequest {\n  /**\n   * User id to block\n   */\n  blocked_user_id: string;\n}\n\nexport interface BlockUsersResponse {\n  /**\n   * User id who blocked another user\n   */\n  blocked_by_user_id: string;\n  /**\n   * User id who got blocked\n   */\n  blocked_user_id: string;\n  /**\n   * Timestamp when the user was blocked\n   */\n  created_at: Date;\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n}\n\nexport interface BlockedUserResponse {\n  /**\n   * ID of the user who got blocked\n   */\n  blocked_user_id: string;\n  created_at: Date;\n  /**\n   * ID of the user who blocked another user\n   */\n  user_id: string;\n  /**\n   * User response object\n   */\n  blocked_user: UserResponse;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface BodyguardProfileSummary {\n  name: string;\n  display_name?: string;\n  text_type?: string;\n}\n\nexport interface BodyguardRule {\n  action:\n    | 'keep'\n    | 'flag'\n    | 'mask'\n    | 'mask_flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  label: string;\n  severity_rules: BodyguardSeverityRule[];\n}\n\nexport interface BodyguardSeverityRule {\n  action:\n    | 'keep'\n    | 'flag'\n    | 'mask'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  severity: 'low' | 'medium' | 'high' | 'critical';\n}\n\nexport interface BookmarkAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  bookmark: BookmarkResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.bookmark.added\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface BookmarkDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  bookmark: BookmarkResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.bookmark.deleted\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface BookmarkFolderDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  bookmark_folder: BookmarkFolderResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.bookmark_folder.deleted\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface BookmarkFolderResponse {\n  /**\n   * When the folder was created\n   */\n  created_at: Date;\n  /**\n   * Unique identifier for the folder\n   */\n  id: string;\n  /**\n   * Name of the folder\n   */\n  name: string;\n  /**\n   * When the folder was last updated\n   */\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  /**\n   * Custom data for the folder\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface BookmarkFolderUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  bookmark_folder: BookmarkFolderResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.bookmark_folder.updated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface BookmarkResponse {\n  /**\n   * When the bookmark was created\n   */\n  created_at: Date;\n  /**\n   * ID of the bookmarked object\n   */\n  object_id: string;\n  /**\n   * Type of the bookmarked object (activity or comment)\n   */\n  object_type: string;\n  /**\n   * When the bookmark was last updated\n   */\n  updated_at: Date;\n  activity: ActivityResponse;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  activity_id?: string;\n  comment?: CommentResponse;\n  /**\n   * Custom data for the bookmark\n   */\n  custom?: Record<string, any>;\n  folder?: BookmarkFolderResponse;\n}\n\nexport interface BookmarkUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  bookmark: BookmarkResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.bookmark.updated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface BulkActionAppealsRequest {\n  /**\n   * Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal\n   */\n  action_type:\n    | 'unban'\n    | 'restore'\n    | 'unblock'\n    | 'mark_reviewed'\n    | 'reject_appeal';\n  /**\n   * List of appeal UUIDs to process\n   */\n  appeal_ids: string[];\n  /**\n   * Configuration for mark reviewed action\n   */\n  mark_reviewed?: MarkReviewedRequestPayload;\n  /**\n   * Configuration for rejecting an appeal\n   */\n  reject_appeal?: RejectAppealRequestPayload;\n  /**\n   * Configuration for restore action. State-aware: reverses whichever of a delete, a block, or a shadow block currently applies to the content (including both a delete and a block/shadow block at once).\n   */\n  restore?: RestoreActionRequestPayload;\n  /**\n   * Configuration for unban moderation action\n   */\n  unban?: UnbanActionRequestPayload;\n  /**\n   * @deprecated\n   * Deprecated: Use restore instead, which now also reverses a block or shadow block. Configuration for unblock action.\n   */\n  unblock?: UnblockActionRequestPayload;\n}\n\nexport interface BulkActionAppealsResponse {\n  duration: string;\n  /**\n   * Appeals that could not be processed, with per-item error messages\n   */\n  errors: BulkAppealError[];\n  /**\n   * Successfully processed appeals\n   */\n  results: BulkAppealResult[];\n}\n\nexport interface BulkAppealError {\n  appeal_id: string;\n  error: string;\n}\n\nexport interface BulkAppealResult {\n  appeal_id: string;\n  appeal_item?: AppealItemResponse;\n}\n\nexport interface BulkDeleteActionConfigRequest {\n  /**\n   * UUIDs of the action configs to delete\n   */\n  ids: string[];\n}\n\nexport interface BulkDeleteActionConfigResponse {\n  /**\n   * Number of action configs deleted\n   */\n  deleted: number;\n  duration: string;\n}\n\nexport interface BulkUpsertActionConfigRequest {\n  /**\n   * List of action configs to create or update\n   */\n  action_configs: UpsertActionConfigItem[];\n}\n\nexport interface BulkUpsertActionConfigResponse {\n  duration: string;\n  /**\n   * The created or updated action configs in the same order as the request\n   */\n  action_configs: ModerationActionConfigResponse[];\n}\n\nexport interface BypassActionRequest {\n  enabled?: boolean;\n}\n\nexport interface CallActionOptions {\n  duration?: number;\n  flag_reason?: string;\n  kick_reason?: string;\n  mute_audio?: boolean;\n  mute_video?: boolean;\n  reason?: string;\n  warning_text?: string;\n}\n\nexport interface CallCustomPropertyParameters {\n  operator?: string;\n  property_key?: string;\n}\n\nexport interface CallRuleActionSequence {\n  violation_number?: number;\n  actions?: string[];\n  call_options?: CallActionOptions;\n}\n\nexport interface CallTypeRuleParameters {\n  call_type?: string;\n}\n\nexport interface CallViolationCountParameters {\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface CastPollVoteRequest {\n  vote?: VoteData;\n}\n\nexport interface ChangeFeedVisibilityRequest {\n  /**\n   * Feed visibility level: public, visible, followers, members, or private\n   */\n  visibility: 'public' | 'visible' | 'followers' | 'members' | 'private';\n  /**\n   * What to do with existing pending follows when loosening visibility from 'followers': auto_approve (default) or reject\n   */\n  pending_follows_action?: 'auto_approve' | 'reject';\n}\n\nexport interface ChangeFeedVisibilityResponse {\n  duration: string;\n  feed: FeedResponse;\n}\n\nexport interface ChannelConfigWithInfo {\n  automod: 'disabled' | 'simple' | 'AI';\n  automod_behavior: 'flag' | 'block' | 'shadow_block';\n  connect_events: boolean;\n  count_messages: boolean;\n  created_at: Date;\n  custom_events: boolean;\n  delivery_events: boolean;\n  mark_messages_pending: boolean;\n  max_message_length: number;\n  message_retention: string;\n  mutes: boolean;\n  name: string;\n  polls: boolean;\n  push_notifications: boolean;\n  quotes: boolean;\n  reactions: boolean;\n  read_events: boolean;\n  reminders: boolean;\n  replies: boolean;\n  search: boolean;\n  shared_locations: boolean;\n  skip_last_msg_update_for_system_msgs: boolean;\n  typing_events: boolean;\n  updated_at: Date;\n  uploads: boolean;\n  url_enrichment: boolean;\n  user_message_reminders: boolean;\n  commands: Command[];\n  blocklist?: string;\n  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';\n  partition_size?: number;\n  partition_ttl?: string;\n  /**\n   * Sets the push notification level for a channel type\n   */\n  push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';\n  allowed_flag_reasons?: string[];\n  blocklists?: BlockListOptions[];\n  /**\n   * Sets thresholds for AI moderation\n   */\n  automod_thresholds?: Thresholds;\n  chat_preferences?: ChatPreferences;\n  grants?: Record<string, string[]>;\n}\n\nexport interface ChannelMemberPartialResponse {\n  /**\n   * Role of the member in the channel\n   */\n  channel_role: string;\n  /**\n   * Whether the user muted notifications for this channel\n   */\n  notifications_muted: boolean;\n  /**\n   * Channel-member custom fields projected via `member_custom_include`\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface ChannelMemberResponse {\n  /**\n   * Whether member is banned this channel or not\n   */\n  banned: boolean;\n  /**\n   * Role of the member in the channel\n   */\n  channel_role: string;\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  notifications_muted: boolean;\n  /**\n   * Whether member is shadow banned in this channel or not\n   */\n  shadow_banned: boolean;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  custom: Record<string, any>;\n  archived_at?: Date;\n  /**\n   * Expiration date of the ban\n   */\n  ban_expires?: Date;\n  /**\n   * Whether the member's ban also applies to channels the channel's creator will create in the future (an active future channel ban by the creator targets this member)\n   */\n  ban_from_future_channels?: boolean;\n  deleted_at?: Date;\n  /**\n   * Expiration date of the future channel ban; absent when the future channel ban is permanent\n   */\n  future_channel_ban_expires?: Date;\n  /**\n   * Date when invite was accepted\n   */\n  invite_accepted_at?: Date;\n  /**\n   * Date when invite was rejected\n   */\n  invite_rejected_at?: Date;\n  /**\n   * Whether member was invited or not\n   */\n  invited?: boolean;\n  /**\n   * Whether member is channel moderator or not\n   */\n  is_moderator?: boolean;\n  pinned_at?: Date;\n  /**\n   * Permission level of the member in the channel (DEPRECATED: use channel_role instead). One of: member, moderator, admin, owner\n   */\n  role?: string;\n  status?: string;\n  user_id?: string;\n  deleted_messages?: string[];\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ChannelMessageCountRuleParameters {\n  operator?: string;\n  threshold?: number;\n}\n\nexport interface ChannelMetadata {\n  cid: string;\n  id: string;\n  type: string;\n  custom: Record<string, any>;\n  last_message_at?: Date;\n  member_count?: number;\n  message_count?: number;\n  push_level?: string;\n  team?: string;\n}\n\nexport interface ChannelMute {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * Date/time of mute expiration\n   */\n  expires?: Date;\n  /**\n   * Represents channel in chat\n   */\n  channel?: ChannelResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport const ChannelOwnCapability = {\n  BAN_CHANNEL_MEMBERS: 'ban-channel-members',\n  CAST_POLL_VOTE: 'cast-poll-vote',\n  CONNECT_EVENTS: 'connect-events',\n  CREATE_ATTACHMENT: 'create-attachment',\n  CREATE_MENTION: 'create-mention',\n  DELETE_ANY_MESSAGE: 'delete-any-message',\n  DELETE_CHANNEL: 'delete-channel',\n  DELETE_OWN_MESSAGE: 'delete-own-message',\n  DELIVERY_EVENTS: 'delivery-events',\n  FLAG_MESSAGE: 'flag-message',\n  FREEZE_CHANNEL: 'freeze-channel',\n  JOIN_CHANNEL: 'join-channel',\n  LEAVE_CHANNEL: 'leave-channel',\n  MUTE_CHANNEL: 'mute-channel',\n  NOTIFY_CHANNEL: 'notify-channel',\n  NOTIFY_GROUP: 'notify-group',\n  NOTIFY_HERE: 'notify-here',\n  NOTIFY_ROLE: 'notify-role',\n  PIN_MESSAGE: 'pin-message',\n  QUERY_POLL_VOTES: 'query-poll-votes',\n  QUOTE_MESSAGE: 'quote-message',\n  READ_EVENTS: 'read-events',\n  SEARCH_MESSAGES: 'search-messages',\n  SEND_CUSTOM_EVENTS: 'send-custom-events',\n  SEND_LINKS: 'send-links',\n  SEND_MESSAGE: 'send-message',\n  SEND_POLL: 'send-poll',\n  SEND_REACTION: 'send-reaction',\n  SEND_REPLY: 'send-reply',\n  SEND_RESTRICTED_VISIBILITY_MESSAGE: 'send-restricted-visibility-message',\n  SEND_TYPING_EVENTS: 'send-typing-events',\n  SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',\n  SHARE_LOCATION: 'share-location',\n  SKIP_SLOW_MODE: 'skip-slow-mode',\n  SLOW_MODE: 'slow-mode',\n  TYPING_EVENTS: 'typing-events',\n  UPDATE_ANY_MESSAGE: 'update-any-message',\n  UPDATE_CHANNEL: 'update-channel',\n  UPDATE_CHANNEL_MEMBERS: 'update-channel-members',\n  UPDATE_OWN_MESSAGE: 'update-own-message',\n  UPDATE_THREAD: 'update-thread',\n  UPLOAD_FILE: 'upload-file',\n} as const;\n\nexport type ChannelOwnCapability =\n  (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];\n\nexport interface ChannelPushPreferencesResponse {\n  chat_level?: string;\n  disabled_until?: Date;\n  chat_preferences?: ChatPreferencesResponse;\n}\n\nexport interface ChannelResponse {\n  /**\n   * Channel CID (<type>:<id>)\n   */\n  cid: string;\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  disabled: boolean;\n  /**\n   * Whether channel is frozen or not\n   */\n  frozen: boolean;\n  /**\n   * Channel unique ID\n   */\n  id: string;\n  /**\n   * Type of the channel\n   */\n  type: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * Custom data for this object\n   */\n  custom: Record<string, any>;\n  /**\n   * Whether auto translation is enabled or not\n   */\n  auto_translation_enabled?: boolean;\n  /**\n   * Language (or comma-separated list of languages) to translate to when auto translation is active\n   */\n  auto_translation_language?: string;\n  /**\n   * Whether this channel is blocked by current user or not\n   */\n  blocked?: boolean;\n  /**\n   * Cooldown period after sending each message\n   */\n  cooldown?: number;\n  /**\n   * Date/time of deletion\n   */\n  deleted_at?: Date;\n  /**\n   * Whether this channel is hidden by current user or not\n   */\n  hidden?: boolean;\n  /**\n   * Date since when the message history is accessible\n   */\n  hide_messages_before?: Date;\n  /**\n   * Date of the last message sent\n   */\n  last_message_at?: Date;\n  /**\n   * Number of members in the channel\n   */\n  member_count?: number;\n  /**\n   * Number of messages in the channel\n   */\n  message_count?: number;\n  /**\n   * Date of mute expiration\n   */\n  mute_expires_at?: Date;\n  /**\n   * Whether this channel is muted or not\n   */\n  muted?: boolean;\n  /**\n   * Team the channel belongs to (multi-tenant only)\n   */\n  team?: string;\n  /**\n   * Date of the latest truncation of the channel\n   */\n  truncated_at?: Date;\n  /**\n   * List of filter tags associated with the channel\n   */\n  filter_tags?: string[];\n  /**\n   * List of channel members (max 100)\n   */\n  members?: ChannelMemberResponse[];\n  /**\n   * List of channel capabilities of authenticated user\n   */\n  own_capabilities?: ChannelOwnCapability[];\n  config?: ChannelConfigWithInfo;\n  /**\n   * User response object\n   */\n  created_by?: UserResponse;\n  /**\n   * User response object\n   */\n  truncated_by?: UserResponse;\n}\n\nexport interface ChatDraftPayloadResponse {\n  id: string;\n  text: string;\n  custom: Record<string, any>;\n  html?: string;\n  mml?: string;\n  parent_id?: string;\n  poll_id?: string;\n  quoted_message_id?: string;\n  show_in_channel?: boolean;\n  silent?: boolean;\n  type?: string;\n  attachments?: Attachment[];\n  mentioned_users?: UserResponse[];\n}\n\nexport interface ChatDraftResponse {\n  channel_cid: string;\n  created_at: Date;\n  message: ChatDraftPayloadResponse;\n  parent_id?: string;\n  parent_message?: ChatMessageResponse;\n  quoted_message?: ChatMessageResponse;\n}\n\nexport interface ChatMessageResponse {\n  cid: string;\n  created_at: Date;\n  deleted_reply_count: number;\n  html: string;\n  id: string;\n  mentioned_channel: boolean;\n  mentioned_here: boolean;\n  pinned: boolean;\n  reply_count: number;\n  shadowed: boolean;\n  silent: boolean;\n  text: string;\n  type: string;\n  updated_at: Date;\n  attachments: Attachment[];\n  latest_reactions: ChatReactionResponse[];\n  mentioned_users: UserResponse[];\n  own_reactions: ChatReactionResponse[];\n  restricted_visibility: string[];\n  custom: Record<string, any>;\n  reaction_counts: Record<string, number>;\n  reaction_scores: Record<string, number>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  command?: string;\n  deleted_at?: Date;\n  deleted_for_me?: boolean;\n  message_text_updated_at?: Date;\n  mml?: string;\n  parent_id?: string;\n  pin_expires?: Date;\n  pinned_at?: Date;\n  poll_id?: string;\n  quoted_message_id?: string;\n  show_in_channel?: boolean;\n  mentioned_group_ids?: string[];\n  mentioned_groups?: UserGroupResponse[];\n  mentioned_roles?: string[];\n  thread_participants?: UserResponse[];\n  draft?: ChatDraftResponse;\n  i18n?: Record<string, string>;\n  image_labels?: Record<string, string[]>;\n  member?: ChannelMemberPartialResponse;\n  moderation?: ChatModerationV2Response;\n  /**\n   * User response object\n   */\n  pinned_by?: UserResponse;\n  poll?: PollResponseData;\n  quoted_message?: ChatMessageResponse;\n  reaction_groups?: Record<string, ChatReactionGroupResponse>;\n  reminder?: ChatReminderResponseData;\n  shared_location?: ChatSharedLocationResponseData;\n}\n\nexport interface ChatModerationV2Response {\n  action: string;\n  original_text: string;\n  blocklist_matched?: string;\n  platform_circumvented?: boolean;\n  semantic_filter_matched?: string;\n  blocklists_matched?: string[];\n  image_harms?: string[];\n  text_harms?: string[];\n}\n\nexport interface ChatPreferences {\n  channel_mentions?: string;\n  default_preference?: string;\n  direct_mentions?: string;\n  distinct_channel_messages?: string;\n  group_mentions?: string;\n  here_mentions?: string;\n  role_mentions?: string;\n  thread_replies?: string;\n}\n\nexport interface ChatPreferencesInput {\n  channel_mentions?: 'all' | 'none';\n  default_preference?: 'all' | 'none';\n  direct_mentions?: 'all' | 'none';\n  group_mentions?: 'all' | 'none';\n  here_mentions?: 'all' | 'none';\n  role_mentions?: 'all' | 'none';\n  thread_replies?: 'all' | 'none';\n}\n\nexport interface ChatPreferencesResponse {\n  channel_mentions?: string;\n  default_preference?: string;\n  direct_mentions?: string;\n  group_mentions?: string;\n  here_mentions?: string;\n  role_mentions?: string;\n  thread_replies?: string;\n}\n\nexport interface ChatReactionGroupResponse {\n  count: number;\n  first_reaction_at: Date;\n  last_reaction_at: Date;\n  sum_scores: number;\n  latest_reactions_by: ChatReactionGroupUserResponse[];\n}\n\nexport interface ChatReactionGroupUserResponse {\n  created_at: Date;\n  user_id: string;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ChatReactionResponse {\n  created_at: Date;\n  message_id: string;\n  score: number;\n  type: string;\n  updated_at: Date;\n  user_id: string;\n  custom: Record<string, any>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface ChatReminderResponseData {\n  channel_cid: string;\n  created_at: Date;\n  message_id: string;\n  updated_at: Date;\n  user_id: string;\n  remind_at?: Date;\n  message?: ChatMessageResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ChatSharedLocationResponseData {\n  channel_cid: string;\n  created_at: Date;\n  created_by_device_id: string;\n  latitude: number;\n  longitude: number;\n  message_id: string;\n  updated_at: Date;\n  user_id: string;\n  end_at?: Date;\n  message?: ChatMessageResponse;\n}\n\nexport interface ClosedCaptionRuleParameters {\n  severity?: string;\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n  llm_harm_labels?: Record<string, string>;\n}\n\nexport interface CollectionRequest {\n  /**\n   * Name/type of the collection\n   */\n  name: string;\n  /**\n   * Custom data for the collection (required, must contain at least one key)\n   */\n  custom: Record<string, any>;\n  /**\n   * Unique identifier for the collection within its name (optional, will be auto-generated if not provided)\n   */\n  id?: string;\n}\n\nexport interface CollectionResponse {\n  /**\n   * Unique identifier for the collection within its name\n   */\n  id: string;\n  /**\n   * Name/type of the collection\n   */\n  name: string;\n  /**\n   * When the collection was created\n   */\n  created_at?: Date;\n  /**\n   * When the collection was last updated\n   */\n  updated_at?: Date;\n  /**\n   * ID of the user who owns this collection\n   */\n  user_id?: string;\n  /**\n   * Custom data for the collection\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface Command {\n  /**\n   * Arguments help text, shown in commands auto-completion\n   */\n  args: string;\n  /**\n   * Description, shown in commands auto-completion\n   */\n  description: string;\n  /**\n   * Unique command name\n   */\n  name: string;\n  /**\n   * Set name used for grouping commands\n   */\n  set: string;\n  /**\n   * Date/time of creation\n   */\n  created_at?: Date;\n  /**\n   * Date/time of the last update\n   */\n  updated_at?: Date;\n}\n\nexport interface CommentAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.comment.added\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface CommentDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.comment.deleted\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface CommentReactionAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of event: \"feeds.comment.reaction.added\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface CommentReactionDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of reaction that was removed\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface CommentReactionUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  activity: ActivityResponse;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  reaction: FeedsReactionResponse;\n  /**\n   * The type of event: \"feeds.comment.reaction.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface CommentResponse {\n  bookmark_count: number;\n  /**\n   * Confidence score of the comment\n   */\n  confidence_score: number;\n  /**\n   * When the comment was created\n   */\n  created_at: Date;\n  /**\n   * Number of downvotes for this comment\n   */\n  downvote_count: number;\n  /**\n   * Unique identifier for the comment\n   */\n  id: string;\n  /**\n   * ID of the object this comment is associated with\n   */\n  object_id: string;\n  /**\n   * Type of the object this comment is associated with\n   */\n  object_type: string;\n  /**\n   * Number of reactions to this comment\n   */\n  reaction_count: number;\n  /**\n   * Number of replies to this comment\n   */\n  reply_count: number;\n  /**\n   * Score of the comment based on reactions\n   */\n  score: number;\n  /**\n   * Status of the comment. One of: active, deleted, removed, hidden\n   */\n  status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';\n  /**\n   * When the comment was last updated\n   */\n  updated_at: Date;\n  /**\n   * Number of upvotes for this comment\n   */\n  upvote_count: number;\n  /**\n   * Users mentioned in the comment\n   */\n  mentioned_users: UserResponse[];\n  /**\n   * Current user's reactions to this activity\n   */\n  own_reactions: FeedsReactionResponse[];\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  /**\n   * Controversy score of the comment\n   */\n  controversy_score?: number;\n  /**\n   * When the comment was deleted\n   */\n  deleted_at?: Date;\n  /**\n   * When the comment was last edited\n   */\n  edited_at?: Date;\n  /**\n   * ID of parent comment for nested replies\n   */\n  parent_id?: string;\n  /**\n   * Text content of the comment\n   */\n  text?: string;\n  /**\n   * Attachments associated with the comment\n   */\n  attachments?: Attachment[];\n  /**\n   * Recent reactions to the comment\n   */\n  latest_reactions?: FeedsReactionResponse[];\n  /**\n   * Custom data for the comment\n   */\n  custom?: Record<string, any>;\n  i18n?: Record<string, string>;\n  moderation?: ModerationV2Response;\n  /**\n   * Grouped reactions by type\n   */\n  reaction_groups?: Record<string, FeedsReactionGroupResponse>;\n}\n\nexport interface CommentRestoredEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.comment.restored\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface CommentUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  comment: CommentResponse;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.comment.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ConfigResponse {\n  /**\n   * Whether moderation should be performed asynchronously\n   */\n  async: boolean;\n  /**\n   * When the configuration was created\n   */\n  created_at: Date;\n  /**\n   * Unique identifier for the moderation configuration\n   */\n  key: string;\n  /**\n   * Team associated with the configuration\n   */\n  team: string;\n  /**\n   * When the configuration was last updated\n   */\n  updated_at: Date;\n  supported_video_call_harm_types: string[];\n  /**\n   * Configurable image moderation label definitions for dashboard rendering\n   */\n  ai_image_label_definitions?: AIImageLabelDefinition[];\n  /**\n   * Names of Bodyguard credential profiles registered on this app. The dashboard uses this list to render the profile picker on the AI Text section.\n   */\n  available_bodyguard_profiles?: BodyguardProfileSummary[];\n  ai_audio_config?: AIAudioConfigResponse;\n  ai_image_config?: AIImageConfig;\n  /**\n   * Available L2 subclassifications per L1 image moderation label, based on the active provider\n   */\n  ai_image_subclassifications?: Record<string, string[]>;\n  ai_text_config?: AITextConfig;\n  ai_video_config?: AIVideoConfigResponse;\n  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;\n  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;\n  automod_toxicity_config?: AutomodToxicityConfig;\n  block_list_config?: BlockListConfig;\n  flood_config?: FloodConfig;\n  intent_config?: IntentConfigResponse;\n  llm_config?: LLMConfig;\n  velocity_filter_config?: VelocityFilterConfig;\n  video_call_rule_config?: VideoCallRuleConfig;\n}\n\nexport interface ConnectUserDetailsRequest {\n  id: string;\n  image?: string;\n  invisible?: boolean;\n  language?: string;\n  name?: string;\n  custom?: Record<string, any>;\n  privacy_settings?: PrivacySettingsResponse;\n}\n\nexport interface ContentCountRuleParameters {\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface ContentCustomPropertyCountParameters {\n  operator?: string;\n  property_key?: string;\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface ContentCustomPropertyParameters {\n  operator?: string;\n  property_key?: string;\n}\n\nexport interface CreateBlockListRequest {\n  /**\n   * Block list name\n   */\n  name: string;\n  /**\n   * List of words to block\n   */\n  words: string[];\n  is_confusable_folding_enabled?: boolean;\n  is_leet_check_enabled?: boolean;\n  is_plural_check_enabled?: boolean;\n  is_substring_matching_enabled?: boolean;\n  team?: string;\n  /**\n   * Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word\n   */\n  type?:\n    | 'regex'\n    | 'domain'\n    | 'domain_allowlist'\n    | 'email'\n    | 'email_allowlist'\n    | 'word';\n}\n\nexport interface CreateBlockListResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Block list contains restricted words\n   */\n  blocklist?: BlockListResponse;\n}\n\nexport interface CreateCollectionsRequest {\n  /**\n   * List of collections to create\n   */\n  collections: CollectionRequest[];\n}\n\nexport interface CreateCollectionsResponse {\n  duration: string;\n  /**\n   * List of created collections\n   */\n  collections: CollectionResponse[];\n}\n\nexport interface CreateDeviceRequest {\n  /**\n   * Device ID\n   */\n  id: string;\n  /**\n   * Push provider\n   */\n  push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';\n  /**\n   * Stable physical device identifier used to deduplicate pushes across push providers (e.g. APNs VoIP and Firebase on the same iOS device). Distinct from 'id', which is the push token.\n   */\n  hardware_id?: string;\n  /**\n   * Push provider name\n   */\n  push_provider_name?: string;\n  /**\n   * When true the token is for Apple VoIP push notifications\n   */\n  voip_token?: boolean;\n}\n\nexport interface CreateFeedsBatchRequest {\n  /**\n   * List of feeds to create\n   */\n  feeds: FeedRequest[];\n  /**\n   * If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n}\n\nexport interface CreateFeedsBatchResponse {\n  duration: string;\n  /**\n   * List of created feeds\n   */\n  feeds: FeedResponse[];\n}\n\nexport interface CreateGuestRequest {\n  /**\n   * User request object\n   */\n  user: UserRequest;\n}\n\nexport interface CreateGuestResponse {\n  /**\n   * the access token to authenticate the user\n   */\n  access_token: string;\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface CreatePollOptionRequest {\n  /**\n   * Option text\n   */\n  text: string;\n  /**\n   * Custom data for this object\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface CreatePollRequest {\n  /**\n   * The name of the poll\n   */\n  name: string;\n  /**\n   * Indicates whether users can suggest user defined answers\n   */\n  allow_answers?: boolean;\n  allow_user_suggested_options?: boolean;\n  /**\n   * A description of the poll\n   */\n  description?: string;\n  /**\n   * Indicates whether users can cast multiple votes\n   */\n  enforce_unique_vote?: boolean;\n  id?: string;\n  /**\n   * Indicates whether the poll is open for voting\n   */\n  is_closed?: boolean;\n  /**\n   * Indicates the maximum amount of votes a user can cast\n   */\n  max_votes_allowed?: number;\n  team?: string;\n  voting_visibility?: 'anonymous' | 'public';\n  options?: PollOptionInput[];\n  /**\n   * Custom data for this object\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface CreateQueueRequest {\n  name: string;\n  type: 'personal_view' | 'operational_queue';\n  description?: string;\n  sort?: Array<Record<string, any>>;\n  filters?: Record<string, any>;\n}\n\nexport interface CreateUserGroupRequest {\n  /**\n   * The user friendly name of the user group\n   */\n  name: string;\n  /**\n   * An optional description for the group\n   */\n  description?: string;\n  /**\n   * Optional user group ID. If not provided, a UUID v7 will be generated\n   */\n  id?: string;\n  /**\n   * Optional team ID to scope the group to a team\n   */\n  team_id?: string;\n  /**\n   * Optional initial list of user IDs to add as members\n   */\n  member_ids?: string[];\n}\n\nexport interface CreateUserGroupResponse {\n  duration: string;\n  user_group?: UserGroupResponse;\n}\n\nexport interface CustomActionRequestPayload {\n  /**\n   * Custom action identifier\n   */\n  id?: string;\n  /**\n   * Custom action options\n   */\n  options?: Record<string, any>;\n}\n\nexport interface Data {\n  id: string;\n}\n\nexport interface DecayFunctionConfig {\n  base?: string;\n  decay?: string;\n  direction?: string;\n  offset?: string;\n  origin?: string;\n  scale?: string;\n}\n\nexport interface DeleteActionConfigResponse {\n  /**\n   * Number of action configs deleted (0 or 1)\n   */\n  deleted: number;\n  duration: string;\n}\n\nexport interface DeleteActivitiesRequest {\n  /**\n   * List of activity IDs to delete\n   */\n  ids: string[];\n  /**\n   * Whether to also delete any notification activities created from mentions in these activities\n   */\n  delete_notification_activity?: boolean;\n  /**\n   * Whether to permanently delete the activities\n   */\n  hard_delete?: boolean;\n}\n\nexport interface DeleteActivitiesResponse {\n  duration: string;\n  /**\n   * List of activity IDs that were successfully deleted\n   */\n  deleted_ids: string[];\n}\n\nexport interface DeleteActivityReactionResponse {\n  duration: string;\n  activity: ActivityResponse;\n  reaction: FeedsReactionResponse;\n}\n\nexport interface DeleteActivityRequestPayload {\n  /**\n   * ID of the activity to delete (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity (required for delete_activity to distinguish v2 vs v3)\n   */\n  entity_type?: string;\n  /**\n   * Whether to permanently delete the activity\n   */\n  hard_delete?: boolean;\n  /**\n   * Reason for deletion\n   */\n  reason?: string;\n}\n\nexport interface DeleteActivityResponse {\n  duration: string;\n}\n\nexport interface DeleteBookmarkFolderResponse {\n  duration: string;\n}\n\nexport interface DeleteBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface DeleteCollectionsResponse {\n  duration: string;\n}\n\nexport interface DeleteCommentBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface DeleteCommentReactionResponse {\n  duration: string;\n  comment: CommentResponse;\n  reaction: FeedsReactionResponse;\n}\n\nexport interface DeleteCommentRequestPayload {\n  /**\n   * ID of the comment to delete (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity\n   */\n  entity_type?: string;\n  /**\n   * Whether to permanently delete the comment\n   */\n  hard_delete?: boolean;\n  /**\n   * Reason for deletion\n   */\n  reason?: string;\n}\n\nexport interface DeleteCommentResponse {\n  duration: string;\n  activity: ActivityResponse;\n  comment: CommentResponse;\n}\n\nexport interface DeleteFeedResponse {\n  duration: string;\n  /**\n   * The ID of the async task that will handle feed cleanup and hard deletion\n   */\n  task_id: string;\n}\n\nexport interface DeleteMessageRequestPayload {\n  /**\n   * ID of the message to delete (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity\n   */\n  entity_type?: string;\n  /**\n   * Whether to permanently delete the message\n   */\n  hard_delete?: boolean;\n  /**\n   * Reason for deletion\n   */\n  reason?: string;\n}\n\nexport interface DeleteModerationConfigResponse {\n  duration: string;\n}\n\nexport interface DeleteQueueRequest {}\n\nexport interface DeleteReactionRequestPayload {\n  /**\n   * ID of the reaction to delete (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity\n   */\n  entity_type?: string;\n  /**\n   * Whether to permanently delete the reaction\n   */\n  hard_delete?: boolean;\n  /**\n   * Reason for deletion\n   */\n  reason?: string;\n}\n\nexport interface DeleteScheduledActivityResponse {\n  duration: string;\n}\n\nexport interface DeleteUserInterestsResponse {\n  duration: string;\n  /**\n   * Interest tags still set on the user\n   */\n  interests: InterestTagResponse[];\n}\n\nexport interface DeleteUserMessagesRequestPayload {\n  /**\n   * Message deletion mode: soft, pruning, or hard\n   */\n  delete_messages: 'soft' | 'pruning' | 'hard';\n  /**\n   * Optional: scope deletion to a single channel (alternative to app-wide deletion)\n   */\n  channel_cid?: string;\n  /**\n   * Whether to also delete the user's reactions on other users' messages\n   */\n  delete_reactions?: boolean;\n  /**\n   * ID of the user whose messages should be deleted (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity\n   */\n  entity_type?: string;\n  /**\n   * Reason for the deletion\n   */\n  reason?: string;\n}\n\nexport interface DeleteUserRequestPayload {\n  /**\n   * Also delete all user conversations\n   */\n  delete_conversation_channels?: boolean;\n  /**\n   * Delete flagged feeds content\n   */\n  delete_feeds_content?: boolean;\n  /**\n   * ID of the user to delete (alternative to item_id)\n   */\n  entity_id?: string;\n  /**\n   * Type of the entity\n   */\n  entity_type?: string;\n  /**\n   * Whether to permanently delete the user\n   */\n  hard_delete?: boolean;\n  /**\n   * Also delete all user messages\n   */\n  mark_messages_deleted?: boolean;\n  /**\n   * Reason for deletion\n   */\n  reason?: string;\n}\n\nexport interface DeliveryReceiptsResponse {\n  enabled: boolean;\n}\n\nexport interface DeviceResponse {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Device ID\n   */\n  id: string;\n  /**\n   * Push provider\n   */\n  push_provider: string;\n  /**\n   * User ID\n   */\n  user_id: string;\n  /**\n   * Whether device is disabled or not\n   */\n  disabled?: boolean;\n  /**\n   * Reason explaining why device had been disabled\n   */\n  disabled_reason?: string;\n  /**\n   * Stable physical device identifier used to deduplicate pushes across push providers\n   */\n  hardware_id?: string;\n  /**\n   * Push provider name\n   */\n  push_provider_name?: string;\n  /**\n   * When true the token is for Apple VoIP push notifications\n   */\n  voip?: boolean;\n}\n\nexport interface DraftPayloadResponse {\n  /**\n   * Message ID is unique string identifier of the message\n   */\n  id: string;\n  /**\n   * Text of the message\n   */\n  text: string;\n  custom: Record<string, any>;\n  /**\n   * Contains HTML markup of the message\n   */\n  html?: string;\n  /**\n   * MML content of the message\n   */\n  mml?: string;\n  /**\n   * ID of parent message (thread)\n   */\n  parent_id?: string;\n  /**\n   * Identifier of the poll to include in the message\n   */\n  poll_id?: string;\n  quoted_message_id?: string;\n  /**\n   * Whether thread reply should be shown in the channel as well\n   */\n  show_in_channel?: boolean;\n  /**\n   * Whether message is silent or not\n   */\n  silent?: boolean;\n  /**\n   * Contains type of the message. One of: regular, system\n   */\n  type?: string;\n  /**\n   * Array of message attachments\n   */\n  attachments?: Attachment[];\n  /**\n   * List of mentioned users\n   */\n  mentioned_users?: UserResponse[];\n}\n\nexport interface DraftResponse {\n  channel_cid: string;\n  created_at: Date;\n  /**\n   * Contains the draft message content\n   */\n  message: DraftPayloadResponse;\n  parent_id?: string;\n  /**\n   * Represents channel in chat\n   */\n  channel?: ChannelResponse;\n  /**\n   * Represents any chat message\n   */\n  parent_message?: MessageResponse;\n  /**\n   * Represents any chat message\n   */\n  quoted_message?: MessageResponse;\n}\n\nexport interface EnrichedActivity {\n  foreign_id?: string;\n  id?: string;\n  score?: number;\n  verb?: string;\n  to?: string[];\n  actor?: Data;\n  latest_reactions?: Record<string, EnrichedReaction[]>;\n  object?: Data;\n  origin?: Data;\n  own_reactions?: Record<string, EnrichedReaction[]>;\n  reaction_counts?: Record<string, number>;\n  target?: Data;\n}\n\nexport interface EnrichedCollectionResponse {\n  /**\n   * Unique identifier for the collection within its name\n   */\n  id: string;\n  /**\n   * Name/type of the collection\n   */\n  name: string;\n  /**\n   * Enrichment status of the collection. One of: ok, notfound\n   */\n  status: 'ok' | 'notfound';\n  /**\n   * When the collection was created\n   */\n  created_at?: Date;\n  /**\n   * When the collection was last updated\n   */\n  updated_at?: Date;\n  /**\n   * ID of the user who owns this collection\n   */\n  user_id?: string;\n  /**\n   * Custom data for the collection\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface EnrichedReaction {\n  activity_id: string;\n  kind: string;\n  user_id: string;\n  id?: string;\n  parent?: string;\n  target_feeds?: string[];\n  children_counts?: Record<string, number>;\n  created_at?: Time;\n  data?: Record<string, any>;\n  latest_children?: Record<string, EnrichedReaction[]>;\n  own_children?: Record<string, EnrichedReaction[]>;\n  updated_at?: Time;\n  user?: Data;\n}\n\nexport interface EnrichmentOptions {\n  /**\n   * Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds).\n   */\n  enrich_own_followings?: boolean;\n  /**\n   * Controls the top-level flat 'activities' array for aggregated feeds. For new apps, defaults to false (excluded); set to true to include. For older apps, defaults to true (included) for backward compatibility; set to false to exclude.\n   */\n  include_flat_activities?: boolean;\n  /**\n   * Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.\n   */\n  include_score_vars?: boolean;\n  /**\n   * Default: false. When true, skips all activity enrichments.\n   */\n  skip_activity?: boolean;\n  /**\n   * Default: false. When true, skips enriching collections on activities.\n   */\n  skip_activity_collections?: boolean;\n  /**\n   * Default: false. When true, skips enriching comments on activities.\n   */\n  skip_activity_comments?: boolean;\n  /**\n   * Default: false. When true, skips enriching current_feed on activities. Note: CurrentFeed is still computed for permission checks, but enrichment is skipped.\n   */\n  skip_activity_current_feed?: boolean;\n  /**\n   * Default: false. When true, skips enriching mentioned users on activities.\n   */\n  skip_activity_mentioned_users?: boolean;\n  /**\n   * Default: false. When true, skips enriching own bookmarks on activities.\n   */\n  skip_activity_own_bookmarks?: boolean;\n  /**\n   * Default: false. When true, skips enriching parent activities.\n   */\n  skip_activity_parents?: boolean;\n  /**\n   * Default: false. When true, skips enriching poll data on activities.\n   */\n  skip_activity_poll?: boolean;\n  /**\n   * Default: false. When true, skips fetching and enriching latest and own reactions on activities. Note: If reactions are already denormalized in the database, they will still be included.\n   */\n  skip_activity_reactions?: boolean;\n  /**\n   * Default: false. When true, skips refreshing image URLs on activities.\n   */\n  skip_activity_refresh_image_urls?: boolean;\n  /**\n   * Default: false. When true, skips all enrichments.\n   */\n  skip_all?: boolean;\n  /**\n   * Default: false. When true, skips enriching user data on feed members.\n   */\n  skip_feed_member_user?: boolean;\n  /**\n   * Default: false. When true, skips fetching and enriching followers. Note: If followers_pagination is explicitly provided, followers will be fetched regardless of this setting.\n   */\n  skip_followers?: boolean;\n  /**\n   * Default: false. When true, skips fetching and enriching following. Note: If following_pagination is explicitly provided, following will be fetched regardless of this setting.\n   */\n  skip_following?: boolean;\n  /**\n   * Default: false. When true, skips computing and including capabilities for feeds.\n   */\n  skip_own_capabilities?: boolean;\n  /**\n   * Default: false. When true, skips fetching and enriching own_follows (follows where user's feeds follow target feeds).\n   */\n  skip_own_follows?: boolean;\n  /**\n   * Default: false. When true, skips enriching pinned activities.\n   */\n  skip_pins?: boolean;\n}\n\nexport interface EntityCreatorResponse {\n  /**\n   * Number of minor actions performed on the user\n   */\n  ban_count: number;\n  banned: boolean;\n  created_at: Date;\n  /**\n   * Number of major actions performed on the user\n   */\n  deleted_content_count: number;\n  /**\n   * Number of flag actions performed on the user\n   */\n  flagged_count: number;\n  id: string;\n  language: string;\n  online: boolean;\n  role: string;\n  updated_at: Date;\n  blocked_user_ids: string[];\n  teams: string[];\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  deactivated_at?: Date;\n  deleted_at?: Date;\n  image?: string;\n  last_active?: Date;\n  name?: string;\n  revoke_tokens_issued_before?: Date;\n  teams_role?: Record<string, string>;\n}\n\nexport interface EscalatePayload {\n  /**\n   * Additional context for the reviewer\n   */\n  notes?: string;\n  /**\n   * Priority of the escalation (low, medium, high)\n   */\n  priority?: string;\n  /**\n   * Reason for the escalation (from configured escalation_reasons)\n   */\n  reason?: string;\n}\n\nexport interface EscalationMetadata {\n  notes?: string;\n  priority?: string;\n  reason?: string;\n}\n\nexport interface FeedCreatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  members: FeedMemberResponse[];\n  custom: Record<string, any>;\n  feed: FeedResponse;\n  user: UserResponseCommonFields;\n  /**\n   * The type of event: \"feeds.feed.created\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FeedDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.feed.deleted\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface FeedGroup {\n  aggregation_version: number;\n  app_pk: number;\n  created_at: Date;\n  default_follower_role: string;\n  default_visibility: string;\n  group_id: string;\n  updated_at: Date;\n  activity_processors: ActivityProcessorConfig[];\n  activity_selectors: ActivitySelectorConfig[];\n  custom: Record<string, any>;\n  deleted_at?: Date;\n  last_feed_get_at?: Date;\n  activity_filter?: ActivityFilterConfig;\n  aggregation?: AggregationConfig;\n  notification?: NotificationConfig;\n  push_notification?: PushNotificationConfig;\n  ranking?: RankingConfig;\n  stories?: StoriesConfig;\n}\n\nexport interface FeedGroupChangedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.feed_group.changed\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  feed_group?: FeedGroup;\n  user?: UserResponseCommonFields;\n}\n\nexport interface FeedGroupDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  /**\n   * The ID of the feed group that was deleted\n   */\n  group_id: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.feed_group.deleted\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FeedGroupRestoredEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  /**\n   * The ID of the feed group that was restored\n   */\n  group_id: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.feed_group.restored\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FeedInput {\n  description?: string;\n  name?: string;\n  visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';\n  filter_tags?: string[];\n  members?: FeedMemberRequest[];\n  custom?: Record<string, any>;\n  location?: Location;\n}\n\nexport interface FeedMemberAddedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  member: FeedMemberResponse;\n  /**\n   * The type of event: \"feeds.feed_member.added\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface FeedMemberRemovedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  member_id: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.feed_member.removed\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface FeedMemberRequest {\n  /**\n   * ID of the user to add as a member\n   */\n  user_id: string;\n  /**\n   * Whether this is an invite to become a member\n   */\n  invite?: boolean;\n  /**\n   * ID of the membership level to assign to the member\n   */\n  membership_level?: string;\n  /**\n   * Role of the member in the feed\n   */\n  role?: string;\n  /**\n   * Custom data for the member\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface FeedMemberResponse {\n  /**\n   * When the membership was created\n   */\n  created_at: Date;\n  /**\n   * Role of the member in the feed\n   */\n  role: string;\n  /**\n   * Status of the membership. One of: member, pending, rejected\n   */\n  status: 'member' | 'pending' | 'rejected';\n  /**\n   * When the membership was last updated\n   */\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  /**\n   * When the invite was accepted\n   */\n  invite_accepted_at?: Date;\n  /**\n   * When the invite was rejected\n   */\n  invite_rejected_at?: Date;\n  /**\n   * Custom data for the membership\n   */\n  custom?: Record<string, any>;\n  membership_level?: MembershipLevelResponse;\n}\n\nexport interface FeedMemberUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  member: FeedMemberResponse;\n  /**\n   * The type of event: \"feeds.feed_member.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport const FeedOwnCapability = {\n  ADD_ACTIVITY: 'add-activity',\n  ADD_ACTIVITY_BOOKMARK: 'add-activity-bookmark',\n  ADD_ACTIVITY_REACTION: 'add-activity-reaction',\n  ADD_COMMENT: 'add-comment',\n  ADD_COMMENT_REACTION: 'add-comment-reaction',\n  CREATE_FEED: 'create-feed',\n  DELETE_ANY_ACTIVITY: 'delete-any-activity',\n  DELETE_ANY_COMMENT: 'delete-any-comment',\n  DELETE_FEED: 'delete-feed',\n  DELETE_OWN_ACTIVITY: 'delete-own-activity',\n  DELETE_OWN_ACTIVITY_BOOKMARK: 'delete-own-activity-bookmark',\n  DELETE_OWN_ACTIVITY_REACTION: 'delete-own-activity-reaction',\n  DELETE_OWN_COMMENT: 'delete-own-comment',\n  DELETE_OWN_COMMENT_REACTION: 'delete-own-comment-reaction',\n  FOLLOW: 'follow',\n  PIN_ACTIVITY: 'pin-activity',\n  QUERY_FEED_MEMBERS: 'query-feed-members',\n  QUERY_FOLLOWS: 'query-follows',\n  READ_ACTIVITIES: 'read-activities',\n  READ_FEED: 'read-feed',\n  UNFOLLOW: 'unfollow',\n  UPDATE_ANY_ACTIVITY: 'update-any-activity',\n  UPDATE_ANY_COMMENT: 'update-any-comment',\n  UPDATE_FEED: 'update-feed',\n  UPDATE_FEED_FOLLOWERS: 'update-feed-followers',\n  UPDATE_FEED_MEMBERS: 'update-feed-members',\n  UPDATE_OWN_ACTIVITY: 'update-own-activity',\n  UPDATE_OWN_ACTIVITY_BOOKMARK: 'update-own-activity-bookmark',\n  UPDATE_OWN_COMMENT: 'update-own-comment',\n} as const;\n\nexport type FeedOwnCapability =\n  (typeof FeedOwnCapability)[keyof typeof FeedOwnCapability];\n\nexport interface FeedOwnData {\n  /**\n   * Capabilities the current user has for this feed\n   */\n  own_capabilities?: FeedOwnCapability[];\n  /**\n   * Follow relationships where the feed owner's feeds are following the current user's feeds (up to 5 total)\n   */\n  own_followings?: FollowResponse[];\n  /**\n   * Follow relationships where the current user's feeds are following this feed\n   */\n  own_follows?: FollowResponse[];\n  own_membership?: FeedMemberResponse;\n}\n\nexport interface FeedRequest {\n  /**\n   * ID of the feed group\n   */\n  feed_group_id: string;\n  /**\n   * ID of the feed\n   */\n  feed_id: string;\n  /**\n   * ID of the feed creator\n   */\n  created_by_id?: string;\n  /**\n   * Description of the feed\n   */\n  description?: string;\n  /**\n   * Name of the feed\n   */\n  name?: string;\n  /**\n   * Visibility setting for the feed. One of: public, visible, followers, members, private\n   */\n  visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';\n  /**\n   * Tags used for filtering feeds\n   */\n  filter_tags?: string[];\n  /**\n   * Initial members for the feed\n   */\n  members?: FeedMemberRequest[];\n  /**\n   * Custom data for the feed\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n}\n\nexport interface FeedResponse {\n  activity_count: number;\n  /**\n   * When the feed was created\n   */\n  created_at: Date;\n  /**\n   * Description of the feed\n   */\n  description: string;\n  /**\n   * Fully qualified feed ID (group_id:id)\n   */\n  feed: string;\n  /**\n   * Number of followers of this feed\n   */\n  follower_count: number;\n  /**\n   * Number of feeds this feed follows\n   */\n  following_count: number;\n  /**\n   * Group this feed belongs to\n   */\n  group_id: string;\n  /**\n   * Unique identifier for the feed\n   */\n  id: string;\n  /**\n   * Number of members in this feed\n   */\n  member_count: number;\n  /**\n   * Name of the feed\n   */\n  name: string;\n  /**\n   * Number of pinned activities in this feed\n   */\n  pin_count: number;\n  /**\n   * When the feed was last updated\n   */\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  created_by: UserResponse;\n  /**\n   * When the feed was deleted\n   */\n  deleted_at?: Date;\n  /**\n   * Visibility setting for the feed\n   */\n  visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';\n  /**\n   * Tags used for filtering feeds\n   */\n  filter_tags?: string[];\n  /**\n   * Capabilities the current user has for this feed\n   */\n  own_capabilities?: FeedOwnCapability[];\n  /**\n   * Follow relationships where the feed owner’s feeds are following the current user's feeds\n   */\n  own_followings?: FollowResponse[];\n  /**\n   * Follow relationships where the current user's feeds are following this feed\n   */\n  own_follows?: FollowResponse[];\n  /**\n   * Custom data for the feed\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  own_membership?: FeedMemberResponse;\n}\n\nexport interface FeedSuggestionResponse {\n  activity_count: number;\n  /**\n   * When the feed was created\n   */\n  created_at: Date;\n  /**\n   * Description of the feed\n   */\n  description: string;\n  /**\n   * Fully qualified feed ID (group_id:id)\n   */\n  feed: string;\n  /**\n   * Number of followers of this feed\n   */\n  follower_count: number;\n  /**\n   * Number of feeds this feed follows\n   */\n  following_count: number;\n  /**\n   * Group this feed belongs to\n   */\n  group_id: string;\n  /**\n   * Unique identifier for the feed\n   */\n  id: string;\n  /**\n   * Number of members in this feed\n   */\n  member_count: number;\n  /**\n   * Name of the feed\n   */\n  name: string;\n  /**\n   * Number of pinned activities in this feed\n   */\n  pin_count: number;\n  /**\n   * When the feed was last updated\n   */\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  created_by: UserResponse;\n  /**\n   * When the feed was deleted\n   */\n  deleted_at?: Date;\n  reason?: string;\n  recommendation_score?: number;\n  /**\n   * Visibility setting for the feed\n   */\n  visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';\n  /**\n   * Tags used for filtering feeds\n   */\n  filter_tags?: string[];\n  /**\n   * Capabilities the current user has for this feed\n   */\n  own_capabilities?: FeedOwnCapability[];\n  /**\n   * Follow relationships where the feed owner’s feeds are following the current user's feeds\n   */\n  own_followings?: FollowResponse[];\n  /**\n   * Follow relationships where the current user's feeds are following this feed\n   */\n  own_follows?: FollowResponse[];\n  algorithm_scores?: Record<string, number>;\n  /**\n   * Custom data for the feed\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  own_membership?: FeedMemberResponse;\n}\n\nexport interface FeedUpdatedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  feed: FeedResponse;\n  /**\n   * The type of event: \"feeds.feed.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface FeedsActivityLocation {\n  lat: number;\n  lng: number;\n}\n\nexport interface FeedsBookmarkResponse {\n  created_at: Date;\n  object_id: string;\n  object_type: string;\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  activity_id?: string;\n  custom?: Record<string, any>;\n}\n\nexport interface FeedsEnrichedCollectionResponse {\n  created_at: Date;\n  id: string;\n  name: string;\n  status: string;\n  updated_at: Date;\n  user_id: string;\n  custom: Record<string, any>;\n}\n\nexport interface FeedsFeedResponse {\n  activity_count: number;\n  created_at: Date;\n  description: string;\n  feed: string;\n  follower_count: number;\n  following_count: number;\n  group_id: string;\n  id: string;\n  member_count: number;\n  name: string;\n  pin_count: number;\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  created_by: UserResponse;\n  deleted_at?: Date;\n  visibility?: string;\n  filter_tags?: string[];\n  custom?: Record<string, any>;\n  location?: FeedsActivityLocation;\n}\n\nexport interface FeedsNotificationComment {\n  comment: string;\n  id: string;\n  user_id: string;\n  attachments?: Attachment[];\n}\n\nexport interface FeedsNotificationContext {\n  target?: FeedsNotificationTarget;\n  trigger?: FeedsNotificationTrigger;\n}\n\nexport interface FeedsNotificationParentActivity {\n  id: string;\n  text?: string;\n  type?: string;\n  user_id?: string;\n  attachments?: Attachment[];\n}\n\nexport interface FeedsNotificationTarget {\n  id: string;\n  name?: string;\n  text?: string;\n  type?: string;\n  user_id?: string;\n  attachments?: Attachment[];\n  comment?: FeedsNotificationComment;\n  custom?: Record<string, any>;\n  parent_activity?: FeedsNotificationParentActivity;\n}\n\nexport interface FeedsNotificationTrigger {\n  text: string;\n  type: string;\n  comment?: FeedsNotificationComment;\n  custom?: Record<string, any>;\n}\n\nexport interface FeedsPreferences {\n  /**\n   * Push notification preference for comments on user's activities. One of: all, none\n   */\n  comment?: 'all' | 'none';\n  /**\n   * Push notification preference for mentions in comments. One of: all, none\n   */\n  comment_mention?: 'all' | 'none';\n  /**\n   * Push notification preference for reactions on comments. One of: all, none\n   */\n  comment_reaction?: 'all' | 'none';\n  /**\n   * Push notification preference for replies to comments. One of: all, none\n   */\n  comment_reply?: 'all' | 'none';\n  /**\n   * Push notification preference for new followers. One of: all, none\n   */\n  follow?: 'all' | 'none';\n  /**\n   * Push notification preference for mentions in activities. One of: all, none\n   */\n  mention?: 'all' | 'none';\n  /**\n   * Push notification preference for reactions on user's activities or comments. One of: all, none\n   */\n  reaction?: 'all' | 'none';\n  /**\n   * Push notification preferences for custom activity types. Map of activity type to preference (all or none)\n   */\n  custom_activity_types?: Record<string, string>;\n}\n\nexport interface FeedsPreferencesResponse {\n  comment?: string;\n  comment_mention?: string;\n  comment_reaction?: string;\n  comment_reply?: string;\n  follow?: string;\n  mention?: string;\n  reaction?: string;\n  custom_activity_types?: Record<string, string>;\n}\n\nexport interface FeedsReactionGroupResponse {\n  count: number;\n  first_reaction_at: Date;\n  last_reaction_at: Date;\n}\n\nexport interface FeedsReactionResponse {\n  activity_id: string;\n  created_at: Date;\n  type: string;\n  updated_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  comment_id?: string;\n  custom?: Record<string, any>;\n}\n\nexport interface FeedsShareResponse {\n  activity_id: string;\n  created_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface FeedsV3ActivityResponse {\n  bookmark_count: number;\n  comment_count: number;\n  created_at: Date;\n  hidden: boolean;\n  id: string;\n  popularity: number;\n  preview: boolean;\n  reaction_count: number;\n  restrict_replies: string;\n  score: number;\n  share_count: number;\n  type: string;\n  updated_at: Date;\n  visibility: string;\n  attachments: Attachment[];\n  comments: FeedsV3CommentResponse[];\n  feeds: string[];\n  filter_tags: string[];\n  interest_tags: string[];\n  latest_reactions: FeedsReactionResponse[];\n  mentioned_users: UserResponse[];\n  own_bookmarks: FeedsBookmarkResponse[];\n  own_reactions: FeedsReactionResponse[];\n  collections: Record<string, FeedsEnrichedCollectionResponse>;\n  custom: Record<string, any>;\n  reaction_groups: Record<string, FeedsReactionGroupResponse>;\n  search_data: Record<string, any>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  deleted_at?: Date;\n  edited_at?: Date;\n  expires_at?: Date;\n  friend_reaction_count?: number;\n  is_read?: boolean;\n  is_seen?: boolean;\n  is_watched?: boolean;\n  moderation_action?: string;\n  selector_source?: string;\n  text?: string;\n  visibility_tag?: string;\n  friend_reactions?: FeedsReactionResponse[];\n  latest_shares?: FeedsShareResponse[];\n  current_feed?: FeedsFeedResponse;\n  i18n?: Record<string, string>;\n  location?: FeedsActivityLocation;\n  metrics?: Record<string, number>;\n  moderation?: ModerationV2Response;\n  notification_context?: FeedsNotificationContext;\n  parent?: FeedsV3ActivityResponse;\n  poll?: PollResponseData;\n  score_vars?: Record<string, any>;\n}\n\nexport interface FeedsV3CommentResponse {\n  bookmark_count: number;\n  confidence_score: number;\n  created_at: Date;\n  downvote_count: number;\n  id: string;\n  object_id: string;\n  object_type: string;\n  reaction_count: number;\n  reply_count: number;\n  score: number;\n  status: string;\n  updated_at: Date;\n  upvote_count: number;\n  mentioned_users: UserResponse[];\n  own_reactions: FeedsReactionResponse[];\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  controversy_score?: number;\n  deleted_at?: Date;\n  edited_at?: Date;\n  parent_id?: string;\n  text?: string;\n  attachments?: Attachment[];\n  latest_reactions?: FeedsReactionResponse[];\n  custom?: Record<string, any>;\n  i18n?: Record<string, string>;\n  moderation?: ModerationV2Response;\n  reaction_groups?: Record<string, FeedsReactionGroupResponse>;\n}\n\nexport interface Field {\n  short: boolean;\n  title: string;\n  value: string;\n}\n\nexport interface FileUploadConfig {\n  size_limit: number;\n  allowed_file_extensions: string[];\n  allowed_mime_types: string[];\n  blocked_file_extensions: string[];\n  blocked_mime_types: string[];\n}\n\nexport interface FileUploadRequest {\n  /**\n   * file field\n   */\n  file?: string;\n  user?: OnlyUserID;\n}\n\nexport interface FileUploadResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * URL to the uploaded asset. Should be used to put to `asset_url` attachment field\n   */\n  file?: string;\n  /**\n   * URL of the file thumbnail for supported file formats. Should be put to `thumb_url` attachment field\n   */\n  thumb_url?: string;\n}\n\nexport interface FilterConfigResponse {\n  /**\n   * LLM moderation labels available as filter values\n   */\n  llm_labels: string[];\n  /**\n   * AI image moderation labels available as filter values. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard L1 label set.\n   */\n  ai_image_labels?: string[];\n  /**\n   * AI text moderation labels available as filter values\n   */\n  ai_text_labels?: string[];\n  /**\n   * Moderation config keys present in the queue, available as filter values\n   */\n  config_keys?: string[];\n  /**\n   * The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list.\n   */\n  filterable_custom_keys?: string[];\n  /**\n   * Names of the app's moderation rules, available as filter values on the `label` field when filtering rule-flagged content. Includes disabled rules, since items flagged before a rule was turned off still carry its name; excludes deleted ones. Scoped to the caller's teams on a multi-tenant app. Capped at 30 names, ordered by name, so an app above that cap is listed partially.\n   */\n  rule_names?: string[];\n  /**\n   * AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers.\n   */\n  ai_image_taxonomy?: Record<string, string[]>;\n}\n\nexport interface FlagCountRuleParameters {\n  threshold?: number;\n}\n\nexport interface FlagItemResponse {\n  duration: string;\n  /**\n   * Unique identifier of the created moderation item\n   */\n  item_id: string;\n}\n\nexport interface FlagRequest {\n  /**\n   * Unique identifier of the entity being flagged\n   */\n  entity_id: string;\n  /**\n   * Type of entity being flagged (e.g., message, user)\n   */\n  entity_type: string;\n  /**\n   * ID of the user who created the flagged entity\n   */\n  entity_creator_id?: string;\n  /**\n   * Optional explanation for why the content is being flagged\n   */\n  reason?: string;\n  /**\n   * Additional metadata about the flag\n   */\n  custom?: Record<string, any>;\n  moderation_payload?: ModerationPayload;\n}\n\nexport interface FlagUserOptions {\n  reason?: string;\n}\n\nexport interface FloodConfig {\n  allowlist?: string[];\n  identical?: FloodIdenticalConfig;\n  similar?: FloodSimilarConfig;\n}\n\nexport interface FloodIdenticalConfig {\n  action: string;\n  enabled: boolean;\n  threshold: number;\n  time_window: string;\n}\n\nexport interface FloodIdenticalRuleParameters {\n  min_text_length?: number;\n  threshold?: number;\n  time_window?: string;\n  track_across_users?: boolean;\n  allowlist?: string[];\n}\n\nexport interface FloodSimilarConfig {\n  action: string;\n  enabled: boolean;\n  similarity_distance: number;\n  threshold: number;\n  time_window: string;\n}\n\nexport interface FloodSimilarRuleParameters {\n  min_text_length?: number;\n  similarity_distance?: number;\n  threshold?: number;\n  time_window?: string;\n  allowlist?: string[];\n}\n\nexport interface FollowBatchRequest {\n  /**\n   * List of follow relationships to create\n   */\n  follows: FollowRequest[];\n  /**\n   * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n}\n\nexport interface FollowBatchResponse {\n  duration: string;\n  /**\n   * List of newly created follow relationships\n   */\n  created: FollowResponse[];\n  /**\n   * List of current follow relationships\n   */\n  follows: FollowResponse[];\n}\n\nexport interface FollowCreatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  follow: FollowResponse;\n  /**\n   * The type of event: \"feeds.follow.created\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FollowDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  follow: FollowResponse;\n  /**\n   * The type of event: \"feeds.follow.deleted\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FollowRequest {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n  /**\n   * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.\n   */\n  activity_copy_limit?: number;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create a notification activity for this follow\n   */\n  create_notification_activity?: boolean;\n  /**\n   * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * Push preference for the follow relationship\n   */\n  push_preference?: 'all' | 'none';\n  /**\n   * Whether to skip push for this follow\n   */\n  skip_push?: boolean;\n  /**\n   * Custom data for the follow relationship\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface FollowResponse {\n  /**\n   * When the follow relationship was created\n   */\n  created_at: Date;\n  /**\n   * Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.\n   */\n  follower_role: string;\n  /**\n   * Push preference for notifications. One of: all, none\n   */\n  push_preference: 'all' | 'none';\n  /**\n   * Status of the follow relationship. One of: accepted, pending, rejected\n   */\n  status: 'accepted' | 'pending' | 'rejected';\n  /**\n   * When the follow relationship was last updated\n   */\n  updated_at: Date;\n  source_feed: FeedResponse;\n  target_feed: FeedResponse;\n  /**\n   * When the follow request was accepted\n   */\n  request_accepted_at?: Date;\n  /**\n   * When the follow request was rejected\n   */\n  request_rejected_at?: Date;\n  /**\n   * Custom data for the follow relationship\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface FollowUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  follow: FollowResponse;\n  /**\n   * The type of event: \"feeds.follow.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface FriendReactionsOptions {\n  /**\n   * Default: false. When true, fetches friend reactions for activities.\n   */\n  enabled?: boolean;\n  /**\n   * Default: 3, Max: 10. The maximum number of friend reactions to return per activity.\n   */\n  limit?: number;\n  /**\n   * Default: 'following'. The type of friend relationship to use. 'following' = users you follow, 'mutual' = users with mutual follows. One of: following, mutual\n   */\n  type?: 'following' | 'mutual';\n}\n\nexport interface FullUserResponse {\n  banned: boolean;\n  created_at: Date;\n  id: string;\n  invisible: boolean;\n  language: string;\n  online: boolean;\n  role: string;\n  shadow_banned: boolean;\n  total_unread_count: number;\n  unread_channels: number;\n  /**\n   * @deprecated\n   * Deprecated: Use total_unread_count instead.\n   */\n  unread_count: number;\n  unread_threads: number;\n  updated_at: Date;\n  blocked_user_ids: string[];\n  channel_mutes: ChannelMute[];\n  devices: DeviceResponse[];\n  mutes: UserMuteResponse[];\n  teams: string[];\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  ban_expires?: Date;\n  deactivated_at?: Date;\n  deleted_at?: Date;\n  image?: string;\n  last_active?: Date;\n  name?: string;\n  revoke_tokens_issued_before?: Date;\n  latest_hidden_channels?: string[];\n  privacy_settings?: PrivacySettingsResponse;\n  teams_role?: Record<string, string>;\n}\n\nexport interface GetActionConfigResponse {\n  duration: string;\n  /**\n   * Moderation action configs grouped by entity type, sorted by order ascending\n   */\n  action_config: Record<string, ModerationActionConfigResponse[]>;\n}\n\nexport interface GetActivityResponse {\n  duration: string;\n  activity: ActivityResponse;\n}\n\nexport interface GetAppealResponse {\n  duration: string;\n  item?: AppealItemResponse;\n}\n\nexport interface GetApplicationResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  app: AppResponseFields;\n}\n\nexport interface GetBlockedUsersResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Array of blocked user object\n   */\n  blocks: BlockedUserResponse[];\n}\n\nexport interface GetCommentRepliesResponse {\n  duration: string;\n  /**\n   * Sort order used for the replies (first, last, top, best, controversial)\n   */\n  sort: string;\n  /**\n   * Threaded listing of replies to the comment\n   */\n  comments: ThreadedCommentResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface GetCommentResponse {\n  duration: string;\n  comment: CommentResponse;\n}\n\nexport interface GetCommentsResponse {\n  /**\n   * Total number of comments on the object, including replies at every depth\n   */\n  comment_count: number;\n  duration: string;\n  /**\n   * Sort order used for the comments (first, last, top, best, controversial)\n   */\n  sort: string;\n  /**\n   * Threaded listing for the activity\n   */\n  comments: ThreadedCommentResponse[];\n  next?: string;\n  prev?: string;\n  /**\n   * Number of comments directly on the object, excluding replies. Independent of depth, replies_limit and id_around, and not adjusted per viewer. Only present when include_top_level_comment_count is set\n   */\n  top_level_comment_count?: number;\n}\n\nexport interface GetConfigResponse {\n  duration: string;\n  config?: ConfigResponse;\n}\n\nexport interface GetFeedCountsResponse {\n  /**\n   * Number of activities in the feed\n   */\n  activity_count: number;\n  /**\n   * Total number of comments on those activities, including nested replies\n   */\n  comment_count: number;\n  duration: string;\n  /**\n   * Sum of activity_count and comment_count\n   */\n  total_count: number;\n}\n\nexport interface GetFollowSuggestionsResponse {\n  duration: string;\n  /**\n   * List of suggested feeds to follow\n   */\n  suggestions: FeedSuggestionResponse[];\n  algorithm_used?: string;\n}\n\nexport interface GetNotificationStatusResponse {\n  duration: string;\n  /**\n   * Number of unread activities or groups\n   */\n  unread: number;\n  /**\n   * Number of unseen activities or groups\n   */\n  unseen: number;\n  /**\n   * When the feed was last marked read\n   */\n  last_read_at?: Date;\n  /**\n   * When the feed was last marked seen\n   */\n  last_seen_at?: Date;\n}\n\nexport interface GetOGResponse {\n  duration: string;\n  custom: Record<string, any>;\n  /**\n   * URL of detected video or audio\n   */\n  asset_url?: string;\n  author_icon?: string;\n  /**\n   * og:site\n   */\n  author_link?: string;\n  /**\n   * og:site_name\n   */\n  author_name?: string;\n  color?: string;\n  fallback?: string;\n  footer?: string;\n  footer_icon?: string;\n  /**\n   * URL of detected image\n   */\n  image_url?: string;\n  /**\n   * extracted url from the text\n   */\n  og_scrape_url?: string;\n  original_height?: number;\n  original_width?: number;\n  pretext?: string;\n  /**\n   * og:description\n   */\n  text?: string;\n  /**\n   * URL of detected thumb image\n   */\n  thumb_url?: string;\n  /**\n   * og:title\n   */\n  title?: string;\n  /**\n   * og:url\n   */\n  title_link?: string;\n  /**\n   * Attachment type, could be empty, image, audio or video\n   */\n  type?: string;\n  actions?: Action[];\n  fields?: Field[];\n  giphy?: Images;\n}\n\nexport interface GetOrCreateFeedRequest {\n  id_around?: string;\n  limit?: number;\n  next?: string;\n  overwrite_interest_weights?: boolean;\n  prev?: string;\n  view?: string;\n  watch?: boolean;\n  data?: FeedInput;\n  /**\n   * Options to skip specific enrichments to improve performance. Default is false (enrichments are included). Setting a field to true skips that enrichment.\n   */\n  enrichment_options?: EnrichmentOptions;\n  external_ranking?: Record<string, any>;\n  filter?: Record<string, any>;\n  followers_pagination?: PagerRequest;\n  following_pagination?: PagerRequest;\n  /**\n   * Options to control fetching reactions from friends (users you follow or have mutual follows with).\n   */\n  friend_reactions_options?: FriendReactionsOptions;\n  interest_weights?: Record<string, number>;\n  member_pagination?: PagerRequest;\n}\n\nexport interface GetOrCreateFeedResponse {\n  created: boolean;\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  activities: ActivityResponse[];\n  aggregated_activities: AggregatedActivityResponse[];\n  followers: FollowResponse[];\n  following: FollowResponse[];\n  members: FeedMemberResponse[];\n  pinned_activities: ActivityPinResponse[];\n  feed: FeedResponse;\n  next?: string;\n  prev?: string;\n  followers_pagination?: PagerResponse;\n  following_pagination?: PagerResponse;\n  member_pagination?: PagerResponse;\n  notification_status?: NotificationStatusResponse;\n}\n\nexport interface GetOrCreateFollowResponse {\n  /**\n   * True if the follow was newly created by this request; false if it already existed\n   */\n  created: boolean;\n  duration: string;\n  follow: FollowResponse;\n  /**\n   * Whether a notification activity was successfully created (only set when the follow was newly created)\n   */\n  notification_created?: boolean;\n}\n\nexport interface GetOrCreateUnfollowRequest {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n  /**\n   * Whether to delete the corresponding notification activity (default: false)\n   */\n  delete_notification_activity?: boolean;\n  /**\n   * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * When true, activities from the unfollowed feed will remain in the source feed's timeline (default: false)\n   */\n  keep_history?: boolean;\n}\n\nexport interface GetOrCreateUnfollowResponse {\n  /**\n   * True if a follow was found and removed by this request; false if no follow existed\n   */\n  deleted: boolean;\n  duration: string;\n  follow?: FollowResponse;\n}\n\nexport interface GetScheduledActivityResponse {\n  duration: string;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n}\n\nexport interface GetUserGroupResponse {\n  duration: string;\n  user_group?: UserGroupResponse;\n}\n\nexport interface GetUserInterestsResponse {\n  duration: string;\n  /**\n   * Interest tags sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag\n   */\n  interests: InterestTagResponse[];\n}\n\nexport interface GoogleVisionConfig {\n  enabled?: boolean;\n}\n\nexport interface HarmConfig {\n  cooldown_period: number;\n  severity: number;\n  threshold: number;\n  action_sequences: ActionSequence[];\n  harm_types: string[];\n}\n\nexport interface HealthCheckEvent {\n  connection_id: string;\n  created_at: Date;\n  custom: Record<string, any>;\n  type: string;\n  cid?: string;\n  received_at?: Date;\n  me?: OwnUserResponse;\n}\n\nexport interface IPContentCountRuleParameters {\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface IPFlagCountRuleParameters {\n  severity?: string;\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n}\n\nexport interface ImageContentParameters {\n  label_operator?: string;\n  min_confidence?: number;\n  harm_labels?: string[];\n}\n\nexport interface ImageData {\n  frames: string;\n  height: string;\n  size: string;\n  url: string;\n  width: string;\n}\n\nexport interface ImageRuleParameters {\n  min_confidence?: number;\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n}\n\nexport interface ImageSize {\n  /**\n   * Crop mode. One of: top, bottom, left, right, center\n   */\n  crop?: string;\n  /**\n   * Target image height\n   */\n  height?: number;\n  /**\n   * Resize method. One of: clip, crop, scale, fill\n   */\n  resize?: string;\n  /**\n   * Target image width\n   */\n  width?: number;\n}\n\nexport interface ImageUploadRequest {\n  file?: string;\n  /**\n   * field with JSON-encoded array of image size configurations\n   */\n  upload_sizes?: ImageSize[];\n  user?: OnlyUserID;\n}\n\nexport interface ImageUploadResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  file?: string;\n  thumb_url?: string;\n  /**\n   * Array of image size configurations\n   */\n  upload_sizes?: ImageSize[];\n}\n\nexport interface Images {\n  fixed_height: ImageData;\n  fixed_height_downsampled: ImageData;\n  fixed_height_still: ImageData;\n  fixed_width: ImageData;\n  fixed_width_downsampled: ImageData;\n  fixed_width_still: ImageData;\n  original: ImageData;\n}\n\nexport interface ImportBlockListRequest {\n  items: string[];\n  chunk_size?: number;\n}\n\nexport interface ImportBlockListResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  task_id: string;\n}\n\nexport interface IntentConfigRequest {\n  /**\n   * Topics to classify conversation text against (max 20, labels must be unique)\n   */\n  topics?: IntentTopicRequest[];\n}\n\nexport interface IntentConfigResponse {\n  /**\n   * Topics conversation text is classified against\n   */\n  topics: IntentTopicResponse[];\n}\n\nexport interface IntentTopicRequest {\n  /**\n   * Unique topic label (e.g. purchase_intent)\n   */\n  label: string;\n  /**\n   * How long the buffer collects items before scoring runs\n   */\n  analysis_cooldown_seconds?: number;\n  /**\n   * Optional description used in the classification prompt; the label alone is used when empty\n   */\n  description?: string;\n  /**\n   * Whether this topic is evaluated\n   */\n  enabled?: boolean;\n  /**\n   * Items buffered per conversation before scoring runs early\n   */\n  max_captured_items?: number;\n  /**\n   * Suppresses this topic for a user and conversation after it fires; 0 uses the default\n   */\n  refire_cooldown_seconds?: number;\n  /**\n   * Conversation score (0-100) required to fire moderation.intent_detected\n   */\n  score_threshold?: number;\n}\n\nexport interface IntentTopicResponse {\n  /**\n   * How long the buffer collects items before scoring runs\n   */\n  analysis_cooldown_seconds: number;\n  /**\n   * Whether this topic is evaluated\n   */\n  enabled: boolean;\n  /**\n   * Unique topic label (e.g. purchase_intent)\n   */\n  label: string;\n  /**\n   * Items buffered per conversation before scoring runs early\n   */\n  max_captured_items: number;\n  /**\n   * Conversation score (0-100) required to fire moderation.intent_detected\n   */\n  score_threshold: number;\n  /**\n   * Optional description used in the classification prompt; the label alone is used when empty\n   */\n  description?: string;\n  /**\n   * Suppresses this topic for a user and conversation after it fires; 0 uses the default\n   */\n  refire_cooldown_seconds?: number;\n}\n\nexport interface InterestTagResponse {\n  /**\n   * Lifetime number of distinct reacted-to activities tagged with this value, without decay; 0 for manually set tags\n   */\n  count: number;\n  /**\n   * How the tag was set: computed (from the user's reactions) or manual (through the API)\n   */\n  source: string;\n  /**\n   * The interest tag value\n   */\n  tag: string;\n  /**\n   * Ranking weight between -1.0 and 1.0. Computed tags carry a recency-decayed weight in (0, 1.0]: the user's strongest tag is 1.0 and every other a proportional share\n   */\n  weight: number;\n}\n\nexport interface KeyframeOCRRuleParameters {\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n}\n\nexport interface KeyframeRuleParameters {\n  min_confidence?: number;\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n}\n\nexport interface LLMConfig {\n  enabled: boolean;\n  rules: LLMRule[];\n  app_context?: string;\n  async?: boolean;\n  severity_descriptions?: Record<string, string>;\n}\n\nexport interface LLMRule {\n  action:\n    | 'flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove'\n    | 'keep';\n  description: string;\n  label: string;\n  severity_rules: BodyguardSeverityRule[];\n}\n\nexport interface LabelThresholds {\n  /**\n   * Threshold for automatic message block\n   */\n  block?: number;\n  /**\n   * Threshold for automatic message flag\n   */\n  flag?: number;\n}\n\nexport interface ListBlockListResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  blocklists: BlockListResponse[];\n  next_cursor?: string;\n}\n\nexport interface ListDevicesResponse {\n  duration: string;\n  /**\n   * List of devices\n   */\n  devices: DeviceResponse[];\n}\n\nexport interface ListQueuesResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  queues: ModerationQueueResponse[];\n}\n\nexport interface ListUserGroupsResponse {\n  duration: string;\n  /**\n   * List of user groups\n   */\n  user_groups: UserGroupResponse[];\n}\n\nexport interface Location {\n  /**\n   * Latitude coordinate\n   */\n  lat: number;\n  /**\n   * Longitude coordinate\n   */\n  lng: number;\n}\n\nexport interface MarkActivityRequest {\n  /**\n   * Whether to mark all activities as read\n   */\n  mark_all_read?: boolean;\n  /**\n   * Whether to mark all activities as seen\n   */\n  mark_all_seen?: boolean;\n  /**\n   * List of activity IDs to mark as read\n   */\n  mark_read?: string[];\n  /**\n   * List of activity IDs to mark as seen\n   */\n  mark_seen?: string[];\n  /**\n   * List of activity IDs to mark as watched (for stories)\n   */\n  mark_watched?: string[];\n}\n\nexport interface MarkReviewedRequestPayload {\n  /**\n   * Maximum content items to mark as reviewed\n   */\n  content_to_mark_as_reviewed_limit?: number;\n  /**\n   * Reason for the appeal decision\n   */\n  decision_reason?: string;\n  /**\n   * Skip marking content as reviewed\n   */\n  disable_marking_content_as_reviewed?: boolean;\n}\n\nexport interface MembershipLevelResponse {\n  /**\n   * When the membership level was created\n   */\n  created_at: Date;\n  /**\n   * Unique identifier for the membership level\n   */\n  id: string;\n  /**\n   * Display name for the membership level\n   */\n  name: string;\n  /**\n   * Priority level\n   */\n  priority: number;\n  /**\n   * When the membership level was last updated\n   */\n  updated_at: Date;\n  /**\n   * Activity tags this membership level gives access to\n   */\n  tags: string[];\n  /**\n   * Description of the membership level\n   */\n  description?: string;\n  /**\n   * Custom data for the membership level\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface MessageResponse {\n  /**\n   * Channel unique identifier in <type>:<id> format\n   */\n  cid: string;\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  deleted_reply_count: number;\n  /**\n   * Contains HTML markup of the message. Can only be set when using server-side API\n   */\n  html: string;\n  /**\n   * Message ID is unique string identifier of the message\n   */\n  id: string;\n  /**\n   * Whether the message mentioned the channel tag\n   */\n  mentioned_channel: boolean;\n  /**\n   * Whether the message mentioned online users with @here tag\n   */\n  mentioned_here: boolean;\n  /**\n   * Whether message is pinned or not\n   */\n  pinned: boolean;\n  /**\n   * Number of replies to this message\n   */\n  reply_count: number;\n  /**\n   * Whether the message was shadowed or not\n   */\n  shadowed: boolean;\n  /**\n   * Whether message is silent or not\n   */\n  silent: boolean;\n  /**\n   * Text of the message. Should be empty if `mml` is provided\n   */\n  text: string;\n  /**\n   * Contains type of the message. One of: regular, ephemeral, error, reply, system, deleted\n   */\n  type: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * Array of message attachments\n   */\n  attachments: Attachment[];\n  /**\n   * List of 10 latest reactions to this message\n   */\n  latest_reactions: ReactionResponse[];\n  /**\n   * List of mentioned users\n   */\n  mentioned_users: UserResponse[];\n  /**\n   * List of 10 latest reactions of authenticated user to this message\n   */\n  own_reactions: ReactionResponse[];\n  /**\n   * A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list\n   */\n  restricted_visibility: string[];\n  custom: Record<string, any>;\n  /**\n   * An object containing number of reactions of each type. Key: reaction type (string), value: number of reactions (int)\n   */\n  reaction_counts: Record<string, number>;\n  /**\n   * An object containing scores of reactions of each type. Key: reaction type (string), value: total score of reactions (int)\n   */\n  reaction_scores: Record<string, number>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  /**\n   * Contains provided slash command\n   */\n  command?: string;\n  /**\n   * Date/time of deletion\n   */\n  deleted_at?: Date;\n  deleted_for_me?: boolean;\n  message_text_updated_at?: Date;\n  /**\n   * Should be empty if `text` is provided. Can only be set when using server-side API\n   */\n  mml?: string;\n  /**\n   * ID of parent message (thread)\n   */\n  parent_id?: string;\n  /**\n   * Date when pinned message expires\n   */\n  pin_expires?: Date;\n  /**\n   * Date when message got pinned\n   */\n  pinned_at?: Date;\n  /**\n   * Identifier of the poll to include in the message\n   */\n  poll_id?: string;\n  quoted_message_id?: string;\n  /**\n   * Whether thread reply should be shown in the channel as well\n   */\n  show_in_channel?: boolean;\n  /**\n   * List of user group IDs mentioned in the message. Group members who are also channel members will receive push notifications based on their push preferences. Max 10 groups\n   */\n  mentioned_group_ids?: string[];\n  /**\n   * List of mentioned user group objects.\n   */\n  mentioned_groups?: UserGroupResponse[];\n  /**\n   * List of roles mentioned in the message (e.g. admin, channel_moderator, custom roles). Members with matching roles will receive push notifications based on their push preferences. Max 10 roles\n   */\n  mentioned_roles?: string[];\n  /**\n   * List of users who participate in thread\n   */\n  thread_participants?: UserResponse[];\n  draft?: DraftResponse;\n  /**\n   * Object with translations. Key `language` contains the original language key. Other keys contain translations\n   */\n  i18n?: Record<string, string>;\n  /**\n   * Contains image moderation information\n   */\n  image_labels?: Record<string, string[]>;\n  member?: ChannelMemberPartialResponse;\n  /**\n   * Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message\n   */\n  mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;\n  moderation?: ModerationV2Response;\n  /**\n   * User response object\n   */\n  pinned_by?: UserResponse;\n  poll?: PollResponseData;\n  /**\n   * Represents any chat message\n   */\n  quoted_message?: MessageResponse;\n  reaction_groups?: Record<string, ReactionGroupResponse>;\n  reminder?: ReminderResponseData;\n  shared_location?: SharedLocationResponseData;\n}\n\nexport interface ModerationActionConfigResponse {\n  /**\n   * The action to take\n   */\n  action: string;\n  /**\n   * Description of what this action does\n   */\n  description: string;\n  /**\n   * Type of entity this action applies to\n   */\n  entity_type: string;\n  /**\n   * Icon for the dashboard\n   */\n  icon: string;\n  /**\n   * Display order (lower numbers shown first)\n   */\n  order: number;\n  id?: string;\n  /**\n   * Queue type this action config belongs to\n   */\n  queue_type?: string;\n  /**\n   * Custom data for the action\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface ModerationBanResponse {\n  duration: string;\n}\n\nexport interface ModerationCallResponse {\n  backstage: boolean;\n  captioning: boolean;\n  cid: string;\n  created_at: Date;\n  current_session_id: string;\n  id: string;\n  recording: boolean;\n  transcribing: boolean;\n  translating: boolean;\n  type: string;\n  updated_at: Date;\n  blocked_user_ids: string[];\n  custom: Record<string, any>;\n  channel_cid?: string;\n  ended_at?: Date;\n  join_ahead_time_seconds?: number;\n  routing_number?: string;\n  starts_at?: Date;\n  team?: string;\n  /**\n   * User response object\n   */\n  created_by?: UserResponse;\n}\n\nexport interface ModerationCustomActionEvent {\n  /**\n   * The ID of the custom action that was executed\n   */\n  action_id: string;\n  created_at: Date;\n  custom: Record<string, any>;\n  review_queue_item: ReviewQueueItemResponse;\n  type: string;\n  received_at?: Date;\n  /**\n   * Additional options passed to the custom action\n   */\n  action_options?: Record<string, any>;\n  /**\n   * Represents any chat message\n   */\n  message?: MessageResponse;\n}\n\nexport interface ModerationFlagResponse {\n  created_at: Date;\n  entity_id: string;\n  entity_type: string;\n  type: string;\n  updated_at: Date;\n  user_id: string;\n  result: Array<Record<string, any>>;\n  content_published_at?: Date;\n  entity_creator_id?: string;\n  reason?: string;\n  review_queue_item_id?: string;\n  labels?: string[];\n  custom?: Record<string, any>;\n  /**\n   * Content payload for moderation\n   */\n  moderation_payload?: ModerationPayloadResponse;\n  review_queue_item?: ReviewQueueItemResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ModerationFlaggedEvent {\n  /**\n   * The type of content that was flagged\n   */\n  content_type: string;\n  created_at: Date;\n  /**\n   * The ID of the flagged content\n   */\n  object_id: string;\n  custom: Record<string, any>;\n  type: string;\n  received_at?: Date;\n}\n\nexport interface ModerationMarkReviewedEvent {\n  created_at: Date;\n  custom: Record<string, any>;\n  item: ReviewQueueItemResponse;\n  type: string;\n  received_at?: Date;\n  /**\n   * Represents any chat message\n   */\n  message?: MessageResponse;\n}\n\nexport interface ModerationPayload {\n  country_code?: string;\n  audios?: string[];\n  image_ordered_keys?: string[];\n  images?: string[];\n  other_media?: string[];\n  text_ordered_keys?: string[];\n  texts?: string[];\n  videos?: string[];\n  custom?: Record<string, any>;\n  image_ids?: Record<string, string>;\n  text_ids?: Record<string, string>;\n}\n\nexport interface ModerationPayloadResponse {\n  /**\n   * Audio URLs to moderate\n   */\n  audios?: string[];\n  /**\n   * Caller-supplied keys for images, index-aligned with images[]\n   */\n  image_ordered_keys?: string[];\n  /**\n   * Image URLs to moderate\n   */\n  images?: string[];\n  /**\n   * Media URLs from attachments outside the typed image/video/audio lists (custom attachment types such as GIF pickers)\n   */\n  other_media?: string[];\n  /**\n   * Caller-supplied keys for texts (e.g. \"title\", \"description\"), index-aligned with texts[]\n   */\n  text_ordered_keys?: string[];\n  /**\n   * Text content to moderate\n   */\n  texts?: string[];\n  /**\n   * Video URLs to moderate\n   */\n  videos?: string[];\n  /**\n   * Custom data for moderation\n   */\n  custom?: Record<string, any>;\n  /**\n   * Caller-supplied content IDs per image key (from content_ids on /analyze)\n   */\n  image_ids?: Record<string, string>;\n  /**\n   * Caller-supplied content IDs per text key (from content_ids on /analyze)\n   */\n  text_ids?: Record<string, string>;\n}\n\nexport interface ModerationQueueResponse {\n  created_at: Date;\n  created_by: string;\n  description: string;\n  id: string;\n  item_count: number;\n  name: string;\n  type: string;\n  updated_at: Date;\n  sort: Array<Record<string, any>>;\n  filters: Record<string, any>;\n}\n\nexport interface ModerationV2Response {\n  action: string;\n  original_text: string;\n  blocklist_matched?: string;\n  platform_circumvented?: boolean;\n  semantic_filter_matched?: string;\n  blocklists_matched?: string[];\n  image_harms?: string[];\n  text_harms?: string[];\n}\n\nexport interface MuteRequest {\n  /**\n   * User IDs to mute (if multiple users)\n   */\n  target_ids: string[];\n  /**\n   * Duration of mute in minutes\n   */\n  timeout?: number;\n}\n\nexport interface MuteResponse {\n  duration: string;\n  /**\n   * Object with mutes (if multiple users were muted)\n   */\n  mutes?: UserMuteResponse[];\n  /**\n   * A list of users that can't be found. Common cause for this is deleted users\n   */\n  non_existing_users?: string[];\n  own_user?: OwnUserResponse;\n}\n\nexport interface NotificationComment {\n  comment: string;\n  id: string;\n  user_id: string;\n  attachments?: Attachment[];\n}\n\nexport interface NotificationConfig {\n  deduplication_window?: string;\n  track_read?: boolean;\n  track_seen?: boolean;\n}\n\nexport interface NotificationContext {\n  target?: NotificationTarget;\n  trigger?: NotificationTrigger;\n}\n\nexport interface NotificationFeedUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * The ID of the feed\n   */\n  fid: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.notification_feed.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  /**\n   * Aggregated activities for notification feeds\n   */\n  aggregated_activities?: AggregatedActivityResponse[];\n  notification_status?: NotificationStatusResponse;\n  user?: UserResponseCommonFields;\n}\n\nexport interface NotificationParentActivity {\n  id: string;\n  text?: string;\n  type?: string;\n  user_id?: string;\n  attachments?: Attachment[];\n}\n\nexport interface NotificationStatusResponse {\n  /**\n   * Number of unread notifications\n   */\n  unread: number;\n  /**\n   * Number of unseen notifications\n   */\n  unseen: number;\n  /**\n   * When notifications were last read\n   */\n  last_read_at?: Date;\n  /**\n   * When notifications were last seen\n   */\n  last_seen_at?: Date;\n  /**\n   * Deprecated: use is_read on each activity/group instead. IDs of activities that have been read. Capped at ~101 entries for aggregated feeds.\n   */\n  read_activities?: string[];\n  /**\n   * Deprecated: use is_seen on each activity/group instead. IDs of activities that have been seen. Capped at ~101 entries for aggregated feeds.\n   */\n  seen_activities?: string[];\n}\n\nexport interface NotificationTarget {\n  /**\n   * The ID of the target (activity ID or user ID)\n   */\n  id: string;\n  /**\n   * The name of the target user (for user targets like follows)\n   */\n  name?: string;\n  /**\n   * The text content of the target activity (for activity targets)\n   */\n  text?: string;\n  /**\n   * The type of the target activity (for activity targets)\n   */\n  type?: string;\n  /**\n   * The ID of the user who created the target activity (for activity targets)\n   */\n  user_id?: string;\n  /**\n   * Attachments on the target activity (for activity targets)\n   */\n  attachments?: Attachment[];\n  comment?: NotificationComment;\n  /**\n   * Custom data from the target activity\n   */\n  custom?: Record<string, any>;\n  parent_activity?: NotificationParentActivity;\n}\n\nexport interface NotificationTrigger {\n  /**\n   * Human-readable text describing the notification\n   */\n  text: string;\n  /**\n   * The type of notification (mention, reaction, comment, follow, etc.)\n   */\n  type: string;\n  comment?: NotificationComment;\n  /**\n   * Custom data from the trigger object (comment, reaction, etc.)\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface OCRContentParameters {\n  label_operator?: string;\n  severity?: string;\n  harm_labels?: string[];\n}\n\nexport interface OCRRule {\n  action:\n    | 'flag'\n    | 'shadow'\n    | 'remove'\n    | 'bounce'\n    | 'bounce_flag'\n    | 'bounce_remove';\n  label: string;\n}\n\nexport interface OnlyUserID {\n  id: string;\n}\n\nexport interface OwnBatchRequest {\n  /**\n   * List of feed IDs to get own fields for\n   */\n  feeds: string[];\n  /**\n   * Optional list of specific fields to return. If not specified, all fields (own_follows, own_followings, own_capabilities, own_membership) are returned\n   */\n  fields?: string[];\n}\n\nexport interface OwnBatchResponse {\n  duration: string;\n  /**\n   * Map of feed ID to own fields data\n   */\n  data: Record<string, FeedOwnData>;\n}\n\nexport interface OwnUserResponse {\n  banned: boolean;\n  created_at: Date;\n  id: string;\n  invisible: boolean;\n  language: string;\n  online: boolean;\n  role: string;\n  total_unread_count: number;\n  unread_channels: number;\n  /**\n   * @deprecated\n   * Deprecated: Use total_unread_count instead.\n   */\n  unread_count: number;\n  unread_threads: number;\n  updated_at: Date;\n  channel_mutes: ChannelMute[];\n  devices: DeviceResponse[];\n  mutes: UserMuteResponse[];\n  teams: string[];\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  deactivated_at?: Date;\n  deleted_at?: Date;\n  image?: string;\n  last_active?: Date;\n  name?: string;\n  revoke_tokens_issued_before?: Date;\n  blocked_user_ids?: string[];\n  latest_hidden_channels?: string[];\n  privacy_settings?: PrivacySettingsResponse;\n  push_preferences?: PushPreferencesResponse;\n  teams_role?: Record<string, string>;\n  total_unread_count_by_team?: Record<string, number>;\n}\n\nexport interface PagerRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n}\n\nexport interface PagerResponse {\n  next?: string;\n  prev?: string;\n}\n\nexport interface PinActivityRequest {\n  /**\n   * If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n}\n\nexport interface PinActivityResponse {\n  /**\n   * When the activity was pinned\n   */\n  created_at: Date;\n  duration: string;\n  /**\n   * Fully qualified ID of the feed the activity was pinned to\n   */\n  feed: string;\n  /**\n   * ID of the user who pinned the activity\n   */\n  user_id: string;\n  activity: ActivityResponse;\n}\n\nexport interface PollClosedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollDeletedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollOptionInput {\n  text?: string;\n  custom?: Record<string, any>;\n}\n\nexport interface PollOptionRequest {\n  id: string;\n  text?: string;\n  custom?: Record<string, any>;\n}\n\nexport interface PollOptionResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  poll_option: PollOptionResponseData;\n}\n\nexport interface PollOptionResponseData {\n  id: string;\n  text: string;\n  custom: Record<string, any>;\n  text_i18n?: Record<string, string>;\n}\n\nexport interface PollResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  poll: PollResponseData;\n}\n\nexport interface PollResponseData {\n  allow_answers: boolean;\n  allow_user_suggested_options: boolean;\n  answers_count: number;\n  created_at: Date;\n  created_by_id: string;\n  description: string;\n  enforce_unique_vote: boolean;\n  id: string;\n  name: string;\n  updated_at: Date;\n  vote_count: number;\n  /**\n   * Voting visibility of the poll\n   */\n  voting_visibility: 'anonymous' | 'public';\n  latest_answers: PollVoteResponseData[];\n  options: PollOptionResponseData[];\n  own_votes: PollVoteResponseData[];\n  custom: Record<string, any>;\n  latest_votes_by_option: Record<string, PollVoteResponseData[]>;\n  vote_counts_by_option: Record<string, number>;\n  is_closed?: boolean;\n  max_votes_allowed?: number;\n  /**\n   * User response object\n   */\n  created_by?: UserResponse;\n  description_i18n?: Record<string, string>;\n  name_i18n?: Record<string, string>;\n}\n\nexport interface PollUpdatedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollVoteCastedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  poll_vote: PollVoteResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollVoteChangedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  poll_vote: PollVoteResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollVoteRemovedFeedEvent {\n  created_at: Date;\n  fid: string;\n  custom: Record<string, any>;\n  poll: PollResponseData;\n  poll_vote: PollVoteResponseData;\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n}\n\nexport interface PollVoteResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  poll?: PollResponseData;\n  vote?: PollVoteResponseData;\n}\n\nexport interface PollVoteResponseData {\n  created_at: Date;\n  id: string;\n  option_id: string;\n  poll_id: string;\n  updated_at: Date;\n  answer_text?: string;\n  is_answer?: boolean;\n  user_id?: string;\n  answer_text_i18n?: Record<string, string>;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface PollVotesResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Poll votes\n   */\n  votes: PollVoteResponseData[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface PrivacySettingsResponse {\n  delivery_receipts?: DeliveryReceiptsResponse;\n  read_receipts?: ReadReceiptsResponse;\n  typing_indicators?: TypingIndicatorsResponse;\n}\n\nexport interface PublishScheduledActivityNowResponse {\n  duration: string;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n}\n\nexport interface PushNotificationConfig {\n  enable_push?: boolean;\n  push_types?: string[];\n}\n\nexport interface PushPreferenceInput {\n  /**\n   * Set the level of call push notifications for the user. One of: all, none, default\n   */\n  call_level?: 'all' | 'none' | 'default';\n  /**\n   * Set the push preferences for a specific channel. If empty it sets the default for the user\n   */\n  channel_cid?: string;\n  /**\n   * Set the level of chat push notifications for the user. Note: \"mentions\" is deprecated in favor of \"direct_mentions\". One of: all, mentions, direct_mentions, all_mentions, none, default\n   */\n  chat_level?:\n    | 'all'\n    | 'mentions'\n    | 'direct_mentions'\n    | 'all_mentions'\n    | 'none'\n    | 'default';\n  /**\n   * Disable push notifications till a certain time\n   */\n  disabled_until?: Date;\n  /**\n   * Set the level of feeds push notifications for the user. One of: all, none, default\n   */\n  feeds_level?: 'all' | 'none' | 'default';\n  /**\n   * Remove the disabled until time. (IE stop snoozing notifications)\n   */\n  remove_disable?: boolean;\n  /**\n   * The user id for which to set the push preferences. Required when using server side auths, defaults to current user with client side auth.\n   */\n  user_id?: string;\n  chat_preferences?: ChatPreferencesInput;\n  feeds_preferences?: FeedsPreferences;\n}\n\nexport interface PushPreferencesResponse {\n  call_level?: string;\n  chat_level?: string;\n  disabled_until?: Date;\n  feeds_level?: string;\n  chat_preferences?: ChatPreferencesResponse;\n  feeds_preferences?: FeedsPreferencesResponse;\n}\n\nexport interface QueryActivitiesRequest {\n  enrich_own_fields?: boolean;\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query. Supports location-based queries with 'near' and 'within_bounds' operators.\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryActivitiesResponse {\n  duration: string;\n  /**\n   * List of activities matching the query\n   */\n  activities: ActivityResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryActivityReactionsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryActivityReactionsResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  reactions: FeedsReactionResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryActivitySharesResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  shares: ShareResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryAppealsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for appeals\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter conditions for appeals\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryAppealsResponse {\n  duration: string;\n  /**\n   * List of Appeal Items\n   */\n  items: AppealItemResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryBookmarkFoldersRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryBookmarkFoldersResponse {\n  duration: string;\n  /**\n   * List of bookmark folders matching the query\n   */\n  bookmark_folders: BookmarkFolderResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryBookmarksRequest {\n  enrich_own_fields?: boolean;\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryBookmarksResponse {\n  duration: string;\n  /**\n   * List of bookmarks matching the query\n   */\n  bookmarks: BookmarkResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryCollectionsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryCollectionsResponse {\n  duration: string;\n  /**\n   * List of collections matching the query\n   */\n  collections: CollectionResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryCommentReactionsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryCommentReactionsResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  reactions: FeedsReactionResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryCommentsRequest {\n  /**\n   * Filter to apply to the query\n   */\n  filter: Record<string, any>;\n  /**\n   * Returns the comment with the specified ID along with surrounding comments for context\n   */\n  id_around?: string;\n  /**\n   * Maximum number of comments to return\n   */\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Array of sort parameters\n   */\n  sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';\n}\n\nexport interface QueryCommentsResponse {\n  duration: string;\n  /**\n   * List of comments matching the query\n   */\n  comments: CommentResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryFeedMembersRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sort parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter parameters for the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryFeedMembersResponse {\n  duration: string;\n  /**\n   * List of feed members\n   */\n  members: FeedMemberResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryFeedsRequest {\n  enrich_own_fields?: boolean;\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Whether to subscribe to realtime updates\n   */\n  watch?: boolean;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryFeedsResponse {\n  duration: string;\n  /**\n   * List of feeds matching the query\n   */\n  feeds: FeedResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryFollowsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryFollowsResponse {\n  duration: string;\n  /**\n   * List of follow relationships matching the query\n   */\n  follows: FollowResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryModerationConfigsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the results\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter conditions for moderation configs\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryModerationConfigsResponse {\n  duration: string;\n  /**\n   * List of moderation configurations\n   */\n  configs: ConfigResponse[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryPinnedActivitiesRequest {\n  enrich_own_fields?: boolean;\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Sorting parameters for the query\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filters to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryPinnedActivitiesResponse {\n  duration: string;\n  /**\n   * List of pinned activities matching the query\n   */\n  pinned_activities: ActivityPinResponse[];\n  /**\n   * Cursor for next page\n   */\n  next?: string;\n  /**\n   * Cursor for previous page\n   */\n  prev?: string;\n}\n\nexport interface QueryPollVotesRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Array of sort parameters\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryPollsRequest {\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * Array of sort parameters\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter to apply to the query\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryPollsResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Polls data returned by the query\n   */\n  polls: PollResponseData[];\n  next?: string;\n  prev?: string;\n}\n\nexport interface QueryReviewQueueRequest {\n  exclude_default_action_config?: boolean;\n  limit?: number;\n  /**\n   * Number of items to lock (1-25)\n   */\n  lock_count?: number;\n  /**\n   * Duration for which items should be locked\n   */\n  lock_duration?: number;\n  /**\n   * Whether to lock items for review (true), unlock items (false), or just fetch (nil)\n   */\n  lock_items?: boolean;\n  next?: string;\n  prev?: string;\n  /**\n   * Whether to return only statistics\n   */\n  stats_only?: boolean;\n  /**\n   * Sorting parameters for the results\n   */\n  sort?: SortParamRequest[];\n  /**\n   * Filter conditions for review queue items. Accepts built-in fields (e.g. status, channel_cid, severity, recommended_action) and customer-supplied moderation_payload.custom keys: any key that is not a built-in field is matched against the item's custom moderation data (e.g. {\"location_id\": \"loc-42\"}). Use filter_config.filterable_custom_keys to discover which custom keys the app exposes as chips. content_text searches the moderated text: \"$q\" is a keyword search (terms ANDed, no adjacency) over the indexed tsvector, while \"$eq\" (or \"$in\" for several wordings) matches the text exactly. The exact form is unindexed, so scope it with date_range rather than running it across the whole queue.\n   */\n  filter?: Record<string, any>;\n}\n\nexport interface QueryReviewQueueResponse {\n  duration: string;\n  /**\n   * List of review queue items\n   */\n  items: ReviewQueueItemResponse[];\n  /**\n   * Configuration for moderation actions\n   */\n  action_config: Record<string, ModerationActionConfigResponse[]>;\n  /**\n   * Statistics about the review queue\n   */\n  stats: Record<string, any>;\n  next?: string;\n  prev?: string;\n  default_action_config?: Record<string, ModerationActionConfigResponse[]>;\n  filter_config?: FilterConfigResponse;\n}\n\nexport interface QueryScheduledActivitiesFilter {\n  /**\n   * Only activities scheduled for this feed\n   */\n  fid?: string;\n  /**\n   * Only activities of this user. Server-side only; client-side requests always see their own.\n   */\n  user_id?: string;\n  /**\n   * Only activities with one of these statuses: scheduled, publishing, failed\n   */\n  status?: ScheduledActivityQueryStatus[];\n}\n\nexport interface QueryScheduledActivitiesRequest {\n  /**\n   * Maximum number of scheduled activities to return. Default 25, maximum 100.\n   */\n  limit?: number;\n  /**\n   * Cursor from a previous response to fetch the next page\n   */\n  next?: string;\n  filter?: QueryScheduledActivitiesFilter;\n}\n\nexport interface QueryScheduledActivitiesResponse {\n  duration: string;\n  /**\n   * The scheduled activities, ordered by scheduled_at\n   */\n  scheduled_activities: ScheduledActivityResponse[];\n  /**\n   * Cursor for the next page, absent on the last page\n   */\n  next?: string;\n}\n\nexport interface QueryUsersPayload {\n  /**\n   * Filter conditions to apply to the query\n   */\n  filter_conditions: Record<string, any>;\n  id_gt?: string;\n  id_gte?: string;\n  id_lt?: string;\n  id_lte?: string;\n  include_deactivated_users?: boolean;\n  limit?: number;\n  offset?: number;\n  presence?: boolean;\n  /**\n   * Array of sort parameters\n   */\n  sort?: SortParamRequest[];\n}\n\nexport interface QueryUsersResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Array of users as result of filters applied.\n   */\n  users: FullUserResponse[];\n}\n\nexport interface QueueResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  queue?: ModerationQueueResponse;\n}\n\nexport interface RankingConfig {\n  score?: string;\n  type?: string;\n  defaults?: Record<string, any>;\n  functions?: Record<string, DecayFunctionConfig>;\n}\n\nexport interface Reaction {\n  activity_id: string;\n  created_at: Date;\n  kind: string;\n  updated_at: Date;\n  user_id: string;\n  deleted_at?: Date;\n  id?: string;\n  parent?: string;\n  score?: number;\n  target_feeds?: string[];\n  children_counts?: Record<string, any>;\n  data?: Record<string, any>;\n  latest_children?: Record<string, Reaction[]>;\n  moderation?: Record<string, any>;\n  own_children?: Record<string, Reaction[]>;\n  target_feeds_extra_data?: Record<string, any>;\n  user?: User;\n}\n\nexport interface ReactionGroupResponse {\n  /**\n   * Count is the number of reactions of this type.\n   */\n  count: number;\n  /**\n   * FirstReactionAt is the time of the first reaction of this type. This is the same also if all reaction of this type are deleted, because if someone will react again with the same type, will be preserved the sorting.\n   */\n  first_reaction_at: Date;\n  /**\n   * LastReactionAt is the time of the last reaction of this type.\n   */\n  last_reaction_at: Date;\n  /**\n   * SumScores is the sum of all scores of reactions of this type. Medium allows you to clap articles more than once and shows the sum of all claps from all users. For example, you can send `clap` x5 using `score: 5`.\n   */\n  sum_scores: number;\n  /**\n   * The most recent users who reacted with this type, ordered by most recent first.\n   */\n  latest_reactions_by: ReactionGroupUserResponse[];\n}\n\nexport interface ReactionGroupUserResponse {\n  /**\n   * The time when the user reacted.\n   */\n  created_at: Date;\n  /**\n   * The ID of the user who reacted.\n   */\n  user_id: string;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface ReactionResponse {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Message ID\n   */\n  message_id: string;\n  /**\n   * Score of the reaction\n   */\n  score: number;\n  /**\n   * Type of reaction\n   */\n  type: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * User ID\n   */\n  user_id: string;\n  /**\n   * Custom data for this object\n   */\n  custom: Record<string, any>;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface ReadCollectionsResponse {\n  duration: string;\n  /**\n   * List of collections matching the references\n   */\n  collections: CollectionResponse[];\n}\n\nexport interface ReadReceiptsResponse {\n  enabled: boolean;\n}\n\nexport interface RejectAppealRequestPayload {\n  /**\n   * Reason for rejecting the appeal\n   */\n  decision_reason: string;\n}\n\nexport interface RejectFeedMemberInviteRequest {}\n\nexport interface RejectFeedMemberInviteResponse {\n  duration: string;\n  member: FeedMemberResponse;\n}\n\nexport interface RejectFollowRequest {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n}\n\nexport interface RejectFollowResponse {\n  duration: string;\n  follow: FollowResponse;\n}\n\nexport interface ReminderResponseData {\n  channel_cid: string;\n  created_at: Date;\n  message_id: string;\n  updated_at: Date;\n  user_id: string;\n  expires_at?: Date;\n  remind_at?: Date;\n  /**\n   * Represents channel in chat\n   */\n  channel?: ChannelResponse;\n  /**\n   * Represents any chat message\n   */\n  message?: MessageResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface RemoveUserGroupMembersRequest {\n  /**\n   * List of user IDs to remove\n   */\n  member_ids: string[];\n  team_id?: string;\n}\n\nexport interface RemoveUserGroupMembersResponse {\n  duration: string;\n  user_group?: UserGroupResponse;\n}\n\nexport interface RepliesMeta {\n  /**\n   * True if the subtree was cut because the requested depth was reached.\n   */\n  depth_truncated: boolean;\n  /**\n   * True if more siblings exist in the database.\n   */\n  has_more: boolean;\n  /**\n   * Number of unread siblings that match current filters.\n   */\n  remaining: number;\n  /**\n   * Opaque cursor to request the next page of siblings.\n   */\n  next_cursor?: string;\n}\n\nexport interface Response {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n}\n\nexport interface RestoreActionRequestPayload {\n  /**\n   * Reason for the appeal decision\n   */\n  decision_reason?: string;\n}\n\nexport interface RestoreActivityRequest {}\n\nexport interface RestoreActivityResponse {\n  duration: string;\n  activity: ActivityResponse;\n}\n\nexport interface RestoreCommentRequest {}\n\nexport interface RestoreCommentResponse {\n  duration: string;\n  activity: ActivityResponse;\n  comment: CommentResponse;\n}\n\nexport interface ReviewQueueItemResponse {\n  /**\n   * AI-determined text severity\n   */\n  ai_text_severity: string;\n  /**\n   * When the item was created\n   */\n  created_at: Date;\n  /**\n   * ID of the entity being reviewed\n   */\n  entity_id: string;\n  /**\n   * Type of entity being reviewed\n   */\n  entity_type: string;\n  /**\n   * Whether the item has been escalated\n   */\n  escalated: boolean;\n  flags_count: number;\n  /**\n   * Unique identifier of the review queue item\n   */\n  id: string;\n  latest_moderator_action: string;\n  /**\n   * Suggested moderation action\n   */\n  recommended_action: string;\n  /**\n   * ID of the moderator who reviewed the item\n   */\n  reviewed_by: string;\n  /**\n   * Severity level of the content\n   */\n  severity: number;\n  /**\n   * Current status of the review\n   */\n  status: string;\n  /**\n   * When the item was last updated\n   */\n  updated_at: Date;\n  /**\n   * Moderation actions taken\n   */\n  actions: ActionLogResponse[];\n  /**\n   * Associated ban records\n   */\n  bans: BanInfoResponse[];\n  /**\n   * Associated flag records\n   */\n  flags: ModerationFlagResponse[];\n  /**\n   * Detected languages in the content\n   */\n  languages: string[];\n  /**\n   * When the review was completed\n   */\n  completed_at?: Date;\n  /**\n   * Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one\n   */\n  confidence_score?: number;\n  config_key?: string;\n  /**\n   * ID of who created the entity\n   */\n  entity_creator_id?: string;\n  /**\n   * When the item was escalated\n   */\n  escalated_at?: Date;\n  /**\n   * ID of the moderator who escalated the item\n   */\n  escalated_by?: string;\n  /**\n   * When the item was reviewed\n   */\n  reviewed_at?: Date;\n  /**\n   * Teams associated with this item\n   */\n  teams?: string[];\n  activity?: EnrichedActivity;\n  appeal?: AppealItemResponse;\n  /**\n   * User response object\n   */\n  assigned_to?: UserResponse;\n  call?: ModerationCallResponse;\n  entity_creator?: EntityCreatorResponse;\n  escalation_metadata?: EscalationMetadata;\n  feeds_v2_activity?: EnrichedActivity;\n  feeds_v2_reaction?: Reaction;\n  feeds_v3_activity?: FeedsV3ActivityResponse;\n  feeds_v3_comment?: FeedsV3CommentResponse;\n  message?: ChatMessageResponse;\n  /**\n   * Content payload for moderation\n   */\n  moderation_payload?: ModerationPayloadResponse;\n  reaction?: Reaction;\n}\n\nexport interface Role {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Whether this is a custom role or built-in\n   */\n  custom: boolean;\n  /**\n   * Unique role name\n   */\n  name: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * List of scopes where this role is currently present. `.app` means that role is present in app-level grants\n   */\n  scopes: string[];\n}\n\nexport interface RuleBuilderAction {\n  reason?: string;\n  skip_inbox?: boolean;\n  type?:\n    | 'ban_user'\n    | 'flag_user'\n    | 'flag_content'\n    | 'block_content'\n    | 'shadow_content'\n    | 'bounce_flag_content'\n    | 'bounce_content'\n    | 'bounce_remove_content'\n    | 'mute_video'\n    | 'mute_audio'\n    | 'blur'\n    | 'call_blur'\n    | 'end_call'\n    | 'kick_user'\n    | 'warning'\n    | 'call_warning'\n    | 'webhook_only';\n  ban_options?: BanOptions;\n  call_options?: CallActionOptions;\n  flag_user_options?: FlagUserOptions;\n}\n\nexport interface RuleBuilderCondition {\n  confidence?: number;\n  type?: string;\n  call_custom_property_params?: CallCustomPropertyParameters;\n  call_type_rule_params?: CallTypeRuleParameters;\n  call_violation_count_params?: CallViolationCountParameters;\n  channel_message_count_rule_params?: ChannelMessageCountRuleParameters;\n  closed_caption_rule_params?: ClosedCaptionRuleParameters;\n  content_count_rule_params?: ContentCountRuleParameters;\n  content_custom_property_count_params?: ContentCustomPropertyCountParameters;\n  content_custom_property_params?: ContentCustomPropertyParameters;\n  content_flag_count_rule_params?: FlagCountRuleParameters;\n  flood_identical_params?: FloodIdenticalRuleParameters;\n  flood_similar_params?: FloodSimilarRuleParameters;\n  image_content_params?: ImageContentParameters;\n  image_rule_params?: ImageRuleParameters;\n  ip_content_count_rule_params?: IPContentCountRuleParameters;\n  ip_flag_count_rule_params?: IPFlagCountRuleParameters;\n  keyframe_ocr_rule_params?: KeyframeOCRRuleParameters;\n  keyframe_rule_params?: KeyframeRuleParameters;\n  ocr_content_params?: OCRContentParameters;\n  text_content_params?: TextContentParameters;\n  text_rule_params?: TextRuleParameters;\n  user_channel_count_params?: UserChannelCountRuleParameters;\n  user_created_within_params?: UserCreatedWithinParameters;\n  user_custom_property_params?: UserCustomPropertyParameters;\n  user_flag_count_rule_params?: FlagCountRuleParameters;\n  user_identical_content_count_params?: UserIdenticalContentCountParameters;\n  user_identical_image_count_params?: UserIdenticalImageCountParameters;\n  user_reaction_count_params?: UserReactionCountRuleParameters;\n  user_role_params?: UserRoleParameters;\n  user_rule_params?: UserRuleParameters;\n  video_content_params?: VideoContentParameters;\n  video_rule_params?: VideoRuleParameters;\n}\n\nexport interface RuleBuilderConditionGroup {\n  logic?: string;\n  conditions?: RuleBuilderCondition[];\n}\n\nexport interface RuleBuilderConfig {\n  async?: boolean;\n  rules?: RuleBuilderRule[];\n}\n\nexport interface RuleBuilderRule {\n  rule_type: string;\n  cooldown_period?: string;\n  id?: string;\n  logic?: string;\n  action_sequences?: CallRuleActionSequence[];\n  conditions?: RuleBuilderCondition[];\n  groups?: RuleBuilderConditionGroup[];\n  action?: RuleBuilderAction;\n}\n\nexport interface ScheduleActivityRequest {\n  /**\n   * Type of activity\n   */\n  type: string;\n  /**\n   * List of feeds to add the activity to with a default max limit of 25 feeds\n   */\n  feeds: string[];\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create notification activities for mentioned users\n   */\n  create_notification_activity?: boolean;\n  /**\n   * Expiration time for the activity\n   */\n  expires_at?: string;\n  /**\n   * Optional ID for the activity\n   */\n  id?: string;\n  /**\n   * ID of parent activity for replies/comments\n   */\n  parent_id?: string;\n  /**\n   * ID of a poll to attach to activity\n   */\n  poll_id?: string;\n  /**\n   * Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody\n   */\n  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * When to publish the activity, an RFC 3339 time. A time less than a minute ahead or in the past is moved to one minute from now, and the time is rounded up to a whole minute.\n   */\n  scheduled_at?: Date;\n  /**\n   * Whether to skip URL enrichment for the activity\n   */\n  skip_enrich_url?: boolean;\n  /**\n   * Whether to skip push notifications\n   */\n  skip_push?: boolean;\n  /**\n   * Text content of the activity\n   */\n  text?: string;\n  /**\n   * Visibility setting for the activity. One of: public, private, tag\n   */\n  visibility?: 'public' | 'private' | 'tag';\n  /**\n   * If visibility is 'tag', this is the tag name and is required\n   */\n  visibility_tag?: string;\n  /**\n   * List of attachments for the activity\n   */\n  attachments?: Attachment[];\n  /**\n   * Collections that this activity references\n   */\n  collection_refs?: string[];\n  /**\n   * Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions.\n   */\n  collections?: CollectionRequest[];\n  /**\n   * Tags for filtering activities\n   */\n  filter_tags?: string[];\n  /**\n   * Tags for indicating user interests\n   */\n  interest_tags?: string[];\n  /**\n   * List of users mentioned in the activity\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data for the activity\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  /**\n   * Additional data for search indexing\n   */\n  search_data?: Record<string, any>;\n}\n\nexport interface ScheduleActivityResponse {\n  duration: string;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n}\n\nexport interface ScheduledActivityCreatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n  /**\n   * The type of event: \"feeds.scheduled_activity.created\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ScheduledActivityDeletedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n  /**\n   * The type of event: \"feeds.scheduled_activity.deleted\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface ScheduledActivityFailedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Why the activity failed to publish\n   */\n  failure_reason: ScheduledActivityFailureReason;\n  custom: Record<string, any>;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n  /**\n   * The type of event: \"feeds.scheduled_activity.failed\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport type ScheduledActivityFailureReason =\n  | 'banned'\n  | 'no_permission'\n  | 'feed_deleted'\n  | 'user_deleted'\n  | 'moderation_blocked'\n  | 'id_conflict'\n  | 'expired'\n  | 'invalid_activity'\n  | 'internal_error';\n\nexport interface ScheduledActivityPreview {\n  /**\n   * Type of activity\n   */\n  type: string;\n  /**\n   * Feeds the activity will be added to\n   */\n  feeds: string[];\n  /**\n   * When the published activity expires\n   */\n  expires_at?: Date;\n  /**\n   * ID the activity gets when published\n   */\n  id?: string;\n  /**\n   * ID of the parent activity\n   */\n  parent_id?: string;\n  /**\n   * ID of the poll attached to the activity\n   */\n  poll_id?: string;\n  /**\n   * Who may reply to the activity\n   */\n  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * Text content of the activity\n   */\n  text?: string;\n  /**\n   * Visibility of the activity\n   */\n  visibility?: 'public' | 'private' | 'tag';\n  /**\n   * Visibility tag of the activity\n   */\n  visibility_tag?: string;\n  /**\n   * Attachments of the activity\n   */\n  attachments?: Attachment[];\n  /**\n   * Collections referenced by the activity\n   */\n  collection_refs?: string[];\n  /**\n   * Filter tags of the activity\n   */\n  filter_tags?: string[];\n  /**\n   * Interest tags of the activity\n   */\n  interest_tags?: string[];\n  /**\n   * Users mentioned in the activity\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data of the activity\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  /**\n   * Search data of the activity\n   */\n  search_data?: Record<string, any>;\n}\n\nexport interface ScheduledActivityPublishedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n  /**\n   * The type of event: \"feeds.scheduled_activity.published\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport type ScheduledActivityQueryStatus =\n  | 'scheduled'\n  | 'publishing'\n  | 'failed';\n\nexport interface ScheduledActivityResponse {\n  /**\n   * When the activity was scheduled\n   */\n  created_at: Date;\n  /**\n   * ID of the scheduled activity, also the ID the activity gets when published\n   */\n  id: string;\n  /**\n   * When the activity will be published\n   */\n  scheduled_at: Date;\n  /**\n   * One of: scheduled, publishing, failed, canceled\n   */\n  status: ScheduledActivityStatus;\n  /**\n   * When the scheduled activity was last changed\n   */\n  updated_at: Date;\n  /**\n   * ID of the user the activity is published as\n   */\n  user_id: string;\n  /**\n   * Feeds the activity will be added to\n   */\n  feeds: string[];\n  /**\n   * The activity a scheduled activity will publish\n   */\n  activity: ScheduledActivityPreview;\n  /**\n   * Why the publish failed; set only when status is failed\n   */\n  failure_reason?: ScheduledActivityFailureReason;\n}\n\nexport type ScheduledActivityStatus =\n  | 'scheduled'\n  | 'publishing'\n  | 'failed'\n  | 'canceled';\n\nexport interface ScheduledActivityUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n  /**\n   * The type of event: \"feeds.scheduled_activity.updated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  user?: UserResponseCommonFields;\n}\n\nexport interface SearchRolesResponse {\n  duration: string;\n  /**\n   * Matching roles, sorted ascending by name\n   */\n  roles: Role[];\n}\n\nexport interface SearchUserGroupsResponse {\n  duration: string;\n  /**\n   * List of matching user groups\n   */\n  user_groups: UserGroupResponse[];\n}\n\nexport interface ShadowBlockActionRequestPayload {\n  /**\n   * Reason for shadow blocking\n   */\n  reason?: string;\n}\n\nexport interface ShareResponse {\n  /**\n   * ID of the sharing (child) activity\n   */\n  activity_id: string;\n  /**\n   * When the share occurred\n   */\n  created_at: Date;\n  /**\n   * User response object\n   */\n  user: UserResponse;\n}\n\nexport interface SharedLocationResponse {\n  /**\n   * Channel CID\n   */\n  channel_cid: string;\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Device ID that created the live location\n   */\n  created_by_device_id: string;\n  duration: string;\n  /**\n   * Latitude coordinate\n   */\n  latitude: number;\n  /**\n   * Longitude coordinate\n   */\n  longitude: number;\n  /**\n   * Message ID\n   */\n  message_id: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  /**\n   * User ID\n   */\n  user_id: string;\n  /**\n   * Time when the live location expires\n   */\n  end_at?: Date;\n  /**\n   * Represents channel in chat\n   */\n  channel?: ChannelResponse;\n  /**\n   * Represents any chat message\n   */\n  message?: MessageResponse;\n}\n\nexport interface SharedLocationResponseData {\n  channel_cid: string;\n  created_at: Date;\n  created_by_device_id: string;\n  latitude: number;\n  longitude: number;\n  message_id: string;\n  updated_at: Date;\n  user_id: string;\n  end_at?: Date;\n  /**\n   * Represents channel in chat\n   */\n  channel?: ChannelResponse;\n  /**\n   * Represents any chat message\n   */\n  message?: MessageResponse;\n}\n\nexport interface SharedLocationsResponse {\n  duration: string;\n  active_live_locations: SharedLocationResponseData[];\n}\n\nexport interface SingleFollowResponse {\n  duration: string;\n  follow: FollowResponse;\n  /**\n   * Whether a notification activity was successfully created\n   */\n  notification_created?: boolean;\n}\n\nexport interface SortParam {\n  direction: number;\n  field: string;\n  type: string;\n}\n\nexport interface SortParamRequest {\n  /**\n   * Direction of sorting, 1 for Ascending, -1 for Descending, default is 1. One of: -1, 1\n   */\n  direction?: number;\n  /**\n   * Name of field to sort by\n   */\n  field?: string;\n  /**\n   * Type of field to sort by. Empty string or omitted means string type (default). One of: number, boolean\n   */\n  type?: string;\n}\n\nexport interface StoriesConfig {\n  skip_watched?: boolean;\n  track_watched?: boolean;\n}\n\nexport interface StoriesFeedUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * The ID of the feed\n   */\n  fid: string;\n  custom: Record<string, any>;\n  /**\n   * The type of event: \"feeds.stories_feed.updated\" in this case\n   */\n  type: string;\n  feed_visibility?: string;\n  received_at?: Date;\n  /**\n   * Individual activities for stories feeds\n   */\n  activities?: ActivityResponse[];\n  /**\n   * Aggregated activities for stories feeds\n   */\n  aggregated_activities?: AggregatedActivityResponse[];\n  user?: UserResponseCommonFields;\n}\n\nexport interface SubmitActionRequest {\n  /**\n   * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, delete_user_messages, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate\n   */\n  action_type:\n    | 'flag'\n    | 'mark_reviewed'\n    | 'delete_message'\n    | 'delete_activity'\n    | 'delete_comment'\n    | 'delete_reaction'\n    | 'ban'\n    | 'custom'\n    | 'unban'\n    | 'restore'\n    | 'delete_user'\n    | 'delete_user_messages'\n    | 'unblock'\n    | 'block'\n    | 'shadow_block'\n    | 'unmask'\n    | 'kick_user'\n    | 'end_call'\n    | 'reject_appeal'\n    | 'escalate'\n    | 'de_escalate'\n    | 'bypass';\n  /**\n   * UUID of the appeal to act on (required for reject_appeal, optional for other actions)\n   */\n  appeal_id?: string;\n  /**\n   * UUID of the review queue item to act on\n   */\n  item_id?: string;\n  /**\n   * Configuration for ban moderation action\n   */\n  ban?: BanActionRequestPayload;\n  /**\n   * Configuration for block action\n   */\n  block?: BlockActionRequestPayload;\n  bypass?: BypassActionRequest;\n  /**\n   * Configuration for custom moderation action\n   */\n  custom?: CustomActionRequestPayload;\n  /**\n   * Configuration for activity deletion action\n   */\n  delete_activity?: DeleteActivityRequestPayload;\n  /**\n   * Configuration for comment deletion action\n   */\n  delete_comment?: DeleteCommentRequestPayload;\n  /**\n   * Configuration for message deletion action\n   */\n  delete_message?: DeleteMessageRequestPayload;\n  /**\n   * Configuration for reaction deletion action\n   */\n  delete_reaction?: DeleteReactionRequestPayload;\n  /**\n   * Configuration for user deletion action\n   */\n  delete_user?: DeleteUserRequestPayload;\n  /**\n   * Configuration for deleting all of a user's chat messages without banning them or deleting their account\n   */\n  delete_user_messages?: DeleteUserMessagesRequestPayload;\n  /**\n   * Configuration for escalation action\n   */\n  escalate?: EscalatePayload;\n  flag?: FlagRequest;\n  /**\n   * Configuration for mark reviewed action\n   */\n  mark_reviewed?: MarkReviewedRequestPayload;\n  /**\n   * Configuration for rejecting an appeal\n   */\n  reject_appeal?: RejectAppealRequestPayload;\n  /**\n   * Configuration for restore action. State-aware: reverses whichever of a delete, a block, or a shadow block currently applies to the content (including both a delete and a block/shadow block at once).\n   */\n  restore?: RestoreActionRequestPayload;\n  /**\n   * Configuration for shadow block action\n   */\n  shadow_block?: ShadowBlockActionRequestPayload;\n  /**\n   * Configuration for unban moderation action\n   */\n  unban?: UnbanActionRequestPayload;\n  /**\n   * @deprecated\n   * Deprecated: Use restore instead, which now also reverses a block or shadow block. Configuration for unblock action.\n   */\n  unblock?: UnblockActionRequestPayload;\n}\n\nexport interface SubmitActionResponse {\n  duration: string;\n  /**\n   * Present when the appeal was accepted but the entity could not be restored automatically. The moderator should restore it manually.\n   */\n  auto_restore_warning?: string;\n  appeal_item?: AppealItemResponse;\n  item?: ReviewQueueItemResponse;\n}\n\nexport interface TextContentParameters {\n  contains_url?: boolean;\n  label_operator?: string;\n  severity?: string;\n  text_length?: number;\n  text_length_operator?: string;\n  blocklist_match?: string[];\n  harm_labels?: string[];\n  llm_harm_labels?: Record<string, string>;\n}\n\nexport interface TextRuleParameters {\n  contains_url?: boolean;\n  semantic_filter_min_threshold?: number;\n  severity?: string;\n  threshold?: number;\n  time_window?: string;\n  blocklist_match?: string[];\n  harm_labels?: string[];\n  semantic_filter_names?: string[];\n  llm_harm_labels?: Record<string, string>;\n}\n\nexport interface ThreadedCommentResponse {\n  bookmark_count: number;\n  confidence_score: number;\n  created_at: Date;\n  downvote_count: number;\n  id: string;\n  object_id: string;\n  object_type: string;\n  reaction_count: number;\n  reply_count: number;\n  score: number;\n  /**\n   * Status of the comment. One of: active, deleted, removed, hidden\n   */\n  status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';\n  updated_at: Date;\n  upvote_count: number;\n  mentioned_users: UserResponse[];\n  own_reactions: FeedsReactionResponse[];\n  /**\n   * User response object\n   */\n  user: UserResponse;\n  controversy_score?: number;\n  deleted_at?: Date;\n  edited_at?: Date;\n  parent_id?: string;\n  text?: string;\n  attachments?: Attachment[];\n  latest_reactions?: FeedsReactionResponse[];\n  /**\n   * Slice of nested comments (may be empty).\n   */\n  replies?: ThreadedCommentResponse[];\n  custom?: Record<string, any>;\n  i18n?: Record<string, string>;\n  /**\n   * Cursor & depth information for a comment's direct replies. Mirrors Reddit's 'load more replies' semantics.\n   */\n  meta?: RepliesMeta;\n  moderation?: ModerationV2Response;\n  reaction_groups?: Record<string, FeedsReactionGroupResponse>;\n}\n\nexport interface Thresholds {\n  explicit?: LabelThresholds;\n  spam?: LabelThresholds;\n  toxic?: LabelThresholds;\n}\n\nexport interface Time {}\n\nexport interface TrackActivityMetricsEvent {\n  /**\n   * The ID of the activity to track the metric for\n   */\n  activity_id: string;\n  /**\n   * The metric name (e.g. views, clicks, impressions). Alphanumeric and underscores only.\n   */\n  metric: string;\n  /**\n   * The amount to increment (positive) or decrement (negative). Defaults to 1. The absolute value counts against rate limits.\n   */\n  delta?: number;\n}\n\nexport interface TrackActivityMetricsEventResult {\n  /**\n   * The activity ID from the request\n   */\n  activity_id: string;\n  /**\n   * Whether the metric was counted (false if rate-limited)\n   */\n  allowed: boolean;\n  /**\n   * The metric name from the request\n   */\n  metric: string;\n  /**\n   * Error message if processing failed\n   */\n  error?: string;\n}\n\nexport interface TrackActivityMetricsRequest {\n  /**\n   * List of metric events to track (max 100 per request)\n   */\n  events: TrackActivityMetricsEvent[];\n}\n\nexport interface TrackActivityMetricsResponse {\n  duration: string;\n  /**\n   * Results for each event in the request, in the same order\n   */\n  results: TrackActivityMetricsEventResult[];\n}\n\nexport interface TranslateActivityRequest {\n  /**\n   * ISO 639-1 language code to translate to\n   */\n  language: string;\n}\n\nexport interface TranslateActivityResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  activity: ActivityResponse;\n}\n\nexport interface TranslateCommentRequest {\n  /**\n   * ISO 639-1 language code to translate to\n   */\n  language: string;\n}\n\nexport interface TranslateCommentResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  comment: CommentResponse;\n}\n\nexport interface TypingIndicatorsResponse {\n  enabled: boolean;\n}\n\nexport interface UnbanActionRequestPayload {\n  /**\n   * Channel CID for channel-specific unban\n   */\n  channel_cid?: string;\n  /**\n   * Reason for the appeal decision\n   */\n  decision_reason?: string;\n  /**\n   * Also remove the future channels ban for this user\n   */\n  remove_future_channels_ban?: boolean;\n  /**\n   * Optional: unban user directly without review item\n   */\n  target_user_id?: string;\n}\n\nexport interface UnbanRequest {}\n\nexport interface UnbanResponse {\n  duration: string;\n}\n\nexport interface UnblockActionRequestPayload {\n  /**\n   * Reason for the appeal decision\n   */\n  decision_reason?: string;\n}\n\nexport interface UnblockUsersRequest {\n  blocked_user_id: string;\n}\n\nexport interface UnblockUsersResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n}\n\nexport interface UnfollowBatchRequest {\n  /**\n   * List of follow relationships to remove, each with optional keep_history\n   */\n  follows: UnfollowPair[];\n  /**\n   * Whether to delete the corresponding notification activity (default: false)\n   */\n  delete_notification_activity?: boolean;\n  /**\n   * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n}\n\nexport interface UnfollowBatchResponse {\n  duration: string;\n  /**\n   * List of follow relationships that were removed\n   */\n  follows: FollowResponse[];\n}\n\nexport interface UnfollowPair {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n  /**\n   * When true, activities from the unfollowed feed will remain in the source feed's timeline (default: false)\n   */\n  keep_history?: boolean;\n}\n\nexport interface UnfollowResponse {\n  duration: string;\n  follow: FollowResponse;\n}\n\nexport interface UnmuteRequest {\n  /**\n   * User IDs to unmute\n   */\n  target_ids: string[];\n}\n\nexport interface UnmuteResponse {\n  duration: string;\n  /**\n   * A list of users that can't be found. Common cause for this is deleted users\n   */\n  non_existing_users?: string[];\n}\n\nexport interface UnpinActivityResponse {\n  duration: string;\n  /**\n   * Fully qualified ID of the feed the activity was unpinned from\n   */\n  feed: string;\n  /**\n   * ID of the user who unpinned the activity\n   */\n  user_id: string;\n  activity: ActivityResponse;\n}\n\nexport interface UpdateActivityPartialRequest {\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned\n   */\n  handle_mention_notifications?: boolean;\n  /**\n   * If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false.\n   */\n  run_activity_processors?: boolean;\n  /**\n   * List of field names to remove. Supported fields: 'custom', 'visibility_tag', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids', 'search_data'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')\n   */\n  unset?: string[];\n  /**\n   * Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids', 'search_data'. For custom fields, use dot-notation (e.g., 'custom.field_name')\n   */\n  set?: Record<string, any>;\n}\n\nexport interface UpdateActivityPartialResponse {\n  duration: string;\n  activity: ActivityResponse;\n}\n\nexport interface UpdateActivityRequest {\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * Time when the activity will expire\n   */\n  expires_at?: Date;\n  /**\n   * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned\n   */\n  handle_mention_notifications?: boolean;\n  /**\n   * Poll ID\n   */\n  poll_id?: string;\n  /**\n   * Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody\n   */\n  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';\n  /**\n   * If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false.\n   */\n  run_activity_processors?: boolean;\n  /**\n   * Whether to skip URL enrichment for the activity\n   */\n  skip_enrich_url?: boolean;\n  /**\n   * The text content of the activity\n   */\n  text?: string;\n  /**\n   * Visibility setting for the activity\n   */\n  visibility?: 'public' | 'private' | 'tag';\n  /**\n   * If visibility is 'tag', this is the tag name and is required\n   */\n  visibility_tag?: string;\n  /**\n   * List of attachments for the activity\n   */\n  attachments?: Attachment[];\n  /**\n   * Collections that this activity references\n   */\n  collection_refs?: string[];\n  /**\n   * List of feeds the activity is present in\n   */\n  feeds?: string[];\n  /**\n   * Tags used for filtering the activity\n   */\n  filter_tags?: string[];\n  /**\n   * Tags indicating interest categories\n   */\n  interest_tags?: string[];\n  /**\n   * List of user IDs mentioned in the activity\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Custom data for the activity\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n  /**\n   * Additional data for search indexing\n   */\n  search_data?: Record<string, any>;\n}\n\nexport interface UpdateActivityResponse {\n  duration: string;\n  activity: ActivityResponse;\n}\n\nexport interface UpdateBlockListRequest {\n  is_confusable_folding_enabled?: boolean;\n  is_leet_check_enabled?: boolean;\n  is_plural_check_enabled?: boolean;\n  is_substring_matching_enabled?: boolean;\n  team?: string;\n  /**\n   * List of words to block\n   */\n  words?: string[];\n}\n\nexport interface UpdateBlockListResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * Block list contains restricted words\n   */\n  blocklist?: BlockListResponse;\n}\n\nexport interface UpdateBookmarkFolderRequest {\n  /**\n   * Name of the folder\n   */\n  name?: string;\n  /**\n   * Custom data for the folder\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpdateBookmarkFolderResponse {\n  duration: string;\n  bookmark_folder: BookmarkFolderResponse;\n}\n\nexport interface UpdateBookmarkRequest {\n  /**\n   * ID of the folder containing the bookmark\n   */\n  folder_id?: string;\n  /**\n   * Move the bookmark to this folder (empty string removes the folder)\n   */\n  new_folder_id?: string;\n  /**\n   * Custom data for the bookmark\n   */\n  custom?: Record<string, any>;\n  new_folder?: AddFolderRequest;\n}\n\nexport interface UpdateBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface UpdateCollectionRequest {\n  /**\n   * Unique identifier for the collection within its name\n   */\n  id: string;\n  /**\n   * Name/type of the collection\n   */\n  name: string;\n  /**\n   * Custom data for the collection (required, must contain at least one key)\n   */\n  custom: Record<string, any>;\n}\n\nexport interface UpdateCollectionsRequest {\n  /**\n   * List of collections to update (only custom data is updatable)\n   */\n  collections: UpdateCollectionRequest[];\n}\n\nexport interface UpdateCollectionsResponse {\n  duration: string;\n  /**\n   * List of updated collections\n   */\n  collections: CollectionResponse[];\n}\n\nexport interface UpdateCommentBookmarkRequest {\n  /**\n   * ID of the folder containing the bookmark\n   */\n  folder_id?: string;\n  /**\n   * Move the bookmark to this folder (empty string removes the folder)\n   */\n  new_folder_id?: string;\n  /**\n   * Custom data for the bookmark\n   */\n  custom?: Record<string, any>;\n  new_folder?: AddFolderRequest;\n}\n\nexport interface UpdateCommentBookmarkResponse {\n  duration: string;\n  bookmark: BookmarkResponse;\n}\n\nexport interface UpdateCommentPartialRequest {\n  /**\n   * @deprecated\n   * Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to handle mention notification changes\n   */\n  handle_mention_notifications?: boolean;\n  /**\n   * Whether to skip URL enrichment\n   */\n  skip_enrich_url?: boolean;\n  /**\n   * Whether to skip push notifications\n   */\n  skip_push?: boolean;\n  /**\n   * List of field names to remove. Supported fields: 'custom', 'attachments', 'mentioned_user_ids', 'status'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')\n   */\n  unset?: string[];\n  /**\n   * Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'mentioned_user_ids', 'status'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')\n   */\n  set?: Record<string, any>;\n}\n\nexport interface UpdateCommentPartialResponse {\n  duration: string;\n  comment: CommentResponse;\n}\n\nexport interface UpdateCommentRequest {\n  /**\n   * Updated text content of the comment\n   */\n  comment?: string;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned\n   */\n  handle_mention_notifications?: boolean;\n  /**\n   * Whether to skip URL enrichment for this comment\n   */\n  skip_enrich_url?: boolean;\n  skip_push?: boolean;\n  /**\n   * Updated media attachments for the comment. Providing this field will replace all existing attachments.\n   */\n  attachments?: Attachment[];\n  /**\n   * List of user IDs mentioned in the comment\n   */\n  mentioned_user_ids?: string[];\n  /**\n   * Updated custom data for the comment\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpdateCommentResponse {\n  duration: string;\n  comment: CommentResponse;\n}\n\nexport interface UpdateFeedMembersRequest {\n  /**\n   * Type of update operation to perform. One of: upsert, remove, set\n   */\n  operation: 'upsert' | 'remove' | 'set';\n  limit?: number;\n  next?: string;\n  prev?: string;\n  /**\n   * List of members to upsert, remove, or set\n   */\n  members?: FeedMemberRequest[];\n}\n\nexport interface UpdateFeedMembersResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  added: FeedMemberResponse[];\n  removed_ids: string[];\n  updated: FeedMemberResponse[];\n}\n\nexport interface UpdateFeedRequest {\n  /**\n   * If true, removes the geographic location from the feed\n   */\n  clear_location?: boolean;\n  /**\n   * Description of the feed\n   */\n  description?: string;\n  /**\n   * If true, enriches the feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * Name of the feed\n   */\n  name?: string;\n  /**\n   * Tags used for filtering feeds\n   */\n  filter_tags?: string[];\n  /**\n   * Custom data for the feed\n   */\n  custom?: Record<string, any>;\n  location?: Location;\n}\n\nexport interface UpdateFeedResponse {\n  duration: string;\n  feed: FeedResponse;\n}\n\nexport interface UpdateFollowRequest {\n  /**\n   * Fully qualified ID of the source feed\n   */\n  source: string;\n  /**\n   * Fully qualified ID of the target feed\n   */\n  target: string;\n  /**\n   * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.\n   */\n  activity_copy_limit?: number;\n  /**\n   * @deprecated\n   * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead\n   */\n  copy_custom_to_notification?: boolean;\n  /**\n   * Whether to create a notification activity for this follow\n   */\n  create_notification_activity?: boolean;\n  /**\n   * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n  /**\n   * Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.\n   */\n  follower_role?: string;\n  /**\n   * Push preference for the follow relationship\n   */\n  push_preference?: 'all' | 'none';\n  /**\n   * Whether to skip push for this follow\n   */\n  skip_push?: boolean;\n  /**\n   * Custom data for the follow relationship\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpdateFollowResponse {\n  duration: string;\n  follow: FollowResponse;\n}\n\nexport interface UpdateLiveLocationRequest {\n  /**\n   * Live location ID\n   */\n  message_id: string;\n  /**\n   * Time when the live location expires\n   */\n  end_at?: Date;\n  /**\n   * Latitude coordinate\n   */\n  latitude?: number;\n  /**\n   * Longitude coordinate\n   */\n  longitude?: number;\n}\n\nexport interface UpdatePollOptionRequest {\n  /**\n   * Option ID\n   */\n  id: string;\n  /**\n   * Option text\n   */\n  text: string;\n  /**\n   * Custom data for this object\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpdatePollPartialRequest {\n  /**\n   * Array of field names to unset\n   */\n  unset?: string[];\n  /**\n   * Sets new field values\n   */\n  set?: Record<string, any>;\n}\n\nexport interface UpdatePollRequest {\n  /**\n   * Poll ID\n   */\n  id: string;\n  /**\n   * Poll name\n   */\n  name: string;\n  /**\n   * Allow answers\n   */\n  allow_answers?: boolean;\n  /**\n   * Allow user suggested options\n   */\n  allow_user_suggested_options?: boolean;\n  /**\n   * Poll description\n   */\n  description?: string;\n  /**\n   * Enforce unique vote\n   */\n  enforce_unique_vote?: boolean;\n  /**\n   * Is closed\n   */\n  is_closed?: boolean;\n  /**\n   * Max votes allowed\n   */\n  max_votes_allowed?: number;\n  /**\n   * Voting visibility\n   */\n  voting_visibility?: 'anonymous' | 'public';\n  /**\n   * Poll options\n   */\n  options?: PollOptionRequest[];\n  /**\n   * Custom data for this object\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpdateQueueRequest {\n  description?: string;\n  name?: string;\n  sort?: Array<Record<string, any>>;\n  filters?: Record<string, any>;\n}\n\nexport interface UpdateScheduledActivityRequest {\n  /**\n   * When to publish the activity, an RFC 3339 time. A time less than a minute ahead or in the past is moved to one minute from now, and the time is rounded up to a whole minute.\n   */\n  scheduled_at?: Date;\n  activity?: ActivityRequest;\n}\n\nexport interface UpdateScheduledActivityResponse {\n  duration: string;\n  /**\n   * An activity scheduled to be published at a future time\n   */\n  scheduled_activity: ScheduledActivityResponse;\n}\n\nexport interface UpdateUserGroupRequest {\n  /**\n   * The new description for the group\n   */\n  description?: string;\n  /**\n   * The new name of the user group\n   */\n  name?: string;\n  team_id?: string;\n}\n\nexport interface UpdateUserGroupResponse {\n  duration: string;\n  user_group?: UserGroupResponse;\n}\n\nexport interface UpdateUserPartialRequest {\n  /**\n   * User ID to update\n   */\n  id: string;\n  unset?: string[];\n  set?: Record<string, any>;\n}\n\nexport interface UpdateUsersPartialRequest {\n  users: UpdateUserPartialRequest[];\n}\n\nexport interface UpdateUsersRequest {\n  /**\n   * Object containing users\n   */\n  users: Record<string, UserRequest>;\n}\n\nexport interface UpdateUsersResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * @deprecated\n   * Deprecated: Always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll.\n   */\n  membership_deletion_task_id: string;\n  /**\n   * Object containing users\n   */\n  users: Record<string, FullUserResponse>;\n}\n\nexport interface UpsertActionConfigItem {\n  action: string;\n  entity_type: string;\n  order: number;\n  description?: string;\n  icon?: string;\n  id?: string;\n  queue_type?: string;\n  custom?: Record<string, any>;\n}\n\nexport interface UpsertActionConfigRequest {\n  /**\n   * The action to perform (e.g. ban, delete_message, custom)\n   */\n  action: string;\n  /**\n   * Type of entity this action applies to (e.g. stream:chat:v1:message)\n   */\n  entity_type: string;\n  /**\n   * Display order in the dashboard (0–100, lower numbers shown first)\n   */\n  order: number;\n  /**\n   * Human-readable label for the dashboard button\n   */\n  description?: string;\n  /**\n   * Icon identifier for the dashboard button\n   */\n  icon?: string;\n  /**\n   * UUID of an existing action config to update; omit to create a new record\n   */\n  id?: string;\n  /**\n   * Queue this config belongs to; null means the default queue\n   */\n  queue_type?: string;\n  /**\n   * Action-specific parameters passed to the action handler\n   */\n  custom?: Record<string, any>;\n}\n\nexport interface UpsertActionConfigResponse {\n  duration: string;\n  /**\n   * Configuration for a moderation action\n   */\n  action_config?: ModerationActionConfigResponse;\n}\n\nexport interface UpsertActivitiesRequest {\n  /**\n   * List of activities to create or update\n   */\n  activities: ActivityRequest[];\n  /**\n   * If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.\n   */\n  enrich_own_fields?: boolean;\n}\n\nexport interface UpsertActivitiesResponse {\n  duration: string;\n  /**\n   * List of created or updated activities\n   */\n  activities: ActivityResponse[];\n  /**\n   * Total number of mention notification activities created for mentioned users across all activities\n   */\n  mention_notifications_created?: number;\n}\n\nexport interface UpsertConfigRequest {\n  /**\n   * Unique identifier for the moderation configuration\n   */\n  key: string;\n  /**\n   * Whether moderation should be performed asynchronously\n   */\n  async?: boolean;\n  /**\n   * Team associated with the configuration\n   */\n  team?: string;\n  ai_audio_config?: AIAudioConfigRequest;\n  ai_image_config?: AIImageConfig;\n  ai_text_config?: AITextConfig;\n  ai_video_config?: AIVideoConfigRequest;\n  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;\n  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;\n  automod_toxicity_config?: AutomodToxicityConfig;\n  aws_rekognition_config?: AIImageConfig;\n  block_list_config?: BlockListConfig;\n  bodyguard_config?: AITextConfig;\n  flood_config?: FloodConfig;\n  google_vision_config?: GoogleVisionConfig;\n  intent_config?: IntentConfigRequest;\n  llm_config?: LLMConfig;\n  rule_builder_config?: RuleBuilderConfig;\n  velocity_filter_config?: VelocityFilterConfig;\n  video_call_rule_config?: VideoCallRuleConfig;\n}\n\nexport interface UpsertConfigResponse {\n  duration: string;\n  config?: ConfigResponse;\n}\n\nexport interface UpsertPushPreferencesRequest {\n  /**\n   * A list of push preferences for channels, calls, or the user.\n   */\n  preferences: PushPreferenceInput[];\n}\n\nexport interface UpsertPushPreferencesResponse {\n  /**\n   * Duration of the request in milliseconds\n   */\n  duration: string;\n  /**\n   * The channel specific push notification preferences, only returned for channels you've edited.\n   */\n  user_channel_preferences: Record<\n    string,\n    Record<string, ChannelPushPreferencesResponse | null>\n  >;\n  /**\n   * The user preferences, always returned regardless if you edited it\n   */\n  user_preferences: Record<string, PushPreferencesResponse>;\n}\n\nexport interface UpsertUserInterestsRequest {\n  /**\n   * Interest tags to add or update (1-50)\n   */\n  interests: UserInterestRequest[];\n}\n\nexport interface UpsertUserInterestsResponse {\n  duration: string;\n  /**\n   * All interest tags of the user after the write\n   */\n  interests: InterestTagResponse[];\n}\n\nexport interface User {\n  id: string;\n  data?: Record<string, any>;\n}\n\nexport interface UserBannedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  user: UserResponseCommonFields;\n  /**\n   * The type of event: \"user.banned\" in this case\n   */\n  type: string;\n  /**\n   * The ID of the channel where the target user was banned\n   */\n  channel_id?: string;\n  channel_member_count?: number;\n  channel_message_count?: number;\n  /**\n   * The type of the channel where the target user was banned\n   */\n  channel_type?: string;\n  /**\n   * The CID of the channel where the target user was banned\n   */\n  cid?: string;\n  /**\n   * The expiration date of the ban\n   */\n  expiration?: Date;\n  /**\n   * The reason for the ban\n   */\n  reason?: string;\n  received_at?: Date;\n  /**\n   * ID of the review queue item (flagged message) that triggered the ban, if the ban was applied from the moderation review queue\n   */\n  review_queue_item_id?: string;\n  /**\n   * Whether the user was shadow banned\n   */\n  shadow?: boolean;\n  /**\n   * The team of the channel where the target user was banned\n   */\n  team?: string;\n  total_bans?: number;\n  channel_custom?: Record<string, any>;\n  created_by?: UserResponseCommonFields;\n}\n\nexport interface UserChannelCountRuleParameters {\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface UserCreatedWithinParameters {\n  max_age?: string;\n}\n\nexport interface UserCustomPropertyParameters {\n  operator?: string;\n  property_key?: string;\n}\n\nexport interface UserDeactivatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  user: UserResponseCommonFields;\n  /**\n   * The type of event: \"user.deactivated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  created_by?: UserResponseCommonFields;\n}\n\nexport interface UserGroupMember {\n  app_pk: number;\n  created_at: Date;\n  group_id: string;\n  is_admin: boolean;\n  user_id: string;\n}\n\nexport interface UserGroupResponse {\n  created_at: Date;\n  id: string;\n  name: string;\n  updated_at: Date;\n  created_by?: string;\n  description?: string;\n  team_id?: string;\n  members?: UserGroupMember[];\n}\n\nexport interface UserIdenticalContentCountParameters {\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface UserIdenticalImageCountParameters {\n  match?: string;\n  similarity_distance?: number;\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface UserInterestRequest {\n  /**\n   * The interest tag; trimmed and lower-cased like activity interest_tags\n   */\n  tag: string;\n  /**\n   * Ranking weight between -1.0 (dislike) and 1.0 (like). Defaults to 1.0\n   */\n  weight?: number;\n}\n\nexport interface UserMuteResponse {\n  created_at: Date;\n  updated_at: Date;\n  expires?: Date;\n  /**\n   * User response object\n   */\n  target?: UserResponse;\n  /**\n   * User response object\n   */\n  user?: UserResponse;\n}\n\nexport interface UserReactionCountRuleParameters {\n  count?: string;\n  threshold?: number;\n  time_window?: string;\n}\n\nexport interface UserReactivatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  user: UserResponseCommonFields;\n  /**\n   * The type of event: \"user.reactivated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n  created_by?: UserResponseCommonFields;\n}\n\nexport interface UserRequest {\n  /**\n   * User ID\n   */\n  id: string;\n  /**\n   * User's profile image URL\n   */\n  image?: string;\n  invisible?: boolean;\n  language?: string;\n  /**\n   * Optional name of user\n   */\n  name?: string;\n  /**\n   * Custom user data\n   */\n  custom?: Record<string, any>;\n  privacy_settings?: PrivacySettingsResponse;\n}\n\nexport interface UserResponse {\n  /**\n   * Whether a user is banned or not\n   */\n  banned: boolean;\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  /**\n   * Unique user identifier\n   */\n  id: string;\n  /**\n   * Preferred language of a user\n   */\n  language: string;\n  /**\n   * Whether a user online or not\n   */\n  online: boolean;\n  /**\n   * Determines the set of user permissions\n   */\n  role: string;\n  /**\n   * Date/time of the last update\n   */\n  updated_at: Date;\n  blocked_user_ids: string[];\n  /**\n   * List of teams user is a part of\n   */\n  teams: string[];\n  /**\n   * Custom data for this object\n   */\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  /**\n   * Date of deactivation\n   */\n  deactivated_at?: Date;\n  /**\n   * Date/time of deletion\n   */\n  deleted_at?: Date;\n  image?: string;\n  /**\n   * Date of last activity\n   */\n  last_active?: Date;\n  /**\n   * Optional name of user\n   */\n  name?: string;\n  /**\n   * Revocation date for tokens\n   */\n  revoke_tokens_issued_before?: Date;\n  teams_role?: Record<string, string>;\n}\n\nexport interface UserResponseCommonFields {\n  banned: boolean;\n  created_at: Date;\n  id: string;\n  language: string;\n  online: boolean;\n  role: string;\n  updated_at: Date;\n  blocked_user_ids: string[];\n  teams: string[];\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  deactivated_at?: Date;\n  deleted_at?: Date;\n  image?: string;\n  last_active?: Date;\n  name?: string;\n  revoke_tokens_issued_before?: Date;\n  teams_role?: Record<string, string>;\n}\n\nexport interface UserResponsePrivacyFields {\n  banned: boolean;\n  created_at: Date;\n  id: string;\n  language: string;\n  online: boolean;\n  role: string;\n  updated_at: Date;\n  blocked_user_ids: string[];\n  teams: string[];\n  custom: Record<string, any>;\n  avg_response_time?: number;\n  deactivated_at?: Date;\n  deleted_at?: Date;\n  image?: string;\n  invisible?: boolean;\n  last_active?: Date;\n  name?: string;\n  revoke_tokens_issued_before?: Date;\n  privacy_settings?: PrivacySettingsResponse;\n  teams_role?: Record<string, string>;\n}\n\nexport interface UserRoleParameters {\n  operator?: string;\n  role?: string;\n}\n\nexport interface UserRuleParameters {\n  max_age?: string;\n}\n\nexport interface UserUnbannedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  user: UserResponseCommonFields;\n  /**\n   * The type of event: \"user.unbanned\" in this case\n   */\n  type: string;\n  /**\n   * The ID of the channel where the target user was unbanned\n   */\n  channel_id?: string;\n  channel_member_count?: number;\n  channel_message_count?: number;\n  /**\n   * The type of the channel where the target user was unbanned\n   */\n  channel_type?: string;\n  /**\n   * The CID of the channel where the target user was unbanned\n   */\n  cid?: string;\n  received_at?: Date;\n  /**\n   * Whether the target user was shadow unbanned\n   */\n  shadow?: boolean;\n  /**\n   * The team of the channel where the target user was unbanned\n   */\n  team?: string;\n  channel_custom?: Record<string, any>;\n  created_by?: UserResponseCommonFields;\n}\n\nexport interface UserUpdatedEvent {\n  /**\n   * Date/time of creation\n   */\n  created_at: Date;\n  custom: Record<string, any>;\n  user: UserResponsePrivacyFields;\n  /**\n   * The type of event: \"user.updated\" in this case\n   */\n  type: string;\n  received_at?: Date;\n}\n\nexport interface VelocityFilterConfig {\n  advanced_filters: boolean;\n  cascading_actions: boolean;\n  cids_per_user: number;\n  enabled: boolean;\n  first_message_only: boolean;\n  rules: VelocityFilterConfigRule[];\n  async?: boolean;\n}\n\nexport interface VelocityFilterConfigRule {\n  action: 'flag' | 'shadow' | 'remove' | 'ban';\n  ban_duration: number;\n  cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';\n  cascading_threshold: number;\n  check_message_context: boolean;\n  fast_spam_threshold: number;\n  fast_spam_ttl: number;\n  ip_ban: boolean;\n  probation_period: number;\n  shadow_ban: boolean;\n  slow_spam_threshold: number;\n  slow_spam_ttl: number;\n  url_only: boolean;\n  slow_spam_ban_duration?: number;\n}\n\nexport interface VideoCallRuleConfig {\n  flag_all_labels: boolean;\n  flagged_labels: string[];\n  rules: HarmConfig[];\n}\n\nexport interface VideoContentParameters {\n  label_operator?: string;\n  harm_labels?: string[];\n}\n\nexport interface VideoEndCallRequestPayload {}\n\nexport interface VideoKickUserRequestPayload {}\n\nexport interface VideoRuleParameters {\n  threshold?: number;\n  time_window?: string;\n  harm_labels?: string[];\n}\n\nexport interface VoteData {\n  answer_text?: string;\n  option_id?: string;\n}\n\nexport interface WSAuthMessage {\n  /**\n   * JWT token for authentication\n   */\n  token: string;\n  user_details: ConnectUserDetailsRequest;\n  /**\n   * Channel-member custom keys to project onto message.member for messages this connection receives (opt-in; capped, off by default).\n   */\n  member_custom_include?: string[];\n  /**\n   * List of products to subscribe to. One of: chat, video, feeds\n   */\n  products?: string[];\n}\n\nexport type WSClientEvent =\n  | ({ type: 'app.updated' } & AppUpdatedEvent)\n  | ({ type: 'feeds.activity.added' } & ActivityAddedEvent)\n  | ({ type: 'feeds.activity.deleted' } & ActivityDeletedEvent)\n  | ({ type: 'feeds.activity.feedback' } & ActivityFeedbackEvent)\n  | ({ type: 'feeds.activity.marked' } & ActivityMarkEvent)\n  | ({ type: 'feeds.activity.pinned' } & ActivityPinnedEvent)\n  | ({ type: 'feeds.activity.reaction.added' } & ActivityReactionAddedEvent)\n  | ({ type: 'feeds.activity.reaction.deleted' } & ActivityReactionDeletedEvent)\n  | ({ type: 'feeds.activity.reaction.updated' } & ActivityReactionUpdatedEvent)\n  | ({\n      type: 'feeds.activity.removed_from_feed';\n    } & ActivityRemovedFromFeedEvent)\n  | ({ type: 'feeds.activity.restored' } & ActivityRestoredEvent)\n  | ({ type: 'feeds.activity.unpinned' } & ActivityUnpinnedEvent)\n  | ({ type: 'feeds.activity.updated' } & ActivityUpdatedEvent)\n  | ({ type: 'feeds.bookmark.added' } & BookmarkAddedEvent)\n  | ({ type: 'feeds.bookmark.deleted' } & BookmarkDeletedEvent)\n  | ({ type: 'feeds.bookmark.updated' } & BookmarkUpdatedEvent)\n  | ({ type: 'feeds.bookmark_folder.deleted' } & BookmarkFolderDeletedEvent)\n  | ({ type: 'feeds.bookmark_folder.updated' } & BookmarkFolderUpdatedEvent)\n  | ({ type: 'feeds.comment.added' } & CommentAddedEvent)\n  | ({ type: 'feeds.comment.deleted' } & CommentDeletedEvent)\n  | ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)\n  | ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)\n  | ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)\n  | ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)\n  | ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)\n  | ({ type: 'feeds.feed.created' } & FeedCreatedEvent)\n  | ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)\n  | ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)\n  | ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)\n  | ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)\n  | ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)\n  | ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)\n  | ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)\n  | ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)\n  | ({ type: 'feeds.follow.created' } & FollowCreatedEvent)\n  | ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)\n  | ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)\n  | ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)\n  | ({ type: 'feeds.poll.closed' } & PollClosedFeedEvent)\n  | ({ type: 'feeds.poll.deleted' } & PollDeletedFeedEvent)\n  | ({ type: 'feeds.poll.updated' } & PollUpdatedFeedEvent)\n  | ({ type: 'feeds.poll.vote_casted' } & PollVoteCastedFeedEvent)\n  | ({ type: 'feeds.poll.vote_changed' } & PollVoteChangedFeedEvent)\n  | ({ type: 'feeds.poll.vote_removed' } & PollVoteRemovedFeedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.created';\n    } & ScheduledActivityCreatedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.deleted';\n    } & ScheduledActivityDeletedEvent)\n  | ({ type: 'feeds.scheduled_activity.failed' } & ScheduledActivityFailedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.published';\n    } & ScheduledActivityPublishedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.updated';\n    } & ScheduledActivityUpdatedEvent)\n  | ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)\n  | ({ type: 'health.check' } & HealthCheckEvent)\n  | ({ type: 'moderation.custom_action' } & ModerationCustomActionEvent)\n  | ({ type: 'moderation.flagged' } & ModerationFlaggedEvent)\n  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)\n  | ({ type: 'user.banned' } & UserBannedEvent)\n  | ({ type: 'user.deactivated' } & UserDeactivatedEvent)\n  | ({ type: 'user.reactivated' } & UserReactivatedEvent)\n  | ({ type: 'user.unbanned' } & UserUnbannedEvent)\n  | ({ type: 'user.updated' } & UserUpdatedEvent);\n\nexport type WSEvent =\n  | ({ type: 'app.updated' } & AppUpdatedEvent)\n  | ({ type: 'feeds.activity.added' } & ActivityAddedEvent)\n  | ({ type: 'feeds.activity.deleted' } & ActivityDeletedEvent)\n  | ({ type: 'feeds.activity.feedback' } & ActivityFeedbackEvent)\n  | ({ type: 'feeds.activity.marked' } & ActivityMarkEvent)\n  | ({ type: 'feeds.activity.pinned' } & ActivityPinnedEvent)\n  | ({ type: 'feeds.activity.reaction.added' } & ActivityReactionAddedEvent)\n  | ({ type: 'feeds.activity.reaction.deleted' } & ActivityReactionDeletedEvent)\n  | ({ type: 'feeds.activity.reaction.updated' } & ActivityReactionUpdatedEvent)\n  | ({\n      type: 'feeds.activity.removed_from_feed';\n    } & ActivityRemovedFromFeedEvent)\n  | ({ type: 'feeds.activity.restored' } & ActivityRestoredEvent)\n  | ({ type: 'feeds.activity.unpinned' } & ActivityUnpinnedEvent)\n  | ({ type: 'feeds.activity.updated' } & ActivityUpdatedEvent)\n  | ({ type: 'feeds.bookmark.added' } & BookmarkAddedEvent)\n  | ({ type: 'feeds.bookmark.deleted' } & BookmarkDeletedEvent)\n  | ({ type: 'feeds.bookmark.updated' } & BookmarkUpdatedEvent)\n  | ({ type: 'feeds.bookmark_folder.deleted' } & BookmarkFolderDeletedEvent)\n  | ({ type: 'feeds.bookmark_folder.updated' } & BookmarkFolderUpdatedEvent)\n  | ({ type: 'feeds.comment.added' } & CommentAddedEvent)\n  | ({ type: 'feeds.comment.deleted' } & CommentDeletedEvent)\n  | ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)\n  | ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)\n  | ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)\n  | ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)\n  | ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)\n  | ({ type: 'feeds.feed.created' } & FeedCreatedEvent)\n  | ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)\n  | ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)\n  | ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)\n  | ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)\n  | ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)\n  | ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)\n  | ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)\n  | ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)\n  | ({ type: 'feeds.follow.created' } & FollowCreatedEvent)\n  | ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)\n  | ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)\n  | ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)\n  | ({ type: 'feeds.poll.closed' } & PollClosedFeedEvent)\n  | ({ type: 'feeds.poll.deleted' } & PollDeletedFeedEvent)\n  | ({ type: 'feeds.poll.updated' } & PollUpdatedFeedEvent)\n  | ({ type: 'feeds.poll.vote_casted' } & PollVoteCastedFeedEvent)\n  | ({ type: 'feeds.poll.vote_changed' } & PollVoteChangedFeedEvent)\n  | ({ type: 'feeds.poll.vote_removed' } & PollVoteRemovedFeedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.created';\n    } & ScheduledActivityCreatedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.deleted';\n    } & ScheduledActivityDeletedEvent)\n  | ({ type: 'feeds.scheduled_activity.failed' } & ScheduledActivityFailedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.published';\n    } & ScheduledActivityPublishedEvent)\n  | ({\n      type: 'feeds.scheduled_activity.updated';\n    } & ScheduledActivityUpdatedEvent)\n  | ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)\n  | ({ type: 'health.check' } & HealthCheckEvent)\n  | ({ type: 'moderation.custom_action' } & ModerationCustomActionEvent)\n  | ({ type: 'moderation.flagged' } & ModerationFlaggedEvent)\n  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)\n  | ({ type: 'user.banned' } & UserBannedEvent)\n  | ({ type: 'user.deactivated' } & UserDeactivatedEvent)\n  | ({ type: 'user.reactivated' } & UserReactivatedEvent)\n  | ({ type: 'user.unbanned' } & UserUnbannedEvent)\n  | ({ type: 'user.updated' } & UserUpdatedEvent);\n","import { StateStore } from '@stream-io/state-store';\nimport type { SearchSource } from './BaseSearchSource';\n\nexport type SearchControllerState = {\n  isActive: boolean;\n  searchQuery: string;\n  sources: SearchSource[];\n};\n\nexport type InternalSearchControllerState = {};\n\nexport type SearchControllerConfig = {\n  // The controller will make sure there is always exactly one active source. Enabled by default.\n  keepSingleActiveSource: boolean;\n};\n\nexport type SearchControllerOptions = {\n  config?: Partial<SearchControllerConfig>;\n  sources?: SearchSource[];\n};\n\nexport class SearchController {\n  /**\n   * Not intended for direct use by integrators, might be removed without notice resulting in\n   * broken integrations.\n   */\n  _internalState: StateStore<InternalSearchControllerState>;\n  state: StateStore<SearchControllerState>;\n  config: SearchControllerConfig;\n\n  constructor({ config, sources }: SearchControllerOptions = {}) {\n    this.state = new StateStore<SearchControllerState>({\n      isActive: false,\n      searchQuery: '',\n      sources: sources ?? [],\n    });\n    this._internalState = new StateStore<InternalSearchControllerState>({});\n    this.config = { keepSingleActiveSource: true, ...config };\n  }\n  get hasNext() {\n    return this.sources.some((source) => source.hasNext);\n  }\n\n  get sources() {\n    return this.state.getLatestValue().sources;\n  }\n\n  get activeSources() {\n    return this.state.getLatestValue().sources.filter((s) => s.isActive);\n  }\n\n  get isActive() {\n    return this.state.getLatestValue().isActive;\n  }\n\n  get searchQuery() {\n    return this.state.getLatestValue().searchQuery;\n  }\n\n  get searchSourceTypes(): Array<SearchSource['type']> {\n    return this.sources.map((s) => s.type);\n  }\n\n  addSource = (source: SearchSource) => {\n    this.state.partialNext({\n      sources: [...this.sources, source],\n    });\n  };\n\n  getSource = (sourceType: SearchSource['type']) =>\n    this.sources.find((s) => s.type === sourceType);\n\n  removeSource = (sourceType: SearchSource['type']) => {\n    const newSources = this.sources.filter((s) => s.type !== sourceType);\n    if (newSources.length === this.sources.length) return;\n    this.state.partialNext({ sources: newSources });\n  };\n\n  activateSource = (sourceType: SearchSource['type']) => {\n    const source = this.getSource(sourceType);\n    if (!source || source.isActive) return;\n    if (this.config.keepSingleActiveSource) {\n      this.sources.forEach((s) => {\n        if (s.type !== sourceType) {\n          s.deactivate();\n        }\n      });\n    }\n    source.activate();\n    this.state.partialNext({ sources: [...this.sources] });\n  };\n\n  deactivateSource = (sourceType: SearchSource['type']) => {\n    const source = this.getSource(sourceType);\n    if (!source?.isActive) return;\n    if (this.activeSources.length === 1) return;\n    source.deactivate();\n    this.state.partialNext({ sources: [...this.sources] });\n  };\n\n  activate = () => {\n    if (!this.activeSources.length) {\n      const sourcesToActivate = this.config.keepSingleActiveSource\n        ? this.sources.slice(0, 1)\n        : this.sources;\n      sourcesToActivate.forEach((s) => s.activate());\n    }\n    if (this.isActive) return;\n    this.state.partialNext({ isActive: true });\n  };\n\n  search = async (searchQuery?: string) => {\n    const searchedSources = this.activeSources;\n    this.state.partialNext({\n      searchQuery,\n    });\n    await Promise.all(\n      searchedSources.map((source) => source.search(searchQuery)),\n    );\n  };\n\n  cancelSearchQueries = () => {\n    this.activeSources.forEach((s) => s.cancelScheduledQuery());\n  };\n\n  clear = () => {\n    this.cancelSearchQueries();\n    this.sources.forEach((source) =>\n      source.state.next({ ...source.initialState, isActive: source.isActive }),\n    );\n    this.state.next((current) => ({\n      ...current,\n      isActive: true,\n      queriesInProgress: [],\n      searchQuery: '',\n    }));\n  };\n\n  exit = () => {\n    this.cancelSearchQueries();\n    this.sources.forEach((source) =>\n      source.state.next({ ...source.initialState, isActive: source.isActive }),\n    );\n    this.state.next((current) => ({\n      ...current,\n      isActive: false,\n      queriesInProgress: [],\n      searchQuery: '',\n    }));\n  };\n}\n","import { StateStore } from '@stream-io/state-store';\nimport { debounce, type DebouncedFunc } from '../utils';\nimport type {\n  QueryReturnValue,\n  SearchSourceOptions,\n  SearchSourceState,\n  SearchSourceType,\n} from './types';\n\nexport type DebounceOptions = {\n  debounceMs: number;\n};\ntype DebouncedExecQueryFunction = DebouncedFunc<\n  (searchString?: string) => Promise<void>\n>;\n\ninterface ISearchSource<T = any> {\n  activate(): void;\n\n  canExecuteQuery(newSearchString?: string): boolean;\n\n  deactivate(): void;\n\n  readonly hasNext: boolean;\n  readonly hasResults: boolean;\n  readonly initialState: SearchSourceState<T>;\n  readonly isActive: boolean;\n  readonly isLoading: boolean;\n  readonly items: T[] | undefined;\n  readonly lastQueryError: Error | undefined;\n  readonly next: string | undefined | null;\n  readonly offset: number | undefined;\n\n  resetState(): void;\n\n  readonly searchQuery: string;\n\n  readonly state: StateStore<SearchSourceState<T>>;\n  readonly type: SearchSourceType;\n}\n\nexport interface SearchSource<T = any> extends ISearchSource<T> {\n  cancelScheduledQuery(): void;\n  setDebounceOptions(options: DebounceOptions): void;\n  search(text?: string): Promise<void> | undefined;\n}\n\nexport interface SearchSourceSync<T = any> extends ISearchSource<T> {\n  cancelScheduledQuery(): void;\n  setDebounceOptions(options: DebounceOptions): void;\n  search(text?: string): void;\n}\n\nconst DEFAULT_SEARCH_SOURCE_OPTIONS: Required<SearchSourceOptions> = {\n  debounceMs: 300,\n  pageSize: 10,\n  allowEmptySearchString: false,\n  resetOnNewSearchQuery: true,\n} as const;\n\nabstract class BaseSearchSourceBase<T> implements ISearchSource<T> {\n  state: StateStore<SearchSourceState<T>>;\n  pageSize: number;\n  protected allowEmptySearchString: boolean;\n  protected resetOnNewSearchQuery: boolean;\n  abstract readonly type: SearchSourceType;\n\n  protected constructor(options?: SearchSourceOptions) {\n    const { pageSize, allowEmptySearchString, resetOnNewSearchQuery } = {\n      ...DEFAULT_SEARCH_SOURCE_OPTIONS,\n      ...options,\n    };\n    this.pageSize = pageSize;\n    this.allowEmptySearchString = allowEmptySearchString;\n    this.resetOnNewSearchQuery = resetOnNewSearchQuery;\n    this.state = new StateStore<SearchSourceState<T>>(this.initialState);\n  }\n\n  get lastQueryError() {\n    return this.state.getLatestValue().lastQueryError;\n  }\n\n  get hasNext() {\n    return this.state.getLatestValue().hasNext;\n  }\n\n  get hasResults() {\n    return Array.isArray(this.state.getLatestValue().items);\n  }\n\n  get isActive() {\n    return this.state.getLatestValue().isActive;\n  }\n\n  get isLoading() {\n    return this.state.getLatestValue().isLoading;\n  }\n\n  get initialState() {\n    return {\n      hasNext: true,\n      isActive: false,\n      isLoading: false,\n      items: undefined,\n      lastQueryError: undefined,\n      next: undefined,\n      offset: 0,\n      searchQuery: '',\n    };\n  }\n\n  get items() {\n    return this.state.getLatestValue().items;\n  }\n\n  get next() {\n    return this.state.getLatestValue().next;\n  }\n\n  get offset() {\n    return this.state.getLatestValue().offset;\n  }\n\n  get searchQuery() {\n    return this.state.getLatestValue().searchQuery;\n  }\n\n  activate = () => {\n    if (this.isActive) return;\n    this.state.partialNext({ isActive: true });\n  };\n\n  deactivate = () => {\n    if (!this.isActive) return;\n    this.state.partialNext({ isActive: false });\n  };\n\n  canExecuteQuery = (newSearchString?: string) => {\n    const hasNewSearchQuery = typeof newSearchString !== 'undefined';\n    const searchString = newSearchString ?? this.searchQuery;\n    return !!(\n      this.isActive &&\n      !this.isLoading &&\n      (this.hasNext || hasNewSearchQuery) &&\n      (this.allowEmptySearchString || searchString)\n    );\n  };\n\n  protected getStateBeforeFirstQuery(\n    newSearchString: string,\n  ): SearchSourceState<T> {\n    const initialState = this.initialState;\n    const oldItems = this.items;\n\n    const items = this.resetOnNewSearchQuery ? initialState.items : oldItems;\n    return {\n      ...this.initialState,\n      items,\n      isActive: this.isActive,\n      isLoading: this.resetOnNewSearchQuery ? true : !oldItems,\n      searchQuery: newSearchString,\n    };\n  }\n\n  protected getStateAfterQuery(\n    stateUpdate: Partial<SearchSourceState<T>>,\n    isFirstPage: boolean,\n  ): SearchSourceState<T> {\n    const current = this.state.getLatestValue();\n    return {\n      ...current,\n      lastQueryError: undefined, // reset lastQueryError that can be overridden by the stateUpdate\n      ...stateUpdate,\n      isLoading: false,\n      items: isFirstPage\n        ? stateUpdate.items\n        : [...(this.items ?? []), ...(stateUpdate.items || [])],\n    };\n  }\n\n  protected prepareStateForQuery(newSearchString?: string) {\n    const hasNewSearchQuery = typeof newSearchString !== 'undefined';\n    const searchString = newSearchString ?? this.searchQuery;\n\n    if (hasNewSearchQuery) {\n      this.state.next(this.getStateBeforeFirstQuery(newSearchString ?? ''));\n    } else {\n      this.state.partialNext({ isLoading: true });\n    }\n\n    return { searchString, hasNewSearchQuery };\n  }\n\n  protected updatePaginationStateFromQuery(result: QueryReturnValue<T>) {\n    const { items, next } = result;\n\n    const stateUpdate: Partial<SearchSourceState<T>> = {};\n    if (Object.prototype.hasOwnProperty.call(result, 'next')) {\n      stateUpdate.next = next;\n      stateUpdate.hasNext = !!next;\n    } else {\n      stateUpdate.offset = (this.offset ?? 0) + items.length;\n      stateUpdate.hasNext = items.length === this.pageSize;\n    }\n\n    return stateUpdate;\n  }\n\n  resetState() {\n    this.state.next(this.initialState);\n  }\n\n  resetStateAndActivate() {\n    this.resetState();\n    this.activate();\n  }\n}\n\nexport abstract class BaseSearchSource<T>\n  extends BaseSearchSourceBase<T>\n  implements SearchSource<T>\n{\n  protected searchDebounced!: DebouncedExecQueryFunction;\n\n  constructor(options?: SearchSourceOptions) {\n    const { debounceMs } = { ...DEFAULT_SEARCH_SOURCE_OPTIONS, ...options };\n    super(options);\n    this.setDebounceOptions({ debounceMs });\n  }\n\n  protected abstract query(searchQuery: string): Promise<QueryReturnValue<T>>;\n\n  protected abstract filterQueryResults(items: T[]): T[] | Promise<T[]>;\n\n  setDebounceOptions = ({ debounceMs }: DebounceOptions) => {\n    this.searchDebounced = debounce(this.executeQuery.bind(this), debounceMs);\n  };\n\n  async executeQuery(newSearchString?: string) {\n    if (!this.canExecuteQuery(newSearchString)) return;\n\n    const { hasNewSearchQuery, searchString } =\n      this.prepareStateForQuery(newSearchString);\n\n    let stateUpdate: Partial<SearchSourceState<T>> = {};\n    try {\n      const results = await this.query(searchString);\n      if (!results) return;\n\n      const { items } = results;\n      stateUpdate = this.updatePaginationStateFromQuery(results);\n      stateUpdate.items = await this.filterQueryResults(items);\n    } catch (e) {\n      stateUpdate.lastQueryError = e as Error;\n    } finally {\n      this.state.next(this.getStateAfterQuery(stateUpdate, hasNewSearchQuery));\n    }\n  }\n\n  search = (searchQuery?: string) => this.searchDebounced(searchQuery);\n\n  cancelScheduledQuery() {\n    this.searchDebounced.cancel();\n  }\n}\n\nexport abstract class BaseSearchSourceSync<T>\n  extends BaseSearchSourceBase<T>\n  implements SearchSourceSync<T>\n{\n  protected searchDebounced!: DebouncedExecQueryFunction;\n\n  constructor(options?: SearchSourceOptions) {\n    const { debounceMs } = { ...DEFAULT_SEARCH_SOURCE_OPTIONS, ...options };\n    super(options);\n    this.setDebounceOptions({ debounceMs });\n  }\n\n  protected abstract query(searchQuery: string): QueryReturnValue<T>;\n\n  protected abstract filterQueryResults(items: T[]): T[];\n\n  setDebounceOptions = ({ debounceMs }: DebounceOptions) => {\n    this.searchDebounced = debounce(this.executeQuery.bind(this), debounceMs);\n  };\n\n  executeQuery(newSearchString?: string) {\n    if (!this.canExecuteQuery(newSearchString)) return;\n\n    const { hasNewSearchQuery, searchString } =\n      this.prepareStateForQuery(newSearchString);\n\n    let stateUpdate: Partial<SearchSourceState<T>> = {};\n    try {\n      const results = this.query(searchString);\n      if (!results) return;\n\n      const { items } = results;\n      stateUpdate = this.updatePaginationStateFromQuery(results);\n      stateUpdate.items = this.filterQueryResults(items);\n    } catch (e) {\n      stateUpdate.lastQueryError = e as Error;\n    } finally {\n      this.state.next(this.getStateAfterQuery(stateUpdate, hasNewSearchQuery));\n    }\n  }\n\n  search = (searchQuery?: string) => this.searchDebounced(searchQuery);\n\n  cancelScheduledQuery() {\n    this.searchDebounced.cancel();\n  }\n}\n","import { BaseSearchSource } from './BaseSearchSource';\nimport type { SearchSourceOptions } from './types';\n\nimport type { FeedsClient } from '../../feeds-client';\nimport type { ActivityResponse } from '../../gen/models';\n\nexport class ActivitySearchSource extends BaseSearchSource<ActivityResponse> {\n  readonly type = 'activity' as const;\n  private readonly client: FeedsClient;\n\n  constructor(client: FeedsClient, options?: SearchSourceOptions) {\n    super(options);\n    this.client = client;\n  }\n\n  protected async query(searchQuery: string) {\n    const { connected_user: connectedUser } =\n      this.client.state.getLatestValue();\n    if (!connectedUser) return { items: [] };\n\n    const { activities: items, next } = await this.client.queryActivities({\n      sort: [{ direction: -1, field: 'created_at' }],\n      ...(!this.allowEmptySearchString || searchQuery.length > 0\n        ? { filter: { text: { $autocomplete: searchQuery } } }\n        : {}),\n      limit: 10,\n      next: this.next ?? undefined,\n    });\n\n    return { items, next };\n  }\n\n  protected filterQueryResults(items: ActivityResponse[]) {\n    return items;\n  }\n}\n","import { BaseSearchSource } from './BaseSearchSource';\nimport type { SearchSourceOptions } from './types';\n\nimport type { FeedsClient } from '../../feeds-client';\nimport type { Feed } from '../../feed';\n\nexport type FeedSearchSourceOptions = SearchSourceOptions & {\n  groupId?: string;\n};\n\nexport class FeedSearchSource extends BaseSearchSource<Feed> {\n  readonly type: string;\n  readonly feedGroupId?: string | undefined;\n  private readonly client: FeedsClient;\n\n  constructor(client: FeedsClient, options?: FeedSearchSourceOptions) {\n    super(options);\n    this.client = client;\n    this.feedGroupId = options?.groupId;\n    this.type = `${this.feedGroupId}-feed`;\n  }\n\n  protected async query(searchQuery: string) {\n    const { connected_user: connectedUser } =\n      this.client.state.getLatestValue();\n    if (!connectedUser) return { items: [] };\n\n    const { feeds: items, next } = await this.client.queryFeeds({\n      filter: {\n        ...(this.feedGroupId ? { group_id: this.feedGroupId } : {}),\n        ...(!this.allowEmptySearchString || searchQuery.length > 0\n          ? {\n              $or: [\n                { name: { $autocomplete: searchQuery } },\n                { description: { $autocomplete: searchQuery } },\n                { 'created_by.name': { $autocomplete: searchQuery } },\n              ],\n            }\n          : {}),\n      },\n      next: this.next ?? undefined,\n    });\n\n    return { items, next };\n  }\n\n  protected filterQueryResults(items: Feed[]) {\n    return items;\n  }\n}\n","import { BaseSearchSource } from './BaseSearchSource';\nimport type { SearchSourceOptions } from './types';\n\nimport type { FeedsClient } from '../../feeds-client';\nimport type { UserResponse } from '../../gen/models';\n\nexport class UserSearchSource extends BaseSearchSource<UserResponse> {\n  readonly type = 'user' as const;\n  private readonly client: FeedsClient;\n\n  constructor(client: FeedsClient, options?: SearchSourceOptions) {\n    super(options);\n    this.client = client;\n  }\n\n  protected async query(searchQuery: string) {\n    const { connected_user: connectedUser } =\n      this.client.state.getLatestValue();\n    if (!connectedUser) return { items: [] };\n\n    const { users: items } = await this.client.queryUsers({\n      payload: {\n        filter_conditions: {\n          ...(!this.allowEmptySearchString || searchQuery.length > 0\n            ? {\n                name: {\n                  $autocomplete: searchQuery,\n                },\n              }\n            : {}),\n        },\n      },\n    });\n\n    return { items, next: undefined };\n  }\n\n  protected filterQueryResults(items: UserResponse[]) {\n    return items;\n  }\n}\n"],"mappings":";;;;AAioEA,IAAa,uBAAuB;CAClC,qBAAqB;CACrB,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,gBAAgB;CAChB,oBAAoB;CACpB,gBAAgB;CAChB,oBAAoB;CACpB,iBAAiB;CACjB,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,eAAe;CACf,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,aAAa;CACb,aAAa;CACb,aAAa;CACb,kBAAkB;CAClB,eAAe;CACf,aAAa;CACb,iBAAiB;CACjB,oBAAoB;CACpB,YAAY;CACZ,cAAc;CACd,WAAW;CACX,eAAe;CACf,YAAY;CACZ,oCAAoC;CACpC,oBAAoB;CACpB,sBAAsB;CACtB,gBAAgB;CAChB,gBAAgB;CAChB,WAAW;CACX,eAAe;CACf,oBAAoB;CACpB,gBAAgB;CAChB,wBAAwB;CACxB,oBAAoB;CACpB,eAAe;CACf,aAAa;CACd;AA+oDD,IAAa,oBAAoB;CAC/B,cAAc;CACd,uBAAuB;CACvB,uBAAuB;CACvB,aAAa;CACb,sBAAsB;CACtB,aAAa;CACb,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,qBAAqB;CACrB,8BAA8B;CAC9B,8BAA8B;CAC9B,oBAAoB;CACpB,6BAA6B;CAC7B,QAAQ;CACR,cAAc;CACd,oBAAoB;CACpB,eAAe;CACf,iBAAiB;CACjB,WAAW;CACX,UAAU;CACV,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,uBAAuB;CACvB,qBAAqB;CACrB,qBAAqB;CACrB,8BAA8B;CAC9B,oBAAoB;CACrB;;;ACp0HD,IAAa,mBAAb,MAA8B;CAS5B,YAAY,EAAE,QAAQ,YAAqC,EAAE,EAAE;oBAiClD,WAAyB;AACpC,QAAK,MAAM,YAAY,EACrB,SAAS,CAAC,GAAG,KAAK,SAAS,OAAO,EACnC,CAAC;;oBAGS,eACX,KAAK,QAAQ,MAAM,MAAM,EAAE,SAAS,WAAW;uBAEjC,eAAqC;GACnD,MAAM,aAAa,KAAK,QAAQ,QAAQ,MAAM,EAAE,SAAS,WAAW;AACpE,OAAI,WAAW,WAAW,KAAK,QAAQ,OAAQ;AAC/C,QAAK,MAAM,YAAY,EAAE,SAAS,YAAY,CAAC;;yBAG/B,eAAqC;GACrD,MAAM,SAAS,KAAK,UAAU,WAAW;AACzC,OAAI,CAAC,UAAU,OAAO,SAAU;AAChC,OAAI,KAAK,OAAO,uBACd,MAAK,QAAQ,SAAS,MAAM;AAC1B,QAAI,EAAE,SAAS,WACb,GAAE,YAAY;KAEhB;AAEJ,UAAO,UAAU;AACjB,QAAK,MAAM,YAAY,EAAE,SAAS,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;;2BAGpC,eAAqC;GACvD,MAAM,SAAS,KAAK,UAAU,WAAW;AACzC,OAAI,CAAC,QAAQ,SAAU;AACvB,OAAI,KAAK,cAAc,WAAW,EAAG;AACrC,UAAO,YAAY;AACnB,QAAK,MAAM,YAAY,EAAE,SAAS,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;;wBAGvC;AACf,OAAI,CAAC,KAAK,cAAc,OAItB,EAH0B,KAAK,OAAO,yBAClC,KAAK,QAAQ,MAAM,GAAG,EAAE,GACxB,KAAK,SACS,SAAS,MAAM,EAAE,UAAU,CAAC;AAEhD,OAAI,KAAK,SAAU;AACnB,QAAK,MAAM,YAAY,EAAE,UAAU,MAAM,CAAC;;gBAGnC,OAAO,gBAAyB;GACvC,MAAM,kBAAkB,KAAK;AAC7B,QAAK,MAAM,YAAY,EACrB,aACD,CAAC;AACF,SAAM,QAAQ,IACZ,gBAAgB,KAAK,WAAW,OAAO,OAAO,YAAY,CAAC,CAC5D;;mCAGyB;AAC1B,QAAK,cAAc,SAAS,MAAM,EAAE,sBAAsB,CAAC;;qBAG/C;AACZ,QAAK,qBAAqB;AAC1B,QAAK,QAAQ,SAAS,WACpB,OAAO,MAAM,KAAK;IAAE,GAAG,OAAO;IAAc,UAAU,OAAO;IAAU,CAAC,CACzE;AACD,QAAK,MAAM,MAAM,aAAa;IAC5B,GAAG;IACH,UAAU;IACV,mBAAmB,EAAE;IACrB,aAAa;IACd,EAAE;;oBAGQ;AACX,QAAK,qBAAqB;AAC1B,QAAK,QAAQ,SAAS,WACpB,OAAO,MAAM,KAAK;IAAE,GAAG,OAAO;IAAc,UAAU,OAAO;IAAU,CAAC,CACzE;AACD,QAAK,MAAM,MAAM,aAAa;IAC5B,GAAG;IACH,UAAU;IACV,mBAAmB,EAAE;IACrB,aAAa;IACd,EAAE;;AArHH,OAAK,QAAQ,IAAI,WAAkC;GACjD,UAAU;GACV,aAAa;GACb,SAAS,WAAW,EAAE;GACvB,CAAC;AACF,OAAK,iBAAiB,IAAI,WAA0C,EAAE,CAAC;AACvE,OAAK,SAAS;GAAE,wBAAwB;GAAM,GAAG;GAAQ;;CAE3D,IAAI,UAAU;AACZ,SAAO,KAAK,QAAQ,MAAM,WAAW,OAAO,QAAQ;;CAGtD,IAAI,UAAU;AACZ,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,gBAAgB;AAClB,SAAO,KAAK,MAAM,gBAAgB,CAAC,QAAQ,QAAQ,MAAM,EAAE,SAAS;;CAGtE,IAAI,WAAW;AACb,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,cAAc;AAChB,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,oBAAiD;AACnD,SAAO,KAAK,QAAQ,KAAK,MAAM,EAAE,KAAK;;;;;ACP1C,IAAM,gCAA+D;CACnE,YAAY;CACZ,UAAU;CACV,wBAAwB;CACxB,uBAAuB;CACxB;AAED,IAAe,uBAAf,MAAmE;CAOjE,YAAsB,SAA+B;wBA4DpC;AACf,OAAI,KAAK,SAAU;AACnB,QAAK,MAAM,YAAY,EAAE,UAAU,MAAM,CAAC;;0BAGzB;AACjB,OAAI,CAAC,KAAK,SAAU;AACpB,QAAK,MAAM,YAAY,EAAE,UAAU,OAAO,CAAC;;0BAG1B,oBAA6B;GAC9C,MAAM,oBAAoB,OAAO,oBAAoB;GACrD,MAAM,eAAe,mBAAmB,KAAK;AAC7C,UAAO,CAAC,EACN,KAAK,YACL,CAAC,KAAK,cACL,KAAK,WAAW,uBAChB,KAAK,0BAA0B;;EA5ElC,MAAM,EAAE,UAAU,wBAAwB,0BAA0B;GAClE,GAAG;GACH,GAAG;GACJ;AACD,OAAK,WAAW;AAChB,OAAK,yBAAyB;AAC9B,OAAK,wBAAwB;AAC7B,OAAK,QAAQ,IAAI,WAAiC,KAAK,aAAa;;CAGtE,IAAI,iBAAiB;AACnB,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,UAAU;AACZ,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,aAAa;AACf,SAAO,MAAM,QAAQ,KAAK,MAAM,gBAAgB,CAAC,MAAM;;CAGzD,IAAI,WAAW;AACb,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,YAAY;AACd,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,eAAe;AACjB,SAAO;GACL,SAAS;GACT,UAAU;GACV,WAAW;GACX,OAAO,KAAA;GACP,gBAAgB,KAAA;GAChB,MAAM,KAAA;GACN,QAAQ;GACR,aAAa;GACd;;CAGH,IAAI,QAAQ;AACV,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,OAAO;AACT,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,SAAS;AACX,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAGrC,IAAI,cAAc;AAChB,SAAO,KAAK,MAAM,gBAAgB,CAAC;;CAwBrC,yBACE,iBACsB;EACtB,MAAM,eAAe,KAAK;EAC1B,MAAM,WAAW,KAAK;EAEtB,MAAM,QAAQ,KAAK,wBAAwB,aAAa,QAAQ;AAChE,SAAO;GACL,GAAG,KAAK;GACR;GACA,UAAU,KAAK;GACf,WAAW,KAAK,wBAAwB,OAAO,CAAC;GAChD,aAAa;GACd;;CAGH,mBACE,aACA,aACsB;AAEtB,SAAO;GACL,GAFc,KAAK,MAAM,gBAAgB;GAGzC,gBAAgB,KAAA;GAChB,GAAG;GACH,WAAW;GACX,OAAO,cACH,YAAY,QACZ,CAAC,GAAI,KAAK,SAAS,EAAE,EAAG,GAAI,YAAY,SAAS,EAAE,CAAE;GAC1D;;CAGH,qBAA+B,iBAA0B;EACvD,MAAM,oBAAoB,OAAO,oBAAoB;EACrD,MAAM,eAAe,mBAAmB,KAAK;AAE7C,MAAI,kBACF,MAAK,MAAM,KAAK,KAAK,yBAAyB,mBAAmB,GAAG,CAAC;MAErE,MAAK,MAAM,YAAY,EAAE,WAAW,MAAM,CAAC;AAG7C,SAAO;GAAE;GAAc;GAAmB;;CAG5C,+BAAyC,QAA6B;EACpE,MAAM,EAAE,OAAO,SAAS;EAExB,MAAM,cAA6C,EAAE;AACrD,MAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,OAAO,EAAE;AACxD,eAAY,OAAO;AACnB,eAAY,UAAU,CAAC,CAAC;SACnB;AACL,eAAY,UAAU,KAAK,UAAU,KAAK,MAAM;AAChD,eAAY,UAAU,MAAM,WAAW,KAAK;;AAG9C,SAAO;;CAGT,aAAa;AACX,OAAK,MAAM,KAAK,KAAK,aAAa;;CAGpC,wBAAwB;AACtB,OAAK,YAAY;AACjB,OAAK,UAAU;;;AAInB,IAAsB,mBAAtB,cACU,qBAEV;CAGE,YAAY,SAA+B;EACzC,MAAM,EAAE,eAAe;GAAE,GAAG;GAA+B,GAAG;GAAS;AACvE,QAAM,QAAQ;6BAQM,EAAE,iBAAkC;AACxD,QAAK,kBAAkB,SAAS,KAAK,aAAa,KAAK,KAAK,EAAE,WAAW;;iBAwBjE,gBAAyB,KAAK,gBAAgB,YAAY;AAhClE,OAAK,mBAAmB,EAAE,YAAY,CAAC;;CAWzC,MAAM,aAAa,iBAA0B;AAC3C,MAAI,CAAC,KAAK,gBAAgB,gBAAgB,CAAE;EAE5C,MAAM,EAAE,mBAAmB,iBACzB,KAAK,qBAAqB,gBAAgB;EAE5C,IAAI,cAA6C,EAAE;AACnD,MAAI;GACF,MAAM,UAAU,MAAM,KAAK,MAAM,aAAa;AAC9C,OAAI,CAAC,QAAS;GAEd,MAAM,EAAE,UAAU;AAClB,iBAAc,KAAK,+BAA+B,QAAQ;AAC1D,eAAY,QAAQ,MAAM,KAAK,mBAAmB,MAAM;WACjD,GAAG;AACV,eAAY,iBAAiB;YACrB;AACR,QAAK,MAAM,KAAK,KAAK,mBAAmB,aAAa,kBAAkB,CAAC;;;CAM5E,uBAAuB;AACrB,OAAK,gBAAgB,QAAQ;;;AAIjC,IAAsB,uBAAtB,cACU,qBAEV;CAGE,YAAY,SAA+B;EACzC,MAAM,EAAE,eAAe;GAAE,GAAG;GAA+B,GAAG;GAAS;AACvE,QAAM,QAAQ;6BAQM,EAAE,iBAAkC;AACxD,QAAK,kBAAkB,SAAS,KAAK,aAAa,KAAK,KAAK,EAAE,WAAW;;iBAwBjE,gBAAyB,KAAK,gBAAgB,YAAY;AAhClE,OAAK,mBAAmB,EAAE,YAAY,CAAC;;CAWzC,aAAa,iBAA0B;AACrC,MAAI,CAAC,KAAK,gBAAgB,gBAAgB,CAAE;EAE5C,MAAM,EAAE,mBAAmB,iBACzB,KAAK,qBAAqB,gBAAgB;EAE5C,IAAI,cAA6C,EAAE;AACnD,MAAI;GACF,MAAM,UAAU,KAAK,MAAM,aAAa;AACxC,OAAI,CAAC,QAAS;GAEd,MAAM,EAAE,UAAU;AAClB,iBAAc,KAAK,+BAA+B,QAAQ;AAC1D,eAAY,QAAQ,KAAK,mBAAmB,MAAM;WAC3C,GAAG;AACV,eAAY,iBAAiB;YACrB;AACR,QAAK,MAAM,KAAK,KAAK,mBAAmB,aAAa,kBAAkB,CAAC;;;CAM5E,uBAAuB;AACrB,OAAK,gBAAgB,QAAQ;;;;;AChTjC,IAAa,uBAAb,cAA0C,iBAAmC;CAI3E,YAAY,QAAqB,SAA+B;AAC9D,QAAM,QAAQ;cAJA;AAKd,OAAK,SAAS;;CAGhB,MAAgB,MAAM,aAAqB;EACzC,MAAM,EAAE,gBAAgB,kBACtB,KAAK,OAAO,MAAM,gBAAgB;AACpC,MAAI,CAAC,cAAe,QAAO,EAAE,OAAO,EAAE,EAAE;EAExC,MAAM,EAAE,YAAY,OAAO,SAAS,MAAM,KAAK,OAAO,gBAAgB;GACpE,MAAM,CAAC;IAAE,WAAW;IAAI,OAAO;IAAc,CAAC;GAC9C,GAAI,CAAC,KAAK,0BAA0B,YAAY,SAAS,IACrD,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,aAAa,EAAE,EAAE,GACpD,EAAE;GACN,OAAO;GACP,MAAM,KAAK,QAAQ,KAAA;GACpB,CAAC;AAEF,SAAO;GAAE;GAAO;GAAM;;CAGxB,mBAA6B,OAA2B;AACtD,SAAO;;;;;ACvBX,IAAa,mBAAb,cAAsC,iBAAuB;CAK3D,YAAY,QAAqB,SAAmC;AAClE,QAAM,QAAQ;AACd,OAAK,SAAS;AACd,OAAK,cAAc,SAAS;AAC5B,OAAK,OAAO,GAAG,KAAK,YAAY;;CAGlC,MAAgB,MAAM,aAAqB;EACzC,MAAM,EAAE,gBAAgB,kBACtB,KAAK,OAAO,MAAM,gBAAgB;AACpC,MAAI,CAAC,cAAe,QAAO,EAAE,OAAO,EAAE,EAAE;EAExC,MAAM,EAAE,OAAO,OAAO,SAAS,MAAM,KAAK,OAAO,WAAW;GAC1D,QAAQ;IACN,GAAI,KAAK,cAAc,EAAE,UAAU,KAAK,aAAa,GAAG,EAAE;IAC1D,GAAI,CAAC,KAAK,0BAA0B,YAAY,SAAS,IACrD,EACE,KAAK;KACH,EAAE,MAAM,EAAE,eAAe,aAAa,EAAE;KACxC,EAAE,aAAa,EAAE,eAAe,aAAa,EAAE;KAC/C,EAAE,mBAAmB,EAAE,eAAe,aAAa,EAAE;KACtD,EACF,GACD,EAAE;IACP;GACD,MAAM,KAAK,QAAQ,KAAA;GACpB,CAAC;AAEF,SAAO;GAAE;GAAO;GAAM;;CAGxB,mBAA6B,OAAe;AAC1C,SAAO;;;;;ACzCX,IAAa,mBAAb,cAAsC,iBAA+B;CAInE,YAAY,QAAqB,SAA+B;AAC9D,QAAM,QAAQ;cAJA;AAKd,OAAK,SAAS;;CAGhB,MAAgB,MAAM,aAAqB;EACzC,MAAM,EAAE,gBAAgB,kBACtB,KAAK,OAAO,MAAM,gBAAgB;AACpC,MAAI,CAAC,cAAe,QAAO,EAAE,OAAO,EAAE,EAAE;EAExC,MAAM,EAAE,OAAO,UAAU,MAAM,KAAK,OAAO,WAAW,EACpD,SAAS,EACP,mBAAmB,EACjB,GAAI,CAAC,KAAK,0BAA0B,YAAY,SAAS,IACrD,EACE,MAAM,EACJ,eAAe,aAChB,EACF,GACD,EAAE,EACP,EACF,EACF,CAAC;AAEF,SAAO;GAAE;GAAO,MAAM,KAAA;GAAW;;CAGnC,mBAA6B,OAAuB;AAClD,SAAO"}