fastcomments 0.1.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 (693) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +210 -0
  4. data/client/Gemfile +9 -0
  5. data/client/README.md +407 -0
  6. data/client/Rakefile +10 -0
  7. data/client/docs/APIAuditLog.md +40 -0
  8. data/client/docs/APIComment.md +122 -0
  9. data/client/docs/APICommentBase.md +122 -0
  10. data/client/docs/APICreateUserBadgeResponse.md +20 -0
  11. data/client/docs/APIEmptyResponse.md +18 -0
  12. data/client/docs/APIEmptySuccessResponse.md +18 -0
  13. data/client/docs/APIError.md +32 -0
  14. data/client/docs/APIGetCommentResponse.md +20 -0
  15. data/client/docs/APIGetCommentsResponse.md +20 -0
  16. data/client/docs/APIGetUserBadgeProgressListResponse.md +20 -0
  17. data/client/docs/APIGetUserBadgeProgressResponse.md +20 -0
  18. data/client/docs/APIGetUserBadgeResponse.md +20 -0
  19. data/client/docs/APIGetUserBadgesResponse.md +20 -0
  20. data/client/docs/APIPage.md +34 -0
  21. data/client/docs/APISSOUser.md +56 -0
  22. data/client/docs/APIStatus.md +15 -0
  23. data/client/docs/APIUserSubscription.md +30 -0
  24. data/client/docs/AddDomainConfig200Response.md +24 -0
  25. data/client/docs/AddDomainConfig200ResponseAnyOf.md +20 -0
  26. data/client/docs/AddDomainConfigParams.md +30 -0
  27. data/client/docs/AddPageAPIResponse.md +24 -0
  28. data/client/docs/AddSSOUserAPIResponse.md +24 -0
  29. data/client/docs/AggregateQuestionResults200Response.md +34 -0
  30. data/client/docs/AggregateQuestionResultsResponse.md +20 -0
  31. data/client/docs/AggregateTimeBucket.md +15 -0
  32. data/client/docs/AggregationItem.md +18 -0
  33. data/client/docs/AggregationOpType.md +15 -0
  34. data/client/docs/AggregationOperation.md +24 -0
  35. data/client/docs/AggregationRequest.md +26 -0
  36. data/client/docs/AggregationRequestSort.md +20 -0
  37. data/client/docs/AggregationResponse.md +22 -0
  38. data/client/docs/AggregationResponseStats.md +20 -0
  39. data/client/docs/AggregationValue.md +26 -0
  40. data/client/docs/BlockFromCommentParams.md +18 -0
  41. data/client/docs/BlockFromCommentPublic200Response.md +34 -0
  42. data/client/docs/BlockSuccess.md +20 -0
  43. data/client/docs/BulkAggregateQuestionItem.md +28 -0
  44. data/client/docs/BulkAggregateQuestionResults200Response.md +34 -0
  45. data/client/docs/BulkAggregateQuestionResultsRequest.md +18 -0
  46. data/client/docs/BulkAggregateQuestionResultsResponse.md +20 -0
  47. data/client/docs/ChangeCommentPinStatusResponse.md +20 -0
  48. data/client/docs/CheckBlockedCommentsResponse.md +20 -0
  49. data/client/docs/CheckedCommentsForBlocked200Response.md +34 -0
  50. data/client/docs/CombineCommentsWithQuestionResults200Response.md +34 -0
  51. data/client/docs/CombineQuestionResultsWithCommentsResponse.md +20 -0
  52. data/client/docs/CommentData.md +64 -0
  53. data/client/docs/CommentHTMLRenderingMode.md +15 -0
  54. data/client/docs/CommentLogData.md +102 -0
  55. data/client/docs/CommentLogEntry.md +22 -0
  56. data/client/docs/CommentLogType.md +15 -0
  57. data/client/docs/CommentQuestionResultsRenderingType.md +15 -0
  58. data/client/docs/CommentQuestionsRequired.md +15 -0
  59. data/client/docs/CommentTextUpdateRequest.md +22 -0
  60. data/client/docs/CommentThreadDeletionMode.md +15 -0
  61. data/client/docs/CommentUserBadgeInfo.md +34 -0
  62. data/client/docs/CommentUserHashTagInfo.md +24 -0
  63. data/client/docs/CommentUserMentionInfo.md +26 -0
  64. data/client/docs/CommenterNameFormats.md +15 -0
  65. data/client/docs/CreateAPIPageData.md +28 -0
  66. data/client/docs/CreateAPISSOUserData.md +56 -0
  67. data/client/docs/CreateAPIUserSubscriptionData.md +26 -0
  68. data/client/docs/CreateCommentParams.md +84 -0
  69. data/client/docs/CreateCommentPublic200Response.md +40 -0
  70. data/client/docs/CreateFeedPost200Response.md +34 -0
  71. data/client/docs/CreateFeedPostParams.md +32 -0
  72. data/client/docs/CreateFeedPostPublic200Response.md +34 -0
  73. data/client/docs/CreateFeedPostResponse.md +20 -0
  74. data/client/docs/CreateFeedPostsResponse.md +20 -0
  75. data/client/docs/CreateSubscriptionAPIResponse.md +24 -0
  76. data/client/docs/CreateUserBadge200Response.md +34 -0
  77. data/client/docs/CreateUserBadgeParams.md +22 -0
  78. data/client/docs/CustomConfigParameters.md +160 -0
  79. data/client/docs/DefaultApi.md +3601 -0
  80. data/client/docs/DeleteComment200Response.md +34 -0
  81. data/client/docs/DeleteCommentAction.md +15 -0
  82. data/client/docs/DeleteCommentPublic200Response.md +36 -0
  83. data/client/docs/DeleteCommentResult.md +20 -0
  84. data/client/docs/DeleteCommentVote200Response.md +34 -0
  85. data/client/docs/DeleteDomainConfig200Response.md +18 -0
  86. data/client/docs/DeleteFeedPostPublic200Response.md +32 -0
  87. data/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +18 -0
  88. data/client/docs/DeletePageAPIResponse.md +22 -0
  89. data/client/docs/DeleteSSOUserAPIResponse.md +24 -0
  90. data/client/docs/DeleteSubscriptionAPIResponse.md +22 -0
  91. data/client/docs/DeletedCommentResultComment.md +24 -0
  92. data/client/docs/EventLogEntry.md +28 -0
  93. data/client/docs/FComment.md +158 -0
  94. data/client/docs/FCommentMeta.md +20 -0
  95. data/client/docs/FeedPost.md +48 -0
  96. data/client/docs/FeedPostLink.md +24 -0
  97. data/client/docs/FeedPostMediaItem.md +22 -0
  98. data/client/docs/FeedPostMediaItemAsset.md +22 -0
  99. data/client/docs/FeedPostStats.md +20 -0
  100. data/client/docs/FeedPostsStatsResponse.md +20 -0
  101. data/client/docs/FindCommentsByRangeItem.md +20 -0
  102. data/client/docs/FindCommentsByRangeResponse.md +20 -0
  103. data/client/docs/FlagComment200Response.md +36 -0
  104. data/client/docs/FlagCommentPublic200Response.md +32 -0
  105. data/client/docs/FlagCommentResponse.md +26 -0
  106. data/client/docs/GetAuditLogs200Response.md +34 -0
  107. data/client/docs/GetAuditLogsResponse.md +20 -0
  108. data/client/docs/GetComment200Response.md +34 -0
  109. data/client/docs/GetCommentText200Response.md +36 -0
  110. data/client/docs/GetCommentVoteUserNames200Response.md +36 -0
  111. data/client/docs/GetCommentVoteUserNamesSuccessResponse.md +22 -0
  112. data/client/docs/GetComments200Response.md +34 -0
  113. data/client/docs/GetCommentsPublic200Response.md +78 -0
  114. data/client/docs/GetCommentsResponsePublicComment.md +64 -0
  115. data/client/docs/GetCommentsResponseWithPresencePublicComment.md +70 -0
  116. data/client/docs/GetDomainConfig200Response.md +24 -0
  117. data/client/docs/GetDomainConfigs200Response.md +24 -0
  118. data/client/docs/GetDomainConfigs200ResponseAnyOf.md +20 -0
  119. data/client/docs/GetDomainConfigs200ResponseAnyOf1.md +22 -0
  120. data/client/docs/GetEventLog200Response.md +34 -0
  121. data/client/docs/GetEventLogResponse.md +20 -0
  122. data/client/docs/GetFeedPosts200Response.md +34 -0
  123. data/client/docs/GetFeedPostsPublic200Response.md +44 -0
  124. data/client/docs/GetFeedPostsResponse.md +20 -0
  125. data/client/docs/GetFeedPostsStats200Response.md +34 -0
  126. data/client/docs/GetMyNotificationsResponse.md +26 -0
  127. data/client/docs/GetPageByURLIdAPIResponse.md +24 -0
  128. data/client/docs/GetPagesAPIResponse.md +24 -0
  129. data/client/docs/GetPublicFeedPostsResponse.md +22 -0
  130. data/client/docs/GetSSOUserByEmailAPIResponse.md +24 -0
  131. data/client/docs/GetSSOUserByIdAPIResponse.md +24 -0
  132. data/client/docs/GetSSOUsers200Response.md +20 -0
  133. data/client/docs/GetSubscriptionsAPIResponse.md +24 -0
  134. data/client/docs/GetUserBadge200Response.md +34 -0
  135. data/client/docs/GetUserBadgeProgressById200Response.md +34 -0
  136. data/client/docs/GetUserBadgeProgressList200Response.md +34 -0
  137. data/client/docs/GetUserBadges200Response.md +34 -0
  138. data/client/docs/GetUserNotificationCount200Response.md +34 -0
  139. data/client/docs/GetUserNotificationCountResponse.md +20 -0
  140. data/client/docs/GetUserNotifications200Response.md +40 -0
  141. data/client/docs/GetUserPresenceStatuses200Response.md +34 -0
  142. data/client/docs/GetUserPresenceStatusesResponse.md +20 -0
  143. data/client/docs/GetUserReactsPublic200Response.md +34 -0
  144. data/client/docs/GifRating.md +15 -0
  145. data/client/docs/HeaderState.md +26 -0
  146. data/client/docs/IgnoredResponse.md +20 -0
  147. data/client/docs/ImageContentProfanityLevel.md +15 -0
  148. data/client/docs/LiveEvent.md +48 -0
  149. data/client/docs/LiveEventExtraInfo.md +18 -0
  150. data/client/docs/LiveEventType.md +15 -0
  151. data/client/docs/LockComment200Response.md +32 -0
  152. data/client/docs/MediaAsset.md +22 -0
  153. data/client/docs/MetaItem.md +20 -0
  154. data/client/docs/NotificationAndCount.md +20 -0
  155. data/client/docs/NotificationObjectType.md +15 -0
  156. data/client/docs/NotificationType.md +15 -0
  157. data/client/docs/PatchDomainConfigParams.md +30 -0
  158. data/client/docs/PatchPageAPIResponse.md +24 -0
  159. data/client/docs/PatchSSOUserAPIResponse.md +24 -0
  160. data/client/docs/PinComment200Response.md +34 -0
  161. data/client/docs/PubSubComment.md +102 -0
  162. data/client/docs/PubSubCommentBase.md +96 -0
  163. data/client/docs/PubSubVote.md +34 -0
  164. data/client/docs/PublicAPIDeleteCommentResponse.md +22 -0
  165. data/client/docs/PublicAPIGetCommentTextResponse.md +22 -0
  166. data/client/docs/PublicAPISetCommentTextResponse.md +20 -0
  167. data/client/docs/PublicApi.md +2596 -0
  168. data/client/docs/PublicBlockFromCommentParams.md +18 -0
  169. data/client/docs/PublicComment.md +92 -0
  170. data/client/docs/PublicCommentBase.md +72 -0
  171. data/client/docs/PublicFeedPostsResponse.md +30 -0
  172. data/client/docs/PutSSOUserAPIResponse.md +24 -0
  173. data/client/docs/QueryPredicate.md +22 -0
  174. data/client/docs/QueryPredicateValue.md +15 -0
  175. data/client/docs/QuestionDatum.md +20 -0
  176. data/client/docs/QuestionRenderingType.md +15 -0
  177. data/client/docs/QuestionResult.md +38 -0
  178. data/client/docs/QuestionResultAggregationOverall.md +28 -0
  179. data/client/docs/QuestionSubQuestionVisibility.md +15 -0
  180. data/client/docs/QuestionWhenSave.md +15 -0
  181. data/client/docs/ReactBodyParams.md +18 -0
  182. data/client/docs/ReactFeedPostPublic200Response.md +36 -0
  183. data/client/docs/ReactFeedPostResponse.md +22 -0
  184. data/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md +20 -0
  185. data/client/docs/RecordStringStringOrNumberValue.md +15 -0
  186. data/client/docs/RenderableUserNotification.md +58 -0
  187. data/client/docs/RepeatCommentCheckIgnoredReason.md +15 -0
  188. data/client/docs/RepeatCommentHandlingAction.md +15 -0
  189. data/client/docs/ResetUserNotifications200Response.md +32 -0
  190. data/client/docs/ResetUserNotificationsResponse.md +20 -0
  191. data/client/docs/SORTDIR.md +15 -0
  192. data/client/docs/SSOSecurityLevel.md +15 -0
  193. data/client/docs/SaveComment200Response.md +38 -0
  194. data/client/docs/SaveCommentResponse.md +24 -0
  195. data/client/docs/SaveCommentResponseOptimized.md +24 -0
  196. data/client/docs/SaveCommentsResponseWithPresence.md +26 -0
  197. data/client/docs/SearchUsers200Response.md +34 -0
  198. data/client/docs/SearchUsersResponse.md +20 -0
  199. data/client/docs/SetCommentText200Response.md +34 -0
  200. data/client/docs/SetCommentTextResult.md +20 -0
  201. data/client/docs/SizePreset.md +15 -0
  202. data/client/docs/SortDirections.md +15 -0
  203. data/client/docs/SpamRule.md +20 -0
  204. data/client/docs/UnBlockCommentPublic200Response.md +34 -0
  205. data/client/docs/UnBlockFromCommentParams.md +18 -0
  206. data/client/docs/UnblockSuccess.md +20 -0
  207. data/client/docs/UpdatableCommentParams.md +94 -0
  208. data/client/docs/UpdateAPIPageData.md +26 -0
  209. data/client/docs/UpdateAPISSOUserData.md +56 -0
  210. data/client/docs/UpdateDomainConfigParams.md +30 -0
  211. data/client/docs/UpdateFeedPostParams.md +28 -0
  212. data/client/docs/UpdateUserBadge200Response.md +32 -0
  213. data/client/docs/UpdateUserBadgeParams.md +18 -0
  214. data/client/docs/UpdateUserNotificationStatus200Response.md +38 -0
  215. data/client/docs/UploadImageResponse.md +26 -0
  216. data/client/docs/UserBadge.md +52 -0
  217. data/client/docs/UserBadgeProgress.md +32 -0
  218. data/client/docs/UserNotification.md +64 -0
  219. data/client/docs/UserNotificationWriteResponse.md +22 -0
  220. data/client/docs/UserPresenceData.md +22 -0
  221. data/client/docs/UserReactsResponse.md +20 -0
  222. data/client/docs/UserSearchResult.md +26 -0
  223. data/client/docs/UserSessionInfo.md +42 -0
  224. data/client/docs/VoteBodyParams.md +24 -0
  225. data/client/docs/VoteComment200Response.md +40 -0
  226. data/client/docs/VoteDeleteResponse.md +20 -0
  227. data/client/docs/VoteResponse.md +26 -0
  228. data/client/docs/VoteResponseStatus.md +15 -0
  229. data/client/docs/VoteResponseUser.md +18 -0
  230. data/client/docs/VoteStyle.md +15 -0
  231. data/client/fastcomments-client.gemspec +39 -0
  232. data/client/git_push.sh +57 -0
  233. data/client/lib/fastcomments-client/api/default_api.rb +3463 -0
  234. data/client/lib/fastcomments-client/api/public_api.rb +2858 -0
  235. data/client/lib/fastcomments-client/api_client.rb +393 -0
  236. data/client/lib/fastcomments-client/api_error.rb +58 -0
  237. data/client/lib/fastcomments-client/configuration.rb +312 -0
  238. data/client/lib/fastcomments-client/models/add_domain_config200_response.rb +104 -0
  239. data/client/lib/fastcomments-client/models/add_domain_config200_response_any_of.rb +235 -0
  240. data/client/lib/fastcomments-client/models/add_domain_config_params.rb +294 -0
  241. data/client/lib/fastcomments-client/models/add_page_api_response.rb +264 -0
  242. data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +264 -0
  243. data/client/lib/fastcomments-client/models/aggregate_question_results200_response.rb +104 -0
  244. data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +285 -0
  245. data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +41 -0
  246. data/client/lib/fastcomments-client/models/aggregation_item.rb +223 -0
  247. data/client/lib/fastcomments-client/models/aggregation_op_type.rb +45 -0
  248. data/client/lib/fastcomments-client/models/aggregation_operation.rb +306 -0
  249. data/client/lib/fastcomments-client/models/aggregation_request.rb +297 -0
  250. data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +287 -0
  251. data/client/lib/fastcomments-client/models/aggregation_response.rb +297 -0
  252. data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +263 -0
  253. data/client/lib/fastcomments-client/models/aggregation_value.rb +262 -0
  254. data/client/lib/fastcomments-client/models/api_audit_log.rb +412 -0
  255. data/client/lib/fastcomments-client/models/api_comment.rb +888 -0
  256. data/client/lib/fastcomments-client/models/api_comment_base.rb +881 -0
  257. data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +285 -0
  258. data/client/lib/fastcomments-client/models/api_empty_response.rb +259 -0
  259. data/client/lib/fastcomments-client/models/api_empty_success_response.rb +259 -0
  260. data/client/lib/fastcomments-client/models/api_error.rb +356 -0
  261. data/client/lib/fastcomments-client/models/api_get_comment_response.rb +285 -0
  262. data/client/lib/fastcomments-client/models/api_get_comments_response.rb +287 -0
  263. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +287 -0
  264. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +285 -0
  265. data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +285 -0
  266. data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +287 -0
  267. data/client/lib/fastcomments-client/models/api_page.rb +396 -0
  268. data/client/lib/fastcomments-client/models/api_status.rb +40 -0
  269. data/client/lib/fastcomments-client/models/api_user_subscription.rb +325 -0
  270. data/client/lib/fastcomments-client/models/apisso_user.rb +597 -0
  271. data/client/lib/fastcomments-client/models/block_from_comment_params.rb +222 -0
  272. data/client/lib/fastcomments-client/models/block_from_comment_public200_response.rb +104 -0
  273. data/client/lib/fastcomments-client/models/block_success.rb +288 -0
  274. data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +306 -0
  275. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +104 -0
  276. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +239 -0
  277. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +288 -0
  278. data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +288 -0
  279. data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +288 -0
  280. data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +104 -0
  281. data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +104 -0
  282. data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +285 -0
  283. data/client/lib/fastcomments-client/models/comment_data.rb +511 -0
  284. data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +40 -0
  285. data/client/lib/fastcomments-client/models/comment_log_data.rb +642 -0
  286. data/client/lib/fastcomments-client/models/comment_log_entry.rb +294 -0
  287. data/client/lib/fastcomments-client/models/comment_log_type.rb +93 -0
  288. data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +41 -0
  289. data/client/lib/fastcomments-client/models/comment_questions_required.rb +40 -0
  290. data/client/lib/fastcomments-client/models/comment_text_update_request.rb +259 -0
  291. data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +42 -0
  292. data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +349 -0
  293. data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +284 -0
  294. data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +324 -0
  295. data/client/lib/fastcomments-client/models/commenter_name_formats.rb +43 -0
  296. data/client/lib/fastcomments-client/models/create_api_page_data.rb +318 -0
  297. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +273 -0
  298. data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +444 -0
  299. data/client/lib/fastcomments-client/models/create_comment_params.rb +619 -0
  300. data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +104 -0
  301. data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +104 -0
  302. data/client/lib/fastcomments-client/models/create_feed_post_params.rb +292 -0
  303. data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +104 -0
  304. data/client/lib/fastcomments-client/models/create_feed_post_response.rb +285 -0
  305. data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +285 -0
  306. data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +264 -0
  307. data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +104 -0
  308. data/client/lib/fastcomments-client/models/create_user_badge_params.rb +272 -0
  309. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +906 -0
  310. data/client/lib/fastcomments-client/models/delete_comment200_response.rb +104 -0
  311. data/client/lib/fastcomments-client/models/delete_comment_action.rb +41 -0
  312. data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +104 -0
  313. data/client/lib/fastcomments-client/models/delete_comment_result.rb +285 -0
  314. data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +104 -0
  315. data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +223 -0
  316. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +104 -0
  317. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +259 -0
  318. data/client/lib/fastcomments-client/models/delete_page_api_response.rb +255 -0
  319. data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +264 -0
  320. data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +255 -0
  321. data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +282 -0
  322. data/client/lib/fastcomments-client/models/event_log_entry.rb +367 -0
  323. data/client/lib/fastcomments-client/models/f_comment.rb +1054 -0
  324. data/client/lib/fastcomments-client/models/f_comment_meta.rb +229 -0
  325. data/client/lib/fastcomments-client/models/feed_post.rb +420 -0
  326. data/client/lib/fastcomments-client/models/feed_post_link.rb +247 -0
  327. data/client/lib/fastcomments-client/models/feed_post_media_item.rb +257 -0
  328. data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +289 -0
  329. data/client/lib/fastcomments-client/models/feed_post_stats.rb +231 -0
  330. data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +287 -0
  331. data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +249 -0
  332. data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +265 -0
  333. data/client/lib/fastcomments-client/models/flag_comment200_response.rb +104 -0
  334. data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +104 -0
  335. data/client/lib/fastcomments-client/models/flag_comment_response.rb +295 -0
  336. data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +104 -0
  337. data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +287 -0
  338. data/client/lib/fastcomments-client/models/get_comment200_response.rb +104 -0
  339. data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +104 -0
  340. data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +104 -0
  341. data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +313 -0
  342. data/client/lib/fastcomments-client/models/get_comments200_response.rb +104 -0
  343. data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +104 -0
  344. data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +487 -0
  345. data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +522 -0
  346. data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +104 -0
  347. data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +104 -0
  348. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb +235 -0
  349. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +275 -0
  350. data/client/lib/fastcomments-client/models/get_event_log200_response.rb +104 -0
  351. data/client/lib/fastcomments-client/models/get_event_log_response.rb +287 -0
  352. data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +104 -0
  353. data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +104 -0
  354. data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +287 -0
  355. data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +104 -0
  356. data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +351 -0
  357. data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +264 -0
  358. data/client/lib/fastcomments-client/models/get_pages_api_response.rb +266 -0
  359. data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +297 -0
  360. data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +264 -0
  361. data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +264 -0
  362. data/client/lib/fastcomments-client/models/get_sso_users200_response.rb +265 -0
  363. data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +266 -0
  364. data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +104 -0
  365. data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +104 -0
  366. data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +104 -0
  367. data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +104 -0
  368. data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +104 -0
  369. data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +285 -0
  370. data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +104 -0
  371. data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +104 -0
  372. data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +288 -0
  373. data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +104 -0
  374. data/client/lib/fastcomments-client/models/gif_rating.rb +42 -0
  375. data/client/lib/fastcomments-client/models/header_state.rb +365 -0
  376. data/client/lib/fastcomments-client/models/ignored_response.rb +287 -0
  377. data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +42 -0
  378. data/client/lib/fastcomments-client/models/live_event.rb +402 -0
  379. data/client/lib/fastcomments-client/models/live_event_extra_info.rb +223 -0
  380. data/client/lib/fastcomments-client/models/live_event_type.rb +55 -0
  381. data/client/lib/fastcomments-client/models/lock_comment200_response.rb +104 -0
  382. data/client/lib/fastcomments-client/models/media_asset.rb +289 -0
  383. data/client/lib/fastcomments-client/models/meta_item.rb +265 -0
  384. data/client/lib/fastcomments-client/models/notification_and_count.rb +285 -0
  385. data/client/lib/fastcomments-client/models/notification_object_type.rb +41 -0
  386. data/client/lib/fastcomments-client/models/notification_type.rb +51 -0
  387. data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +277 -0
  388. data/client/lib/fastcomments-client/models/patch_page_api_response.rb +264 -0
  389. data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +264 -0
  390. data/client/lib/fastcomments-client/models/pin_comment200_response.rb +104 -0
  391. data/client/lib/fastcomments-client/models/pub_sub_comment.rb +803 -0
  392. data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +752 -0
  393. data/client/lib/fastcomments-client/models/pub_sub_vote.rb +415 -0
  394. data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +294 -0
  395. data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +311 -0
  396. data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +285 -0
  397. data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +226 -0
  398. data/client/lib/fastcomments-client/models/public_comment.rb +654 -0
  399. data/client/lib/fastcomments-client/models/public_comment_base.rb +552 -0
  400. data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +343 -0
  401. data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +265 -0
  402. data/client/lib/fastcomments-client/models/query_predicate.rb +313 -0
  403. data/client/lib/fastcomments-client/models/query_predicate_value.rb +105 -0
  404. data/client/lib/fastcomments-client/models/question_datum.rb +266 -0
  405. data/client/lib/fastcomments-client/models/question_rendering_type.rb +40 -0
  406. data/client/lib/fastcomments-client/models/question_result.rb +467 -0
  407. data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +307 -0
  408. data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +40 -0
  409. data/client/lib/fastcomments-client/models/question_when_save.rb +40 -0
  410. data/client/lib/fastcomments-client/models/react_body_params.rb +220 -0
  411. data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +104 -0
  412. data/client/lib/fastcomments-client/models/react_feed_post_response.rb +311 -0
  413. data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +263 -0
  414. data/client/lib/fastcomments-client/models/record_string_string_or_number_value.rb +104 -0
  415. data/client/lib/fastcomments-client/models/renderable_user_notification.rb +603 -0
  416. data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +45 -0
  417. data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +41 -0
  418. data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +104 -0
  419. data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +280 -0
  420. data/client/lib/fastcomments-client/models/save_comment200_response.rb +104 -0
  421. data/client/lib/fastcomments-client/models/save_comment_response.rb +309 -0
  422. data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +309 -0
  423. data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +325 -0
  424. data/client/lib/fastcomments-client/models/search_users200_response.rb +104 -0
  425. data/client/lib/fastcomments-client/models/search_users_response.rb +287 -0
  426. data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +104 -0
  427. data/client/lib/fastcomments-client/models/set_comment_text_result.rb +263 -0
  428. data/client/lib/fastcomments-client/models/size_preset.rb +40 -0
  429. data/client/lib/fastcomments-client/models/sort_directions.rb +41 -0
  430. data/client/lib/fastcomments-client/models/sortdir.rb +40 -0
  431. data/client/lib/fastcomments-client/models/spam_rule.rb +260 -0
  432. data/client/lib/fastcomments-client/models/sso_security_level.rb +40 -0
  433. data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +104 -0
  434. data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +222 -0
  435. data/client/lib/fastcomments-client/models/unblock_success.rb +288 -0
  436. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +587 -0
  437. data/client/lib/fastcomments-client/models/update_api_page_data.rb +258 -0
  438. data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +393 -0
  439. data/client/lib/fastcomments-client/models/update_domain_config_params.rb +294 -0
  440. data/client/lib/fastcomments-client/models/update_feed_post_params.rb +274 -0
  441. data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +104 -0
  442. data/client/lib/fastcomments-client/models/update_user_badge_params.rb +220 -0
  443. data/client/lib/fastcomments-client/models/update_user_notification_status200_response.rb +105 -0
  444. data/client/lib/fastcomments-client/models/upload_image_response.rb +297 -0
  445. data/client/lib/fastcomments-client/models/user_badge.rb +582 -0
  446. data/client/lib/fastcomments-client/models/user_badge_progress.rb +388 -0
  447. data/client/lib/fastcomments-client/models/user_notification.rb +667 -0
  448. data/client/lib/fastcomments-client/models/user_notification_write_response.rb +311 -0
  449. data/client/lib/fastcomments-client/models/user_presence_data.rb +238 -0
  450. data/client/lib/fastcomments-client/models/user_reacts_response.rb +287 -0
  451. data/client/lib/fastcomments-client/models/user_search_result.rb +332 -0
  452. data/client/lib/fastcomments-client/models/user_session_info.rb +335 -0
  453. data/client/lib/fastcomments-client/models/vote_body_params.rb +297 -0
  454. data/client/lib/fastcomments-client/models/vote_comment200_response.rb +104 -0
  455. data/client/lib/fastcomments-client/models/vote_delete_response.rb +268 -0
  456. data/client/lib/fastcomments-client/models/vote_response.rb +273 -0
  457. data/client/lib/fastcomments-client/models/vote_response_status.rb +104 -0
  458. data/client/lib/fastcomments-client/models/vote_response_user.rb +221 -0
  459. data/client/lib/fastcomments-client/models/vote_style.rb +40 -0
  460. data/client/lib/fastcomments-client/version.rb +15 -0
  461. data/client/lib/fastcomments-client.rb +263 -0
  462. data/client/spec/api/default_api_spec.rb +633 -0
  463. data/client/spec/api/public_api_spec.rb +545 -0
  464. data/client/spec/models/add_domain_config200_response_any_of_spec.rb +42 -0
  465. data/client/spec/models/add_domain_config200_response_spec.rb +21 -0
  466. data/client/spec/models/add_domain_config_params_spec.rb +72 -0
  467. data/client/spec/models/add_page_api_response_spec.rb +54 -0
  468. data/client/spec/models/add_sso_user_api_response_spec.rb +54 -0
  469. data/client/spec/models/aggregate_question_results200_response_spec.rb +21 -0
  470. data/client/spec/models/aggregate_question_results_response_spec.rb +42 -0
  471. data/client/spec/models/aggregate_time_bucket_spec.rb +30 -0
  472. data/client/spec/models/aggregation_item_spec.rb +36 -0
  473. data/client/spec/models/aggregation_op_type_spec.rb +30 -0
  474. data/client/spec/models/aggregation_operation_spec.rb +54 -0
  475. data/client/spec/models/aggregation_request_sort_spec.rb +46 -0
  476. data/client/spec/models/aggregation_request_spec.rb +60 -0
  477. data/client/spec/models/aggregation_response_spec.rb +48 -0
  478. data/client/spec/models/aggregation_response_stats_spec.rb +42 -0
  479. data/client/spec/models/aggregation_value_spec.rb +60 -0
  480. data/client/spec/models/api_audit_log_spec.rb +110 -0
  481. data/client/spec/models/api_comment_base_spec.rb +348 -0
  482. data/client/spec/models/api_comment_spec.rb +348 -0
  483. data/client/spec/models/api_create_user_badge_response_spec.rb +42 -0
  484. data/client/spec/models/api_empty_response_spec.rb +36 -0
  485. data/client/spec/models/api_empty_success_response_spec.rb +36 -0
  486. data/client/spec/models/api_error_spec.rb +78 -0
  487. data/client/spec/models/api_get_comment_response_spec.rb +42 -0
  488. data/client/spec/models/api_get_comments_response_spec.rb +42 -0
  489. data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +42 -0
  490. data/client/spec/models/api_get_user_badge_progress_response_spec.rb +42 -0
  491. data/client/spec/models/api_get_user_badge_response_spec.rb +42 -0
  492. data/client/spec/models/api_get_user_badges_response_spec.rb +42 -0
  493. data/client/spec/models/api_page_spec.rb +84 -0
  494. data/client/spec/models/api_status_spec.rb +30 -0
  495. data/client/spec/models/api_user_subscription_spec.rb +72 -0
  496. data/client/spec/models/apisso_user_spec.rb +150 -0
  497. data/client/spec/models/block_from_comment_params_spec.rb +36 -0
  498. data/client/spec/models/block_from_comment_public200_response_spec.rb +21 -0
  499. data/client/spec/models/block_success_spec.rb +42 -0
  500. data/client/spec/models/bulk_aggregate_question_item_spec.rb +66 -0
  501. data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +21 -0
  502. data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +36 -0
  503. data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +42 -0
  504. data/client/spec/models/change_comment_pin_status_response_spec.rb +42 -0
  505. data/client/spec/models/check_blocked_comments_response_spec.rb +42 -0
  506. data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +21 -0
  507. data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +21 -0
  508. data/client/spec/models/combine_question_results_with_comments_response_spec.rb +42 -0
  509. data/client/spec/models/comment_data_spec.rb +174 -0
  510. data/client/spec/models/comment_html_rendering_mode_spec.rb +30 -0
  511. data/client/spec/models/comment_log_data_spec.rb +292 -0
  512. data/client/spec/models/comment_log_entry_spec.rb +48 -0
  513. data/client/spec/models/comment_log_type_spec.rb +30 -0
  514. data/client/spec/models/comment_question_results_rendering_type_spec.rb +30 -0
  515. data/client/spec/models/comment_questions_required_spec.rb +30 -0
  516. data/client/spec/models/comment_text_update_request_spec.rb +48 -0
  517. data/client/spec/models/comment_thread_deletion_mode_spec.rb +30 -0
  518. data/client/spec/models/comment_user_badge_info_spec.rb +84 -0
  519. data/client/spec/models/comment_user_hash_tag_info_spec.rb +54 -0
  520. data/client/spec/models/comment_user_mention_info_spec.rb +64 -0
  521. data/client/spec/models/commenter_name_formats_spec.rb +30 -0
  522. data/client/spec/models/create_api_page_data_spec.rb +66 -0
  523. data/client/spec/models/create_api_user_subscription_data_spec.rb +60 -0
  524. data/client/spec/models/create_apisso_user_data_spec.rb +150 -0
  525. data/client/spec/models/create_comment_params_spec.rb +234 -0
  526. data/client/spec/models/create_comment_public200_response_spec.rb +21 -0
  527. data/client/spec/models/create_feed_post200_response_spec.rb +21 -0
  528. data/client/spec/models/create_feed_post_params_spec.rb +78 -0
  529. data/client/spec/models/create_feed_post_public200_response_spec.rb +21 -0
  530. data/client/spec/models/create_feed_post_response_spec.rb +42 -0
  531. data/client/spec/models/create_feed_posts_response_spec.rb +42 -0
  532. data/client/spec/models/create_subscription_api_response_spec.rb +54 -0
  533. data/client/spec/models/create_user_badge200_response_spec.rb +21 -0
  534. data/client/spec/models/create_user_badge_params_spec.rb +48 -0
  535. data/client/spec/models/custom_config_parameters_spec.rb +462 -0
  536. data/client/spec/models/delete_comment200_response_spec.rb +21 -0
  537. data/client/spec/models/delete_comment_action_spec.rb +30 -0
  538. data/client/spec/models/delete_comment_public200_response_spec.rb +21 -0
  539. data/client/spec/models/delete_comment_result_spec.rb +42 -0
  540. data/client/spec/models/delete_comment_vote200_response_spec.rb +21 -0
  541. data/client/spec/models/delete_domain_config200_response_spec.rb +36 -0
  542. data/client/spec/models/delete_feed_post_public200_response_any_of_spec.rb +36 -0
  543. data/client/spec/models/delete_feed_post_public200_response_spec.rb +21 -0
  544. data/client/spec/models/delete_page_api_response_spec.rb +48 -0
  545. data/client/spec/models/delete_sso_user_api_response_spec.rb +54 -0
  546. data/client/spec/models/delete_subscription_api_response_spec.rb +48 -0
  547. data/client/spec/models/deleted_comment_result_comment_spec.rb +54 -0
  548. data/client/spec/models/event_log_entry_spec.rb +66 -0
  549. data/client/spec/models/f_comment_meta_spec.rb +42 -0
  550. data/client/spec/models/f_comment_spec.rb +456 -0
  551. data/client/spec/models/feed_post_link_spec.rb +54 -0
  552. data/client/spec/models/feed_post_media_item_asset_spec.rb +48 -0
  553. data/client/spec/models/feed_post_media_item_spec.rb +48 -0
  554. data/client/spec/models/feed_post_spec.rb +126 -0
  555. data/client/spec/models/feed_post_stats_spec.rb +42 -0
  556. data/client/spec/models/feed_posts_stats_response_spec.rb +42 -0
  557. data/client/spec/models/find_comments_by_range_item_spec.rb +42 -0
  558. data/client/spec/models/find_comments_by_range_response_spec.rb +42 -0
  559. data/client/spec/models/flag_comment200_response_spec.rb +21 -0
  560. data/client/spec/models/flag_comment_public200_response_spec.rb +21 -0
  561. data/client/spec/models/flag_comment_response_spec.rb +60 -0
  562. data/client/spec/models/get_audit_logs200_response_spec.rb +21 -0
  563. data/client/spec/models/get_audit_logs_response_spec.rb +42 -0
  564. data/client/spec/models/get_comment200_response_spec.rb +21 -0
  565. data/client/spec/models/get_comment_text200_response_spec.rb +21 -0
  566. data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +21 -0
  567. data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +48 -0
  568. data/client/spec/models/get_comments200_response_spec.rb +21 -0
  569. data/client/spec/models/get_comments_public200_response_spec.rb +21 -0
  570. data/client/spec/models/get_comments_response_public_comment_spec.rb +174 -0
  571. data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +192 -0
  572. data/client/spec/models/get_domain_config200_response_spec.rb +21 -0
  573. data/client/spec/models/get_domain_configs200_response_any_of1_spec.rb +48 -0
  574. data/client/spec/models/get_domain_configs200_response_any_of_spec.rb +42 -0
  575. data/client/spec/models/get_domain_configs200_response_spec.rb +21 -0
  576. data/client/spec/models/get_event_log200_response_spec.rb +21 -0
  577. data/client/spec/models/get_event_log_response_spec.rb +42 -0
  578. data/client/spec/models/get_feed_posts200_response_spec.rb +21 -0
  579. data/client/spec/models/get_feed_posts_public200_response_spec.rb +21 -0
  580. data/client/spec/models/get_feed_posts_response_spec.rb +42 -0
  581. data/client/spec/models/get_feed_posts_stats200_response_spec.rb +21 -0
  582. data/client/spec/models/get_my_notifications_response_spec.rb +60 -0
  583. data/client/spec/models/get_page_by_urlid_api_response_spec.rb +54 -0
  584. data/client/spec/models/get_pages_api_response_spec.rb +54 -0
  585. data/client/spec/models/get_public_feed_posts_response_spec.rb +48 -0
  586. data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +54 -0
  587. data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +54 -0
  588. data/client/spec/models/get_sso_users200_response_spec.rb +42 -0
  589. data/client/spec/models/get_subscriptions_api_response_spec.rb +54 -0
  590. data/client/spec/models/get_user_badge200_response_spec.rb +21 -0
  591. data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +21 -0
  592. data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +21 -0
  593. data/client/spec/models/get_user_badges200_response_spec.rb +21 -0
  594. data/client/spec/models/get_user_notification_count200_response_spec.rb +21 -0
  595. data/client/spec/models/get_user_notification_count_response_spec.rb +42 -0
  596. data/client/spec/models/get_user_notifications200_response_spec.rb +21 -0
  597. data/client/spec/models/get_user_presence_statuses200_response_spec.rb +21 -0
  598. data/client/spec/models/get_user_presence_statuses_response_spec.rb +42 -0
  599. data/client/spec/models/get_user_reacts_public200_response_spec.rb +21 -0
  600. data/client/spec/models/gif_rating_spec.rb +30 -0
  601. data/client/spec/models/header_state_spec.rb +60 -0
  602. data/client/spec/models/ignored_response_spec.rb +46 -0
  603. data/client/spec/models/image_content_profanity_level_spec.rb +30 -0
  604. data/client/spec/models/live_event_extra_info_spec.rb +36 -0
  605. data/client/spec/models/live_event_spec.rb +126 -0
  606. data/client/spec/models/live_event_type_spec.rb +30 -0
  607. data/client/spec/models/lock_comment200_response_spec.rb +21 -0
  608. data/client/spec/models/media_asset_spec.rb +48 -0
  609. data/client/spec/models/meta_item_spec.rb +42 -0
  610. data/client/spec/models/notification_and_count_spec.rb +42 -0
  611. data/client/spec/models/notification_object_type_spec.rb +30 -0
  612. data/client/spec/models/notification_type_spec.rb +30 -0
  613. data/client/spec/models/patch_domain_config_params_spec.rb +72 -0
  614. data/client/spec/models/patch_page_api_response_spec.rb +54 -0
  615. data/client/spec/models/patch_sso_user_api_response_spec.rb +54 -0
  616. data/client/spec/models/pin_comment200_response_spec.rb +21 -0
  617. data/client/spec/models/pub_sub_comment_base_spec.rb +270 -0
  618. data/client/spec/models/pub_sub_comment_spec.rb +288 -0
  619. data/client/spec/models/pub_sub_vote_spec.rb +84 -0
  620. data/client/spec/models/public_api_delete_comment_response_spec.rb +48 -0
  621. data/client/spec/models/public_api_get_comment_text_response_spec.rb +48 -0
  622. data/client/spec/models/public_api_set_comment_text_response_spec.rb +42 -0
  623. data/client/spec/models/public_block_from_comment_params_spec.rb +36 -0
  624. data/client/spec/models/public_comment_base_spec.rb +198 -0
  625. data/client/spec/models/public_comment_spec.rb +258 -0
  626. data/client/spec/models/public_feed_posts_response_spec.rb +72 -0
  627. data/client/spec/models/put_sso_user_api_response_spec.rb +54 -0
  628. data/client/spec/models/query_predicate_spec.rb +52 -0
  629. data/client/spec/models/query_predicate_value_spec.rb +21 -0
  630. data/client/spec/models/question_datum_spec.rb +42 -0
  631. data/client/spec/models/question_rendering_type_spec.rb +30 -0
  632. data/client/spec/models/question_result_aggregation_overall_spec.rb +66 -0
  633. data/client/spec/models/question_result_spec.rb +96 -0
  634. data/client/spec/models/question_sub_question_visibility_spec.rb +30 -0
  635. data/client/spec/models/question_when_save_spec.rb +30 -0
  636. data/client/spec/models/react_body_params_spec.rb +36 -0
  637. data/client/spec/models/react_feed_post_public200_response_spec.rb +21 -0
  638. data/client/spec/models/react_feed_post_response_spec.rb +48 -0
  639. data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +42 -0
  640. data/client/spec/models/record_string_string_or_number_value_spec.rb +21 -0
  641. data/client/spec/models/renderable_user_notification_spec.rb +156 -0
  642. data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +30 -0
  643. data/client/spec/models/repeat_comment_handling_action_spec.rb +30 -0
  644. data/client/spec/models/reset_user_notifications200_response_spec.rb +21 -0
  645. data/client/spec/models/reset_user_notifications_response_spec.rb +46 -0
  646. data/client/spec/models/save_comment200_response_spec.rb +21 -0
  647. data/client/spec/models/save_comment_response_optimized_spec.rb +54 -0
  648. data/client/spec/models/save_comment_response_spec.rb +54 -0
  649. data/client/spec/models/save_comments_response_with_presence_spec.rb +60 -0
  650. data/client/spec/models/search_users200_response_spec.rb +21 -0
  651. data/client/spec/models/search_users_response_spec.rb +42 -0
  652. data/client/spec/models/set_comment_text200_response_spec.rb +21 -0
  653. data/client/spec/models/set_comment_text_result_spec.rb +42 -0
  654. data/client/spec/models/size_preset_spec.rb +30 -0
  655. data/client/spec/models/sort_directions_spec.rb +30 -0
  656. data/client/spec/models/sortdir_spec.rb +30 -0
  657. data/client/spec/models/spam_rule_spec.rb +46 -0
  658. data/client/spec/models/sso_security_level_spec.rb +30 -0
  659. data/client/spec/models/un_block_comment_public200_response_spec.rb +21 -0
  660. data/client/spec/models/un_block_from_comment_params_spec.rb +36 -0
  661. data/client/spec/models/unblock_success_spec.rb +42 -0
  662. data/client/spec/models/updatable_comment_params_spec.rb +264 -0
  663. data/client/spec/models/update_api_page_data_spec.rb +60 -0
  664. data/client/spec/models/update_apisso_user_data_spec.rb +150 -0
  665. data/client/spec/models/update_domain_config_params_spec.rb +72 -0
  666. data/client/spec/models/update_feed_post_params_spec.rb +66 -0
  667. data/client/spec/models/update_user_badge200_response_spec.rb +21 -0
  668. data/client/spec/models/update_user_badge_params_spec.rb +36 -0
  669. data/client/spec/models/update_user_notification_status200_response_spec.rb +21 -0
  670. data/client/spec/models/upload_image_response_spec.rb +60 -0
  671. data/client/spec/models/user_badge_progress_spec.rb +78 -0
  672. data/client/spec/models/user_badge_spec.rb +138 -0
  673. data/client/spec/models/user_notification_spec.rb +174 -0
  674. data/client/spec/models/user_notification_write_response_spec.rb +48 -0
  675. data/client/spec/models/user_presence_data_spec.rb +48 -0
  676. data/client/spec/models/user_reacts_response_spec.rb +42 -0
  677. data/client/spec/models/user_search_result_spec.rb +64 -0
  678. data/client/spec/models/user_session_info_spec.rb +108 -0
  679. data/client/spec/models/vote_body_params_spec.rb +58 -0
  680. data/client/spec/models/vote_comment200_response_spec.rb +21 -0
  681. data/client/spec/models/vote_delete_response_spec.rb +42 -0
  682. data/client/spec/models/vote_response_spec.rb +60 -0
  683. data/client/spec/models/vote_response_status_spec.rb +21 -0
  684. data/client/spec/models/vote_response_user_spec.rb +36 -0
  685. data/client/spec/models/vote_style_spec.rb +30 -0
  686. data/client/spec/spec_helper.rb +111 -0
  687. data/lib/fastcomments/sso/fastcomments_sso.rb +81 -0
  688. data/lib/fastcomments/sso/helpers.rb +26 -0
  689. data/lib/fastcomments/sso/secure_sso_payload.rb +23 -0
  690. data/lib/fastcomments/sso/secure_sso_user_data.rb +31 -0
  691. data/lib/fastcomments/sso/simple_sso_user_data.rb +23 -0
  692. data/lib/fastcomments.rb +9 -0
  693. metadata +787 -0
