fastcomments 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (822) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -6
  3. data/client/README.md +186 -6
  4. data/client/docs/APIDomainConfiguration.md +46 -0
  5. data/client/docs/APITenant.md +72 -0
  6. data/client/docs/APITenantDailyUsage.md +54 -0
  7. data/client/docs/AddHashTag200Response.md +34 -0
  8. data/client/docs/AddHashTagsBulk200Response.md +34 -0
  9. data/client/docs/BillingInfo.md +32 -0
  10. data/client/docs/BulkCreateHashTagsBody.md +20 -0
  11. data/client/docs/BulkCreateHashTagsBodyTagsInner.md +20 -0
  12. data/client/docs/BulkCreateHashTagsResponse.md +20 -0
  13. data/client/docs/CommentLogData.md +7 -1
  14. data/client/docs/CreateEmailTemplate200Response.md +34 -0
  15. data/client/docs/CreateEmailTemplateBody.md +28 -0
  16. data/client/docs/CreateEmailTemplateResponse.md +20 -0
  17. data/client/docs/CreateHashTagBody.md +22 -0
  18. data/client/docs/CreateHashTagResponse.md +20 -0
  19. data/client/docs/CreateModerator200Response.md +34 -0
  20. data/client/docs/CreateModeratorBody.md +24 -0
  21. data/client/docs/CreateModeratorResponse.md +20 -0
  22. data/client/docs/CreateQuestionConfig200Response.md +34 -0
  23. data/client/docs/CreateQuestionConfigBody.md +44 -0
  24. data/client/docs/CreateQuestionConfigResponse.md +20 -0
  25. data/client/docs/CreateQuestionResult200Response.md +34 -0
  26. data/client/docs/CreateQuestionResultBody.md +30 -0
  27. data/client/docs/CreateQuestionResultResponse.md +20 -0
  28. data/client/docs/CreateTenant200Response.md +34 -0
  29. data/client/docs/CreateTenantBody.md +62 -0
  30. data/client/docs/CreateTenantPackage200Response.md +34 -0
  31. data/client/docs/CreateTenantPackageBody.md +112 -0
  32. data/client/docs/CreateTenantPackageResponse.md +20 -0
  33. data/client/docs/CreateTenantResponse.md +20 -0
  34. data/client/docs/CreateTenantUser200Response.md +34 -0
  35. data/client/docs/CreateTenantUserBody.md +64 -0
  36. data/client/docs/CreateTenantUserResponse.md +20 -0
  37. data/client/docs/CreateVote200Response.md +32 -0
  38. data/client/docs/CreateVoteResponse.md +18 -0
  39. data/client/docs/CustomEmailTemplate.md +38 -0
  40. data/client/docs/DefaultApi.md +5229 -591
  41. data/client/docs/DeleteHashTagRequest.md +18 -0
  42. data/client/docs/DeleteVote200Response.md +32 -0
  43. data/client/docs/DeleteVoteResponse.md +18 -0
  44. data/client/docs/DigestEmailFrequency.md +15 -0
  45. data/client/docs/EmailTemplateDefinition.md +24 -0
  46. data/client/docs/EmailTemplateRenderErrorResponse.md +30 -0
  47. data/client/docs/GetCachedNotificationCount200Response.md +34 -0
  48. data/client/docs/GetCachedNotificationCountResponse.md +20 -0
  49. data/client/docs/GetEmailTemplate200Response.md +34 -0
  50. data/client/docs/GetEmailTemplateDefinitions200Response.md +34 -0
  51. data/client/docs/GetEmailTemplateDefinitionsResponse.md +20 -0
  52. data/client/docs/GetEmailTemplateRenderErrors200Response.md +34 -0
  53. data/client/docs/GetEmailTemplateRenderErrorsResponse.md +20 -0
  54. data/client/docs/GetEmailTemplateResponse.md +20 -0
  55. data/client/docs/GetEmailTemplates200Response.md +34 -0
  56. data/client/docs/GetEmailTemplatesResponse.md +20 -0
  57. data/client/docs/GetHashTags200Response.md +34 -0
  58. data/client/docs/GetHashTagsResponse.md +20 -0
  59. data/client/docs/GetModerator200Response.md +34 -0
  60. data/client/docs/GetModeratorResponse.md +20 -0
  61. data/client/docs/GetModerators200Response.md +34 -0
  62. data/client/docs/GetModeratorsResponse.md +20 -0
  63. data/client/docs/GetNotificationCount200Response.md +34 -0
  64. data/client/docs/GetNotificationCountResponse.md +20 -0
  65. data/client/docs/GetNotifications200Response.md +34 -0
  66. data/client/docs/GetNotificationsResponse.md +20 -0
  67. data/client/docs/GetPendingWebhookEventCount200Response.md +34 -0
  68. data/client/docs/GetPendingWebhookEventCountResponse.md +20 -0
  69. data/client/docs/GetPendingWebhookEvents200Response.md +34 -0
  70. data/client/docs/GetPendingWebhookEventsResponse.md +20 -0
  71. data/client/docs/GetQuestionConfig200Response.md +34 -0
  72. data/client/docs/GetQuestionConfigResponse.md +20 -0
  73. data/client/docs/GetQuestionConfigs200Response.md +34 -0
  74. data/client/docs/GetQuestionConfigsResponse.md +20 -0
  75. data/client/docs/GetQuestionResult200Response.md +34 -0
  76. data/client/docs/GetQuestionResultResponse.md +20 -0
  77. data/client/docs/GetQuestionResults200Response.md +34 -0
  78. data/client/docs/GetQuestionResultsResponse.md +20 -0
  79. data/client/docs/GetTenant200Response.md +34 -0
  80. data/client/docs/GetTenantDailyUsages200Response.md +34 -0
  81. data/client/docs/GetTenantDailyUsagesResponse.md +20 -0
  82. data/client/docs/GetTenantPackage200Response.md +34 -0
  83. data/client/docs/GetTenantPackageResponse.md +20 -0
  84. data/client/docs/GetTenantPackages200Response.md +34 -0
  85. data/client/docs/GetTenantPackagesResponse.md +20 -0
  86. data/client/docs/GetTenantResponse.md +20 -0
  87. data/client/docs/GetTenantUser200Response.md +34 -0
  88. data/client/docs/GetTenantUserResponse.md +20 -0
  89. data/client/docs/GetTenantUsers200Response.md +34 -0
  90. data/client/docs/GetTenantUsersResponse.md +20 -0
  91. data/client/docs/GetTenants200Response.md +34 -0
  92. data/client/docs/GetTenantsResponse.md +20 -0
  93. data/client/docs/GetUser200Response.md +34 -0
  94. data/client/docs/GetUserResponse.md +20 -0
  95. data/client/docs/GetVotes200Response.md +38 -0
  96. data/client/docs/GetVotesForUser200Response.md +38 -0
  97. data/client/docs/GetVotesForUserResponse.md +24 -0
  98. data/client/docs/GetVotesResponse.md +24 -0
  99. data/client/docs/{VoteResponseStatus.md → ImportedSiteType.md} +2 -2
  100. data/client/docs/Moderator.md +52 -0
  101. data/client/docs/PatchHashTag200Response.md +34 -0
  102. data/client/docs/PendingCommentToSyncOutbound.md +42 -0
  103. data/client/docs/PublicApi.md +6 -6
  104. data/client/docs/PublicComment.md +2 -0
  105. data/client/docs/PublicCommentBase.md +3 -1
  106. data/client/docs/PublicVote.md +28 -0
  107. data/client/docs/QuestionConfig.md +58 -0
  108. data/client/docs/QuestionConfigCustomOptionsInner.md +20 -0
  109. data/client/docs/RenderEmailTemplate200Response.md +34 -0
  110. data/client/docs/RenderEmailTemplateBody.md +24 -0
  111. data/client/docs/RenderEmailTemplateResponse.md +20 -0
  112. data/client/docs/ReplaceTenantPackageBody.md +76 -0
  113. data/client/docs/ReplaceTenantUserBody.md +72 -0
  114. data/client/docs/TenantHashTag.md +26 -0
  115. data/client/docs/TenantPackage.md +120 -0
  116. data/client/docs/UpdateEmailTemplateBody.md +28 -0
  117. data/client/docs/UpdateHashTagBody.md +22 -0
  118. data/client/docs/UpdateHashTagResponse.md +20 -0
  119. data/client/docs/UpdateModeratorBody.md +24 -0
  120. data/client/docs/UpdateNotificationBody.md +20 -0
  121. data/client/docs/UpdateQuestionConfigBody.md +44 -0
  122. data/client/docs/UpdateQuestionResultBody.md +30 -0
  123. data/client/docs/UpdateTenantBody.md +64 -0
  124. data/client/docs/UpdateTenantPackageBody.md +78 -0
  125. data/client/docs/UpdateTenantUserBody.md +64 -0
  126. data/client/docs/User.md +118 -0
  127. data/client/docs/UserNotificationCount.md +24 -0
  128. data/client/docs/VoteResponse.md +1 -1
  129. data/client/fastcomments-client.gemspec +1 -1
  130. data/client/lib/fastcomments-client/api/default_api.rb +5134 -777
  131. data/client/lib/fastcomments-client/api/public_api.rb +7 -11
  132. data/client/lib/fastcomments-client/api_client.rb +1 -1
  133. data/client/lib/fastcomments-client/api_error.rb +1 -1
  134. data/client/lib/fastcomments-client/api_model_base.rb +88 -0
  135. data/client/lib/fastcomments-client/configuration.rb +1 -1
  136. data/client/lib/fastcomments-client/models/add_domain_config200_response.rb +2 -3
  137. data/client/lib/fastcomments-client/models/add_domain_config200_response_any_of.rb +2 -75
  138. data/client/lib/fastcomments-client/models/add_domain_config_params.rb +2 -75
  139. data/client/lib/fastcomments-client/models/{vote_response_status.rb → add_hash_tag200_response.rb} +5 -6
  140. data/client/lib/fastcomments-client/models/add_hash_tags_bulk200_response.rb +103 -0
  141. data/client/lib/fastcomments-client/models/add_page_api_response.rb +2 -75
  142. data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +2 -75
  143. data/client/lib/fastcomments-client/models/aggregate_question_results200_response.rb +2 -3
  144. data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +2 -75
  145. data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +1 -1
  146. data/client/lib/fastcomments-client/models/aggregation_item.rb +2 -75
  147. data/client/lib/fastcomments-client/models/aggregation_op_type.rb +1 -1
  148. data/client/lib/fastcomments-client/models/aggregation_operation.rb +2 -75
  149. data/client/lib/fastcomments-client/models/aggregation_request.rb +2 -75
  150. data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +2 -75
  151. data/client/lib/fastcomments-client/models/aggregation_response.rb +2 -75
  152. data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +2 -75
  153. data/client/lib/fastcomments-client/models/aggregation_value.rb +2 -75
  154. data/client/lib/fastcomments-client/models/api_audit_log.rb +2 -75
  155. data/client/lib/fastcomments-client/models/api_comment.rb +2 -75
  156. data/client/lib/fastcomments-client/models/api_comment_base.rb +2 -75
  157. data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +2 -75
  158. data/client/lib/fastcomments-client/models/api_domain_configuration.rb +355 -0
  159. data/client/lib/fastcomments-client/models/api_empty_response.rb +2 -75
  160. data/client/lib/fastcomments-client/models/api_empty_success_response.rb +2 -75
  161. data/client/lib/fastcomments-client/models/api_error.rb +2 -75
  162. data/client/lib/fastcomments-client/models/api_get_comment_response.rb +2 -75
  163. data/client/lib/fastcomments-client/models/api_get_comments_response.rb +2 -75
  164. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +2 -75
  165. data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +2 -75
  166. data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +2 -75
  167. data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +2 -75
  168. data/client/lib/fastcomments-client/models/api_page.rb +2 -75
  169. data/client/lib/fastcomments-client/models/api_status.rb +1 -1
  170. data/client/lib/fastcomments-client/models/api_tenant.rb +583 -0
  171. data/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +632 -0
  172. data/client/lib/fastcomments-client/models/api_user_subscription.rb +2 -75
  173. data/client/lib/fastcomments-client/models/apisso_user.rb +2 -75
  174. data/client/lib/fastcomments-client/models/billing_info.rb +315 -0
  175. data/client/lib/fastcomments-client/models/block_from_comment_params.rb +2 -75
  176. data/client/lib/fastcomments-client/models/block_from_comment_public200_response.rb +2 -3
  177. data/client/lib/fastcomments-client/models/block_success.rb +2 -75
  178. data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +2 -75
  179. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +2 -3
  180. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +2 -75
  181. data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +2 -75
  182. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +175 -0
  183. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +173 -0
  184. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +214 -0
  185. data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +2 -75
  186. data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +2 -75
  187. data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +2 -3
  188. data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +2 -3
  189. data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +2 -75
  190. data/client/lib/fastcomments-client/models/comment_data.rb +2 -75
  191. data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +1 -1
  192. data/client/lib/fastcomments-client/models/comment_log_data.rb +33 -79
  193. data/client/lib/fastcomments-client/models/comment_log_entry.rb +2 -75
  194. data/client/lib/fastcomments-client/models/comment_log_type.rb +3 -2
  195. data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +1 -1
  196. data/client/lib/fastcomments-client/models/comment_questions_required.rb +1 -1
  197. data/client/lib/fastcomments-client/models/comment_text_update_request.rb +2 -75
  198. data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +1 -1
  199. data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +2 -75
  200. data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +2 -75
  201. data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +2 -75
  202. data/client/lib/fastcomments-client/models/commenter_name_formats.rb +1 -1
  203. data/client/lib/fastcomments-client/models/create_api_page_data.rb +2 -75
  204. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +2 -75
  205. data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +2 -75
  206. data/client/lib/fastcomments-client/models/create_comment_params.rb +2 -75
  207. data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +2 -3
  208. data/client/lib/fastcomments-client/models/create_email_template200_response.rb +103 -0
  209. data/client/lib/fastcomments-client/models/create_email_template_body.rb +249 -0
  210. data/client/lib/fastcomments-client/models/create_email_template_response.rb +212 -0
  211. data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +2 -3
  212. data/client/lib/fastcomments-client/models/create_feed_post_params.rb +2 -75
  213. data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +2 -3
  214. data/client/lib/fastcomments-client/models/create_feed_post_response.rb +2 -75
  215. data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +2 -75
  216. data/client/lib/fastcomments-client/models/create_hash_tag_body.rb +182 -0
  217. data/client/lib/fastcomments-client/models/create_hash_tag_response.rb +212 -0
  218. data/client/lib/fastcomments-client/models/create_moderator200_response.rb +103 -0
  219. data/client/lib/fastcomments-client/models/create_moderator_body.rb +210 -0
  220. data/client/lib/fastcomments-client/models/create_moderator_response.rb +212 -0
  221. data/client/lib/fastcomments-client/models/create_question_config200_response.rb +103 -0
  222. data/client/lib/fastcomments-client/models/create_question_config_body.rb +336 -0
  223. data/client/lib/fastcomments-client/models/create_question_config_response.rb +212 -0
  224. data/client/lib/fastcomments-client/models/create_question_result200_response.rb +103 -0
  225. data/client/lib/fastcomments-client/models/create_question_result_body.rb +255 -0
  226. data/client/lib/fastcomments-client/models/create_question_result_response.rb +212 -0
  227. data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +2 -75
  228. data/client/lib/fastcomments-client/models/create_tenant200_response.rb +103 -0
  229. data/client/lib/fastcomments-client/models/create_tenant_body.rb +384 -0
  230. data/client/lib/fastcomments-client/models/create_tenant_package200_response.rb +103 -0
  231. data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +797 -0
  232. data/client/lib/fastcomments-client/models/create_tenant_package_response.rb +212 -0
  233. data/client/lib/fastcomments-client/models/create_tenant_response.rb +212 -0
  234. data/client/lib/fastcomments-client/models/create_tenant_user200_response.rb +103 -0
  235. data/client/lib/fastcomments-client/models/create_tenant_user_body.rb +390 -0
  236. data/client/lib/fastcomments-client/models/create_tenant_user_response.rb +212 -0
  237. data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +2 -3
  238. data/client/lib/fastcomments-client/models/create_user_badge_params.rb +2 -75
  239. data/client/lib/fastcomments-client/models/create_vote200_response.rb +103 -0
  240. data/client/lib/fastcomments-client/models/create_vote_response.rb +186 -0
  241. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +2 -75
  242. data/client/lib/fastcomments-client/models/custom_email_template.rb +369 -0
  243. data/client/lib/fastcomments-client/models/delete_comment200_response.rb +2 -3
  244. data/client/lib/fastcomments-client/models/delete_comment_action.rb +1 -1
  245. data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +2 -3
  246. data/client/lib/fastcomments-client/models/delete_comment_result.rb +2 -75
  247. data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +2 -3
  248. data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +2 -75
  249. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +2 -3
  250. data/client/lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +2 -75
  251. data/client/lib/fastcomments-client/models/delete_hash_tag_request.rb +147 -0
  252. data/client/lib/fastcomments-client/models/delete_page_api_response.rb +2 -75
  253. data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +2 -75
  254. data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +2 -75
  255. data/client/lib/fastcomments-client/models/delete_vote200_response.rb +103 -0
  256. data/client/lib/fastcomments-client/models/delete_vote_response.rb +186 -0
  257. data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +2 -75
  258. data/client/lib/fastcomments-client/models/digest_email_frequency.rb +42 -0
  259. data/client/lib/fastcomments-client/models/email_template_definition.rb +248 -0
  260. data/client/lib/fastcomments-client/models/email_template_render_error_response.rb +320 -0
  261. data/client/lib/fastcomments-client/models/event_log_entry.rb +2 -75
  262. data/client/lib/fastcomments-client/models/f_comment.rb +2 -75
  263. data/client/lib/fastcomments-client/models/f_comment_meta.rb +2 -75
  264. data/client/lib/fastcomments-client/models/feed_post.rb +2 -75
  265. data/client/lib/fastcomments-client/models/feed_post_link.rb +2 -75
  266. data/client/lib/fastcomments-client/models/feed_post_media_item.rb +2 -75
  267. data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +2 -75
  268. data/client/lib/fastcomments-client/models/feed_post_stats.rb +2 -75
  269. data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +2 -75
  270. data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +2 -75
  271. data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +2 -75
  272. data/client/lib/fastcomments-client/models/flag_comment200_response.rb +2 -3
  273. data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +2 -3
  274. data/client/lib/fastcomments-client/models/flag_comment_response.rb +2 -75
  275. data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +2 -3
  276. data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +2 -75
  277. data/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb +103 -0
  278. data/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +212 -0
  279. data/client/lib/fastcomments-client/models/get_comment200_response.rb +2 -3
  280. data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +2 -3
  281. data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +2 -3
  282. data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +2 -75
  283. data/client/lib/fastcomments-client/models/get_comments200_response.rb +2 -3
  284. data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +2 -3
  285. data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +2 -75
  286. data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +2 -75
  287. data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +2 -3
  288. data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +2 -3
  289. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb +2 -75
  290. data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +2 -75
  291. data/client/lib/fastcomments-client/models/get_email_template200_response.rb +103 -0
  292. data/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb +103 -0
  293. data/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +214 -0
  294. data/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +103 -0
  295. data/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +214 -0
  296. data/client/lib/fastcomments-client/models/get_email_template_response.rb +212 -0
  297. data/client/lib/fastcomments-client/models/get_email_templates200_response.rb +103 -0
  298. data/client/lib/fastcomments-client/models/get_email_templates_response.rb +214 -0
  299. data/client/lib/fastcomments-client/models/get_event_log200_response.rb +2 -3
  300. data/client/lib/fastcomments-client/models/get_event_log_response.rb +2 -75
  301. data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +2 -3
  302. data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +2 -3
  303. data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +2 -75
  304. data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +2 -3
  305. data/client/lib/fastcomments-client/models/get_hash_tags200_response.rb +103 -0
  306. data/client/lib/fastcomments-client/models/get_hash_tags_response.rb +214 -0
  307. data/client/lib/fastcomments-client/models/get_moderator200_response.rb +103 -0
  308. data/client/lib/fastcomments-client/models/get_moderator_response.rb +212 -0
  309. data/client/lib/fastcomments-client/models/get_moderators200_response.rb +103 -0
  310. data/client/lib/fastcomments-client/models/get_moderators_response.rb +214 -0
  311. data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +2 -75
  312. data/client/lib/fastcomments-client/models/get_notification_count200_response.rb +103 -0
  313. data/client/lib/fastcomments-client/models/get_notification_count_response.rb +212 -0
  314. data/client/lib/fastcomments-client/models/get_notifications200_response.rb +103 -0
  315. data/client/lib/fastcomments-client/models/get_notifications_response.rb +214 -0
  316. data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +2 -75
  317. data/client/lib/fastcomments-client/models/get_pages_api_response.rb +2 -75
  318. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb +103 -0
  319. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +212 -0
  320. data/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +103 -0
  321. data/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +214 -0
  322. data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +2 -75
  323. data/client/lib/fastcomments-client/models/get_question_config200_response.rb +103 -0
  324. data/client/lib/fastcomments-client/models/get_question_config_response.rb +212 -0
  325. data/client/lib/fastcomments-client/models/get_question_configs200_response.rb +103 -0
  326. data/client/lib/fastcomments-client/models/get_question_configs_response.rb +214 -0
  327. data/client/lib/fastcomments-client/models/get_question_result200_response.rb +103 -0
  328. data/client/lib/fastcomments-client/models/get_question_result_response.rb +212 -0
  329. data/client/lib/fastcomments-client/models/get_question_results200_response.rb +103 -0
  330. data/client/lib/fastcomments-client/models/get_question_results_response.rb +214 -0
  331. data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +2 -75
  332. data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +2 -75
  333. data/client/lib/fastcomments-client/models/get_sso_users200_response.rb +2 -75
  334. data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +2 -75
  335. data/client/lib/fastcomments-client/models/get_tenant200_response.rb +103 -0
  336. data/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +103 -0
  337. data/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +214 -0
  338. data/client/lib/fastcomments-client/models/get_tenant_package200_response.rb +103 -0
  339. data/client/lib/fastcomments-client/models/get_tenant_package_response.rb +212 -0
  340. data/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb +103 -0
  341. data/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +214 -0
  342. data/client/lib/fastcomments-client/models/get_tenant_response.rb +212 -0
  343. data/client/lib/fastcomments-client/models/get_tenant_user200_response.rb +103 -0
  344. data/client/lib/fastcomments-client/models/get_tenant_user_response.rb +212 -0
  345. data/client/lib/fastcomments-client/models/get_tenant_users200_response.rb +103 -0
  346. data/client/lib/fastcomments-client/models/get_tenant_users_response.rb +214 -0
  347. data/client/lib/fastcomments-client/models/get_tenants200_response.rb +103 -0
  348. data/client/lib/fastcomments-client/models/get_tenants_response.rb +214 -0
  349. data/client/lib/fastcomments-client/models/get_user200_response.rb +103 -0
  350. data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +2 -3
  351. data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +2 -3
  352. data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +2 -3
  353. data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +2 -3
  354. data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +2 -3
  355. data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +2 -75
  356. data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +2 -3
  357. data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +2 -3
  358. data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +2 -75
  359. data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +2 -3
  360. data/client/lib/fastcomments-client/models/get_user_response.rb +212 -0
  361. data/client/lib/fastcomments-client/models/get_votes200_response.rb +103 -0
  362. data/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb +103 -0
  363. data/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +270 -0
  364. data/client/lib/fastcomments-client/models/get_votes_response.rb +270 -0
  365. data/client/lib/fastcomments-client/models/gif_rating.rb +1 -1
  366. data/client/lib/fastcomments-client/models/header_state.rb +2 -75
  367. data/client/lib/fastcomments-client/models/ignored_response.rb +2 -75
  368. data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +1 -1
  369. data/client/lib/fastcomments-client/models/imported_site_type.rb +40 -0
  370. data/client/lib/fastcomments-client/models/live_event.rb +2 -75
  371. data/client/lib/fastcomments-client/models/live_event_extra_info.rb +2 -75
  372. data/client/lib/fastcomments-client/models/live_event_type.rb +1 -1
  373. data/client/lib/fastcomments-client/models/lock_comment200_response.rb +2 -3
  374. data/client/lib/fastcomments-client/models/media_asset.rb +2 -75
  375. data/client/lib/fastcomments-client/models/meta_item.rb +2 -75
  376. data/client/lib/fastcomments-client/models/moderator.rb +538 -0
  377. data/client/lib/fastcomments-client/models/notification_and_count.rb +2 -75
  378. data/client/lib/fastcomments-client/models/notification_object_type.rb +1 -1
  379. data/client/lib/fastcomments-client/models/notification_type.rb +1 -1
  380. data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +2 -75
  381. data/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb +103 -0
  382. data/client/lib/fastcomments-client/models/patch_page_api_response.rb +2 -75
  383. data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +2 -75
  384. data/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +428 -0
  385. data/client/lib/fastcomments-client/models/pin_comment200_response.rb +2 -3
  386. data/client/lib/fastcomments-client/models/pub_sub_comment.rb +2 -75
  387. data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +2 -75
  388. data/client/lib/fastcomments-client/models/pub_sub_vote.rb +2 -75
  389. data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +2 -75
  390. data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +2 -75
  391. data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +2 -75
  392. data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +2 -75
  393. data/client/lib/fastcomments-client/models/public_comment.rb +12 -76
  394. data/client/lib/fastcomments-client/models/public_comment_base.rb +15 -79
  395. data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +2 -75
  396. data/client/lib/fastcomments-client/models/public_vote.rb +294 -0
  397. data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +2 -75
  398. data/client/lib/fastcomments-client/models/query_predicate.rb +2 -75
  399. data/client/lib/fastcomments-client/models/query_predicate_value.rb +2 -3
  400. data/client/lib/fastcomments-client/models/question_config.rb +671 -0
  401. data/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +190 -0
  402. data/client/lib/fastcomments-client/models/question_datum.rb +2 -75
  403. data/client/lib/fastcomments-client/models/question_rendering_type.rb +1 -1
  404. data/client/lib/fastcomments-client/models/question_result.rb +2 -75
  405. data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +2 -75
  406. data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +1 -1
  407. data/client/lib/fastcomments-client/models/question_when_save.rb +1 -1
  408. data/client/lib/fastcomments-client/models/react_body_params.rb +2 -75
  409. data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +2 -3
  410. data/client/lib/fastcomments-client/models/react_feed_post_response.rb +2 -75
  411. data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +2 -75
  412. data/client/lib/fastcomments-client/models/record_string_string_or_number_value.rb +2 -3
  413. data/client/lib/fastcomments-client/models/render_email_template200_response.rb +103 -0
  414. data/client/lib/fastcomments-client/models/render_email_template_body.rb +214 -0
  415. data/client/lib/fastcomments-client/models/render_email_template_response.rb +212 -0
  416. data/client/lib/fastcomments-client/models/renderable_user_notification.rb +2 -75
  417. data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +1 -1
  418. data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +1 -1
  419. data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +665 -0
  420. data/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +426 -0
  421. data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +2 -3
  422. data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +2 -75
  423. data/client/lib/fastcomments-client/models/save_comment200_response.rb +2 -3
  424. data/client/lib/fastcomments-client/models/save_comment_response.rb +2 -75
  425. data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +2 -75
  426. data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +2 -75
  427. data/client/lib/fastcomments-client/models/search_users200_response.rb +2 -3
  428. data/client/lib/fastcomments-client/models/search_users_response.rb +2 -75
  429. data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +2 -3
  430. data/client/lib/fastcomments-client/models/set_comment_text_result.rb +2 -75
  431. data/client/lib/fastcomments-client/models/size_preset.rb +1 -1
  432. data/client/lib/fastcomments-client/models/sort_directions.rb +1 -1
  433. data/client/lib/fastcomments-client/models/sortdir.rb +1 -1
  434. data/client/lib/fastcomments-client/models/spam_rule.rb +2 -75
  435. data/client/lib/fastcomments-client/models/sso_security_level.rb +1 -1
  436. data/client/lib/fastcomments-client/models/tenant_hash_tag.rb +251 -0
  437. data/client/lib/fastcomments-client/models/tenant_package.rb +994 -0
  438. data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +2 -3
  439. data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +2 -75
  440. data/client/lib/fastcomments-client/models/unblock_success.rb +2 -75
  441. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +2 -75
  442. data/client/lib/fastcomments-client/models/update_api_page_data.rb +2 -75
  443. data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +2 -75
  444. data/client/lib/fastcomments-client/models/update_domain_config_params.rb +2 -75
  445. data/client/lib/fastcomments-client/models/update_email_template_body.rb +198 -0
  446. data/client/lib/fastcomments-client/models/update_feed_post_params.rb +2 -75
  447. data/client/lib/fastcomments-client/models/update_hash_tag_body.rb +165 -0
  448. data/client/lib/fastcomments-client/models/update_hash_tag_response.rb +212 -0
  449. data/client/lib/fastcomments-client/models/update_moderator_body.rb +176 -0
  450. data/client/lib/fastcomments-client/models/update_notification_body.rb +156 -0
  451. data/client/lib/fastcomments-client/models/update_question_config_body.rb +268 -0
  452. data/client/lib/fastcomments-client/models/update_question_result_body.rb +204 -0
  453. data/client/lib/fastcomments-client/models/update_tenant_body.rb +359 -0
  454. data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +419 -0
  455. data/client/lib/fastcomments-client/models/update_tenant_user_body.rb +356 -0
  456. data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +2 -3
  457. data/client/lib/fastcomments-client/models/update_user_badge_params.rb +2 -75
  458. data/client/lib/fastcomments-client/models/update_user_notification_status200_response.rb +2 -3
  459. data/client/lib/fastcomments-client/models/upload_image_response.rb +2 -75
  460. data/client/lib/fastcomments-client/models/user.rb +753 -0
  461. data/client/lib/fastcomments-client/models/user_badge.rb +2 -75
  462. data/client/lib/fastcomments-client/models/user_badge_progress.rb +2 -75
  463. data/client/lib/fastcomments-client/models/user_notification.rb +2 -75
  464. data/client/lib/fastcomments-client/models/user_notification_count.rb +242 -0
  465. data/client/lib/fastcomments-client/models/user_notification_write_response.rb +2 -75
  466. data/client/lib/fastcomments-client/models/user_presence_data.rb +2 -75
  467. data/client/lib/fastcomments-client/models/user_reacts_response.rb +2 -75
  468. data/client/lib/fastcomments-client/models/user_search_result.rb +2 -75
  469. data/client/lib/fastcomments-client/models/user_session_info.rb +2 -75
  470. data/client/lib/fastcomments-client/models/vote_body_params.rb +2 -75
  471. data/client/lib/fastcomments-client/models/vote_comment200_response.rb +2 -3
  472. data/client/lib/fastcomments-client/models/vote_delete_response.rb +2 -75
  473. data/client/lib/fastcomments-client/models/vote_response.rb +32 -81
  474. data/client/lib/fastcomments-client/models/vote_response_user.rb +2 -75
  475. data/client/lib/fastcomments-client/models/vote_style.rb +1 -1
  476. data/client/lib/fastcomments-client/version.rb +2 -2
  477. data/client/lib/fastcomments-client.rb +121 -2
  478. data/client/spec/api/default_api_spec.rb +741 -1
  479. data/client/spec/api/public_api_spec.rb +2 -2
  480. data/client/spec/models/add_domain_config200_response_any_of_spec.rb +2 -2
  481. data/client/spec/models/add_domain_config200_response_spec.rb +1 -1
  482. data/client/spec/models/add_domain_config_params_spec.rb +2 -2
  483. data/client/spec/models/add_hash_tag200_response_spec.rb +21 -0
  484. data/client/spec/models/add_hash_tags_bulk200_response_spec.rb +21 -0
  485. data/client/spec/models/add_page_api_response_spec.rb +2 -2
  486. data/client/spec/models/add_sso_user_api_response_spec.rb +2 -2
  487. data/client/spec/models/aggregate_question_results200_response_spec.rb +1 -1
  488. data/client/spec/models/aggregate_question_results_response_spec.rb +2 -2
  489. data/client/spec/models/aggregate_time_bucket_spec.rb +2 -2
  490. data/client/spec/models/aggregation_item_spec.rb +2 -2
  491. data/client/spec/models/aggregation_op_type_spec.rb +2 -2
  492. data/client/spec/models/aggregation_operation_spec.rb +2 -2
  493. data/client/spec/models/aggregation_request_sort_spec.rb +2 -2
  494. data/client/spec/models/aggregation_request_spec.rb +2 -2
  495. data/client/spec/models/aggregation_response_spec.rb +2 -2
  496. data/client/spec/models/aggregation_response_stats_spec.rb +2 -2
  497. data/client/spec/models/aggregation_value_spec.rb +2 -2
  498. data/client/spec/models/api_audit_log_spec.rb +2 -2
  499. data/client/spec/models/api_comment_base_spec.rb +2 -2
  500. data/client/spec/models/api_comment_spec.rb +2 -2
  501. data/client/spec/models/api_create_user_badge_response_spec.rb +2 -2
  502. data/client/spec/models/api_domain_configuration_spec.rb +120 -0
  503. data/client/spec/models/api_empty_response_spec.rb +2 -2
  504. data/client/spec/models/api_empty_success_response_spec.rb +2 -2
  505. data/client/spec/models/api_error_spec.rb +2 -2
  506. data/client/spec/models/api_get_comment_response_spec.rb +2 -2
  507. data/client/spec/models/api_get_comments_response_spec.rb +2 -2
  508. data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +2 -2
  509. data/client/spec/models/api_get_user_badge_progress_response_spec.rb +2 -2
  510. data/client/spec/models/api_get_user_badge_response_spec.rb +2 -2
  511. data/client/spec/models/api_get_user_badges_response_spec.rb +2 -2
  512. data/client/spec/models/api_page_spec.rb +2 -2
  513. data/client/spec/models/api_status_spec.rb +2 -2
  514. data/client/spec/models/api_tenant_daily_usage_spec.rb +144 -0
  515. data/client/spec/models/api_tenant_spec.rb +198 -0
  516. data/client/spec/models/api_user_subscription_spec.rb +2 -2
  517. data/client/spec/models/apisso_user_spec.rb +2 -2
  518. data/client/spec/models/billing_info_spec.rb +78 -0
  519. data/client/spec/models/block_from_comment_params_spec.rb +2 -2
  520. data/client/spec/models/block_from_comment_public200_response_spec.rb +1 -1
  521. data/client/spec/models/block_success_spec.rb +2 -2
  522. data/client/spec/models/bulk_aggregate_question_item_spec.rb +2 -2
  523. data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +1 -1
  524. data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +2 -2
  525. data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +2 -2
  526. data/client/spec/models/bulk_create_hash_tags_body_spec.rb +42 -0
  527. data/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +42 -0
  528. data/client/spec/models/bulk_create_hash_tags_response_spec.rb +42 -0
  529. data/client/spec/models/change_comment_pin_status_response_spec.rb +2 -2
  530. data/client/spec/models/check_blocked_comments_response_spec.rb +2 -2
  531. data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +1 -1
  532. data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +1 -1
  533. data/client/spec/models/combine_question_results_with_comments_response_spec.rb +2 -2
  534. data/client/spec/models/comment_data_spec.rb +2 -2
  535. data/client/spec/models/comment_html_rendering_mode_spec.rb +2 -2
  536. data/client/spec/models/comment_log_data_spec.rb +20 -2
  537. data/client/spec/models/comment_log_entry_spec.rb +2 -2
  538. data/client/spec/models/comment_log_type_spec.rb +2 -2
  539. data/client/spec/models/comment_question_results_rendering_type_spec.rb +2 -2
  540. data/client/spec/models/comment_questions_required_spec.rb +2 -2
  541. data/client/spec/models/comment_text_update_request_spec.rb +2 -2
  542. data/client/spec/models/comment_thread_deletion_mode_spec.rb +2 -2
  543. data/client/spec/models/comment_user_badge_info_spec.rb +2 -2
  544. data/client/spec/models/comment_user_hash_tag_info_spec.rb +2 -2
  545. data/client/spec/models/comment_user_mention_info_spec.rb +2 -2
  546. data/client/spec/models/commenter_name_formats_spec.rb +2 -2
  547. data/client/spec/models/create_api_page_data_spec.rb +2 -2
  548. data/client/spec/models/create_api_user_subscription_data_spec.rb +2 -2
  549. data/client/spec/models/create_apisso_user_data_spec.rb +2 -2
  550. data/client/spec/models/create_comment_params_spec.rb +2 -2
  551. data/client/spec/models/create_comment_public200_response_spec.rb +1 -1
  552. data/client/spec/models/create_email_template200_response_spec.rb +21 -0
  553. data/client/spec/models/create_email_template_body_spec.rb +66 -0
  554. data/client/spec/models/create_email_template_response_spec.rb +42 -0
  555. data/client/spec/models/create_feed_post200_response_spec.rb +1 -1
  556. data/client/spec/models/create_feed_post_params_spec.rb +2 -2
  557. data/client/spec/models/create_feed_post_public200_response_spec.rb +1 -1
  558. data/client/spec/models/create_feed_post_response_spec.rb +2 -2
  559. data/client/spec/models/create_feed_posts_response_spec.rb +2 -2
  560. data/client/spec/models/create_hash_tag_body_spec.rb +48 -0
  561. data/client/spec/models/create_hash_tag_response_spec.rb +42 -0
  562. data/client/spec/models/create_moderator200_response_spec.rb +21 -0
  563. data/client/spec/models/create_moderator_body_spec.rb +54 -0
  564. data/client/spec/models/create_moderator_response_spec.rb +42 -0
  565. data/client/spec/models/create_question_config200_response_spec.rb +21 -0
  566. data/client/spec/models/create_question_config_body_spec.rb +114 -0
  567. data/client/spec/models/create_question_config_response_spec.rb +42 -0
  568. data/client/spec/models/create_question_result200_response_spec.rb +21 -0
  569. data/client/spec/models/create_question_result_body_spec.rb +72 -0
  570. data/client/spec/models/create_question_result_response_spec.rb +42 -0
  571. data/client/spec/models/create_subscription_api_response_spec.rb +2 -2
  572. data/client/spec/models/create_tenant200_response_spec.rb +21 -0
  573. data/client/spec/models/create_tenant_body_spec.rb +168 -0
  574. data/client/spec/models/create_tenant_package200_response_spec.rb +21 -0
  575. data/client/spec/models/create_tenant_package_body_spec.rb +318 -0
  576. data/client/spec/models/create_tenant_package_response_spec.rb +42 -0
  577. data/client/spec/models/create_tenant_response_spec.rb +42 -0
  578. data/client/spec/models/create_tenant_user200_response_spec.rb +21 -0
  579. data/client/spec/models/create_tenant_user_body_spec.rb +174 -0
  580. data/client/spec/models/create_tenant_user_response_spec.rb +42 -0
  581. data/client/spec/models/create_user_badge200_response_spec.rb +1 -1
  582. data/client/spec/models/create_user_badge_params_spec.rb +2 -2
  583. data/client/spec/models/create_vote200_response_spec.rb +21 -0
  584. data/client/spec/models/create_vote_response_spec.rb +36 -0
  585. data/client/spec/models/custom_config_parameters_spec.rb +2 -2
  586. data/client/spec/models/custom_email_template_spec.rb +96 -0
  587. data/client/spec/models/delete_comment200_response_spec.rb +1 -1
  588. data/client/spec/models/delete_comment_action_spec.rb +2 -2
  589. data/client/spec/models/delete_comment_public200_response_spec.rb +1 -1
  590. data/client/spec/models/delete_comment_result_spec.rb +2 -2
  591. data/client/spec/models/delete_comment_vote200_response_spec.rb +1 -1
  592. data/client/spec/models/delete_domain_config200_response_spec.rb +2 -2
  593. data/client/spec/models/delete_feed_post_public200_response_any_of_spec.rb +2 -2
  594. data/client/spec/models/delete_feed_post_public200_response_spec.rb +1 -1
  595. data/client/spec/models/delete_hash_tag_request_spec.rb +36 -0
  596. data/client/spec/models/delete_page_api_response_spec.rb +2 -2
  597. data/client/spec/models/delete_sso_user_api_response_spec.rb +2 -2
  598. data/client/spec/models/delete_subscription_api_response_spec.rb +2 -2
  599. data/client/spec/models/delete_vote200_response_spec.rb +21 -0
  600. data/client/spec/models/delete_vote_response_spec.rb +36 -0
  601. data/client/spec/models/deleted_comment_result_comment_spec.rb +2 -2
  602. data/client/spec/models/digest_email_frequency_spec.rb +30 -0
  603. data/client/spec/models/email_template_definition_spec.rb +54 -0
  604. data/client/spec/models/email_template_render_error_response_spec.rb +72 -0
  605. data/client/spec/models/event_log_entry_spec.rb +2 -2
  606. data/client/spec/models/f_comment_meta_spec.rb +2 -2
  607. data/client/spec/models/f_comment_spec.rb +2 -2
  608. data/client/spec/models/feed_post_link_spec.rb +2 -2
  609. data/client/spec/models/feed_post_media_item_asset_spec.rb +2 -2
  610. data/client/spec/models/feed_post_media_item_spec.rb +2 -2
  611. data/client/spec/models/feed_post_spec.rb +2 -2
  612. data/client/spec/models/feed_post_stats_spec.rb +2 -2
  613. data/client/spec/models/feed_posts_stats_response_spec.rb +2 -2
  614. data/client/spec/models/find_comments_by_range_item_spec.rb +2 -2
  615. data/client/spec/models/find_comments_by_range_response_spec.rb +2 -2
  616. data/client/spec/models/flag_comment200_response_spec.rb +1 -1
  617. data/client/spec/models/flag_comment_public200_response_spec.rb +1 -1
  618. data/client/spec/models/flag_comment_response_spec.rb +2 -2
  619. data/client/spec/models/get_audit_logs200_response_spec.rb +1 -1
  620. data/client/spec/models/get_audit_logs_response_spec.rb +2 -2
  621. data/client/spec/models/get_cached_notification_count200_response_spec.rb +21 -0
  622. data/client/spec/models/get_cached_notification_count_response_spec.rb +42 -0
  623. data/client/spec/models/get_comment200_response_spec.rb +1 -1
  624. data/client/spec/models/get_comment_text200_response_spec.rb +1 -1
  625. data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +1 -1
  626. data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +2 -2
  627. data/client/spec/models/get_comments200_response_spec.rb +1 -1
  628. data/client/spec/models/get_comments_public200_response_spec.rb +1 -1
  629. data/client/spec/models/get_comments_response_public_comment_spec.rb +2 -2
  630. data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +2 -2
  631. data/client/spec/models/get_domain_config200_response_spec.rb +1 -1
  632. data/client/spec/models/get_domain_configs200_response_any_of1_spec.rb +2 -2
  633. data/client/spec/models/get_domain_configs200_response_any_of_spec.rb +2 -2
  634. data/client/spec/models/get_domain_configs200_response_spec.rb +1 -1
  635. data/client/spec/models/get_email_template200_response_spec.rb +21 -0
  636. data/client/spec/models/get_email_template_definitions200_response_spec.rb +21 -0
  637. data/client/spec/models/get_email_template_definitions_response_spec.rb +42 -0
  638. data/client/spec/models/get_email_template_render_errors200_response_spec.rb +21 -0
  639. data/client/spec/models/get_email_template_render_errors_response_spec.rb +42 -0
  640. data/client/spec/models/get_email_template_response_spec.rb +42 -0
  641. data/client/spec/models/get_email_templates200_response_spec.rb +21 -0
  642. data/client/spec/models/get_email_templates_response_spec.rb +42 -0
  643. data/client/spec/models/get_event_log200_response_spec.rb +1 -1
  644. data/client/spec/models/get_event_log_response_spec.rb +2 -2
  645. data/client/spec/models/get_feed_posts200_response_spec.rb +1 -1
  646. data/client/spec/models/get_feed_posts_public200_response_spec.rb +1 -1
  647. data/client/spec/models/get_feed_posts_response_spec.rb +2 -2
  648. data/client/spec/models/get_feed_posts_stats200_response_spec.rb +1 -1
  649. data/client/spec/models/get_hash_tags200_response_spec.rb +21 -0
  650. data/client/spec/models/get_hash_tags_response_spec.rb +42 -0
  651. data/client/spec/models/get_moderator200_response_spec.rb +21 -0
  652. data/client/spec/models/get_moderator_response_spec.rb +42 -0
  653. data/client/spec/models/get_moderators200_response_spec.rb +21 -0
  654. data/client/spec/models/get_moderators_response_spec.rb +42 -0
  655. data/client/spec/models/get_my_notifications_response_spec.rb +2 -2
  656. data/client/spec/models/get_notification_count200_response_spec.rb +21 -0
  657. data/client/spec/models/get_notification_count_response_spec.rb +42 -0
  658. data/client/spec/models/get_notifications200_response_spec.rb +21 -0
  659. data/client/spec/models/get_notifications_response_spec.rb +42 -0
  660. data/client/spec/models/get_page_by_urlid_api_response_spec.rb +2 -2
  661. data/client/spec/models/get_pages_api_response_spec.rb +2 -2
  662. data/client/spec/models/get_pending_webhook_event_count200_response_spec.rb +21 -0
  663. data/client/spec/models/get_pending_webhook_event_count_response_spec.rb +42 -0
  664. data/client/spec/models/get_pending_webhook_events200_response_spec.rb +21 -0
  665. data/client/spec/models/get_pending_webhook_events_response_spec.rb +42 -0
  666. data/client/spec/models/get_public_feed_posts_response_spec.rb +2 -2
  667. data/client/spec/models/get_question_config200_response_spec.rb +21 -0
  668. data/client/spec/models/get_question_config_response_spec.rb +42 -0
  669. data/client/spec/models/get_question_configs200_response_spec.rb +21 -0
  670. data/client/spec/models/get_question_configs_response_spec.rb +42 -0
  671. data/client/spec/models/get_question_result200_response_spec.rb +21 -0
  672. data/client/spec/models/get_question_result_response_spec.rb +42 -0
  673. data/client/spec/models/get_question_results200_response_spec.rb +21 -0
  674. data/client/spec/models/get_question_results_response_spec.rb +42 -0
  675. data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +2 -2
  676. data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +2 -2
  677. data/client/spec/models/get_sso_users200_response_spec.rb +2 -2
  678. data/client/spec/models/get_subscriptions_api_response_spec.rb +2 -2
  679. data/client/spec/models/get_tenant200_response_spec.rb +21 -0
  680. data/client/spec/models/get_tenant_daily_usages200_response_spec.rb +21 -0
  681. data/client/spec/models/get_tenant_daily_usages_response_spec.rb +42 -0
  682. data/client/spec/models/get_tenant_package200_response_spec.rb +21 -0
  683. data/client/spec/models/get_tenant_package_response_spec.rb +42 -0
  684. data/client/spec/models/get_tenant_packages200_response_spec.rb +21 -0
  685. data/client/spec/models/get_tenant_packages_response_spec.rb +42 -0
  686. data/client/spec/models/get_tenant_response_spec.rb +42 -0
  687. data/client/spec/models/get_tenant_user200_response_spec.rb +21 -0
  688. data/client/spec/models/get_tenant_user_response_spec.rb +42 -0
  689. data/client/spec/models/get_tenant_users200_response_spec.rb +21 -0
  690. data/client/spec/models/get_tenant_users_response_spec.rb +42 -0
  691. data/client/spec/models/get_tenants200_response_spec.rb +21 -0
  692. data/client/spec/models/get_tenants_response_spec.rb +42 -0
  693. data/client/spec/models/{vote_response_status_spec.rb → get_user200_response_spec.rb} +3 -3
  694. data/client/spec/models/get_user_badge200_response_spec.rb +1 -1
  695. data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +1 -1
  696. data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +1 -1
  697. data/client/spec/models/get_user_badges200_response_spec.rb +1 -1
  698. data/client/spec/models/get_user_notification_count200_response_spec.rb +1 -1
  699. data/client/spec/models/get_user_notification_count_response_spec.rb +2 -2
  700. data/client/spec/models/get_user_notifications200_response_spec.rb +1 -1
  701. data/client/spec/models/get_user_presence_statuses200_response_spec.rb +1 -1
  702. data/client/spec/models/get_user_presence_statuses_response_spec.rb +2 -2
  703. data/client/spec/models/get_user_reacts_public200_response_spec.rb +1 -1
  704. data/client/spec/models/get_user_response_spec.rb +42 -0
  705. data/client/spec/models/get_votes200_response_spec.rb +21 -0
  706. data/client/spec/models/get_votes_for_user200_response_spec.rb +21 -0
  707. data/client/spec/models/get_votes_for_user_response_spec.rb +54 -0
  708. data/client/spec/models/get_votes_response_spec.rb +54 -0
  709. data/client/spec/models/gif_rating_spec.rb +2 -2
  710. data/client/spec/models/header_state_spec.rb +2 -2
  711. data/client/spec/models/ignored_response_spec.rb +2 -2
  712. data/client/spec/models/image_content_profanity_level_spec.rb +2 -2
  713. data/client/spec/models/imported_site_type_spec.rb +30 -0
  714. data/client/spec/models/live_event_extra_info_spec.rb +2 -2
  715. data/client/spec/models/live_event_spec.rb +2 -2
  716. data/client/spec/models/live_event_type_spec.rb +2 -2
  717. data/client/spec/models/lock_comment200_response_spec.rb +1 -1
  718. data/client/spec/models/media_asset_spec.rb +2 -2
  719. data/client/spec/models/meta_item_spec.rb +2 -2
  720. data/client/spec/models/moderator_spec.rb +138 -0
  721. data/client/spec/models/notification_and_count_spec.rb +2 -2
  722. data/client/spec/models/notification_object_type_spec.rb +2 -2
  723. data/client/spec/models/notification_type_spec.rb +2 -2
  724. data/client/spec/models/patch_domain_config_params_spec.rb +2 -2
  725. data/client/spec/models/patch_hash_tag200_response_spec.rb +21 -0
  726. data/client/spec/models/patch_page_api_response_spec.rb +2 -2
  727. data/client/spec/models/patch_sso_user_api_response_spec.rb +2 -2
  728. data/client/spec/models/pending_comment_to_sync_outbound_spec.rb +108 -0
  729. data/client/spec/models/pin_comment200_response_spec.rb +1 -1
  730. data/client/spec/models/pub_sub_comment_base_spec.rb +2 -2
  731. data/client/spec/models/pub_sub_comment_spec.rb +2 -2
  732. data/client/spec/models/pub_sub_vote_spec.rb +2 -2
  733. data/client/spec/models/public_api_delete_comment_response_spec.rb +2 -2
  734. data/client/spec/models/public_api_get_comment_text_response_spec.rb +2 -2
  735. data/client/spec/models/public_api_set_comment_text_response_spec.rb +2 -2
  736. data/client/spec/models/public_block_from_comment_params_spec.rb +2 -2
  737. data/client/spec/models/public_comment_base_spec.rb +8 -2
  738. data/client/spec/models/public_comment_spec.rb +8 -2
  739. data/client/spec/models/public_feed_posts_response_spec.rb +2 -2
  740. data/client/spec/models/public_vote_spec.rb +66 -0
  741. data/client/spec/models/put_sso_user_api_response_spec.rb +2 -2
  742. data/client/spec/models/query_predicate_spec.rb +2 -2
  743. data/client/spec/models/query_predicate_value_spec.rb +1 -1
  744. data/client/spec/models/question_config_custom_options_inner_spec.rb +42 -0
  745. data/client/spec/models/question_config_spec.rb +156 -0
  746. data/client/spec/models/question_datum_spec.rb +2 -2
  747. data/client/spec/models/question_rendering_type_spec.rb +2 -2
  748. data/client/spec/models/question_result_aggregation_overall_spec.rb +2 -2
  749. data/client/spec/models/question_result_spec.rb +2 -2
  750. data/client/spec/models/question_sub_question_visibility_spec.rb +2 -2
  751. data/client/spec/models/question_when_save_spec.rb +2 -2
  752. data/client/spec/models/react_body_params_spec.rb +2 -2
  753. data/client/spec/models/react_feed_post_public200_response_spec.rb +1 -1
  754. data/client/spec/models/react_feed_post_response_spec.rb +2 -2
  755. data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +2 -2
  756. data/client/spec/models/record_string_string_or_number_value_spec.rb +1 -1
  757. data/client/spec/models/render_email_template200_response_spec.rb +21 -0
  758. data/client/spec/models/render_email_template_body_spec.rb +54 -0
  759. data/client/spec/models/render_email_template_response_spec.rb +42 -0
  760. data/client/spec/models/renderable_user_notification_spec.rb +2 -2
  761. data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +2 -2
  762. data/client/spec/models/repeat_comment_handling_action_spec.rb +2 -2
  763. data/client/spec/models/replace_tenant_package_body_spec.rb +210 -0
  764. data/client/spec/models/replace_tenant_user_body_spec.rb +198 -0
  765. data/client/spec/models/reset_user_notifications200_response_spec.rb +1 -1
  766. data/client/spec/models/reset_user_notifications_response_spec.rb +2 -2
  767. data/client/spec/models/save_comment200_response_spec.rb +1 -1
  768. data/client/spec/models/save_comment_response_optimized_spec.rb +2 -2
  769. data/client/spec/models/save_comment_response_spec.rb +2 -2
  770. data/client/spec/models/save_comments_response_with_presence_spec.rb +2 -2
  771. data/client/spec/models/search_users200_response_spec.rb +1 -1
  772. data/client/spec/models/search_users_response_spec.rb +2 -2
  773. data/client/spec/models/set_comment_text200_response_spec.rb +1 -1
  774. data/client/spec/models/set_comment_text_result_spec.rb +2 -2
  775. data/client/spec/models/size_preset_spec.rb +2 -2
  776. data/client/spec/models/sort_directions_spec.rb +2 -2
  777. data/client/spec/models/sortdir_spec.rb +2 -2
  778. data/client/spec/models/spam_rule_spec.rb +2 -2
  779. data/client/spec/models/sso_security_level_spec.rb +2 -2
  780. data/client/spec/models/tenant_hash_tag_spec.rb +60 -0
  781. data/client/spec/models/tenant_package_spec.rb +342 -0
  782. data/client/spec/models/un_block_comment_public200_response_spec.rb +1 -1
  783. data/client/spec/models/un_block_from_comment_params_spec.rb +2 -2
  784. data/client/spec/models/unblock_success_spec.rb +2 -2
  785. data/client/spec/models/updatable_comment_params_spec.rb +2 -2
  786. data/client/spec/models/update_api_page_data_spec.rb +2 -2
  787. data/client/spec/models/update_apisso_user_data_spec.rb +2 -2
  788. data/client/spec/models/update_domain_config_params_spec.rb +2 -2
  789. data/client/spec/models/update_email_template_body_spec.rb +66 -0
  790. data/client/spec/models/update_feed_post_params_spec.rb +2 -2
  791. data/client/spec/models/update_hash_tag_body_spec.rb +48 -0
  792. data/client/spec/models/update_hash_tag_response_spec.rb +42 -0
  793. data/client/spec/models/update_moderator_body_spec.rb +54 -0
  794. data/client/spec/models/update_notification_body_spec.rb +42 -0
  795. data/client/spec/models/update_question_config_body_spec.rb +114 -0
  796. data/client/spec/models/update_question_result_body_spec.rb +72 -0
  797. data/client/spec/models/update_tenant_body_spec.rb +174 -0
  798. data/client/spec/models/update_tenant_package_body_spec.rb +216 -0
  799. data/client/spec/models/update_tenant_user_body_spec.rb +174 -0
  800. data/client/spec/models/update_user_badge200_response_spec.rb +1 -1
  801. data/client/spec/models/update_user_badge_params_spec.rb +2 -2
  802. data/client/spec/models/update_user_notification_status200_response_spec.rb +1 -1
  803. data/client/spec/models/upload_image_response_spec.rb +2 -2
  804. data/client/spec/models/user_badge_progress_spec.rb +2 -2
  805. data/client/spec/models/user_badge_spec.rb +2 -2
  806. data/client/spec/models/user_notification_count_spec.rb +54 -0
  807. data/client/spec/models/user_notification_spec.rb +2 -2
  808. data/client/spec/models/user_notification_write_response_spec.rb +2 -2
  809. data/client/spec/models/user_presence_data_spec.rb +2 -2
  810. data/client/spec/models/user_reacts_response_spec.rb +2 -2
  811. data/client/spec/models/user_search_result_spec.rb +2 -2
  812. data/client/spec/models/user_session_info_spec.rb +2 -2
  813. data/client/spec/models/user_spec.rb +336 -0
  814. data/client/spec/models/vote_body_params_spec.rb +2 -2
  815. data/client/spec/models/vote_comment200_response_spec.rb +1 -1
  816. data/client/spec/models/vote_delete_response_spec.rb +2 -2
  817. data/client/spec/models/vote_response_spec.rb +6 -2
  818. data/client/spec/models/vote_response_user_spec.rb +2 -2
  819. data/client/spec/models/vote_style_spec.rb +2 -2
  820. data/client/spec/spec_helper.rb +1 -1
  821. data/lib/fastcomments.rb +2 -1
  822. metadata +360 -5
