lemmy-js-client 1.0.0-site-person-ban.0 → 1.0.0-vote-view.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 (202) hide show
  1. package/dist/http.d.ts +98 -26
  2. package/dist/http.js +1078 -894
  3. package/dist/index.d.ts +30 -4
  4. package/dist/other_types.d.ts +20 -2
  5. package/dist/types/AdminAllowInstance.d.ts +1 -1
  6. package/dist/types/AdminBlockInstance.d.ts +2 -2
  7. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminListUsers.d.ts +7 -0
  9. package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
  10. package/dist/types/AdminPurgeComment.d.ts +1 -1
  11. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  12. package/dist/types/AdminPurgePerson.d.ts +1 -1
  13. package/dist/types/AdminPurgePost.d.ts +1 -1
  14. package/dist/types/BanFromCommunity.d.ts +1 -1
  15. package/dist/types/BanPerson.d.ts +1 -1
  16. package/dist/types/Comment.d.ts +7 -2
  17. package/dist/types/CommentActions.d.ts +2 -6
  18. package/dist/types/CommentActions.js +1 -0
  19. package/dist/types/CommentReply.d.ts +1 -1
  20. package/dist/types/CommentReplyView.d.ts +5 -1
  21. package/dist/types/CommentReport.d.ts +2 -2
  22. package/dist/types/CommentReportView.d.ts +0 -1
  23. package/dist/types/CommentSlimView.d.ts +3 -2
  24. package/dist/types/CommentView.d.ts +5 -1
  25. package/dist/types/Community.d.ts +2 -2
  26. package/dist/types/CommunityActions.d.ts +5 -13
  27. package/dist/types/CommunityIdQuery.d.ts +8 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityView.d.ts +2 -0
  30. package/dist/types/CreateCommunityTag.d.ts +8 -0
  31. package/dist/types/CreateCommunityTag.js +2 -0
  32. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  33. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  34. package/dist/types/CreateOrDeleteMultiCommunityEntry.js +2 -0
  35. package/dist/types/CreatePost.d.ts +1 -1
  36. package/dist/types/CreateSite.d.ts +17 -14
  37. package/dist/types/CustomEmoji.d.ts +2 -2
  38. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  39. package/dist/types/DeleteCommunityTag.js +2 -0
  40. package/dist/types/EditPost.d.ts +2 -2
  41. package/dist/types/EditSite.d.ts +26 -21
  42. package/dist/types/ExportDataResponse.d.ts +13 -0
  43. package/dist/types/ExportDataResponse.js +2 -0
  44. package/dist/types/FederationBlockList.d.ts +3 -3
  45. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  46. package/dist/types/FollowMultiCommunity.js +2 -0
  47. package/dist/types/GetComments.d.ts +3 -3
  48. package/dist/types/GetCommentsResponse.d.ts +3 -0
  49. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  50. package/dist/types/GetModlog.d.ts +1 -0
  51. package/dist/types/GetModlogResponse.d.ts +1 -0
  52. package/dist/types/GetMultiCommunity.d.ts +4 -0
  53. package/dist/types/GetMultiCommunity.js +2 -0
  54. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  55. package/dist/types/GetMultiCommunityResponse.js +2 -0
  56. package/dist/types/GetPosts.d.ts +5 -11
  57. package/dist/types/GetPostsResponse.d.ts +3 -2
  58. package/dist/types/GetSiteResponse.d.ts +2 -0
  59. package/dist/types/InboxCombined.d.ts +16 -0
  60. package/dist/types/InboxCombined.js +2 -0
  61. package/dist/types/InboxCombinedId.d.ts +4 -0
  62. package/dist/types/InboxCombinedId.js +3 -0
  63. package/dist/types/InboxCombinedViewInternal.d.ts +43 -0
  64. package/dist/types/InboxCombinedViewInternal.js +2 -0
  65. package/dist/types/Instance.d.ts +4 -3
  66. package/dist/types/InstanceActions.d.ts +3 -7
  67. package/dist/types/InstanceActions.js +1 -0
  68. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  69. package/dist/types/LemmyErrorType.d.ts +99 -24
  70. package/dist/types/LikeType.d.ts +4 -0
  71. package/dist/types/LikeType.js +3 -0
  72. package/dist/types/ListCommentLikes.d.ts +3 -1
  73. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  74. package/dist/types/ListCommunities.d.ts +3 -1
  75. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  76. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  77. package/dist/types/ListCommunityPendingFollows.js +0 -1
  78. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  79. package/dist/types/ListCustomEmojis.d.ts +0 -3
  80. package/dist/types/ListInbox.d.ts +1 -0
  81. package/dist/types/ListInboxResponse.d.ts +1 -0
  82. package/dist/types/ListMedia.d.ts +3 -1
  83. package/dist/types/ListMedia.js +0 -1
  84. package/dist/types/ListMediaResponse.d.ts +6 -0
  85. package/dist/types/ListMultiCommunities.d.ts +5 -0
  86. package/dist/types/ListMultiCommunities.js +2 -0
  87. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  88. package/dist/types/ListMultiCommunitiesResponse.js +2 -0
  89. package/dist/types/ListPersonContent.d.ts +1 -0
  90. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  91. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  92. package/dist/types/ListPersonHidden.js +2 -0
  93. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  94. package/dist/types/ListPersonHiddenResponse.js +2 -0
  95. package/dist/types/ListPersonLiked.d.ts +13 -0
  96. package/dist/types/ListPersonLiked.js +2 -0
  97. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  98. package/dist/types/ListPersonLikedResponse.js +2 -0
  99. package/dist/types/ListPersonRead.d.ts +9 -0
  100. package/dist/types/ListPersonRead.js +2 -0
  101. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  102. package/dist/types/ListPersonReadResponse.js +2 -0
  103. package/dist/types/ListPersonSaved.d.ts +1 -0
  104. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  105. package/dist/types/ListPostLikes.d.ts +3 -1
  106. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  107. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  108. package/dist/types/ListRegistrationApplications.js +0 -1
  109. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  110. package/dist/types/ListReports.d.ts +1 -0
  111. package/dist/types/ListReportsResponse.d.ts +1 -0
  112. package/dist/types/ListTaglines.d.ts +3 -1
  113. package/dist/types/ListTaglines.js +0 -1
  114. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  115. package/dist/types/ListingType.d.ts +1 -1
  116. package/dist/types/LocalImage.d.ts +8 -3
  117. package/dist/types/LocalImageView.d.ts +2 -0
  118. package/dist/types/LocalSite.d.ts +10 -11
  119. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  120. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  121. package/dist/types/LocalUser.d.ts +4 -2
  122. package/dist/types/LocalUserView.d.ts +1 -2
  123. package/dist/types/LockPost.d.ts +1 -0
  124. package/dist/types/Login.d.ts +3 -0
  125. package/dist/types/LoginToken.d.ts +1 -1
  126. package/dist/types/ModAdd.d.ts +1 -1
  127. package/dist/types/ModAddCommunity.d.ts +1 -1
  128. package/dist/types/ModBan.d.ts +2 -2
  129. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  130. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  131. package/dist/types/ModFeaturePost.d.ts +1 -1
  132. package/dist/types/ModLockPost.d.ts +2 -1
  133. package/dist/types/ModRemoveComment.d.ts +1 -1
  134. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  135. package/dist/types/ModRemovePost.d.ts +1 -1
  136. package/dist/types/ModTransferCommunity.d.ts +1 -1
  137. package/dist/types/MultiCommunity.d.ts +17 -0
  138. package/dist/types/MultiCommunity.js +2 -0
  139. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  140. package/dist/types/MultiCommunityFollow.js +2 -0
  141. package/dist/types/MultiCommunityId.d.ts +1 -0
  142. package/dist/types/MultiCommunityId.js +3 -0
  143. package/dist/types/MultiCommunityView.d.ts +6 -0
  144. package/dist/types/MultiCommunityView.js +2 -0
  145. package/dist/types/MyUserInfo.d.ts +1 -0
  146. package/dist/types/NotePerson.d.ts +10 -0
  147. package/dist/types/NotePerson.js +2 -0
  148. package/dist/types/OAuthAccount.d.ts +2 -2
  149. package/dist/types/OAuthProvider.d.ts +2 -2
  150. package/dist/types/Person.d.ts +2 -2
  151. package/dist/types/PersonActions.d.ts +21 -4
  152. package/dist/types/PersonActions.js +1 -0
  153. package/dist/types/PersonCommentMention.d.ts +1 -1
  154. package/dist/types/PersonCommentMentionView.d.ts +3 -1
  155. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  156. package/dist/types/PersonLikedCombinedView.js +2 -0
  157. package/dist/types/PersonPostMention.d.ts +1 -1
  158. package/dist/types/PersonPostMentionView.d.ts +5 -1
  159. package/dist/types/PersonView.d.ts +3 -2
  160. package/dist/types/PluginMetadata.d.ts +5 -0
  161. package/dist/types/PluginMetadata.js +3 -0
  162. package/dist/types/Post.d.ts +9 -4
  163. package/dist/types/PostActions.d.ts +5 -9
  164. package/dist/types/PostActions.js +1 -0
  165. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  166. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  167. package/dist/types/PostReport.d.ts +2 -2
  168. package/dist/types/PostReportView.d.ts +0 -1
  169. package/dist/types/PostView.d.ts +5 -1
  170. package/dist/types/PrivateMessage.d.ts +2 -2
  171. package/dist/types/PrivateMessageReport.d.ts +2 -2
  172. package/dist/types/ReadableFederationState.d.ts +2 -2
  173. package/dist/types/RegistrationApplication.d.ts +1 -1
  174. package/dist/types/SaveUserSettings.d.ts +7 -1
  175. package/dist/types/Search.d.ts +6 -1
  176. package/dist/types/SearchCombinedView.d.ts +4 -1
  177. package/dist/types/SearchResponse.d.ts +1 -0
  178. package/dist/types/SearchType.d.ts +1 -1
  179. package/dist/types/Site.d.ts +4 -3
  180. package/dist/types/SiteResponse.d.ts +0 -4
  181. package/dist/types/SiteView.d.ts +2 -0
  182. package/dist/types/Tag.d.ts +10 -8
  183. package/dist/types/Tagline.d.ts +4 -3
  184. package/dist/types/Tagline.js +0 -1
  185. package/dist/types/TagsView.d.ts +5 -0
  186. package/dist/types/TagsView.js +2 -0
  187. package/dist/types/UpdateCommunityTag.d.ts +8 -0
  188. package/dist/types/UpdateCommunityTag.js +2 -0
  189. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  190. package/dist/types/UpdateMultiCommunity.js +2 -0
  191. package/dist/types/UserSettingsBackup.d.ts +26 -0
  192. package/dist/types/UserSettingsBackup.js +2 -0
  193. package/dist/types/VoteShow.d.ts +4 -0
  194. package/dist/types/VoteShow.js +3 -0
  195. package/dist/types/VoteView.d.ts +1 -0
  196. package/package.json +7 -4
  197. package/dist/types/PostPaginationCursor.d.ts +0 -7
  198. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  199. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  200. /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
  201. /package/dist/types/{ResolveObjectResponse.js → CommunityIdQuery.js} +0 -0
  202. /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.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";