@@ -0,0 +1,2858 @@
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 PublicApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param tenant_id [String]
23
+ # @param comment_id [String]
24
+ # @param public_block_from_comment_params [PublicBlockFromCommentParams]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :sso
27
+ # @return [BlockFromCommentPublic200Response]
28
+ def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {})
29
+ data, _status_code, _headers = block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
30
+ data
31
+ end
32
+
33
+ # @param tenant_id [String]
34
+ # @param comment_id [String]
35
+ # @param public_block_from_comment_params [PublicBlockFromCommentParams]
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :sso
38
+ # @return [Array<(BlockFromCommentPublic200Response, Integer, Hash)>] BlockFromCommentPublic200Response data, response status code and response headers
39
+ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PublicApi.block_from_comment_public ...'
42
+ end
43
+ # verify the required parameter 'tenant_id' is set
44
+ if @api_client.config.client_side_validation && tenant_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.block_from_comment_public"
46
+ end
47
+ # verify the required parameter 'comment_id' is set
48
+ if @api_client.config.client_side_validation && comment_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.block_from_comment_public"
50
+ end
51
+ # verify the required parameter 'public_block_from_comment_params' is set
52
+ if @api_client.config.client_side_validation && public_block_from_comment_params.nil?
53
+ fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.block_from_comment_public"
54
+ end
55
+ # resource path
56
+ local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'tenantId'] = tenant_id
61
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
62
+
63
+ # header parameters
64
+ header_params = opts[:header_params] || {}
65
+ # HTTP header 'Accept' (if needed)
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
67
+ # HTTP header 'Content-Type'
68
+ content_type = @api_client.select_header_content_type(['application/json'])
69
+ if !content_type.nil?
70
+ header_params['Content-Type'] = content_type
71
+ end
72
+
73
+ # form parameters
74
+ form_params = opts[:form_params] || {}
75
+
76
+ # http body (model)
77
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params)
78
+
79
+ # return_type
80
+ return_type = opts[:debug_return_type] || 'BlockFromCommentPublic200Response'
81
+
82
+ # auth_names
83
+ auth_names = opts[:debug_auth_names] || []
84
+
85
+ new_options = opts.merge(
86
+ :operation => :"PublicApi.block_from_comment_public",
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: PublicApi#block_from_comment_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # @param tenant_id [String]
103
+ # @param comment_ids [String] A comma separated list of comment ids.
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :sso
106
+ # @return [CheckedCommentsForBlocked200Response]
107
+ def checked_comments_for_blocked(tenant_id, comment_ids, opts = {})
108
+ data, _status_code, _headers = checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts)
109
+ data
110
+ end
111
+
112
+ # @param tenant_id [String]
113
+ # @param comment_ids [String] A comma separated list of comment ids.
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [String] :sso
116
+ # @return [Array<(CheckedCommentsForBlocked200Response, Integer, Hash)>] CheckedCommentsForBlocked200Response data, response status code and response headers
117
+ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = {})
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: PublicApi.checked_comments_for_blocked ...'
120
+ end
121
+ # verify the required parameter 'tenant_id' is set
122
+ if @api_client.config.client_side_validation && tenant_id.nil?
123
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.checked_comments_for_blocked"
124
+ end
125
+ # verify the required parameter 'comment_ids' is set
126
+ if @api_client.config.client_side_validation && comment_ids.nil?
127
+ fail ArgumentError, "Missing the required parameter 'comment_ids' when calling PublicApi.checked_comments_for_blocked"
128
+ end
129
+ # resource path
130
+ local_var_path = '/check-blocked-comments'
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'tenantId'] = tenant_id
135
+ query_params[:'commentIds'] = comment_ids
136
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
137
+
138
+ # header parameters
139
+ header_params = opts[:header_params] || {}
140
+ # HTTP header 'Accept' (if needed)
141
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
142
+
143
+ # form parameters
144
+ form_params = opts[:form_params] || {}
145
+
146
+ # http body (model)
147
+ post_body = opts[:debug_body]
148
+
149
+ # return_type
150
+ return_type = opts[:debug_return_type] || 'CheckedCommentsForBlocked200Response'
151
+
152
+ # auth_names
153
+ auth_names = opts[:debug_auth_names] || []
154
+
155
+ new_options = opts.merge(
156
+ :operation => :"PublicApi.checked_comments_for_blocked",
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names,
162
+ :return_type => return_type
163
+ )
164
+
165
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug "API called: PublicApi#checked_comments_for_blocked\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
+ end
169
+ return data, status_code, headers
170
+ end
171
+
172
+ # @param tenant_id [String]
173
+ # @param url_id [String]
174
+ # @param broadcast_id [String]
175
+ # @param comment_data [CommentData]
176
+ # @param [Hash] opts the optional parameters
177
+ # @option opts [String] :session_id
178
+ # @option opts [String] :sso
179
+ # @return [CreateCommentPublic200Response]
180
+ def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = {})
181
+ data, _status_code, _headers = create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts)
182
+ data
183
+ end
184
+
185
+ # @param tenant_id [String]
186
+ # @param url_id [String]
187
+ # @param broadcast_id [String]
188
+ # @param comment_data [CommentData]
189
+ # @param [Hash] opts the optional parameters
190
+ # @option opts [String] :session_id
191
+ # @option opts [String] :sso
192
+ # @return [Array<(CreateCommentPublic200Response, Integer, Hash)>] CreateCommentPublic200Response data, response status code and response headers
193
+ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts = {})
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug 'Calling API: PublicApi.create_comment_public ...'
196
+ end
197
+ # verify the required parameter 'tenant_id' is set
198
+ if @api_client.config.client_side_validation && tenant_id.nil?
199
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_comment_public"
200
+ end
201
+ # verify the required parameter 'url_id' is set
202
+ if @api_client.config.client_side_validation && url_id.nil?
203
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.create_comment_public"
204
+ end
205
+ # verify the required parameter 'broadcast_id' is set
206
+ if @api_client.config.client_side_validation && broadcast_id.nil?
207
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.create_comment_public"
208
+ end
209
+ # verify the required parameter 'comment_data' is set
210
+ if @api_client.config.client_side_validation && comment_data.nil?
211
+ fail ArgumentError, "Missing the required parameter 'comment_data' when calling PublicApi.create_comment_public"
212
+ end
213
+ # resource path
214
+ local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
215
+
216
+ # query parameters
217
+ query_params = opts[:query_params] || {}
218
+ query_params[:'urlId'] = url_id
219
+ query_params[:'broadcastId'] = broadcast_id
220
+ query_params[:'sessionId'] = opts[:'session_id'] if !opts[:'session_id'].nil?
221
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
222
+
223
+ # header parameters
224
+ header_params = opts[:header_params] || {}
225
+ # HTTP header 'Accept' (if needed)
226
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
227
+ # HTTP header 'Content-Type'
228
+ content_type = @api_client.select_header_content_type(['application/json'])
229
+ if !content_type.nil?
230
+ header_params['Content-Type'] = content_type
231
+ end
232
+
233
+ # form parameters
234
+ form_params = opts[:form_params] || {}
235
+
236
+ # http body (model)
237
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_data)
238
+
239
+ # return_type
240
+ return_type = opts[:debug_return_type] || 'CreateCommentPublic200Response'
241
+
242
+ # auth_names
243
+ auth_names = opts[:debug_auth_names] || []
244
+
245
+ new_options = opts.merge(
246
+ :operation => :"PublicApi.create_comment_public",
247
+ :header_params => header_params,
248
+ :query_params => query_params,
249
+ :form_params => form_params,
250
+ :body => post_body,
251
+ :auth_names => auth_names,
252
+ :return_type => return_type
253
+ )
254
+
255
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug "API called: PublicApi#create_comment_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
+ end
259
+ return data, status_code, headers
260
+ end
261
+
262
+ # @param tenant_id [String]
263
+ # @param create_feed_post_params [CreateFeedPostParams]
264
+ # @param [Hash] opts the optional parameters
265
+ # @option opts [String] :broadcast_id
266
+ # @option opts [String] :sso
267
+ # @return [CreateFeedPostPublic200Response]
268
+ def create_feed_post_public(tenant_id, create_feed_post_params, opts = {})
269
+ data, _status_code, _headers = create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts)
270
+ data
271
+ end
272
+
273
+ # @param tenant_id [String]
274
+ # @param create_feed_post_params [CreateFeedPostParams]
275
+ # @param [Hash] opts the optional parameters
276
+ # @option opts [String] :broadcast_id
277
+ # @option opts [String] :sso
278
+ # @return [Array<(CreateFeedPostPublic200Response, Integer, Hash)>] CreateFeedPostPublic200Response data, response status code and response headers
279
+ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts = {})
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug 'Calling API: PublicApi.create_feed_post_public ...'
282
+ end
283
+ # verify the required parameter 'tenant_id' is set
284
+ if @api_client.config.client_side_validation && tenant_id.nil?
285
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_feed_post_public"
286
+ end
287
+ # verify the required parameter 'create_feed_post_params' is set
288
+ if @api_client.config.client_side_validation && create_feed_post_params.nil?
289
+ fail ArgumentError, "Missing the required parameter 'create_feed_post_params' when calling PublicApi.create_feed_post_public"
290
+ end
291
+ # resource path
292
+ local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
293
+
294
+ # query parameters
295
+ query_params = opts[:query_params] || {}
296
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
297
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
298
+
299
+ # header parameters
300
+ header_params = opts[:header_params] || {}
301
+ # HTTP header 'Accept' (if needed)
302
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
303
+ # HTTP header 'Content-Type'
304
+ content_type = @api_client.select_header_content_type(['application/json'])
305
+ if !content_type.nil?
306
+ header_params['Content-Type'] = content_type
307
+ end
308
+
309
+ # form parameters
310
+ form_params = opts[:form_params] || {}
311
+
312
+ # http body (model)
313
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params)
314
+
315
+ # return_type
316
+ return_type = opts[:debug_return_type] || 'CreateFeedPostPublic200Response'
317
+
318
+ # auth_names
319
+ auth_names = opts[:debug_auth_names] || []
320
+
321
+ new_options = opts.merge(
322
+ :operation => :"PublicApi.create_feed_post_public",
323
+ :header_params => header_params,
324
+ :query_params => query_params,
325
+ :form_params => form_params,
326
+ :body => post_body,
327
+ :auth_names => auth_names,
328
+ :return_type => return_type
329
+ )
330
+
331
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
332
+ if @api_client.config.debugging
333
+ @api_client.config.logger.debug "API called: PublicApi#create_feed_post_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
334
+ end
335
+ return data, status_code, headers
336
+ end
337
+
338
+ # @param tenant_id [String]
339
+ # @param comment_id [String]
340
+ # @param broadcast_id [String]
341
+ # @param [Hash] opts the optional parameters
342
+ # @option opts [String] :edit_key
343
+ # @option opts [String] :sso
344
+ # @return [DeleteCommentPublic200Response]
345
+ def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {})
346
+ data, _status_code, _headers = delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts)
347
+ data
348
+ end
349
+
350
+ # @param tenant_id [String]
351
+ # @param comment_id [String]
352
+ # @param broadcast_id [String]
353
+ # @param [Hash] opts the optional parameters
354
+ # @option opts [String] :edit_key
355
+ # @option opts [String] :sso
356
+ # @return [Array<(DeleteCommentPublic200Response, Integer, Hash)>] DeleteCommentPublic200Response data, response status code and response headers
357
+ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts = {})
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_public ...'
360
+ end
361
+ # verify the required parameter 'tenant_id' is set
362
+ if @api_client.config.client_side_validation && tenant_id.nil?
363
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_public"
364
+ end
365
+ # verify the required parameter 'comment_id' is set
366
+ if @api_client.config.client_side_validation && comment_id.nil?
367
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.delete_comment_public"
368
+ end
369
+ # verify the required parameter 'broadcast_id' is set
370
+ if @api_client.config.client_side_validation && broadcast_id.nil?
371
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_public"
372
+ end
373
+ # resource path
374
+ local_var_path = '/comments/{tenantId}/{commentId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
375
+
376
+ # query parameters
377
+ query_params = opts[:query_params] || {}
378
+ query_params[:'broadcastId'] = broadcast_id
379
+ query_params[:'editKey'] = opts[:'edit_key'] if !opts[:'edit_key'].nil?
380
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
381
+
382
+ # header parameters
383
+ header_params = opts[:header_params] || {}
384
+ # HTTP header 'Accept' (if needed)
385
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
386
+
387
+ # form parameters
388
+ form_params = opts[:form_params] || {}
389
+
390
+ # http body (model)
391
+ post_body = opts[:debug_body]
392
+
393
+ # return_type
394
+ return_type = opts[:debug_return_type] || 'DeleteCommentPublic200Response'
395
+
396
+ # auth_names
397
+ auth_names = opts[:debug_auth_names] || []
398
+
399
+ new_options = opts.merge(
400
+ :operation => :"PublicApi.delete_comment_public",
401
+ :header_params => header_params,
402
+ :query_params => query_params,
403
+ :form_params => form_params,
404
+ :body => post_body,
405
+ :auth_names => auth_names,
406
+ :return_type => return_type
407
+ )
408
+
409
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
410
+ if @api_client.config.debugging
411
+ @api_client.config.logger.debug "API called: PublicApi#delete_comment_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
412
+ end
413
+ return data, status_code, headers
414
+ end
415
+
416
+ # @param tenant_id [String]
417
+ # @param comment_id [String]
418
+ # @param vote_id [String]
419
+ # @param url_id [String]
420
+ # @param broadcast_id [String]
421
+ # @param [Hash] opts the optional parameters
422
+ # @option opts [String] :edit_key
423
+ # @option opts [String] :sso
424
+ # @return [DeleteCommentVote200Response]
425
+ def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {})
426
+ data, _status_code, _headers = delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts)
427
+ data
428
+ end
429
+
430
+ # @param tenant_id [String]
431
+ # @param comment_id [String]
432
+ # @param vote_id [String]
433
+ # @param url_id [String]
434
+ # @param broadcast_id [String]
435
+ # @param [Hash] opts the optional parameters
436
+ # @option opts [String] :edit_key
437
+ # @option opts [String] :sso
438
+ # @return [Array<(DeleteCommentVote200Response, Integer, Hash)>] DeleteCommentVote200Response data, response status code and response headers
439
+ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {})
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_vote ...'
442
+ end
443
+ # verify the required parameter 'tenant_id' is set
444
+ if @api_client.config.client_side_validation && tenant_id.nil?
445
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_vote"
446
+ end
447
+ # verify the required parameter 'comment_id' is set
448
+ if @api_client.config.client_side_validation && comment_id.nil?
449
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.delete_comment_vote"
450
+ end
451
+ # verify the required parameter 'vote_id' is set
452
+ if @api_client.config.client_side_validation && vote_id.nil?
453
+ fail ArgumentError, "Missing the required parameter 'vote_id' when calling PublicApi.delete_comment_vote"
454
+ end
455
+ # verify the required parameter 'url_id' is set
456
+ if @api_client.config.client_side_validation && url_id.nil?
457
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.delete_comment_vote"
458
+ end
459
+ # verify the required parameter 'broadcast_id' is set
460
+ if @api_client.config.client_side_validation && broadcast_id.nil?
461
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_vote"
462
+ end
463
+ # resource path
464
+ local_var_path = '/comments/{tenantId}/{commentId}/vote/{voteId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s))
465
+
466
+ # query parameters
467
+ query_params = opts[:query_params] || {}
468
+ query_params[:'urlId'] = url_id
469
+ query_params[:'broadcastId'] = broadcast_id
470
+ query_params[:'editKey'] = opts[:'edit_key'] if !opts[:'edit_key'].nil?
471
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
472
+
473
+ # header parameters
474
+ header_params = opts[:header_params] || {}
475
+ # HTTP header 'Accept' (if needed)
476
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
477
+
478
+ # form parameters
479
+ form_params = opts[:form_params] || {}
480
+
481
+ # http body (model)
482
+ post_body = opts[:debug_body]
483
+
484
+ # return_type
485
+ return_type = opts[:debug_return_type] || 'DeleteCommentVote200Response'
486
+
487
+ # auth_names
488
+ auth_names = opts[:debug_auth_names] || []
489
+
490
+ new_options = opts.merge(
491
+ :operation => :"PublicApi.delete_comment_vote",
492
+ :header_params => header_params,
493
+ :query_params => query_params,
494
+ :form_params => form_params,
495
+ :body => post_body,
496
+ :auth_names => auth_names,
497
+ :return_type => return_type
498
+ )
499
+
500
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
501
+ if @api_client.config.debugging
502
+ @api_client.config.logger.debug "API called: PublicApi#delete_comment_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
503
+ end
504
+ return data, status_code, headers
505
+ end
506
+
507
+ # @param tenant_id [String]
508
+ # @param post_id [String]
509
+ # @param [Hash] opts the optional parameters
510
+ # @option opts [String] :broadcast_id
511
+ # @option opts [String] :sso
512
+ # @return [DeleteFeedPostPublic200Response]
513
+ def delete_feed_post_public(tenant_id, post_id, opts = {})
514
+ data, _status_code, _headers = delete_feed_post_public_with_http_info(tenant_id, post_id, opts)
515
+ data
516
+ end
517
+
518
+ # @param tenant_id [String]
519
+ # @param post_id [String]
520
+ # @param [Hash] opts the optional parameters
521
+ # @option opts [String] :broadcast_id
522
+ # @option opts [String] :sso
523
+ # @return [Array<(DeleteFeedPostPublic200Response, Integer, Hash)>] DeleteFeedPostPublic200Response data, response status code and response headers
524
+ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {})
525
+ if @api_client.config.debugging
526
+ @api_client.config.logger.debug 'Calling API: PublicApi.delete_feed_post_public ...'
527
+ end
528
+ # verify the required parameter 'tenant_id' is set
529
+ if @api_client.config.client_side_validation && tenant_id.nil?
530
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_feed_post_public"
531
+ end
532
+ # verify the required parameter 'post_id' is set
533
+ if @api_client.config.client_side_validation && post_id.nil?
534
+ fail ArgumentError, "Missing the required parameter 'post_id' when calling PublicApi.delete_feed_post_public"
535
+ end
536
+ # resource path
537
+ local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s))
538
+
539
+ # query parameters
540
+ query_params = opts[:query_params] || {}
541
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
542
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
543
+
544
+ # header parameters
545
+ header_params = opts[:header_params] || {}
546
+ # HTTP header 'Accept' (if needed)
547
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
548
+
549
+ # form parameters
550
+ form_params = opts[:form_params] || {}
551
+
552
+ # http body (model)
553
+ post_body = opts[:debug_body]
554
+
555
+ # return_type
556
+ return_type = opts[:debug_return_type] || 'DeleteFeedPostPublic200Response'
557
+
558
+ # auth_names
559
+ auth_names = opts[:debug_auth_names] || []
560
+
561
+ new_options = opts.merge(
562
+ :operation => :"PublicApi.delete_feed_post_public",
563
+ :header_params => header_params,
564
+ :query_params => query_params,
565
+ :form_params => form_params,
566
+ :body => post_body,
567
+ :auth_names => auth_names,
568
+ :return_type => return_type
569
+ )
570
+
571
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
572
+ if @api_client.config.debugging
573
+ @api_client.config.logger.debug "API called: PublicApi#delete_feed_post_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
574
+ end
575
+ return data, status_code, headers
576
+ end
577
+
578
+ # @param tenant_id [String]
579
+ # @param comment_id [String]
580
+ # @param is_flagged [Boolean]
581
+ # @param [Hash] opts the optional parameters
582
+ # @option opts [String] :sso
583
+ # @return [FlagCommentPublic200Response]
584
+ def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {})
585
+ data, _status_code, _headers = flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts)
586
+ data
587
+ end
588
+
589
+ # @param tenant_id [String]
590
+ # @param comment_id [String]
591
+ # @param is_flagged [Boolean]
592
+ # @param [Hash] opts the optional parameters
593
+ # @option opts [String] :sso
594
+ # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response data, response status code and response headers
595
+ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = {})
596
+ if @api_client.config.debugging
597
+ @api_client.config.logger.debug 'Calling API: PublicApi.flag_comment_public ...'
598
+ end
599
+ # verify the required parameter 'tenant_id' is set
600
+ if @api_client.config.client_side_validation && tenant_id.nil?
601
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.flag_comment_public"
602
+ end
603
+ # verify the required parameter 'comment_id' is set
604
+ if @api_client.config.client_side_validation && comment_id.nil?
605
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.flag_comment_public"
606
+ end
607
+ # verify the required parameter 'is_flagged' is set
608
+ if @api_client.config.client_side_validation && is_flagged.nil?
609
+ fail ArgumentError, "Missing the required parameter 'is_flagged' when calling PublicApi.flag_comment_public"
610
+ end
611
+ # resource path
612
+ local_var_path = '/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
613
+
614
+ # query parameters
615
+ query_params = opts[:query_params] || {}
616
+ query_params[:'tenantId'] = tenant_id
617
+ query_params[:'isFlagged'] = is_flagged
618
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
619
+
620
+ # header parameters
621
+ header_params = opts[:header_params] || {}
622
+ # HTTP header 'Accept' (if needed)
623
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
624
+
625
+ # form parameters
626
+ form_params = opts[:form_params] || {}
627
+
628
+ # http body (model)
629
+ post_body = opts[:debug_body]
630
+
631
+ # return_type
632
+ return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response'
633
+
634
+ # auth_names
635
+ auth_names = opts[:debug_auth_names] || []
636
+
637
+ new_options = opts.merge(
638
+ :operation => :"PublicApi.flag_comment_public",
639
+ :header_params => header_params,
640
+ :query_params => query_params,
641
+ :form_params => form_params,
642
+ :body => post_body,
643
+ :auth_names => auth_names,
644
+ :return_type => return_type
645
+ )
646
+
647
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
648
+ if @api_client.config.debugging
649
+ @api_client.config.logger.debug "API called: PublicApi#flag_comment_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
650
+ end
651
+ return data, status_code, headers
652
+ end
653
+
654
+ # @param tenant_id [String]
655
+ # @param comment_id [String]
656
+ # @param [Hash] opts the optional parameters
657
+ # @option opts [String] :edit_key
658
+ # @option opts [String] :sso
659
+ # @return [GetCommentText200Response]
660
+ def get_comment_text(tenant_id, comment_id, opts = {})
661
+ data, _status_code, _headers = get_comment_text_with_http_info(tenant_id, comment_id, opts)
662
+ data
663
+ end
664
+
665
+ # @param tenant_id [String]
666
+ # @param comment_id [String]
667
+ # @param [Hash] opts the optional parameters
668
+ # @option opts [String] :edit_key
669
+ # @option opts [String] :sso
670
+ # @return [Array<(GetCommentText200Response, Integer, Hash)>] GetCommentText200Response data, response status code and response headers
671
+ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {})
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_text ...'
674
+ end
675
+ # verify the required parameter 'tenant_id' is set
676
+ if @api_client.config.client_side_validation && tenant_id.nil?
677
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_text"
678
+ end
679
+ # verify the required parameter 'comment_id' is set
680
+ if @api_client.config.client_side_validation && comment_id.nil?
681
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.get_comment_text"
682
+ end
683
+ # resource path
684
+ local_var_path = '/comments/{tenantId}/{commentId}/text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
685
+
686
+ # query parameters
687
+ query_params = opts[:query_params] || {}
688
+ query_params[:'editKey'] = opts[:'edit_key'] if !opts[:'edit_key'].nil?
689
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
690
+
691
+ # header parameters
692
+ header_params = opts[:header_params] || {}
693
+ # HTTP header 'Accept' (if needed)
694
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
695
+
696
+ # form parameters
697
+ form_params = opts[:form_params] || {}
698
+
699
+ # http body (model)
700
+ post_body = opts[:debug_body]
701
+
702
+ # return_type
703
+ return_type = opts[:debug_return_type] || 'GetCommentText200Response'
704
+
705
+ # auth_names
706
+ auth_names = opts[:debug_auth_names] || []
707
+
708
+ new_options = opts.merge(
709
+ :operation => :"PublicApi.get_comment_text",
710
+ :header_params => header_params,
711
+ :query_params => query_params,
712
+ :form_params => form_params,
713
+ :body => post_body,
714
+ :auth_names => auth_names,
715
+ :return_type => return_type
716
+ )
717
+
718
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
719
+ if @api_client.config.debugging
720
+ @api_client.config.logger.debug "API called: PublicApi#get_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ end
722
+ return data, status_code, headers
723
+ end
724
+
725
+ # @param tenant_id [String]
726
+ # @param comment_id [String]
727
+ # @param dir [Integer]
728
+ # @param [Hash] opts the optional parameters
729
+ # @option opts [String] :sso
730
+ # @return [GetCommentVoteUserNames200Response]
731
+ def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {})
732
+ data, _status_code, _headers = get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts)
733
+ data
734
+ end
735
+
736
+ # @param tenant_id [String]
737
+ # @param comment_id [String]
738
+ # @param dir [Integer]
739
+ # @param [Hash] opts the optional parameters
740
+ # @option opts [String] :sso
741
+ # @return [Array<(GetCommentVoteUserNames200Response, Integer, Hash)>] GetCommentVoteUserNames200Response data, response status code and response headers
742
+ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts = {})
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_vote_user_names ...'
745
+ end
746
+ # verify the required parameter 'tenant_id' is set
747
+ if @api_client.config.client_side_validation && tenant_id.nil?
748
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_vote_user_names"
749
+ end
750
+ # verify the required parameter 'comment_id' is set
751
+ if @api_client.config.client_side_validation && comment_id.nil?
752
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.get_comment_vote_user_names"
753
+ end
754
+ # verify the required parameter 'dir' is set
755
+ if @api_client.config.client_side_validation && dir.nil?
756
+ fail ArgumentError, "Missing the required parameter 'dir' when calling PublicApi.get_comment_vote_user_names"
757
+ end
758
+ # resource path
759
+ local_var_path = '/comments/{tenantId}/{commentId}/votes'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
760
+
761
+ # query parameters
762
+ query_params = opts[:query_params] || {}
763
+ query_params[:'dir'] = dir
764
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
765
+
766
+ # header parameters
767
+ header_params = opts[:header_params] || {}
768
+ # HTTP header 'Accept' (if needed)
769
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
770
+
771
+ # form parameters
772
+ form_params = opts[:form_params] || {}
773
+
774
+ # http body (model)
775
+ post_body = opts[:debug_body]
776
+
777
+ # return_type
778
+ return_type = opts[:debug_return_type] || 'GetCommentVoteUserNames200Response'
779
+
780
+ # auth_names
781
+ auth_names = opts[:debug_auth_names] || []
782
+
783
+ new_options = opts.merge(
784
+ :operation => :"PublicApi.get_comment_vote_user_names",
785
+ :header_params => header_params,
786
+ :query_params => query_params,
787
+ :form_params => form_params,
788
+ :body => post_body,
789
+ :auth_names => auth_names,
790
+ :return_type => return_type
791
+ )
792
+
793
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
794
+ if @api_client.config.debugging
795
+ @api_client.config.logger.debug "API called: PublicApi#get_comment_vote_user_names\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
796
+ end
797
+ return data, status_code, headers
798
+ end
799
+
800
+ # req tenantId urlId
801
+ # @param tenant_id [String]
802
+ # @param url_id [String]
803
+ # @param [Hash] opts the optional parameters
804
+ # @option opts [Integer] :page
805
+ # @option opts [SortDirections] :direction
806
+ # @option opts [String] :sso
807
+ # @option opts [Integer] :skip
808
+ # @option opts [Integer] :skip_children
809
+ # @option opts [Integer] :limit
810
+ # @option opts [Integer] :limit_children
811
+ # @option opts [Boolean] :count_children
812
+ # @option opts [String] :fetch_page_for_comment_id
813
+ # @option opts [Boolean] :include_config
814
+ # @option opts [Boolean] :count_all
815
+ # @option opts [Boolean] :includei10n
816
+ # @option opts [String] :locale
817
+ # @option opts [String] :modules
818
+ # @option opts [Boolean] :is_crawler
819
+ # @option opts [Boolean] :include_notification_count
820
+ # @option opts [Boolean] :as_tree
821
+ # @option opts [Integer] :max_tree_depth
822
+ # @option opts [Boolean] :use_full_translation_ids
823
+ # @option opts [String] :parent_id
824
+ # @option opts [String] :search_text
825
+ # @option opts [Array<String>] :hash_tags
826
+ # @option opts [String] :user_id
827
+ # @option opts [String] :custom_config_str
828
+ # @option opts [String] :after_comment_id
829
+ # @option opts [String] :before_comment_id
830
+ # @return [GetCommentsPublic200Response]
831
+ def get_comments_public(tenant_id, url_id, opts = {})
832
+ data, _status_code, _headers = get_comments_public_with_http_info(tenant_id, url_id, opts)
833
+ data
834
+ end
835
+
836
+ # req tenantId urlId
837
+ # @param tenant_id [String]
838
+ # @param url_id [String]
839
+ # @param [Hash] opts the optional parameters
840
+ # @option opts [Integer] :page
841
+ # @option opts [SortDirections] :direction
842
+ # @option opts [String] :sso
843
+ # @option opts [Integer] :skip
844
+ # @option opts [Integer] :skip_children
845
+ # @option opts [Integer] :limit
846
+ # @option opts [Integer] :limit_children
847
+ # @option opts [Boolean] :count_children
848
+ # @option opts [String] :fetch_page_for_comment_id
849
+ # @option opts [Boolean] :include_config
850
+ # @option opts [Boolean] :count_all
851
+ # @option opts [Boolean] :includei10n
852
+ # @option opts [String] :locale
853
+ # @option opts [String] :modules
854
+ # @option opts [Boolean] :is_crawler
855
+ # @option opts [Boolean] :include_notification_count
856
+ # @option opts [Boolean] :as_tree
857
+ # @option opts [Integer] :max_tree_depth
858
+ # @option opts [Boolean] :use_full_translation_ids
859
+ # @option opts [String] :parent_id
860
+ # @option opts [String] :search_text
861
+ # @option opts [Array<String>] :hash_tags
862
+ # @option opts [String] :user_id
863
+ # @option opts [String] :custom_config_str
864
+ # @option opts [String] :after_comment_id
865
+ # @option opts [String] :before_comment_id
866
+ # @return [Array<(GetCommentsPublic200Response, Integer, Hash)>] GetCommentsPublic200Response data, response status code and response headers
867
+ def get_comments_public_with_http_info(tenant_id, url_id, opts = {})
868
+ if @api_client.config.debugging
869
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_public ...'
870
+ end
871
+ # verify the required parameter 'tenant_id' is set
872
+ if @api_client.config.client_side_validation && tenant_id.nil?
873
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comments_public"
874
+ end
875
+ # verify the required parameter 'url_id' is set
876
+ if @api_client.config.client_side_validation && url_id.nil?
877
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_comments_public"
878
+ end
879
+ # resource path
880
+ local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
881
+
882
+ # query parameters
883
+ query_params = opts[:query_params] || {}
884
+ query_params[:'urlId'] = url_id
885
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
886
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
887
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
888
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
889
+ query_params[:'skipChildren'] = opts[:'skip_children'] if !opts[:'skip_children'].nil?
890
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
891
+ query_params[:'limitChildren'] = opts[:'limit_children'] if !opts[:'limit_children'].nil?
892
+ query_params[:'countChildren'] = opts[:'count_children'] if !opts[:'count_children'].nil?
893
+ query_params[:'fetchPageForCommentId'] = opts[:'fetch_page_for_comment_id'] if !opts[:'fetch_page_for_comment_id'].nil?
894
+ query_params[:'includeConfig'] = opts[:'include_config'] if !opts[:'include_config'].nil?
895
+ query_params[:'countAll'] = opts[:'count_all'] if !opts[:'count_all'].nil?
896
+ query_params[:'includei10n'] = opts[:'includei10n'] if !opts[:'includei10n'].nil?
897
+ query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
898
+ query_params[:'modules'] = opts[:'modules'] if !opts[:'modules'].nil?
899
+ query_params[:'isCrawler'] = opts[:'is_crawler'] if !opts[:'is_crawler'].nil?
900
+ query_params[:'includeNotificationCount'] = opts[:'include_notification_count'] if !opts[:'include_notification_count'].nil?
901
+ query_params[:'asTree'] = opts[:'as_tree'] if !opts[:'as_tree'].nil?
902
+ query_params[:'maxTreeDepth'] = opts[:'max_tree_depth'] if !opts[:'max_tree_depth'].nil?
903
+ query_params[:'useFullTranslationIds'] = opts[:'use_full_translation_ids'] if !opts[:'use_full_translation_ids'].nil?
904
+ query_params[:'parentId'] = opts[:'parent_id'] if !opts[:'parent_id'].nil?
905
+ query_params[:'searchText'] = opts[:'search_text'] if !opts[:'search_text'].nil?
906
+ query_params[:'hashTags'] = @api_client.build_collection_param(opts[:'hash_tags'], :multi) if !opts[:'hash_tags'].nil?
907
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
908
+ query_params[:'customConfigStr'] = opts[:'custom_config_str'] if !opts[:'custom_config_str'].nil?
909
+ query_params[:'afterCommentId'] = opts[:'after_comment_id'] if !opts[:'after_comment_id'].nil?
910
+ query_params[:'beforeCommentId'] = opts[:'before_comment_id'] if !opts[:'before_comment_id'].nil?
911
+
912
+ # header parameters
913
+ header_params = opts[:header_params] || {}
914
+ # HTTP header 'Accept' (if needed)
915
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
916
+
917
+ # form parameters
918
+ form_params = opts[:form_params] || {}
919
+
920
+ # http body (model)
921
+ post_body = opts[:debug_body]
922
+
923
+ # return_type
924
+ return_type = opts[:debug_return_type] || 'GetCommentsPublic200Response'
925
+
926
+ # auth_names
927
+ auth_names = opts[:debug_auth_names] || []
928
+
929
+ new_options = opts.merge(
930
+ :operation => :"PublicApi.get_comments_public",
931
+ :header_params => header_params,
932
+ :query_params => query_params,
933
+ :form_params => form_params,
934
+ :body => post_body,
935
+ :auth_names => auth_names,
936
+ :return_type => return_type
937
+ )
938
+
939
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: PublicApi#get_comments_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+
946
+ # req tenantId urlId userIdWS
947
+ # @param tenant_id [String]
948
+ # @param url_id [String]
949
+ # @param user_id_ws [String]
950
+ # @param start_time [Integer]
951
+ # @param end_time [Integer]
952
+ # @param [Hash] opts the optional parameters
953
+ # @return [GetEventLog200Response]
954
+ def get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time, opts = {})
955
+ data, _status_code, _headers = get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time, opts)
956
+ data
957
+ end
958
+
959
+ # req tenantId urlId userIdWS
960
+ # @param tenant_id [String]
961
+ # @param url_id [String]
962
+ # @param user_id_ws [String]
963
+ # @param start_time [Integer]
964
+ # @param end_time [Integer]
965
+ # @param [Hash] opts the optional parameters
966
+ # @return [Array<(GetEventLog200Response, Integer, Hash)>] GetEventLog200Response data, response status code and response headers
967
+ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time, opts = {})
968
+ if @api_client.config.debugging
969
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_event_log ...'
970
+ end
971
+ # verify the required parameter 'tenant_id' is set
972
+ if @api_client.config.client_side_validation && tenant_id.nil?
973
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_event_log"
974
+ end
975
+ # verify the required parameter 'url_id' is set
976
+ if @api_client.config.client_side_validation && url_id.nil?
977
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_event_log"
978
+ end
979
+ # verify the required parameter 'user_id_ws' is set
980
+ if @api_client.config.client_side_validation && user_id_ws.nil?
981
+ fail ArgumentError, "Missing the required parameter 'user_id_ws' when calling PublicApi.get_event_log"
982
+ end
983
+ # verify the required parameter 'start_time' is set
984
+ if @api_client.config.client_side_validation && start_time.nil?
985
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_event_log"
986
+ end
987
+ # verify the required parameter 'end_time' is set
988
+ if @api_client.config.client_side_validation && end_time.nil?
989
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling PublicApi.get_event_log"
990
+ end
991
+ # resource path
992
+ local_var_path = '/event-log/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
993
+
994
+ # query parameters
995
+ query_params = opts[:query_params] || {}
996
+ query_params[:'urlId'] = url_id
997
+ query_params[:'userIdWS'] = user_id_ws
998
+ query_params[:'startTime'] = start_time
999
+ query_params[:'endTime'] = end_time
1000
+
1001
+ # header parameters
1002
+ header_params = opts[:header_params] || {}
1003
+ # HTTP header 'Accept' (if needed)
1004
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1005
+
1006
+ # form parameters
1007
+ form_params = opts[:form_params] || {}
1008
+
1009
+ # http body (model)
1010
+ post_body = opts[:debug_body]
1011
+
1012
+ # return_type
1013
+ return_type = opts[:debug_return_type] || 'GetEventLog200Response'
1014
+
1015
+ # auth_names
1016
+ auth_names = opts[:debug_auth_names] || []
1017
+
1018
+ new_options = opts.merge(
1019
+ :operation => :"PublicApi.get_event_log",
1020
+ :header_params => header_params,
1021
+ :query_params => query_params,
1022
+ :form_params => form_params,
1023
+ :body => post_body,
1024
+ :auth_names => auth_names,
1025
+ :return_type => return_type
1026
+ )
1027
+
1028
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1029
+ if @api_client.config.debugging
1030
+ @api_client.config.logger.debug "API called: PublicApi#get_event_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1031
+ end
1032
+ return data, status_code, headers
1033
+ end
1034
+
1035
+ # req tenantId afterId
1036
+ # @param tenant_id [String]
1037
+ # @param [Hash] opts the optional parameters
1038
+ # @option opts [String] :after_id
1039
+ # @option opts [Integer] :limit
1040
+ # @option opts [Array<String>] :tags
1041
+ # @option opts [String] :sso
1042
+ # @option opts [Boolean] :is_crawler
1043
+ # @option opts [Boolean] :include_user_info
1044
+ # @return [GetFeedPostsPublic200Response]
1045
+ def get_feed_posts_public(tenant_id, opts = {})
1046
+ data, _status_code, _headers = get_feed_posts_public_with_http_info(tenant_id, opts)
1047
+ data
1048
+ end
1049
+
1050
+ # req tenantId afterId
1051
+ # @param tenant_id [String]
1052
+ # @param [Hash] opts the optional parameters
1053
+ # @option opts [String] :after_id
1054
+ # @option opts [Integer] :limit
1055
+ # @option opts [Array<String>] :tags
1056
+ # @option opts [String] :sso
1057
+ # @option opts [Boolean] :is_crawler
1058
+ # @option opts [Boolean] :include_user_info
1059
+ # @return [Array<(GetFeedPostsPublic200Response, Integer, Hash)>] GetFeedPostsPublic200Response data, response status code and response headers
1060
+ def get_feed_posts_public_with_http_info(tenant_id, opts = {})
1061
+ if @api_client.config.debugging
1062
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_public ...'
1063
+ end
1064
+ # verify the required parameter 'tenant_id' is set
1065
+ if @api_client.config.client_side_validation && tenant_id.nil?
1066
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_public"
1067
+ end
1068
+ # resource path
1069
+ local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
1070
+
1071
+ # query parameters
1072
+ query_params = opts[:query_params] || {}
1073
+ query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
1074
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1075
+ query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
1076
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1077
+ query_params[:'isCrawler'] = opts[:'is_crawler'] if !opts[:'is_crawler'].nil?
1078
+ query_params[:'includeUserInfo'] = opts[:'include_user_info'] if !opts[:'include_user_info'].nil?
1079
+
1080
+ # header parameters
1081
+ header_params = opts[:header_params] || {}
1082
+ # HTTP header 'Accept' (if needed)
1083
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1084
+
1085
+ # form parameters
1086
+ form_params = opts[:form_params] || {}
1087
+
1088
+ # http body (model)
1089
+ post_body = opts[:debug_body]
1090
+
1091
+ # return_type
1092
+ return_type = opts[:debug_return_type] || 'GetFeedPostsPublic200Response'
1093
+
1094
+ # auth_names
1095
+ auth_names = opts[:debug_auth_names] || []
1096
+
1097
+ new_options = opts.merge(
1098
+ :operation => :"PublicApi.get_feed_posts_public",
1099
+ :header_params => header_params,
1100
+ :query_params => query_params,
1101
+ :form_params => form_params,
1102
+ :body => post_body,
1103
+ :auth_names => auth_names,
1104
+ :return_type => return_type
1105
+ )
1106
+
1107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1108
+ if @api_client.config.debugging
1109
+ @api_client.config.logger.debug "API called: PublicApi#get_feed_posts_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1110
+ end
1111
+ return data, status_code, headers
1112
+ end
1113
+
1114
+ # @param tenant_id [String]
1115
+ # @param post_ids [Array<String>]
1116
+ # @param [Hash] opts the optional parameters
1117
+ # @option opts [String] :sso
1118
+ # @return [GetFeedPostsStats200Response]
1119
+ def get_feed_posts_stats(tenant_id, post_ids, opts = {})
1120
+ data, _status_code, _headers = get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts)
1121
+ data
1122
+ end
1123
+
1124
+ # @param tenant_id [String]
1125
+ # @param post_ids [Array<String>]
1126
+ # @param [Hash] opts the optional parameters
1127
+ # @option opts [String] :sso
1128
+ # @return [Array<(GetFeedPostsStats200Response, Integer, Hash)>] GetFeedPostsStats200Response data, response status code and response headers
1129
+ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {})
1130
+ if @api_client.config.debugging
1131
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_stats ...'
1132
+ end
1133
+ # verify the required parameter 'tenant_id' is set
1134
+ if @api_client.config.client_side_validation && tenant_id.nil?
1135
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_stats"
1136
+ end
1137
+ # verify the required parameter 'post_ids' is set
1138
+ if @api_client.config.client_side_validation && post_ids.nil?
1139
+ fail ArgumentError, "Missing the required parameter 'post_ids' when calling PublicApi.get_feed_posts_stats"
1140
+ end
1141
+ # resource path
1142
+ local_var_path = '/feed-posts/{tenantId}/stats'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
1143
+
1144
+ # query parameters
1145
+ query_params = opts[:query_params] || {}
1146
+ query_params[:'postIds'] = @api_client.build_collection_param(post_ids, :multi)
1147
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1148
+
1149
+ # header parameters
1150
+ header_params = opts[:header_params] || {}
1151
+ # HTTP header 'Accept' (if needed)
1152
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1153
+
1154
+ # form parameters
1155
+ form_params = opts[:form_params] || {}
1156
+
1157
+ # http body (model)
1158
+ post_body = opts[:debug_body]
1159
+
1160
+ # return_type
1161
+ return_type = opts[:debug_return_type] || 'GetFeedPostsStats200Response'
1162
+
1163
+ # auth_names
1164
+ auth_names = opts[:debug_auth_names] || []
1165
+
1166
+ new_options = opts.merge(
1167
+ :operation => :"PublicApi.get_feed_posts_stats",
1168
+ :header_params => header_params,
1169
+ :query_params => query_params,
1170
+ :form_params => form_params,
1171
+ :body => post_body,
1172
+ :auth_names => auth_names,
1173
+ :return_type => return_type
1174
+ )
1175
+
1176
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1177
+ if @api_client.config.debugging
1178
+ @api_client.config.logger.debug "API called: PublicApi#get_feed_posts_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1179
+ end
1180
+ return data, status_code, headers
1181
+ end
1182
+
1183
+ # req tenantId urlId userIdWS
1184
+ # @param tenant_id [String]
1185
+ # @param url_id [String]
1186
+ # @param user_id_ws [String]
1187
+ # @param start_time [Integer]
1188
+ # @param end_time [Integer]
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @return [GetEventLog200Response]
1191
+ def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time, opts = {})
1192
+ data, _status_code, _headers = get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time, opts)
1193
+ data
1194
+ end
1195
+
1196
+ # req tenantId urlId userIdWS
1197
+ # @param tenant_id [String]
1198
+ # @param url_id [String]
1199
+ # @param user_id_ws [String]
1200
+ # @param start_time [Integer]
1201
+ # @param end_time [Integer]
1202
+ # @param [Hash] opts the optional parameters
1203
+ # @return [Array<(GetEventLog200Response, Integer, Hash)>] GetEventLog200Response data, response status code and response headers
1204
+ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, end_time, opts = {})
1205
+ if @api_client.config.debugging
1206
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_global_event_log ...'
1207
+ end
1208
+ # verify the required parameter 'tenant_id' is set
1209
+ if @api_client.config.client_side_validation && tenant_id.nil?
1210
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_global_event_log"
1211
+ end
1212
+ # verify the required parameter 'url_id' is set
1213
+ if @api_client.config.client_side_validation && url_id.nil?
1214
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_global_event_log"
1215
+ end
1216
+ # verify the required parameter 'user_id_ws' is set
1217
+ if @api_client.config.client_side_validation && user_id_ws.nil?
1218
+ fail ArgumentError, "Missing the required parameter 'user_id_ws' when calling PublicApi.get_global_event_log"
1219
+ end
1220
+ # verify the required parameter 'start_time' is set
1221
+ if @api_client.config.client_side_validation && start_time.nil?
1222
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_global_event_log"
1223
+ end
1224
+ # verify the required parameter 'end_time' is set
1225
+ if @api_client.config.client_side_validation && end_time.nil?
1226
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling PublicApi.get_global_event_log"
1227
+ end
1228
+ # resource path
1229
+ local_var_path = '/event-log/global/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
1230
+
1231
+ # query parameters
1232
+ query_params = opts[:query_params] || {}
1233
+ query_params[:'urlId'] = url_id
1234
+ query_params[:'userIdWS'] = user_id_ws
1235
+ query_params[:'startTime'] = start_time
1236
+ query_params[:'endTime'] = end_time
1237
+
1238
+ # header parameters
1239
+ header_params = opts[:header_params] || {}
1240
+ # HTTP header 'Accept' (if needed)
1241
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1242
+
1243
+ # form parameters
1244
+ form_params = opts[:form_params] || {}
1245
+
1246
+ # http body (model)
1247
+ post_body = opts[:debug_body]
1248
+
1249
+ # return_type
1250
+ return_type = opts[:debug_return_type] || 'GetEventLog200Response'
1251
+
1252
+ # auth_names
1253
+ auth_names = opts[:debug_auth_names] || []
1254
+
1255
+ new_options = opts.merge(
1256
+ :operation => :"PublicApi.get_global_event_log",
1257
+ :header_params => header_params,
1258
+ :query_params => query_params,
1259
+ :form_params => form_params,
1260
+ :body => post_body,
1261
+ :auth_names => auth_names,
1262
+ :return_type => return_type
1263
+ )
1264
+
1265
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1266
+ if @api_client.config.debugging
1267
+ @api_client.config.logger.debug "API called: PublicApi#get_global_event_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1268
+ end
1269
+ return data, status_code, headers
1270
+ end
1271
+
1272
+ # @param tenant_id [String]
1273
+ # @param [Hash] opts the optional parameters
1274
+ # @option opts [String] :sso
1275
+ # @return [GetUserNotificationCount200Response]
1276
+ def get_user_notification_count(tenant_id, opts = {})
1277
+ data, _status_code, _headers = get_user_notification_count_with_http_info(tenant_id, opts)
1278
+ data
1279
+ end
1280
+
1281
+ # @param tenant_id [String]
1282
+ # @param [Hash] opts the optional parameters
1283
+ # @option opts [String] :sso
1284
+ # @return [Array<(GetUserNotificationCount200Response, Integer, Hash)>] GetUserNotificationCount200Response data, response status code and response headers
1285
+ def get_user_notification_count_with_http_info(tenant_id, opts = {})
1286
+ if @api_client.config.debugging
1287
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notification_count ...'
1288
+ end
1289
+ # verify the required parameter 'tenant_id' is set
1290
+ if @api_client.config.client_side_validation && tenant_id.nil?
1291
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notification_count"
1292
+ end
1293
+ # resource path
1294
+ local_var_path = '/user-notifications/get-count'
1295
+
1296
+ # query parameters
1297
+ query_params = opts[:query_params] || {}
1298
+ query_params[:'tenantId'] = tenant_id
1299
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1300
+
1301
+ # header parameters
1302
+ header_params = opts[:header_params] || {}
1303
+ # HTTP header 'Accept' (if needed)
1304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1305
+
1306
+ # form parameters
1307
+ form_params = opts[:form_params] || {}
1308
+
1309
+ # http body (model)
1310
+ post_body = opts[:debug_body]
1311
+
1312
+ # return_type
1313
+ return_type = opts[:debug_return_type] || 'GetUserNotificationCount200Response'
1314
+
1315
+ # auth_names
1316
+ auth_names = opts[:debug_auth_names] || []
1317
+
1318
+ new_options = opts.merge(
1319
+ :operation => :"PublicApi.get_user_notification_count",
1320
+ :header_params => header_params,
1321
+ :query_params => query_params,
1322
+ :form_params => form_params,
1323
+ :body => post_body,
1324
+ :auth_names => auth_names,
1325
+ :return_type => return_type
1326
+ )
1327
+
1328
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1329
+ if @api_client.config.debugging
1330
+ @api_client.config.logger.debug "API called: PublicApi#get_user_notification_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1331
+ end
1332
+ return data, status_code, headers
1333
+ end
1334
+
1335
+ # @param tenant_id [String]
1336
+ # @param [Hash] opts the optional parameters
1337
+ # @option opts [Integer] :page_size
1338
+ # @option opts [String] :after_id
1339
+ # @option opts [Boolean] :include_context
1340
+ # @option opts [Integer] :after_created_at
1341
+ # @option opts [Boolean] :unread_only
1342
+ # @option opts [Boolean] :dm_only
1343
+ # @option opts [Boolean] :no_dm
1344
+ # @option opts [Boolean] :include_translations
1345
+ # @option opts [String] :sso
1346
+ # @return [GetUserNotifications200Response]
1347
+ def get_user_notifications(tenant_id, opts = {})
1348
+ data, _status_code, _headers = get_user_notifications_with_http_info(tenant_id, opts)
1349
+ data
1350
+ end
1351
+
1352
+ # @param tenant_id [String]
1353
+ # @param [Hash] opts the optional parameters
1354
+ # @option opts [Integer] :page_size
1355
+ # @option opts [String] :after_id
1356
+ # @option opts [Boolean] :include_context
1357
+ # @option opts [Integer] :after_created_at
1358
+ # @option opts [Boolean] :unread_only
1359
+ # @option opts [Boolean] :dm_only
1360
+ # @option opts [Boolean] :no_dm
1361
+ # @option opts [Boolean] :include_translations
1362
+ # @option opts [String] :sso
1363
+ # @return [Array<(GetUserNotifications200Response, Integer, Hash)>] GetUserNotifications200Response data, response status code and response headers
1364
+ def get_user_notifications_with_http_info(tenant_id, opts = {})
1365
+ if @api_client.config.debugging
1366
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notifications ...'
1367
+ end
1368
+ # verify the required parameter 'tenant_id' is set
1369
+ if @api_client.config.client_side_validation && tenant_id.nil?
1370
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notifications"
1371
+ end
1372
+ # resource path
1373
+ local_var_path = '/user-notifications'
1374
+
1375
+ # query parameters
1376
+ query_params = opts[:query_params] || {}
1377
+ query_params[:'tenantId'] = tenant_id
1378
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1379
+ query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
1380
+ query_params[:'includeContext'] = opts[:'include_context'] if !opts[:'include_context'].nil?
1381
+ query_params[:'afterCreatedAt'] = opts[:'after_created_at'] if !opts[:'after_created_at'].nil?
1382
+ query_params[:'unreadOnly'] = opts[:'unread_only'] if !opts[:'unread_only'].nil?
1383
+ query_params[:'dmOnly'] = opts[:'dm_only'] if !opts[:'dm_only'].nil?
1384
+ query_params[:'noDm'] = opts[:'no_dm'] if !opts[:'no_dm'].nil?
1385
+ query_params[:'includeTranslations'] = opts[:'include_translations'] if !opts[:'include_translations'].nil?
1386
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1387
+
1388
+ # header parameters
1389
+ header_params = opts[:header_params] || {}
1390
+ # HTTP header 'Accept' (if needed)
1391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1392
+
1393
+ # form parameters
1394
+ form_params = opts[:form_params] || {}
1395
+
1396
+ # http body (model)
1397
+ post_body = opts[:debug_body]
1398
+
1399
+ # return_type
1400
+ return_type = opts[:debug_return_type] || 'GetUserNotifications200Response'
1401
+
1402
+ # auth_names
1403
+ auth_names = opts[:debug_auth_names] || []
1404
+
1405
+ new_options = opts.merge(
1406
+ :operation => :"PublicApi.get_user_notifications",
1407
+ :header_params => header_params,
1408
+ :query_params => query_params,
1409
+ :form_params => form_params,
1410
+ :body => post_body,
1411
+ :auth_names => auth_names,
1412
+ :return_type => return_type
1413
+ )
1414
+
1415
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1416
+ if @api_client.config.debugging
1417
+ @api_client.config.logger.debug "API called: PublicApi#get_user_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1418
+ end
1419
+ return data, status_code, headers
1420
+ end
1421
+
1422
+ # @param tenant_id [String]
1423
+ # @param url_id_ws [String]
1424
+ # @param user_ids [String]
1425
+ # @param [Hash] opts the optional parameters
1426
+ # @return [GetUserPresenceStatuses200Response]
1427
+ def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {})
1428
+ data, _status_code, _headers = get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts)
1429
+ data
1430
+ end
1431
+
1432
+ # @param tenant_id [String]
1433
+ # @param url_id_ws [String]
1434
+ # @param user_ids [String]
1435
+ # @param [Hash] opts the optional parameters
1436
+ # @return [Array<(GetUserPresenceStatuses200Response, Integer, Hash)>] GetUserPresenceStatuses200Response data, response status code and response headers
1437
+ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts = {})
1438
+ if @api_client.config.debugging
1439
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_user_presence_statuses ...'
1440
+ end
1441
+ # verify the required parameter 'tenant_id' is set
1442
+ if @api_client.config.client_side_validation && tenant_id.nil?
1443
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_presence_statuses"
1444
+ end
1445
+ # verify the required parameter 'url_id_ws' is set
1446
+ if @api_client.config.client_side_validation && url_id_ws.nil?
1447
+ fail ArgumentError, "Missing the required parameter 'url_id_ws' when calling PublicApi.get_user_presence_statuses"
1448
+ end
1449
+ # verify the required parameter 'user_ids' is set
1450
+ if @api_client.config.client_side_validation && user_ids.nil?
1451
+ fail ArgumentError, "Missing the required parameter 'user_ids' when calling PublicApi.get_user_presence_statuses"
1452
+ end
1453
+ # resource path
1454
+ local_var_path = '/user-presence-status'
1455
+
1456
+ # query parameters
1457
+ query_params = opts[:query_params] || {}
1458
+ query_params[:'tenantId'] = tenant_id
1459
+ query_params[:'urlIdWS'] = url_id_ws
1460
+ query_params[:'userIds'] = user_ids
1461
+
1462
+ # header parameters
1463
+ header_params = opts[:header_params] || {}
1464
+ # HTTP header 'Accept' (if needed)
1465
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1466
+
1467
+ # form parameters
1468
+ form_params = opts[:form_params] || {}
1469
+
1470
+ # http body (model)
1471
+ post_body = opts[:debug_body]
1472
+
1473
+ # return_type
1474
+ return_type = opts[:debug_return_type] || 'GetUserPresenceStatuses200Response'
1475
+
1476
+ # auth_names
1477
+ auth_names = opts[:debug_auth_names] || []
1478
+
1479
+ new_options = opts.merge(
1480
+ :operation => :"PublicApi.get_user_presence_statuses",
1481
+ :header_params => header_params,
1482
+ :query_params => query_params,
1483
+ :form_params => form_params,
1484
+ :body => post_body,
1485
+ :auth_names => auth_names,
1486
+ :return_type => return_type
1487
+ )
1488
+
1489
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1490
+ if @api_client.config.debugging
1491
+ @api_client.config.logger.debug "API called: PublicApi#get_user_presence_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1492
+ end
1493
+ return data, status_code, headers
1494
+ end
1495
+
1496
+ # @param tenant_id [String]
1497
+ # @param [Hash] opts the optional parameters
1498
+ # @option opts [Array<String>] :post_ids
1499
+ # @option opts [String] :sso
1500
+ # @return [GetUserReactsPublic200Response]
1501
+ def get_user_reacts_public(tenant_id, opts = {})
1502
+ data, _status_code, _headers = get_user_reacts_public_with_http_info(tenant_id, opts)
1503
+ data
1504
+ end
1505
+
1506
+ # @param tenant_id [String]
1507
+ # @param [Hash] opts the optional parameters
1508
+ # @option opts [Array<String>] :post_ids
1509
+ # @option opts [String] :sso
1510
+ # @return [Array<(GetUserReactsPublic200Response, Integer, Hash)>] GetUserReactsPublic200Response data, response status code and response headers
1511
+ def get_user_reacts_public_with_http_info(tenant_id, opts = {})
1512
+ if @api_client.config.debugging
1513
+ @api_client.config.logger.debug 'Calling API: PublicApi.get_user_reacts_public ...'
1514
+ end
1515
+ # verify the required parameter 'tenant_id' is set
1516
+ if @api_client.config.client_side_validation && tenant_id.nil?
1517
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_reacts_public"
1518
+ end
1519
+ # resource path
1520
+ local_var_path = '/feed-posts/{tenantId}/user-reacts'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
1521
+
1522
+ # query parameters
1523
+ query_params = opts[:query_params] || {}
1524
+ query_params[:'postIds'] = @api_client.build_collection_param(opts[:'post_ids'], :multi) if !opts[:'post_ids'].nil?
1525
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1526
+
1527
+ # header parameters
1528
+ header_params = opts[:header_params] || {}
1529
+ # HTTP header 'Accept' (if needed)
1530
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1531
+
1532
+ # form parameters
1533
+ form_params = opts[:form_params] || {}
1534
+
1535
+ # http body (model)
1536
+ post_body = opts[:debug_body]
1537
+
1538
+ # return_type
1539
+ return_type = opts[:debug_return_type] || 'GetUserReactsPublic200Response'
1540
+
1541
+ # auth_names
1542
+ auth_names = opts[:debug_auth_names] || []
1543
+
1544
+ new_options = opts.merge(
1545
+ :operation => :"PublicApi.get_user_reacts_public",
1546
+ :header_params => header_params,
1547
+ :query_params => query_params,
1548
+ :form_params => form_params,
1549
+ :body => post_body,
1550
+ :auth_names => auth_names,
1551
+ :return_type => return_type
1552
+ )
1553
+
1554
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1555
+ if @api_client.config.debugging
1556
+ @api_client.config.logger.debug "API called: PublicApi#get_user_reacts_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1557
+ end
1558
+ return data, status_code, headers
1559
+ end
1560
+
1561
+ # @param tenant_id [String]
1562
+ # @param comment_id [String]
1563
+ # @param broadcast_id [String]
1564
+ # @param [Hash] opts the optional parameters
1565
+ # @option opts [String] :sso
1566
+ # @return [LockComment200Response]
1567
+ def lock_comment(tenant_id, comment_id, broadcast_id, opts = {})
1568
+ data, _status_code, _headers = lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
1569
+ data
1570
+ end
1571
+
1572
+ # @param tenant_id [String]
1573
+ # @param comment_id [String]
1574
+ # @param broadcast_id [String]
1575
+ # @param [Hash] opts the optional parameters
1576
+ # @option opts [String] :sso
1577
+ # @return [Array<(LockComment200Response, Integer, Hash)>] LockComment200Response data, response status code and response headers
1578
+ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {})
1579
+ if @api_client.config.debugging
1580
+ @api_client.config.logger.debug 'Calling API: PublicApi.lock_comment ...'
1581
+ end
1582
+ # verify the required parameter 'tenant_id' is set
1583
+ if @api_client.config.client_side_validation && tenant_id.nil?
1584
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.lock_comment"
1585
+ end
1586
+ # verify the required parameter 'comment_id' is set
1587
+ if @api_client.config.client_side_validation && comment_id.nil?
1588
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.lock_comment"
1589
+ end
1590
+ # verify the required parameter 'broadcast_id' is set
1591
+ if @api_client.config.client_side_validation && broadcast_id.nil?
1592
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.lock_comment"
1593
+ end
1594
+ # resource path
1595
+ local_var_path = '/comments/{tenantId}/{commentId}/lock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1596
+
1597
+ # query parameters
1598
+ query_params = opts[:query_params] || {}
1599
+ query_params[:'broadcastId'] = broadcast_id
1600
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1601
+
1602
+ # header parameters
1603
+ header_params = opts[:header_params] || {}
1604
+ # HTTP header 'Accept' (if needed)
1605
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1606
+
1607
+ # form parameters
1608
+ form_params = opts[:form_params] || {}
1609
+
1610
+ # http body (model)
1611
+ post_body = opts[:debug_body]
1612
+
1613
+ # return_type
1614
+ return_type = opts[:debug_return_type] || 'LockComment200Response'
1615
+
1616
+ # auth_names
1617
+ auth_names = opts[:debug_auth_names] || []
1618
+
1619
+ new_options = opts.merge(
1620
+ :operation => :"PublicApi.lock_comment",
1621
+ :header_params => header_params,
1622
+ :query_params => query_params,
1623
+ :form_params => form_params,
1624
+ :body => post_body,
1625
+ :auth_names => auth_names,
1626
+ :return_type => return_type
1627
+ )
1628
+
1629
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1630
+ if @api_client.config.debugging
1631
+ @api_client.config.logger.debug "API called: PublicApi#lock_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1632
+ end
1633
+ return data, status_code, headers
1634
+ end
1635
+
1636
+ # @param tenant_id [String]
1637
+ # @param comment_id [String]
1638
+ # @param broadcast_id [String]
1639
+ # @param [Hash] opts the optional parameters
1640
+ # @option opts [String] :sso
1641
+ # @return [PinComment200Response]
1642
+ def pin_comment(tenant_id, comment_id, broadcast_id, opts = {})
1643
+ data, _status_code, _headers = pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
1644
+ data
1645
+ end
1646
+
1647
+ # @param tenant_id [String]
1648
+ # @param comment_id [String]
1649
+ # @param broadcast_id [String]
1650
+ # @param [Hash] opts the optional parameters
1651
+ # @option opts [String] :sso
1652
+ # @return [Array<(PinComment200Response, Integer, Hash)>] PinComment200Response data, response status code and response headers
1653
+ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {})
1654
+ if @api_client.config.debugging
1655
+ @api_client.config.logger.debug 'Calling API: PublicApi.pin_comment ...'
1656
+ end
1657
+ # verify the required parameter 'tenant_id' is set
1658
+ if @api_client.config.client_side_validation && tenant_id.nil?
1659
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.pin_comment"
1660
+ end
1661
+ # verify the required parameter 'comment_id' is set
1662
+ if @api_client.config.client_side_validation && comment_id.nil?
1663
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.pin_comment"
1664
+ end
1665
+ # verify the required parameter 'broadcast_id' is set
1666
+ if @api_client.config.client_side_validation && broadcast_id.nil?
1667
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.pin_comment"
1668
+ end
1669
+ # resource path
1670
+ local_var_path = '/comments/{tenantId}/{commentId}/pin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
1671
+
1672
+ # query parameters
1673
+ query_params = opts[:query_params] || {}
1674
+ query_params[:'broadcastId'] = broadcast_id
1675
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1676
+
1677
+ # header parameters
1678
+ header_params = opts[:header_params] || {}
1679
+ # HTTP header 'Accept' (if needed)
1680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1681
+
1682
+ # form parameters
1683
+ form_params = opts[:form_params] || {}
1684
+
1685
+ # http body (model)
1686
+ post_body = opts[:debug_body]
1687
+
1688
+ # return_type
1689
+ return_type = opts[:debug_return_type] || 'PinComment200Response'
1690
+
1691
+ # auth_names
1692
+ auth_names = opts[:debug_auth_names] || []
1693
+
1694
+ new_options = opts.merge(
1695
+ :operation => :"PublicApi.pin_comment",
1696
+ :header_params => header_params,
1697
+ :query_params => query_params,
1698
+ :form_params => form_params,
1699
+ :body => post_body,
1700
+ :auth_names => auth_names,
1701
+ :return_type => return_type
1702
+ )
1703
+
1704
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1705
+ if @api_client.config.debugging
1706
+ @api_client.config.logger.debug "API called: PublicApi#pin_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1707
+ end
1708
+ return data, status_code, headers
1709
+ end
1710
+
1711
+ # @param tenant_id [String]
1712
+ # @param post_id [String]
1713
+ # @param react_body_params [ReactBodyParams]
1714
+ # @param [Hash] opts the optional parameters
1715
+ # @option opts [Boolean] :is_undo
1716
+ # @option opts [String] :broadcast_id
1717
+ # @option opts [String] :sso
1718
+ # @return [ReactFeedPostPublic200Response]
1719
+ def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {})
1720
+ data, _status_code, _headers = react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts)
1721
+ data
1722
+ end
1723
+
1724
+ # @param tenant_id [String]
1725
+ # @param post_id [String]
1726
+ # @param react_body_params [ReactBodyParams]
1727
+ # @param [Hash] opts the optional parameters
1728
+ # @option opts [Boolean] :is_undo
1729
+ # @option opts [String] :broadcast_id
1730
+ # @option opts [String] :sso
1731
+ # @return [Array<(ReactFeedPostPublic200Response, Integer, Hash)>] ReactFeedPostPublic200Response data, response status code and response headers
1732
+ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts = {})
1733
+ if @api_client.config.debugging
1734
+ @api_client.config.logger.debug 'Calling API: PublicApi.react_feed_post_public ...'
1735
+ end
1736
+ # verify the required parameter 'tenant_id' is set
1737
+ if @api_client.config.client_side_validation && tenant_id.nil?
1738
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.react_feed_post_public"
1739
+ end
1740
+ # verify the required parameter 'post_id' is set
1741
+ if @api_client.config.client_side_validation && post_id.nil?
1742
+ fail ArgumentError, "Missing the required parameter 'post_id' when calling PublicApi.react_feed_post_public"
1743
+ end
1744
+ # verify the required parameter 'react_body_params' is set
1745
+ if @api_client.config.client_side_validation && react_body_params.nil?
1746
+ fail ArgumentError, "Missing the required parameter 'react_body_params' when calling PublicApi.react_feed_post_public"
1747
+ end
1748
+ # resource path
1749
+ local_var_path = '/feed-posts/{tenantId}/react/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s))
1750
+
1751
+ # query parameters
1752
+ query_params = opts[:query_params] || {}
1753
+ query_params[:'isUndo'] = opts[:'is_undo'] if !opts[:'is_undo'].nil?
1754
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
1755
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1756
+
1757
+ # header parameters
1758
+ header_params = opts[:header_params] || {}
1759
+ # HTTP header 'Accept' (if needed)
1760
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1761
+ # HTTP header 'Content-Type'
1762
+ content_type = @api_client.select_header_content_type(['application/json'])
1763
+ if !content_type.nil?
1764
+ header_params['Content-Type'] = content_type
1765
+ end
1766
+
1767
+ # form parameters
1768
+ form_params = opts[:form_params] || {}
1769
+
1770
+ # http body (model)
1771
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(react_body_params)
1772
+
1773
+ # return_type
1774
+ return_type = opts[:debug_return_type] || 'ReactFeedPostPublic200Response'
1775
+
1776
+ # auth_names
1777
+ auth_names = opts[:debug_auth_names] || []
1778
+
1779
+ new_options = opts.merge(
1780
+ :operation => :"PublicApi.react_feed_post_public",
1781
+ :header_params => header_params,
1782
+ :query_params => query_params,
1783
+ :form_params => form_params,
1784
+ :body => post_body,
1785
+ :auth_names => auth_names,
1786
+ :return_type => return_type
1787
+ )
1788
+
1789
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1790
+ if @api_client.config.debugging
1791
+ @api_client.config.logger.debug "API called: PublicApi#react_feed_post_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1792
+ end
1793
+ return data, status_code, headers
1794
+ end
1795
+
1796
+ # @param tenant_id [String]
1797
+ # @param [Hash] opts the optional parameters
1798
+ # @option opts [String] :sso
1799
+ # @return [ResetUserNotifications200Response]
1800
+ def reset_user_notification_count(tenant_id, opts = {})
1801
+ data, _status_code, _headers = reset_user_notification_count_with_http_info(tenant_id, opts)
1802
+ data
1803
+ end
1804
+
1805
+ # @param tenant_id [String]
1806
+ # @param [Hash] opts the optional parameters
1807
+ # @option opts [String] :sso
1808
+ # @return [Array<(ResetUserNotifications200Response, Integer, Hash)>] ResetUserNotifications200Response data, response status code and response headers
1809
+ def reset_user_notification_count_with_http_info(tenant_id, opts = {})
1810
+ if @api_client.config.debugging
1811
+ @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notification_count ...'
1812
+ end
1813
+ # verify the required parameter 'tenant_id' is set
1814
+ if @api_client.config.client_side_validation && tenant_id.nil?
1815
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notification_count"
1816
+ end
1817
+ # resource path
1818
+ local_var_path = '/user-notifications/reset-count'
1819
+
1820
+ # query parameters
1821
+ query_params = opts[:query_params] || {}
1822
+ query_params[:'tenantId'] = tenant_id
1823
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1824
+
1825
+ # header parameters
1826
+ header_params = opts[:header_params] || {}
1827
+ # HTTP header 'Accept' (if needed)
1828
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1829
+
1830
+ # form parameters
1831
+ form_params = opts[:form_params] || {}
1832
+
1833
+ # http body (model)
1834
+ post_body = opts[:debug_body]
1835
+
1836
+ # return_type
1837
+ return_type = opts[:debug_return_type] || 'ResetUserNotifications200Response'
1838
+
1839
+ # auth_names
1840
+ auth_names = opts[:debug_auth_names] || []
1841
+
1842
+ new_options = opts.merge(
1843
+ :operation => :"PublicApi.reset_user_notification_count",
1844
+ :header_params => header_params,
1845
+ :query_params => query_params,
1846
+ :form_params => form_params,
1847
+ :body => post_body,
1848
+ :auth_names => auth_names,
1849
+ :return_type => return_type
1850
+ )
1851
+
1852
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1853
+ if @api_client.config.debugging
1854
+ @api_client.config.logger.debug "API called: PublicApi#reset_user_notification_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1855
+ end
1856
+ return data, status_code, headers
1857
+ end
1858
+
1859
+ # @param tenant_id [String]
1860
+ # @param [Hash] opts the optional parameters
1861
+ # @option opts [String] :after_id
1862
+ # @option opts [Integer] :after_created_at
1863
+ # @option opts [Boolean] :unread_only
1864
+ # @option opts [Boolean] :dm_only
1865
+ # @option opts [Boolean] :no_dm
1866
+ # @option opts [String] :sso
1867
+ # @return [ResetUserNotifications200Response]
1868
+ def reset_user_notifications(tenant_id, opts = {})
1869
+ data, _status_code, _headers = reset_user_notifications_with_http_info(tenant_id, opts)
1870
+ data
1871
+ end
1872
+
1873
+ # @param tenant_id [String]
1874
+ # @param [Hash] opts the optional parameters
1875
+ # @option opts [String] :after_id
1876
+ # @option opts [Integer] :after_created_at
1877
+ # @option opts [Boolean] :unread_only
1878
+ # @option opts [Boolean] :dm_only
1879
+ # @option opts [Boolean] :no_dm
1880
+ # @option opts [String] :sso
1881
+ # @return [Array<(ResetUserNotifications200Response, Integer, Hash)>] ResetUserNotifications200Response data, response status code and response headers
1882
+ def reset_user_notifications_with_http_info(tenant_id, opts = {})
1883
+ if @api_client.config.debugging
1884
+ @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notifications ...'
1885
+ end
1886
+ # verify the required parameter 'tenant_id' is set
1887
+ if @api_client.config.client_side_validation && tenant_id.nil?
1888
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notifications"
1889
+ end
1890
+ # resource path
1891
+ local_var_path = '/user-notifications/reset'
1892
+
1893
+ # query parameters
1894
+ query_params = opts[:query_params] || {}
1895
+ query_params[:'tenantId'] = tenant_id
1896
+ query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil?
1897
+ query_params[:'afterCreatedAt'] = opts[:'after_created_at'] if !opts[:'after_created_at'].nil?
1898
+ query_params[:'unreadOnly'] = opts[:'unread_only'] if !opts[:'unread_only'].nil?
1899
+ query_params[:'dmOnly'] = opts[:'dm_only'] if !opts[:'dm_only'].nil?
1900
+ query_params[:'noDm'] = opts[:'no_dm'] if !opts[:'no_dm'].nil?
1901
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1902
+
1903
+ # header parameters
1904
+ header_params = opts[:header_params] || {}
1905
+ # HTTP header 'Accept' (if needed)
1906
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1907
+
1908
+ # form parameters
1909
+ form_params = opts[:form_params] || {}
1910
+
1911
+ # http body (model)
1912
+ post_body = opts[:debug_body]
1913
+
1914
+ # return_type
1915
+ return_type = opts[:debug_return_type] || 'ResetUserNotifications200Response'
1916
+
1917
+ # auth_names
1918
+ auth_names = opts[:debug_auth_names] || []
1919
+
1920
+ new_options = opts.merge(
1921
+ :operation => :"PublicApi.reset_user_notifications",
1922
+ :header_params => header_params,
1923
+ :query_params => query_params,
1924
+ :form_params => form_params,
1925
+ :body => post_body,
1926
+ :auth_names => auth_names,
1927
+ :return_type => return_type
1928
+ )
1929
+
1930
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1931
+ if @api_client.config.debugging
1932
+ @api_client.config.logger.debug "API called: PublicApi#reset_user_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1933
+ end
1934
+ return data, status_code, headers
1935
+ end
1936
+
1937
+ # @param tenant_id [String]
1938
+ # @param url_id [String]
1939
+ # @param username_starts_with [String]
1940
+ # @param [Hash] opts the optional parameters
1941
+ # @option opts [Array<String>] :mention_group_ids
1942
+ # @option opts [String] :sso
1943
+ # @return [SearchUsers200Response]
1944
+ def search_users(tenant_id, url_id, username_starts_with, opts = {})
1945
+ data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, username_starts_with, opts)
1946
+ data
1947
+ end
1948
+
1949
+ # @param tenant_id [String]
1950
+ # @param url_id [String]
1951
+ # @param username_starts_with [String]
1952
+ # @param [Hash] opts the optional parameters
1953
+ # @option opts [Array<String>] :mention_group_ids
1954
+ # @option opts [String] :sso
1955
+ # @return [Array<(SearchUsers200Response, Integer, Hash)>] SearchUsers200Response data, response status code and response headers
1956
+ def search_users_with_http_info(tenant_id, url_id, username_starts_with, opts = {})
1957
+ if @api_client.config.debugging
1958
+ @api_client.config.logger.debug 'Calling API: PublicApi.search_users ...'
1959
+ end
1960
+ # verify the required parameter 'tenant_id' is set
1961
+ if @api_client.config.client_side_validation && tenant_id.nil?
1962
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.search_users"
1963
+ end
1964
+ # verify the required parameter 'url_id' is set
1965
+ if @api_client.config.client_side_validation && url_id.nil?
1966
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.search_users"
1967
+ end
1968
+ # verify the required parameter 'username_starts_with' is set
1969
+ if @api_client.config.client_side_validation && username_starts_with.nil?
1970
+ fail ArgumentError, "Missing the required parameter 'username_starts_with' when calling PublicApi.search_users"
1971
+ end
1972
+ # resource path
1973
+ local_var_path = '/user-search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
1974
+
1975
+ # query parameters
1976
+ query_params = opts[:query_params] || {}
1977
+ query_params[:'urlId'] = url_id
1978
+ query_params[:'usernameStartsWith'] = username_starts_with
1979
+ query_params[:'mentionGroupIds'] = @api_client.build_collection_param(opts[:'mention_group_ids'], :multi) if !opts[:'mention_group_ids'].nil?
1980
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
1981
+
1982
+ # header parameters
1983
+ header_params = opts[:header_params] || {}
1984
+ # HTTP header 'Accept' (if needed)
1985
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1986
+
1987
+ # form parameters
1988
+ form_params = opts[:form_params] || {}
1989
+
1990
+ # http body (model)
1991
+ post_body = opts[:debug_body]
1992
+
1993
+ # return_type
1994
+ return_type = opts[:debug_return_type] || 'SearchUsers200Response'
1995
+
1996
+ # auth_names
1997
+ auth_names = opts[:debug_auth_names] || []
1998
+
1999
+ new_options = opts.merge(
2000
+ :operation => :"PublicApi.search_users",
2001
+ :header_params => header_params,
2002
+ :query_params => query_params,
2003
+ :form_params => form_params,
2004
+ :body => post_body,
2005
+ :auth_names => auth_names,
2006
+ :return_type => return_type
2007
+ )
2008
+
2009
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2010
+ if @api_client.config.debugging
2011
+ @api_client.config.logger.debug "API called: PublicApi#search_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2012
+ end
2013
+ return data, status_code, headers
2014
+ end
2015
+
2016
+ # @param tenant_id [String]
2017
+ # @param comment_id [String]
2018
+ # @param broadcast_id [String]
2019
+ # @param comment_text_update_request [CommentTextUpdateRequest]
2020
+ # @param [Hash] opts the optional parameters
2021
+ # @option opts [String] :edit_key
2022
+ # @option opts [String] :sso
2023
+ # @return [SetCommentText200Response]
2024
+ def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {})
2025
+ data, _status_code, _headers = set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts)
2026
+ data
2027
+ end
2028
+
2029
+ # @param tenant_id [String]
2030
+ # @param comment_id [String]
2031
+ # @param broadcast_id [String]
2032
+ # @param comment_text_update_request [CommentTextUpdateRequest]
2033
+ # @param [Hash] opts the optional parameters
2034
+ # @option opts [String] :edit_key
2035
+ # @option opts [String] :sso
2036
+ # @return [Array<(SetCommentText200Response, Integer, Hash)>] SetCommentText200Response data, response status code and response headers
2037
+ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {})
2038
+ if @api_client.config.debugging
2039
+ @api_client.config.logger.debug 'Calling API: PublicApi.set_comment_text ...'
2040
+ end
2041
+ # verify the required parameter 'tenant_id' is set
2042
+ if @api_client.config.client_side_validation && tenant_id.nil?
2043
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.set_comment_text"
2044
+ end
2045
+ # verify the required parameter 'comment_id' is set
2046
+ if @api_client.config.client_side_validation && comment_id.nil?
2047
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.set_comment_text"
2048
+ end
2049
+ # verify the required parameter 'broadcast_id' is set
2050
+ if @api_client.config.client_side_validation && broadcast_id.nil?
2051
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.set_comment_text"
2052
+ end
2053
+ # verify the required parameter 'comment_text_update_request' is set
2054
+ if @api_client.config.client_side_validation && comment_text_update_request.nil?
2055
+ fail ArgumentError, "Missing the required parameter 'comment_text_update_request' when calling PublicApi.set_comment_text"
2056
+ end
2057
+ # resource path
2058
+ local_var_path = '/comments/{tenantId}/{commentId}/update-text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2059
+
2060
+ # query parameters
2061
+ query_params = opts[:query_params] || {}
2062
+ query_params[:'broadcastId'] = broadcast_id
2063
+ query_params[:'editKey'] = opts[:'edit_key'] if !opts[:'edit_key'].nil?
2064
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2065
+
2066
+ # header parameters
2067
+ header_params = opts[:header_params] || {}
2068
+ # HTTP header 'Accept' (if needed)
2069
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2070
+ # HTTP header 'Content-Type'
2071
+ content_type = @api_client.select_header_content_type(['application/json'])
2072
+ if !content_type.nil?
2073
+ header_params['Content-Type'] = content_type
2074
+ end
2075
+
2076
+ # form parameters
2077
+ form_params = opts[:form_params] || {}
2078
+
2079
+ # http body (model)
2080
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_text_update_request)
2081
+
2082
+ # return_type
2083
+ return_type = opts[:debug_return_type] || 'SetCommentText200Response'
2084
+
2085
+ # auth_names
2086
+ auth_names = opts[:debug_auth_names] || []
2087
+
2088
+ new_options = opts.merge(
2089
+ :operation => :"PublicApi.set_comment_text",
2090
+ :header_params => header_params,
2091
+ :query_params => query_params,
2092
+ :form_params => form_params,
2093
+ :body => post_body,
2094
+ :auth_names => auth_names,
2095
+ :return_type => return_type
2096
+ )
2097
+
2098
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2099
+ if @api_client.config.debugging
2100
+ @api_client.config.logger.debug "API called: PublicApi#set_comment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2101
+ end
2102
+ return data, status_code, headers
2103
+ end
2104
+
2105
+ # @param tenant_id [String]
2106
+ # @param comment_id [String]
2107
+ # @param public_block_from_comment_params [PublicBlockFromCommentParams]
2108
+ # @param [Hash] opts the optional parameters
2109
+ # @option opts [String] :sso
2110
+ # @return [UnBlockCommentPublic200Response]
2111
+ def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {})
2112
+ data, _status_code, _headers = un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts)
2113
+ data
2114
+ end
2115
+
2116
+ # @param tenant_id [String]
2117
+ # @param comment_id [String]
2118
+ # @param public_block_from_comment_params [PublicBlockFromCommentParams]
2119
+ # @param [Hash] opts the optional parameters
2120
+ # @option opts [String] :sso
2121
+ # @return [Array<(UnBlockCommentPublic200Response, Integer, Hash)>] UnBlockCommentPublic200Response data, response status code and response headers
2122
+ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {})
2123
+ if @api_client.config.debugging
2124
+ @api_client.config.logger.debug 'Calling API: PublicApi.un_block_comment_public ...'
2125
+ end
2126
+ # verify the required parameter 'tenant_id' is set
2127
+ if @api_client.config.client_side_validation && tenant_id.nil?
2128
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_block_comment_public"
2129
+ end
2130
+ # verify the required parameter 'comment_id' is set
2131
+ if @api_client.config.client_side_validation && comment_id.nil?
2132
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.un_block_comment_public"
2133
+ end
2134
+ # verify the required parameter 'public_block_from_comment_params' is set
2135
+ if @api_client.config.client_side_validation && public_block_from_comment_params.nil?
2136
+ fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.un_block_comment_public"
2137
+ end
2138
+ # resource path
2139
+ local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2140
+
2141
+ # query parameters
2142
+ query_params = opts[:query_params] || {}
2143
+ query_params[:'tenantId'] = tenant_id
2144
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2145
+
2146
+ # header parameters
2147
+ header_params = opts[:header_params] || {}
2148
+ # HTTP header 'Accept' (if needed)
2149
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2150
+ # HTTP header 'Content-Type'
2151
+ content_type = @api_client.select_header_content_type(['application/json'])
2152
+ if !content_type.nil?
2153
+ header_params['Content-Type'] = content_type
2154
+ end
2155
+
2156
+ # form parameters
2157
+ form_params = opts[:form_params] || {}
2158
+
2159
+ # http body (model)
2160
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params)
2161
+
2162
+ # return_type
2163
+ return_type = opts[:debug_return_type] || 'UnBlockCommentPublic200Response'
2164
+
2165
+ # auth_names
2166
+ auth_names = opts[:debug_auth_names] || []
2167
+
2168
+ new_options = opts.merge(
2169
+ :operation => :"PublicApi.un_block_comment_public",
2170
+ :header_params => header_params,
2171
+ :query_params => query_params,
2172
+ :form_params => form_params,
2173
+ :body => post_body,
2174
+ :auth_names => auth_names,
2175
+ :return_type => return_type
2176
+ )
2177
+
2178
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2179
+ if @api_client.config.debugging
2180
+ @api_client.config.logger.debug "API called: PublicApi#un_block_comment_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2181
+ end
2182
+ return data, status_code, headers
2183
+ end
2184
+
2185
+ # @param tenant_id [String]
2186
+ # @param comment_id [String]
2187
+ # @param broadcast_id [String]
2188
+ # @param [Hash] opts the optional parameters
2189
+ # @option opts [String] :sso
2190
+ # @return [LockComment200Response]
2191
+ def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {})
2192
+ data, _status_code, _headers = un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
2193
+ data
2194
+ end
2195
+
2196
+ # @param tenant_id [String]
2197
+ # @param comment_id [String]
2198
+ # @param broadcast_id [String]
2199
+ # @param [Hash] opts the optional parameters
2200
+ # @option opts [String] :sso
2201
+ # @return [Array<(LockComment200Response, Integer, Hash)>] LockComment200Response data, response status code and response headers
2202
+ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {})
2203
+ if @api_client.config.debugging
2204
+ @api_client.config.logger.debug 'Calling API: PublicApi.un_lock_comment ...'
2205
+ end
2206
+ # verify the required parameter 'tenant_id' is set
2207
+ if @api_client.config.client_side_validation && tenant_id.nil?
2208
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_lock_comment"
2209
+ end
2210
+ # verify the required parameter 'comment_id' is set
2211
+ if @api_client.config.client_side_validation && comment_id.nil?
2212
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.un_lock_comment"
2213
+ end
2214
+ # verify the required parameter 'broadcast_id' is set
2215
+ if @api_client.config.client_side_validation && broadcast_id.nil?
2216
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_lock_comment"
2217
+ end
2218
+ # resource path
2219
+ local_var_path = '/comments/{tenantId}/{commentId}/unlock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2220
+
2221
+ # query parameters
2222
+ query_params = opts[:query_params] || {}
2223
+ query_params[:'broadcastId'] = broadcast_id
2224
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2225
+
2226
+ # header parameters
2227
+ header_params = opts[:header_params] || {}
2228
+ # HTTP header 'Accept' (if needed)
2229
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2230
+
2231
+ # form parameters
2232
+ form_params = opts[:form_params] || {}
2233
+
2234
+ # http body (model)
2235
+ post_body = opts[:debug_body]
2236
+
2237
+ # return_type
2238
+ return_type = opts[:debug_return_type] || 'LockComment200Response'
2239
+
2240
+ # auth_names
2241
+ auth_names = opts[:debug_auth_names] || []
2242
+
2243
+ new_options = opts.merge(
2244
+ :operation => :"PublicApi.un_lock_comment",
2245
+ :header_params => header_params,
2246
+ :query_params => query_params,
2247
+ :form_params => form_params,
2248
+ :body => post_body,
2249
+ :auth_names => auth_names,
2250
+ :return_type => return_type
2251
+ )
2252
+
2253
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2254
+ if @api_client.config.debugging
2255
+ @api_client.config.logger.debug "API called: PublicApi#un_lock_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
+ end
2257
+ return data, status_code, headers
2258
+ end
2259
+
2260
+ # @param tenant_id [String]
2261
+ # @param comment_id [String]
2262
+ # @param broadcast_id [String]
2263
+ # @param [Hash] opts the optional parameters
2264
+ # @option opts [String] :sso
2265
+ # @return [PinComment200Response]
2266
+ def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {})
2267
+ data, _status_code, _headers = un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts)
2268
+ data
2269
+ end
2270
+
2271
+ # @param tenant_id [String]
2272
+ # @param comment_id [String]
2273
+ # @param broadcast_id [String]
2274
+ # @param [Hash] opts the optional parameters
2275
+ # @option opts [String] :sso
2276
+ # @return [Array<(PinComment200Response, Integer, Hash)>] PinComment200Response data, response status code and response headers
2277
+ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {})
2278
+ if @api_client.config.debugging
2279
+ @api_client.config.logger.debug 'Calling API: PublicApi.un_pin_comment ...'
2280
+ end
2281
+ # verify the required parameter 'tenant_id' is set
2282
+ if @api_client.config.client_side_validation && tenant_id.nil?
2283
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_pin_comment"
2284
+ end
2285
+ # verify the required parameter 'comment_id' is set
2286
+ if @api_client.config.client_side_validation && comment_id.nil?
2287
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.un_pin_comment"
2288
+ end
2289
+ # verify the required parameter 'broadcast_id' is set
2290
+ if @api_client.config.client_side_validation && broadcast_id.nil?
2291
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_pin_comment"
2292
+ end
2293
+ # resource path
2294
+ local_var_path = '/comments/{tenantId}/{commentId}/unpin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2295
+
2296
+ # query parameters
2297
+ query_params = opts[:query_params] || {}
2298
+ query_params[:'broadcastId'] = broadcast_id
2299
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2300
+
2301
+ # header parameters
2302
+ header_params = opts[:header_params] || {}
2303
+ # HTTP header 'Accept' (if needed)
2304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2305
+
2306
+ # form parameters
2307
+ form_params = opts[:form_params] || {}
2308
+
2309
+ # http body (model)
2310
+ post_body = opts[:debug_body]
2311
+
2312
+ # return_type
2313
+ return_type = opts[:debug_return_type] || 'PinComment200Response'
2314
+
2315
+ # auth_names
2316
+ auth_names = opts[:debug_auth_names] || []
2317
+
2318
+ new_options = opts.merge(
2319
+ :operation => :"PublicApi.un_pin_comment",
2320
+ :header_params => header_params,
2321
+ :query_params => query_params,
2322
+ :form_params => form_params,
2323
+ :body => post_body,
2324
+ :auth_names => auth_names,
2325
+ :return_type => return_type
2326
+ )
2327
+
2328
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2329
+ if @api_client.config.debugging
2330
+ @api_client.config.logger.debug "API called: PublicApi#un_pin_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2331
+ end
2332
+ return data, status_code, headers
2333
+ end
2334
+
2335
+ # @param tenant_id [String]
2336
+ # @param post_id [String]
2337
+ # @param update_feed_post_params [UpdateFeedPostParams]
2338
+ # @param [Hash] opts the optional parameters
2339
+ # @option opts [String] :broadcast_id
2340
+ # @option opts [String] :sso
2341
+ # @return [CreateFeedPostPublic200Response]
2342
+ def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = {})
2343
+ data, _status_code, _headers = update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts)
2344
+ data
2345
+ end
2346
+
2347
+ # @param tenant_id [String]
2348
+ # @param post_id [String]
2349
+ # @param update_feed_post_params [UpdateFeedPostParams]
2350
+ # @param [Hash] opts the optional parameters
2351
+ # @option opts [String] :broadcast_id
2352
+ # @option opts [String] :sso
2353
+ # @return [Array<(CreateFeedPostPublic200Response, Integer, Hash)>] CreateFeedPostPublic200Response data, response status code and response headers
2354
+ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts = {})
2355
+ if @api_client.config.debugging
2356
+ @api_client.config.logger.debug 'Calling API: PublicApi.update_feed_post_public ...'
2357
+ end
2358
+ # verify the required parameter 'tenant_id' is set
2359
+ if @api_client.config.client_side_validation && tenant_id.nil?
2360
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_feed_post_public"
2361
+ end
2362
+ # verify the required parameter 'post_id' is set
2363
+ if @api_client.config.client_side_validation && post_id.nil?
2364
+ fail ArgumentError, "Missing the required parameter 'post_id' when calling PublicApi.update_feed_post_public"
2365
+ end
2366
+ # verify the required parameter 'update_feed_post_params' is set
2367
+ if @api_client.config.client_side_validation && update_feed_post_params.nil?
2368
+ fail ArgumentError, "Missing the required parameter 'update_feed_post_params' when calling PublicApi.update_feed_post_public"
2369
+ end
2370
+ # resource path
2371
+ local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s))
2372
+
2373
+ # query parameters
2374
+ query_params = opts[:query_params] || {}
2375
+ query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
2376
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2377
+
2378
+ # header parameters
2379
+ header_params = opts[:header_params] || {}
2380
+ # HTTP header 'Accept' (if needed)
2381
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2382
+ # HTTP header 'Content-Type'
2383
+ content_type = @api_client.select_header_content_type(['application/json'])
2384
+ if !content_type.nil?
2385
+ header_params['Content-Type'] = content_type
2386
+ end
2387
+
2388
+ # form parameters
2389
+ form_params = opts[:form_params] || {}
2390
+
2391
+ # http body (model)
2392
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_feed_post_params)
2393
+
2394
+ # return_type
2395
+ return_type = opts[:debug_return_type] || 'CreateFeedPostPublic200Response'
2396
+
2397
+ # auth_names
2398
+ auth_names = opts[:debug_auth_names] || []
2399
+
2400
+ new_options = opts.merge(
2401
+ :operation => :"PublicApi.update_feed_post_public",
2402
+ :header_params => header_params,
2403
+ :query_params => query_params,
2404
+ :form_params => form_params,
2405
+ :body => post_body,
2406
+ :auth_names => auth_names,
2407
+ :return_type => return_type
2408
+ )
2409
+
2410
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2411
+ if @api_client.config.debugging
2412
+ @api_client.config.logger.debug "API called: PublicApi#update_feed_post_public\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2413
+ end
2414
+ return data, status_code, headers
2415
+ end
2416
+
2417
+ # Enable or disable notifications for a specific comment.
2418
+ # @param tenant_id [String]
2419
+ # @param notification_id [String]
2420
+ # @param opted_in_or_out [String]
2421
+ # @param comment_id [String]
2422
+ # @param [Hash] opts the optional parameters
2423
+ # @option opts [String] :sso
2424
+ # @return [UpdateUserNotificationStatus200Response]
2425
+ def update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {})
2426
+ data, _status_code, _headers = update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts)
2427
+ data
2428
+ end
2429
+
2430
+ # Enable or disable notifications for a specific comment.
2431
+ # @param tenant_id [String]
2432
+ # @param notification_id [String]
2433
+ # @param opted_in_or_out [String]
2434
+ # @param comment_id [String]
2435
+ # @param [Hash] opts the optional parameters
2436
+ # @option opts [String] :sso
2437
+ # @return [Array<(UpdateUserNotificationStatus200Response, Integer, Hash)>] UpdateUserNotificationStatus200Response data, response status code and response headers
2438
+ def update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {})
2439
+ if @api_client.config.debugging
2440
+ @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_comment_subscription_status ...'
2441
+ end
2442
+ # verify the required parameter 'tenant_id' is set
2443
+ if @api_client.config.client_side_validation && tenant_id.nil?
2444
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_comment_subscription_status"
2445
+ end
2446
+ # verify the required parameter 'notification_id' is set
2447
+ if @api_client.config.client_side_validation && notification_id.nil?
2448
+ fail ArgumentError, "Missing the required parameter 'notification_id' when calling PublicApi.update_user_notification_comment_subscription_status"
2449
+ end
2450
+ # verify the required parameter 'opted_in_or_out' is set
2451
+ if @api_client.config.client_side_validation && opted_in_or_out.nil?
2452
+ fail ArgumentError, "Missing the required parameter 'opted_in_or_out' when calling PublicApi.update_user_notification_comment_subscription_status"
2453
+ end
2454
+ # verify enum value
2455
+ allowable_values = ["in", "out"]
2456
+ if @api_client.config.client_side_validation && !allowable_values.include?(opted_in_or_out)
2457
+ fail ArgumentError, "invalid value for \"opted_in_or_out\", must be one of #{allowable_values}"
2458
+ end
2459
+ # verify the required parameter 'comment_id' is set
2460
+ if @api_client.config.client_side_validation && comment_id.nil?
2461
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.update_user_notification_comment_subscription_status"
2462
+ end
2463
+ # resource path
2464
+ local_var_path = '/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'optedInOrOut' + '}', CGI.escape(opted_in_or_out.to_s))
2465
+
2466
+ # query parameters
2467
+ query_params = opts[:query_params] || {}
2468
+ query_params[:'tenantId'] = tenant_id
2469
+ query_params[:'commentId'] = comment_id
2470
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2471
+
2472
+ # header parameters
2473
+ header_params = opts[:header_params] || {}
2474
+ # HTTP header 'Accept' (if needed)
2475
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2476
+
2477
+ # form parameters
2478
+ form_params = opts[:form_params] || {}
2479
+
2480
+ # http body (model)
2481
+ post_body = opts[:debug_body]
2482
+
2483
+ # return_type
2484
+ return_type = opts[:debug_return_type] || 'UpdateUserNotificationStatus200Response'
2485
+
2486
+ # auth_names
2487
+ auth_names = opts[:debug_auth_names] || []
2488
+
2489
+ new_options = opts.merge(
2490
+ :operation => :"PublicApi.update_user_notification_comment_subscription_status",
2491
+ :header_params => header_params,
2492
+ :query_params => query_params,
2493
+ :form_params => form_params,
2494
+ :body => post_body,
2495
+ :auth_names => auth_names,
2496
+ :return_type => return_type
2497
+ )
2498
+
2499
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2500
+ if @api_client.config.debugging
2501
+ @api_client.config.logger.debug "API called: PublicApi#update_user_notification_comment_subscription_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2502
+ end
2503
+ return data, status_code, headers
2504
+ end
2505
+
2506
+ # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
2507
+ # @param tenant_id [String]
2508
+ # @param url_id [String]
2509
+ # @param url [String]
2510
+ # @param page_title [String]
2511
+ # @param subscribed_or_unsubscribed [String]
2512
+ # @param [Hash] opts the optional parameters
2513
+ # @option opts [String] :sso
2514
+ # @return [UpdateUserNotificationStatus200Response]
2515
+ def update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {})
2516
+ data, _status_code, _headers = update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts)
2517
+ data
2518
+ end
2519
+
2520
+ # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also
2521
+ # @param tenant_id [String]
2522
+ # @param url_id [String]
2523
+ # @param url [String]
2524
+ # @param page_title [String]
2525
+ # @param subscribed_or_unsubscribed [String]
2526
+ # @param [Hash] opts the optional parameters
2527
+ # @option opts [String] :sso
2528
+ # @return [Array<(UpdateUserNotificationStatus200Response, Integer, Hash)>] UpdateUserNotificationStatus200Response data, response status code and response headers
2529
+ def update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {})
2530
+ if @api_client.config.debugging
2531
+ @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_page_subscription_status ...'
2532
+ end
2533
+ # verify the required parameter 'tenant_id' is set
2534
+ if @api_client.config.client_side_validation && tenant_id.nil?
2535
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_page_subscription_status"
2536
+ end
2537
+ # verify the required parameter 'url_id' is set
2538
+ if @api_client.config.client_side_validation && url_id.nil?
2539
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.update_user_notification_page_subscription_status"
2540
+ end
2541
+ # verify the required parameter 'url' is set
2542
+ if @api_client.config.client_side_validation && url.nil?
2543
+ fail ArgumentError, "Missing the required parameter 'url' when calling PublicApi.update_user_notification_page_subscription_status"
2544
+ end
2545
+ # verify the required parameter 'page_title' is set
2546
+ if @api_client.config.client_side_validation && page_title.nil?
2547
+ fail ArgumentError, "Missing the required parameter 'page_title' when calling PublicApi.update_user_notification_page_subscription_status"
2548
+ end
2549
+ # verify the required parameter 'subscribed_or_unsubscribed' is set
2550
+ if @api_client.config.client_side_validation && subscribed_or_unsubscribed.nil?
2551
+ fail ArgumentError, "Missing the required parameter 'subscribed_or_unsubscribed' when calling PublicApi.update_user_notification_page_subscription_status"
2552
+ end
2553
+ # verify enum value
2554
+ allowable_values = ["subscribe", "unsubscribe"]
2555
+ if @api_client.config.client_side_validation && !allowable_values.include?(subscribed_or_unsubscribed)
2556
+ fail ArgumentError, "invalid value for \"subscribed_or_unsubscribed\", must be one of #{allowable_values}"
2557
+ end
2558
+ # resource path
2559
+ local_var_path = '/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'.sub('{' + 'subscribedOrUnsubscribed' + '}', CGI.escape(subscribed_or_unsubscribed.to_s))
2560
+
2561
+ # query parameters
2562
+ query_params = opts[:query_params] || {}
2563
+ query_params[:'tenantId'] = tenant_id
2564
+ query_params[:'urlId'] = url_id
2565
+ query_params[:'url'] = url
2566
+ query_params[:'pageTitle'] = page_title
2567
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2568
+
2569
+ # header parameters
2570
+ header_params = opts[:header_params] || {}
2571
+ # HTTP header 'Accept' (if needed)
2572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2573
+
2574
+ # form parameters
2575
+ form_params = opts[:form_params] || {}
2576
+
2577
+ # http body (model)
2578
+ post_body = opts[:debug_body]
2579
+
2580
+ # return_type
2581
+ return_type = opts[:debug_return_type] || 'UpdateUserNotificationStatus200Response'
2582
+
2583
+ # auth_names
2584
+ auth_names = opts[:debug_auth_names] || []
2585
+
2586
+ new_options = opts.merge(
2587
+ :operation => :"PublicApi.update_user_notification_page_subscription_status",
2588
+ :header_params => header_params,
2589
+ :query_params => query_params,
2590
+ :form_params => form_params,
2591
+ :body => post_body,
2592
+ :auth_names => auth_names,
2593
+ :return_type => return_type
2594
+ )
2595
+
2596
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2597
+ if @api_client.config.debugging
2598
+ @api_client.config.logger.debug "API called: PublicApi#update_user_notification_page_subscription_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2599
+ end
2600
+ return data, status_code, headers
2601
+ end
2602
+
2603
+ # @param tenant_id [String]
2604
+ # @param notification_id [String]
2605
+ # @param new_status [String]
2606
+ # @param [Hash] opts the optional parameters
2607
+ # @option opts [String] :sso
2608
+ # @return [UpdateUserNotificationStatus200Response]
2609
+ def update_user_notification_status(tenant_id, notification_id, new_status, opts = {})
2610
+ data, _status_code, _headers = update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts)
2611
+ data
2612
+ end
2613
+
2614
+ # @param tenant_id [String]
2615
+ # @param notification_id [String]
2616
+ # @param new_status [String]
2617
+ # @param [Hash] opts the optional parameters
2618
+ # @option opts [String] :sso
2619
+ # @return [Array<(UpdateUserNotificationStatus200Response, Integer, Hash)>] UpdateUserNotificationStatus200Response data, response status code and response headers
2620
+ def update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts = {})
2621
+ if @api_client.config.debugging
2622
+ @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_status ...'
2623
+ end
2624
+ # verify the required parameter 'tenant_id' is set
2625
+ if @api_client.config.client_side_validation && tenant_id.nil?
2626
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_status"
2627
+ end
2628
+ # verify the required parameter 'notification_id' is set
2629
+ if @api_client.config.client_side_validation && notification_id.nil?
2630
+ fail ArgumentError, "Missing the required parameter 'notification_id' when calling PublicApi.update_user_notification_status"
2631
+ end
2632
+ # verify the required parameter 'new_status' is set
2633
+ if @api_client.config.client_side_validation && new_status.nil?
2634
+ fail ArgumentError, "Missing the required parameter 'new_status' when calling PublicApi.update_user_notification_status"
2635
+ end
2636
+ # verify enum value
2637
+ allowable_values = ["read", "unread"]
2638
+ if @api_client.config.client_side_validation && !allowable_values.include?(new_status)
2639
+ fail ArgumentError, "invalid value for \"new_status\", must be one of #{allowable_values}"
2640
+ end
2641
+ # resource path
2642
+ local_var_path = '/user-notifications/{notificationId}/mark/{newStatus}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'newStatus' + '}', CGI.escape(new_status.to_s))
2643
+
2644
+ # query parameters
2645
+ query_params = opts[:query_params] || {}
2646
+ query_params[:'tenantId'] = tenant_id
2647
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2648
+
2649
+ # header parameters
2650
+ header_params = opts[:header_params] || {}
2651
+ # HTTP header 'Accept' (if needed)
2652
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2653
+
2654
+ # form parameters
2655
+ form_params = opts[:form_params] || {}
2656
+
2657
+ # http body (model)
2658
+ post_body = opts[:debug_body]
2659
+
2660
+ # return_type
2661
+ return_type = opts[:debug_return_type] || 'UpdateUserNotificationStatus200Response'
2662
+
2663
+ # auth_names
2664
+ auth_names = opts[:debug_auth_names] || []
2665
+
2666
+ new_options = opts.merge(
2667
+ :operation => :"PublicApi.update_user_notification_status",
2668
+ :header_params => header_params,
2669
+ :query_params => query_params,
2670
+ :form_params => form_params,
2671
+ :body => post_body,
2672
+ :auth_names => auth_names,
2673
+ :return_type => return_type
2674
+ )
2675
+
2676
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2677
+ if @api_client.config.debugging
2678
+ @api_client.config.logger.debug "API called: PublicApi#update_user_notification_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2679
+ end
2680
+ return data, status_code, headers
2681
+ end
2682
+
2683
+ # Upload and resize an image
2684
+ # @param tenant_id [String]
2685
+ # @param file [File]
2686
+ # @param [Hash] opts the optional parameters
2687
+ # @option opts [SizePreset] :size_preset Size preset: \&quot;Default\&quot; (1000x1000px) or \&quot;CrossPlatform\&quot; (creates sizes for popular devices)
2688
+ # @option opts [String] :url_id Page id that upload is happening from, to configure
2689
+ # @return [UploadImageResponse]
2690
+ def upload_image(tenant_id, file, opts = {})
2691
+ data, _status_code, _headers = upload_image_with_http_info(tenant_id, file, opts)
2692
+ data
2693
+ end
2694
+
2695
+ # Upload and resize an image
2696
+ # @param tenant_id [String]
2697
+ # @param file [File]
2698
+ # @param [Hash] opts the optional parameters
2699
+ # @option opts [SizePreset] :size_preset Size preset: \&quot;Default\&quot; (1000x1000px) or \&quot;CrossPlatform\&quot; (creates sizes for popular devices)
2700
+ # @option opts [String] :url_id Page id that upload is happening from, to configure
2701
+ # @return [Array<(UploadImageResponse, Integer, Hash)>] UploadImageResponse data, response status code and response headers
2702
+ def upload_image_with_http_info(tenant_id, file, opts = {})
2703
+ if @api_client.config.debugging
2704
+ @api_client.config.logger.debug 'Calling API: PublicApi.upload_image ...'
2705
+ end
2706
+ # verify the required parameter 'tenant_id' is set
2707
+ if @api_client.config.client_side_validation && tenant_id.nil?
2708
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.upload_image"
2709
+ end
2710
+ # verify the required parameter 'file' is set
2711
+ if @api_client.config.client_side_validation && file.nil?
2712
+ fail ArgumentError, "Missing the required parameter 'file' when calling PublicApi.upload_image"
2713
+ end
2714
+ # resource path
2715
+ local_var_path = '/upload-image/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
2716
+
2717
+ # query parameters
2718
+ query_params = opts[:query_params] || {}
2719
+ query_params[:'sizePreset'] = opts[:'size_preset'] if !opts[:'size_preset'].nil?
2720
+ query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil?
2721
+
2722
+ # header parameters
2723
+ header_params = opts[:header_params] || {}
2724
+ # HTTP header 'Accept' (if needed)
2725
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2726
+ # HTTP header 'Content-Type'
2727
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
2728
+ if !content_type.nil?
2729
+ header_params['Content-Type'] = content_type
2730
+ end
2731
+
2732
+ # form parameters
2733
+ form_params = opts[:form_params] || {}
2734
+ form_params['file'] = file
2735
+
2736
+ # http body (model)
2737
+ post_body = opts[:debug_body]
2738
+
2739
+ # return_type
2740
+ return_type = opts[:debug_return_type] || 'UploadImageResponse'
2741
+
2742
+ # auth_names
2743
+ auth_names = opts[:debug_auth_names] || []
2744
+
2745
+ new_options = opts.merge(
2746
+ :operation => :"PublicApi.upload_image",
2747
+ :header_params => header_params,
2748
+ :query_params => query_params,
2749
+ :form_params => form_params,
2750
+ :body => post_body,
2751
+ :auth_names => auth_names,
2752
+ :return_type => return_type
2753
+ )
2754
+
2755
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2756
+ if @api_client.config.debugging
2757
+ @api_client.config.logger.debug "API called: PublicApi#upload_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2758
+ end
2759
+ return data, status_code, headers
2760
+ end
2761
+
2762
+ # @param tenant_id [String]
2763
+ # @param comment_id [String]
2764
+ # @param url_id [String]
2765
+ # @param broadcast_id [String]
2766
+ # @param vote_body_params [VoteBodyParams]
2767
+ # @param [Hash] opts the optional parameters
2768
+ # @option opts [String] :session_id
2769
+ # @option opts [String] :sso
2770
+ # @return [VoteComment200Response]
2771
+ def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {})
2772
+ data, _status_code, _headers = vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts)
2773
+ data
2774
+ end
2775
+
2776
+ # @param tenant_id [String]
2777
+ # @param comment_id [String]
2778
+ # @param url_id [String]
2779
+ # @param broadcast_id [String]
2780
+ # @param vote_body_params [VoteBodyParams]
2781
+ # @param [Hash] opts the optional parameters
2782
+ # @option opts [String] :session_id
2783
+ # @option opts [String] :sso
2784
+ # @return [Array<(VoteComment200Response, Integer, Hash)>] VoteComment200Response data, response status code and response headers
2785
+ def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {})
2786
+ if @api_client.config.debugging
2787
+ @api_client.config.logger.debug 'Calling API: PublicApi.vote_comment ...'
2788
+ end
2789
+ # verify the required parameter 'tenant_id' is set
2790
+ if @api_client.config.client_side_validation && tenant_id.nil?
2791
+ fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.vote_comment"
2792
+ end
2793
+ # verify the required parameter 'comment_id' is set
2794
+ if @api_client.config.client_side_validation && comment_id.nil?
2795
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.vote_comment"
2796
+ end
2797
+ # verify the required parameter 'url_id' is set
2798
+ if @api_client.config.client_side_validation && url_id.nil?
2799
+ fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.vote_comment"
2800
+ end
2801
+ # verify the required parameter 'broadcast_id' is set
2802
+ if @api_client.config.client_side_validation && broadcast_id.nil?
2803
+ fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.vote_comment"
2804
+ end
2805
+ # verify the required parameter 'vote_body_params' is set
2806
+ if @api_client.config.client_side_validation && vote_body_params.nil?
2807
+ fail ArgumentError, "Missing the required parameter 'vote_body_params' when calling PublicApi.vote_comment"
2808
+ end
2809
+ # resource path
2810
+ local_var_path = '/comments/{tenantId}/{commentId}/vote'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s))
2811
+
2812
+ # query parameters
2813
+ query_params = opts[:query_params] || {}
2814
+ query_params[:'urlId'] = url_id
2815
+ query_params[:'broadcastId'] = broadcast_id
2816
+ query_params[:'sessionId'] = opts[:'session_id'] if !opts[:'session_id'].nil?
2817
+ query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil?
2818
+
2819
+ # header parameters
2820
+ header_params = opts[:header_params] || {}
2821
+ # HTTP header 'Accept' (if needed)
2822
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2823
+ # HTTP header 'Content-Type'
2824
+ content_type = @api_client.select_header_content_type(['application/json'])
2825
+ if !content_type.nil?
2826
+ header_params['Content-Type'] = content_type
2827
+ end
2828
+
2829
+ # form parameters
2830
+ form_params = opts[:form_params] || {}
2831
+
2832
+ # http body (model)
2833
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(vote_body_params)
2834
+
2835
+ # return_type
2836
+ return_type = opts[:debug_return_type] || 'VoteComment200Response'
2837
+
2838
+ # auth_names
2839
+ auth_names = opts[:debug_auth_names] || []
2840
+
2841
+ new_options = opts.merge(
2842
+ :operation => :"PublicApi.vote_comment",
2843
+ :header_params => header_params,
2844
+ :query_params => query_params,
2845
+ :form_params => form_params,
2846
+ :body => post_body,
2847
+ :auth_names => auth_names,
2848
+ :return_type => return_type
2849
+ )
2850
+
2851
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2852
+ if @api_client.config.debugging
2853
+ @api_client.config.logger.debug "API called: PublicApi#vote_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2854
+ end
2855
+ return data, status_code, headers
2856
+ end
2857
+ end
2858
+ end