lemmy-js-client 1.0.0-alpha.1 → 1.0.0-comment-lock.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 (205) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +92 -36
  3. package/dist/http.js +248 -66
  4. package/dist/index.d.ts +48 -20
  5. package/dist/other_types.d.ts +22 -4
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +2 -2
  8. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  9. package/dist/types/AdminListUsers.d.ts +7 -0
  10. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  11. package/dist/types/AdminPurgeComment.d.ts +1 -1
  12. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  13. package/dist/types/AdminPurgePerson.d.ts +1 -1
  14. package/dist/types/AdminPurgePost.d.ts +1 -1
  15. package/dist/types/BanFromCommunity.d.ts +1 -1
  16. package/dist/types/BanPerson.d.ts +1 -1
  17. package/dist/types/Comment.d.ts +6 -2
  18. package/dist/types/CommentActions.d.ts +2 -6
  19. package/dist/types/CommentActions.js +1 -0
  20. package/dist/types/CommentReport.d.ts +2 -2
  21. package/dist/types/CommentReportView.d.ts +3 -1
  22. package/dist/types/CommentResponse.d.ts +0 -2
  23. package/dist/types/CommentSlimView.d.ts +2 -6
  24. package/dist/types/CommentView.d.ts +2 -5
  25. package/dist/types/Community.d.ts +2 -2
  26. package/dist/types/CommunityActions.d.ts +7 -13
  27. package/dist/types/CommunityIdQuery.d.ts +8 -0
  28. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  29. package/dist/types/CommunityReport.d.ts +2 -2
  30. package/dist/types/CommunityReportView.d.ts +4 -0
  31. package/dist/types/CommunityView.d.ts +0 -2
  32. package/dist/types/CreateCommunityTag.d.ts +3 -1
  33. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  34. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  35. package/dist/types/CreatePost.d.ts +1 -1
  36. package/dist/types/CreateSite.d.ts +16 -13
  37. package/dist/types/CustomEmoji.d.ts +2 -2
  38. package/dist/types/EditPost.d.ts +1 -1
  39. package/dist/types/EditSite.d.ts +22 -16
  40. package/dist/types/ExportDataResponse.d.ts +13 -0
  41. package/dist/types/FederationBlockList.d.ts +3 -3
  42. package/dist/types/FederationError.d.ts +3 -1
  43. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  44. package/dist/types/GetComments.d.ts +0 -2
  45. package/dist/types/GetMultiCommunity.d.ts +4 -0
  46. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  47. package/dist/types/GetPosts.d.ts +2 -2
  48. package/dist/types/Instance.d.ts +4 -3
  49. package/dist/types/InstanceActions.d.ts +8 -8
  50. package/dist/types/InstanceActions.js +1 -0
  51. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  52. package/dist/types/LemmyErrorType.d.ts +13 -19
  53. package/dist/types/LikeType.d.ts +4 -0
  54. package/dist/types/ListMultiCommunities.d.ts +5 -0
  55. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  56. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  57. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  58. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  59. package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
  60. package/dist/types/ListPersonLiked.d.ts +13 -0
  61. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  62. package/dist/types/ListPersonRead.d.ts +9 -0
  63. package/dist/types/ListPersonRead.js +2 -0
  64. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  65. package/dist/types/ListPersonReadResponse.js +2 -0
  66. package/dist/types/ListingType.d.ts +1 -1
  67. package/dist/types/LocalImage.d.ts +8 -3
  68. package/dist/types/LocalImageView.d.ts +2 -0
  69. package/dist/types/LocalSite.d.ts +6 -6
  70. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  71. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  72. package/dist/types/LocalUser.d.ts +4 -2
  73. package/dist/types/LocalUserView.d.ts +1 -2
  74. package/dist/types/LockComment.d.ts +6 -0
  75. package/dist/types/LockComment.js +2 -0
  76. package/dist/types/LockPost.d.ts +1 -0
  77. package/dist/types/Login.d.ts +3 -0
  78. package/dist/types/LoginToken.d.ts +1 -1
  79. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  80. package/dist/types/MarkNotificationAsRead.js +2 -0
  81. package/dist/types/ModAdd.d.ts +1 -1
  82. package/dist/types/ModAddCommunity.d.ts +1 -1
  83. package/dist/types/ModBan.d.ts +2 -2
  84. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  85. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  86. package/dist/types/ModEditPost.d.ts +10 -0
  87. package/dist/types/ModEditPost.js +2 -0
  88. package/dist/types/ModFeaturePost.d.ts +1 -1
  89. package/dist/types/ModLockComment.d.ts +14 -0
  90. package/dist/types/ModLockComment.js +2 -0
  91. package/dist/types/ModLockCommentId.d.ts +1 -0
  92. package/dist/types/ModLockCommentView.d.ts +14 -0
  93. package/dist/types/ModLockCommentView.js +2 -0
  94. package/dist/types/ModLockPost.d.ts +2 -1
  95. package/dist/types/ModRemoveComment.d.ts +1 -1
  96. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  97. package/dist/types/ModRemovePost.d.ts +1 -1
  98. package/dist/types/ModTransferCommunity.d.ts +1 -1
  99. package/dist/types/ModlogCombinedView.d.ts +4 -1
  100. package/dist/types/MultiCommunity.d.ts +17 -0
  101. package/dist/types/MultiCommunity.js +2 -0
  102. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  103. package/dist/types/MultiCommunityFollow.js +2 -0
  104. package/dist/types/MultiCommunityId.d.ts +1 -0
  105. package/dist/types/MultiCommunityId.js +3 -0
  106. package/dist/types/MultiCommunityView.d.ts +6 -0
  107. package/dist/types/MultiCommunityView.js +2 -0
  108. package/dist/types/MyUserInfo.d.ts +2 -1
  109. package/dist/types/NotePerson.d.ts +10 -0
  110. package/dist/types/NotePerson.js +2 -0
  111. package/dist/types/Notification.d.ts +16 -0
  112. package/dist/types/Notification.js +2 -0
  113. package/dist/types/NotificationData.d.ts +10 -0
  114. package/dist/types/NotificationData.js +2 -0
  115. package/dist/types/NotificationDataType.d.ts +4 -0
  116. package/dist/types/NotificationDataType.js +3 -0
  117. package/dist/types/NotificationId.d.ts +1 -0
  118. package/dist/types/NotificationId.js +3 -0
  119. package/dist/types/NotificationTypes.d.ts +4 -0
  120. package/dist/types/NotificationTypes.js +3 -0
  121. package/dist/types/NotificationView.d.ts +6 -0
  122. package/dist/types/NotificationView.js +2 -0
  123. package/dist/types/OAuthAccount.d.ts +2 -2
  124. package/dist/types/OAuthProvider.d.ts +2 -2
  125. package/dist/types/Person.d.ts +2 -2
  126. package/dist/types/PersonActions.d.ts +21 -4
  127. package/dist/types/PersonActions.js +1 -0
  128. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  129. package/dist/types/PersonLikedCombinedView.js +2 -0
  130. package/dist/types/PersonView.d.ts +2 -3
  131. package/dist/types/Post.d.ts +4 -4
  132. package/dist/types/PostActions.d.ts +7 -9
  133. package/dist/types/PostNotificationsMode.d.ts +4 -0
  134. package/dist/types/PostNotificationsMode.js +3 -0
  135. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  136. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  137. package/dist/types/PostReport.d.ts +2 -2
  138. package/dist/types/PostReportView.d.ts +3 -1
  139. package/dist/types/PostView.d.ts +2 -5
  140. package/dist/types/PrivateMessage.d.ts +2 -3
  141. package/dist/types/PrivateMessageReport.d.ts +2 -2
  142. package/dist/types/PrivateMessageReportView.d.ts +2 -0
  143. package/dist/types/ReadableFederationState.d.ts +2 -2
  144. package/dist/types/RegistrationApplication.d.ts +1 -1
  145. package/dist/types/SaveUserSettings.d.ts +6 -1
  146. package/dist/types/Search.d.ts +5 -1
  147. package/dist/types/SearchCombinedView.d.ts +4 -1
  148. package/dist/types/SearchType.d.ts +1 -1
  149. package/dist/types/Site.d.ts +4 -3
  150. package/dist/types/SiteResponse.d.ts +0 -4
  151. package/dist/types/Tag.d.ts +8 -16
  152. package/dist/types/Tagline.d.ts +2 -2
  153. package/dist/types/TagsView.d.ts +1 -1
  154. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  155. package/dist/types/UpdateCommunityNotifications.js +2 -0
  156. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  157. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  158. package/dist/types/UpdateMultiCommunity.js +2 -0
  159. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  160. package/dist/types/UpdatePostNotifications.js +2 -0
  161. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  162. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  163. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  164. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  165. package/dist/types/UserSettingsBackup.d.ts +31 -0
  166. package/dist/types/UserSettingsBackup.js +2 -0
  167. package/dist/types/VoteShow.d.ts +4 -0
  168. package/dist/types/VoteShow.js +3 -0
  169. package/dist/types/VoteView.d.ts +1 -1
  170. package/package.json +6 -5
  171. package/dist/types/CommentReply.d.ts +0 -13
  172. package/dist/types/CommentReplyId.d.ts +0 -4
  173. package/dist/types/CommentReplyView.d.ts +0 -32
  174. package/dist/types/InboxCombinedView.d.ts +0 -13
  175. package/dist/types/InboxDataType.d.ts +0 -4
  176. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  177. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  178. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  179. package/dist/types/PersonCommentMention.d.ts +0 -13
  180. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  181. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  182. package/dist/types/PersonPostMention.d.ts +0 -13
  183. package/dist/types/PersonPostMentionId.d.ts +0 -4
  184. package/dist/types/PersonPostMentionView.d.ts +0 -32
  185. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  186. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  187. /package/dist/types/{CommentReply.js → AdminListUsersResponse.js} +0 -0
  188. /package/dist/types/{CommentReplyView.js → CommunityIdQuery.js} +0 -0
  189. /package/dist/types/{CommentReplyId.js → CommunityNotificationsMode.js} +0 -0
  190. /package/dist/types/{InboxDataType.js → CreateMultiCommunity.js} +0 -0
  191. /package/dist/types/{InboxCombinedView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  192. /package/dist/types/{ListBannedPersons.js → ExportDataResponse.js} +0 -0
  193. /package/dist/types/{ListInbox.js → FollowMultiCommunity.js} +0 -0
  194. /package/dist/types/{ListInboxResponse.js → GetMultiCommunity.js} +0 -0
  195. /package/dist/types/{MarkCommentReplyAsRead.js → GetMultiCommunityResponse.js} +0 -0
  196. /package/dist/types/{PersonCommentMentionId.js → LikeType.js} +0 -0
  197. /package/dist/types/{MarkPersonCommentMentionAsRead.js → ListMultiCommunities.js} +0 -0
  198. /package/dist/types/{MarkPersonPostMentionAsRead.js → ListMultiCommunitiesResponse.js} +0 -0
  199. /package/dist/types/{PersonCommentMention.js → ListNotifications.js} +0 -0
  200. /package/dist/types/{PersonCommentMentionView.js → ListNotificationsResponse.js} +0 -0
  201. /package/dist/types/{PersonPostMention.js → ListPersonHidden.js} +0 -0
  202. /package/dist/types/{PersonPostMentionView.js → ListPersonHiddenResponse.js} +0 -0
  203. /package/dist/types/{ResolveObjectResponse.js → ListPersonLiked.js} +0 -0
  204. /package/dist/types/{UserBlockInstanceParams.js → ListPersonLikedResponse.js} +0 -0
  205. /package/dist/types/{PersonPostMentionId.js → ModLockCommentId.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
13
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
14
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
15
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
+ export { AdminListUsers } from "./types/AdminListUsers";
17
+ export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
16
18
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
19
  export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
18
20
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
@@ -32,7 +34,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
32
34
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
33
35
  export { BanPerson } from "./types/BanPerson";
34
36
  export { BanPersonResponse } from "./types/BanPersonResponse";
35
- export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
36
37
  export { BlockCommunity } from "./types/BlockCommunity";
37
38
  export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
38
39
  export { BlockPerson } from "./types/BlockPerson";
@@ -42,9 +43,6 @@ export { ChangePassword } from "./types/ChangePassword";
42
43
  export { Comment } from "./types/Comment";
43
44
  export { CommentActions } from "./types/CommentActions";
44
45
  export { CommentId } from "./types/CommentId";
45
- export { CommentReply } from "./types/CommentReply";
46
- export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyView } from "./types/CommentReplyView";
48
46
  export { CommentReport } from "./types/CommentReport";
49
47
  export { CommentReportId } from "./types/CommentReportId";
50
48
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -58,7 +56,9 @@ export { CommunityActions } from "./types/CommunityActions";
58
56
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
57
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
58
  export { CommunityId } from "./types/CommunityId";
59
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
60
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
61
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
62
62
  export { CommunityReport } from "./types/CommunityReport";
63
63
  export { CommunityReportId } from "./types/CommunityReportId";
64
64
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -74,7 +74,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
74
74
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
75
75
  export { CreateCommunityTag } from "./types/CreateCommunityTag";
76
76
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
77
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
77
78
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
79
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
78
80
  export { CreatePost } from "./types/CreatePost";
79
81
  export { CreatePostLike } from "./types/CreatePostLike";
80
82
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -106,12 +108,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
106
108
  export { EditPost } from "./types/EditPost";
107
109
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
108
110
  export { EditSite } from "./types/EditSite";
111
+ export { ExportDataResponse } from "./types/ExportDataResponse";
109
112
  export { FeaturePost } from "./types/FeaturePost";
110
113
  export { FederatedInstances } from "./types/FederatedInstances";
111
114
  export { FederationBlockList } from "./types/FederationBlockList";
112
115
  export { FederationError } from "./types/FederationError";
113
116
  export { FederationMode } from "./types/FederationMode";
114
117
  export { FollowCommunity } from "./types/FollowCommunity";
118
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
115
119
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
116
120
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
117
121
  export { GetComment } from "./types/GetComment";
@@ -125,6 +129,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
125
129
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
126
130
  export { GetModlog } from "./types/GetModlog";
127
131
  export { GetModlogResponse } from "./types/GetModlogResponse";
132
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
133
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
128
134
  export { GetPersonDetails } from "./types/GetPersonDetails";
129
135
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
130
136
  export { GetPost } from "./types/GetPost";
@@ -145,8 +151,6 @@ export { HidePost } from "./types/HidePost";
145
151
  export { ImageDetails } from "./types/ImageDetails";
146
152
  export { ImageGetParams } from "./types/ImageGetParams";
147
153
  export { ImageProxyParams } from "./types/ImageProxyParams";
148
- export { InboxCombinedView } from "./types/InboxCombinedView";
149
- export { InboxDataType } from "./types/InboxDataType";
150
154
  export { Instance } from "./types/Instance";
151
155
  export { InstanceActions } from "./types/InstanceActions";
152
156
  export { InstanceId } from "./types/InstanceId";
@@ -154,8 +158,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
154
158
  export { Language } from "./types/Language";
155
159
  export { LanguageId } from "./types/LanguageId";
156
160
  export { LemmyErrorType } from "./types/LemmyErrorType";
161
+ export { LikeType } from "./types/LikeType";
157
162
  export { LinkMetadata } from "./types/LinkMetadata";
158
- export { ListBannedPersons } from "./types/ListBannedPersons";
159
163
  export { ListCommentLikes } from "./types/ListCommentLikes";
160
164
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
161
165
  export { ListCommunities } from "./types/ListCommunities";
@@ -164,13 +168,21 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
164
168
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
165
169
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
166
170
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
167
- export { ListInbox } from "./types/ListInbox";
168
- export { ListInboxResponse } from "./types/ListInboxResponse";
169
171
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
170
172
  export { ListMedia } from "./types/ListMedia";
171
173
  export { ListMediaResponse } from "./types/ListMediaResponse";
174
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
175
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
176
+ export { ListNotifications } from "./types/ListNotifications";
177
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
172
178
  export { ListPersonContent } from "./types/ListPersonContent";
173
179
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
180
+ export { ListPersonHidden } from "./types/ListPersonHidden";
181
+ export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
182
+ export { ListPersonLiked } from "./types/ListPersonLiked";
183
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
184
+ export { ListPersonRead } from "./types/ListPersonRead";
185
+ export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
174
186
  export { ListPersonSaved } from "./types/ListPersonSaved";
175
187
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
176
188
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -191,14 +203,13 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
191
203
  export { LocalUser } from "./types/LocalUser";
192
204
  export { LocalUserId } from "./types/LocalUserId";
193
205
  export { LocalUserView } from "./types/LocalUserView";
206
+ export { LockComment } from "./types/LockComment";
194
207
  export { LockPost } from "./types/LockPost";
195
208
  export { Login } from "./types/Login";
196
209
  export { LoginResponse } from "./types/LoginResponse";
197
210
  export { LoginToken } from "./types/LoginToken";
198
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
199
211
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
200
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
201
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
212
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
202
213
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
203
214
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
204
215
  export { ModAdd } from "./types/ModAdd";
@@ -216,6 +227,7 @@ export { ModBanView } from "./types/ModBanView";
216
227
  export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
217
228
  export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
218
229
  export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
230
+ export { ModEditPost } from "./types/ModEditPost";
219
231
  export { ModFeaturePost } from "./types/ModFeaturePost";
220
232
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
221
233
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
@@ -228,6 +240,9 @@ export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
228
240
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
229
241
  export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
230
242
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
243
+ export { ModLockComment } from "./types/ModLockComment";
244
+ export { ModLockCommentId } from "./types/ModLockCommentId";
245
+ export { ModLockCommentView } from "./types/ModLockCommentView";
231
246
  export { ModRemovePost } from "./types/ModRemovePost";
232
247
  export { ModRemovePostId } from "./types/ModRemovePostId";
233
248
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -236,7 +251,18 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
236
251
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
237
252
  export { ModlogActionType } from "./types/ModlogActionType";
238
253
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
254
+ export { MultiCommunity } from "./types/MultiCommunity";
255
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
256
+ export { MultiCommunityId } from "./types/MultiCommunityId";
257
+ export { MultiCommunityView } from "./types/MultiCommunityView";
239
258
  export { MyUserInfo } from "./types/MyUserInfo";
259
+ export { NotePerson } from "./types/NotePerson";
260
+ export { Notification } from "./types/Notification";
261
+ export { NotificationData } from "./types/NotificationData";
262
+ export { NotificationDataType } from "./types/NotificationDataType";
263
+ export { NotificationId } from "./types/NotificationId";
264
+ export { NotificationTypes } from "./types/NotificationTypes";
265
+ export { NotificationView } from "./types/NotificationView";
240
266
  export { OAuthAccount } from "./types/OAuthAccount";
241
267
  export { OAuthProvider } from "./types/OAuthProvider";
242
268
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -247,15 +273,10 @@ export { PasswordReset } from "./types/PasswordReset";
247
273
  export { PendingFollow } from "./types/PendingFollow";
248
274
  export { Person } from "./types/Person";
249
275
  export { PersonActions } from "./types/PersonActions";
250
- export { PersonCommentMention } from "./types/PersonCommentMention";
251
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
252
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
253
276
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
254
277
  export { PersonContentType } from "./types/PersonContentType";
255
278
  export { PersonId } from "./types/PersonId";
256
- export { PersonPostMention } from "./types/PersonPostMention";
257
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
258
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
279
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
259
280
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
260
281
  export { PersonView } from "./types/PersonView";
261
282
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -264,6 +285,8 @@ export { PostActions } from "./types/PostActions";
264
285
  export { PostFeatureType } from "./types/PostFeatureType";
265
286
  export { PostId } from "./types/PostId";
266
287
  export { PostListingMode } from "./types/PostListingMode";
288
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
289
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
267
290
  export { PostReport } from "./types/PostReport";
268
291
  export { PostReportId } from "./types/PostReportId";
269
292
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -300,7 +323,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
300
323
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
301
324
  export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
302
325
  export { ResolveObject } from "./types/ResolveObject";
303
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
304
326
  export { ResolvePostReport } from "./types/ResolvePostReport";
305
327
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
306
328
  export { SaveComment } from "./types/SaveComment";
@@ -324,11 +346,17 @@ export { TaglineId } from "./types/TaglineId";
324
346
  export { TaglineResponse } from "./types/TaglineResponse";
325
347
  export { TagsView } from "./types/TagsView";
326
348
  export { TransferCommunity } from "./types/TransferCommunity";
349
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
327
350
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
351
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
352
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
328
353
  export { UpdateTagline } from "./types/UpdateTagline";
329
354
  export { UpdateTotp } from "./types/UpdateTotp";
330
355
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
331
356
  export { UploadImageResponse } from "./types/UploadImageResponse";
332
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
357
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
358
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
359
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
333
360
  export { VerifyEmail } from "./types/VerifyEmail";
361
+ export { VoteShow } from "./types/VoteShow";
334
362
  export { VoteView } from "./types/VoteView";
@@ -1,9 +1,12 @@
1
+ import { AdminListUsers } from "./types/AdminListUsers";
2
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
1
3
  import { DeleteImageParams } from "./types/DeleteImageParams";
2
4
  import { GetComment } from "./types/GetComment";
3
5
  import { GetComments } from "./types/GetComments";
4
6
  import { GetCommunity } from "./types/GetCommunity";
5
7
  import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
8
  import { GetModlog } from "./types/GetModlog";
9
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
7
10
  import { GetPersonDetails } from "./types/GetPersonDetails";
8
11
  import { GetPost } from "./types/GetPost";
9
12
  import { GetPosts } from "./types/GetPosts";
@@ -11,14 +14,17 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
14
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
15
  import { GetReportCount } from "./types/GetReportCount";
13
16
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
- import { ListBannedPersons } from "./types/ListBannedPersons";
15
17
  import { ListCommentLikes } from "./types/ListCommentLikes";
16
18
  import { ListCommunities } from "./types/ListCommunities";
17
19
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
18
20
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
19
- import { ListInbox } from "./types/ListInbox";
21
+ import { ListNotifications } from "./types/ListNotifications";
20
22
  import { ListMedia } from "./types/ListMedia";
23
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
21
24
  import { ListPersonContent } from "./types/ListPersonContent";
25
+ import { ListPersonHidden } from "./types/ListPersonHidden";
26
+ import { ListPersonLiked } from "./types/ListPersonLiked";
27
+ import { ListPersonRead } from "./types/ListPersonRead";
22
28
  import { ListPersonSaved } from "./types/ListPersonSaved";
23
29
  import { ListPostLikes } from "./types/ListPostLikes";
24
30
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -68,10 +74,16 @@ export interface ListPersonContentI extends ListPersonContent {
68
74
  }
69
75
  export interface GetReportCountI extends GetReportCount {
70
76
  }
71
- export interface ListInboxI extends ListInbox {
77
+ export interface ListNotificationsI extends ListNotifications {
72
78
  }
73
79
  export interface ListPersonSavedI extends ListPersonSaved {
74
80
  }
81
+ export interface ListPersonReadI extends ListPersonRead {
82
+ }
83
+ export interface ListPersonHiddenI extends ListPersonHidden {
84
+ }
85
+ export interface ListPersonLikedI extends ListPersonLiked {
86
+ }
75
87
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
76
88
  }
77
89
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -84,5 +96,11 @@ export interface ListReportsI extends ListReports {
84
96
  }
85
97
  export interface DeleteImageParamsI extends DeleteImageParams {
86
98
  }
87
- export interface ListBannedPersonsI extends ListBannedPersons {
99
+ export interface AdminListUsersI extends AdminListUsers {
100
+ }
101
+ export interface CommunityIdQueryI extends CommunityIdQuery {
102
+ }
103
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
+ }
105
+ export interface GetMultiCommunityI extends GetMultiCommunity {
88
106
  }
@@ -7,5 +7,5 @@ export type AdminAllowInstance = {
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -7,6 +7,6 @@ export type AdminBlockInstance = {
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
9
  reason?: string;
10
- expires?: string;
11
- published: string;
10
+ expires_at?: string;
11
+ published_at: string;
12
12
  };
@@ -2,5 +2,5 @@ export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
4
  reason?: string;
5
- expires?: string;
5
+ expires_at?: string;
6
6
  };
@@ -0,0 +1,7 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
+ export type AdminListUsers = {
3
+ banned_only?: boolean;
4
+ page_cursor?: PaginationCursor;
5
+ page_back?: boolean;
6
+ limit?: number;
7
+ };
@@ -0,0 +1,10 @@
1
+ import type { LocalUserView } from "./LocalUserView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
3
+ export type AdminListUsersResponse = {
4
+ users: Array<LocalUserView>;
5
+ /**
6
+ * the pagination cursor to use to fetch the next page
7
+ */
8
+ next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
10
+ };
@@ -9,5 +9,5 @@ export type AdminPurgeComment = {
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
11
  reason?: string;
12
- published: string;
12
+ published_at: string;
13
13
  };
@@ -7,5 +7,5 @@ export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -7,5 +7,5 @@ export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -9,5 +9,5 @@ export type AdminPurgePost = {
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
11
  reason?: string;
12
- published: string;
12
+ published_at: string;
13
13
  };
@@ -18,5 +18,5 @@ export type BanFromCommunity = {
18
18
  *
19
19
  * An i64 unix timestamp is used for a simpler API client implementation.
20
20
  */
21
- expires?: number;
21
+ expires_at?: number;
22
22
  };
@@ -16,5 +16,5 @@ export type BanPerson = {
16
16
  *
17
17
  * An i64 unix timestamp is used for a simpler API client implementation.
18
18
  */
19
- expires?: number;
19
+ expires_at?: number;
20
20
  };
@@ -15,8 +15,8 @@ export type Comment = {
15
15
  * Whether the comment has been removed.
16
16
  */
17
17
  removed: boolean;
18
- published: string;
19
- updated?: string;
18
+ published_at: string;
19
+ updated_at?: string;
20
20
  /**
21
21
  * Whether the comment has been deleted by its creator.
22
22
  */
@@ -53,4 +53,8 @@ export type Comment = {
53
53
  * accepted by the community (by receiving it back via federation).
54
54
  */
55
55
  federation_pending: boolean;
56
+ /**
57
+ * Whether the comment is locked.
58
+ */
59
+ locked: boolean;
56
60
  };
@@ -1,8 +1,4 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { PersonId } from "./PersonId";
3
1
  export type CommentActions = {
4
- person_id: PersonId;
5
- comment_id: CommentId;
6
2
  /**
7
3
  * The like / score for the comment.
8
4
  */
@@ -10,9 +6,9 @@ export type CommentActions = {
10
6
  /**
11
7
  * When the comment was liked.
12
8
  */
13
- liked?: string;
9
+ liked_at?: string;
14
10
  /**
15
11
  * When the comment was saved.
16
12
  */
17
- saved?: string;
13
+ saved_at?: string;
18
14
  };
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,7 +12,7 @@ export type CommentReport = {
12
12
  reason: string;
13
13
  resolved: boolean;
14
14
  resolver_id?: PersonId;
15
- published: string;
16
- updated?: string;
15
+ published_at: string;
16
+ updated_at?: string;
17
17
  violates_instance_rules: boolean;
18
18
  };
@@ -18,8 +18,10 @@ export type CommentReportView = {
18
18
  comment_creator: Person;
19
19
  comment_actions?: CommentActions;
20
20
  resolver?: Person;
21
- creator_community_actions?: CommunityActions;
22
21
  person_actions?: PersonActions;
23
22
  community_actions?: CommunityActions;
24
23
  creator_is_admin: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned: boolean;
26
+ creator_banned_from_community: boolean;
25
27
  };
@@ -1,9 +1,7 @@
1
1
  import type { CommentView } from "./CommentView";
2
- import type { LocalUserId } from "./LocalUserId";
3
2
  /**
4
3
  * A comment response.
5
4
  */
6
5
  export type CommentResponse = {
7
6
  comment_view: CommentView;
8
- recipient_ids: Array<LocalUserId>;
9
7
  };
@@ -1,7 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { CommunityActions } from "./CommunityActions";
4
- import type { InstanceActions } from "./InstanceActions";
5
3
  import type { Person } from "./Person";
6
4
  import type { PersonActions } from "./PersonActions";
7
5
  /**
@@ -12,11 +10,9 @@ export type CommentSlimView = {
12
10
  creator: Person;
13
11
  comment_actions?: CommentActions;
14
12
  person_actions?: PersonActions;
15
- creator_community_actions?: CommunityActions;
16
- instance_actions?: InstanceActions;
17
- creator_home_instance_actions?: InstanceActions;
18
- creator_local_instance_actions?: InstanceActions;
19
13
  creator_is_admin: boolean;
20
14
  can_mod: boolean;
21
15
  creator_banned: boolean;
16
+ creator_is_moderator: boolean;
17
+ creator_banned_from_community: boolean;
22
18
  };
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
3
  import type { Community } from "./Community";
4
4
  import type { CommunityActions } from "./CommunityActions";
5
- import type { InstanceActions } from "./InstanceActions";
6
5
  import type { Person } from "./Person";
7
6
  import type { PersonActions } from "./PersonActions";
8
7
  import type { Post } from "./Post";
@@ -18,12 +17,10 @@ export type CommentView = {
18
17
  community_actions?: CommunityActions;
19
18
  comment_actions?: CommentActions;
20
19
  person_actions?: PersonActions;
21
- instance_actions?: InstanceActions;
22
- creator_home_instance_actions?: InstanceActions;
23
- creator_local_instance_actions?: InstanceActions;
24
- creator_community_actions?: CommunityActions;
25
20
  creator_is_admin: boolean;
26
21
  post_tags: TagsView;
27
22
  can_mod: boolean;
28
23
  creator_banned: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned_from_community: boolean;
29
26
  };
@@ -20,8 +20,8 @@ export type Community = {
20
20
  * Whether the community is removed by a mod.
21
21
  */
22
22
  removed: boolean;
23
- published: string;
24
- updated?: string;
23
+ published_at: string;
24
+ updated_at?: string;
25
25
  /**
26
26
  * Whether the community has been deleted by its creator.
27
27
  */
@@ -1,35 +1,29 @@
1
1
  import type { CommunityFollowerState } from "./CommunityFollowerState";
2
- import type { CommunityId } from "./CommunityId";
3
- import type { PersonId } from "./PersonId";
2
+ import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
4
3
  export type CommunityActions = {
5
- community_id: CommunityId;
6
- person_id: PersonId;
7
4
  /**
8
5
  * When the community was followed.
9
6
  */
10
- followed?: string;
7
+ followed_at?: string;
11
8
  /**
12
9
  * The state of the community follow.
13
10
  */
14
11
  follow_state?: CommunityFollowerState;
15
- /**
16
- * The approver of the community follow.
17
- */
18
- follow_approver_id?: PersonId;
19
12
  /**
20
13
  * When the community was blocked.
21
14
  */
22
- blocked?: string;
15
+ blocked_at?: string;
23
16
  /**
24
17
  * When this user became a moderator.
25
18
  */
26
- became_moderator?: string;
19
+ became_moderator_at?: string;
27
20
  /**
28
21
  * When this user received a ban.
29
22
  */
30
- received_ban?: string;
23
+ received_ban_at?: string;
31
24
  /**
32
25
  * When their ban expires.
33
26
  */
34
- ban_expires?: string;
27
+ ban_expires_at?: string;
28
+ notifications?: CommunityNotificationsMode;
35
29
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Parameter for setting community icon or banner. Can't use POST data here as it already contains
4
+ * the image data.
5
+ */
6
+ export type CommunityIdQuery = {
7
+ id: CommunityId;
8
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Available settings for community notifications
3
+ */
4
+ export type CommunityNotificationsMode = "AllPostsAndComments" | "AllPosts" | "RepliesAndMentions" | "Mute";
@@ -17,6 +17,6 @@ export type CommunityReport = {
17
17
  reason: string;
18
18
  resolved: boolean;
19
19
  resolver_id?: PersonId;
20
- published: string;
21
- updated?: string;
20
+ published_at: string;
21
+ updated_at?: string;
22
22
  };
@@ -9,4 +9,8 @@ export type CommunityReportView = {
9
9
  community: Community;
10
10
  creator: Person;
11
11
  resolver?: Person;
12
+ creator_is_admin: boolean;
13
+ creator_is_moderator: boolean;
14
+ creator_banned: boolean;
15
+ creator_banned_from_community: boolean;
12
16
  };
@@ -1,6 +1,5 @@
1
1
  import type { Community } from "./Community";
2
2
  import type { CommunityActions } from "./CommunityActions";
3
- import type { InstanceActions } from "./InstanceActions";
4
3
  import type { TagsView } from "./TagsView";
5
4
  /**
6
5
  * A community view.
@@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView";
8
7
  export type CommunityView = {
9
8
  community: Community;
10
9
  community_actions?: CommunityActions;
11
- instance_actions?: InstanceActions;
12
10
  can_mod: boolean;
13
11
  post_tags: TagsView;
14
12
  };
@@ -4,5 +4,7 @@ import type { CommunityId } from "./CommunityId";
4
4
  */
5
5
  export type CreateCommunityTag = {
6
6
  community_id: CommunityId;
7
- display_name: string;
7
+ name: string;
8
+ display_name?: string;
9
+ description?: string;
8
10
  };
@@ -0,0 +1,5 @@
1
+ export type CreateMultiCommunity = {
2
+ name: string;
3
+ title?: string;
4
+ description?: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { MultiCommunityId } from "./MultiCommunityId";
3
+ export type CreateOrDeleteMultiCommunityEntry = {
4
+ id: MultiCommunityId;
5
+ community_id: CommunityId;
6
+ };