@@ -58,6 +59,7 @@ export { CommunityActions } from "./types/CommunityActions";
58
59
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
60
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
61
  export { CommunityId } from "./types/CommunityId";
62
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
63
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
62
64
  export { CommunityReport } from "./types/CommunityReport";
63
65
  export { CommunityReportId } from "./types/CommunityReportId";
@@ -72,8 +74,11 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
72
74
  export { CreateCommentReport } from "./types/CreateCommentReport";
73
75
  export { CreateCommunity } from "./types/CreateCommunity";
74
76
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
77
+ export { CreateCommunityTag } from "./types/CreateCommunityTag";
75
78
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
79
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
76
80
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
81
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
77
82
  export { CreatePost } from "./types/CreatePost";
78
83
  export { CreatePostLike } from "./types/CreatePostLike";
79
84
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -90,6 +95,7 @@ export { DbUrl } from "./types/DbUrl";
90
95
  export { DeleteAccount } from "./types/DeleteAccount";
91
96
  export { DeleteComment } from "./types/DeleteComment";
92
97
  export { DeleteCommunity } from "./types/DeleteCommunity";
98
+ export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
93
99
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
94
100
  export { DeleteImageParams } from "./types/DeleteImageParams";
95
101
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
@@ -110,6 +116,7 @@ export { FederationBlockList } from "./types/FederationBlockList";
110
116
  export { FederationError } from "./types/FederationError";
