moderation_api 1.2.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. checksums.yaml +4 -4
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +28 -0
  4. data/README.md +200 -62
  5. data/SECURITY.md +27 -0
  6. data/lib/moderation_api/client.rb +98 -0
  7. data/lib/moderation_api/errors.rb +228 -0
  8. data/lib/moderation_api/file_part.rb +58 -0
  9. data/lib/moderation_api/internal/transport/base_client.rb +577 -0
  10. data/lib/moderation_api/internal/transport/pooled_net_requester.rb +208 -0
  11. data/lib/moderation_api/internal/type/array_of.rb +168 -0
  12. data/lib/moderation_api/internal/type/base_model.rb +534 -0
  13. data/lib/moderation_api/internal/type/base_page.rb +55 -0
  14. data/lib/moderation_api/internal/type/boolean.rb +77 -0
  15. data/lib/moderation_api/internal/type/converter.rb +327 -0
  16. data/lib/moderation_api/internal/type/enum.rb +131 -0
  17. data/lib/moderation_api/internal/type/file_input.rb +111 -0
  18. data/lib/moderation_api/internal/type/hash_of.rb +188 -0
  19. data/lib/moderation_api/internal/type/request_parameters.rb +42 -0
  20. data/lib/moderation_api/internal/type/union.rb +243 -0
  21. data/lib/moderation_api/internal/type/unknown.rb +81 -0
  22. data/lib/moderation_api/internal/util.rb +915 -0
  23. data/lib/moderation_api/internal.rb +20 -0
  24. data/lib/moderation_api/models/account_list_params.rb +14 -0
  25. data/lib/moderation_api/models/account_list_response.rb +68 -0
  26. data/lib/moderation_api/models/action_create_params.rb +217 -0
  27. data/lib/moderation_api/models/action_create_response.rb +188 -0
  28. data/lib/moderation_api/models/action_delete_params.rb +14 -0
  29. data/lib/moderation_api/models/action_delete_response.rb +25 -0
  30. data/lib/moderation_api/models/action_list_params.rb +20 -0
  31. data/lib/moderation_api/models/action_list_response.rb +247 -0
  32. data/lib/moderation_api/models/action_retrieve_params.rb +14 -0
  33. data/lib/moderation_api/models/action_retrieve_response.rb +244 -0
  34. data/lib/moderation_api/models/action_update_params.rb +217 -0
  35. data/lib/moderation_api/models/action_update_response.rb +188 -0
  36. data/lib/moderation_api/models/actions/execute_execute_by_id_params.rb +48 -0
  37. data/lib/moderation_api/models/actions/execute_execute_by_id_response.rb +35 -0
  38. data/lib/moderation_api/models/actions/execute_execute_params.rb +64 -0
  39. data/lib/moderation_api/models/actions/execute_execute_response.rb +21 -0
  40. data/lib/moderation_api/models/auth_create_params.rb +14 -0
  41. data/lib/moderation_api/models/auth_create_response.rb +33 -0
  42. data/lib/moderation_api/models/auth_retrieve_params.rb +14 -0
  43. data/lib/moderation_api/models/auth_retrieve_response.rb +25 -0
  44. data/lib/moderation_api/models/author_create_params.rb +127 -0
  45. data/lib/moderation_api/models/author_create_response.rb +272 -0
  46. data/lib/moderation_api/models/author_delete_params.rb +14 -0
  47. data/lib/moderation_api/models/author_delete_response.rb +16 -0
  48. data/lib/moderation_api/models/author_list_params.rb +93 -0
  49. data/lib/moderation_api/models/author_list_response.rb +326 -0
  50. data/lib/moderation_api/models/author_retrieve_params.rb +14 -0
  51. data/lib/moderation_api/models/author_retrieve_response.rb +274 -0
  52. data/lib/moderation_api/models/author_update_params.rb +119 -0
  53. data/lib/moderation_api/models/author_update_response.rb +272 -0
  54. data/lib/moderation_api/models/content_submit_params.rb +871 -0
  55. data/lib/moderation_api/models/content_submit_response.rb +742 -0
  56. data/lib/moderation_api/models/queue/item_list_params.rb +118 -0
  57. data/lib/moderation_api/models/queue/item_list_response.rb +235 -0
  58. data/lib/moderation_api/models/queue/item_resolve_params.rb +32 -0
  59. data/lib/moderation_api/models/queue/item_resolve_response.rb +34 -0
  60. data/lib/moderation_api/models/queue/item_unresolve_params.rb +32 -0
  61. data/lib/moderation_api/models/queue/item_unresolve_response.rb +34 -0
  62. data/lib/moderation_api/models/queue_get_stats_params.rb +22 -0
  63. data/lib/moderation_api/models/queue_get_stats_response.rb +251 -0
  64. data/lib/moderation_api/models/queue_retrieve_params.rb +14 -0
  65. data/lib/moderation_api/models/queue_retrieve_response.rb +190 -0
  66. data/lib/moderation_api/models/wordlist/word_add_params.rb +24 -0
  67. data/lib/moderation_api/models/wordlist/word_add_response.rb +35 -0
  68. data/lib/moderation_api/models/wordlist/word_remove_params.rb +24 -0
  69. data/lib/moderation_api/models/wordlist/word_remove_response.rb +35 -0
  70. data/lib/moderation_api/models/wordlist_get_embedding_status_params.rb +14 -0
  71. data/lib/moderation_api/models/wordlist_get_embedding_status_response.rb +35 -0
  72. data/lib/moderation_api/models/wordlist_list_params.rb +14 -0
  73. data/lib/moderation_api/models/wordlist_list_response.rb +52 -0
  74. data/lib/moderation_api/models/wordlist_retrieve_params.rb +14 -0
  75. data/lib/moderation_api/models/wordlist_retrieve_response.rb +65 -0
  76. data/lib/moderation_api/models/wordlist_update_params.rb +58 -0
  77. data/lib/moderation_api/models/wordlist_update_response.rb +65 -0
  78. data/lib/moderation_api/models.rb +90 -0
  79. data/lib/moderation_api/request_options.rb +78 -0
  80. data/lib/moderation_api/resources/account.rb +32 -0
  81. data/lib/moderation_api/resources/actions/execute.rb +80 -0
  82. data/lib/moderation_api/resources/actions.rb +175 -0
  83. data/lib/moderation_api/resources/auth.rb +50 -0
  84. data/lib/moderation_api/resources/authors.rb +179 -0
  85. data/lib/moderation_api/resources/content.rb +53 -0
  86. data/lib/moderation_api/resources/queue/items.rb +131 -0
  87. data/lib/moderation_api/resources/queue.rb +63 -0
  88. data/lib/moderation_api/resources/wordlist/words.rb +64 -0
  89. data/lib/moderation_api/resources/wordlist.rb +111 -0
  90. data/lib/moderation_api/version.rb +2 -12
  91. data/lib/moderation_api.rb +115 -89
  92. data/manifest.yaml +17 -0
  93. data/rbi/moderation_api/client.rbi +67 -0
  94. data/rbi/moderation_api/errors.rbi +205 -0
  95. data/rbi/moderation_api/file_part.rbi +37 -0
  96. data/rbi/moderation_api/internal/transport/base_client.rbi +305 -0
  97. data/rbi/moderation_api/internal/transport/pooled_net_requester.rbi +84 -0
  98. data/rbi/moderation_api/internal/type/array_of.rbi +104 -0
  99. data/rbi/moderation_api/internal/type/base_model.rbi +314 -0
  100. data/rbi/moderation_api/internal/type/base_page.rbi +43 -0
  101. data/rbi/moderation_api/internal/type/boolean.rbi +58 -0
  102. data/rbi/moderation_api/internal/type/converter.rbi +225 -0
  103. data/rbi/moderation_api/internal/type/enum.rbi +82 -0
  104. data/rbi/moderation_api/internal/type/file_input.rbi +59 -0
  105. data/rbi/moderation_api/internal/type/hash_of.rbi +104 -0
  106. data/rbi/moderation_api/internal/type/request_parameters.rbi +31 -0
  107. data/rbi/moderation_api/internal/type/union.rbi +128 -0
  108. data/rbi/moderation_api/internal/type/unknown.rbi +58 -0
  109. data/rbi/moderation_api/internal/util.rbi +487 -0
  110. data/rbi/moderation_api/internal.rbi +18 -0
  111. data/rbi/moderation_api/models/account_list_params.rbi +32 -0
  112. data/rbi/moderation_api/models/account_list_response.rbi +115 -0
  113. data/rbi/moderation_api/models/action_create_params.rbi +433 -0
  114. data/rbi/moderation_api/models/action_create_response.rbi +354 -0
  115. data/rbi/moderation_api/models/action_delete_params.rbi +32 -0
  116. data/rbi/moderation_api/models/action_delete_response.rbi +36 -0
  117. data/rbi/moderation_api/models/action_list_params.rbi +41 -0
  118. data/rbi/moderation_api/models/action_list_response.rbi +450 -0
  119. data/rbi/moderation_api/models/action_retrieve_params.rbi +32 -0
  120. data/rbi/moderation_api/models/action_retrieve_response.rbi +442 -0
  121. data/rbi/moderation_api/models/action_update_params.rbi +436 -0
  122. data/rbi/moderation_api/models/action_update_response.rbi +354 -0
  123. data/rbi/moderation_api/models/actions/execute_execute_by_id_params.rbi +84 -0
  124. data/rbi/moderation_api/models/actions/execute_execute_by_id_response.rbi +54 -0
  125. data/rbi/moderation_api/models/actions/execute_execute_params.rbi +103 -0
  126. data/rbi/moderation_api/models/actions/execute_execute_response.rbi +33 -0
  127. data/rbi/moderation_api/models/auth_create_params.rbi +32 -0
  128. data/rbi/moderation_api/models/auth_create_response.rbi +48 -0
  129. data/rbi/moderation_api/models/auth_retrieve_params.rbi +32 -0
  130. data/rbi/moderation_api/models/auth_retrieve_response.rbi +36 -0
  131. data/rbi/moderation_api/models/author_create_params.rbi +184 -0
  132. data/rbi/moderation_api/models/author_create_response.rbi +467 -0
  133. data/rbi/moderation_api/models/author_delete_params.rbi +32 -0
  134. data/rbi/moderation_api/models/author_delete_response.rbi +26 -0
  135. data/rbi/moderation_api/models/author_list_params.rbi +213 -0
  136. data/rbi/moderation_api/models/author_list_response.rbi +593 -0
  137. data/rbi/moderation_api/models/author_retrieve_params.rbi +32 -0
  138. data/rbi/moderation_api/models/author_retrieve_response.rbi +472 -0
  139. data/rbi/moderation_api/models/author_update_params.rbi +176 -0
  140. data/rbi/moderation_api/models/author_update_response.rbi +467 -0
  141. data/rbi/moderation_api/models/content_submit_params.rbi +1641 -0
  142. data/rbi/moderation_api/models/content_submit_response.rbi +1456 -0
  143. data/rbi/moderation_api/models/queue/item_list_params.rbi +237 -0
  144. data/rbi/moderation_api/models/queue/item_list_response.rbi +440 -0
  145. data/rbi/moderation_api/models/queue/item_resolve_params.rbi +59 -0
  146. data/rbi/moderation_api/models/queue/item_resolve_response.rbi +55 -0
  147. data/rbi/moderation_api/models/queue/item_unresolve_params.rbi +59 -0
  148. data/rbi/moderation_api/models/queue/item_unresolve_response.rbi +52 -0
  149. data/rbi/moderation_api/models/queue_get_stats_params.rbi +49 -0
  150. data/rbi/moderation_api/models/queue_get_stats_response.rbi +466 -0
  151. data/rbi/moderation_api/models/queue_retrieve_params.rbi +32 -0
  152. data/rbi/moderation_api/models/queue_retrieve_response.rbi +411 -0
  153. data/rbi/moderation_api/models/wordlist/word_add_params.rbi +48 -0
  154. data/rbi/moderation_api/models/wordlist/word_add_response.rbi +58 -0
  155. data/rbi/moderation_api/models/wordlist/word_remove_params.rbi +48 -0
  156. data/rbi/moderation_api/models/wordlist/word_remove_response.rbi +58 -0
  157. data/rbi/moderation_api/models/wordlist_get_embedding_status_params.rbi +32 -0
  158. data/rbi/moderation_api/models/wordlist_get_embedding_status_response.rbi +53 -0
  159. data/rbi/moderation_api/models/wordlist_list_params.rbi +32 -0
  160. data/rbi/moderation_api/models/wordlist_list_response.rbi +80 -0
  161. data/rbi/moderation_api/models/wordlist_retrieve_params.rbi +32 -0
  162. data/rbi/moderation_api/models/wordlist_retrieve_response.rbi +88 -0
  163. data/rbi/moderation_api/models/wordlist_update_params.rbi +95 -0
  164. data/rbi/moderation_api/models/wordlist_update_response.rbi +88 -0
  165. data/rbi/moderation_api/models.rbi +50 -0
  166. data/rbi/moderation_api/request_options.rbi +59 -0
  167. data/rbi/moderation_api/resources/account.rbi +21 -0
  168. data/rbi/moderation_api/resources/actions/execute.rbi +69 -0
  169. data/rbi/moderation_api/resources/actions.rbi +164 -0
  170. data/rbi/moderation_api/resources/auth.rbi +28 -0
  171. data/rbi/moderation_api/resources/authors.rbi +143 -0
  172. data/rbi/moderation_api/resources/content.rbi +84 -0
  173. data/rbi/moderation_api/resources/queue/items.rbi +95 -0
  174. data/rbi/moderation_api/resources/queue.rbi +47 -0
  175. data/rbi/moderation_api/resources/wordlist/words.rbi +48 -0
  176. data/rbi/moderation_api/resources/wordlist.rbi +82 -0
  177. data/rbi/moderation_api/version.rbi +5 -0
  178. data/sig/moderation_api/client.rbs +38 -0
  179. data/sig/moderation_api/errors.rbs +117 -0
  180. data/sig/moderation_api/file_part.rbs +21 -0
  181. data/sig/moderation_api/internal/transport/base_client.rbs +133 -0
  182. data/sig/moderation_api/internal/transport/pooled_net_requester.rbs +48 -0
  183. data/sig/moderation_api/internal/type/array_of.rbs +48 -0
  184. data/sig/moderation_api/internal/type/base_model.rbs +104 -0
  185. data/sig/moderation_api/internal/type/base_page.rbs +24 -0
  186. data/sig/moderation_api/internal/type/boolean.rbs +26 -0
  187. data/sig/moderation_api/internal/type/converter.rbs +79 -0
  188. data/sig/moderation_api/internal/type/enum.rbs +32 -0
  189. data/sig/moderation_api/internal/type/file_input.rbs +25 -0
  190. data/sig/moderation_api/internal/type/hash_of.rbs +48 -0
  191. data/sig/moderation_api/internal/type/request_parameters.rbs +19 -0
  192. data/sig/moderation_api/internal/type/union.rbs +52 -0
  193. data/sig/moderation_api/internal/type/unknown.rbs +26 -0
  194. data/sig/moderation_api/internal/util.rbs +185 -0
  195. data/sig/moderation_api/internal.rbs +10 -0
  196. data/sig/moderation_api/models/account_list_params.rbs +15 -0
  197. data/sig/moderation_api/models/account_list_response.rbs +56 -0
  198. data/sig/moderation_api/models/action_create_params.rbs +195 -0
  199. data/sig/moderation_api/models/action_create_response.rbs +143 -0
  200. data/sig/moderation_api/models/action_delete_params.rbs +15 -0
  201. data/sig/moderation_api/models/action_delete_response.rbs +15 -0
  202. data/sig/moderation_api/models/action_list_params.rbs +25 -0
  203. data/sig/moderation_api/models/action_list_response.rbs +190 -0
  204. data/sig/moderation_api/models/action_retrieve_params.rbs +15 -0
  205. data/sig/moderation_api/models/action_retrieve_response.rbs +185 -0
  206. data/sig/moderation_api/models/action_update_params.rbs +197 -0
  207. data/sig/moderation_api/models/action_update_response.rbs +143 -0
  208. data/sig/moderation_api/models/actions/execute_execute_by_id_params.rbs +51 -0
  209. data/sig/moderation_api/models/actions/execute_execute_by_id_response.rbs +28 -0
  210. data/sig/moderation_api/models/actions/execute_execute_params.rbs +63 -0
  211. data/sig/moderation_api/models/actions/execute_execute_response.rbs +15 -0
  212. data/sig/moderation_api/models/auth_create_params.rbs +15 -0
  213. data/sig/moderation_api/models/auth_create_response.rbs +18 -0
  214. data/sig/moderation_api/models/auth_retrieve_params.rbs +15 -0
  215. data/sig/moderation_api/models/auth_retrieve_response.rbs +15 -0
  216. data/sig/moderation_api/models/author_create_params.rbs +106 -0
  217. data/sig/moderation_api/models/author_create_response.rbs +195 -0
  218. data/sig/moderation_api/models/author_delete_params.rbs +15 -0
  219. data/sig/moderation_api/models/author_delete_response.rbs +13 -0
  220. data/sig/moderation_api/models/author_list_params.rbs +110 -0
  221. data/sig/moderation_api/models/author_list_response.rbs +254 -0
  222. data/sig/moderation_api/models/author_retrieve_params.rbs +15 -0
  223. data/sig/moderation_api/models/author_retrieve_response.rbs +195 -0
  224. data/sig/moderation_api/models/author_update_params.rbs +101 -0
  225. data/sig/moderation_api/models/author_update_response.rbs +195 -0
  226. data/sig/moderation_api/models/content_submit_params.rbs +733 -0
  227. data/sig/moderation_api/models/content_submit_response.rbs +599 -0
  228. data/sig/moderation_api/models/queue/item_list_params.rbs +127 -0
  229. data/sig/moderation_api/models/queue/item_list_response.rbs +209 -0
  230. data/sig/moderation_api/models/queue/item_resolve_params.rbs +32 -0
  231. data/sig/moderation_api/models/queue/item_resolve_response.rbs +26 -0
  232. data/sig/moderation_api/models/queue/item_unresolve_params.rbs +32 -0
  233. data/sig/moderation_api/models/queue/item_unresolve_response.rbs +24 -0
  234. data/sig/moderation_api/models/queue_get_stats_params.rbs +26 -0
  235. data/sig/moderation_api/models/queue_get_stats_response.rbs +207 -0
  236. data/sig/moderation_api/models/queue_retrieve_params.rbs +15 -0
  237. data/sig/moderation_api/models/queue_retrieve_response.rbs +207 -0
  238. data/sig/moderation_api/models/wordlist/word_add_params.rbs +26 -0
  239. data/sig/moderation_api/models/wordlist/word_add_response.rbs +28 -0
  240. data/sig/moderation_api/models/wordlist/word_remove_params.rbs +26 -0
  241. data/sig/moderation_api/models/wordlist/word_remove_response.rbs +32 -0
  242. data/sig/moderation_api/models/wordlist_get_embedding_status_params.rbs +15 -0
  243. data/sig/moderation_api/models/wordlist_get_embedding_status_response.rbs +26 -0
  244. data/sig/moderation_api/models/wordlist_list_params.rbs +15 -0
  245. data/sig/moderation_api/models/wordlist_list_response.rbs +45 -0
  246. data/sig/moderation_api/models/wordlist_retrieve_params.rbs +15 -0
  247. data/sig/moderation_api/models/wordlist_retrieve_response.rbs +50 -0
  248. data/sig/moderation_api/models/wordlist_update_params.rbs +56 -0
  249. data/sig/moderation_api/models/wordlist_update_response.rbs +50 -0
  250. data/sig/moderation_api/models.rbs +47 -0
  251. data/sig/moderation_api/request_options.rbs +36 -0
  252. data/sig/moderation_api/resources/account.rbs +11 -0
  253. data/sig/moderation_api/resources/actions/execute.rbs +28 -0
  254. data/sig/moderation_api/resources/actions.rbs +57 -0
  255. data/sig/moderation_api/resources/auth.rbs +15 -0
  256. data/sig/moderation_api/resources/authors.rbs +54 -0
  257. data/sig/moderation_api/resources/content.rbs +20 -0
  258. data/sig/moderation_api/resources/queue/items.rbs +39 -0
  259. data/sig/moderation_api/resources/queue.rbs +20 -0
  260. data/sig/moderation_api/resources/wordlist/words.rbs +21 -0
  261. data/sig/moderation_api/resources/wordlist.rbs +33 -0
  262. data/sig/moderation_api/version.rbs +3 -0
  263. metadata +277 -299
  264. data/Gemfile +0 -9
  265. data/Rakefile +0 -10
  266. data/docs/AccountApi.md +0 -74
  267. data/docs/AccountGet200Response.md +0 -26
  268. data/docs/AccountGet200ResponseCurrentProject.md +0 -20
  269. data/docs/ActionsCreateRequest.md +0 -36
  270. data/docs/ActionsCreateRequestWebhooksInner.md +0 -24
  271. data/docs/ActionsDelete200Response.md +0 -20
  272. data/docs/ActionsExecute200Response.md +0 -22
  273. data/docs/ActionsExecuteDeprecatedRequest.md +0 -22
  274. data/docs/ActionsExecuteRequest.md +0 -24
  275. data/docs/ActionsGet200Response.md +0 -40
  276. data/docs/ActionsGet200ResponseWebhooksInner.md +0 -26
  277. data/docs/ActionsList200ResponseInner.md +0 -38
  278. data/docs/ActionsList200ResponseInnerPossibleValuesInner.md +0 -18
  279. data/docs/ActionsList400Response.md +0 -22
  280. data/docs/ActionsList400ResponseIssuesInner.md +0 -18
  281. data/docs/ActionsUpdateRequest.md +0 -36
  282. data/docs/ModerateApi.md +0 -357
  283. data/docs/ModerationAudioRequest.md +0 -28
  284. data/docs/ModerationImage200Response.md +0 -28
  285. data/docs/ModerationImage200ResponseLabelsInner.md +0 -20
  286. data/docs/ModerationImageRequest.md +0 -28
  287. data/docs/ModerationObject200Response.md +0 -36
  288. data/docs/ModerationObject200ResponseAllOfEntitiesInner.md +0 -22
  289. data/docs/ModerationObject200ResponseAllOfFieldsInner.md +0 -22
  290. data/docs/ModerationObject200ResponseAllOfLabelsInner.md +0 -22
  291. data/docs/ModerationObjectRequest.md +0 -28
  292. data/docs/ModerationObjectRequestValue.md +0 -20
  293. data/docs/ModerationObjectRequestValueDataValue.md +0 -22
  294. data/docs/ModerationText200Response.md +0 -64
  295. data/docs/ModerationText200ResponseAllOfAddress.md +0 -28
  296. data/docs/ModerationText200ResponseAllOfEmail.md +0 -28
  297. data/docs/ModerationText200ResponseAllOfName.md +0 -28
  298. data/docs/ModerationText200ResponseAllOfNsfw.md +0 -26
  299. data/docs/ModerationText200ResponseAllOfNsfwLabelScores.md +0 -22
  300. data/docs/ModerationText200ResponseAllOfPhone.md +0 -28
  301. data/docs/ModerationText200ResponseAllOfProfanity.md +0 -28
  302. data/docs/ModerationText200ResponseAllOfPropriety.md +0 -26
  303. data/docs/ModerationText200ResponseAllOfProprietyLabelScores.md +0 -22
  304. data/docs/ModerationText200ResponseAllOfQuality.md +0 -26
  305. data/docs/ModerationText200ResponseAllOfQualityLabelScores.md +0 -24
  306. data/docs/ModerationText200ResponseAllOfRequest.md +0 -20
  307. data/docs/ModerationText200ResponseAllOfSensitive.md +0 -28
  308. data/docs/ModerationText200ResponseAllOfSentiment.md +0 -26
  309. data/docs/ModerationText200ResponseAllOfSentimentLabelScores.md +0 -22
  310. data/docs/ModerationText200ResponseAllOfToxicity.md +0 -26
  311. data/docs/ModerationText200ResponseAllOfToxicityLabelScores.md +0 -30
  312. data/docs/ModerationText200ResponseAllOfUrl.md +0 -28
  313. data/docs/ModerationText200ResponseAllOfUsername.md +0 -28
  314. data/docs/ModerationText200ResponseAllOfWordlist.md +0 -28
  315. data/docs/ModerationText200ResponseAllOfWordlistsInner.md +0 -36
  316. data/docs/ModerationTextRequest.md +0 -28
  317. data/docs/ModerationVideo200Response.md +0 -24
  318. data/docs/ModerationVideoRequest.md +0 -28
  319. data/docs/QueueActionsApi.md +0 -503
  320. data/git_push.sh +0 -57
  321. data/lib/moderation_api/api/account_api.rb +0 -79
  322. data/lib/moderation_api/api/moderate_api.rb +0 -362
  323. data/lib/moderation_api/api/queue_actions_api.rb +0 -492
  324. data/lib/moderation_api/api_client.rb +0 -437
  325. data/lib/moderation_api/api_error.rb +0 -58
  326. data/lib/moderation_api/configuration.rb +0 -392
  327. data/lib/moderation_api/models/account_get200_response.rb +0 -278
  328. data/lib/moderation_api/models/account_get200_response_current_project.rb +0 -237
  329. data/lib/moderation_api/models/actions_create_request.rb +0 -374
  330. data/lib/moderation_api/models/actions_create_request_webhooks_inner.rb +0 -260
  331. data/lib/moderation_api/models/actions_delete200_response.rb +0 -239
  332. data/lib/moderation_api/models/actions_execute200_response.rb +0 -258
  333. data/lib/moderation_api/models/actions_execute_deprecated_request.rb +0 -244
  334. data/lib/moderation_api/models/actions_execute_request.rb +0 -261
  335. data/lib/moderation_api/models/actions_get200_response.rb +0 -408
  336. data/lib/moderation_api/models/actions_get200_response_webhooks_inner.rb +0 -278
  337. data/lib/moderation_api/models/actions_list200_response_inner.rb +0 -396
  338. data/lib/moderation_api/models/actions_list200_response_inner_possible_values_inner.rb +0 -222
  339. data/lib/moderation_api/models/actions_list400_response.rb +0 -248
  340. data/lib/moderation_api/models/actions_list400_response_issues_inner.rb +0 -221
  341. data/lib/moderation_api/models/actions_update_request.rb +0 -367
  342. data/lib/moderation_api/models/moderation_audio_request.rb +0 -302
  343. data/lib/moderation_api/models/moderation_image200_response.rb +0 -296
  344. data/lib/moderation_api/models/moderation_image200_response_labels_inner.rb +0 -301
  345. data/lib/moderation_api/models/moderation_image_request.rb +0 -302
  346. data/lib/moderation_api/models/moderation_object200_response.rb +0 -368
  347. data/lib/moderation_api/models/moderation_object200_response_all_of_entities_inner.rb +0 -251
  348. data/lib/moderation_api/models/moderation_object200_response_all_of_fields_inner.rb +0 -258
  349. data/lib/moderation_api/models/moderation_object200_response_all_of_labels_inner.rb +0 -284
  350. data/lib/moderation_api/models/moderation_object_request.rb +0 -301
  351. data/lib/moderation_api/models/moderation_object_request_value.rb +0 -275
  352. data/lib/moderation_api/models/moderation_object_request_value_data_value.rb +0 -285
  353. data/lib/moderation_api/models/moderation_text200_response.rb +0 -488
  354. data/lib/moderation_api/models/moderation_text200_response_all_of_address.rb +0 -303
  355. data/lib/moderation_api/models/moderation_text200_response_all_of_email.rb +0 -303
  356. data/lib/moderation_api/models/moderation_text200_response_all_of_name.rb +0 -303
  357. data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw.rb +0 -255
  358. data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw_label_scores.rb +0 -235
  359. data/lib/moderation_api/models/moderation_text200_response_all_of_phone.rb +0 -303
  360. data/lib/moderation_api/models/moderation_text200_response_all_of_profanity.rb +0 -303
  361. data/lib/moderation_api/models/moderation_text200_response_all_of_propriety.rb +0 -255
  362. data/lib/moderation_api/models/moderation_text200_response_all_of_propriety_label_scores.rb +0 -235
  363. data/lib/moderation_api/models/moderation_text200_response_all_of_quality.rb +0 -255
  364. data/lib/moderation_api/models/moderation_text200_response_all_of_quality_label_scores.rb +0 -245
  365. data/lib/moderation_api/models/moderation_text200_response_all_of_request.rb +0 -240
  366. data/lib/moderation_api/models/moderation_text200_response_all_of_sensitive.rb +0 -303
  367. data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment.rb +0 -255
  368. data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment_label_scores.rb +0 -235
  369. data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity.rb +0 -262
  370. data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity_label_scores.rb +0 -275
  371. data/lib/moderation_api/models/moderation_text200_response_all_of_url.rb +0 -303
  372. data/lib/moderation_api/models/moderation_text200_response_all_of_username.rb +0 -303
  373. data/lib/moderation_api/models/moderation_text200_response_all_of_wordlist.rb +0 -303
  374. data/lib/moderation_api/models/moderation_text200_response_all_of_wordlists_inner.rb +0 -377
  375. data/lib/moderation_api/models/moderation_text_request.rb +0 -330
  376. data/lib/moderation_api/models/moderation_video200_response.rb +0 -265
  377. data/lib/moderation_api/models/moderation_video_request.rb +0 -302
  378. data/lib/moderation_api/webhook.rb +0 -41
  379. data/moderation_api-1.2.0.gem +0 -0
  380. data/moderation_api.gemspec +0 -45
  381. data/spec/api/account_api_spec.rb +0 -46
  382. data/spec/api/moderate_api_spec.rb +0 -95
  383. data/spec/api/queue_actions_api_spec.rb +0 -121
  384. data/spec/models/account_get200_response_current_project_spec.rb +0 -42
  385. data/spec/models/account_get200_response_spec.rb +0 -60
  386. data/spec/models/actions_create_request_spec.rb +0 -98
  387. data/spec/models/actions_create_request_webhooks_inner_spec.rb +0 -54
  388. data/spec/models/actions_delete200_response_spec.rb +0 -42
  389. data/spec/models/actions_execute200_response_spec.rb +0 -48
  390. data/spec/models/actions_execute_deprecated_request_spec.rb +0 -48
  391. data/spec/models/actions_execute_request_spec.rb +0 -54
  392. data/spec/models/actions_get200_response_spec.rb +0 -110
  393. data/spec/models/actions_get200_response_webhooks_inner_spec.rb +0 -60
  394. data/spec/models/actions_list200_response_inner_possible_values_inner_spec.rb +0 -36
  395. data/spec/models/actions_list200_response_inner_spec.rb +0 -104
  396. data/spec/models/actions_list400_response_issues_inner_spec.rb +0 -36
  397. data/spec/models/actions_list400_response_spec.rb +0 -48
  398. data/spec/models/actions_update_request_spec.rb +0 -98
  399. data/spec/models/moderation_audio_request_spec.rb +0 -66
  400. data/spec/models/moderation_image200_response_labels_inner_spec.rb +0 -46
  401. data/spec/models/moderation_image200_response_spec.rb +0 -66
  402. data/spec/models/moderation_image_request_spec.rb +0 -66
  403. data/spec/models/moderation_object200_response_all_of_entities_inner_spec.rb +0 -48
  404. data/spec/models/moderation_object200_response_all_of_fields_inner_spec.rb +0 -48
  405. data/spec/models/moderation_object200_response_all_of_labels_inner_spec.rb +0 -48
  406. data/spec/models/moderation_object200_response_spec.rb +0 -90
  407. data/spec/models/moderation_object_request_spec.rb +0 -66
  408. data/spec/models/moderation_object_request_value_data_value_spec.rb +0 -52
  409. data/spec/models/moderation_object_request_value_spec.rb +0 -46
  410. data/spec/models/moderation_text200_response_all_of_address_spec.rb +0 -70
  411. data/spec/models/moderation_text200_response_all_of_email_spec.rb +0 -70
  412. data/spec/models/moderation_text200_response_all_of_name_spec.rb +0 -70
  413. data/spec/models/moderation_text200_response_all_of_nsfw_label_scores_spec.rb +0 -48
  414. data/spec/models/moderation_text200_response_all_of_nsfw_spec.rb +0 -60
  415. data/spec/models/moderation_text200_response_all_of_phone_spec.rb +0 -70
  416. data/spec/models/moderation_text200_response_all_of_profanity_spec.rb +0 -70
  417. data/spec/models/moderation_text200_response_all_of_propriety_label_scores_spec.rb +0 -48
  418. data/spec/models/moderation_text200_response_all_of_propriety_spec.rb +0 -60
  419. data/spec/models/moderation_text200_response_all_of_quality_label_scores_spec.rb +0 -54
  420. data/spec/models/moderation_text200_response_all_of_quality_spec.rb +0 -60
  421. data/spec/models/moderation_text200_response_all_of_request_spec.rb +0 -42
  422. data/spec/models/moderation_text200_response_all_of_sensitive_spec.rb +0 -70
  423. data/spec/models/moderation_text200_response_all_of_sentiment_label_scores_spec.rb +0 -48
  424. data/spec/models/moderation_text200_response_all_of_sentiment_spec.rb +0 -60
  425. data/spec/models/moderation_text200_response_all_of_toxicity_label_scores_spec.rb +0 -72
  426. data/spec/models/moderation_text200_response_all_of_toxicity_spec.rb +0 -60
  427. data/spec/models/moderation_text200_response_all_of_url_spec.rb +0 -70
  428. data/spec/models/moderation_text200_response_all_of_username_spec.rb +0 -70
  429. data/spec/models/moderation_text200_response_all_of_wordlist_spec.rb +0 -70
  430. data/spec/models/moderation_text200_response_all_of_wordlists_inner_spec.rb +0 -94
  431. data/spec/models/moderation_text200_response_spec.rb +0 -174
  432. data/spec/models/moderation_text_request_spec.rb +0 -66
  433. data/spec/models/moderation_video200_response_spec.rb +0 -54
  434. data/spec/models/moderation_video_request_spec.rb +0 -66
  435. data/spec/spec_helper.rb +0 -111
