lemmy-js-client 0.17.2-rc.6 → 0.17.2-rc.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (521) hide show
  1. package/dist/http.d.ts +128 -11
  2. package/dist/http.js +2 -2
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +0 -1
  5. package/dist/types/AddAdmin.d.ts +6 -0
  6. package/dist/types/AddAdminResponse.d.ts +4 -0
  7. package/dist/types/AddModToCommunity.d.ts +8 -0
  8. package/dist/types/AddModToCommunityResponse.d.ts +4 -0
  9. package/dist/types/AdminPurgeComment.d.ts +9 -0
  10. package/dist/types/AdminPurgeCommentView.d.ts +8 -0
  11. package/dist/types/AdminPurgeCommunity.d.ts +7 -0
  12. package/dist/types/AdminPurgeCommunityView.d.ts +6 -0
  13. package/dist/types/AdminPurgeCommunityView.js +2 -0
  14. package/dist/types/AdminPurgePerson.d.ts +7 -0
  15. package/dist/types/AdminPurgePerson.js +2 -0
  16. package/dist/types/AdminPurgePersonView.d.ts +6 -0
  17. package/dist/types/AdminPurgePersonView.js +2 -0
  18. package/dist/types/AdminPurgePost.d.ts +9 -0
  19. package/dist/types/AdminPurgePost.js +2 -0
  20. package/dist/types/AdminPurgePostView.d.ts +8 -0
  21. package/dist/types/AdminPurgePostView.js +2 -0
  22. package/dist/types/ApproveRegistrationApplication.d.ts +6 -0
  23. package/dist/types/ApproveRegistrationApplication.js +3 -0
  24. package/dist/types/BanFromCommunity.d.ts +11 -0
  25. package/dist/types/BanFromCommunity.js +2 -0
  26. package/dist/types/BanFromCommunityResponse.d.ts +5 -0
  27. package/dist/types/BanFromCommunityResponse.js +2 -0
  28. package/dist/types/BanPerson.d.ts +9 -0
  29. package/dist/types/BanPerson.js +2 -0
  30. package/dist/types/BanPersonResponse.d.ts +5 -0
  31. package/dist/types/BanPersonResponse.js +2 -0
  32. package/dist/types/BannedPersonsResponse.d.ts +4 -0
  33. package/dist/types/BannedPersonsResponse.js +2 -0
  34. package/dist/types/BlockCommunity.d.ts +6 -0
  35. package/dist/types/BlockCommunity.js +2 -0
  36. package/dist/types/BlockCommunityResponse.d.ts +5 -0
  37. package/dist/types/BlockCommunityResponse.js +2 -0
  38. package/dist/types/BlockPerson.d.ts +6 -0
  39. package/dist/types/BlockPerson.js +2 -0
  40. package/dist/types/BlockPersonResponse.d.ts +5 -0
  41. package/dist/types/BlockPersonResponse.js +2 -0
  42. package/dist/types/CaptchaResponse.d.ts +5 -0
  43. package/dist/types/CaptchaResponse.js +3 -0
  44. package/dist/types/ChangePassword.d.ts +6 -0
  45. package/dist/types/ChangePassword.js +3 -0
  46. package/dist/types/Comment.d.ts +19 -0
  47. package/dist/types/Comment.js +2 -0
  48. package/dist/types/CommentAggregates.d.ts +10 -0
  49. package/dist/types/CommentAggregates.js +2 -0
  50. package/dist/types/CommentId.d.ts +1 -0
  51. package/dist/types/CommentId.js +3 -0
  52. package/dist/types/CommentReply.d.ts +10 -0
  53. package/dist/types/CommentReply.js +2 -0
  54. package/dist/types/CommentReplyId.d.ts +1 -0
  55. package/dist/types/CommentReplyId.js +3 -0
  56. package/dist/types/CommentReplyResponse.d.ts +4 -0
  57. package/dist/types/CommentReplyResponse.js +2 -0
  58. package/dist/types/CommentReplyView.d.ts +21 -0
  59. package/dist/types/CommentReplyView.js +2 -0
  60. package/dist/types/CommentReport.d.ts +14 -0
  61. package/dist/types/CommentReport.js +2 -0
  62. package/dist/types/CommentReportId.d.ts +1 -0
  63. package/dist/types/CommentReportId.js +3 -0
  64. package/dist/types/CommentReportResponse.d.ts +4 -0
  65. package/dist/types/CommentReportResponse.js +2 -0
  66. package/dist/types/CommentReportView.d.ts +18 -0
  67. package/dist/types/CommentReportView.js +2 -0
  68. package/dist/types/CommentResponse.d.ts +7 -0
  69. package/dist/types/CommentResponse.js +2 -0
  70. package/dist/types/CommentSortType.d.ts +1 -0
  71. package/dist/types/CommentSortType.js +3 -0
  72. package/dist/types/CommentView.d.ts +18 -0
  73. package/dist/types/CommentView.js +2 -0
  74. package/dist/types/Community.d.ts +20 -0
  75. package/dist/types/Community.js +2 -0
  76. package/dist/types/CommunityAggregates.d.ts +13 -0
  77. package/dist/types/CommunityAggregates.js +2 -0
  78. package/dist/types/CommunityBlockId.d.ts +1 -0
  79. package/dist/types/CommunityBlockId.js +3 -0
  80. package/dist/types/CommunityBlockView.d.ts +6 -0
  81. package/dist/types/CommunityBlockView.js +2 -0
  82. package/dist/types/CommunityFollowerView.d.ts +6 -0
  83. package/dist/types/CommunityFollowerView.js +2 -0
  84. package/dist/types/CommunityId.d.ts +1 -0
  85. package/dist/types/CommunityId.js +3 -0
  86. package/dist/types/CommunityJoin.d.ts +4 -0
  87. package/dist/types/CommunityJoin.js +2 -0
  88. package/dist/types/CommunityJoinResponse.d.ts +3 -0
  89. package/dist/types/CommunityJoinResponse.js +3 -0
  90. package/dist/types/CommunityModeratorView.d.ts +6 -0
  91. package/dist/types/CommunityModeratorView.js +2 -0
  92. package/dist/types/CommunityResponse.d.ts +6 -0
  93. package/dist/types/CommunityResponse.js +2 -0
  94. package/dist/types/CommunityView.d.ts +9 -0
  95. package/dist/types/CommunityView.js +2 -0
  96. package/dist/types/CreateComment.d.ts +11 -0
  97. package/dist/types/CreateComment.js +2 -0
  98. package/dist/types/CreateCommentLike.d.ts +6 -0
  99. package/dist/types/CreateCommentLike.js +2 -0
  100. package/dist/types/CreateCommentReport.d.ts +6 -0
  101. package/dist/types/CreateCommentReport.js +2 -0
  102. package/dist/types/CreateCommunity.d.ts +12 -0
  103. package/dist/types/CreateCommunity.js +2 -0
  104. package/dist/types/CreateCustomEmoji.d.ts +8 -0
  105. package/dist/types/CreateCustomEmoji.js +3 -0
  106. package/dist/types/CreatePost.d.ts +12 -0
  107. package/dist/types/CreatePost.js +2 -0
  108. package/dist/types/CreatePostLike.d.ts +6 -0
  109. package/dist/types/CreatePostLike.js +2 -0
  110. package/dist/types/CreatePostReport.d.ts +6 -0
  111. package/dist/types/CreatePostReport.js +2 -0
  112. package/dist/types/CreatePrivateMessage.d.ts +6 -0
  113. package/dist/types/CreatePrivateMessage.js +2 -0
  114. package/dist/types/CreatePrivateMessageReport.d.ts +6 -0
  115. package/dist/types/CreatePrivateMessageReport.js +2 -0
  116. package/dist/types/CreateSite.d.ts +46 -0
  117. package/dist/types/CreateSite.js +2 -0
  118. package/dist/types/CustomEmoji.d.ts +12 -0
  119. package/dist/types/CustomEmoji.js +2 -0
  120. package/dist/types/CustomEmojiId.d.ts +1 -0
  121. package/dist/types/CustomEmojiId.js +3 -0
  122. package/dist/types/CustomEmojiKeyword.d.ts +6 -0
  123. package/dist/types/CustomEmojiKeyword.js +2 -0
  124. package/dist/types/CustomEmojiResponse.d.ts +4 -0
  125. package/dist/types/CustomEmojiResponse.js +2 -0
  126. package/dist/types/CustomEmojiView.d.ts +6 -0
  127. package/dist/types/CustomEmojiView.js +2 -0
  128. package/dist/types/DeleteAccount.d.ts +4 -0
  129. package/dist/types/DeleteAccount.js +3 -0
  130. package/dist/types/DeleteAccountResponse.d.ts +1 -0
  131. package/dist/types/DeleteAccountResponse.js +3 -0
  132. package/dist/types/DeleteComment.d.ts +6 -0
  133. package/dist/types/DeleteComment.js +2 -0
  134. package/dist/types/DeleteCommunity.d.ts +6 -0
  135. package/dist/types/DeleteCommunity.js +2 -0
  136. package/dist/types/DeleteCustomEmoji.d.ts +5 -0
  137. package/dist/types/DeleteCustomEmoji.js +2 -0
  138. package/dist/types/DeleteCustomEmojiResponse.d.ts +5 -0
  139. package/dist/types/DeleteCustomEmojiResponse.js +2 -0
  140. package/dist/types/DeletePost.d.ts +6 -0
  141. package/dist/types/DeletePost.js +2 -0
  142. package/dist/types/DeletePrivateMessage.d.ts +6 -0
  143. package/dist/types/DeletePrivateMessage.js +2 -0
  144. package/dist/types/DistinguishComment.d.ts +6 -0
  145. package/dist/types/DistinguishComment.js +2 -0
  146. package/dist/types/EditComment.d.ts +9 -0
  147. package/dist/types/EditComment.js +2 -0
  148. package/dist/types/EditCommunity.d.ts +13 -0
  149. package/dist/types/EditCommunity.js +2 -0
  150. package/dist/types/EditCustomEmoji.d.ts +9 -0
  151. package/dist/types/EditCustomEmoji.js +2 -0
  152. package/dist/types/EditPost.d.ts +11 -0
  153. package/dist/types/EditPost.js +2 -0
  154. package/dist/types/EditPrivateMessage.d.ts +6 -0
  155. package/dist/types/EditPrivateMessage.js +2 -0
  156. package/dist/types/EditSite.d.ts +47 -0
  157. package/dist/types/EditSite.js +2 -0
  158. package/dist/types/FeaturePost.d.ts +8 -0
  159. package/dist/types/FeaturePost.js +2 -0
  160. package/dist/types/FederatedInstances.d.ts +6 -0
  161. package/dist/types/FederatedInstances.js +2 -0
  162. package/dist/types/FollowCommunity.d.ts +6 -0
  163. package/dist/types/FollowCommunity.js +2 -0
  164. package/dist/types/GetBannedPersons.d.ts +3 -0
  165. package/dist/types/GetBannedPersons.js +3 -0
  166. package/dist/types/GetCaptcha.d.ts +1 -0
  167. package/dist/types/GetCaptcha.js +3 -0
  168. package/dist/types/GetCaptchaResponse.d.ts +4 -0
  169. package/dist/types/GetCaptchaResponse.js +2 -0
  170. package/dist/types/GetComment.d.ts +5 -0
  171. package/dist/types/GetComment.js +2 -0
  172. package/dist/types/GetComments.d.ts +18 -0
  173. package/dist/types/GetComments.js +2 -0
  174. package/dist/types/GetCommentsResponse.d.ts +4 -0
  175. package/dist/types/GetCommentsResponse.js +2 -0
  176. package/dist/types/GetCommunity.d.ts +6 -0
  177. package/dist/types/GetCommunity.js +2 -0
  178. package/dist/types/GetCommunityResponse.d.ts +12 -0
  179. package/dist/types/GetCommunityResponse.js +2 -0
  180. package/dist/types/GetFederatedInstances.d.ts +1 -0
  181. package/dist/types/GetFederatedInstances.js +3 -0
  182. package/dist/types/GetFederatedInstancesResponse.d.ts +4 -0
  183. package/dist/types/GetFederatedInstancesResponse.js +2 -0
  184. package/dist/types/GetModlog.d.ts +12 -0
  185. package/dist/types/GetModlog.js +2 -0
  186. package/dist/types/GetModlogResponse.d.ts +32 -0
  187. package/dist/types/GetModlogResponse.js +2 -0
  188. package/dist/types/GetPersonDetails.d.ts +13 -0
  189. package/dist/types/GetPersonDetails.js +2 -0
  190. package/dist/types/GetPersonDetailsResponse.d.ts +10 -0
  191. package/dist/types/GetPersonDetailsResponse.js +2 -0
  192. package/dist/types/GetPersonMentions.d.ts +8 -0
  193. package/dist/types/GetPersonMentions.js +2 -0
  194. package/dist/types/GetPersonMentionsResponse.d.ts +4 -0
  195. package/dist/types/GetPersonMentionsResponse.js +2 -0
  196. package/dist/types/GetPost.d.ts +5 -0
  197. package/dist/types/GetPost.js +2 -0
  198. package/dist/types/GetPostResponse.d.ts +10 -0
  199. package/dist/types/GetPostResponse.js +2 -0
  200. package/dist/types/GetPosts.d.ts +13 -0
  201. package/dist/types/GetPosts.js +2 -0
  202. package/dist/types/GetPostsResponse.d.ts +4 -0
  203. package/dist/types/GetPostsResponse.js +2 -0
  204. package/dist/types/GetPrivateMessages.d.ts +6 -0
  205. package/dist/types/GetPrivateMessages.js +3 -0
  206. package/dist/types/GetReplies.d.ts +8 -0
  207. package/dist/types/GetReplies.js +2 -0
  208. package/dist/types/GetRepliesResponse.d.ts +4 -0
  209. package/dist/types/GetRepliesResponse.js +2 -0
  210. package/dist/types/GetReportCount.d.ts +5 -0
  211. package/dist/types/GetReportCount.js +2 -0
  212. package/dist/types/GetReportCountResponse.d.ts +7 -0
  213. package/dist/types/GetReportCountResponse.js +2 -0
  214. package/dist/types/GetSite.d.ts +3 -0
  215. package/dist/types/GetSite.js +3 -0
  216. package/dist/types/GetSiteMetadata.d.ts +3 -0
  217. package/dist/types/GetSiteMetadata.js +3 -0
  218. package/dist/types/GetSiteMetadataResponse.d.ts +4 -0
  219. package/dist/types/GetSiteMetadataResponse.js +2 -0
  220. package/dist/types/GetSiteResponse.d.ts +18 -0
  221. package/dist/types/GetSiteResponse.js +2 -0
  222. package/dist/types/GetUnreadCount.d.ts +3 -0
  223. package/dist/types/GetUnreadCount.js +3 -0
  224. package/dist/types/GetUnreadCountResponse.d.ts +5 -0
  225. package/dist/types/GetUnreadCountResponse.js +3 -0
  226. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +3 -0
  227. package/dist/types/GetUnreadRegistrationApplicationCount.js +3 -0
  228. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +3 -0
  229. package/dist/types/GetUnreadRegistrationApplicationCountResponse.js +3 -0
  230. package/dist/types/HideCommunity.d.ts +7 -0
  231. package/dist/types/HideCommunity.js +2 -0
  232. package/dist/types/Instance.d.ts +9 -0
  233. package/dist/types/Instance.js +2 -0
  234. package/dist/types/InstanceId.d.ts +1 -0
  235. package/dist/types/InstanceId.js +3 -0
  236. package/dist/types/Language.d.ts +6 -0
  237. package/dist/types/Language.js +2 -0
  238. package/dist/types/LanguageId.d.ts +1 -0
  239. package/dist/types/LanguageId.js +3 -0
  240. package/dist/types/LeaveAdmin.d.ts +3 -0
  241. package/dist/types/LeaveAdmin.js +3 -0
  242. package/dist/types/ListCommentReports.d.ts +8 -0
  243. package/dist/types/ListCommentReports.js +2 -0
  244. package/dist/types/ListCommentReportsResponse.d.ts +4 -0
  245. package/dist/types/ListCommentReportsResponse.js +2 -0
  246. package/dist/types/ListCommunities.d.ts +9 -0
  247. package/dist/types/ListCommunities.js +2 -0
  248. package/dist/types/ListCommunitiesResponse.d.ts +4 -0
  249. package/dist/types/ListCommunitiesResponse.js +2 -0
  250. package/dist/types/ListPostReports.d.ts +8 -0
  251. package/dist/types/ListPostReports.js +2 -0
  252. package/dist/types/ListPostReportsResponse.d.ts +4 -0
  253. package/dist/types/ListPostReportsResponse.js +2 -0
  254. package/dist/types/ListPrivateMessageReports.d.ts +6 -0
  255. package/dist/types/ListPrivateMessageReports.js +3 -0
  256. package/dist/types/ListPrivateMessageReportsResponse.d.ts +4 -0
  257. package/dist/types/ListPrivateMessageReportsResponse.js +2 -0
  258. package/dist/types/ListRegistrationApplications.d.ts +6 -0
  259. package/dist/types/ListRegistrationApplications.js +3 -0
  260. package/dist/types/ListRegistrationApplicationsResponse.d.ts +4 -0
  261. package/dist/types/ListRegistrationApplicationsResponse.js +2 -0
  262. package/dist/types/ListingType.d.ts +1 -0
  263. package/dist/types/ListingType.js +3 -0
  264. package/dist/types/LocalSite.d.ts +31 -0
  265. package/dist/types/LocalSite.js +2 -0
  266. package/dist/types/LocalSiteId.d.ts +1 -0
  267. package/dist/types/LocalSiteId.js +3 -0
  268. package/dist/types/LocalSiteRateLimit.d.ts +19 -0
  269. package/dist/types/LocalSiteRateLimit.js +2 -0
  270. package/dist/types/LocalUser.d.ts +24 -0
  271. package/dist/types/LocalUser.js +2 -0
  272. package/dist/types/LocalUserId.d.ts +1 -0
  273. package/dist/types/LocalUserId.js +3 -0
  274. package/dist/types/LocalUserView.d.ts +8 -0
  275. package/dist/types/LocalUserView.js +2 -0
  276. package/dist/types/LockPost.d.ts +6 -0
  277. package/dist/types/LockPost.js +2 -0
  278. package/dist/types/Login.d.ts +5 -0
  279. package/dist/types/Login.js +3 -0
  280. package/dist/types/LoginResponse.d.ts +5 -0
  281. package/dist/types/LoginResponse.js +3 -0
  282. package/dist/types/MarkAllAsRead.d.ts +3 -0
  283. package/dist/types/MarkAllAsRead.js +3 -0
  284. package/dist/types/MarkCommentReplyAsRead.d.ts +6 -0
  285. package/dist/types/MarkCommentReplyAsRead.js +2 -0
  286. package/dist/types/MarkPersonMentionAsRead.d.ts +6 -0
  287. package/dist/types/MarkPersonMentionAsRead.js +2 -0
  288. package/dist/types/MarkPostAsRead.d.ts +6 -0
  289. package/dist/types/MarkPostAsRead.js +2 -0
  290. package/dist/types/MarkPrivateMessageAsRead.d.ts +6 -0
  291. package/dist/types/MarkPrivateMessageAsRead.js +2 -0
  292. package/dist/types/ModAdd.d.ts +8 -0
  293. package/dist/types/ModAdd.js +2 -0
  294. package/dist/types/ModAddCommunity.d.ts +10 -0
  295. package/dist/types/ModAddCommunity.js +2 -0
  296. package/dist/types/ModAddCommunityView.d.ts +9 -0
  297. package/dist/types/ModAddCommunityView.js +2 -0
  298. package/dist/types/ModAddView.d.ts +7 -0
  299. package/dist/types/ModAddView.js +2 -0
  300. package/dist/types/ModBan.d.ts +10 -0
  301. package/dist/types/ModBan.js +2 -0
  302. package/dist/types/ModBanFromCommunity.d.ts +12 -0
  303. package/dist/types/ModBanFromCommunity.js +2 -0
  304. package/dist/types/ModBanFromCommunityView.d.ts +9 -0
  305. package/dist/types/ModBanFromCommunityView.js +2 -0
  306. package/dist/types/ModBanView.d.ts +7 -0
  307. package/dist/types/ModBanView.js +2 -0
  308. package/dist/types/ModFeaturePost.d.ts +10 -0
  309. package/dist/types/ModFeaturePost.js +2 -0
  310. package/dist/types/ModFeaturePostView.d.ts +10 -0
  311. package/dist/types/ModFeaturePostView.js +2 -0
  312. package/dist/types/ModHideCommunity.d.ts +10 -0
  313. package/dist/types/ModHideCommunity.js +2 -0
  314. package/dist/types/ModHideCommunityView.d.ts +8 -0
  315. package/dist/types/ModHideCommunityView.js +2 -0
  316. package/dist/types/ModJoin.d.ts +4 -0
  317. package/dist/types/ModJoin.js +2 -0
  318. package/dist/types/ModJoinResponse.d.ts +3 -0
  319. package/dist/types/ModJoinResponse.js +3 -0
  320. package/dist/types/ModLockPost.d.ts +9 -0
  321. package/dist/types/ModLockPost.js +2 -0
  322. package/dist/types/ModLockPostView.d.ts +10 -0
  323. package/dist/types/ModLockPostView.js +2 -0
  324. package/dist/types/ModRemoveComment.d.ts +10 -0
  325. package/dist/types/ModRemoveComment.js +2 -0
  326. package/dist/types/ModRemoveCommentView.d.ts +13 -0
  327. package/dist/types/ModRemoveCommentView.js +2 -0
  328. package/dist/types/ModRemoveCommunity.d.ts +11 -0
  329. package/dist/types/ModRemoveCommunity.js +2 -0
  330. package/dist/types/ModRemoveCommunityView.d.ts +8 -0
  331. package/dist/types/ModRemoveCommunityView.js +2 -0
  332. package/dist/types/ModRemovePost.d.ts +10 -0
  333. package/dist/types/ModRemovePost.js +2 -0
  334. package/dist/types/ModRemovePostView.d.ts +10 -0
  335. package/dist/types/ModRemovePostView.js +2 -0
  336. package/dist/types/ModTransferCommunity.d.ts +9 -0
  337. package/dist/types/ModTransferCommunity.js +2 -0
  338. package/dist/types/ModTransferCommunityView.d.ts +9 -0
  339. package/dist/types/ModTransferCommunityView.js +2 -0
  340. package/dist/types/ModlogActionType.d.ts +1 -0
  341. package/dist/types/ModlogActionType.js +3 -0
  342. package/dist/types/ModlogListParams.d.ts +10 -0
  343. package/dist/types/ModlogListParams.js +2 -0
  344. package/dist/types/MyUserInfo.d.ts +14 -0
  345. package/dist/types/MyUserInfo.js +2 -0
  346. package/dist/types/PasswordChangeAfterReset.d.ts +5 -0
  347. package/dist/types/PasswordChangeAfterReset.js +3 -0
  348. package/dist/types/PasswordReset.d.ts +3 -0
  349. package/dist/types/PasswordReset.js +3 -0
  350. package/dist/types/PasswordResetResponse.d.ts +1 -0
  351. package/dist/types/PasswordResetResponse.js +3 -0
  352. package/dist/types/Person.d.ts +21 -0
  353. package/dist/types/Person.js +2 -0
  354. package/dist/types/PersonAggregates.d.ts +9 -0
  355. package/dist/types/PersonAggregates.js +2 -0
  356. package/dist/types/PersonBlockId.d.ts +1 -0
  357. package/dist/types/PersonBlockId.js +3 -0
  358. package/dist/types/PersonBlockView.d.ts +5 -0
  359. package/dist/types/PersonBlockView.js +2 -0
  360. package/dist/types/PersonId.d.ts +1 -0
  361. package/dist/types/PersonId.js +3 -0
  362. package/dist/types/PersonMention.d.ts +10 -0
  363. package/dist/types/PersonMention.js +2 -0
  364. package/dist/types/PersonMentionId.d.ts +1 -0
  365. package/dist/types/PersonMentionId.js +3 -0
  366. package/dist/types/PersonMentionResponse.d.ts +4 -0
  367. package/dist/types/PersonMentionResponse.js +2 -0
  368. package/dist/types/PersonMentionView.d.ts +21 -0
  369. package/dist/types/PersonMentionView.js +2 -0
  370. package/dist/types/PersonView.d.ts +6 -0
  371. package/dist/types/PersonView.js +2 -0
  372. package/dist/types/Post.d.ts +27 -0
  373. package/dist/types/Post.js +2 -0
  374. package/dist/types/PostAggregates.d.ts +14 -0
  375. package/dist/types/PostAggregates.js +2 -0
  376. package/dist/types/PostFeatureType.d.ts +1 -0
  377. package/dist/types/PostFeatureType.js +3 -0
  378. package/dist/types/PostId.d.ts +1 -0
  379. package/dist/types/PostId.js +3 -0
  380. package/dist/types/PostJoin.d.ts +4 -0
  381. package/dist/types/PostJoin.js +2 -0
  382. package/dist/types/PostJoinResponse.d.ts +3 -0
  383. package/dist/types/PostJoinResponse.js +3 -0
  384. package/dist/types/PostOrCommentId.d.ts +7 -0
  385. package/dist/types/PostOrCommentId.js +2 -0
  386. package/dist/types/PostReport.d.ts +16 -0
  387. package/dist/types/PostReport.js +2 -0
  388. package/dist/types/PostReportId.d.ts +1 -0
  389. package/dist/types/PostReportId.js +3 -0
  390. package/dist/types/PostReportResponse.d.ts +4 -0
  391. package/dist/types/PostReportResponse.js +2 -0
  392. package/dist/types/PostReportView.d.ts +16 -0
  393. package/dist/types/PostReportView.js +2 -0
  394. package/dist/types/PostResponse.d.ts +4 -0
  395. package/dist/types/PostResponse.js +2 -0
  396. package/dist/types/PostView.d.ts +18 -0
  397. package/dist/types/PostView.js +2 -0
  398. package/dist/types/PrivateMessage.d.ts +14 -0
  399. package/dist/types/PrivateMessage.js +2 -0
  400. package/dist/types/PrivateMessageId.d.ts +1 -0
  401. package/dist/types/PrivateMessageId.js +3 -0
  402. package/dist/types/PrivateMessageReport.d.ts +14 -0
  403. package/dist/types/PrivateMessageReport.js +2 -0
  404. package/dist/types/PrivateMessageReportId.d.ts +1 -0
  405. package/dist/types/PrivateMessageReportId.js +3 -0
  406. package/dist/types/PrivateMessageReportResponse.d.ts +4 -0
  407. package/dist/types/PrivateMessageReportResponse.js +2 -0
  408. package/dist/types/PrivateMessageReportView.d.ts +10 -0
  409. package/dist/types/PrivateMessageReportView.js +2 -0
  410. package/dist/types/PrivateMessageResponse.d.ts +4 -0
  411. package/dist/types/PrivateMessageResponse.js +2 -0
  412. package/dist/types/PrivateMessageView.d.ts +7 -0
  413. package/dist/types/PrivateMessageView.js +2 -0
  414. package/dist/types/PrivateMessagesResponse.d.ts +4 -0
  415. package/dist/types/PrivateMessagesResponse.js +2 -0
  416. package/dist/types/PurgeComment.d.ts +6 -0
  417. package/dist/types/PurgeComment.js +2 -0
  418. package/dist/types/PurgeCommunity.d.ts +6 -0
  419. package/dist/types/PurgeCommunity.js +2 -0
  420. package/dist/types/PurgeItemResponse.d.ts +3 -0
  421. package/dist/types/PurgeItemResponse.js +3 -0
  422. package/dist/types/PurgePerson.d.ts +6 -0
  423. package/dist/types/PurgePerson.js +2 -0
  424. package/dist/types/PurgePost.d.ts +6 -0
  425. package/dist/types/PurgePost.js +2 -0
  426. package/dist/types/Register.d.ts +11 -0
  427. package/dist/types/Register.js +3 -0
  428. package/dist/types/RegistrationApplication.d.ts +10 -0
  429. package/dist/types/RegistrationApplication.js +2 -0
  430. package/dist/types/RegistrationApplicationResponse.d.ts +4 -0
  431. package/dist/types/RegistrationApplicationResponse.js +2 -0
  432. package/dist/types/RegistrationApplicationView.d.ts +9 -0
  433. package/dist/types/RegistrationApplicationView.js +2 -0
  434. package/dist/types/RegistrationMode.d.ts +1 -0
  435. package/dist/types/RegistrationMode.js +3 -0
  436. package/dist/types/RemoveComment.d.ts +7 -0
  437. package/dist/types/RemoveComment.js +2 -0
  438. package/dist/types/RemoveCommunity.d.ts +8 -0
  439. package/dist/types/RemoveCommunity.js +2 -0
  440. package/dist/types/RemovePost.d.ts +7 -0
  441. package/dist/types/RemovePost.js +2 -0
  442. package/dist/types/ResolveCommentReport.d.ts +6 -0
  443. package/dist/types/ResolveCommentReport.js +2 -0
  444. package/dist/types/ResolveObject.d.ts +4 -0
  445. package/dist/types/ResolveObject.js +3 -0
  446. package/dist/types/ResolveObjectResponse.d.ts +10 -0
  447. package/dist/types/ResolveObjectResponse.js +2 -0
  448. package/dist/types/ResolvePostReport.d.ts +6 -0
  449. package/dist/types/ResolvePostReport.js +2 -0
  450. package/dist/types/ResolvePrivateMessageReport.d.ts +6 -0
  451. package/dist/types/ResolvePrivateMessageReport.js +2 -0
  452. package/dist/types/SaveComment.d.ts +6 -0
  453. package/dist/types/SaveComment.js +2 -0
  454. package/dist/types/SavePost.d.ts +6 -0
  455. package/dist/types/SavePost.js +2 -0
  456. package/dist/types/SaveUserSettings.d.ts +26 -0
  457. package/dist/types/SaveUserSettings.js +2 -0
  458. package/dist/types/Search.d.ts +17 -0
  459. package/dist/types/Search.js +2 -0
  460. package/dist/types/SearchResponse.d.ts +12 -0
  461. package/dist/types/SearchResponse.js +2 -0
  462. package/dist/types/SearchType.d.ts +1 -0
  463. package/dist/types/SearchType.js +3 -0
  464. package/dist/types/Site.d.ts +18 -0
  465. package/dist/types/Site.js +2 -0
  466. package/dist/types/SiteAggregates.d.ts +13 -0
  467. package/dist/types/SiteAggregates.js +2 -0
  468. package/dist/types/SiteId.d.ts +1 -0
  469. package/dist/types/SiteId.js +3 -0
  470. package/dist/types/SiteMetadata.d.ts +6 -0
  471. package/dist/types/SiteMetadata.js +3 -0
  472. package/dist/types/SiteResponse.d.ts +4 -0
  473. package/dist/types/SiteResponse.js +2 -0
  474. package/dist/types/SiteView.d.ts +10 -0
  475. package/dist/types/SiteView.js +2 -0
  476. package/dist/types/SortType.d.ts +1 -0
  477. package/dist/types/SortType.js +3 -0
  478. package/dist/types/SubscribedType.d.ts +1 -0
  479. package/dist/types/SubscribedType.js +3 -0
  480. package/dist/types/Tagline.d.ts +8 -0
  481. package/dist/types/Tagline.js +2 -0
  482. package/dist/types/TransferCommunity.d.ts +7 -0
  483. package/dist/types/TransferCommunity.js +2 -0
  484. package/dist/types/UserJoin.d.ts +3 -0
  485. package/dist/types/UserJoin.js +3 -0
  486. package/dist/types/UserJoinResponse.d.ts +3 -0
  487. package/dist/types/UserJoinResponse.js +3 -0
  488. package/dist/types/VerifyEmail.d.ts +3 -0
  489. package/dist/types/VerifyEmail.js +3 -0
  490. package/dist/types/VerifyEmailResponse.d.ts +1 -0
  491. package/dist/types/VerifyEmailResponse.js +3 -0
  492. package/dist/types/others.d.ts +113 -0
  493. package/dist/{interfaces → types}/others.js +2 -145
  494. package/dist/websocket.d.ts +87 -9
  495. package/dist/websocket.js +2 -2
  496. package/package.json +1 -1
  497. package/dist/interfaces/aggregates.d.ts +0 -93
  498. package/dist/interfaces/api/comment.d.ts +0 -120
  499. package/dist/interfaces/api/community.d.ts +0 -125
  500. package/dist/interfaces/api/custom_emoji.d.ts +0 -33
  501. package/dist/interfaces/api/custom_emoji.js +0 -38
  502. package/dist/interfaces/api/index.d.ts +0 -7
  503. package/dist/interfaces/api/index.js +0 -23
  504. package/dist/interfaces/api/person.d.ts +0 -316
  505. package/dist/interfaces/api/post.d.ts +0 -141
  506. package/dist/interfaces/api/site.d.ts +0 -244
  507. package/dist/interfaces/api/websocket.d.ts +0 -27
  508. package/dist/interfaces/index.d.ts +0 -5
  509. package/dist/interfaces/index.js +0 -21
  510. package/dist/interfaces/others.d.ts +0 -256
  511. package/dist/interfaces/source.d.ts +0 -371
  512. package/dist/interfaces/source.js +0 -15
  513. package/dist/interfaces/views.d.ts +0 -225
  514. package/dist/interfaces/views.js +0 -9
  515. /package/dist/{interfaces/aggregates.js → types/AddAdmin.js} +0 -0
  516. /package/dist/{interfaces/api/comment.js → types/AddAdminResponse.js} +0 -0
  517. /package/dist/{interfaces/api/community.js → types/AddModToCommunity.js} +0 -0
  518. /package/dist/{interfaces/api/person.js → types/AddModToCommunityResponse.js} +0 -0
  519. /package/dist/{interfaces/api/post.js → types/AdminPurgeComment.js} +0 -0
  520. /package/dist/{interfaces/api/site.js → types/AdminPurgeCommentView.js} +0 -0
  521. /package/dist/{interfaces/api/websocket.js → types/AdminPurgeCommunity.js} +0 -0