111
117
  export { FederationMode } from "./types/FederationMode";
112
118
  export { FollowCommunity } from "./types/FollowCommunity";
119
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
113
120
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
114
121
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
115
122
  export { GetComment } from "./types/GetComment";
@@ -123,6 +130,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
123
130
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
124
131
  export { GetModlog } from "./types/GetModlog";
125
132
  export { GetModlogResponse } from "./types/GetModlogResponse";
133
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
134
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
126
135
  export { GetPersonDetails } from "./types/GetPersonDetails";
127
136
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
128
137
  export { GetPost } from "./types/GetPost";
@@ -152,8 +161,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
152
161
  export { Language } from "./types/Language";
153
162
  export { LanguageId } from "./types/LanguageId";
154
163
  export { LemmyErrorType } from "./types/LemmyErrorType";
164
+ export { LikeType } from "./types/LikeType";
155
165
  export { LinkMetadata } from "./types/LinkMetadata";
156
- export { ListBannedPersons } from "./types/ListBannedPersons";
157
166
  export { ListCommentLikes } from "./types/ListCommentLikes";
158
167
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
159
168
  export { ListCommunities } from "./types/ListCommunities";
@@ -167,8 +176,16 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
167
176
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
168
177
  export { ListMedia } from "./types/ListMedia";
