fastcomments 1.2.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -3
  3. data/client/README.md +165 -102
  4. data/client/docs/APIBanUserChangeLog.md +24 -0
  5. data/client/docs/APIBanUserChangedValues.md +42 -0
  6. data/client/docs/APIBannedUser.md +42 -0
  7. data/client/docs/APIBannedUserWithMultiMatchInfo.md +34 -0
  8. data/client/docs/APIComment.md +2 -2
  9. data/client/docs/APICommentBase.md +2 -2
  10. data/client/docs/APICommentCommonBannedUser.md +32 -0
  11. data/client/docs/APIModerateGetUserBanPreferencesResponse.md +20 -0
  12. data/client/docs/APIModerateUserBanPreferences.md +24 -0
  13. data/client/docs/{SaveCommentResponse.md → APISaveCommentResponse.md} +3 -3
  14. data/client/docs/{AddDomainConfig200Response.md → AddDomainConfigResponse.md} +2 -2
  15. data/client/docs/{AddDomainConfig200ResponseAnyOf.md → AddDomainConfigResponseAnyOf.md} +2 -2
  16. data/client/docs/AdjustCommentVotesParams.md +18 -0
  17. data/client/docs/AdjustVotesResponse.md +20 -0
  18. data/client/docs/AggregateResponse.md +28 -0
  19. data/client/docs/AggregationAPIError.md +24 -0
  20. data/client/docs/AwardUserBadgeResponse.md +22 -0
  21. data/client/docs/BanUserFromCommentResult.md +24 -0
  22. data/client/docs/BanUserUndoParams.md +18 -0
  23. data/client/docs/BannedUserMatch.md +20 -0
  24. data/client/docs/{RecordStringStringOrNumberValue.md → BannedUserMatchMatchedOnValue.md} +2 -2
  25. data/client/docs/BannedUserMatchType.md +15 -0
  26. data/client/docs/BuildModerationFilterParams.md +26 -0
  27. data/client/docs/BuildModerationFilterResponse.md +20 -0
  28. data/client/docs/BulkCreateHashTagsResponse.md +1 -1
  29. data/client/docs/{PatchHashTag200Response.md → BulkCreateHashTagsResponseResultsInner.md} +2 -2
  30. data/client/docs/BulkPreBanParams.md +18 -0
  31. data/client/docs/BulkPreBanSummary.md +28 -0
  32. data/client/docs/CommentData.md +4 -2
  33. data/client/docs/CommentLogData.md +2 -0
  34. data/client/docs/CommentsByIdsParams.md +18 -0
  35. data/client/docs/CreateCommentParams.md +3 -1
  36. data/client/docs/CreateTenantPackageBody.md +4 -4
  37. data/client/docs/CreateV1PageReact.md +20 -0
  38. data/client/docs/CustomConfigParameters.md +10 -0
  39. data/client/docs/DefaultApi.md +403 -399
  40. data/client/docs/{DeleteDomainConfig200Response.md → DeleteDomainConfigResponse.md} +2 -2
  41. data/client/docs/{DeleteFeedPostPublic200ResponseAnyOf.md → DeleteFeedPostPublicResponse.md} +2 -2
  42. data/client/docs/{DeleteHashTagRequest.md → DeleteHashTagRequestBody.md} +2 -2
  43. data/client/docs/FComment.md +3 -1
  44. data/client/docs/GetBannedUsersCountResponse.md +20 -0
  45. data/client/docs/GetBannedUsersFromCommentResponse.md +22 -0
  46. data/client/docs/GetCommentBanStatusResponse.md +22 -0
  47. data/client/docs/GetCommentTextResponse.md +20 -0
  48. data/client/docs/GetCommentsForUserResponse.md +18 -0
  49. data/client/docs/{GetDomainConfig200Response.md → GetDomainConfigResponse.md} +2 -2
  50. data/client/docs/{GetDomainConfigs200Response.md → GetDomainConfigsResponse.md} +2 -2
  51. data/client/docs/{GetDomainConfigs200ResponseAnyOf.md → GetDomainConfigsResponseAnyOf.md} +2 -2
  52. data/client/docs/{GetDomainConfigs200ResponseAnyOf1.md → GetDomainConfigsResponseAnyOf1.md} +2 -2
  53. data/client/docs/GetGifsSearchResponse.md +22 -0
  54. data/client/docs/GetGifsTrendingResponse.md +22 -0
  55. data/client/docs/GetPublicPagesResponse.md +22 -0
  56. data/client/docs/{GetSSOUsers200Response.md → GetSSOUsersResponse.md} +2 -2
  57. data/client/docs/GetTenantManualBadgesResponse.md +20 -0
  58. data/client/docs/GetTranslationsResponse.md +20 -0
  59. data/client/docs/GetUserInternalProfileResponse.md +20 -0
  60. data/client/docs/GetUserInternalProfileResponseProfile.md +50 -0
  61. data/client/docs/GetUserManualBadgesResponse.md +20 -0
  62. data/client/docs/GetUserTrustFactorResponse.md +22 -0
  63. data/client/docs/GetV1PageLikes.md +26 -0
  64. data/client/docs/GetV2PageReactUsersResponse.md +20 -0
  65. data/client/docs/GetV2PageReacts.md +22 -0
  66. data/client/docs/GifGetLargeResponse.md +20 -0
  67. data/client/docs/GifSearchInternalError.md +20 -0
  68. data/client/docs/GifSearchResponse.md +20 -0
  69. data/client/docs/GifSearchResponseImagesInnerInner.md +15 -0
  70. data/client/docs/HeaderAccountNotification.md +3 -1
  71. data/client/docs/ImportedAgentApprovalNotificationFrequency.md +15 -0
  72. data/client/docs/LiveEvent.md +2 -0
  73. data/client/docs/ModerationAPIChildCommentsResponse.md +20 -0
  74. data/client/docs/ModerationAPIComment.md +100 -0
  75. data/client/docs/ModerationAPICommentLog.md +24 -0
  76. data/client/docs/ModerationAPICommentResponse.md +20 -0
  77. data/client/docs/ModerationAPICountCommentsResponse.md +20 -0
  78. data/client/docs/ModerationAPIGetCommentIdsResponse.md +22 -0
  79. data/client/docs/ModerationAPIGetCommentsResponse.md +24 -0
  80. data/client/docs/ModerationAPIGetLogsResponse.md +20 -0
  81. data/client/docs/ModerationApi.md +2990 -0
  82. data/client/docs/ModerationCommentSearchResponse.md +20 -0
  83. data/client/docs/ModerationExportResponse.md +20 -0
  84. data/client/docs/ModerationExportStatusResponse.md +24 -0
  85. data/client/docs/ModerationFilter.md +40 -0
  86. data/client/docs/ModerationPageSearchProjected.md +24 -0
  87. data/client/docs/ModerationPageSearchResponse.md +20 -0
  88. data/client/docs/ModerationSiteSearchProjected.md +20 -0
  89. data/client/docs/ModerationSiteSearchResponse.md +20 -0
  90. data/client/docs/ModerationSuggestResponse.md +24 -0
  91. data/client/docs/ModerationUserSearchProjected.md +24 -0
  92. data/client/docs/ModerationUserSearchResponse.md +20 -0
  93. data/client/docs/PageUserEntry.md +24 -0
  94. data/client/docs/PageUsersInfoResponse.md +20 -0
  95. data/client/docs/PageUsersOfflineResponse.md +24 -0
  96. data/client/docs/PageUsersOnlineResponse.md +28 -0
  97. data/client/docs/PagesSortBy.md +15 -0
  98. data/client/docs/PatchDomainConfigResponse.md +24 -0
  99. data/client/docs/PostRemoveCommentResponse.md +20 -0
  100. data/client/docs/PreBanSummary.md +22 -0
  101. data/client/docs/PublicApi.md +1569 -385
  102. data/client/docs/PublicPage.md +26 -0
  103. data/client/docs/PutDomainConfigResponse.md +24 -0
  104. data/client/docs/RemoveCommentActionResponse.md +20 -0
  105. data/client/docs/RemoveUserBadgeResponse.md +20 -0
  106. data/client/docs/{SaveComment200Response.md → SaveCommentsBulkResponse.md} +3 -3
  107. data/client/docs/SearchUsersResult.md +22 -0
  108. data/client/docs/SetCommentApprovedResponse.md +20 -0
  109. data/client/docs/SetCommentTextParams.md +18 -0
  110. data/client/docs/SetCommentTextResponse.md +20 -0
  111. data/client/docs/SetUserTrustFactorResponse.md +20 -0
  112. data/client/docs/TenantBadge.md +58 -0
  113. data/client/docs/TenantPackage.md +15 -1
  114. data/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +24 -0
  115. data/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +24 -0
  116. data/client/docs/UpdateUserNotificationStatusResponse.md +24 -0
  117. data/client/docs/User.md +2 -0
  118. data/client/docs/UsersListLocation.md +15 -0
  119. data/client/docs/VoteResponse.md +1 -1
  120. data/client/docs/VoteResponseStatus.md +15 -0
  121. data/client/fastcomments-client.gemspec +1 -1
  122. data/client/lib/fastcomments-client/api/default_api.rb +307 -301
  123. data/client/lib/fastcomments-client/api/moderation_api.rb +2828 -0
  124. data/client/lib/fastcomments-client/api/public_api.rb +1467 -281
  125. data/client/lib/fastcomments-client/api_client.rb +3 -7
  126. data/client/lib/fastcomments-client/api_error.rb +1 -1
  127. data/client/lib/fastcomments-client/configuration.rb +1 -1
  128. data/client/lib/fastcomments-client/models/add_domain_config_params.rb +75 -2
  129. data/client/lib/fastcomments-client/models/add_domain_config_response.rb +104 -0
  130. data/client/lib/fastcomments-client/models/{add_domain_config200_response_any_of.rb → add_domain_config_response_any_of.rb} +77 -4
  131. data/client/lib/fastcomments-client/models/add_page_api_response.rb +75 -2
  132. data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +75 -2
  133. data/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb +237 -0
  134. data/client/lib/fastcomments-client/models/adjust_votes_response.rb +263 -0
  135. data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +75 -2
  136. data/client/lib/fastcomments-client/models/{add_domain_config200_response.rb → aggregate_response.rb} +6 -5
  137. data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +1 -1
  138. data/client/lib/fastcomments-client/models/aggregation_api_error.rb +322 -0
  139. data/client/lib/fastcomments-client/models/aggregation_item.rb +75 -2
  140. data/client/lib/fastcomments-client/models/aggregation_op_type.rb +1 -1
  141. data/client/lib/fastcomments-client/models/aggregation_operation.rb +75 -2
  142. data/client/lib/fastcomments-client/models/aggregation_request.rb +75 -2
  143. data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +75 -2
  144. data/client/lib/fastcomments-client/models/aggregation_response.rb +75 -2
  145. data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +75 -2
  146. data/client/lib/fastcomments-client/models/aggregation_value.rb +75 -2
  147. data/client/lib/fastcomments-client/models/api_audit_log.rb +75 -2
  148. data/client/lib/fastcomments-client/models/api_ban_user_change_log.rb +249 -0
  149. data/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb +333 -0
  150. data/client/lib/fastcomments-client/models/api_banned_user.rb +454 -0
  151. data/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb +375 -0
  152. data/client/lib/fastcomments-client/models/api_comment.rb +91 -18
  153. data/client/lib/fastcomments-client/models/api_comment_base.rb +91 -18
  154. data/client/lib/fastcomments-client/models/api_comment_base_meta.rb +75 -2
  155. data/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb +340 -0
  156. data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +75 -2
  157. data/client/lib/fastcomments-client/models/api_domain_configuration.rb +75 -2
  158. data/client/lib/fastcomments-client/models/api_empty_response.rb +75 -2
  159. data/client/lib/fastcomments-client/models/api_empty_success_response.rb +75 -2
  160. data/client/lib/fastcomments-client/models/api_error.rb +75 -2
  161. data/client/lib/fastcomments-client/models/api_get_comment_response.rb +75 -2
  162. data/client/lib/fastcomments-client/models/api_get_comments_response.rb +75 -2
  163. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +75 -2
  164. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +75 -2
  165. data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +75 -2
  166. data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +75 -2
  167. data/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb +271 -0
  168. data/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb +315 -0
  169. data/client/lib/fastcomments-client/models/api_page.rb +75 -2
  170. data/client/lib/fastcomments-client/models/{save_comment_response.rb → api_save_comment_response.rb} +78 -5
  171. data/client/lib/fastcomments-client/models/api_status.rb +1 -1
  172. data/client/lib/fastcomments-client/models/api_tenant.rb +75 -2
  173. data/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +75 -2
  174. data/client/lib/fastcomments-client/models/api_ticket.rb +75 -2
  175. data/client/lib/fastcomments-client/models/api_ticket_detail.rb +75 -2
  176. data/client/lib/fastcomments-client/models/api_ticket_file.rb +75 -2
  177. data/client/lib/fastcomments-client/models/api_user_subscription.rb +75 -2
  178. data/client/lib/fastcomments-client/models/apisso_user.rb +75 -2
  179. data/client/lib/fastcomments-client/models/award_user_badge_response.rb +281 -0
  180. data/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb +264 -0
  181. data/client/lib/fastcomments-client/models/ban_user_undo_params.rb +237 -0
  182. data/client/lib/fastcomments-client/models/banned_user_match.rb +271 -0
  183. data/client/lib/fastcomments-client/models/{record_string_string_or_number_value.rb → banned_user_match_matched_on_value.rb} +4 -3
  184. data/client/lib/fastcomments-client/models/banned_user_match_type.rb +42 -0
  185. data/client/lib/fastcomments-client/models/billing_info.rb +75 -2
  186. data/client/lib/fastcomments-client/models/block_from_comment_params.rb +75 -2
  187. data/client/lib/fastcomments-client/models/block_success.rb +75 -2
  188. data/client/lib/fastcomments-client/models/build_moderation_filter_params.rb +290 -0
  189. data/client/lib/fastcomments-client/models/build_moderation_filter_response.rb +263 -0
  190. data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +75 -2
  191. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +75 -2
  192. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +75 -2
  193. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +75 -2
  194. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +75 -2
  195. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +76 -3
  196. data/client/lib/fastcomments-client/models/{add_hash_tag200_response.rb → bulk_create_hash_tags_response_results_inner.rb} +4 -3
  197. data/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb +239 -0
  198. data/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb +375 -0
  199. data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +75 -2
  200. data/client/lib/fastcomments-client/models/change_ticket_state_body.rb +75 -2
  201. data/client/lib/fastcomments-client/models/change_ticket_state_response.rb +75 -2
  202. data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +75 -2
  203. data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +75 -2
  204. data/client/lib/fastcomments-client/models/comment_data.rb +89 -7
  205. data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +1 -1
  206. data/client/lib/fastcomments-client/models/comment_log_data.rb +85 -3
  207. data/client/lib/fastcomments-client/models/comment_log_entry.rb +75 -2
  208. data/client/lib/fastcomments-client/models/comment_log_type.rb +1 -1
  209. data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +1 -1
  210. data/client/lib/fastcomments-client/models/comment_questions_required.rb +1 -1
  211. data/client/lib/fastcomments-client/models/comment_text_update_request.rb +75 -2
  212. data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +1 -1
  213. data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +75 -2
  214. data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +75 -2
  215. data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +75 -2
  216. data/client/lib/fastcomments-client/models/commenter_name_formats.rb +1 -1
  217. data/client/lib/fastcomments-client/models/comments_by_ids_params.rb +239 -0
  218. data/client/lib/fastcomments-client/models/create_api_page_data.rb +75 -2
  219. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +75 -2
  220. data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +75 -2
  221. data/client/lib/fastcomments-client/models/create_comment_params.rb +86 -4
  222. data/client/lib/fastcomments-client/models/create_email_template_body.rb +75 -2
  223. data/client/lib/fastcomments-client/models/create_email_template_response.rb +75 -2
  224. data/client/lib/fastcomments-client/models/create_feed_post_params.rb +75 -2
  225. data/client/lib/fastcomments-client/models/create_feed_post_response.rb +75 -2
  226. data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +75 -2
  227. data/client/lib/fastcomments-client/models/create_hash_tag_body.rb +75 -2
  228. data/client/lib/fastcomments-client/models/create_hash_tag_response.rb +75 -2
  229. data/client/lib/fastcomments-client/models/create_moderator_body.rb +75 -2
  230. data/client/lib/fastcomments-client/models/create_moderator_response.rb +75 -2
  231. data/client/lib/fastcomments-client/models/create_question_config_body.rb +75 -2
  232. data/client/lib/fastcomments-client/models/create_question_config_response.rb +75 -2
  233. data/client/lib/fastcomments-client/models/create_question_result_body.rb +75 -2
  234. data/client/lib/fastcomments-client/models/create_question_result_response.rb +75 -2
  235. data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +75 -2
  236. data/client/lib/fastcomments-client/models/create_tenant_body.rb +75 -2
  237. data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +88 -15
  238. data/client/lib/fastcomments-client/models/create_tenant_package_response.rb +75 -2
  239. data/client/lib/fastcomments-client/models/create_tenant_response.rb +75 -2
  240. data/client/lib/fastcomments-client/models/create_tenant_user_body.rb +75 -2
  241. data/client/lib/fastcomments-client/models/create_tenant_user_response.rb +75 -2
  242. data/client/lib/fastcomments-client/models/create_ticket_body.rb +75 -2
  243. data/client/lib/fastcomments-client/models/create_ticket_response.rb +75 -2
  244. data/client/lib/fastcomments-client/models/create_user_badge_params.rb +75 -2
  245. data/client/lib/fastcomments-client/models/create_v1_page_react.rb +268 -0
  246. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +124 -3
  247. data/client/lib/fastcomments-client/models/custom_email_template.rb +75 -2
  248. data/client/lib/fastcomments-client/models/delete_comment_action.rb +1 -1
  249. data/client/lib/fastcomments-client/models/delete_comment_result.rb +75 -2
  250. data/client/lib/fastcomments-client/models/delete_domain_config_response.rb +223 -0
  251. data/client/lib/fastcomments-client/models/{delete_feed_post_public200_response_any_of.rb → delete_feed_post_public_response.rb} +77 -4
  252. data/client/lib/fastcomments-client/models/{delete_hash_tag_request.rb → delete_hash_tag_request_body.rb} +77 -4
  253. data/client/lib/fastcomments-client/models/delete_page_api_response.rb +75 -2
  254. data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +75 -2
  255. data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +75 -2
  256. data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +75 -2
  257. data/client/lib/fastcomments-client/models/digest_email_frequency.rb +1 -1
  258. data/client/lib/fastcomments-client/models/email_template_definition.rb +75 -2
  259. data/client/lib/fastcomments-client/models/email_template_render_error_response.rb +75 -2
  260. data/client/lib/fastcomments-client/models/event_log_entry.rb +75 -2
  261. data/client/lib/fastcomments-client/models/f_comment.rb +88 -6
  262. data/client/lib/fastcomments-client/models/f_comment_meta.rb +75 -2
  263. data/client/lib/fastcomments-client/models/feed_post.rb +75 -2
  264. data/client/lib/fastcomments-client/models/feed_post_link.rb +75 -2
  265. data/client/lib/fastcomments-client/models/feed_post_media_item.rb +75 -2
  266. data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +75 -2
  267. data/client/lib/fastcomments-client/models/feed_post_stats.rb +75 -2
  268. data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +75 -2
  269. data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +75 -2
  270. data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +75 -2
  271. data/client/lib/fastcomments-client/models/flag_comment_response.rb +75 -2
  272. data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +75 -2
  273. data/client/lib/fastcomments-client/models/get_banned_users_count_response.rb +263 -0
  274. data/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb +308 -0
  275. data/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +75 -2
  276. data/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb +261 -0
  277. data/client/lib/fastcomments-client/models/get_comment_text_response.rb +269 -0
  278. data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +75 -2
  279. data/client/lib/fastcomments-client/models/get_comments_for_user_response.rb +222 -0
  280. data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +75 -2
  281. data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +75 -2
  282. data/client/lib/fastcomments-client/models/get_domain_config_response.rb +104 -0
  283. data/client/lib/fastcomments-client/models/get_domain_configs_response.rb +104 -0
  284. data/client/lib/fastcomments-client/models/{get_domain_configs200_response_any_of.rb → get_domain_configs_response_any_of.rb} +77 -4
  285. data/client/lib/fastcomments-client/models/{get_domain_configs200_response_any_of1.rb → get_domain_configs_response_any_of1.rb} +77 -4
  286. data/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +75 -2
  287. data/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +75 -2
  288. data/client/lib/fastcomments-client/models/get_email_template_response.rb +75 -2
  289. data/client/lib/fastcomments-client/models/get_email_templates_response.rb +75 -2
  290. data/client/lib/fastcomments-client/models/get_event_log_response.rb +75 -2
  291. data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +75 -2
  292. data/client/lib/fastcomments-client/models/{add_hash_tags_bulk200_response.rb → get_gifs_search_response.rb} +6 -5
  293. data/client/lib/fastcomments-client/models/get_gifs_trending_response.rb +104 -0
  294. data/client/lib/fastcomments-client/models/get_hash_tags_response.rb +75 -2
  295. data/client/lib/fastcomments-client/models/get_moderator_response.rb +75 -2
  296. data/client/lib/fastcomments-client/models/get_moderators_response.rb +75 -2
  297. data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +75 -2
  298. data/client/lib/fastcomments-client/models/get_notification_count_response.rb +75 -2
  299. data/client/lib/fastcomments-client/models/get_notifications_response.rb +75 -2
  300. data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +75 -2
  301. data/client/lib/fastcomments-client/models/get_pages_api_response.rb +75 -2
  302. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +75 -2
  303. data/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +75 -2
  304. data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +75 -2
  305. data/client/lib/fastcomments-client/models/get_public_pages_response.rb +299 -0
  306. data/client/lib/fastcomments-client/models/get_question_config_response.rb +75 -2
  307. data/client/lib/fastcomments-client/models/get_question_configs_response.rb +75 -2
  308. data/client/lib/fastcomments-client/models/get_question_result_response.rb +75 -2
  309. data/client/lib/fastcomments-client/models/get_question_results_response.rb +75 -2
  310. data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +75 -2
  311. data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +75 -2
  312. data/client/lib/fastcomments-client/models/{get_sso_users200_response.rb → get_sso_users_response.rb} +77 -4
  313. data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +75 -2
  314. data/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +75 -2
  315. data/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb +287 -0
  316. data/client/lib/fastcomments-client/models/get_tenant_package_response.rb +75 -2
  317. data/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +75 -2
  318. data/client/lib/fastcomments-client/models/get_tenant_response.rb +75 -2
  319. data/client/lib/fastcomments-client/models/get_tenant_user_response.rb +75 -2
  320. data/client/lib/fastcomments-client/models/get_tenant_users_response.rb +75 -2
  321. data/client/lib/fastcomments-client/models/get_tenants_response.rb +75 -2
  322. data/client/lib/fastcomments-client/models/get_ticket_response.rb +75 -2
  323. data/client/lib/fastcomments-client/models/get_tickets_response.rb +75 -2
  324. data/client/lib/fastcomments-client/models/get_translations_response.rb +288 -0
  325. data/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb +285 -0
  326. data/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb +371 -0
  327. data/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb +287 -0
  328. data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +75 -2
  329. data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +75 -2
  330. data/client/lib/fastcomments-client/models/get_user_response.rb +75 -2
  331. data/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb +277 -0
  332. data/client/lib/fastcomments-client/models/get_v1_page_likes.rb +363 -0
  333. data/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb +287 -0
  334. data/client/lib/fastcomments-client/models/get_v2_page_reacts.rb +282 -0
  335. data/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +75 -2
  336. data/client/lib/fastcomments-client/models/get_votes_response.rb +75 -2
  337. data/client/lib/fastcomments-client/models/gif_get_large_response.rb +285 -0
  338. data/client/lib/fastcomments-client/models/gif_rating.rb +1 -1
  339. data/client/lib/fastcomments-client/models/gif_search_internal_error.rb +285 -0
  340. data/client/lib/fastcomments-client/models/gif_search_response.rb +287 -0
  341. data/client/lib/fastcomments-client/models/{block_from_comment_public200_response.rb → gif_search_response_images_inner_inner.rb} +6 -5
  342. data/client/lib/fastcomments-client/models/header_account_notification.rb +90 -6
  343. data/client/lib/fastcomments-client/models/header_state.rb +75 -2
  344. data/client/lib/fastcomments-client/models/ignored_response.rb +75 -2
  345. data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +1 -1
  346. data/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb +42 -0
  347. data/client/lib/fastcomments-client/models/imported_site_type.rb +1 -1
  348. data/client/lib/fastcomments-client/models/live_event.rb +85 -3
  349. data/client/lib/fastcomments-client/models/live_event_extra_info.rb +75 -2
  350. data/client/lib/fastcomments-client/models/live_event_type.rb +8 -2
  351. data/client/lib/fastcomments-client/models/media_asset.rb +75 -2
  352. data/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +1 -1
  353. data/client/lib/fastcomments-client/models/meta_item.rb +75 -2
  354. data/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb +287 -0
  355. data/client/lib/fastcomments-client/models/moderation_api_comment.rb +753 -0
  356. data/client/lib/fastcomments-client/models/moderation_api_comment_log.rb +298 -0
  357. data/client/lib/fastcomments-client/models/moderation_api_comment_response.rb +285 -0
  358. data/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb +285 -0
  359. data/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb +313 -0
  360. data/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb +322 -0
  361. data/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb +287 -0
  362. data/client/lib/fastcomments-client/models/moderation_comment_search_response.rb +285 -0
  363. data/client/lib/fastcomments-client/models/moderation_export_response.rb +263 -0
  364. data/client/lib/fastcomments-client/models/moderation_export_status_response.rb +298 -0
  365. data/client/lib/fastcomments-client/models/moderation_filter.rb +325 -0
  366. data/client/lib/fastcomments-client/models/moderation_page_search_projected.rb +315 -0
  367. data/client/lib/fastcomments-client/models/moderation_page_search_response.rb +287 -0
  368. data/client/lib/fastcomments-client/models/moderation_site_search_projected.rb +247 -0
  369. data/client/lib/fastcomments-client/models/moderation_site_search_response.rb +287 -0
  370. data/client/lib/fastcomments-client/models/moderation_suggest_response.rb +268 -0
  371. data/client/lib/fastcomments-client/models/moderation_user_search_projected.rb +283 -0
  372. data/client/lib/fastcomments-client/models/moderation_user_search_response.rb +287 -0
  373. data/client/lib/fastcomments-client/models/moderator.rb +75 -2
  374. data/client/lib/fastcomments-client/models/notification_and_count.rb +75 -2
  375. data/client/lib/fastcomments-client/models/notification_object_type.rb +1 -1
  376. data/client/lib/fastcomments-client/models/notification_type.rb +1 -1
  377. data/client/lib/fastcomments-client/models/page_user_entry.rb +281 -0
  378. data/client/lib/fastcomments-client/models/page_users_info_response.rb +287 -0
  379. data/client/lib/fastcomments-client/models/page_users_offline_response.rb +311 -0
  380. data/client/lib/fastcomments-client/models/page_users_online_response.rb +363 -0
  381. data/client/lib/fastcomments-client/models/pages_sort_by.rb +41 -0
  382. data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +75 -2
  383. data/client/lib/fastcomments-client/models/patch_domain_config_response.rb +104 -0
  384. data/client/lib/fastcomments-client/models/patch_page_api_response.rb +75 -2
  385. data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +75 -2
  386. data/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +75 -2
  387. data/client/lib/fastcomments-client/models/post_remove_comment_response.rb +104 -0
  388. data/client/lib/fastcomments-client/models/pre_ban_summary.rb +313 -0
  389. data/client/lib/fastcomments-client/models/pub_sub_comment.rb +75 -2
  390. data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +75 -2
  391. data/client/lib/fastcomments-client/models/pub_sub_vote.rb +75 -2
  392. data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +75 -2
  393. data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +75 -2
  394. data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +75 -2
  395. data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +75 -2
  396. data/client/lib/fastcomments-client/models/public_comment.rb +75 -2
  397. data/client/lib/fastcomments-client/models/public_comment_base.rb +75 -2
  398. data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +75 -2
  399. data/client/lib/fastcomments-client/models/public_page.rb +341 -0
  400. data/client/lib/fastcomments-client/models/public_vote.rb +75 -2
  401. data/client/lib/fastcomments-client/models/put_domain_config_response.rb +104 -0
  402. data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +75 -2
  403. data/client/lib/fastcomments-client/models/query_predicate.rb +75 -2
  404. data/client/lib/fastcomments-client/models/query_predicate_value.rb +3 -2
  405. data/client/lib/fastcomments-client/models/question_config.rb +75 -2
  406. data/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +75 -2
  407. data/client/lib/fastcomments-client/models/question_datum.rb +75 -2
  408. data/client/lib/fastcomments-client/models/question_rendering_type.rb +1 -1
  409. data/client/lib/fastcomments-client/models/question_result.rb +75 -2
  410. data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +75 -2
  411. data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +1 -1
  412. data/client/lib/fastcomments-client/models/question_when_save.rb +1 -1
  413. data/client/lib/fastcomments-client/models/react_body_params.rb +75 -2
  414. data/client/lib/fastcomments-client/models/react_feed_post_response.rb +75 -2
  415. data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +77 -32
  416. data/client/lib/fastcomments-client/models/remove_comment_action_response.rb +263 -0
  417. data/client/lib/fastcomments-client/models/remove_user_badge_response.rb +270 -0
  418. data/client/lib/fastcomments-client/models/render_email_template_body.rb +75 -2
  419. data/client/lib/fastcomments-client/models/render_email_template_response.rb +75 -2
  420. data/client/lib/fastcomments-client/models/renderable_user_notification.rb +75 -2
  421. data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +1 -1
  422. data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +1 -1
  423. data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +75 -2
  424. data/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +75 -2
  425. data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +75 -2
  426. data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +75 -2
  427. data/client/lib/fastcomments-client/models/{aggregate_question_results200_response.rb → save_comments_bulk_response.rb} +5 -4
  428. data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +75 -2
  429. data/client/lib/fastcomments-client/models/search_users_response.rb +75 -2
  430. data/client/lib/fastcomments-client/models/{search_users200_response.rb → search_users_result.rb} +4 -4
  431. data/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +75 -2
  432. data/client/lib/fastcomments-client/models/set_comment_approved_response.rb +268 -0
  433. data/client/lib/fastcomments-client/models/set_comment_text_params.rb +237 -0
  434. data/client/lib/fastcomments-client/models/set_comment_text_response.rb +285 -0
  435. data/client/lib/fastcomments-client/models/set_comment_text_result.rb +75 -2
  436. data/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb +268 -0
  437. data/client/lib/fastcomments-client/models/size_preset.rb +1 -1
  438. data/client/lib/fastcomments-client/models/sort_directions.rb +1 -1
  439. data/client/lib/fastcomments-client/models/sortdir.rb +1 -1
  440. data/client/lib/fastcomments-client/models/spam_rule.rb +75 -2
  441. data/client/lib/fastcomments-client/models/sso_security_level.rb +1 -1
  442. data/client/lib/fastcomments-client/models/tenant_badge.rb +637 -0
  443. data/client/lib/fastcomments-client/models/tenant_hash_tag.rb +75 -2
  444. data/client/lib/fastcomments-client/models/tenant_package.rb +142 -6
  445. data/client/lib/fastcomments-client/models/tos_config.rb +75 -2
  446. data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +75 -2
  447. data/client/lib/fastcomments-client/models/unblock_success.rb +75 -2
  448. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +75 -2
  449. data/client/lib/fastcomments-client/models/update_api_page_data.rb +75 -2
  450. data/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +75 -2
  451. data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +75 -2
  452. data/client/lib/fastcomments-client/models/update_domain_config_params.rb +75 -2
  453. data/client/lib/fastcomments-client/models/update_email_template_body.rb +75 -2
  454. data/client/lib/fastcomments-client/models/update_feed_post_params.rb +75 -2
  455. data/client/lib/fastcomments-client/models/update_hash_tag_body.rb +75 -2
  456. data/client/lib/fastcomments-client/models/update_hash_tag_response.rb +75 -2
  457. data/client/lib/fastcomments-client/models/update_moderator_body.rb +75 -2
  458. data/client/lib/fastcomments-client/models/update_notification_body.rb +75 -2
  459. data/client/lib/fastcomments-client/models/update_question_config_body.rb +75 -2
  460. data/client/lib/fastcomments-client/models/update_question_result_body.rb +75 -2
  461. data/client/lib/fastcomments-client/models/update_subscription_api_response.rb +75 -2
  462. data/client/lib/fastcomments-client/models/update_tenant_body.rb +75 -2
  463. data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +75 -2
  464. data/client/lib/fastcomments-client/models/update_tenant_user_body.rb +75 -2
  465. data/client/lib/fastcomments-client/models/update_user_badge_params.rb +75 -2
  466. data/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb +104 -0
  467. data/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb +104 -0
  468. data/client/lib/fastcomments-client/models/{update_user_notification_status200_response.rb → update_user_notification_status_response.rb} +4 -4
  469. data/client/lib/fastcomments-client/models/upload_image_response.rb +75 -2
  470. data/client/lib/fastcomments-client/models/user.rb +85 -3
  471. data/client/lib/fastcomments-client/models/user_badge.rb +75 -2
  472. data/client/lib/fastcomments-client/models/user_badge_progress.rb +75 -2
  473. data/client/lib/fastcomments-client/models/user_notification.rb +75 -2
  474. data/client/lib/fastcomments-client/models/user_notification_count.rb +75 -2
  475. data/client/lib/fastcomments-client/models/user_notification_write_response.rb +75 -2
  476. data/client/lib/fastcomments-client/models/user_presence_data.rb +75 -2
  477. data/client/lib/fastcomments-client/models/user_reacts_response.rb +75 -2
  478. data/client/lib/fastcomments-client/models/user_search_result.rb +75 -2
  479. data/client/lib/fastcomments-client/models/user_search_section.rb +1 -1
  480. data/client/lib/fastcomments-client/models/user_search_section_result.rb +75 -2
  481. data/client/lib/fastcomments-client/models/user_session_info.rb +75 -2
  482. data/client/lib/fastcomments-client/models/users_list_location.rb +42 -0
  483. data/client/lib/fastcomments-client/models/vote_body_params.rb +75 -2
  484. data/client/lib/fastcomments-client/models/vote_delete_response.rb +75 -2
  485. data/client/lib/fastcomments-client/models/vote_response.rb +81 -32
  486. data/client/lib/fastcomments-client/models/{change_ticket_state200_response.rb → vote_response_status.rb} +6 -5
  487. data/client/lib/fastcomments-client/models/vote_response_user.rb +75 -2
  488. data/client/lib/fastcomments-client/models/vote_style.rb +1 -1
  489. data/client/lib/fastcomments-client/version.rb +2 -2
  490. data/client/lib/fastcomments-client.rb +102 -99
  491. data/client/spec/api/default_api_spec.rb +103 -101
  492. data/client/spec/api/moderation_api_spec.rb +559 -0
  493. data/client/spec/api/public_api_spec.rb +253 -37
  494. data/client/spec/models/add_domain_config_params_spec.rb +2 -2
  495. data/client/spec/models/{add_domain_config200_response_any_of_spec.rb → add_domain_config_response_any_of_spec.rb} +7 -7
  496. data/client/spec/models/{get_votes200_response_spec.rb → add_domain_config_response_spec.rb} +3 -3
  497. data/client/spec/models/add_page_api_response_spec.rb +2 -2
  498. data/client/spec/models/add_sso_user_api_response_spec.rb +2 -2
  499. data/client/spec/models/adjust_comment_votes_params_spec.rb +36 -0
  500. data/client/spec/models/adjust_votes_response_spec.rb +42 -0
  501. data/client/spec/models/aggregate_question_results_response_spec.rb +2 -2
  502. data/client/spec/models/{get_user200_response_spec.rb → aggregate_response_spec.rb} +3 -3
  503. data/client/spec/models/aggregate_time_bucket_spec.rb +2 -2
  504. data/client/spec/models/aggregation_api_error_spec.rb +54 -0
  505. data/client/spec/models/aggregation_item_spec.rb +2 -2
  506. data/client/spec/models/aggregation_op_type_spec.rb +2 -2
  507. data/client/spec/models/aggregation_operation_spec.rb +2 -2
  508. data/client/spec/models/aggregation_request_sort_spec.rb +2 -2
  509. data/client/spec/models/aggregation_request_spec.rb +2 -2
  510. data/client/spec/models/aggregation_response_spec.rb +2 -2
  511. data/client/spec/models/aggregation_response_stats_spec.rb +2 -2
  512. data/client/spec/models/aggregation_value_spec.rb +2 -2
  513. data/client/spec/models/api_audit_log_spec.rb +2 -2
  514. data/client/spec/models/api_ban_user_change_log_spec.rb +54 -0
  515. data/client/spec/models/api_ban_user_changed_values_spec.rb +108 -0
  516. data/client/spec/models/api_banned_user_spec.rb +108 -0
  517. data/client/spec/models/api_banned_user_with_multi_match_info_spec.rb +84 -0
  518. data/client/spec/models/api_comment_base_meta_spec.rb +2 -2
  519. data/client/spec/models/api_comment_base_spec.rb +3 -3
  520. data/client/spec/models/api_comment_common_banned_user_spec.rb +78 -0
  521. data/client/spec/models/api_comment_spec.rb +3 -3
  522. data/client/spec/models/api_create_user_badge_response_spec.rb +2 -2
  523. data/client/spec/models/api_domain_configuration_spec.rb +2 -2
  524. data/client/spec/models/api_empty_response_spec.rb +2 -2
  525. data/client/spec/models/api_empty_success_response_spec.rb +2 -2
  526. data/client/spec/models/api_error_spec.rb +2 -2
  527. data/client/spec/models/api_get_comment_response_spec.rb +2 -2
  528. data/client/spec/models/api_get_comments_response_spec.rb +2 -2
  529. data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +2 -2
  530. data/client/spec/models/api_get_user_badge_progress_response_spec.rb +2 -2
  531. data/client/spec/models/api_get_user_badge_response_spec.rb +2 -2
  532. data/client/spec/models/api_get_user_badges_response_spec.rb +2 -2
  533. data/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb +42 -0
  534. data/client/spec/models/api_moderate_user_ban_preferences_spec.rb +54 -0
  535. data/client/spec/models/api_page_spec.rb +2 -2
  536. data/client/spec/models/{save_comment_response_spec.rb → api_save_comment_response_spec.rb} +7 -7
  537. data/client/spec/models/api_status_spec.rb +2 -2
  538. data/client/spec/models/api_tenant_daily_usage_spec.rb +2 -2
  539. data/client/spec/models/api_tenant_spec.rb +2 -2
  540. data/client/spec/models/api_ticket_detail_spec.rb +2 -2
  541. data/client/spec/models/api_ticket_file_spec.rb +2 -2
  542. data/client/spec/models/api_ticket_spec.rb +2 -2
  543. data/client/spec/models/api_user_subscription_spec.rb +2 -2
  544. data/client/spec/models/apisso_user_spec.rb +2 -2
  545. data/client/spec/models/award_user_badge_response_spec.rb +48 -0
  546. data/client/spec/models/ban_user_from_comment_result_spec.rb +54 -0
  547. data/client/spec/models/ban_user_undo_params_spec.rb +36 -0
  548. data/client/spec/models/{create_tenant200_response_spec.rb → banned_user_match_matched_on_value_spec.rb} +3 -3
  549. data/client/spec/models/banned_user_match_spec.rb +42 -0
  550. data/client/spec/models/banned_user_match_type_spec.rb +30 -0
  551. data/client/spec/models/billing_info_spec.rb +2 -2
  552. data/client/spec/models/block_from_comment_params_spec.rb +2 -2
  553. data/client/spec/models/block_success_spec.rb +2 -2
  554. data/client/spec/models/build_moderation_filter_params_spec.rb +60 -0
  555. data/client/spec/models/build_moderation_filter_response_spec.rb +42 -0
  556. data/client/spec/models/bulk_aggregate_question_item_spec.rb +2 -2
  557. data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +2 -2
  558. data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +2 -2
  559. data/client/spec/models/bulk_create_hash_tags_body_spec.rb +2 -2
  560. data/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +2 -2
  561. data/client/spec/models/{add_hash_tag200_response_spec.rb → bulk_create_hash_tags_response_results_inner_spec.rb} +3 -3
  562. data/client/spec/models/bulk_create_hash_tags_response_spec.rb +2 -2
  563. data/client/spec/models/bulk_pre_ban_params_spec.rb +36 -0
  564. data/client/spec/models/bulk_pre_ban_summary_spec.rb +66 -0
  565. data/client/spec/models/change_comment_pin_status_response_spec.rb +2 -2
  566. data/client/spec/models/change_ticket_state_body_spec.rb +2 -2
  567. data/client/spec/models/change_ticket_state_response_spec.rb +2 -2
  568. data/client/spec/models/check_blocked_comments_response_spec.rb +2 -2
  569. data/client/spec/models/combine_question_results_with_comments_response_spec.rb +2 -2
  570. data/client/spec/models/comment_data_spec.rb +8 -2
  571. data/client/spec/models/comment_html_rendering_mode_spec.rb +2 -2
  572. data/client/spec/models/comment_log_data_spec.rb +8 -2
  573. data/client/spec/models/comment_log_entry_spec.rb +2 -2
  574. data/client/spec/models/comment_log_type_spec.rb +2 -2
  575. data/client/spec/models/comment_question_results_rendering_type_spec.rb +2 -2
  576. data/client/spec/models/comment_questions_required_spec.rb +2 -2
  577. data/client/spec/models/comment_text_update_request_spec.rb +2 -2
  578. data/client/spec/models/comment_thread_deletion_mode_spec.rb +2 -2
  579. data/client/spec/models/comment_user_badge_info_spec.rb +2 -2
  580. data/client/spec/models/comment_user_hash_tag_info_spec.rb +2 -2
  581. data/client/spec/models/comment_user_mention_info_spec.rb +2 -2
  582. data/client/spec/models/commenter_name_formats_spec.rb +2 -2
  583. data/client/spec/models/comments_by_ids_params_spec.rb +36 -0
  584. data/client/spec/models/create_api_page_data_spec.rb +2 -2
  585. data/client/spec/models/create_api_user_subscription_data_spec.rb +2 -2
  586. data/client/spec/models/create_apisso_user_data_spec.rb +2 -2
  587. data/client/spec/models/create_comment_params_spec.rb +8 -2
  588. data/client/spec/models/create_email_template_body_spec.rb +2 -2
  589. data/client/spec/models/create_email_template_response_spec.rb +2 -2
  590. data/client/spec/models/create_feed_post_params_spec.rb +2 -2
  591. data/client/spec/models/create_feed_post_response_spec.rb +2 -2
  592. data/client/spec/models/create_feed_posts_response_spec.rb +2 -2
  593. data/client/spec/models/create_hash_tag_body_spec.rb +2 -2
  594. data/client/spec/models/create_hash_tag_response_spec.rb +2 -2
  595. data/client/spec/models/create_moderator_body_spec.rb +2 -2
  596. data/client/spec/models/create_moderator_response_spec.rb +2 -2
  597. data/client/spec/models/create_question_config_body_spec.rb +2 -2
  598. data/client/spec/models/create_question_config_response_spec.rb +2 -2
  599. data/client/spec/models/create_question_result_body_spec.rb +2 -2
  600. data/client/spec/models/create_question_result_response_spec.rb +2 -2
  601. data/client/spec/models/create_subscription_api_response_spec.rb +2 -2
  602. data/client/spec/models/create_tenant_body_spec.rb +2 -2
  603. data/client/spec/models/create_tenant_package_body_spec.rb +4 -4
  604. data/client/spec/models/create_tenant_package_response_spec.rb +2 -2
  605. data/client/spec/models/create_tenant_response_spec.rb +2 -2
  606. data/client/spec/models/create_tenant_user_body_spec.rb +2 -2
  607. data/client/spec/models/create_tenant_user_response_spec.rb +2 -2
  608. data/client/spec/models/create_ticket_body_spec.rb +2 -2
  609. data/client/spec/models/create_ticket_response_spec.rb +2 -2
  610. data/client/spec/models/create_user_badge_params_spec.rb +2 -2
  611. data/client/spec/models/create_v1_page_react_spec.rb +42 -0
  612. data/client/spec/models/custom_config_parameters_spec.rb +32 -2
  613. data/client/spec/models/custom_email_template_spec.rb +2 -2
  614. data/client/spec/models/delete_comment_action_spec.rb +2 -2
  615. data/client/spec/models/delete_comment_result_spec.rb +2 -2
  616. data/client/spec/models/{delete_domain_config200_response_spec.rb → delete_domain_config_response_spec.rb} +7 -7
  617. data/client/spec/models/{delete_feed_post_public200_response_any_of_spec.rb → delete_feed_post_public_response_spec.rb} +7 -7
  618. data/client/spec/models/{delete_hash_tag_request_spec.rb → delete_hash_tag_request_body_spec.rb} +7 -7
  619. data/client/spec/models/delete_page_api_response_spec.rb +2 -2
  620. data/client/spec/models/delete_sso_user_api_response_spec.rb +2 -2
  621. data/client/spec/models/delete_subscription_api_response_spec.rb +2 -2
  622. data/client/spec/models/deleted_comment_result_comment_spec.rb +2 -2
  623. data/client/spec/models/digest_email_frequency_spec.rb +2 -2
  624. data/client/spec/models/email_template_definition_spec.rb +2 -2
  625. data/client/spec/models/email_template_render_error_response_spec.rb +2 -2
  626. data/client/spec/models/event_log_entry_spec.rb +2 -2
  627. data/client/spec/models/f_comment_meta_spec.rb +2 -2
  628. data/client/spec/models/f_comment_spec.rb +8 -2
  629. data/client/spec/models/feed_post_link_spec.rb +2 -2
  630. data/client/spec/models/feed_post_media_item_asset_spec.rb +2 -2
  631. data/client/spec/models/feed_post_media_item_spec.rb +2 -2
  632. data/client/spec/models/feed_post_spec.rb +2 -2
  633. data/client/spec/models/feed_post_stats_spec.rb +2 -2
  634. data/client/spec/models/feed_posts_stats_response_spec.rb +2 -2
  635. data/client/spec/models/find_comments_by_range_item_spec.rb +2 -2
  636. data/client/spec/models/find_comments_by_range_response_spec.rb +2 -2
  637. data/client/spec/models/flag_comment_response_spec.rb +2 -2
  638. data/client/spec/models/get_audit_logs_response_spec.rb +2 -2
  639. data/client/spec/models/get_banned_users_count_response_spec.rb +42 -0
  640. data/client/spec/models/get_banned_users_from_comment_response_spec.rb +52 -0
  641. data/client/spec/models/get_cached_notification_count_response_spec.rb +2 -2
  642. data/client/spec/models/get_comment_ban_status_response_spec.rb +48 -0
  643. data/client/spec/models/get_comment_text_response_spec.rb +42 -0
  644. data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +2 -2
  645. data/client/spec/models/get_comments_for_user_response_spec.rb +36 -0
  646. data/client/spec/models/get_comments_response_public_comment_spec.rb +2 -2
  647. data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +2 -2
  648. data/client/spec/models/{get_ticket200_response_spec.rb → get_domain_config_response_spec.rb} +3 -3
  649. data/client/spec/models/{get_domain_configs200_response_any_of1_spec.rb → get_domain_configs_response_any_of1_spec.rb} +7 -7
  650. data/client/spec/models/{get_domain_configs200_response_any_of_spec.rb → get_domain_configs_response_any_of_spec.rb} +7 -7
  651. data/client/spec/models/{get_tenant200_response_spec.rb → get_domain_configs_response_spec.rb} +3 -3
  652. data/client/spec/models/get_email_template_definitions_response_spec.rb +2 -2
  653. data/client/spec/models/get_email_template_render_errors_response_spec.rb +2 -2
  654. data/client/spec/models/get_email_template_response_spec.rb +2 -2
  655. data/client/spec/models/get_email_templates_response_spec.rb +2 -2
  656. data/client/spec/models/get_event_log_response_spec.rb +2 -2
  657. data/client/spec/models/get_feed_posts_response_spec.rb +2 -2
  658. data/client/spec/models/get_gifs_search_response_spec.rb +21 -0
  659. data/client/spec/models/get_gifs_trending_response_spec.rb +21 -0
  660. data/client/spec/models/get_hash_tags_response_spec.rb +2 -2
  661. data/client/spec/models/get_moderator_response_spec.rb +2 -2
  662. data/client/spec/models/get_moderators_response_spec.rb +2 -2
  663. data/client/spec/models/get_my_notifications_response_spec.rb +2 -2
  664. data/client/spec/models/get_notification_count_response_spec.rb +2 -2
  665. data/client/spec/models/get_notifications_response_spec.rb +2 -2
  666. data/client/spec/models/get_page_by_urlid_api_response_spec.rb +2 -2
  667. data/client/spec/models/get_pages_api_response_spec.rb +2 -2
  668. data/client/spec/models/get_pending_webhook_event_count_response_spec.rb +2 -2
  669. data/client/spec/models/get_pending_webhook_events_response_spec.rb +2 -2
  670. data/client/spec/models/get_public_feed_posts_response_spec.rb +2 -2
  671. data/client/spec/models/get_public_pages_response_spec.rb +48 -0
  672. data/client/spec/models/get_question_config_response_spec.rb +2 -2
  673. data/client/spec/models/get_question_configs_response_spec.rb +2 -2
  674. data/client/spec/models/get_question_result_response_spec.rb +2 -2
  675. data/client/spec/models/get_question_results_response_spec.rb +2 -2
  676. data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +2 -2
  677. data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +2 -2
  678. data/client/spec/models/{get_sso_users200_response_spec.rb → get_sso_users_response_spec.rb} +7 -7
  679. data/client/spec/models/get_subscriptions_api_response_spec.rb +2 -2
  680. data/client/spec/models/get_tenant_daily_usages_response_spec.rb +2 -2
  681. data/client/spec/models/get_tenant_manual_badges_response_spec.rb +42 -0
  682. data/client/spec/models/get_tenant_package_response_spec.rb +2 -2
  683. data/client/spec/models/get_tenant_packages_response_spec.rb +2 -2
  684. data/client/spec/models/get_tenant_response_spec.rb +2 -2
  685. data/client/spec/models/get_tenant_user_response_spec.rb +2 -2
  686. data/client/spec/models/get_tenant_users_response_spec.rb +2 -2
  687. data/client/spec/models/get_tenants_response_spec.rb +2 -2
  688. data/client/spec/models/get_ticket_response_spec.rb +2 -2
  689. data/client/spec/models/get_tickets_response_spec.rb +2 -2
  690. data/client/spec/models/get_translations_response_spec.rb +42 -0
  691. data/client/spec/models/get_user_internal_profile_response_profile_spec.rb +132 -0
  692. data/client/spec/models/get_user_internal_profile_response_spec.rb +42 -0
  693. data/client/spec/models/get_user_manual_badges_response_spec.rb +42 -0
  694. data/client/spec/models/get_user_notification_count_response_spec.rb +2 -2
  695. data/client/spec/models/get_user_presence_statuses_response_spec.rb +2 -2
  696. data/client/spec/models/get_user_response_spec.rb +2 -2
  697. data/client/spec/models/get_user_trust_factor_response_spec.rb +48 -0
  698. data/client/spec/models/get_v1_page_likes_spec.rb +60 -0
  699. data/client/spec/models/get_v2_page_react_users_response_spec.rb +42 -0
  700. data/client/spec/models/get_v2_page_reacts_spec.rb +48 -0
  701. data/client/spec/models/get_votes_for_user_response_spec.rb +2 -2
  702. data/client/spec/models/get_votes_response_spec.rb +2 -2
  703. data/client/spec/models/gif_get_large_response_spec.rb +42 -0
  704. data/client/spec/models/gif_rating_spec.rb +2 -2
  705. data/client/spec/models/gif_search_internal_error_spec.rb +42 -0
  706. data/client/spec/models/{add_domain_config200_response_spec.rb → gif_search_response_images_inner_inner_spec.rb} +3 -3
  707. data/client/spec/models/gif_search_response_spec.rb +42 -0
  708. data/client/spec/models/header_account_notification_spec.rb +8 -2
  709. data/client/spec/models/header_state_spec.rb +2 -2
  710. data/client/spec/models/ignored_response_spec.rb +2 -2
  711. data/client/spec/models/image_content_profanity_level_spec.rb +2 -2
  712. data/client/spec/models/imported_agent_approval_notification_frequency_spec.rb +30 -0
  713. data/client/spec/models/imported_site_type_spec.rb +2 -2
  714. data/client/spec/models/live_event_extra_info_spec.rb +2 -2
  715. data/client/spec/models/live_event_spec.rb +8 -2
  716. data/client/spec/models/live_event_type_spec.rb +2 -2
  717. data/client/spec/models/media_asset_spec.rb +2 -2
  718. data/client/spec/models/mention_auto_complete_mode_spec.rb +2 -2
  719. data/client/spec/models/meta_item_spec.rb +2 -2
  720. data/client/spec/models/moderation_api_child_comments_response_spec.rb +42 -0
  721. data/client/spec/models/moderation_api_comment_log_spec.rb +54 -0
  722. data/client/spec/models/moderation_api_comment_response_spec.rb +42 -0
  723. data/client/spec/models/moderation_api_comment_spec.rb +282 -0
  724. data/client/spec/models/moderation_api_count_comments_response_spec.rb +42 -0
  725. data/client/spec/models/moderation_api_get_comment_ids_response_spec.rb +48 -0
  726. data/client/spec/models/moderation_api_get_comments_response_spec.rb +54 -0
  727. data/client/spec/models/moderation_api_get_logs_response_spec.rb +42 -0
  728. data/client/spec/models/moderation_comment_search_response_spec.rb +42 -0
  729. data/client/spec/models/moderation_export_response_spec.rb +42 -0
  730. data/client/spec/models/moderation_export_status_response_spec.rb +54 -0
  731. data/client/spec/models/moderation_filter_spec.rb +102 -0
  732. data/client/spec/models/moderation_page_search_projected_spec.rb +54 -0
  733. data/client/spec/models/moderation_page_search_response_spec.rb +42 -0
  734. data/client/spec/models/moderation_site_search_projected_spec.rb +42 -0
  735. data/client/spec/models/moderation_site_search_response_spec.rb +42 -0
  736. data/client/spec/models/moderation_suggest_response_spec.rb +54 -0
  737. data/client/spec/models/moderation_user_search_projected_spec.rb +54 -0
  738. data/client/spec/models/moderation_user_search_response_spec.rb +42 -0
  739. data/client/spec/models/moderator_spec.rb +2 -2
  740. data/client/spec/models/notification_and_count_spec.rb +2 -2
  741. data/client/spec/models/notification_object_type_spec.rb +2 -2
  742. data/client/spec/models/notification_type_spec.rb +2 -2
  743. data/client/spec/models/page_user_entry_spec.rb +54 -0
  744. data/client/spec/models/page_users_info_response_spec.rb +42 -0
  745. data/client/spec/models/page_users_offline_response_spec.rb +54 -0
  746. data/client/spec/models/page_users_online_response_spec.rb +66 -0
  747. data/client/spec/models/pages_sort_by_spec.rb +30 -0
  748. data/client/spec/models/patch_domain_config_params_spec.rb +2 -2
  749. data/client/spec/models/patch_domain_config_response_spec.rb +21 -0
  750. data/client/spec/models/patch_page_api_response_spec.rb +2 -2
  751. data/client/spec/models/patch_sso_user_api_response_spec.rb +2 -2
  752. data/client/spec/models/pending_comment_to_sync_outbound_spec.rb +2 -2
  753. data/client/spec/models/post_remove_comment_response_spec.rb +21 -0
  754. data/client/spec/models/pre_ban_summary_spec.rb +48 -0
  755. data/client/spec/models/pub_sub_comment_base_spec.rb +2 -2
  756. data/client/spec/models/pub_sub_comment_spec.rb +2 -2
  757. data/client/spec/models/pub_sub_vote_spec.rb +2 -2
  758. data/client/spec/models/public_api_delete_comment_response_spec.rb +2 -2
  759. data/client/spec/models/public_api_get_comment_text_response_spec.rb +2 -2
  760. data/client/spec/models/public_api_set_comment_text_response_spec.rb +2 -2
  761. data/client/spec/models/public_block_from_comment_params_spec.rb +2 -2
  762. data/client/spec/models/public_comment_base_spec.rb +2 -2
  763. data/client/spec/models/public_comment_spec.rb +2 -2
  764. data/client/spec/models/public_feed_posts_response_spec.rb +2 -2
  765. data/client/spec/models/public_page_spec.rb +60 -0
  766. data/client/spec/models/public_vote_spec.rb +2 -2
  767. data/client/spec/models/put_domain_config_response_spec.rb +21 -0
  768. data/client/spec/models/put_sso_user_api_response_spec.rb +2 -2
  769. data/client/spec/models/query_predicate_spec.rb +2 -2
  770. data/client/spec/models/query_predicate_value_spec.rb +1 -1
  771. data/client/spec/models/question_config_custom_options_inner_spec.rb +2 -2
  772. data/client/spec/models/question_config_spec.rb +2 -2
  773. data/client/spec/models/question_datum_spec.rb +2 -2
  774. data/client/spec/models/question_rendering_type_spec.rb +2 -2
  775. data/client/spec/models/question_result_aggregation_overall_spec.rb +2 -2
  776. data/client/spec/models/question_result_spec.rb +2 -2
  777. data/client/spec/models/question_sub_question_visibility_spec.rb +2 -2
  778. data/client/spec/models/question_when_save_spec.rb +2 -2
  779. data/client/spec/models/react_body_params_spec.rb +2 -2
  780. data/client/spec/models/react_feed_post_response_spec.rb +2 -2
  781. data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +2 -2
  782. data/client/spec/models/remove_comment_action_response_spec.rb +42 -0
  783. data/client/spec/models/remove_user_badge_response_spec.rb +42 -0
  784. data/client/spec/models/render_email_template_body_spec.rb +2 -2
  785. data/client/spec/models/render_email_template_response_spec.rb +2 -2
  786. data/client/spec/models/renderable_user_notification_spec.rb +2 -2
  787. data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +2 -2
  788. data/client/spec/models/repeat_comment_handling_action_spec.rb +2 -2
  789. data/client/spec/models/replace_tenant_package_body_spec.rb +2 -2
  790. data/client/spec/models/replace_tenant_user_body_spec.rb +2 -2
  791. data/client/spec/models/reset_user_notifications_response_spec.rb +2 -2
  792. data/client/spec/models/save_comment_response_optimized_spec.rb +2 -2
  793. data/client/spec/models/save_comments_bulk_response_spec.rb +21 -0
  794. data/client/spec/models/save_comments_response_with_presence_spec.rb +2 -2
  795. data/client/spec/models/search_users_response_spec.rb +2 -2
  796. data/client/spec/models/search_users_result_spec.rb +21 -0
  797. data/client/spec/models/search_users_sectioned_response_spec.rb +2 -2
  798. data/client/spec/models/set_comment_approved_response_spec.rb +42 -0
  799. data/client/spec/models/set_comment_text_params_spec.rb +36 -0
  800. data/client/spec/models/set_comment_text_response_spec.rb +42 -0
  801. data/client/spec/models/set_comment_text_result_spec.rb +2 -2
  802. data/client/spec/models/set_user_trust_factor_response_spec.rb +42 -0
  803. data/client/spec/models/size_preset_spec.rb +2 -2
  804. data/client/spec/models/sort_directions_spec.rb +2 -2
  805. data/client/spec/models/sortdir_spec.rb +2 -2
  806. data/client/spec/models/spam_rule_spec.rb +2 -2
  807. data/client/spec/models/sso_security_level_spec.rb +2 -2
  808. data/client/spec/models/tenant_badge_spec.rb +156 -0
  809. data/client/spec/models/tenant_hash_tag_spec.rb +2 -2
  810. data/client/spec/models/tenant_package_spec.rb +44 -2
  811. data/client/spec/models/tos_config_spec.rb +2 -2
  812. data/client/spec/models/un_block_from_comment_params_spec.rb +2 -2
  813. data/client/spec/models/unblock_success_spec.rb +2 -2
  814. data/client/spec/models/updatable_comment_params_spec.rb +2 -2
  815. data/client/spec/models/update_api_page_data_spec.rb +2 -2
  816. data/client/spec/models/update_api_user_subscription_data_spec.rb +2 -2
  817. data/client/spec/models/update_apisso_user_data_spec.rb +2 -2
  818. data/client/spec/models/update_domain_config_params_spec.rb +2 -2
  819. data/client/spec/models/update_email_template_body_spec.rb +2 -2
  820. data/client/spec/models/update_feed_post_params_spec.rb +2 -2
  821. data/client/spec/models/update_hash_tag_body_spec.rb +2 -2
  822. data/client/spec/models/update_hash_tag_response_spec.rb +2 -2
  823. data/client/spec/models/update_moderator_body_spec.rb +2 -2
  824. data/client/spec/models/update_notification_body_spec.rb +2 -2
  825. data/client/spec/models/update_question_config_body_spec.rb +2 -2
  826. data/client/spec/models/update_question_result_body_spec.rb +2 -2
  827. data/client/spec/models/update_subscription_api_response_spec.rb +2 -2
  828. data/client/spec/models/update_tenant_body_spec.rb +2 -2
  829. data/client/spec/models/update_tenant_package_body_spec.rb +2 -2
  830. data/client/spec/models/update_tenant_user_body_spec.rb +2 -2
  831. data/client/spec/models/update_user_badge_params_spec.rb +2 -2
  832. data/client/spec/models/{aggregate_question_results200_response_spec.rb → update_user_notification_comment_subscription_status_response_spec.rb} +3 -3
  833. data/client/spec/models/{add_hash_tags_bulk200_response_spec.rb → update_user_notification_page_subscription_status_response_spec.rb} +3 -3
  834. data/client/spec/models/{update_user_notification_status200_response_spec.rb → update_user_notification_status_response_spec.rb} +3 -3
  835. data/client/spec/models/upload_image_response_spec.rb +2 -2
  836. data/client/spec/models/user_badge_progress_spec.rb +2 -2
  837. data/client/spec/models/user_badge_spec.rb +2 -2
  838. data/client/spec/models/user_notification_count_spec.rb +2 -2
  839. data/client/spec/models/user_notification_spec.rb +2 -2
  840. data/client/spec/models/user_notification_write_response_spec.rb +2 -2
  841. data/client/spec/models/user_presence_data_spec.rb +2 -2
  842. data/client/spec/models/user_reacts_response_spec.rb +2 -2
  843. data/client/spec/models/user_search_result_spec.rb +2 -2
  844. data/client/spec/models/user_search_section_result_spec.rb +2 -2
  845. data/client/spec/models/user_search_section_spec.rb +2 -2
  846. data/client/spec/models/user_session_info_spec.rb +2 -2
  847. data/client/spec/models/user_spec.rb +8 -2
  848. data/client/spec/models/users_list_location_spec.rb +30 -0
  849. data/client/spec/models/vote_body_params_spec.rb +2 -2
  850. data/client/spec/models/vote_delete_response_spec.rb +2 -2
  851. data/client/spec/models/vote_response_spec.rb +2 -6
  852. data/client/spec/models/vote_response_status_spec.rb +21 -0
  853. data/client/spec/models/vote_response_user_spec.rb +2 -2
  854. data/client/spec/models/vote_style_spec.rb +2 -2
  855. data/client/spec/spec_helper.rb +1 -1
  856. data/lib/fastcomments.rb +1 -1
  857. metadata +305 -294
  858. data/client/docs/AddHashTag200Response.md +0 -34
  859. data/client/docs/AddHashTagsBulk200Response.md +0 -34
  860. data/client/docs/AggregateQuestionResults200Response.md +0 -34
  861. data/client/docs/BlockFromCommentPublic200Response.md +0 -34
  862. data/client/docs/BulkAggregateQuestionResults200Response.md +0 -34
  863. data/client/docs/ChangeTicketState200Response.md +0 -34
  864. data/client/docs/CheckedCommentsForBlocked200Response.md +0 -34
  865. data/client/docs/CombineCommentsWithQuestionResults200Response.md +0 -34
  866. data/client/docs/CreateCommentPublic200Response.md +0 -40
  867. data/client/docs/CreateEmailTemplate200Response.md +0 -34
  868. data/client/docs/CreateFeedPost200Response.md +0 -34
  869. data/client/docs/CreateFeedPostPublic200Response.md +0 -34
  870. data/client/docs/CreateModerator200Response.md +0 -34
  871. data/client/docs/CreateQuestionConfig200Response.md +0 -34
  872. data/client/docs/CreateQuestionResult200Response.md +0 -34
  873. data/client/docs/CreateTenant200Response.md +0 -34
  874. data/client/docs/CreateTenantPackage200Response.md +0 -34
  875. data/client/docs/CreateTenantUser200Response.md +0 -34
  876. data/client/docs/CreateTicket200Response.md +0 -34
  877. data/client/docs/CreateUserBadge200Response.md +0 -36
  878. data/client/docs/DeleteComment200Response.md +0 -34
  879. data/client/docs/DeleteCommentPublic200Response.md +0 -36
  880. data/client/docs/DeleteCommentVote200Response.md +0 -34
  881. data/client/docs/DeleteFeedPostPublic200Response.md +0 -32
  882. data/client/docs/FlagComment200Response.md +0 -36
  883. data/client/docs/FlagCommentPublic200Response.md +0 -32
  884. data/client/docs/GetAuditLogs200Response.md +0 -34
  885. data/client/docs/GetCachedNotificationCount200Response.md +0 -34
  886. data/client/docs/GetComment200Response.md +0 -34
  887. data/client/docs/GetCommentText200Response.md +0 -36
  888. data/client/docs/GetCommentVoteUserNames200Response.md +0 -36
  889. data/client/docs/GetComments200Response.md +0 -34
  890. data/client/docs/GetCommentsPublic200Response.md +0 -78
  891. data/client/docs/GetEmailTemplate200Response.md +0 -34
  892. data/client/docs/GetEmailTemplateDefinitions200Response.md +0 -34
  893. data/client/docs/GetEmailTemplateRenderErrors200Response.md +0 -34
  894. data/client/docs/GetEmailTemplates200Response.md +0 -34
  895. data/client/docs/GetEventLog200Response.md +0 -34
  896. data/client/docs/GetFeedPosts200Response.md +0 -34
  897. data/client/docs/GetFeedPostsPublic200Response.md +0 -44
  898. data/client/docs/GetFeedPostsStats200Response.md +0 -34
  899. data/client/docs/GetHashTags200Response.md +0 -34
  900. data/client/docs/GetModerator200Response.md +0 -34
  901. data/client/docs/GetModerators200Response.md +0 -34
  902. data/client/docs/GetNotificationCount200Response.md +0 -34
  903. data/client/docs/GetNotifications200Response.md +0 -34
  904. data/client/docs/GetPendingWebhookEventCount200Response.md +0 -34
  905. data/client/docs/GetPendingWebhookEvents200Response.md +0 -34
  906. data/client/docs/GetQuestionConfig200Response.md +0 -34
  907. data/client/docs/GetQuestionConfigs200Response.md +0 -34
  908. data/client/docs/GetQuestionResult200Response.md +0 -34
  909. data/client/docs/GetQuestionResults200Response.md +0 -34
  910. data/client/docs/GetTenant200Response.md +0 -34
  911. data/client/docs/GetTenantDailyUsages200Response.md +0 -34
  912. data/client/docs/GetTenantPackage200Response.md +0 -34
  913. data/client/docs/GetTenantPackages200Response.md +0 -34
  914. data/client/docs/GetTenantUser200Response.md +0 -34
  915. data/client/docs/GetTenantUsers200Response.md +0 -34
  916. data/client/docs/GetTenants200Response.md +0 -34
  917. data/client/docs/GetTicket200Response.md +0 -36
  918. data/client/docs/GetTickets200Response.md +0 -34
  919. data/client/docs/GetUser200Response.md +0 -34
  920. data/client/docs/GetUserBadge200Response.md +0 -34
  921. data/client/docs/GetUserBadgeProgressById200Response.md +0 -34
  922. data/client/docs/GetUserBadgeProgressList200Response.md +0 -34
  923. data/client/docs/GetUserBadges200Response.md +0 -34
  924. data/client/docs/GetUserNotificationCount200Response.md +0 -34
  925. data/client/docs/GetUserNotifications200Response.md +0 -40
  926. data/client/docs/GetUserPresenceStatuses200Response.md +0 -34
  927. data/client/docs/GetUserReactsPublic200Response.md +0 -34
  928. data/client/docs/GetVotes200Response.md +0 -38
  929. data/client/docs/GetVotesForUser200Response.md +0 -38
  930. data/client/docs/LockComment200Response.md +0 -32
  931. data/client/docs/PinComment200Response.md +0 -34
  932. data/client/docs/ReactFeedPostPublic200Response.md +0 -36
  933. data/client/docs/RenderEmailTemplate200Response.md +0 -34
  934. data/client/docs/ResetUserNotifications200Response.md +0 -32
  935. data/client/docs/SearchUsers200Response.md +0 -36
  936. data/client/docs/SetCommentText200Response.md +0 -34
  937. data/client/docs/UnBlockCommentPublic200Response.md +0 -34
  938. data/client/docs/UpdateUserBadge200Response.md +0 -32
  939. data/client/docs/UpdateUserNotificationStatus200Response.md +0 -38
  940. data/client/docs/VoteComment200Response.md +0 -40
  941. data/client/lib/fastcomments-client/api_model_base.rb +0 -88
  942. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +0 -103
  943. data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +0 -103
  944. data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +0 -103
  945. data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +0 -103
  946. data/client/lib/fastcomments-client/models/create_email_template200_response.rb +0 -103
  947. data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +0 -103
  948. data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +0 -103
  949. data/client/lib/fastcomments-client/models/create_moderator200_response.rb +0 -103
  950. data/client/lib/fastcomments-client/models/create_question_config200_response.rb +0 -103
  951. data/client/lib/fastcomments-client/models/create_question_result200_response.rb +0 -103
  952. data/client/lib/fastcomments-client/models/create_tenant200_response.rb +0 -103
  953. data/client/lib/fastcomments-client/models/create_tenant_package200_response.rb +0 -103
  954. data/client/lib/fastcomments-client/models/create_tenant_user200_response.rb +0 -103
  955. data/client/lib/fastcomments-client/models/create_ticket200_response.rb +0 -103
  956. data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +0 -103
  957. data/client/lib/fastcomments-client/models/delete_comment200_response.rb +0 -103
  958. data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +0 -103
  959. data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +0 -103
  960. data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +0 -150
  961. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +0 -103
  962. data/client/lib/fastcomments-client/models/flag_comment200_response.rb +0 -103
  963. data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +0 -103
  964. data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +0 -103
  965. data/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb +0 -103
  966. data/client/lib/fastcomments-client/models/get_comment200_response.rb +0 -103
  967. data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +0 -103
  968. data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +0 -103
  969. data/client/lib/fastcomments-client/models/get_comments200_response.rb +0 -103
  970. data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +0 -103
  971. data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +0 -103
  972. data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +0 -103
  973. data/client/lib/fastcomments-client/models/get_email_template200_response.rb +0 -103
  974. data/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb +0 -103
  975. data/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +0 -103
  976. data/client/lib/fastcomments-client/models/get_email_templates200_response.rb +0 -103
  977. data/client/lib/fastcomments-client/models/get_event_log200_response.rb +0 -103
  978. data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +0 -103
  979. data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +0 -103
  980. data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +0 -103
  981. data/client/lib/fastcomments-client/models/get_hash_tags200_response.rb +0 -103
  982. data/client/lib/fastcomments-client/models/get_moderator200_response.rb +0 -103
  983. data/client/lib/fastcomments-client/models/get_moderators200_response.rb +0 -103
  984. data/client/lib/fastcomments-client/models/get_notification_count200_response.rb +0 -103
  985. data/client/lib/fastcomments-client/models/get_notifications200_response.rb +0 -103
  986. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb +0 -103
  987. data/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +0 -103
  988. data/client/lib/fastcomments-client/models/get_question_config200_response.rb +0 -103
  989. data/client/lib/fastcomments-client/models/get_question_configs200_response.rb +0 -103
  990. data/client/lib/fastcomments-client/models/get_question_result200_response.rb +0 -103
  991. data/client/lib/fastcomments-client/models/get_question_results200_response.rb +0 -103
  992. data/client/lib/fastcomments-client/models/get_tenant200_response.rb +0 -103
  993. data/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +0 -103
  994. data/client/lib/fastcomments-client/models/get_tenant_package200_response.rb +0 -103
  995. data/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb +0 -103
  996. data/client/lib/fastcomments-client/models/get_tenant_user200_response.rb +0 -103
  997. data/client/lib/fastcomments-client/models/get_tenant_users200_response.rb +0 -103
  998. data/client/lib/fastcomments-client/models/get_tenants200_response.rb +0 -103
  999. data/client/lib/fastcomments-client/models/get_ticket200_response.rb +0 -103
  1000. data/client/lib/fastcomments-client/models/get_tickets200_response.rb +0 -103
  1001. data/client/lib/fastcomments-client/models/get_user200_response.rb +0 -103
  1002. data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +0 -103
  1003. data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +0 -103
  1004. data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +0 -103
  1005. data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +0 -103
  1006. data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +0 -103
  1007. data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +0 -103
  1008. data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +0 -103
  1009. data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +0 -103
  1010. data/client/lib/fastcomments-client/models/get_votes200_response.rb +0 -103
  1011. data/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb +0 -103
  1012. data/client/lib/fastcomments-client/models/lock_comment200_response.rb +0 -103
  1013. data/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb +0 -103
  1014. data/client/lib/fastcomments-client/models/pin_comment200_response.rb +0 -103
  1015. data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +0 -103
  1016. data/client/lib/fastcomments-client/models/render_email_template200_response.rb +0 -103
  1017. data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +0 -103
  1018. data/client/lib/fastcomments-client/models/save_comment200_response.rb +0 -103
  1019. data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +0 -103
  1020. data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +0 -103
  1021. data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +0 -103
  1022. data/client/lib/fastcomments-client/models/vote_comment200_response.rb +0 -103
  1023. data/client/spec/models/block_from_comment_public200_response_spec.rb +0 -21
  1024. data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +0 -21
  1025. data/client/spec/models/change_ticket_state200_response_spec.rb +0 -21
  1026. data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +0 -21
  1027. data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +0 -21
  1028. data/client/spec/models/create_comment_public200_response_spec.rb +0 -21
  1029. data/client/spec/models/create_email_template200_response_spec.rb +0 -21
  1030. data/client/spec/models/create_feed_post200_response_spec.rb +0 -21
  1031. data/client/spec/models/create_feed_post_public200_response_spec.rb +0 -21
  1032. data/client/spec/models/create_moderator200_response_spec.rb +0 -21
  1033. data/client/spec/models/create_question_config200_response_spec.rb +0 -21
  1034. data/client/spec/models/create_question_result200_response_spec.rb +0 -21
  1035. data/client/spec/models/create_tenant_package200_response_spec.rb +0 -21
  1036. data/client/spec/models/create_tenant_user200_response_spec.rb +0 -21
  1037. data/client/spec/models/create_ticket200_response_spec.rb +0 -21
  1038. data/client/spec/models/create_user_badge200_response_spec.rb +0 -21
  1039. data/client/spec/models/delete_comment200_response_spec.rb +0 -21
  1040. data/client/spec/models/delete_comment_public200_response_spec.rb +0 -21
  1041. data/client/spec/models/delete_comment_vote200_response_spec.rb +0 -21
  1042. data/client/spec/models/delete_feed_post_public200_response_spec.rb +0 -21
  1043. data/client/spec/models/flag_comment200_response_spec.rb +0 -21
  1044. data/client/spec/models/flag_comment_public200_response_spec.rb +0 -21
  1045. data/client/spec/models/get_audit_logs200_response_spec.rb +0 -21
  1046. data/client/spec/models/get_cached_notification_count200_response_spec.rb +0 -21
  1047. data/client/spec/models/get_comment200_response_spec.rb +0 -21
  1048. data/client/spec/models/get_comment_text200_response_spec.rb +0 -21
  1049. data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +0 -21
  1050. data/client/spec/models/get_comments200_response_spec.rb +0 -21
  1051. data/client/spec/models/get_comments_public200_response_spec.rb +0 -21
  1052. data/client/spec/models/get_domain_config200_response_spec.rb +0 -21
  1053. data/client/spec/models/get_domain_configs200_response_spec.rb +0 -21
  1054. data/client/spec/models/get_email_template200_response_spec.rb +0 -21
  1055. data/client/spec/models/get_email_template_definitions200_response_spec.rb +0 -21
  1056. data/client/spec/models/get_email_template_render_errors200_response_spec.rb +0 -21
  1057. data/client/spec/models/get_email_templates200_response_spec.rb +0 -21
  1058. data/client/spec/models/get_event_log200_response_spec.rb +0 -21
  1059. data/client/spec/models/get_feed_posts200_response_spec.rb +0 -21
  1060. data/client/spec/models/get_feed_posts_public200_response_spec.rb +0 -21
  1061. data/client/spec/models/get_feed_posts_stats200_response_spec.rb +0 -21
  1062. data/client/spec/models/get_hash_tags200_response_spec.rb +0 -21
  1063. data/client/spec/models/get_moderator200_response_spec.rb +0 -21
  1064. data/client/spec/models/get_moderators200_response_spec.rb +0 -21
  1065. data/client/spec/models/get_notification_count200_response_spec.rb +0 -21
  1066. data/client/spec/models/get_notifications200_response_spec.rb +0 -21
  1067. data/client/spec/models/get_pending_webhook_event_count200_response_spec.rb +0 -21
  1068. data/client/spec/models/get_pending_webhook_events200_response_spec.rb +0 -21
  1069. data/client/spec/models/get_question_config200_response_spec.rb +0 -21
  1070. data/client/spec/models/get_question_configs200_response_spec.rb +0 -21
  1071. data/client/spec/models/get_question_result200_response_spec.rb +0 -21
  1072. data/client/spec/models/get_question_results200_response_spec.rb +0 -21
  1073. data/client/spec/models/get_tenant_daily_usages200_response_spec.rb +0 -21
  1074. data/client/spec/models/get_tenant_package200_response_spec.rb +0 -21
  1075. data/client/spec/models/get_tenant_packages200_response_spec.rb +0 -21
  1076. data/client/spec/models/get_tenant_user200_response_spec.rb +0 -21
  1077. data/client/spec/models/get_tenant_users200_response_spec.rb +0 -21
  1078. data/client/spec/models/get_tenants200_response_spec.rb +0 -21
  1079. data/client/spec/models/get_tickets200_response_spec.rb +0 -21
  1080. data/client/spec/models/get_user_badge200_response_spec.rb +0 -21
  1081. data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +0 -21
  1082. data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +0 -21
  1083. data/client/spec/models/get_user_badges200_response_spec.rb +0 -21
  1084. data/client/spec/models/get_user_notification_count200_response_spec.rb +0 -21
  1085. data/client/spec/models/get_user_notifications200_response_spec.rb +0 -21
  1086. data/client/spec/models/get_user_presence_statuses200_response_spec.rb +0 -21
  1087. data/client/spec/models/get_user_reacts_public200_response_spec.rb +0 -21
  1088. data/client/spec/models/get_votes_for_user200_response_spec.rb +0 -21
  1089. data/client/spec/models/lock_comment200_response_spec.rb +0 -21
  1090. data/client/spec/models/patch_hash_tag200_response_spec.rb +0 -21
  1091. data/client/spec/models/pin_comment200_response_spec.rb +0 -21
  1092. data/client/spec/models/react_feed_post_public200_response_spec.rb +0 -21
  1093. data/client/spec/models/record_string_string_or_number_value_spec.rb +0 -21
  1094. data/client/spec/models/render_email_template200_response_spec.rb +0 -21
  1095. data/client/spec/models/reset_user_notifications200_response_spec.rb +0 -21
  1096. data/client/spec/models/save_comment200_response_spec.rb +0 -21
  1097. data/client/spec/models/search_users200_response_spec.rb +0 -21
  1098. data/client/spec/models/set_comment_text200_response_spec.rb +0 -21
  1099. data/client/spec/models/un_block_comment_public200_response_spec.rb +0 -21
  1100. data/client/spec/models/update_user_badge200_response_spec.rb +0 -21
  1101. data/client/spec/models/vote_comment200_response_spec.rb +0 -21