@@ -0,0 +1,113 @@
1
+ /// <reference types="node" />
2
+ export declare const VERSION = "v3";
3
+ /**
4
+ * All of the websocket operations available.
5
+ */
6
+ export declare enum UserOperation {
7
+ Login = 0,
8
+ Register = 1,
9
+ GetCaptcha = 2,
10
+ CreateCommunity = 3,
11
+ CreatePost = 4,
12
+ ListCommunities = 5,
13
+ GetPost = 6,
14
+ GetCommunity = 7,
15
+ CreateComment = 8,
16
+ EditComment = 9,
17
+ DeleteComment = 10,
18
+ RemoveComment = 11,
19
+ SaveComment = 12,
20
+ CreateCommentLike = 13,
21
+ GetPosts = 14,
22
+ CreatePostLike = 15,
23
+ EditPost = 16,
24
+ DeletePost = 17,
25
+ RemovePost = 18,
26
+ LockPost = 19,
27
+ FeaturePost = 20,
28
+ MarkPostAsRead = 21,
29
+ SavePost = 22,
30
+ EditCommunity = 23,
31
+ DeleteCommunity = 24,
32
+ RemoveCommunity = 25,
33
+ FollowCommunity = 26,
34
+ GetPersonDetails = 27,
35
+ GetReplies = 28,
36
+ GetPersonMentions = 29,
37
+ MarkPersonMentionAsRead = 30,
38
+ MarkCommentReplyAsRead = 31,
39
+ GetModlog = 32,
40
+ BanFromCommunity = 33,
41
+ AddModToCommunity = 34,
42
+ CreateSite = 35,
43
+ EditSite = 36,
44
+ GetSite = 37,
45
+ AddAdmin = 38,
46
+ GetUnreadRegistrationApplicationCount = 39,
47
+ ListRegistrationApplications = 40,
48
+ ApproveRegistrationApplication = 41,
49
+ BanPerson = 42,
50
+ GetBannedPersons = 43,
51
+ Search = 44,
52
+ ResolveObject = 45,
53
+ MarkAllAsRead = 46,
54
+ SaveUserSettings = 47,
55
+ TransferCommunity = 48,
56
+ LeaveAdmin = 49,
57
+ DeleteAccount = 50,
58
+ PasswordReset = 51,
59
+ PasswordChangeAfterReset = 52,
60
+ CreatePrivateMessage = 53,
61
+ EditPrivateMessage = 54,
62
+ DeletePrivateMessage = 55,
63
+ MarkPrivateMessageAsRead = 56,
64
+ CreatePrivateMessageReport = 57,
65
+ ResolvePrivateMessageReport = 58,
66
+ ListPrivateMessageReports = 59,
67
+ GetPrivateMessages = 60,
68
+ UserJoin = 61,
69
+ GetComments = 62,
70
+ GetComment = 63,
71
+ PostJoin = 64,
72
+ CommunityJoin = 65,
73
+ ChangePassword = 66,
74
+ GetSiteMetadata = 67,
75
+ BlockCommunity = 68,
76
+ BlockPerson = 69,
77
+ PurgePerson = 70,
78
+ PurgeCommunity = 71,
79
+ PurgePost = 72,
80
+ PurgeComment = 73,
81
+ CreateCommentReport = 74,
82
+ ResolveCommentReport = 75,
83
+ ListCommentReports = 76,
84
+ CreatePostReport = 77,
85
+ ResolvePostReport = 78,
86
+ ListPostReports = 79,
87
+ GetReportCount = 80,
88
+ GetUnreadCount = 81,
89
+ VerifyEmail = 82,
90
+ CreateCustomEmoji = 83,
91
+ EditCustomEmoji = 84,
92
+ DeleteCustomEmoji = 85
93
+ }
94
+ export interface UploadImage {
95
+ image: File | Buffer;
96
+ /**
97
+ * Optional if cookie with jwt set is already present. Otherwise, auth is required.
98
+ */
99
+ auth?: string;
100
+ }
101
+ export interface UploadImageResponse {
102
+ /**
103
+ * Is "ok" if the upload was successful; is something else otherwise.
104
+ */
105
+ msg: string;
106
+ files?: ImageFile[];
107
+ url?: string;
108
+ delete_url?: string;
109
+ }
110
+ export interface ImageFile {
111
+ file: string;
112
+ delete_token: string;
113
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PostFeatureType = exports.SubscribedType = exports.ModlogActionType = exports.SearchType = exports.RegistrationMode = exports.ListingType = exports.CommentSortType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
3
+ exports.UserOperation = exports.VERSION = void 0;
4
4
  exports.VERSION = "v3";
5
5
  /**
6
6
  * All of the websocket operations available.
@@ -59,7 +59,7 @@ var UserOperation;
59
59
  UserOperation[UserOperation["LeaveAdmin"] = 49] = "LeaveAdmin";
60
60
  UserOperation[UserOperation["DeleteAccount"] = 50] = "DeleteAccount";
61
61
  UserOperation[UserOperation["PasswordReset"] = 51] = "PasswordReset";
62
- UserOperation[UserOperation["PasswordChange"] = 52] = "PasswordChange";
62
+ UserOperation[UserOperation["PasswordChangeAfterReset"] = 52] = "PasswordChangeAfterReset";
63
63
  UserOperation[UserOperation["CreatePrivateMessage"] = 53] = "CreatePrivateMessage";
64
64
  UserOperation[UserOperation["EditPrivateMessage"] = 54] = "EditPrivateMessage";
65
65
  UserOperation[UserOperation["DeletePrivateMessage"] = 55] = "DeletePrivateMessage";
@@ -94,146 +94,3 @@ var UserOperation;
94
94
  UserOperation[UserOperation["EditCustomEmoji"] = 84] = "EditCustomEmoji";
95
95
  UserOperation[UserOperation["DeleteCustomEmoji"] = 85] = "DeleteCustomEmoji";
96
96
  })(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
97
- /**
98
- * Different post sort types used in lemmy.
99
- */
100
- var SortType;
101
- (function (SortType) {
102
- /**
103
- * Posts sorted by hot, but bumped by new comments up to 2 days
104
- */
105
- SortType["Active"] = "Active";
106
- /**
107
- * Posts sorted by a decaying rank.
108
- */
109
- SortType["Hot"] = "Hot";
110
- /**
111
- * Posts sorted by the published time.
112
- */
113
- SortType["New"] = "New";
114
- /**
115
- * Posts sorted by the published time ascending
116
- */
117
- SortType["Old"] = "Old";
118
- /**
119
- * The top posts for this last day.
120
- */
121
- SortType["TopDay"] = "TopDay";
122
- /**
123
- * The top posts for this last week.
124
- */
125
- SortType["TopWeek"] = "TopWeek";
126
- /**
127
- * The top posts for this last month.
128
- */
129
- SortType["TopMonth"] = "TopMonth";
130
- /**
131
- * The top posts for this last year.
132
- */
133
- SortType["TopYear"] = "TopYear";
134
- /**
135
- * The top posts of all time.
136
- */
137
- SortType["TopAll"] = "TopAll";
138
- /**
139
- * Posts sorted by the most comments.
140
- */
141
- SortType["MostComments"] = "MostComments";
142
- /**
143
- * Posts sorted by the newest comments, with no necrobumping. IE a forum sort.
144
- */
145
- SortType["NewComments"] = "NewComments";
146
- })(SortType = exports.SortType || (exports.SortType = {}));
147
- /**
148
- * Different comment sort types used in lemmy.
149
- */
150
- var CommentSortType;
151
- (function (CommentSortType) {
152
- /**
153
- * Comments sorted by a decaying rank.
154
- */
155
- CommentSortType["Hot"] = "Hot";
156
- /**
157
- * Comments sorted by top score.
158
- */
159
- CommentSortType["Top"] = "Top";
160
- /**
161
- * Comments sorted by new.
162
- */
163
- CommentSortType["New"] = "New";
164
- /**
165
- * Comments sorted by old.
166
- */
167
- CommentSortType["Old"] = "Old";
168
- })(CommentSortType = exports.CommentSortType || (exports.CommentSortType = {}));
169
- /**
170
- * The different listing types for post and comment fetches.
171
- */
172
- var ListingType;
173
- (function (ListingType) {
174
- // TODO do these need to be strings?
175
- ListingType["All"] = "All";
176
- ListingType["Local"] = "Local";
177
- ListingType["Subscribed"] = "Subscribed";
178
- ListingType["Community"] = "Community";
179
- })(ListingType = exports.ListingType || (exports.ListingType = {}));
180
- /**
181
- * The different types of registration modes
182
- */
183
- var RegistrationMode;
184
- (function (RegistrationMode) {
185
- RegistrationMode["Closed"] = "Closed";
186
- RegistrationMode["RequireApplication"] = "RequireApplication";
187
- RegistrationMode["Open"] = "Open";
188
- })(RegistrationMode = exports.RegistrationMode || (exports.RegistrationMode = {}));
189
- /**
190
- * Search types for lemmy's search.
191
- */
192
- var SearchType;
193
- (function (SearchType) {
194
- SearchType["All"] = "All";
195
- SearchType["Comments"] = "Comments";
196
- SearchType["Posts"] = "Posts";
197
- SearchType["Communities"] = "Communities";
198
- SearchType["Users"] = "Users";
199
- SearchType["Url"] = "Url";
200
- })(SearchType = exports.SearchType || (exports.SearchType = {}));
201
- /**
202
- * Mod log action types
203
- */
204
- var ModlogActionType;
205
- (function (ModlogActionType) {
206
- ModlogActionType["All"] = "All";
207
- ModlogActionType["ModRemovePost"] = "ModRemovePost";
208
- ModlogActionType["ModLockPost"] = "ModLockPost";
209
- ModlogActionType["ModFeaturePost"] = "ModFeaturePost";
210
- ModlogActionType["ModRemoveComment"] = "ModRemoveComment";
211
- ModlogActionType["ModRemoveCommunity"] = "ModRemoveCommunity";
212
- ModlogActionType["ModBanFromCommunity"] = "ModBanFromCommunity";
213
- ModlogActionType["ModAddCommunity"] = "ModAddCommunity";
214
- ModlogActionType["ModTransferCommunity"] = "ModTransferCommunity";
215
- ModlogActionType["ModAdd"] = "ModAdd";
216
- ModlogActionType["ModBan"] = "ModBan";
217
- ModlogActionType["ModHideCommunity"] = "ModHideCommunity";
218
- ModlogActionType["AdminPurgePerson"] = "AdminPurgePerson";
219
- ModlogActionType["AdminPurgeCommunity"] = "AdminPurgeCommunity";
220
- ModlogActionType["AdminPurgePost"] = "AdminPurgePost";
221
- ModlogActionType["AdminPurgeComment"] = "AdminPurgeComment";
222
- })(ModlogActionType = exports.ModlogActionType || (exports.ModlogActionType = {}));
223
- /**
224
- * Different Subscribed states
225
- */
226
- var SubscribedType;
227
- (function (SubscribedType) {
228
- SubscribedType["Subscribed"] = "Subscribed";
229
- SubscribedType["NotSubscribed"] = "NotSubscribed";
230
- SubscribedType["Pending"] = "Pending";
231
- })(SubscribedType = exports.SubscribedType || (exports.SubscribedType = {}));
232
- /**
233
- * Different Subscribed states
234
- */
235
- var PostFeatureType;
236
- (function (PostFeatureType) {
237
- PostFeatureType["Local"] = "Local";
238
- PostFeatureType["Community"] = "Community";
239
- })(PostFeatureType = exports.PostFeatureType || (exports.PostFeatureType = {}));
@@ -1,11 +1,89 @@
1
- import { CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComment, GetComments, ListCommentReports, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
2
- import { AddModToCommunity, BanFromCommunity, BlockCommunity, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, ListCommunities, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
3
- import { CreateCustomEmoji, DeleteCustomEmoji, EditCustomEmoji } from "./interfaces/api/custom_emoji";
4
- import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, CreatePrivateMessageReport, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, ListPrivateMessageReports, Login, MarkAllAsRead, MarkCommentReplyAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, ResolvePrivateMessageReport, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
5
- import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, FeaturePost, GetPost, GetPosts, GetSiteMetadata, ListPostReports, LockPost, MarkPostAsRead, RemovePost, ResolvePostReport, SavePost } from "./interfaces/api/post";
6
- import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite, GetUnreadRegistrationApplicationCount, LeaveAdmin, ListRegistrationApplications, PurgeComment, PurgeCommunity, PurgePerson, PurgePost, ResolveObject, Search } from "./interfaces/api/site";
7
- import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
8
- import { UserOperation } from "./interfaces/others";
1
+ import { AddAdmin } from "./types/AddAdmin";
2
+ import { AddModToCommunity } from "./types/AddModToCommunity";
3
+ import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
4
+ import { BanFromCommunity } from "./types/BanFromCommunity";
5
+ import { BanPerson } from "./types/BanPerson";
6
+ import { BlockCommunity } from "./types/BlockCommunity";
7
+ import { BlockPerson } from "./types/BlockPerson";
8
+ import { ChangePassword } from "./types/ChangePassword";
9
+ import { CommunityJoin } from "./types/CommunityJoin";
10
+ import { CreateComment } from "./types/CreateComment";
11
+ import { CreateCommentLike } from "./types/CreateCommentLike";
12
+ import { CreateCommentReport } from "./types/CreateCommentReport";
13
+ import { CreateCommunity } from "./types/CreateCommunity";
14
+ import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
15
+ import { CreatePost } from "./types/CreatePost";
16
+ import { CreatePostLike } from "./types/CreatePostLike";
17
+ import { CreatePostReport } from "./types/CreatePostReport";
18
+ import { CreatePrivateMessage } from "./types/CreatePrivateMessage";
19
+ import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
20
+ import { CreateSite } from "./types/CreateSite";
21
+ import { DeleteAccount } from "./types/DeleteAccount";
22
+ import { DeleteComment } from "./types/DeleteComment";
23
+ import { DeleteCommunity } from "./types/DeleteCommunity";
24
+ import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
25
+ import { DeletePost } from "./types/DeletePost";
26
+ import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
27
+ import { EditComment } from "./types/EditComment";
28
+ import { EditCommunity } from "./types/EditCommunity";
29
+ import { EditCustomEmoji } from "./types/EditCustomEmoji";
30
+ import { EditPost } from "./types/EditPost";
31
+ import { EditPrivateMessage } from "./types/EditPrivateMessage";
32
+ import { EditSite } from "./types/EditSite";
33
+ import { FeaturePost } from "./types/FeaturePost";
34
+ import { FollowCommunity } from "./types/FollowCommunity";
35
+ import { GetBannedPersons } from "./types/GetBannedPersons";
36
+ import { GetComment } from "./types/GetComment";
37
+ import { GetComments } from "./types/GetComments";
38
+ import { GetCommunity } from "./types/GetCommunity";
39
+ import { GetModlog } from "./types/GetModlog";
40
+ import { GetPersonDetails } from "./types/GetPersonDetails";
41
+ import { GetPersonMentions } from "./types/GetPersonMentions";
42
+ import { GetPost } from "./types/GetPost";
43
+ import { GetPosts } from "./types/GetPosts";
44
+ import { GetPrivateMessages } from "./types/GetPrivateMessages";
45
+ import { GetReplies } from "./types/GetReplies";
46
+ import { GetReportCount } from "./types/GetReportCount";
47
+ import { GetSite } from "./types/GetSite";
48
+ import { GetSiteMetadata } from "./types/GetSiteMetadata";
49
+ import { GetUnreadCount } from "./types/GetUnreadCount";
50
+ import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
51
+ import { LeaveAdmin } from "./types/LeaveAdmin";
52
+ import { ListCommentReports } from "./types/ListCommentReports";
53
+ import { ListCommunities } from "./types/ListCommunities";
54
+ import { ListPostReports } from "./types/ListPostReports";
55
+ import { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
56
+ import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
57
+ import { LockPost } from "./types/LockPost";
58
+ import { Login } from "./types/Login";
59
+ import { MarkAllAsRead } from "./types/MarkAllAsRead";
60
+ import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
61
+ import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
62
+ import { MarkPostAsRead } from "./types/MarkPostAsRead";
63
+ import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
64
+ import { UserOperation } from "./types/others";
65
+ import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
66
+ import { PasswordReset } from "./types/PasswordReset";
67
+ import { PostJoin } from "./types/PostJoin";
68
+ import { PurgeComment } from "./types/PurgeComment";
69
+ import { PurgeCommunity } from "./types/PurgeCommunity";
70
+ import { PurgePerson } from "./types/PurgePerson";
71
+ import { PurgePost } from "./types/PurgePost";
72
+ import { Register } from "./types/Register";
73
+ import { RemoveComment } from "./types/RemoveComment";
74
+ import { RemoveCommunity } from "./types/RemoveCommunity";
75
+ import { RemovePost } from "./types/RemovePost";
76
+ import { ResolveCommentReport } from "./types/ResolveCommentReport";
77
+ import { ResolveObject } from "./types/ResolveObject";
78
+ import { ResolvePostReport } from "./types/ResolvePostReport";
79
+ import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
80
+ import { SaveComment } from "./types/SaveComment";
81
+ import { SavePost } from "./types/SavePost";
82
+ import { SaveUserSettings } from "./types/SaveUserSettings";
83
+ import { Search } from "./types/Search";
84
+ import { TransferCommunity } from "./types/TransferCommunity";
85
+ import { UserJoin } from "./types/UserJoin";
86
+ import { VerifyEmail } from "./types/VerifyEmail";
9
87
  /**
10
88
  * Helps build lemmy websocket message requests, that you can use in your Websocket sends.
11
89
  *
@@ -298,7 +376,7 @@ export declare class LemmyWebsocket {
298
376
  /**
299
377
  * Change your password from an email / token based reset.
300
378
  */
301
- passwordChange(form: PasswordChange): string;
379
+ passwordChange(form: PasswordChangeAfterReset): string;
302
380
  /**
303
381
  * Create a private message.
304
382
  */
package/dist/websocket.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.wsJsonToRes = exports.wsUserOp = exports.LemmyWebsocket = void 0;
4
- var others_1 = require("./interfaces/others");
4
+ var others_1 = require("./types/others");
5
5
  /**
6
6
  * Helps build lemmy websocket message requests, that you can use in your Websocket sends.
7
7
  *
@@ -432,7 +432,7 @@ var LemmyWebsocket = /** @class */ (function () {
432
432
  * Change your password from an email / token based reset.
433
433
  */
434
434
  LemmyWebsocket.prototype.passwordChange = function (form) {
435
- return wrapper(others_1.UserOperation.PasswordChange, form);
435
+ return wrapper(others_1.UserOperation.PasswordChangeAfterReset, form);
436
436
  };
437
437
  /**
438
438
  * Create a private message.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.2-rc.6",
3
+ "version": "0.17.2-rc.7",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",
@@ -1,93 +0,0 @@
1
- /**
2
- * Aggregate data for a person.
3
- */
4
- export interface PersonAggregates {
5
- id: number;
6
- person_id: number;
7
- post_count: number;
8
- post_score: number;
9
- comment_count: number;
10
- comment_score: number;
11
- }
12
- /**
13
- * Aggregate data for your site.
14
- */
15
- export interface SiteAggregates {
16
- id: number;
17
- site_id: number;
18
- users: number;
19
- posts: number;
20
- comments: number;
21
- communities: number;
22
- /**
23
- * Active users per day.
24
- */
25
- users_active_day: number;
26
- /**
27
- * Active users per week.
28
- */
29
- users_active_week: number;
30
- /**
31
- * Active users per month.
32
- */
33
- users_active_month: number;
34
- /**
35
- * Active users per year.
36
- */
37
- users_active_half_year: number;
38
- }
39
- /**
40
- * Aggregate data for your post.
41
- */
42
- export interface PostAggregates {
43
- id: number;
44
- post_id: number;
45
- comments: number;
46
- score: number;
47
- upvotes: number;
48
- downvotes: number;
49
- /**
50
- * Newest comment time, limited to 2 days, to prevent necrobumping.
51
- */
52
- newest_comment_time_necro: string;
53
- newest_comment_time: string;
54
- featured_community: boolean;
55
- featured_local: boolean;
56
- }
57
- /**
58
- * Aggregate data for your community.
59
- */
60
- export interface CommunityAggregates {
61
- id: number;
62
- community_id: number;
63
- subscribers: number;
64
- posts: number;
65
- comments: number;
66
- /**
67
- * Active users per day.
68
- */
69
- users_active_day: number;
70
- /**
71
- * Active users per week.
72
- */
73
- users_active_week: number;
74
- /**
75
- * Active users per month.
76
- */
77
- users_active_month: number;
78
- /**
79
- * Active users per year.
80
- */
81
- users_active_half_year: number;
82
- }
83
- /**
84
- * Aggregate data for your comment.
85
- */
86
- export interface CommentAggregates {
87
- id: number;
88
- comment_id: number;
89
- score: number;
90
- upvotes: number;
91
- downvotes: number;
92
- child_count: number;
93
- }
@@ -1,120 +0,0 @@
1
- import { CommentSortType, ListingType } from "../others";
2
- import { CommentReportView, CommentView } from "../views";
3
- export interface CreateComment {
4
- content: string;
5
- parent_id?: number;
6
- language_id?: number;
7
- post_id: number;
8
- /**
9
- * An optional front end ID, to tell which is comment is coming back.
10
- */
11
- form_id?: string;
12
- auth: string;
13
- }
14
- export interface EditComment {
15
- comment_id: number;
16
- content?: string;
17
- /**
18
- * "Distinguishes" a comment, or speak officially. Only doable by community mods or admins.
19
- */
20
- distinguished?: boolean;
21
- language_id?: number;
22
- /**
23
- * An optional front end ID, to tell which is comment is coming back.
24
- */
25
- form_id?: string;
26
- auth: string;
27
- }
28
- /**
29
- * Only the creator can delete the comment.
30
- */
31
- export interface DeleteComment {
32
- comment_id: number;
33
- deleted: boolean;
34
- auth: string;
35
- }
36
- /**
37
- * Only a mod or admin can remove the comment.
38
- */
39
- export interface RemoveComment {
40
- comment_id: number;
41
- removed: boolean;
42
- reason?: string;
43
- auth: string;
44
- }
45
- export interface SaveComment {
46
- comment_id: number;
47
- save: boolean;
48
- auth: string;
49
- }
50
- export interface CommentResponse {
51
- comment_view: CommentView;
52
- recipient_ids: number[];
53
- /**
54
- * An optional front end ID, to tell which is comment is coming back.
55
- */
56
- form_id?: string;
57
- }
58
- export interface CreateCommentLike {
59
- comment_id: number;
60
- score: number;
61
- auth: string;
62
- }
63
- /**
64
- * Comment listing types are `All, Subscribed, Community`
65
- *
66
- * You can use either `community_id` or `community_name` as an id.
67
- * To get posts for a federated community by name, use `name@instance.tld` .
68
- */
69
- export interface GetComments {
70
- type_?: ListingType;
71
- sort?: CommentSortType;
72
- max_depth?: number;
73
- page?: number;
74
- limit?: number;
75
- community_id?: number;
76
- community_name?: string;
77
- post_id?: number;
78
- parent_id?: number;
79
- saved_only?: boolean;
80
- auth?: string;
81
- }
82
- export interface GetCommentsResponse {
83
- comments: CommentView[];
84
- }
85
- export interface GetComment {
86
- id: number;
87
- auth?: string;
88
- }
89
- export interface CreateCommentReport {
90
- comment_id: number;
91
- reason: string;
92
- auth: string;
93
- }
94
- export interface CommentReportResponse {
95
- comment_report_view: CommentReportView;
96
- }
97
- export interface ResolveCommentReport {
98
- report_id: number;
99
- /**
100
- * Either resolve or unresolve a report.
101
- */
102
- resolved: boolean;
103
- auth: string;
104
- }
105
- export interface ListCommentReports {
106
- page?: number;
107
- limit?: number;
108
- /**
109
- * if no community is given, it returns reports for all communities moderated by the auth user.
110
- */
111
- community_id?: number;
112
- /**
113
- * Only shows the unresolved reports.
114
- */
115
- unresolved_only?: boolean;
116
- auth: string;
117
- }
118
- export interface ListCommentReportsResponse {
119
- comment_reports: CommentReportView[];
120
- }