169
178
  export { ListMediaResponse } from "./types/ListMediaResponse";
179
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
180
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
170
181
  export { ListPersonContent } from "./types/ListPersonContent";
171
182
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
183
+ export { ListPersonHidden } from "./types/ListPersonHidden";
184
+ export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
185
+ export { ListPersonLiked } from "./types/ListPersonLiked";
186
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
187
+ export { ListPersonRead } from "./types/ListPersonRead";
188
+ export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
172
189
  export { ListPersonSaved } from "./types/ListPersonSaved";
173
190
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
174
191
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -234,7 +251,12 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
234
251
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
235
252
  export { ModlogActionType } from "./types/ModlogActionType";
236
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";
237
258
  export { MyUserInfo } from "./types/MyUserInfo";
259
+ export { NotePerson } from "./types/NotePerson";
238
260
  export { OAuthAccount } from "./types/OAuthAccount";
239
261
  export { OAuthProvider } from "./types/OAuthProvider";
240
262
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -251,17 +273,18 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
251
273
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
252
274
  export { PersonContentType } from "./types/PersonContentType";
253
275
  export { PersonId } from "./types/PersonId";
276
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
254
277
  export { PersonPostMention } from "./types/PersonPostMention";
255
278
  export { PersonPostMentionId } from "./types/PersonPostMentionId";
256
279
  export { PersonPostMentionView } from "./types/PersonPostMentionView";
257
280
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
258
281
  export { PersonView } from "./types/PersonView";
282
+ export { PluginMetadata } from "./types/PluginMetadata";
259
283
  export { Post } from "./types/Post";
260
284
  export { PostActions } from "./types/PostActions";
261
285
  export { PostFeatureType } from "./types/PostFeatureType";
262
286
  export { PostId } from "./types/PostId";
263
287
  export { PostListingMode } from "./types/PostListingMode";
264
- export { PostPaginationCursor } from "./types/PostPaginationCursor";
265
288
  export { PostReport } from "./types/PostReport";
266
289
  export { PostReportId } from "./types/PostReportId";
267
290
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -298,7 +321,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
298
321
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
299
322
  export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
300
323
  export { ResolveObject } from "./types/ResolveObject";
301
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
302
324
  export { ResolvePostReport } from "./types/ResolvePostReport";
303
325
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
304
326
  export { SaveComment } from "./types/SaveComment";
@@ -320,11 +342,15 @@ export { TagId } from "./types/TagId";
320
342
  export { Tagline } from "./types/Tagline";
321
343
  export { TaglineId } from "./types/TaglineId";
322
344
  export { TaglineResponse } from "./types/TaglineResponse";
345
+ export { TagsView } from "./types/TagsView";
323
346
  export { TransferCommunity } from "./types/TransferCommunity";
347
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
348
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
324
349
  export { UpdateTagline } from "./types/UpdateTagline";
325
350
  export { UpdateTotp } from "./types/UpdateTotp";
326
351
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
327
352
  export { UploadImageResponse } from "./types/UploadImageResponse";
328
353
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
329
354
  export { VerifyEmail } from "./types/VerifyEmail";
355
+ export { VoteShow } from "./types/VoteShow";
330
356
  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
21
  import { ListInbox } from "./types/ListInbox";
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";
@@ -72,6 +78,12 @@ export interface ListInboxI extends ListInbox {
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
+ };
@@ -1,12 +1,10 @@
1
+ import type { LocalUserView } from "./LocalUserView";
1
2
  import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonView } from "./PersonView";