@@ -0,0 +1,2828 @@
1
+ =begin
2
+ #fastcomments
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FastCommentsClient
16
+ class ModerationApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param comment_id [String]
23
+ # @param vote_id [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :sso
26
+ # @return [VoteDeleteResponse]
27
+ def delete_moderation_vote(comment_id, vote_id, opts = {})
28
+ data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts)
29
+ data
30
+ end
31
+
32
+ # @param comment_id [String]
33
+ # @param vote_id [String]
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :sso
36
+ # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers
37
+ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...'
40
+ end
41
+ # verify the required parameter 'comment_id' is set
42
+ if @api_client.config.client_side_validation && comment_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote"
44
+ end
45
+ # verify the required parameter 'vote_id' is set
46
+ if @api_client.config.client_side_validation && vote_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'vote_id' when calling ModerationApi.delete_moderation_vote"
48
+ end
49
+ # resource path
50
+ local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}/{voteId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body]
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'VoteDeleteResponse'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || []
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"ModerationApi.delete_moderation_vote",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ModerationApi#delete_moderation_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [Float] :page
92
+ # @option opts [Float] :count
93
+ # @option opts [String] :text_search
94
+ # @option opts [String] :by_ip_from_comment
95
+ # @option opts [String] :filters
96
+ # @option opts [String] :search_filters
97
+ # @option opts [String] :sorts
98
+ # @option opts [Boolean] :demo
99
+ # @option opts [String] :sso
100
+ # @return [ModerationAPIGetCommentsResponse]
101
+ def get_api_comments(opts = {})
102
+ data, _status_code, _headers = get_api_comments_with_http_info(opts)
103
+ data
104
+ end
105
+
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [Float] :page
108
+ # @option opts [Float] :count
109
+ # @option opts [String] :text_search
110
+ # @option opts [String] :by_ip_from_comment
111
+ # @option opts [String] :filters
112
+ # @option opts [String] :search_filters
113
+ # @option opts [String] :sorts
114
+ # @option opts [Boolean] :demo
115
+ # @option opts [String] :sso
116
+ # @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers
117
+ def get_api_comments_with_http_info(opts = {})
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...'
120
+ end
121
+ # resource path
122
+ local_var_path = '/auth/my-account/moderate-comments/api/comments'
123
+
124
+ # query parameters
125
+ query_params = opts[:query_params] || {}
126
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
127
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
128
+ query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
129
+ query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
130
+ query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
131
+ query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
132
+ query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil?
133
+ query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
134
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
135
+
136
+ # header parameters
137
+ header_params = opts[:header_params] || {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
140
+
141
+ # form parameters
142
+ form_params = opts[:form_params] || {}
143
+
144
+ # http body (model)
145
+ post_body = opts[:debug_body]
146
+
147
+ # return_type
148
+ return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentsResponse'
149
+
150
+ # auth_names
151
+ auth_names = opts[:debug_auth_names] || []
152
+
153
+ new_options = opts.merge(
154
+ :operation => :"ModerationApi.get_api_comments",
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: ModerationApi#get_api_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+
170
+ # @param [Hash] opts the optional parameters
171
+ # @option opts [String] :batch_job_id
172
+ # @option opts [String] :sso
173
+ # @return [ModerationExportStatusResponse]
174
+ def get_api_export_status(opts = {})
175
+ data, _status_code, _headers = get_api_export_status_with_http_info(opts)
176
+ data
177
+ end
178
+
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [String] :batch_job_id
181
+ # @option opts [String] :sso
182
+ # @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers
183
+ def get_api_export_status_with_http_info(opts = {})
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...'
186
+ end
187
+ # resource path
188
+ local_var_path = '/auth/my-account/moderate-comments/api/export/status'
189
+
190
+ # query parameters
191
+ query_params = opts[:query_params] || {}
192
+ query_params[:'batchJobId'] = opts[:'batch_job_id'] if !opts[:'batch_job_id'].nil?
193
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:debug_body]
205
+
206
+ # return_type
207
+ return_type = opts[:debug_return_type] || 'ModerationExportStatusResponse'
208
+
209
+ # auth_names
210
+ auth_names = opts[:debug_auth_names] || []
211
+
212
+ new_options = opts.merge(
213
+ :operation => :"ModerationApi.get_api_export_status",
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => return_type
220
+ )
221
+
222
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: ModerationApi#get_api_export_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+
229
+ # @param [Hash] opts the optional parameters
230
+ # @option opts [String] :text_search
231
+ # @option opts [String] :by_ip_from_comment
232
+ # @option opts [String] :filters
233
+ # @option opts [String] :search_filters
234
+ # @option opts [String] :after_id
235
+ # @option opts [Boolean] :demo
236
+ # @option opts [String] :sso
237
+ # @return [ModerationAPIGetCommentIdsResponse]
238
+ def get_api_ids(opts = {})
239
+ data, _status_code, _headers = get_api_ids_with_http_info(opts)
240
+ data
241
+ end
242
+
243
+ # @param [Hash] opts the optional parameters
244
+ # @option opts [String] :text_search
245
+ # @option opts [String] :by_ip_from_comment
246
+ # @option opts [String] :filters
247
+ # @option opts [String] :search_filters
248
+ # @option opts [String] :after_id
249
+ # @option opts [Boolean] :demo
250
+ # @option opts [String] :sso
251
+ # @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers
252
+ def get_api_ids_with_http_info(opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...'
255
+ end
256
+ # resource path
257
+ local_var_path = '/auth/my-account/moderate-comments/api/ids'
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+ query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
262
+ query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
263
+ query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
264
+ query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
265
+ query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
266
+ query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
267
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
268
+
269
+ # header parameters
270
+ header_params = opts[:header_params] || {}
271
+ # HTTP header 'Accept' (if needed)
272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
273
+
274
+ # form parameters
275
+ form_params = opts[:form_params] || {}
276
+
277
+ # http body (model)
278
+ post_body = opts[:debug_body]
279
+
280
+ # return_type
281
+ return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentIdsResponse'
282
+
283
+ # auth_names
284
+ auth_names = opts[:debug_auth_names] || []
285
+
286
+ new_options = opts.merge(
287
+ :operation => :"ModerationApi.get_api_ids",
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :return_type => return_type
294
+ )
295
+
296
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: ModerationApi#get_api_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # @param comment_id [String]
304
+ # @param [Hash] opts the optional parameters
305
+ # @option opts [String] :sso
306
+ # @return [GetBannedUsersFromCommentResponse]
307
+ def get_ban_users_from_comment(comment_id, opts = {})
308
+ data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts)
309
+ data
310
+ end
311
+
312
+ # @param comment_id [String]
313
+ # @param [Hash] opts the optional parameters
314
+ # @option opts [String] :sso
315
+ # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers
316
+ def get_ban_users_from_comment_with_http_info(comment_id, opts = {})
317
+ if @api_client.config.debugging
318
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...'
319
+ end
320
+ # verify the required parameter 'comment_id' is set
321
+ if @api_client.config.client_side_validation && comment_id.nil?
322
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment"
323
+ end
324
+ # resource path
325
+ local_var_path = '/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
326
+
327
+ # query parameters
328
+ query_params = opts[:query_params] || {}
329
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
330
+
331
+ # header parameters
332
+ header_params = opts[:header_params] || {}
333
+ # HTTP header 'Accept' (if needed)
334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
335
+
336
+ # form parameters
337
+ form_params = opts[:form_params] || {}
338
+
339
+ # http body (model)
340
+ post_body = opts[:debug_body]
341
+
342
+ # return_type
343
+ return_type = opts[:debug_return_type] || 'GetBannedUsersFromCommentResponse'
344
+
345
+ # auth_names
346
+ auth_names = opts[:debug_auth_names] || []
347
+
348
+ new_options = opts.merge(
349
+ :operation => :"ModerationApi.get_ban_users_from_comment",
350
+ :header_params => header_params,
351
+ :query_params => query_params,
352
+ :form_params => form_params,
353
+ :body => post_body,
354
+ :auth_names => auth_names,
355
+ :return_type => return_type
356
+ )
357
+
358
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
359
+ if @api_client.config.debugging
360
+ @api_client.config.logger.debug "API called: ModerationApi#get_ban_users_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
+ end
362
+ return data, status_code, headers
363
+ end
364
+
365
+ # @param comment_id [String]
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [String] :sso
368
+ # @return [GetCommentBanStatusResponse]
369
+ def get_comment_ban_status(comment_id, opts = {})
370
+ data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts)
371
+ data
372
+ end
373
+
374
+ # @param comment_id [String]
375
+ # @param [Hash] opts the optional parameters
376
+ # @option opts [String] :sso
377
+ # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers
378
+ def get_comment_ban_status_with_http_info(comment_id, opts = {})
379
+ if @api_client.config.debugging
380
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...'
381
+ end
382
+ # verify the required parameter 'comment_id' is set
383
+ if @api_client.config.client_side_validation && comment_id.nil?
384
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status"
385
+ end
386
+ # resource path
387
+ local_var_path = '/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
388
+
389
+ # query parameters
390
+ query_params = opts[:query_params] || {}
391
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
392
+
393
+ # header parameters
394
+ header_params = opts[:header_params] || {}
395
+ # HTTP header 'Accept' (if needed)
396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
397
+
398
+ # form parameters
399
+ form_params = opts[:form_params] || {}
400
+
401
+ # http body (model)
402
+ post_body = opts[:debug_body]
403
+
404
+ # return_type
405
+ return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse'
406
+
407
+ # auth_names
408
+ auth_names = opts[:debug_auth_names] || []
409
+
410
+ new_options = opts.merge(
411
+ :operation => :"ModerationApi.get_comment_ban_status",
412
+ :header_params => header_params,
413
+ :query_params => query_params,
414
+ :form_params => form_params,
415
+ :body => post_body,
416
+ :auth_names => auth_names,
417
+ :return_type => return_type
418
+ )
419
+
420
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
421
+ if @api_client.config.debugging
422
+ @api_client.config.logger.debug "API called: ModerationApi#get_comment_ban_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
423
+ end
424
+ return data, status_code, headers
425
+ end
426
+
427
+ # @param comment_id [String]
428
+ # @param [Hash] opts the optional parameters
429
+ # @option opts [String] :sso
430
+ # @return [ModerationAPIChildCommentsResponse]
431
+ def get_comment_children(comment_id, opts = {})
432
+ data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts)
433
+ data
434
+ end
435
+
436
+ # @param comment_id [String]
437
+ # @param [Hash] opts the optional parameters
438
+ # @option opts [String] :sso
439
+ # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers
440
+ def get_comment_children_with_http_info(comment_id, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...'
443
+ end
444
+ # verify the required parameter 'comment_id' is set
445
+ if @api_client.config.client_side_validation && comment_id.nil?
446
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children"
447
+ end
448
+ # resource path
449
+ local_var_path = '/auth/my-account/moderate-comments/comment-children/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
450
+
451
+ # query parameters
452
+ query_params = opts[:query_params] || {}
453
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
454
+
455
+ # header parameters
456
+ header_params = opts[:header_params] || {}
457
+ # HTTP header 'Accept' (if needed)
458
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
459
+
460
+ # form parameters
461
+ form_params = opts[:form_params] || {}
462
+
463
+ # http body (model)
464
+ post_body = opts[:debug_body]
465
+
466
+ # return_type
467
+ return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse'
468
+
469
+ # auth_names
470
+ auth_names = opts[:debug_auth_names] || []
471
+
472
+ new_options = opts.merge(
473
+ :operation => :"ModerationApi.get_comment_children",
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => return_type
480
+ )
481
+
482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug "API called: ModerationApi#get_comment_children\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
+ end
486
+ return data, status_code, headers
487
+ end
488
+
489
+ # @param [Hash] opts the optional parameters
490
+ # @option opts [String] :text_search
491
+ # @option opts [String] :by_ip_from_comment
492
+ # @option opts [String] :filter
493
+ # @option opts [String] :search_filters
494
+ # @option opts [Boolean] :demo
495
+ # @option opts [String] :sso
496
+ # @return [ModerationAPICountCommentsResponse]
497
+ def get_count(opts = {})
498
+ data, _status_code, _headers = get_count_with_http_info(opts)
499
+ data
500
+ end
501
+
502
+ # @param [Hash] opts the optional parameters
503
+ # @option opts [String] :text_search
504
+ # @option opts [String] :by_ip_from_comment
505
+ # @option opts [String] :filter
506
+ # @option opts [String] :search_filters
507
+ # @option opts [Boolean] :demo
508
+ # @option opts [String] :sso
509
+ # @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers
510
+ def get_count_with_http_info(opts = {})
511
+ if @api_client.config.debugging
512
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...'
513
+ end
514
+ # resource path
515
+ local_var_path = '/auth/my-account/moderate-comments/count'
516
+
517
+ # query parameters
518
+ query_params = opts[:query_params] || {}
519
+ query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
520
+ query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
521
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
522
+ query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
523
+ query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil?
524
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
525
+
526
+ # header parameters
527
+ header_params = opts[:header_params] || {}
528
+ # HTTP header 'Accept' (if needed)
529
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
530
+
531
+ # form parameters
532
+ form_params = opts[:form_params] || {}
533
+
534
+ # http body (model)
535
+ post_body = opts[:debug_body]
536
+
537
+ # return_type
538
+ return_type = opts[:debug_return_type] || 'ModerationAPICountCommentsResponse'
539
+
540
+ # auth_names
541
+ auth_names = opts[:debug_auth_names] || []
542
+
543
+ new_options = opts.merge(
544
+ :operation => :"ModerationApi.get_count",
545
+ :header_params => header_params,
546
+ :query_params => query_params,
547
+ :form_params => form_params,
548
+ :body => post_body,
549
+ :auth_names => auth_names,
550
+ :return_type => return_type
551
+ )
552
+
553
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
554
+ if @api_client.config.debugging
555
+ @api_client.config.logger.debug "API called: ModerationApi#get_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
+ end
557
+ return data, status_code, headers
558
+ end
559
+
560
+ # @param [Hash] opts the optional parameters
561
+ # @option opts [String] :sso
562
+ # @return [GetBannedUsersCountResponse]
563
+ def get_counts(opts = {})
564
+ data, _status_code, _headers = get_counts_with_http_info(opts)
565
+ data
566
+ end
567
+
568
+ # @param [Hash] opts the optional parameters
569
+ # @option opts [String] :sso
570
+ # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers
571
+ def get_counts_with_http_info(opts = {})
572
+ if @api_client.config.debugging
573
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...'
574
+ end
575
+ # resource path
576
+ local_var_path = '/auth/my-account/moderate-comments/banned-users/counts'
577
+
578
+ # query parameters
579
+ query_params = opts[:query_params] || {}
580
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
581
+
582
+ # header parameters
583
+ header_params = opts[:header_params] || {}
584
+ # HTTP header 'Accept' (if needed)
585
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
586
+
587
+ # form parameters
588
+ form_params = opts[:form_params] || {}
589
+
590
+ # http body (model)
591
+ post_body = opts[:debug_body]
592
+
593
+ # return_type
594
+ return_type = opts[:debug_return_type] || 'GetBannedUsersCountResponse'
595
+
596
+ # auth_names
597
+ auth_names = opts[:debug_auth_names] || []
598
+
599
+ new_options = opts.merge(
600
+ :operation => :"ModerationApi.get_counts",
601
+ :header_params => header_params,
602
+ :query_params => query_params,
603
+ :form_params => form_params,
604
+ :body => post_body,
605
+ :auth_names => auth_names,
606
+ :return_type => return_type
607
+ )
608
+
609
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug "API called: ModerationApi#get_counts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
612
+ end
613
+ return data, status_code, headers
614
+ end
615
+
616
+ # @param comment_id [String]
617
+ # @param [Hash] opts the optional parameters
618
+ # @option opts [String] :sso
619
+ # @return [ModerationAPIGetLogsResponse]
620
+ def get_logs(comment_id, opts = {})
621
+ data, _status_code, _headers = get_logs_with_http_info(comment_id, opts)
622
+ data
623
+ end
624
+
625
+ # @param comment_id [String]
626
+ # @param [Hash] opts the optional parameters
627
+ # @option opts [String] :sso
628
+ # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers
629
+ def get_logs_with_http_info(comment_id, opts = {})
630
+ if @api_client.config.debugging
631
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...'
632
+ end
633
+ # verify the required parameter 'comment_id' is set
634
+ if @api_client.config.client_side_validation && comment_id.nil?
635
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs"
636
+ end
637
+ # resource path
638
+ local_var_path = '/auth/my-account/moderate-comments/logs/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
639
+
640
+ # query parameters
641
+ query_params = opts[:query_params] || {}
642
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
643
+
644
+ # header parameters
645
+ header_params = opts[:header_params] || {}
646
+ # HTTP header 'Accept' (if needed)
647
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
648
+
649
+ # form parameters
650
+ form_params = opts[:form_params] || {}
651
+
652
+ # http body (model)
653
+ post_body = opts[:debug_body]
654
+
655
+ # return_type
656
+ return_type = opts[:debug_return_type] || 'ModerationAPIGetLogsResponse'
657
+
658
+ # auth_names
659
+ auth_names = opts[:debug_auth_names] || []
660
+
661
+ new_options = opts.merge(
662
+ :operation => :"ModerationApi.get_logs",
663
+ :header_params => header_params,
664
+ :query_params => query_params,
665
+ :form_params => form_params,
666
+ :body => post_body,
667
+ :auth_names => auth_names,
668
+ :return_type => return_type
669
+ )
670
+
671
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug "API called: ModerationApi#get_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
+ end
675
+ return data, status_code, headers
676
+ end
677
+
678
+ # @param [Hash] opts the optional parameters
679
+ # @option opts [String] :sso
680
+ # @return [GetTenantManualBadgesResponse]
681
+ def get_manual_badges(opts = {})
682
+ data, _status_code, _headers = get_manual_badges_with_http_info(opts)
683
+ data
684
+ end
685
+
686
+ # @param [Hash] opts the optional parameters
687
+ # @option opts [String] :sso
688
+ # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers
689
+ def get_manual_badges_with_http_info(opts = {})
690
+ if @api_client.config.debugging
691
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...'
692
+ end
693
+ # resource path
694
+ local_var_path = '/auth/my-account/moderate-comments/get-manual-badges'
695
+
696
+ # query parameters
697
+ query_params = opts[:query_params] || {}
698
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
699
+
700
+ # header parameters
701
+ header_params = opts[:header_params] || {}
702
+ # HTTP header 'Accept' (if needed)
703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
704
+
705
+ # form parameters
706
+ form_params = opts[:form_params] || {}
707
+
708
+ # http body (model)
709
+ post_body = opts[:debug_body]
710
+
711
+ # return_type
712
+ return_type = opts[:debug_return_type] || 'GetTenantManualBadgesResponse'
713
+
714
+ # auth_names
715
+ auth_names = opts[:debug_auth_names] || []
716
+
717
+ new_options = opts.merge(
718
+ :operation => :"ModerationApi.get_manual_badges",
719
+ :header_params => header_params,
720
+ :query_params => query_params,
721
+ :form_params => form_params,
722
+ :body => post_body,
723
+ :auth_names => auth_names,
724
+ :return_type => return_type
725
+ )
726
+
727
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
728
+ if @api_client.config.debugging
729
+ @api_client.config.logger.debug "API called: ModerationApi#get_manual_badges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
730
+ end
731
+ return data, status_code, headers
732
+ end
733
+
734
+ # @param [Hash] opts the optional parameters
735
+ # @option opts [String] :badges_user_id
736
+ # @option opts [String] :comment_id
737
+ # @option opts [String] :sso
738
+ # @return [GetUserManualBadgesResponse]
739
+ def get_manual_badges_for_user(opts = {})
740
+ data, _status_code, _headers = get_manual_badges_for_user_with_http_info(opts)
741
+ data
742
+ end
743
+
744
+ # @param [Hash] opts the optional parameters
745
+ # @option opts [String] :badges_user_id
746
+ # @option opts [String] :comment_id
747
+ # @option opts [String] :sso
748
+ # @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers
749
+ def get_manual_badges_for_user_with_http_info(opts = {})
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...'
752
+ end
753
+ # resource path
754
+ local_var_path = '/auth/my-account/moderate-comments/get-manual-badges-for-user'
755
+
756
+ # query parameters
757
+ query_params = opts[:query_params] || {}
758
+ query_params[:'badgesUserId'] = opts[:'badges_user_id'] if !opts[:'badges_user_id'].nil?
759
+ query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
760
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
761
+
762
+ # header parameters
763
+ header_params = opts[:header_params] || {}
764
+ # HTTP header 'Accept' (if needed)
765
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
766
+
767
+ # form parameters
768
+ form_params = opts[:form_params] || {}
769
+
770
+ # http body (model)
771
+ post_body = opts[:debug_body]
772
+
773
+ # return_type
774
+ return_type = opts[:debug_return_type] || 'GetUserManualBadgesResponse'
775
+
776
+ # auth_names
777
+ auth_names = opts[:debug_auth_names] || []
778
+
779
+ new_options = opts.merge(
780
+ :operation => :"ModerationApi.get_manual_badges_for_user",
781
+ :header_params => header_params,
782
+ :query_params => query_params,
783
+ :form_params => form_params,
784
+ :body => post_body,
785
+ :auth_names => auth_names,
786
+ :return_type => return_type
787
+ )
788
+
789
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
790
+ if @api_client.config.debugging
791
+ @api_client.config.logger.debug "API called: ModerationApi#get_manual_badges_for_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
792
+ end
793
+ return data, status_code, headers
794
+ end
795
+
796
+ # @param comment_id [String]
797
+ # @param [Hash] opts the optional parameters
798
+ # @option opts [Boolean] :include_email
799
+ # @option opts [Boolean] :include_ip
800
+ # @option opts [String] :sso
801
+ # @return [ModerationAPICommentResponse]
802
+ def get_moderation_comment(comment_id, opts = {})
803
+ data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts)
804
+ data
805
+ end
806
+
807
+ # @param comment_id [String]
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [Boolean] :include_email
810
+ # @option opts [Boolean] :include_ip
811
+ # @option opts [String] :sso
812
+ # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers
813
+ def get_moderation_comment_with_http_info(comment_id, opts = {})
814
+ if @api_client.config.debugging
815
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...'
816
+ end
817
+ # verify the required parameter 'comment_id' is set
818
+ if @api_client.config.client_side_validation && comment_id.nil?
819
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment"
820
+ end
821
+ # resource path
822
+ local_var_path = '/auth/my-account/moderate-comments/comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
823
+
824
+ # query parameters
825
+ query_params = opts[:query_params] || {}
826
+ query_params[:'includeEmail'] = opts[:'include_email'] if !opts[:'include_email'].nil?
827
+ query_params[:'includeIP'] = opts[:'include_ip'] if !opts[:'include_ip'].nil?
828
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
829
+
830
+ # header parameters
831
+ header_params = opts[:header_params] || {}
832
+ # HTTP header 'Accept' (if needed)
833
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
834
+
835
+ # form parameters
836
+ form_params = opts[:form_params] || {}
837
+
838
+ # http body (model)
839
+ post_body = opts[:debug_body]
840
+
841
+ # return_type
842
+ return_type = opts[:debug_return_type] || 'ModerationAPICommentResponse'
843
+
844
+ # auth_names
845
+ auth_names = opts[:debug_auth_names] || []
846
+
847
+ new_options = opts.merge(
848
+ :operation => :"ModerationApi.get_moderation_comment",
849
+ :header_params => header_params,
850
+ :query_params => query_params,
851
+ :form_params => form_params,
852
+ :body => post_body,
853
+ :auth_names => auth_names,
854
+ :return_type => return_type
855
+ )
856
+
857
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
858
+ if @api_client.config.debugging
859
+ @api_client.config.logger.debug "API called: ModerationApi#get_moderation_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
860
+ end
861
+ return data, status_code, headers
862
+ end
863
+
864
+ # @param comment_id [String]
865
+ # @param [Hash] opts the optional parameters
866
+ # @option opts [String] :sso
867
+ # @return [GetCommentTextResponse]
868
+ def get_moderation_comment_text(comment_id, opts = {})
869
+ data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts)
870
+ data
871
+ end
872
+
873
+ # @param comment_id [String]
874
+ # @param [Hash] opts the optional parameters
875
+ # @option opts [String] :sso
876
+ # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers
877
+ def get_moderation_comment_text_with_http_info(comment_id, opts = {})
878
+ if @api_client.config.debugging
879
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...'
880
+ end
881
+ # verify the required parameter 'comment_id' is set
882
+ if @api_client.config.client_side_validation && comment_id.nil?
883
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text"
884
+ end
885
+ # resource path
886
+ local_var_path = '/auth/my-account/moderate-comments/get-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
887
+
888
+ # query parameters
889
+ query_params = opts[:query_params] || {}
890
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
891
+
892
+ # header parameters
893
+ header_params = opts[:header_params] || {}
894
+ # HTTP header 'Accept' (if needed)
895
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
896
+
897
+ # form parameters
898
+ form_params = opts[:form_params] || {}
899
+
900
+ # http body (model)
901
+ post_body = opts[:debug_body]
902
+
903
+ # return_type
904
+ return_type = opts[:debug_return_type] || 'GetCommentTextResponse'
905
+
906
+ # auth_names
907
+ auth_names = opts[:debug_auth_names] || []
908
+
909
+ new_options = opts.merge(
910
+ :operation => :"ModerationApi.get_moderation_comment_text",
911
+ :header_params => header_params,
912
+ :query_params => query_params,
913
+ :form_params => form_params,
914
+ :body => post_body,
915
+ :auth_names => auth_names,
916
+ :return_type => return_type
917
+ )
918
+
919
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug "API called: ModerationApi#get_moderation_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
922
+ end
923
+ return data, status_code, headers
924
+ end
925
+
926
+ # @param comment_id [String]
927
+ # @param [Hash] opts the optional parameters
928
+ # @option opts [Boolean] :include_by_user_id_and_email
929
+ # @option opts [Boolean] :include_by_ip
930
+ # @option opts [Boolean] :include_by_email_domain
931
+ # @option opts [String] :sso
932
+ # @return [PreBanSummary]
933
+ def get_pre_ban_summary(comment_id, opts = {})
934
+ data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts)
935
+ data
936
+ end
937
+
938
+ # @param comment_id [String]
939
+ # @param [Hash] opts the optional parameters
940
+ # @option opts [Boolean] :include_by_user_id_and_email
941
+ # @option opts [Boolean] :include_by_ip
942
+ # @option opts [Boolean] :include_by_email_domain
943
+ # @option opts [String] :sso
944
+ # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers
945
+ def get_pre_ban_summary_with_http_info(comment_id, opts = {})
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...'
948
+ end
949
+ # verify the required parameter 'comment_id' is set
950
+ if @api_client.config.client_side_validation && comment_id.nil?
951
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary"
952
+ end
953
+ # resource path
954
+ local_var_path = '/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
955
+
956
+ # query parameters
957
+ query_params = opts[:query_params] || {}
958
+ query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil?
959
+ query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil?
960
+ query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil?
961
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
962
+
963
+ # header parameters
964
+ header_params = opts[:header_params] || {}
965
+ # HTTP header 'Accept' (if needed)
966
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
967
+
968
+ # form parameters
969
+ form_params = opts[:form_params] || {}
970
+
971
+ # http body (model)
972
+ post_body = opts[:debug_body]
973
+
974
+ # return_type
975
+ return_type = opts[:debug_return_type] || 'PreBanSummary'
976
+
977
+ # auth_names
978
+ auth_names = opts[:debug_auth_names] || []
979
+
980
+ new_options = opts.merge(
981
+ :operation => :"ModerationApi.get_pre_ban_summary",
982
+ :header_params => header_params,
983
+ :query_params => query_params,
984
+ :form_params => form_params,
985
+ :body => post_body,
986
+ :auth_names => auth_names,
987
+ :return_type => return_type
988
+ )
989
+
990
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
991
+ if @api_client.config.debugging
992
+ @api_client.config.logger.debug "API called: ModerationApi#get_pre_ban_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
993
+ end
994
+ return data, status_code, headers
995
+ end
996
+
997
+ # @param [Hash] opts the optional parameters
998
+ # @option opts [String] :value
999
+ # @option opts [String] :filters
1000
+ # @option opts [String] :search_filters
1001
+ # @option opts [String] :sso
1002
+ # @return [ModerationCommentSearchResponse]
1003
+ def get_search_comments_summary(opts = {})
1004
+ data, _status_code, _headers = get_search_comments_summary_with_http_info(opts)
1005
+ data
1006
+ end
1007
+
1008
+ # @param [Hash] opts the optional parameters
1009
+ # @option opts [String] :value
1010
+ # @option opts [String] :filters
1011
+ # @option opts [String] :search_filters
1012
+ # @option opts [String] :sso
1013
+ # @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers
1014
+ def get_search_comments_summary_with_http_info(opts = {})
1015
+ if @api_client.config.debugging
1016
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...'
1017
+ end
1018
+ # resource path
1019
+ local_var_path = '/auth/my-account/moderate-comments/search/comments/summary'
1020
+
1021
+ # query parameters
1022
+ query_params = opts[:query_params] || {}
1023
+ query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
1024
+ query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1025
+ query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
1026
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1027
+
1028
+ # header parameters
1029
+ header_params = opts[:header_params] || {}
1030
+ # HTTP header 'Accept' (if needed)
1031
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1032
+
1033
+ # form parameters
1034
+ form_params = opts[:form_params] || {}
1035
+
1036
+ # http body (model)
1037
+ post_body = opts[:debug_body]
1038
+
1039
+ # return_type
1040
+ return_type = opts[:debug_return_type] || 'ModerationCommentSearchResponse'
1041
+
1042
+ # auth_names
1043
+ auth_names = opts[:debug_auth_names] || []
1044
+
1045
+ new_options = opts.merge(
1046
+ :operation => :"ModerationApi.get_search_comments_summary",
1047
+ :header_params => header_params,
1048
+ :query_params => query_params,
1049
+ :form_params => form_params,
1050
+ :body => post_body,
1051
+ :auth_names => auth_names,
1052
+ :return_type => return_type
1053
+ )
1054
+
1055
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1056
+ if @api_client.config.debugging
1057
+ @api_client.config.logger.debug "API called: ModerationApi#get_search_comments_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1058
+ end
1059
+ return data, status_code, headers
1060
+ end
1061
+
1062
+ # @param [Hash] opts the optional parameters
1063
+ # @option opts [String] :value
1064
+ # @option opts [String] :sso
1065
+ # @return [ModerationPageSearchResponse]
1066
+ def get_search_pages(opts = {})
1067
+ data, _status_code, _headers = get_search_pages_with_http_info(opts)
1068
+ data
1069
+ end
1070
+
1071
+ # @param [Hash] opts the optional parameters
1072
+ # @option opts [String] :value
1073
+ # @option opts [String] :sso
1074
+ # @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers
1075
+ def get_search_pages_with_http_info(opts = {})
1076
+ if @api_client.config.debugging
1077
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...'
1078
+ end
1079
+ # resource path
1080
+ local_var_path = '/auth/my-account/moderate-comments/search/pages'
1081
+
1082
+ # query parameters
1083
+ query_params = opts[:query_params] || {}
1084
+ query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
1085
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1086
+
1087
+ # header parameters
1088
+ header_params = opts[:header_params] || {}
1089
+ # HTTP header 'Accept' (if needed)
1090
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1091
+
1092
+ # form parameters
1093
+ form_params = opts[:form_params] || {}
1094
+
1095
+ # http body (model)
1096
+ post_body = opts[:debug_body]
1097
+
1098
+ # return_type
1099
+ return_type = opts[:debug_return_type] || 'ModerationPageSearchResponse'
1100
+
1101
+ # auth_names
1102
+ auth_names = opts[:debug_auth_names] || []
1103
+
1104
+ new_options = opts.merge(
1105
+ :operation => :"ModerationApi.get_search_pages",
1106
+ :header_params => header_params,
1107
+ :query_params => query_params,
1108
+ :form_params => form_params,
1109
+ :body => post_body,
1110
+ :auth_names => auth_names,
1111
+ :return_type => return_type
1112
+ )
1113
+
1114
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug "API called: ModerationApi#get_search_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1117
+ end
1118
+ return data, status_code, headers
1119
+ end
1120
+
1121
+ # @param [Hash] opts the optional parameters
1122
+ # @option opts [String] :value
1123
+ # @option opts [String] :sso
1124
+ # @return [ModerationSiteSearchResponse]
1125
+ def get_search_sites(opts = {})
1126
+ data, _status_code, _headers = get_search_sites_with_http_info(opts)
1127
+ data
1128
+ end
1129
+
1130
+ # @param [Hash] opts the optional parameters
1131
+ # @option opts [String] :value
1132
+ # @option opts [String] :sso
1133
+ # @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers
1134
+ def get_search_sites_with_http_info(opts = {})
1135
+ if @api_client.config.debugging
1136
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...'
1137
+ end
1138
+ # resource path
1139
+ local_var_path = '/auth/my-account/moderate-comments/search/sites'
1140
+
1141
+ # query parameters
1142
+ query_params = opts[:query_params] || {}
1143
+ query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
1144
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1145
+
1146
+ # header parameters
1147
+ header_params = opts[:header_params] || {}
1148
+ # HTTP header 'Accept' (if needed)
1149
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1150
+
1151
+ # form parameters
1152
+ form_params = opts[:form_params] || {}
1153
+
1154
+ # http body (model)
1155
+ post_body = opts[:debug_body]
1156
+
1157
+ # return_type
1158
+ return_type = opts[:debug_return_type] || 'ModerationSiteSearchResponse'
1159
+
1160
+ # auth_names
1161
+ auth_names = opts[:debug_auth_names] || []
1162
+
1163
+ new_options = opts.merge(
1164
+ :operation => :"ModerationApi.get_search_sites",
1165
+ :header_params => header_params,
1166
+ :query_params => query_params,
1167
+ :form_params => form_params,
1168
+ :body => post_body,
1169
+ :auth_names => auth_names,
1170
+ :return_type => return_type
1171
+ )
1172
+
1173
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1174
+ if @api_client.config.debugging
1175
+ @api_client.config.logger.debug "API called: ModerationApi#get_search_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1176
+ end
1177
+ return data, status_code, headers
1178
+ end
1179
+
1180
+ # @param [Hash] opts the optional parameters
1181
+ # @option opts [String] :text_search
1182
+ # @option opts [String] :sso
1183
+ # @return [ModerationSuggestResponse]
1184
+ def get_search_suggest(opts = {})
1185
+ data, _status_code, _headers = get_search_suggest_with_http_info(opts)
1186
+ data
1187
+ end
1188
+
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @option opts [String] :text_search
1191
+ # @option opts [String] :sso
1192
+ # @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers
1193
+ def get_search_suggest_with_http_info(opts = {})
1194
+ if @api_client.config.debugging
1195
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...'
1196
+ end
1197
+ # resource path
1198
+ local_var_path = '/auth/my-account/moderate-comments/search/suggest'
1199
+
1200
+ # query parameters
1201
+ query_params = opts[:query_params] || {}
1202
+ query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
1203
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1204
+
1205
+ # header parameters
1206
+ header_params = opts[:header_params] || {}
1207
+ # HTTP header 'Accept' (if needed)
1208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1209
+
1210
+ # form parameters
1211
+ form_params = opts[:form_params] || {}
1212
+
1213
+ # http body (model)
1214
+ post_body = opts[:debug_body]
1215
+
1216
+ # return_type
1217
+ return_type = opts[:debug_return_type] || 'ModerationSuggestResponse'
1218
+
1219
+ # auth_names
1220
+ auth_names = opts[:debug_auth_names] || []
1221
+
1222
+ new_options = opts.merge(
1223
+ :operation => :"ModerationApi.get_search_suggest",
1224
+ :header_params => header_params,
1225
+ :query_params => query_params,
1226
+ :form_params => form_params,
1227
+ :body => post_body,
1228
+ :auth_names => auth_names,
1229
+ :return_type => return_type
1230
+ )
1231
+
1232
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1233
+ if @api_client.config.debugging
1234
+ @api_client.config.logger.debug "API called: ModerationApi#get_search_suggest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1235
+ end
1236
+ return data, status_code, headers
1237
+ end
1238
+
1239
+ # @param [Hash] opts the optional parameters
1240
+ # @option opts [String] :value
1241
+ # @option opts [String] :sso
1242
+ # @return [ModerationUserSearchResponse]
1243
+ def get_search_users(opts = {})
1244
+ data, _status_code, _headers = get_search_users_with_http_info(opts)
1245
+ data
1246
+ end
1247
+
1248
+ # @param [Hash] opts the optional parameters
1249
+ # @option opts [String] :value
1250
+ # @option opts [String] :sso
1251
+ # @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers
1252
+ def get_search_users_with_http_info(opts = {})
1253
+ if @api_client.config.debugging
1254
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...'
1255
+ end
1256
+ # resource path
1257
+ local_var_path = '/auth/my-account/moderate-comments/search/users'
1258
+
1259
+ # query parameters
1260
+ query_params = opts[:query_params] || {}
1261
+ query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
1262
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1263
+
1264
+ # header parameters
1265
+ header_params = opts[:header_params] || {}
1266
+ # HTTP header 'Accept' (if needed)
1267
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1268
+
1269
+ # form parameters
1270
+ form_params = opts[:form_params] || {}
1271
+
1272
+ # http body (model)
1273
+ post_body = opts[:debug_body]
1274
+
1275
+ # return_type
1276
+ return_type = opts[:debug_return_type] || 'ModerationUserSearchResponse'
1277
+
1278
+ # auth_names
1279
+ auth_names = opts[:debug_auth_names] || []
1280
+
1281
+ new_options = opts.merge(
1282
+ :operation => :"ModerationApi.get_search_users",
1283
+ :header_params => header_params,
1284
+ :query_params => query_params,
1285
+ :form_params => form_params,
1286
+ :body => post_body,
1287
+ :auth_names => auth_names,
1288
+ :return_type => return_type
1289
+ )
1290
+
1291
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1292
+ if @api_client.config.debugging
1293
+ @api_client.config.logger.debug "API called: ModerationApi#get_search_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1294
+ end
1295
+ return data, status_code, headers
1296
+ end
1297
+
1298
+ # @param [Hash] opts the optional parameters
1299
+ # @option opts [String] :user_id
1300
+ # @option opts [String] :sso
1301
+ # @return [GetUserTrustFactorResponse]
1302
+ def get_trust_factor(opts = {})
1303
+ data, _status_code, _headers = get_trust_factor_with_http_info(opts)
1304
+ data
1305
+ end
1306
+
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @option opts [String] :user_id
1309
+ # @option opts [String] :sso
1310
+ # @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers
1311
+ def get_trust_factor_with_http_info(opts = {})
1312
+ if @api_client.config.debugging
1313
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...'
1314
+ end
1315
+ # resource path
1316
+ local_var_path = '/auth/my-account/moderate-comments/get-trust-factor'
1317
+
1318
+ # query parameters
1319
+ query_params = opts[:query_params] || {}
1320
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
1321
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1322
+
1323
+ # header parameters
1324
+ header_params = opts[:header_params] || {}
1325
+ # HTTP header 'Accept' (if needed)
1326
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1327
+
1328
+ # form parameters
1329
+ form_params = opts[:form_params] || {}
1330
+
1331
+ # http body (model)
1332
+ post_body = opts[:debug_body]
1333
+
1334
+ # return_type
1335
+ return_type = opts[:debug_return_type] || 'GetUserTrustFactorResponse'
1336
+
1337
+ # auth_names
1338
+ auth_names = opts[:debug_auth_names] || []
1339
+
1340
+ new_options = opts.merge(
1341
+ :operation => :"ModerationApi.get_trust_factor",
1342
+ :header_params => header_params,
1343
+ :query_params => query_params,
1344
+ :form_params => form_params,
1345
+ :body => post_body,
1346
+ :auth_names => auth_names,
1347
+ :return_type => return_type
1348
+ )
1349
+
1350
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1351
+ if @api_client.config.debugging
1352
+ @api_client.config.logger.debug "API called: ModerationApi#get_trust_factor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1353
+ end
1354
+ return data, status_code, headers
1355
+ end
1356
+
1357
+ # @param [Hash] opts the optional parameters
1358
+ # @option opts [String] :sso
1359
+ # @return [APIModerateGetUserBanPreferencesResponse]
1360
+ def get_user_ban_preference(opts = {})
1361
+ data, _status_code, _headers = get_user_ban_preference_with_http_info(opts)
1362
+ data
1363
+ end
1364
+
1365
+ # @param [Hash] opts the optional parameters
1366
+ # @option opts [String] :sso
1367
+ # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers
1368
+ def get_user_ban_preference_with_http_info(opts = {})
1369
+ if @api_client.config.debugging
1370
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...'
1371
+ end
1372
+ # resource path
1373
+ local_var_path = '/auth/my-account/moderate-comments/user-ban-preference'
1374
+
1375
+ # query parameters
1376
+ query_params = opts[:query_params] || {}
1377
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1378
+
1379
+ # header parameters
1380
+ header_params = opts[:header_params] || {}
1381
+ # HTTP header 'Accept' (if needed)
1382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1383
+
1384
+ # form parameters
1385
+ form_params = opts[:form_params] || {}
1386
+
1387
+ # http body (model)
1388
+ post_body = opts[:debug_body]
1389
+
1390
+ # return_type
1391
+ return_type = opts[:debug_return_type] || 'APIModerateGetUserBanPreferencesResponse'
1392
+
1393
+ # auth_names
1394
+ auth_names = opts[:debug_auth_names] || []
1395
+
1396
+ new_options = opts.merge(
1397
+ :operation => :"ModerationApi.get_user_ban_preference",
1398
+ :header_params => header_params,
1399
+ :query_params => query_params,
1400
+ :form_params => form_params,
1401
+ :body => post_body,
1402
+ :auth_names => auth_names,
1403
+ :return_type => return_type
1404
+ )
1405
+
1406
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1407
+ if @api_client.config.debugging
1408
+ @api_client.config.logger.debug "API called: ModerationApi#get_user_ban_preference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1409
+ end
1410
+ return data, status_code, headers
1411
+ end
1412
+
1413
+ # @param [Hash] opts the optional parameters
1414
+ # @option opts [String] :comment_id
1415
+ # @option opts [String] :sso
1416
+ # @return [GetUserInternalProfileResponse]
1417
+ def get_user_internal_profile(opts = {})
1418
+ data, _status_code, _headers = get_user_internal_profile_with_http_info(opts)
1419
+ data
1420
+ end
1421
+
1422
+ # @param [Hash] opts the optional parameters
1423
+ # @option opts [String] :comment_id
1424
+ # @option opts [String] :sso
1425
+ # @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers
1426
+ def get_user_internal_profile_with_http_info(opts = {})
1427
+ if @api_client.config.debugging
1428
+ @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...'
1429
+ end
1430
+ # resource path
1431
+ local_var_path = '/auth/my-account/moderate-comments/get-user-internal-profile'
1432
+
1433
+ # query parameters
1434
+ query_params = opts[:query_params] || {}
1435
+ query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
1436
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1437
+
1438
+ # header parameters
1439
+ header_params = opts[:header_params] || {}
1440
+ # HTTP header 'Accept' (if needed)
1441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1442
+
1443
+ # form parameters
1444
+ form_params = opts[:form_params] || {}
1445
+
1446
+ # http body (model)
1447
+ post_body = opts[:debug_body]
1448
+
1449
+ # return_type
1450
+ return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse'
1451
+
1452
+ # auth_names
1453
+ auth_names = opts[:debug_auth_names] || []
1454
+
1455
+ new_options = opts.merge(
1456
+ :operation => :"ModerationApi.get_user_internal_profile",
1457
+ :header_params => header_params,
1458
+ :query_params => query_params,
1459
+ :form_params => form_params,
1460
+ :body => post_body,
1461
+ :auth_names => auth_names,
1462
+ :return_type => return_type
1463
+ )
1464
+
1465
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1466
+ if @api_client.config.debugging
1467
+ @api_client.config.logger.debug "API called: ModerationApi#get_user_internal_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1468
+ end
1469
+ return data, status_code, headers
1470
+ end
1471
+
1472
+ # @param comment_id [String]
1473
+ # @param adjust_comment_votes_params [AdjustCommentVotesParams]
1474
+ # @param [Hash] opts the optional parameters
1475
+ # @option opts [String] :sso
1476
+ # @return [AdjustVotesResponse]
1477
+ def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {})
1478
+ data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts)
1479
+ data
1480
+ end
1481
+
1482
+ # @param comment_id [String]
1483
+ # @param adjust_comment_votes_params [AdjustCommentVotesParams]
1484
+ # @param [Hash] opts the optional parameters
1485
+ # @option opts [String] :sso
1486
+ # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers
1487
+ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {})
1488
+ if @api_client.config.debugging
1489
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...'
1490
+ end
1491
+ # verify the required parameter 'comment_id' is set
1492
+ if @api_client.config.client_side_validation && comment_id.nil?
1493
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes"
1494
+ end
1495
+ # verify the required parameter 'adjust_comment_votes_params' is set
1496
+ if @api_client.config.client_side_validation && adjust_comment_votes_params.nil?
1497
+ fail ArgumentError, "Missing the required parameter 'adjust_comment_votes_params' when calling ModerationApi.post_adjust_comment_votes"
1498
+ end
1499
+ # resource path
1500
+ local_var_path = '/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1501
+
1502
+ # query parameters
1503
+ query_params = opts[:query_params] || {}
1504
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1505
+
1506
+ # header parameters
1507
+ header_params = opts[:header_params] || {}
1508
+ # HTTP header 'Accept' (if needed)
1509
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1510
+ # HTTP header 'Content-Type'
1511
+ content_type = @api_client.select_header_content_type(['application/json'])
1512
+ if !content_type.nil?
1513
+ header_params['Content-Type'] = content_type
1514
+ end
1515
+
1516
+ # form parameters
1517
+ form_params = opts[:form_params] || {}
1518
+
1519
+ # http body (model)
1520
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(adjust_comment_votes_params)
1521
+
1522
+ # return_type
1523
+ return_type = opts[:debug_return_type] || 'AdjustVotesResponse'
1524
+
1525
+ # auth_names
1526
+ auth_names = opts[:debug_auth_names] || []
1527
+
1528
+ new_options = opts.merge(
1529
+ :operation => :"ModerationApi.post_adjust_comment_votes",
1530
+ :header_params => header_params,
1531
+ :query_params => query_params,
1532
+ :form_params => form_params,
1533
+ :body => post_body,
1534
+ :auth_names => auth_names,
1535
+ :return_type => return_type
1536
+ )
1537
+
1538
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1539
+ if @api_client.config.debugging
1540
+ @api_client.config.logger.debug "API called: ModerationApi#post_adjust_comment_votes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1541
+ end
1542
+ return data, status_code, headers
1543
+ end
1544
+
1545
+ # @param [Hash] opts the optional parameters
1546
+ # @option opts [String] :text_search
1547
+ # @option opts [String] :by_ip_from_comment
1548
+ # @option opts [String] :filters
1549
+ # @option opts [String] :search_filters
1550
+ # @option opts [String] :sorts
1551
+ # @option opts [String] :sso
1552
+ # @return [ModerationExportResponse]
1553
+ def post_api_export(opts = {})
1554
+ data, _status_code, _headers = post_api_export_with_http_info(opts)
1555
+ data
1556
+ end
1557
+
1558
+ # @param [Hash] opts the optional parameters
1559
+ # @option opts [String] :text_search
1560
+ # @option opts [String] :by_ip_from_comment
1561
+ # @option opts [String] :filters
1562
+ # @option opts [String] :search_filters
1563
+ # @option opts [String] :sorts
1564
+ # @option opts [String] :sso
1565
+ # @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers
1566
+ def post_api_export_with_http_info(opts = {})
1567
+ if @api_client.config.debugging
1568
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...'
1569
+ end
1570
+ # resource path
1571
+ local_var_path = '/auth/my-account/moderate-comments/api/export'
1572
+
1573
+ # query parameters
1574
+ query_params = opts[:query_params] || {}
1575
+ query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil?
1576
+ query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil?
1577
+ query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1578
+ query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil?
1579
+ query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil?
1580
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1581
+
1582
+ # header parameters
1583
+ header_params = opts[:header_params] || {}
1584
+ # HTTP header 'Accept' (if needed)
1585
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1586
+
1587
+ # form parameters
1588
+ form_params = opts[:form_params] || {}
1589
+
1590
+ # http body (model)
1591
+ post_body = opts[:debug_body]
1592
+
1593
+ # return_type
1594
+ return_type = opts[:debug_return_type] || 'ModerationExportResponse'
1595
+
1596
+ # auth_names
1597
+ auth_names = opts[:debug_auth_names] || []
1598
+
1599
+ new_options = opts.merge(
1600
+ :operation => :"ModerationApi.post_api_export",
1601
+ :header_params => header_params,
1602
+ :query_params => query_params,
1603
+ :form_params => form_params,
1604
+ :body => post_body,
1605
+ :auth_names => auth_names,
1606
+ :return_type => return_type
1607
+ )
1608
+
1609
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1610
+ if @api_client.config.debugging
1611
+ @api_client.config.logger.debug "API called: ModerationApi#post_api_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1612
+ end
1613
+ return data, status_code, headers
1614
+ end
1615
+
1616
+ # @param comment_id [String]
1617
+ # @param [Hash] opts the optional parameters
1618
+ # @option opts [Boolean] :ban_email
1619
+ # @option opts [Boolean] :ban_email_domain
1620
+ # @option opts [Boolean] :ban_ip
1621
+ # @option opts [Boolean] :delete_all_users_comments
1622
+ # @option opts [String] :banned_until
1623
+ # @option opts [Boolean] :is_shadow_ban
1624
+ # @option opts [String] :update_id
1625
+ # @option opts [String] :ban_reason
1626
+ # @option opts [String] :sso
1627
+ # @return [BanUserFromCommentResult]
1628
+ def post_ban_user_from_comment(comment_id, opts = {})
1629
+ data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts)
1630
+ data
1631
+ end
1632
+
1633
+ # @param comment_id [String]
1634
+ # @param [Hash] opts the optional parameters
1635
+ # @option opts [Boolean] :ban_email
1636
+ # @option opts [Boolean] :ban_email_domain
1637
+ # @option opts [Boolean] :ban_ip
1638
+ # @option opts [Boolean] :delete_all_users_comments
1639
+ # @option opts [String] :banned_until
1640
+ # @option opts [Boolean] :is_shadow_ban
1641
+ # @option opts [String] :update_id
1642
+ # @option opts [String] :ban_reason
1643
+ # @option opts [String] :sso
1644
+ # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers
1645
+ def post_ban_user_from_comment_with_http_info(comment_id, opts = {})
1646
+ if @api_client.config.debugging
1647
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...'
1648
+ end
1649
+ # verify the required parameter 'comment_id' is set
1650
+ if @api_client.config.client_side_validation && comment_id.nil?
1651
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment"
1652
+ end
1653
+ # resource path
1654
+ local_var_path = '/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1655
+
1656
+ # query parameters
1657
+ query_params = opts[:query_params] || {}
1658
+ query_params[:'banEmail'] = opts[:'ban_email'] if !opts[:'ban_email'].nil?
1659
+ query_params[:'banEmailDomain'] = opts[:'ban_email_domain'] if !opts[:'ban_email_domain'].nil?
1660
+ query_params[:'banIP'] = opts[:'ban_ip'] if !opts[:'ban_ip'].nil?
1661
+ query_params[:'deleteAllUsersComments'] = opts[:'delete_all_users_comments'] if !opts[:'delete_all_users_comments'].nil?
1662
+ query_params[:'bannedUntil'] = opts[:'banned_until'] if !opts[:'banned_until'].nil?
1663
+ query_params[:'isShadowBan'] = opts[:'is_shadow_ban'] if !opts[:'is_shadow_ban'].nil?
1664
+ query_params[:'updateId'] = opts[:'update_id'] if !opts[:'update_id'].nil?
1665
+ query_params[:'banReason'] = opts[:'ban_reason'] if !opts[:'ban_reason'].nil?
1666
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1667
+
1668
+ # header parameters
1669
+ header_params = opts[:header_params] || {}
1670
+ # HTTP header 'Accept' (if needed)
1671
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1672
+
1673
+ # form parameters
1674
+ form_params = opts[:form_params] || {}
1675
+
1676
+ # http body (model)
1677
+ post_body = opts[:debug_body]
1678
+
1679
+ # return_type
1680
+ return_type = opts[:debug_return_type] || 'BanUserFromCommentResult'
1681
+
1682
+ # auth_names
1683
+ auth_names = opts[:debug_auth_names] || []
1684
+
1685
+ new_options = opts.merge(
1686
+ :operation => :"ModerationApi.post_ban_user_from_comment",
1687
+ :header_params => header_params,
1688
+ :query_params => query_params,
1689
+ :form_params => form_params,
1690
+ :body => post_body,
1691
+ :auth_names => auth_names,
1692
+ :return_type => return_type
1693
+ )
1694
+
1695
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1696
+ if @api_client.config.debugging
1697
+ @api_client.config.logger.debug "API called: ModerationApi#post_ban_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1698
+ end
1699
+ return data, status_code, headers
1700
+ end
1701
+
1702
+ # @param ban_user_undo_params [BanUserUndoParams]
1703
+ # @param [Hash] opts the optional parameters
1704
+ # @option opts [String] :sso
1705
+ # @return [APIEmptyResponse]
1706
+ def post_ban_user_undo(ban_user_undo_params, opts = {})
1707
+ data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts)
1708
+ data
1709
+ end
1710
+
1711
+ # @param ban_user_undo_params [BanUserUndoParams]
1712
+ # @param [Hash] opts the optional parameters
1713
+ # @option opts [String] :sso
1714
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
1715
+ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {})
1716
+ if @api_client.config.debugging
1717
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...'
1718
+ end
1719
+ # verify the required parameter 'ban_user_undo_params' is set
1720
+ if @api_client.config.client_side_validation && ban_user_undo_params.nil?
1721
+ fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo"
1722
+ end
1723
+ # resource path
1724
+ local_var_path = '/auth/my-account/moderate-comments/ban-user/undo'
1725
+
1726
+ # query parameters
1727
+ query_params = opts[:query_params] || {}
1728
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1729
+
1730
+ # header parameters
1731
+ header_params = opts[:header_params] || {}
1732
+ # HTTP header 'Accept' (if needed)
1733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1734
+ # HTTP header 'Content-Type'
1735
+ content_type = @api_client.select_header_content_type(['application/json'])
1736
+ if !content_type.nil?
1737
+ header_params['Content-Type'] = content_type
1738
+ end
1739
+
1740
+ # form parameters
1741
+ form_params = opts[:form_params] || {}
1742
+
1743
+ # http body (model)
1744
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(ban_user_undo_params)
1745
+
1746
+ # return_type
1747
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
1748
+
1749
+ # auth_names
1750
+ auth_names = opts[:debug_auth_names] || []
1751
+
1752
+ new_options = opts.merge(
1753
+ :operation => :"ModerationApi.post_ban_user_undo",
1754
+ :header_params => header_params,
1755
+ :query_params => query_params,
1756
+ :form_params => form_params,
1757
+ :body => post_body,
1758
+ :auth_names => auth_names,
1759
+ :return_type => return_type
1760
+ )
1761
+
1762
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1763
+ if @api_client.config.debugging
1764
+ @api_client.config.logger.debug "API called: ModerationApi#post_ban_user_undo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1765
+ end
1766
+ return data, status_code, headers
1767
+ end
1768
+
1769
+ # @param bulk_pre_ban_params [BulkPreBanParams]
1770
+ # @param [Hash] opts the optional parameters
1771
+ # @option opts [Boolean] :include_by_user_id_and_email
1772
+ # @option opts [Boolean] :include_by_ip
1773
+ # @option opts [Boolean] :include_by_email_domain
1774
+ # @option opts [String] :sso
1775
+ # @return [BulkPreBanSummary]
1776
+ def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {})
1777
+ data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts)
1778
+ data
1779
+ end
1780
+
1781
+ # @param bulk_pre_ban_params [BulkPreBanParams]
1782
+ # @param [Hash] opts the optional parameters
1783
+ # @option opts [Boolean] :include_by_user_id_and_email
1784
+ # @option opts [Boolean] :include_by_ip
1785
+ # @option opts [Boolean] :include_by_email_domain
1786
+ # @option opts [String] :sso
1787
+ # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers
1788
+ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {})
1789
+ if @api_client.config.debugging
1790
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...'
1791
+ end
1792
+ # verify the required parameter 'bulk_pre_ban_params' is set
1793
+ if @api_client.config.client_side_validation && bulk_pre_ban_params.nil?
1794
+ fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary"
1795
+ end
1796
+ # resource path
1797
+ local_var_path = '/auth/my-account/moderate-comments/bulk-pre-ban-summary'
1798
+
1799
+ # query parameters
1800
+ query_params = opts[:query_params] || {}
1801
+ query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil?
1802
+ query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil?
1803
+ query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil?
1804
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1805
+
1806
+ # header parameters
1807
+ header_params = opts[:header_params] || {}
1808
+ # HTTP header 'Accept' (if needed)
1809
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1810
+ # HTTP header 'Content-Type'
1811
+ content_type = @api_client.select_header_content_type(['application/json'])
1812
+ if !content_type.nil?
1813
+ header_params['Content-Type'] = content_type
1814
+ end
1815
+
1816
+ # form parameters
1817
+ form_params = opts[:form_params] || {}
1818
+
1819
+ # http body (model)
1820
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_pre_ban_params)
1821
+
1822
+ # return_type
1823
+ return_type = opts[:debug_return_type] || 'BulkPreBanSummary'
1824
+
1825
+ # auth_names
1826
+ auth_names = opts[:debug_auth_names] || []
1827
+
1828
+ new_options = opts.merge(
1829
+ :operation => :"ModerationApi.post_bulk_pre_ban_summary",
1830
+ :header_params => header_params,
1831
+ :query_params => query_params,
1832
+ :form_params => form_params,
1833
+ :body => post_body,
1834
+ :auth_names => auth_names,
1835
+ :return_type => return_type
1836
+ )
1837
+
1838
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1839
+ if @api_client.config.debugging
1840
+ @api_client.config.logger.debug "API called: ModerationApi#post_bulk_pre_ban_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1841
+ end
1842
+ return data, status_code, headers
1843
+ end
1844
+
1845
+ # @param comments_by_ids_params [CommentsByIdsParams]
1846
+ # @param [Hash] opts the optional parameters
1847
+ # @option opts [String] :sso
1848
+ # @return [ModerationAPIChildCommentsResponse]
1849
+ def post_comments_by_ids(comments_by_ids_params, opts = {})
1850
+ data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts)
1851
+ data
1852
+ end
1853
+
1854
+ # @param comments_by_ids_params [CommentsByIdsParams]
1855
+ # @param [Hash] opts the optional parameters
1856
+ # @option opts [String] :sso
1857
+ # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers
1858
+ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {})
1859
+ if @api_client.config.debugging
1860
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...'
1861
+ end
1862
+ # verify the required parameter 'comments_by_ids_params' is set
1863
+ if @api_client.config.client_side_validation && comments_by_ids_params.nil?
1864
+ fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids"
1865
+ end
1866
+ # resource path
1867
+ local_var_path = '/auth/my-account/moderate-comments/comments-by-ids'
1868
+
1869
+ # query parameters
1870
+ query_params = opts[:query_params] || {}
1871
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1872
+
1873
+ # header parameters
1874
+ header_params = opts[:header_params] || {}
1875
+ # HTTP header 'Accept' (if needed)
1876
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1877
+ # HTTP header 'Content-Type'
1878
+ content_type = @api_client.select_header_content_type(['application/json'])
1879
+ if !content_type.nil?
1880
+ header_params['Content-Type'] = content_type
1881
+ end
1882
+
1883
+ # form parameters
1884
+ form_params = opts[:form_params] || {}
1885
+
1886
+ # http body (model)
1887
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(comments_by_ids_params)
1888
+
1889
+ # return_type
1890
+ return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse'
1891
+
1892
+ # auth_names
1893
+ auth_names = opts[:debug_auth_names] || []
1894
+
1895
+ new_options = opts.merge(
1896
+ :operation => :"ModerationApi.post_comments_by_ids",
1897
+ :header_params => header_params,
1898
+ :query_params => query_params,
1899
+ :form_params => form_params,
1900
+ :body => post_body,
1901
+ :auth_names => auth_names,
1902
+ :return_type => return_type
1903
+ )
1904
+
1905
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1906
+ if @api_client.config.debugging
1907
+ @api_client.config.logger.debug "API called: ModerationApi#post_comments_by_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1908
+ end
1909
+ return data, status_code, headers
1910
+ end
1911
+
1912
+ # @param comment_id [String]
1913
+ # @param [Hash] opts the optional parameters
1914
+ # @option opts [String] :sso
1915
+ # @return [APIEmptyResponse]
1916
+ def post_flag_comment(comment_id, opts = {})
1917
+ data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts)
1918
+ data
1919
+ end
1920
+
1921
+ # @param comment_id [String]
1922
+ # @param [Hash] opts the optional parameters
1923
+ # @option opts [String] :sso
1924
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
1925
+ def post_flag_comment_with_http_info(comment_id, opts = {})
1926
+ if @api_client.config.debugging
1927
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...'
1928
+ end
1929
+ # verify the required parameter 'comment_id' is set
1930
+ if @api_client.config.client_side_validation && comment_id.nil?
1931
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment"
1932
+ end
1933
+ # resource path
1934
+ local_var_path = '/auth/my-account/moderate-comments/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1935
+
1936
+ # query parameters
1937
+ query_params = opts[:query_params] || {}
1938
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1939
+
1940
+ # header parameters
1941
+ header_params = opts[:header_params] || {}
1942
+ # HTTP header 'Accept' (if needed)
1943
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1944
+
1945
+ # form parameters
1946
+ form_params = opts[:form_params] || {}
1947
+
1948
+ # http body (model)
1949
+ post_body = opts[:debug_body]
1950
+
1951
+ # return_type
1952
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
1953
+
1954
+ # auth_names
1955
+ auth_names = opts[:debug_auth_names] || []
1956
+
1957
+ new_options = opts.merge(
1958
+ :operation => :"ModerationApi.post_flag_comment",
1959
+ :header_params => header_params,
1960
+ :query_params => query_params,
1961
+ :form_params => form_params,
1962
+ :body => post_body,
1963
+ :auth_names => auth_names,
1964
+ :return_type => return_type
1965
+ )
1966
+
1967
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1968
+ if @api_client.config.debugging
1969
+ @api_client.config.logger.debug "API called: ModerationApi#post_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1970
+ end
1971
+ return data, status_code, headers
1972
+ end
1973
+
1974
+ # @param comment_id [String]
1975
+ # @param [Hash] opts the optional parameters
1976
+ # @option opts [String] :sso
1977
+ # @return [PostRemoveCommentResponse]
1978
+ def post_remove_comment(comment_id, opts = {})
1979
+ data, _status_code, _headers = post_remove_comment_with_http_info(comment_id, opts)
1980
+ data
1981
+ end
1982
+
1983
+ # @param comment_id [String]
1984
+ # @param [Hash] opts the optional parameters
1985
+ # @option opts [String] :sso
1986
+ # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers
1987
+ def post_remove_comment_with_http_info(comment_id, opts = {})
1988
+ if @api_client.config.debugging
1989
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...'
1990
+ end
1991
+ # verify the required parameter 'comment_id' is set
1992
+ if @api_client.config.client_side_validation && comment_id.nil?
1993
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment"
1994
+ end
1995
+ # resource path
1996
+ local_var_path = '/auth/my-account/moderate-comments/remove-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1997
+
1998
+ # query parameters
1999
+ query_params = opts[:query_params] || {}
2000
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2001
+
2002
+ # header parameters
2003
+ header_params = opts[:header_params] || {}
2004
+ # HTTP header 'Accept' (if needed)
2005
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2006
+
2007
+ # form parameters
2008
+ form_params = opts[:form_params] || {}
2009
+
2010
+ # http body (model)
2011
+ post_body = opts[:debug_body]
2012
+
2013
+ # return_type
2014
+ return_type = opts[:debug_return_type] || 'PostRemoveCommentResponse'
2015
+
2016
+ # auth_names
2017
+ auth_names = opts[:debug_auth_names] || []
2018
+
2019
+ new_options = opts.merge(
2020
+ :operation => :"ModerationApi.post_remove_comment",
2021
+ :header_params => header_params,
2022
+ :query_params => query_params,
2023
+ :form_params => form_params,
2024
+ :body => post_body,
2025
+ :auth_names => auth_names,
2026
+ :return_type => return_type
2027
+ )
2028
+
2029
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2030
+ if @api_client.config.debugging
2031
+ @api_client.config.logger.debug "API called: ModerationApi#post_remove_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2032
+ end
2033
+ return data, status_code, headers
2034
+ end
2035
+
2036
+ # @param comment_id [String]
2037
+ # @param [Hash] opts the optional parameters
2038
+ # @option opts [String] :sso
2039
+ # @return [APIEmptyResponse]
2040
+ def post_restore_deleted_comment(comment_id, opts = {})
2041
+ data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts)
2042
+ data
2043
+ end
2044
+
2045
+ # @param comment_id [String]
2046
+ # @param [Hash] opts the optional parameters
2047
+ # @option opts [String] :sso
2048
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2049
+ def post_restore_deleted_comment_with_http_info(comment_id, opts = {})
2050
+ if @api_client.config.debugging
2051
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...'
2052
+ end
2053
+ # verify the required parameter 'comment_id' is set
2054
+ if @api_client.config.client_side_validation && comment_id.nil?
2055
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment"
2056
+ end
2057
+ # resource path
2058
+ local_var_path = '/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2059
+
2060
+ # query parameters
2061
+ query_params = opts[:query_params] || {}
2062
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2063
+
2064
+ # header parameters
2065
+ header_params = opts[:header_params] || {}
2066
+ # HTTP header 'Accept' (if needed)
2067
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2068
+
2069
+ # form parameters
2070
+ form_params = opts[:form_params] || {}
2071
+
2072
+ # http body (model)
2073
+ post_body = opts[:debug_body]
2074
+
2075
+ # return_type
2076
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2077
+
2078
+ # auth_names
2079
+ auth_names = opts[:debug_auth_names] || []
2080
+
2081
+ new_options = opts.merge(
2082
+ :operation => :"ModerationApi.post_restore_deleted_comment",
2083
+ :header_params => header_params,
2084
+ :query_params => query_params,
2085
+ :form_params => form_params,
2086
+ :body => post_body,
2087
+ :auth_names => auth_names,
2088
+ :return_type => return_type
2089
+ )
2090
+
2091
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2092
+ if @api_client.config.debugging
2093
+ @api_client.config.logger.debug "API called: ModerationApi#post_restore_deleted_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2094
+ end
2095
+ return data, status_code, headers
2096
+ end
2097
+
2098
+ # @param comment_id [String]
2099
+ # @param [Hash] opts the optional parameters
2100
+ # @option opts [Boolean] :approved
2101
+ # @option opts [String] :sso
2102
+ # @return [SetCommentApprovedResponse]
2103
+ def post_set_comment_approval_status(comment_id, opts = {})
2104
+ data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts)
2105
+ data
2106
+ end
2107
+
2108
+ # @param comment_id [String]
2109
+ # @param [Hash] opts the optional parameters
2110
+ # @option opts [Boolean] :approved
2111
+ # @option opts [String] :sso
2112
+ # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers
2113
+ def post_set_comment_approval_status_with_http_info(comment_id, opts = {})
2114
+ if @api_client.config.debugging
2115
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...'
2116
+ end
2117
+ # verify the required parameter 'comment_id' is set
2118
+ if @api_client.config.client_side_validation && comment_id.nil?
2119
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status"
2120
+ end
2121
+ # resource path
2122
+ local_var_path = '/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2123
+
2124
+ # query parameters
2125
+ query_params = opts[:query_params] || {}
2126
+ query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil?
2127
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2128
+
2129
+ # header parameters
2130
+ header_params = opts[:header_params] || {}
2131
+ # HTTP header 'Accept' (if needed)
2132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2133
+
2134
+ # form parameters
2135
+ form_params = opts[:form_params] || {}
2136
+
2137
+ # http body (model)
2138
+ post_body = opts[:debug_body]
2139
+
2140
+ # return_type
2141
+ return_type = opts[:debug_return_type] || 'SetCommentApprovedResponse'
2142
+
2143
+ # auth_names
2144
+ auth_names = opts[:debug_auth_names] || []
2145
+
2146
+ new_options = opts.merge(
2147
+ :operation => :"ModerationApi.post_set_comment_approval_status",
2148
+ :header_params => header_params,
2149
+ :query_params => query_params,
2150
+ :form_params => form_params,
2151
+ :body => post_body,
2152
+ :auth_names => auth_names,
2153
+ :return_type => return_type
2154
+ )
2155
+
2156
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2157
+ if @api_client.config.debugging
2158
+ @api_client.config.logger.debug "API called: ModerationApi#post_set_comment_approval_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2159
+ end
2160
+ return data, status_code, headers
2161
+ end
2162
+
2163
+ # @param comment_id [String]
2164
+ # @param [Hash] opts the optional parameters
2165
+ # @option opts [Boolean] :reviewed
2166
+ # @option opts [String] :sso
2167
+ # @return [APIEmptyResponse]
2168
+ def post_set_comment_review_status(comment_id, opts = {})
2169
+ data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts)
2170
+ data
2171
+ end
2172
+
2173
+ # @param comment_id [String]
2174
+ # @param [Hash] opts the optional parameters
2175
+ # @option opts [Boolean] :reviewed
2176
+ # @option opts [String] :sso
2177
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2178
+ def post_set_comment_review_status_with_http_info(comment_id, opts = {})
2179
+ if @api_client.config.debugging
2180
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...'
2181
+ end
2182
+ # verify the required parameter 'comment_id' is set
2183
+ if @api_client.config.client_side_validation && comment_id.nil?
2184
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status"
2185
+ end
2186
+ # resource path
2187
+ local_var_path = '/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2188
+
2189
+ # query parameters
2190
+ query_params = opts[:query_params] || {}
2191
+ query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil?
2192
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2193
+
2194
+ # header parameters
2195
+ header_params = opts[:header_params] || {}
2196
+ # HTTP header 'Accept' (if needed)
2197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2198
+
2199
+ # form parameters
2200
+ form_params = opts[:form_params] || {}
2201
+
2202
+ # http body (model)
2203
+ post_body = opts[:debug_body]
2204
+
2205
+ # return_type
2206
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2207
+
2208
+ # auth_names
2209
+ auth_names = opts[:debug_auth_names] || []
2210
+
2211
+ new_options = opts.merge(
2212
+ :operation => :"ModerationApi.post_set_comment_review_status",
2213
+ :header_params => header_params,
2214
+ :query_params => query_params,
2215
+ :form_params => form_params,
2216
+ :body => post_body,
2217
+ :auth_names => auth_names,
2218
+ :return_type => return_type
2219
+ )
2220
+
2221
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2222
+ if @api_client.config.debugging
2223
+ @api_client.config.logger.debug "API called: ModerationApi#post_set_comment_review_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2224
+ end
2225
+ return data, status_code, headers
2226
+ end
2227
+
2228
+ # @param comment_id [String]
2229
+ # @param [Hash] opts the optional parameters
2230
+ # @option opts [Boolean] :spam
2231
+ # @option opts [Boolean] :perm_not_spam
2232
+ # @option opts [String] :sso
2233
+ # @return [APIEmptyResponse]
2234
+ def post_set_comment_spam_status(comment_id, opts = {})
2235
+ data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts)
2236
+ data
2237
+ end
2238
+
2239
+ # @param comment_id [String]
2240
+ # @param [Hash] opts the optional parameters
2241
+ # @option opts [Boolean] :spam
2242
+ # @option opts [Boolean] :perm_not_spam
2243
+ # @option opts [String] :sso
2244
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2245
+ def post_set_comment_spam_status_with_http_info(comment_id, opts = {})
2246
+ if @api_client.config.debugging
2247
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...'
2248
+ end
2249
+ # verify the required parameter 'comment_id' is set
2250
+ if @api_client.config.client_side_validation && comment_id.nil?
2251
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status"
2252
+ end
2253
+ # resource path
2254
+ local_var_path = '/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2255
+
2256
+ # query parameters
2257
+ query_params = opts[:query_params] || {}
2258
+ query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil?
2259
+ query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil?
2260
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2261
+
2262
+ # header parameters
2263
+ header_params = opts[:header_params] || {}
2264
+ # HTTP header 'Accept' (if needed)
2265
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2266
+
2267
+ # form parameters
2268
+ form_params = opts[:form_params] || {}
2269
+
2270
+ # http body (model)
2271
+ post_body = opts[:debug_body]
2272
+
2273
+ # return_type
2274
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2275
+
2276
+ # auth_names
2277
+ auth_names = opts[:debug_auth_names] || []
2278
+
2279
+ new_options = opts.merge(
2280
+ :operation => :"ModerationApi.post_set_comment_spam_status",
2281
+ :header_params => header_params,
2282
+ :query_params => query_params,
2283
+ :form_params => form_params,
2284
+ :body => post_body,
2285
+ :auth_names => auth_names,
2286
+ :return_type => return_type
2287
+ )
2288
+
2289
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2290
+ if @api_client.config.debugging
2291
+ @api_client.config.logger.debug "API called: ModerationApi#post_set_comment_spam_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2292
+ end
2293
+ return data, status_code, headers
2294
+ end
2295
+
2296
+ # @param comment_id [String]
2297
+ # @param set_comment_text_params [SetCommentTextParams]
2298
+ # @param [Hash] opts the optional parameters
2299
+ # @option opts [String] :sso
2300
+ # @return [SetCommentTextResponse]
2301
+ def post_set_comment_text(comment_id, set_comment_text_params, opts = {})
2302
+ data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts)
2303
+ data
2304
+ end
2305
+
2306
+ # @param comment_id [String]
2307
+ # @param set_comment_text_params [SetCommentTextParams]
2308
+ # @param [Hash] opts the optional parameters
2309
+ # @option opts [String] :sso
2310
+ # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers
2311
+ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {})
2312
+ if @api_client.config.debugging
2313
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...'
2314
+ end
2315
+ # verify the required parameter 'comment_id' is set
2316
+ if @api_client.config.client_side_validation && comment_id.nil?
2317
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text"
2318
+ end
2319
+ # verify the required parameter 'set_comment_text_params' is set
2320
+ if @api_client.config.client_side_validation && set_comment_text_params.nil?
2321
+ fail ArgumentError, "Missing the required parameter 'set_comment_text_params' when calling ModerationApi.post_set_comment_text"
2322
+ end
2323
+ # resource path
2324
+ local_var_path = '/auth/my-account/moderate-comments/set-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2325
+
2326
+ # query parameters
2327
+ query_params = opts[:query_params] || {}
2328
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2329
+
2330
+ # header parameters
2331
+ header_params = opts[:header_params] || {}
2332
+ # HTTP header 'Accept' (if needed)
2333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2334
+ # HTTP header 'Content-Type'
2335
+ content_type = @api_client.select_header_content_type(['application/json'])
2336
+ if !content_type.nil?
2337
+ header_params['Content-Type'] = content_type
2338
+ end
2339
+
2340
+ # form parameters
2341
+ form_params = opts[:form_params] || {}
2342
+
2343
+ # http body (model)
2344
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_comment_text_params)
2345
+
2346
+ # return_type
2347
+ return_type = opts[:debug_return_type] || 'SetCommentTextResponse'
2348
+
2349
+ # auth_names
2350
+ auth_names = opts[:debug_auth_names] || []
2351
+
2352
+ new_options = opts.merge(
2353
+ :operation => :"ModerationApi.post_set_comment_text",
2354
+ :header_params => header_params,
2355
+ :query_params => query_params,
2356
+ :form_params => form_params,
2357
+ :body => post_body,
2358
+ :auth_names => auth_names,
2359
+ :return_type => return_type
2360
+ )
2361
+
2362
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2363
+ if @api_client.config.debugging
2364
+ @api_client.config.logger.debug "API called: ModerationApi#post_set_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2365
+ end
2366
+ return data, status_code, headers
2367
+ end
2368
+
2369
+ # @param comment_id [String]
2370
+ # @param [Hash] opts the optional parameters
2371
+ # @option opts [String] :sso
2372
+ # @return [APIEmptyResponse]
2373
+ def post_un_flag_comment(comment_id, opts = {})
2374
+ data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts)
2375
+ data
2376
+ end
2377
+
2378
+ # @param comment_id [String]
2379
+ # @param [Hash] opts the optional parameters
2380
+ # @option opts [String] :sso
2381
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2382
+ def post_un_flag_comment_with_http_info(comment_id, opts = {})
2383
+ if @api_client.config.debugging
2384
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...'
2385
+ end
2386
+ # verify the required parameter 'comment_id' is set
2387
+ if @api_client.config.client_side_validation && comment_id.nil?
2388
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment"
2389
+ end
2390
+ # resource path
2391
+ local_var_path = '/auth/my-account/moderate-comments/un-flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2392
+
2393
+ # query parameters
2394
+ query_params = opts[:query_params] || {}
2395
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2396
+
2397
+ # header parameters
2398
+ header_params = opts[:header_params] || {}
2399
+ # HTTP header 'Accept' (if needed)
2400
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2401
+
2402
+ # form parameters
2403
+ form_params = opts[:form_params] || {}
2404
+
2405
+ # http body (model)
2406
+ post_body = opts[:debug_body]
2407
+
2408
+ # return_type
2409
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2410
+
2411
+ # auth_names
2412
+ auth_names = opts[:debug_auth_names] || []
2413
+
2414
+ new_options = opts.merge(
2415
+ :operation => :"ModerationApi.post_un_flag_comment",
2416
+ :header_params => header_params,
2417
+ :query_params => query_params,
2418
+ :form_params => form_params,
2419
+ :body => post_body,
2420
+ :auth_names => auth_names,
2421
+ :return_type => return_type
2422
+ )
2423
+
2424
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2425
+ if @api_client.config.debugging
2426
+ @api_client.config.logger.debug "API called: ModerationApi#post_un_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2427
+ end
2428
+ return data, status_code, headers
2429
+ end
2430
+
2431
+ # @param comment_id [String]
2432
+ # @param [Hash] opts the optional parameters
2433
+ # @option opts [String] :direction
2434
+ # @option opts [String] :sso
2435
+ # @return [VoteResponse]
2436
+ def post_vote(comment_id, opts = {})
2437
+ data, _status_code, _headers = post_vote_with_http_info(comment_id, opts)
2438
+ data
2439
+ end
2440
+
2441
+ # @param comment_id [String]
2442
+ # @param [Hash] opts the optional parameters
2443
+ # @option opts [String] :direction
2444
+ # @option opts [String] :sso
2445
+ # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers
2446
+ def post_vote_with_http_info(comment_id, opts = {})
2447
+ if @api_client.config.debugging
2448
+ @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...'
2449
+ end
2450
+ # verify the required parameter 'comment_id' is set
2451
+ if @api_client.config.client_side_validation && comment_id.nil?
2452
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote"
2453
+ end
2454
+ # resource path
2455
+ local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2456
+
2457
+ # query parameters
2458
+ query_params = opts[:query_params] || {}
2459
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
2460
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2461
+
2462
+ # header parameters
2463
+ header_params = opts[:header_params] || {}
2464
+ # HTTP header 'Accept' (if needed)
2465
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2466
+
2467
+ # form parameters
2468
+ form_params = opts[:form_params] || {}
2469
+
2470
+ # http body (model)
2471
+ post_body = opts[:debug_body]
2472
+
2473
+ # return_type
2474
+ return_type = opts[:debug_return_type] || 'VoteResponse'
2475
+
2476
+ # auth_names
2477
+ auth_names = opts[:debug_auth_names] || []
2478
+
2479
+ new_options = opts.merge(
2480
+ :operation => :"ModerationApi.post_vote",
2481
+ :header_params => header_params,
2482
+ :query_params => query_params,
2483
+ :form_params => form_params,
2484
+ :body => post_body,
2485
+ :auth_names => auth_names,
2486
+ :return_type => return_type
2487
+ )
2488
+
2489
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2490
+ if @api_client.config.debugging
2491
+ @api_client.config.logger.debug "API called: ModerationApi#post_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2492
+ end
2493
+ return data, status_code, headers
2494
+ end
2495
+
2496
+ # @param badge_id [String]
2497
+ # @param [Hash] opts the optional parameters
2498
+ # @option opts [String] :user_id
2499
+ # @option opts [String] :comment_id
2500
+ # @option opts [String] :broadcast_id
2501
+ # @option opts [String] :sso
2502
+ # @return [AwardUserBadgeResponse]
2503
+ def put_award_badge(badge_id, opts = {})
2504
+ data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts)
2505
+ data
2506
+ end
2507
+
2508
+ # @param badge_id [String]
2509
+ # @param [Hash] opts the optional parameters
2510
+ # @option opts [String] :user_id
2511
+ # @option opts [String] :comment_id
2512
+ # @option opts [String] :broadcast_id
2513
+ # @option opts [String] :sso
2514
+ # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers
2515
+ def put_award_badge_with_http_info(badge_id, opts = {})
2516
+ if @api_client.config.debugging
2517
+ @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...'
2518
+ end
2519
+ # verify the required parameter 'badge_id' is set
2520
+ if @api_client.config.client_side_validation && badge_id.nil?
2521
+ fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge"
2522
+ end
2523
+ # resource path
2524
+ local_var_path = '/auth/my-account/moderate-comments/award-badge'
2525
+
2526
+ # query parameters
2527
+ query_params = opts[:query_params] || {}
2528
+ query_params[:'badgeId'] = badge_id
2529
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2530
+ query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
2531
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
2532
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2533
+
2534
+ # header parameters
2535
+ header_params = opts[:header_params] || {}
2536
+ # HTTP header 'Accept' (if needed)
2537
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2538
+
2539
+ # form parameters
2540
+ form_params = opts[:form_params] || {}
2541
+
2542
+ # http body (model)
2543
+ post_body = opts[:debug_body]
2544
+
2545
+ # return_type
2546
+ return_type = opts[:debug_return_type] || 'AwardUserBadgeResponse'
2547
+
2548
+ # auth_names
2549
+ auth_names = opts[:debug_auth_names] || []
2550
+
2551
+ new_options = opts.merge(
2552
+ :operation => :"ModerationApi.put_award_badge",
2553
+ :header_params => header_params,
2554
+ :query_params => query_params,
2555
+ :form_params => form_params,
2556
+ :body => post_body,
2557
+ :auth_names => auth_names,
2558
+ :return_type => return_type
2559
+ )
2560
+
2561
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2562
+ if @api_client.config.debugging
2563
+ @api_client.config.logger.debug "API called: ModerationApi#put_award_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2564
+ end
2565
+ return data, status_code, headers
2566
+ end
2567
+
2568
+ # @param url_id [String]
2569
+ # @param [Hash] opts the optional parameters
2570
+ # @option opts [String] :sso
2571
+ # @return [APIEmptyResponse]
2572
+ def put_close_thread(url_id, opts = {})
2573
+ data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts)
2574
+ data
2575
+ end
2576
+
2577
+ # @param url_id [String]
2578
+ # @param [Hash] opts the optional parameters
2579
+ # @option opts [String] :sso
2580
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2581
+ def put_close_thread_with_http_info(url_id, opts = {})
2582
+ if @api_client.config.debugging
2583
+ @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...'
2584
+ end
2585
+ # verify the required parameter 'url_id' is set
2586
+ if @api_client.config.client_side_validation && url_id.nil?
2587
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread"
2588
+ end
2589
+ # resource path
2590
+ local_var_path = '/auth/my-account/moderate-comments/close-thread'
2591
+
2592
+ # query parameters
2593
+ query_params = opts[:query_params] || {}
2594
+ query_params[:'urlId'] = url_id
2595
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2596
+
2597
+ # header parameters
2598
+ header_params = opts[:header_params] || {}
2599
+ # HTTP header 'Accept' (if needed)
2600
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2601
+
2602
+ # form parameters
2603
+ form_params = opts[:form_params] || {}
2604
+
2605
+ # http body (model)
2606
+ post_body = opts[:debug_body]
2607
+
2608
+ # return_type
2609
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2610
+
2611
+ # auth_names
2612
+ auth_names = opts[:debug_auth_names] || []
2613
+
2614
+ new_options = opts.merge(
2615
+ :operation => :"ModerationApi.put_close_thread",
2616
+ :header_params => header_params,
2617
+ :query_params => query_params,
2618
+ :form_params => form_params,
2619
+ :body => post_body,
2620
+ :auth_names => auth_names,
2621
+ :return_type => return_type
2622
+ )
2623
+
2624
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2625
+ if @api_client.config.debugging
2626
+ @api_client.config.logger.debug "API called: ModerationApi#put_close_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2627
+ end
2628
+ return data, status_code, headers
2629
+ end
2630
+
2631
+ # @param badge_id [String]
2632
+ # @param [Hash] opts the optional parameters
2633
+ # @option opts [String] :user_id
2634
+ # @option opts [String] :comment_id
2635
+ # @option opts [String] :broadcast_id
2636
+ # @option opts [String] :sso
2637
+ # @return [RemoveUserBadgeResponse]
2638
+ def put_remove_badge(badge_id, opts = {})
2639
+ data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts)
2640
+ data
2641
+ end
2642
+
2643
+ # @param badge_id [String]
2644
+ # @param [Hash] opts the optional parameters
2645
+ # @option opts [String] :user_id
2646
+ # @option opts [String] :comment_id
2647
+ # @option opts [String] :broadcast_id
2648
+ # @option opts [String] :sso
2649
+ # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers
2650
+ def put_remove_badge_with_http_info(badge_id, opts = {})
2651
+ if @api_client.config.debugging
2652
+ @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...'
2653
+ end
2654
+ # verify the required parameter 'badge_id' is set
2655
+ if @api_client.config.client_side_validation && badge_id.nil?
2656
+ fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge"
2657
+ end
2658
+ # resource path
2659
+ local_var_path = '/auth/my-account/moderate-comments/remove-badge'
2660
+
2661
+ # query parameters
2662
+ query_params = opts[:query_params] || {}
2663
+ query_params[:'badgeId'] = badge_id
2664
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2665
+ query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil?
2666
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
2667
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2668
+
2669
+ # header parameters
2670
+ header_params = opts[:header_params] || {}
2671
+ # HTTP header 'Accept' (if needed)
2672
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2673
+
2674
+ # form parameters
2675
+ form_params = opts[:form_params] || {}
2676
+
2677
+ # http body (model)
2678
+ post_body = opts[:debug_body]
2679
+
2680
+ # return_type
2681
+ return_type = opts[:debug_return_type] || 'RemoveUserBadgeResponse'
2682
+
2683
+ # auth_names
2684
+ auth_names = opts[:debug_auth_names] || []
2685
+
2686
+ new_options = opts.merge(
2687
+ :operation => :"ModerationApi.put_remove_badge",
2688
+ :header_params => header_params,
2689
+ :query_params => query_params,
2690
+ :form_params => form_params,
2691
+ :body => post_body,
2692
+ :auth_names => auth_names,
2693
+ :return_type => return_type
2694
+ )
2695
+
2696
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2697
+ if @api_client.config.debugging
2698
+ @api_client.config.logger.debug "API called: ModerationApi#put_remove_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2699
+ end
2700
+ return data, status_code, headers
2701
+ end
2702
+
2703
+ # @param url_id [String]
2704
+ # @param [Hash] opts the optional parameters
2705
+ # @option opts [String] :sso
2706
+ # @return [APIEmptyResponse]
2707
+ def put_reopen_thread(url_id, opts = {})
2708
+ data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts)
2709
+ data
2710
+ end
2711
+
2712
+ # @param url_id [String]
2713
+ # @param [Hash] opts the optional parameters
2714
+ # @option opts [String] :sso
2715
+ # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers
2716
+ def put_reopen_thread_with_http_info(url_id, opts = {})
2717
+ if @api_client.config.debugging
2718
+ @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...'
2719
+ end
2720
+ # verify the required parameter 'url_id' is set
2721
+ if @api_client.config.client_side_validation && url_id.nil?
2722
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread"
2723
+ end
2724
+ # resource path
2725
+ local_var_path = '/auth/my-account/moderate-comments/reopen-thread'
2726
+
2727
+ # query parameters
2728
+ query_params = opts[:query_params] || {}
2729
+ query_params[:'urlId'] = url_id
2730
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2731
+
2732
+ # header parameters
2733
+ header_params = opts[:header_params] || {}
2734
+ # HTTP header 'Accept' (if needed)
2735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2736
+
2737
+ # form parameters
2738
+ form_params = opts[:form_params] || {}
2739
+
2740
+ # http body (model)
2741
+ post_body = opts[:debug_body]
2742
+
2743
+ # return_type
2744
+ return_type = opts[:debug_return_type] || 'APIEmptyResponse'
2745
+
2746
+ # auth_names
2747
+ auth_names = opts[:debug_auth_names] || []
2748
+
2749
+ new_options = opts.merge(
2750
+ :operation => :"ModerationApi.put_reopen_thread",
2751
+ :header_params => header_params,
2752
+ :query_params => query_params,
2753
+ :form_params => form_params,
2754
+ :body => post_body,
2755
+ :auth_names => auth_names,
2756
+ :return_type => return_type
2757
+ )
2758
+
2759
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2760
+ if @api_client.config.debugging
2761
+ @api_client.config.logger.debug "API called: ModerationApi#put_reopen_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2762
+ end
2763
+ return data, status_code, headers
2764
+ end
2765
+
2766
+ # @param [Hash] opts the optional parameters
2767
+ # @option opts [String] :user_id
2768
+ # @option opts [String] :trust_factor
2769
+ # @option opts [String] :sso
2770
+ # @return [SetUserTrustFactorResponse]
2771
+ def set_trust_factor(opts = {})
2772
+ data, _status_code, _headers = set_trust_factor_with_http_info(opts)
2773
+ data
2774
+ end
2775
+
2776
+ # @param [Hash] opts the optional parameters
2777
+ # @option opts [String] :user_id
2778
+ # @option opts [String] :trust_factor
2779
+ # @option opts [String] :sso
2780
+ # @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers
2781
+ def set_trust_factor_with_http_info(opts = {})
2782
+ if @api_client.config.debugging
2783
+ @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...'
2784
+ end
2785
+ # resource path
2786
+ local_var_path = '/auth/my-account/moderate-comments/set-trust-factor'
2787
+
2788
+ # query parameters
2789
+ query_params = opts[:query_params] || {}
2790
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
2791
+ query_params[:'trustFactor'] = opts[:'trust_factor'] if !opts[:'trust_factor'].nil?
2792
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2793
+
2794
+ # header parameters
2795
+ header_params = opts[:header_params] || {}
2796
+ # HTTP header 'Accept' (if needed)
2797
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2798
+
2799
+ # form parameters
2800
+ form_params = opts[:form_params] || {}
2801
+
2802
+ # http body (model)
2803
+ post_body = opts[:debug_body]
2804
+
2805
+ # return_type
2806
+ return_type = opts[:debug_return_type] || 'SetUserTrustFactorResponse'
2807
+
2808
+ # auth_names
2809
+ auth_names = opts[:debug_auth_names] || []
2810
+
2811
+ new_options = opts.merge(
2812
+ :operation => :"ModerationApi.set_trust_factor",
2813
+ :header_params => header_params,
2814
+ :query_params => query_params,
2815
+ :form_params => form_params,
2816
+ :body => post_body,
2817
+ :auth_names => auth_names,
2818
+ :return_type => return_type
2819
+ )
2820
+
2821
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2822
+ if @api_client.config.debugging
2823
+ @api_client.config.logger.debug "API called: ModerationApi#set_trust_factor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2824
+ end
2825
+ return data, status_code, headers
2826
+ end
2827
+ end
2828
+ end