@@ -1,64 +0,0 @@
1
- # ModerationAPI::ModerationText200Response
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **status** | **String** | Success if the request was successful | |
8
- | **request** | [**ModerationText200ResponseAllOfRequest**](ModerationText200ResponseAllOfRequest.md) | | |
9
- | **flagged** | **Boolean** | Whether the content was flagged by any models | |
10
- | **content_moderated** | **Boolean** | Whether the content was moderated or not. Same as `content` !== `original` | |
11
- | **unicode_spoofing** | **Boolean** | Whether the content is using look-alike characters. Often used by spammers. | |
12
- | **data_found** | **Boolean** | Whether any entity matchers found data for the content | |
13
- | **original** | **String** | The original content | |
14
- | **content** | **String** | The content after moderation. With all mask replacements applied and look-alike characters replaced with the original characters. | |
15
- | **content_id** | **String** | The ID of the content. Only returned if the content was stored. | [optional] |
16
- | **nsfw** | [**ModerationText200ResponseAllOfNsfw**](ModerationText200ResponseAllOfNsfw.md) | | [optional] |
17
- | **toxicity** | [**ModerationText200ResponseAllOfToxicity**](ModerationText200ResponseAllOfToxicity.md) | | [optional] |
18
- | **quality** | [**ModerationText200ResponseAllOfQuality**](ModerationText200ResponseAllOfQuality.md) | | [optional] |
19
- | **sentiment** | [**ModerationText200ResponseAllOfSentiment**](ModerationText200ResponseAllOfSentiment.md) | | [optional] |
20
- | **propriety** | [**ModerationText200ResponseAllOfPropriety**](ModerationText200ResponseAllOfPropriety.md) | | [optional] |
21
- | **email** | [**ModerationText200ResponseAllOfEmail**](ModerationText200ResponseAllOfEmail.md) | | [optional] |
22
- | **phone** | [**ModerationText200ResponseAllOfPhone**](ModerationText200ResponseAllOfPhone.md) | | [optional] |
23
- | **url** | [**ModerationText200ResponseAllOfUrl**](ModerationText200ResponseAllOfUrl.md) | | [optional] |
24
- | **address** | [**ModerationText200ResponseAllOfAddress**](ModerationText200ResponseAllOfAddress.md) | | [optional] |
25
- | **name** | [**ModerationText200ResponseAllOfName**](ModerationText200ResponseAllOfName.md) | | [optional] |
26
- | **username** | [**ModerationText200ResponseAllOfUsername**](ModerationText200ResponseAllOfUsername.md) | | [optional] |
27
- | **profanity** | [**ModerationText200ResponseAllOfProfanity**](ModerationText200ResponseAllOfProfanity.md) | | [optional] |
28
- | **sensitive** | [**ModerationText200ResponseAllOfSensitive**](ModerationText200ResponseAllOfSensitive.md) | | [optional] |
29
- | **wordlist** | [**ModerationText200ResponseAllOfWordlist**](ModerationText200ResponseAllOfWordlist.md) | | [optional] |
30
- | **wordlists** | [**Array<ModerationText200ResponseAllOfWordlistsInner>**](ModerationText200ResponseAllOfWordlistsInner.md) | The wordlist entity matcher outputs if enabled in your project. Read more at https://docs.moderationapi.com/models/word | [optional] |
31
-
32
- ## Example
33
-
34
- ```ruby
35
- require 'moderation_api'
36
-
37
- instance = ModerationAPI::ModerationText200Response.new(
38
- status: null,
39
- request: null,
40
- flagged: null,
41
- content_moderated: null,
42
- unicode_spoofing: null,
43
- data_found: null,
44
- original: null,
45
- content: null,
46
- content_id: null,
47
- nsfw: null,
48
- toxicity: null,
49
- quality: null,
50
- sentiment: null,
51
- propriety: null,
52
- email: null,
53
- phone: null,
54
- url: null,
55
- address: null,
56
- name: null,
57
- username: null,
58
- profanity: null,
59
- sensitive: null,
60
- wordlist: null,
61
- wordlists: null
62
- )
63
- ```
64
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfAddress
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfAddress.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfEmail
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfEmail.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfName
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfName.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,26 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfNsfw
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **label** | **String** | The label of the model | [optional] |
8
- | **score** | **Float** | The confidence of the model | [optional] |
9
- | **error** | **String** | Indicates an error with the model | [optional] |
10
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate | [optional] |
11
- | **label_scores** | [**ModerationText200ResponseAllOfNsfwLabelScores**](ModerationText200ResponseAllOfNsfwLabelScores.md) | | [optional] |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'moderation_api'
17
-
18
- instance = ModerationAPI::ModerationText200ResponseAllOfNsfw.new(
19
- label: null,
20
- score: null,
21
- error: null,
22
- warning: null,
23
- label_scores: null
24
- )
25
- ```
26
-
@@ -1,22 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfNsfwLabelScores
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **sensitive** | **Float** | Mentions religion, politics, race, etc., but is neutral or positive. | [optional] |
8
- | **unsafe** | **Float** | Sexual, hateful, profane, and inappropriate content. | [optional] |
9
- | **neutral** | **Float** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'moderation_api'
15
-
16
- instance = ModerationAPI::ModerationText200ResponseAllOfNsfwLabelScores.new(
17
- sensitive: null,
18
- unsafe: null,
19
- neutral: null
20
- )
21
- ```
22
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfPhone
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfPhone.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfProfanity
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfProfanity.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,26 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfPropriety
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **label** | **String** | The label of the model | [optional] |
8
- | **score** | **Float** | The confidence of the model | [optional] |
9
- | **error** | **String** | Indicates an error with the model | [optional] |
10
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate | [optional] |
11
- | **label_scores** | [**ModerationText200ResponseAllOfProprietyLabelScores**](ModerationText200ResponseAllOfProprietyLabelScores.md) | | [optional] |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'moderation_api'
17
-
18
- instance = ModerationAPI::ModerationText200ResponseAllOfPropriety.new(
19
- label: null,
20
- score: null,
21
- error: null,
22
- warning: null,
23
- label_scores: null
24
- )
25
- ```
26
-
@@ -1,22 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfProprietyLabelScores
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **flirtation** | **Float** | Pickup lines, compliments on appearance, etc. | [optional] |
8
- | **sexually_explicit** | **Float** | References to sexual acts, body parts, etc. | [optional] |
9
- | **neutral** | **Float** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'moderation_api'
15
-
16
- instance = ModerationAPI::ModerationText200ResponseAllOfProprietyLabelScores.new(
17
- flirtation: null,
18
- sexually_explicit: null,
19
- neutral: null
20
- )
21
- ```
22
-
@@ -1,26 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfQuality
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **label** | **String** | The label of the model | [optional] |
8
- | **score** | **Float** | The confidence of the model | [optional] |
9
- | **error** | **String** | Indicates an error with the model | [optional] |
10
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate | [optional] |
11
- | **label_scores** | [**ModerationText200ResponseAllOfQualityLabelScores**](ModerationText200ResponseAllOfQualityLabelScores.md) | | [optional] |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'moderation_api'
17
-
18
- instance = ModerationAPI::ModerationText200ResponseAllOfQuality.new(
19
- label: null,
20
- score: null,
21
- error: null,
22
- warning: null,
23
- label_scores: null
24
- )
25
- ```
26
-
@@ -1,24 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfQualityLabelScores
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **unsubstantial** | **Float** | Trivial or short content. | [optional] |
8
- | **incoherent** | **Float** | Difficult to understand, nonsensical. | [optional] |
9
- | **spam** | **Float** | Irrelevant and unsolicited commercial content. | [optional] |
10
- | **neutral** | **Float** | | [optional] |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'moderation_api'
16
-
17
- instance = ModerationAPI::ModerationText200ResponseAllOfQualityLabelScores.new(
18
- unsubstantial: null,
19
- incoherent: null,
20
- spam: null,
21
- neutral: null
22
- )
23
- ```
24
-
@@ -1,20 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **timestamp** | **Float** | The timestamp of the request | |
8
- | **quota_usage** | **Float** | The quota usage of the request | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'moderation_api'
14
-
15
- instance = ModerationAPI::ModerationText200ResponseAllOfRequest.new(
16
- timestamp: null,
17
- quota_usage: null
18
- )
19
- ```
20
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfSensitive
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfSensitive.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,26 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfSentiment
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **label** | **String** | The label of the model | [optional] |
8
- | **score** | **Float** | The confidence of the model | [optional] |
9
- | **error** | **String** | Indicates an error with the model | [optional] |
10
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate | [optional] |
11
- | **label_scores** | [**ModerationText200ResponseAllOfSentimentLabelScores**](ModerationText200ResponseAllOfSentimentLabelScores.md) | | [optional] |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'moderation_api'
17
-
18
- instance = ModerationAPI::ModerationText200ResponseAllOfSentiment.new(
19
- label: null,
20
- score: null,
21
- error: null,
22
- warning: null,
23
- label_scores: null
24
- )
25
- ```
26
-
@@ -1,22 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfSentimentLabelScores
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **positive** | **Float** | Positive sentiment. | [optional] |
8
- | **negative** | **Float** | Negative sentiment. | [optional] |
9
- | **neutral** | **Float** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'moderation_api'
15
-
16
- instance = ModerationAPI::ModerationText200ResponseAllOfSentimentLabelScores.new(
17
- positive: null,
18
- negative: null,
19
- neutral: null
20
- )
21
- ```
22
-
@@ -1,26 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfToxicity
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **label_scores** | [**ModerationText200ResponseAllOfToxicityLabelScores**](ModerationText200ResponseAllOfToxicityLabelScores.md) | | |
8
- | **label** | **String** | The label of the model | [optional] |
9
- | **score** | **Float** | The confidence of the model | [optional] |
10
- | **error** | **String** | Indicates an error with the model | [optional] |
11
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate | [optional] |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'moderation_api'
17
-
18
- instance = ModerationAPI::ModerationText200ResponseAllOfToxicity.new(
19
- label_scores: null,
20
- label: null,
21
- score: null,
22
- error: null,
23
- warning: null
24
- )
25
- ```
26
-
@@ -1,30 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfToxicityLabelScores
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **toxicity** | **Float** | Rude or disrespectful content. | [optional] |
8
- | **profanity** | **Float** | Swearing, curse words, and other obscene language. | [optional] |
9
- | **discrimination** | **Float** | Discrimination of race, religion, gender, etc. | [optional] |
10
- | **severe_toxicity** | **Float** | Very hateful and aggressive content. | [optional] |
11
- | **insult** | **Float** | Negative comments about looks or personality etc. | [optional] |
12
- | **threat** | **Float** | Content containing intention to harm or violence. | [optional] |
13
- | **neutral** | **Float** | | [optional] |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'moderation_api'
19
-
20
- instance = ModerationAPI::ModerationText200ResponseAllOfToxicityLabelScores.new(
21
- toxicity: null,
22
- profanity: null,
23
- discrimination: null,
24
- severe_toxicity: null,
25
- insult: null,
26
- threat: null,
27
- neutral: null
28
- )
29
- ```
30
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfUrl
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfUrl.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfUsername
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfUsername.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfWordlist
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The detection mode. | [optional] |
8
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
9
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
10
- | **components** | **Object** | The components of the matcher. | [optional] |
11
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
12
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationText200ResponseAllOfWordlist.new(
20
- mode: null,
21
- found: null,
22
- matches: null,
23
- components: null,
24
- error: null,
25
- warning: null
26
- )
27
- ```
28
-
@@ -1,36 +0,0 @@
1
- # ModerationAPI::ModerationText200ResponseAllOfWordlistsInner
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **mode** | **String** | The flagging mode. | |
8
- | **flagged** | **Boolean** | Whether the wordlists flagged the content. | |
9
- | **name** | **String** | The name of the wordlist | |
10
- | **id** | **String** | The ID of the wordlist | |
11
- | **score** | **Float** | The score of the wordlist | |
12
- | **found** | **Boolean** | Whether a match was found or not. | [optional] |
13
- | **matches** | **Array<String>** | The matches of the entity matcher. | [optional] |
14
- | **components** | **Object** | The components of the matcher. | [optional] |
15
- | **error** | **String** | Indicates an error with the matcher. | [optional] |
16
- | **warning** | **String** | Indicates a warning from the model, e.g. if the text is too short or long and the model might not be accurate. | [optional] |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'moderation_api'
22
-
23
- instance = ModerationAPI::ModerationText200ResponseAllOfWordlistsInner.new(
24
- mode: null,
25
- flagged: null,
26
- name: null,
27
- id: null,
28
- score: null,
29
- found: null,
30
- matches: null,
31
- components: null,
32
- error: null,
33
- warning: null
34
- )
35
- ```
36
-
@@ -1,28 +0,0 @@
1
- # ModerationAPI::ModerationTextRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **value** | **String** | The text you'd like to analyze. We recommend to submit plain text or HTML | |
8
- | **content_id** | **String** | The unique ID of the content in your database. | [optional] |
9
- | **do_not_store** | **Boolean** | Do not store the content. The content won't enter the review queue | [optional] |
10
- | **author_id** | **String** | The author of the content. | [optional] |
11
- | **context_id** | **String** | For example the ID of a chat room or a post | [optional] |
12
- | **metadata** | **Hash<String, Object>** | Any metadata you want to store with the content | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'moderation_api'
18
-
19
- instance = ModerationAPI::ModerationTextRequest.new(
20
- value: null,
21
- content_id: null,
22
- do_not_store: null,
23
- author_id: null,
24
- context_id: null,
25
- metadata: null
26
- )
27
- ```
28
-