3
- /**
4
- * The list of banned persons.
5
- */
6
- export type BannedPersonsResponse = {
7
- banned: Array<PersonView>;
3
+ export type AdminListUsersResponse = {
4
+ users: Array<LocalUserView>;
8
5
  /**
9
6
  * the pagination cursor to use to fetch the next page
10
7
  */
11
8
  next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
12
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
  */
@@ -48,4 +48,9 @@ export type Comment = {
48
48
  child_count: number;
49
49
  report_count: number;
50
50
  unresolved_report_count: number;
51
+ /**
52
+ * If a local user comments in a remote community, the comment is hidden until it is confirmed
53
+ * accepted by the community (by receiving it back via federation).
54
+ */
55
+ federation_pending: boolean;
51
56
  };
@@ -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 });
@@ -9,5 +9,5 @@ export type CommentReply = {
9
9
  recipient_id: PersonId;
10
10
  comment_id: CommentId;
11
11
  read: boolean;
12
- published: string;
12
+ published_at: string;
13
13
  };
@@ -7,6 +7,7 @@ import type { InstanceActions } from "./InstanceActions";
7
7
  import type { Person } from "./Person";
8
8
  import type { PersonActions } from "./PersonActions";
9
9
  import type { Post } from "./Post";
10
+ import type { TagsView } from "./TagsView";
10
11
  /**
11
12
  * A comment reply view.
12
13
  */
@@ -21,7 +22,10 @@ export type CommentReplyView = {
21
22
  comment_actions?: CommentActions;
22
23
  person_actions?: PersonActions;
23
24
  instance_actions?: InstanceActions;
24
- creator_community_actions?: CommunityActions;
25
25
  creator_is_admin: boolean;
26
+ post_tags: TagsView;
26
27
  can_mod: boolean;
28
+ creator_banned: boolean;
29
+ creator_is_moderator: boolean;
30
+ creator_banned_from_community: boolean;
27
31
  };
@@ -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,7 +18,6 @@ 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;
@@ -1,6 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { CommunityActions } from "./CommunityActions";
4
3
  import type { InstanceActions } from "./InstanceActions";
5
4
  import type { Person } from "./Person";
6
5
  import type { PersonActions } from "./PersonActions";
@@ -12,8 +11,10 @@ export type CommentSlimView = {
12
11
  creator: Person;
13
12
  comment_actions?: CommentActions;
14
13
  person_actions?: PersonActions;
15
- creator_community_actions?: CommunityActions;
16
14
  instance_actions?: InstanceActions;
17
15
  creator_is_admin: boolean;
18
16
  can_mod: boolean;
17
+ creator_banned: boolean;
18
+ creator_is_moderator: boolean;
19
+ creator_banned_from_community: boolean;
19
20
  };
@@ -6,6 +6,7 @@ import type { InstanceActions } from "./InstanceActions";
6
6
  import type { Person } from "./Person";
7
7
  import type { PersonActions } from "./PersonActions";
8
8
  import type { Post } from "./Post";
9
+ import type { TagsView } from "./TagsView";
9
10
  /**
10
11
  * A comment view.
11
12
  */
@@ -18,7 +19,10 @@ export type CommentView = {
18
19
  comment_actions?: CommentActions;
19
20
  person_actions?: PersonActions;
20
21
  instance_actions?: InstanceActions;
21
- creator_community_actions?: CommunityActions;
22
22
  creator_is_admin: boolean;
23
+ post_tags: TagsView;
23
24
  can_mod: boolean;
25
+ creator_banned: boolean;
26
+ creator_is_moderator: boolean;
27
+ creator_banned_from_community: boolean;
24
28
  };
@@ -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,27 @@
1
1
  import type { CommunityFollowerState } from "./CommunityFollowerState";
2
- import type { CommunityId } from "./CommunityId";
3
- import type { PersonId } from "./PersonId";
4
2
  export type CommunityActions = {
5
- community_id: CommunityId;
6
- person_id: PersonId;
7
3
  /**
8
4
  * When the community was followed.
9
5
  */
10
- followed?: string;
6
+ followed_at?: string;
11
7
  /**
12
8
  * The state of the community follow.
13
9
  */
14
10
  follow_state?: CommunityFollowerState;
15
- /**
16
- * The approver of the community follow.
17
- */
18
- follow_approver_id?: PersonId;
19
11
  /**
20
12
  * When the community was blocked.
21
13
  */
22
- blocked?: string;
14
+ blocked_at?: string;
23
15
  /**
24
16
  * When this user became a moderator.
25
17
  */
26
- became_moderator?: string;
18
+ became_moderator_at?: string;
27
19
  /**
28
20
  * When this user received a ban.
29
21
  */
30
- received_ban?: string;
22
+ received_ban_at?: string;
31
23
  /**
32
24
  * When their ban expires.
33
25
  */
34
- ban_expires?: string;
26
+ ban_expires_at?: string;
35
27
  };