@@ -0,0 +1,212 @@
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.18.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ class GetUserResponse < ApiModelBase
18
+ attr_accessor :status
19
+
20
+ attr_accessor :user
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'status' => :'status',
48
+ :'user' => :'user'
49
+ }
50
+ end
51
+
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
57
+ # Returns all the JSON keys this model knows about
58
+ def self.acceptable_attributes
59
+ acceptable_attribute_map.values
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'status' => :'APIStatus',
66
+ :'user' => :'User'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::GetUserResponse` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::GetUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'status')
93
+ self.status = attributes[:'status']
94
+ else
95
+ self.status = nil
96
+ end
97
+
98
+ if attributes.key?(:'user')
99
+ self.user = attributes[:'user']
100
+ else
101
+ self.user = nil
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
+ invalid_properties = Array.new
110
+ if @status.nil?
111
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
112
+ end
113
+
114
+ if @user.nil?
115
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
116
+ end
117
+
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ return false if @status.nil?
126
+ return false if @user.nil?
127
+ true
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param [Object] status Value to be assigned
132
+ def status=(status)
133
+ if status.nil?
134
+ fail ArgumentError, 'status cannot be nil'
135
+ end
136
+
137
+ @status = status
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] user Value to be assigned
142
+ def user=(user)
143
+ if user.nil?
144
+ fail ArgumentError, 'user cannot be nil'
145
+ end
146
+
147
+ @user = user
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ status == o.status &&
156
+ user == o.user
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [status, user].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ end
211
+
212
+ end
@@ -0,0 +1,103 @@
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.18.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ module GetVotes200Response
18
+ class << self
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
+ [
22
+ :'APIError',
23
+ :'GetVotesResponse'
24
+ ]
25
+ end
26
+
27
+ # Builds the object
28
+ # @param [Mixed] Data to be matched against the list of anyOf items
29
+ # @return [Object] Returns the model or the data itself
30
+ def build(data)
31
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
32
+ # Note:
33
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
+ # - TODO: scalar values are de facto behaving as if they were nullable.
36
+ # - TODO: logging when debugging is set.
37
+ openapi_any_of.each do |klass|
38
+ begin
39
+ next if klass == :AnyType # "nullable: true"
40
+ return find_and_cast_into_type(klass, data)
41
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
42
+ end
43
+ end
44
+
45
+ openapi_any_of.include?(:AnyType) ? data : nil
46
+ end
47
+
48
+ private
49
+
50
+ SchemaMismatchError = Class.new(StandardError)
51
+
52
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
53
+ def find_and_cast_into_type(klass, data)
54
+ return if data.nil?
55
+
56
+ case klass.to_s
57
+ when 'Boolean'
58
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
59
+ when 'Float'
60
+ return data if data.instance_of?(Float)
61
+ when 'Integer'
62
+ return data if data.instance_of?(Integer)
63
+ when 'Time'
64
+ return Time.parse(data)
65
+ when 'Date'
66
+ return Date.iso8601(data)
67
+ when 'String'
68
+ return data if data.instance_of?(String)
69
+ when 'Object' # "type: object"
70
+ return data if data.instance_of?(Hash)
71
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
72
+ if data.instance_of?(Array)
73
+ sub_type = Regexp.last_match[:sub_type]
74
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
75
+ end
76
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
77
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
78
+ sub_type = Regexp.last_match[:sub_type]
79
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
80
+ end
81
+ else # model
82
+ const = FastCommentsClient.const_get(klass)
83
+ if const
84
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
85
+ model = const.build(data)
86
+ return model if model
87
+ else
88
+ # raise if data contains keys that are not known to the model
89
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
+ model = const.build_from_hash(data)
91
+ return model if model
92
+ end
93
+ end
94
+ end
95
+
96
+ raise # if no match by now, raise
97
+ rescue
98
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
99
+ end
100
+ end
101
+ end
102
+
103
+ end
@@ -0,0 +1,103 @@
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.18.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ module GetVotesForUser200Response
18
+ class << self
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
+ [
22
+ :'APIError',
23
+ :'GetVotesForUserResponse'
24
+ ]
25
+ end
26
+
27
+ # Builds the object
28
+ # @param [Mixed] Data to be matched against the list of anyOf items
29
+ # @return [Object] Returns the model or the data itself
30
+ def build(data)
31
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
32
+ # Note:
33
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
+ # - TODO: scalar values are de facto behaving as if they were nullable.
36
+ # - TODO: logging when debugging is set.
37
+ openapi_any_of.each do |klass|
38
+ begin
39
+ next if klass == :AnyType # "nullable: true"
40
+ return find_and_cast_into_type(klass, data)
41
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
42
+ end
43
+ end
44
+
45
+ openapi_any_of.include?(:AnyType) ? data : nil
46
+ end
47
+
48
+ private
49
+
50
+ SchemaMismatchError = Class.new(StandardError)
51
+
52
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
53
+ def find_and_cast_into_type(klass, data)
54
+ return if data.nil?
55
+
56
+ case klass.to_s
57
+ when 'Boolean'
58
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
59
+ when 'Float'
60
+ return data if data.instance_of?(Float)
61
+ when 'Integer'
62
+ return data if data.instance_of?(Integer)
63
+ when 'Time'
64
+ return Time.parse(data)
65
+ when 'Date'
66
+ return Date.iso8601(data)
67
+ when 'String'
68
+ return data if data.instance_of?(String)
69
+ when 'Object' # "type: object"
70
+ return data if data.instance_of?(Hash)
71
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
72
+ if data.instance_of?(Array)
73
+ sub_type = Regexp.last_match[:sub_type]
74
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
75
+ end
76
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
77
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
78
+ sub_type = Regexp.last_match[:sub_type]
79
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
80
+ end
81
+ else # model
82
+ const = FastCommentsClient.const_get(klass)
83
+ if const
84
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
85
+ model = const.build(data)
86
+ return model if model
87
+ else
88
+ # raise if data contains keys that are not known to the model
89
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
+ model = const.build_from_hash(data)
91
+ return model if model
92
+ end
93
+ end
94
+ end
95
+
96
+ raise # if no match by now, raise
97
+ rescue
98
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
99
+ end
100
+ end
101
+ end
102
+
103
+ end
@@ -0,0 +1,270 @@
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.18.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ class GetVotesForUserResponse < ApiModelBase
18
+ attr_accessor :status
19
+
20
+ attr_accessor :applied_authorized_votes
21
+
22
+ attr_accessor :applied_anonymous_votes
23
+
24
+ attr_accessor :pending_votes
25
+
26
+ class EnumAttributeValidator
27
+ attr_reader :datatype
28
+ attr_reader :allowable_values
29
+
30
+ def initialize(datatype, allowable_values)
31
+ @allowable_values = allowable_values.map do |value|
32
+ case datatype.to_s
33
+ when /Integer/i
34
+ value.to_i
35
+ when /Float/i
36
+ value.to_f
37
+ else
38
+ value
39
+ end
40
+ end
41
+ end
42
+
43
+ def valid?(value)
44
+ !value || allowable_values.include?(value)
45
+ end
46
+ end
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'status' => :'status',
52
+ :'applied_authorized_votes' => :'appliedAuthorizedVotes',
53
+ :'applied_anonymous_votes' => :'appliedAnonymousVotes',
54
+ :'pending_votes' => :'pendingVotes'
55
+ }
56
+ end
57
+
58
+ # Returns attribute mapping this model knows about
59
+ def self.acceptable_attribute_map
60
+ attribute_map
61
+ end
62
+
63
+ # Returns all the JSON keys this model knows about
64
+ def self.acceptable_attributes
65
+ acceptable_attribute_map.values
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.openapi_types
70
+ {
71
+ :'status' => :'APIStatus',
72
+ :'applied_authorized_votes' => :'Array<PublicVote>',
73
+ :'applied_anonymous_votes' => :'Array<PublicVote>',
74
+ :'pending_votes' => :'Array<PublicVote>'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::GetVotesForUserResponse` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ acceptable_attribute_map = self.class.acceptable_attribute_map
93
+ attributes = attributes.each_with_object({}) { |(k, v), h|
94
+ if (!acceptable_attribute_map.key?(k.to_sym))
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::GetVotesForUserResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
+ end
97
+ h[k.to_sym] = v
98
+ }
99
+
100
+ if attributes.key?(:'status')
101
+ self.status = attributes[:'status']
102
+ else
103
+ self.status = nil
104
+ end
105
+
106
+ if attributes.key?(:'applied_authorized_votes')
107
+ if (value = attributes[:'applied_authorized_votes']).is_a?(Array)
108
+ self.applied_authorized_votes = value
109
+ end
110
+ else
111
+ self.applied_authorized_votes = nil
112
+ end
113
+
114
+ if attributes.key?(:'applied_anonymous_votes')
115
+ if (value = attributes[:'applied_anonymous_votes']).is_a?(Array)
116
+ self.applied_anonymous_votes = value
117
+ end
118
+ else
119
+ self.applied_anonymous_votes = nil
120
+ end
121
+
122
+ if attributes.key?(:'pending_votes')
123
+ if (value = attributes[:'pending_votes']).is_a?(Array)
124
+ self.pending_votes = value
125
+ end
126
+ else
127
+ self.pending_votes = nil
128
+ end
129
+ end
130
+
131
+ # Show invalid properties with the reasons. Usually used together with valid?
132
+ # @return Array for valid properties with the reasons
133
+ def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
+ invalid_properties = Array.new
136
+ if @status.nil?
137
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
138
+ end
139
+
140
+ if @applied_authorized_votes.nil?
141
+ invalid_properties.push('invalid value for "applied_authorized_votes", applied_authorized_votes cannot be nil.')
142
+ end
143
+
144
+ if @applied_anonymous_votes.nil?
145
+ invalid_properties.push('invalid value for "applied_anonymous_votes", applied_anonymous_votes cannot be nil.')
146
+ end
147
+
148
+ if @pending_votes.nil?
149
+ invalid_properties.push('invalid value for "pending_votes", pending_votes cannot be nil.')
150
+ end
151
+
152
+ invalid_properties
153
+ end
154
+
155
+ # Check to see if the all the properties in the model are valid
156
+ # @return true if the model is valid
157
+ def valid?
158
+ warn '[DEPRECATED] the `valid?` method is obsolete'
159
+ return false if @status.nil?
160
+ return false if @applied_authorized_votes.nil?
161
+ return false if @applied_anonymous_votes.nil?
162
+ return false if @pending_votes.nil?
163
+ true
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param [Object] status Value to be assigned
168
+ def status=(status)
169
+ if status.nil?
170
+ fail ArgumentError, 'status cannot be nil'
171
+ end
172
+
173
+ @status = status
174
+ end
175
+
176
+ # Custom attribute writer method with validation
177
+ # @param [Object] applied_authorized_votes Value to be assigned
178
+ def applied_authorized_votes=(applied_authorized_votes)
179
+ if applied_authorized_votes.nil?
180
+ fail ArgumentError, 'applied_authorized_votes cannot be nil'
181
+ end
182
+
183
+ @applied_authorized_votes = applied_authorized_votes
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] applied_anonymous_votes Value to be assigned
188
+ def applied_anonymous_votes=(applied_anonymous_votes)
189
+ if applied_anonymous_votes.nil?
190
+ fail ArgumentError, 'applied_anonymous_votes cannot be nil'
191
+ end
192
+
193
+ @applied_anonymous_votes = applied_anonymous_votes
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] pending_votes Value to be assigned
198
+ def pending_votes=(pending_votes)
199
+ if pending_votes.nil?
200
+ fail ArgumentError, 'pending_votes cannot be nil'
201
+ end
202
+
203
+ @pending_votes = pending_votes
204
+ end
205
+
206
+ # Checks equality by comparing each attribute.
207
+ # @param [Object] Object to be compared
208
+ def ==(o)
209
+ return true if self.equal?(o)
210
+ self.class == o.class &&
211
+ status == o.status &&
212
+ applied_authorized_votes == o.applied_authorized_votes &&
213
+ applied_anonymous_votes == o.applied_anonymous_votes &&
214
+ pending_votes == o.pending_votes
215
+ end
216
+
217
+ # @see the `==` method
218
+ # @param [Object] Object to be compared
219
+ def eql?(o)
220
+ self == o
221
+ end
222
+
223
+ # Calculates hash code according to all attributes.
224
+ # @return [Integer] Hash code
225
+ def hash
226
+ [status, applied_authorized_votes, applied_anonymous_votes, pending_votes].hash
227
+ end
228
+
229
+ # Builds the object from hash
230
+ # @param [Hash] attributes Model attributes in the form of hash
231
+ # @return [Object] Returns the model itself
232
+ def self.build_from_hash(attributes)
233
+ return nil unless attributes.is_a?(Hash)
234
+ attributes = attributes.transform_keys(&:to_sym)
235
+ transformed_hash = {}
236
+ openapi_types.each_pair do |key, type|
237
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
238
+ transformed_hash["#{key}"] = nil
239
+ elsif type =~ /\AArray<(.*)>/i
240
+ # check to ensure the input is an array given that the attribute
241
+ # is documented as an array but the input is not
242
+ if attributes[attribute_map[key]].is_a?(Array)
243
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
244
+ end
245
+ elsif !attributes[attribute_map[key]].nil?
246
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
247
+ end
248
+ end
249
+ new(transformed_hash)
250
+ end
251
+
252
+ # Returns the object in the form of hash
253
+ # @return [Hash] Returns the object in the form of hash
254
+ def to_hash
255
+ hash = {}
256
+ self.class.attribute_map.each_pair do |attr, param|
257
+ value = self.send(attr)
258
+ if value.nil?
259
+ is_nullable = self.class.openapi_nullable.include?(attr)
260
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
261
+ end
262
+
263
+ hash[param] = _to_hash(value)
264
+ end
265
+ hash
266
+ end
267
+
268
+ end
269
+
270
+ end