@@ -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
+ };
@@ -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
  };
@@ -1,6 +1,7 @@
1
1
  import type { Community } from "./Community";
2
2
  import type { CommunityActions } from "./CommunityActions";
3
3
  import type { InstanceActions } from "./InstanceActions";
4
+ import type { TagsView } from "./TagsView";
4
5
  /**
5
6
  * A community view.
6
7
  */
@@ -9,4 +10,5 @@ export type CommunityView = {
9
10
  community_actions?: CommunityActions;
10
11
  instance_actions?: InstanceActions;
11
12
  can_mod: boolean;
13
+ post_tags: TagsView;
12
14
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Create a tag for a community.
4
+ */
5
+ export type CreateCommunityTag = {
6
+ community_id: CommunityId;
7
+ display_name: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,5 +30,5 @@ export type CreatePost = {
30
30
  /**
31
31
  * Time when this post should be scheduled. Null means publish immediately.
32
32
  */
33
- scheduled_publish_time?: number;
33
+ scheduled_publish_time_at?: number;
34
34
  };
@@ -2,6 +2,7 @@ import type { CommentSortType } from "./CommentSortType";
2
2
  import type { FederationMode } from "./FederationMode";
3
3
  import type { LanguageId } from "./LanguageId";
4
4
  import type { ListingType } from "./ListingType";
5
+ import type { MultiCommunityId } from "./MultiCommunityId";
5
6
  import type { PostListingMode } from "./PostListingMode";
6
7
  import type { PostSortType } from "./PostSortType";
7
8
  import type { RegistrationMode } from "./RegistrationMode";
@@ -24,22 +25,23 @@ export type CreateSite = {
24
25
  default_comment_sort_type?: CommentSortType;
25
26
  legal_information?: string;
26
27
  application_email_admins?: boolean;
27
- hide_modlog_mod_names?: boolean;
28
28
  discussion_languages?: Array<LanguageId>;
29
29
  slur_filter_regex?: string;
30
30
  actor_name_max_length?: number;
31
- rate_limit_message?: number;
32
- rate_limit_message_per_second?: number;
33
- rate_limit_post?: number;
34
- rate_limit_post_per_second?: number;
35
- rate_limit_register?: number;
36
- rate_limit_register_per_second?: number;
37
- rate_limit_image?: number;
38
- rate_limit_image_per_second?: number;
39
- rate_limit_comment?: number;
40
- rate_limit_comment_per_second?: number;
41
- rate_limit_search?: number;
42
- rate_limit_search_per_second?: number;
31
+ rate_limit_message_max_requests?: number;
32
+ rate_limit_message_interval_seconds?: number;
33
+ rate_limit_post_max_requests?: number;
34
+ rate_limit_post_interval_seconds?: number;
35
+ rate_limit_register_max_requests?: number;
36
+ rate_limit_register_interval_seconds?: number;
37
+ rate_limit_image_max_requests?: number;
38
+ rate_limit_image_interval_seconds?: number;
39
+ rate_limit_comment_max_requests?: number;
40
+ rate_limit_comment_interval_seconds?: number;
41
+ rate_limit_search_max_requests?: number;
42
+ rate_limit_search_interval_seconds?: number;
43
+ rate_limit_import_user_settings_max_requests?: number;
44
+ rate_limit_import_user_settings_interval_seconds?: number;
43
45
  federation_enabled?: boolean;
44
46
  captcha_enabled?: boolean;
45
47
  captcha_difficulty?: string;
@@ -50,6 +52,7 @@ export type CreateSite = {
50
52
  post_downvotes?: FederationMode;
51
53
  comment_upvotes?: FederationMode;
52
54
  comment_downvotes?: FederationMode;
53
- disable_donation_dialog?: boolean;
54
55
  disallow_nsfw_content?: boolean;
56
+ disable_email_notifications?: boolean;
57
+ suggested_communities?: MultiCommunityId;
55
58
  };
@@ -9,6 +9,6 @@ export type CustomEmoji = {
9
9
  image_url: DbUrl;
10
10
  alt_text: string;
11
11
  category: string;
12
- published: string;
13
- updated?: string;
12
+ published_at: string;
13
+ updated_at?: string;
14
14
  };
@@ -0,0 +1,7 @@
1
+ import type { TagId } from "./TagId";
2
+ /**
3
+ * Delete a community tag.
4
+ */
5
+ export type DeleteCommunityTag = {
6
+ tag_id: TagId;
7
+ };