lemmy-js-client 1.0.0-post-tags.1 → 1.0.0-private-community-fixes.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 (146) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +54 -24
  3. package/dist/http.js +110 -31
  4. package/dist/index.d.ts +26 -29
  5. package/dist/other_types.d.ts +0 -3
  6. package/dist/types/{ModAdd.d.ts → AdminAdd.d.ts} +4 -4
  7. package/dist/types/AdminAddId.d.ts +1 -0
  8. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  9. package/dist/types/AdminAllowInstance.d.ts +1 -1
  10. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  11. package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +4 -4
  12. package/dist/types/AdminBanId.d.ts +1 -0
  13. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  14. package/dist/types/AdminBlockInstance.d.ts +1 -1
  15. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  16. package/dist/types/AdminPurgeComment.d.ts +1 -1
  17. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  18. package/dist/types/AdminPurgePerson.d.ts +1 -1
  19. package/dist/types/AdminPurgePost.d.ts +1 -1
  20. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
  21. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  22. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  23. package/dist/types/AllLemmyErrors.d.ts +1 -0
  24. package/dist/types/AllLemmyErrors.js +117 -0
  25. package/dist/types/BanFromCommunity.d.ts +1 -1
  26. package/dist/types/BanPerson.d.ts +1 -1
  27. package/dist/types/Comment.d.ts +4 -0
  28. package/dist/types/CommentReportView.d.ts +2 -0
  29. package/dist/types/CommentSlimView.d.ts +0 -2
  30. package/dist/types/CommentView.d.ts +2 -2
  31. package/dist/types/CommunityFollowerState.d.ts +1 -1
  32. package/dist/types/CommunityReportView.d.ts +2 -0
  33. package/dist/types/CommunityView.d.ts +0 -2
  34. package/dist/types/CreateCommunityTag.d.ts +2 -0
  35. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  36. package/dist/types/CreateCustomEmoji.js +0 -1
  37. package/dist/types/CreateSite.d.ts +0 -1
  38. package/dist/types/EditCustomEmoji.d.ts +7 -5
  39. package/dist/types/EditSite.d.ts +4 -4
  40. package/dist/types/GetMultiCommunity.d.ts +2 -1
  41. package/dist/types/HideCommunity.d.ts +1 -1
  42. package/dist/types/InstanceActions.d.ts +6 -2
  43. package/dist/types/LemmyErrorType.d.ts +23 -133
  44. package/dist/types/LinkMetadata.d.ts +4 -0
  45. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  46. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  47. package/dist/types/LocalSite.d.ts +1 -6
  48. package/dist/types/LocalUser.d.ts +10 -13
  49. package/dist/types/LocalUserView.d.ts +1 -0
  50. package/dist/types/LockComment.d.ts +9 -0
  51. package/dist/types/LockPost.d.ts +1 -1
  52. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
  53. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  54. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  55. package/dist/types/ModBanFromCommunity.d.ts +1 -1
  56. package/dist/types/ModEditPost.d.ts +10 -0
  57. package/dist/types/ModLockComment.d.ts +14 -0
  58. package/dist/types/ModLockCommentId.d.ts +1 -0
  59. package/dist/types/ModLockCommentView.d.ts +16 -0
  60. package/dist/types/ModLockPost.d.ts +1 -1
  61. package/dist/types/ModRemoveComment.d.ts +1 -1
  62. package/dist/types/ModRemovePost.d.ts +1 -1
  63. package/dist/types/ModlogActionType.d.ts +1 -1
  64. package/dist/types/ModlogCombinedView.d.ts +16 -13
  65. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  66. package/dist/types/MultiCommunityView.d.ts +2 -0
  67. package/dist/types/MyUserInfo.d.ts +2 -1
  68. package/dist/types/Notification.d.ts +22 -2
  69. package/dist/types/NotificationData.d.ts +31 -1
  70. package/dist/types/NotificationType.d.ts +4 -0
  71. package/dist/types/OpenGraphData.d.ts +4 -0
  72. package/dist/types/PendingFollowerView.d.ts +9 -0
  73. package/dist/types/PersonResponse.d.ts +7 -0
  74. package/dist/types/PersonView.d.ts +2 -1
  75. package/dist/types/Post.d.ts +2 -0
  76. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +7 -7
  77. package/dist/types/PostReportView.d.ts +2 -0
  78. package/dist/types/PostView.d.ts +2 -2
  79. package/dist/types/PrivateMessageReportView.d.ts +1 -0
  80. package/dist/types/PurgeComment.d.ts +1 -1
  81. package/dist/types/PurgeCommunity.d.ts +1 -1
  82. package/dist/types/PurgePerson.d.ts +1 -1
  83. package/dist/types/PurgePost.d.ts +1 -1
  84. package/dist/types/ReadableFederationState.d.ts +1 -1
  85. package/dist/types/RemoveComment.d.ts +1 -1
  86. package/dist/types/RemoveCommunity.d.ts +1 -1
  87. package/dist/types/RemovePost.d.ts +1 -1
  88. package/dist/types/SaveUserSettings.d.ts +5 -5
  89. package/dist/types/Tag.d.ts +5 -13
  90. package/dist/types/TagsView.d.ts +1 -1
  91. package/dist/types/UntranslatedError.d.ts +12 -0
  92. package/dist/types/UpdateCommunityTag.d.ts +9 -0
  93. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  94. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  95. package/dist/types/UserSettingsBackup.d.ts +2 -1
  96. package/package.json +6 -5
  97. package/dist/types/BanPersonResponse.d.ts +0 -8
  98. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  99. package/dist/types/BlockPersonResponse.d.ts +0 -8
  100. package/dist/types/CommentReply.d.ts +0 -13
  101. package/dist/types/CommentReplyId.d.ts +0 -4
  102. package/dist/types/FederationError.d.ts +0 -10
  103. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  104. package/dist/types/InboxDataType.d.ts +0 -4
  105. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  106. package/dist/types/ModAddCommunityId.d.ts +0 -1
  107. package/dist/types/ModAddId.d.ts +0 -1
  108. package/dist/types/ModBanId.d.ts +0 -1
  109. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  110. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  111. package/dist/types/NotificationTypes.d.ts +0 -4
  112. package/dist/types/NotificationTypes.js +0 -3
  113. package/dist/types/NotificationsMode.d.ts +0 -4
  114. package/dist/types/NotificationsMode.js +0 -3
  115. package/dist/types/PersonCommentMention.d.ts +0 -13
  116. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  117. package/dist/types/PersonCommentMentionId.js +0 -3
  118. package/dist/types/PersonNotification.d.ts +0 -9
  119. package/dist/types/PersonPostMention.d.ts +0 -13
  120. package/dist/types/PersonPostMentionId.d.ts +0 -4
  121. package/dist/types/PersonPostMentionId.js +0 -3
  122. /package/dist/types/{BanPersonResponse.js → AdminAdd.js} +0 -0
  123. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  124. /package/dist/types/{BlockCommunityResponse.js → AdminAddView.js} +0 -0
  125. /package/dist/types/{BlockPersonResponse.js → AdminBan.js} +0 -0
  126. /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
  127. /package/dist/types/{CommentReply.js → AdminBanView.js} +0 -0
  128. /package/dist/types/{GetCommunityPendingFollowsCount.js → AdminRemoveCommunity.js} +0 -0
  129. /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
  130. /package/dist/types/{MarkPrivateMessageAsRead.js → AdminRemoveCommunityView.js} +0 -0
  131. /package/dist/types/{ModAdd.js → LockComment.js} +0 -0
  132. /package/dist/types/{ModAddCommunity.js → ModAddToCommunity.js} +0 -0
  133. /package/dist/types/{ModAddCommunityId.js → ModAddToCommunityId.js} +0 -0
  134. /package/dist/types/{ModAddCommunityView.js → ModAddToCommunityView.js} +0 -0
  135. /package/dist/types/{ModAddView.js → ModEditPost.js} +0 -0
  136. /package/dist/types/{ModBan.js → ModLockComment.js} +0 -0
  137. /package/dist/types/{ModAddId.js → ModLockCommentId.js} +0 -0
  138. /package/dist/types/{ModBanView.js → ModLockCommentView.js} +0 -0
  139. /package/dist/types/{ModRemoveCommunity.js → MultiCommunityResponse.js} +0 -0
  140. /package/dist/types/{ModBanId.js → NotificationType.js} +0 -0
  141. /package/dist/types/{ModRemoveCommunityView.js → PendingFollowerView.js} +0 -0
  142. /package/dist/types/{PersonCommentMention.js → PersonResponse.js} +0 -0
  143. /package/dist/types/{ModRemoveCommunityId.js → UntranslatedError.js} +0 -0
  144. /package/dist/types/{PersonNotification.js → UpdateCommunityTag.js} +0 -0
  145. /package/dist/types/{PersonPostMention.js → UserBlockInstanceCommunitiesParams.js} +0 -0
  146. /package/dist/types/{UserBlockInstanceParams.js → UserBlockInstancePersonsParams.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,10 +5,16 @@ export { AddAdmin } from "./types/AddAdmin";
5
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
+ export { AdminAdd } from "./types/AdminAdd";
9
+ export { AdminAddId } from "./types/AdminAddId";
10
+ export { AdminAddView } from "./types/AdminAddView";
8
11
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
12
  export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
13
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
14
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
15
+ export { AdminBan } from "./types/AdminBan";
16
+ export { AdminBanId } from "./types/AdminBanId";
17
+ export { AdminBanView } from "./types/AdminBanView";
12
18
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
19
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
20
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
@@ -27,24 +33,23 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
27
33
  export { AdminPurgePost } from "./types/AdminPurgePost";
28
34
  export { AdminPurgePostId } from "./types/AdminPurgePostId";
29
35
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
36
+ export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
37
+ export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
38
+ export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
39
+ export {} from "./types/AllLemmyErrors";
30
40
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
31
41
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
32
42
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
33
43
  export { BanFromCommunity } from "./types/BanFromCommunity";
34
44
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
35
45
  export { BanPerson } from "./types/BanPerson";
36
- export { BanPersonResponse } from "./types/BanPersonResponse";
37
46
  export { BlockCommunity } from "./types/BlockCommunity";
38
- export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
39
47
  export { BlockPerson } from "./types/BlockPerson";
40
- export { BlockPersonResponse } from "./types/BlockPersonResponse";
41
48
  export { CaptchaResponse } from "./types/CaptchaResponse";
42
49
  export { ChangePassword } from "./types/ChangePassword";
43
50
  export { Comment } from "./types/Comment";
44
51
  export { CommentActions } from "./types/CommentActions";
45
52
  export { CommentId } from "./types/CommentId";
46
- export { CommentReply } from "./types/CommentReply";
47
- export { CommentReplyId } from "./types/CommentReplyId";
48
53
  export { CommentReport } from "./types/CommentReport";
49
54
  export { CommentReportId } from "./types/CommentReportId";
50
55
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -114,7 +119,6 @@ export { ExportDataResponse } from "./types/ExportDataResponse";
114
119
  export { FeaturePost } from "./types/FeaturePost";
115
120
  export { FederatedInstances } from "./types/FederatedInstances";
116
121
  export { FederationBlockList } from "./types/FederationBlockList";
117
- export { FederationError } from "./types/FederationError";
118
122
  export { FederationMode } from "./types/FederationMode";
119
123
  export { FollowCommunity } from "./types/FollowCommunity";
120
124
  export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
@@ -125,7 +129,6 @@ export { GetComments } from "./types/GetComments";
125
129
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
126
130
  export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
127
131
  export { GetCommunity } from "./types/GetCommunity";
128
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
129
132
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
130
133
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
131
134
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
@@ -153,7 +156,6 @@ export { HidePost } from "./types/HidePost";
153
156
  export { ImageDetails } from "./types/ImageDetails";
154
157
  export { ImageGetParams } from "./types/ImageGetParams";
155
158
  export { ImageProxyParams } from "./types/ImageProxyParams";
156
- export { InboxDataType } from "./types/InboxDataType";
157
159
  export { Instance } from "./types/Instance";
158
160
  export { InstanceActions } from "./types/InstanceActions";
159
161
  export { InstanceId } from "./types/InstanceId";
@@ -206,6 +208,7 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
206
208
  export { LocalUser } from "./types/LocalUser";
207
209
  export { LocalUserId } from "./types/LocalUserId";
208
210
  export { LocalUserView } from "./types/LocalUserView";
211
+ export { LockComment } from "./types/LockComment";
209
212
  export { LockPost } from "./types/LockPost";
210
213
  export { Login } from "./types/Login";
211
214
  export { LoginResponse } from "./types/LoginResponse";
@@ -213,34 +216,28 @@ export { LoginToken } from "./types/LoginToken";
213
216
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
214
217
  export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
215
218
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
216
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
217
- export { ModAdd } from "./types/ModAdd";
218
- export { ModAddCommunity } from "./types/ModAddCommunity";
219
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
220
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
221
- export { ModAddId } from "./types/ModAddId";
222
- export { ModAddView } from "./types/ModAddView";
223
- export { ModBan } from "./types/ModBan";
219
+ export { ModAddToCommunity } from "./types/ModAddToCommunity";
220
+ export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
221
+ export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
224
222
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
225
223
  export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
226
224
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
227
- export { ModBanId } from "./types/ModBanId";
228
- export { ModBanView } from "./types/ModBanView";
229
225
  export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
230
226
  export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
231
227
  export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
228
+ export { ModEditPost } from "./types/ModEditPost";
232
229
  export { ModFeaturePost } from "./types/ModFeaturePost";
233
230
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
234
231
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
232
+ export { ModLockComment } from "./types/ModLockComment";
233
+ export { ModLockCommentId } from "./types/ModLockCommentId";
234
+ export { ModLockCommentView } from "./types/ModLockCommentView";
235
235
  export { ModLockPost } from "./types/ModLockPost";
236
236
  export { ModLockPostId } from "./types/ModLockPostId";
237
237
  export { ModLockPostView } from "./types/ModLockPostView";
238
238
  export { ModRemoveComment } from "./types/ModRemoveComment";
239
239
  export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
240
240
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
241
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
242
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
243
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
244
241
  export { ModRemovePost } from "./types/ModRemovePost";
245
242
  export { ModRemovePostId } from "./types/ModRemovePostId";
246
243
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -252,6 +249,7 @@ export { ModlogCombinedView } from "./types/ModlogCombinedView";
252
249
  export { MultiCommunity } from "./types/MultiCommunity";
253
250
  export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
254
251
  export { MultiCommunityId } from "./types/MultiCommunityId";
252
+ export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
255
253
  export { MultiCommunityView } from "./types/MultiCommunityView";
256
254
  export { MyUserInfo } from "./types/MyUserInfo";
257
255
  export { NotePerson } from "./types/NotePerson";
@@ -259,9 +257,8 @@ export { Notification } from "./types/Notification";
259
257
  export { NotificationData } from "./types/NotificationData";
260
258
  export { NotificationDataType } from "./types/NotificationDataType";
261
259
  export { NotificationId } from "./types/NotificationId";
262
- export { NotificationTypes } from "./types/NotificationTypes";
260
+ export { NotificationType } from "./types/NotificationType";
263
261
  export { NotificationView } from "./types/NotificationView";
264
- export { NotificationsMode } from "./types/NotificationsMode";
265
262
  export { OAuthAccount } from "./types/OAuthAccount";
266
263
  export { OAuthProvider } from "./types/OAuthProvider";
267
264
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -270,17 +267,14 @@ export { PaginationCursor } from "./types/PaginationCursor";
270
267
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
271
268
  export { PasswordReset } from "./types/PasswordReset";
272
269
  export { PendingFollow } from "./types/PendingFollow";
270
+ export { PendingFollowerView } from "./types/PendingFollowerView";
273
271
  export { Person } from "./types/Person";
274
272
  export { PersonActions } from "./types/PersonActions";
275
- export { PersonCommentMention } from "./types/PersonCommentMention";
276
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
277
273
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
278
274
  export { PersonContentType } from "./types/PersonContentType";
279
275
  export { PersonId } from "./types/PersonId";
280
276
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
281
- export { PersonNotification } from "./types/PersonNotification";
282
- export { PersonPostMention } from "./types/PersonPostMention";
283
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
277
+ export { PersonResponse } from "./types/PersonResponse";
284
278
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
285
279
  export { PersonView } from "./types/PersonView";
286
280
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -350,14 +344,17 @@ export { TaglineId } from "./types/TaglineId";
350
344
  export { TaglineResponse } from "./types/TaglineResponse";
351
345
  export { TagsView } from "./types/TagsView";
352
346
  export { TransferCommunity } from "./types/TransferCommunity";
347
+ export { UntranslatedError } from "./types/UntranslatedError";
353
348
  export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
349
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
354
350
  export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
355
351
  export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
356
352
  export { UpdateTagline } from "./types/UpdateTagline";
357
353
  export { UpdateTotp } from "./types/UpdateTotp";
358
354
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
359
355
  export { UploadImageResponse } from "./types/UploadImageResponse";
360
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
356
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
357
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
361
358
  export { UserSettingsBackup } from "./types/UserSettingsBackup";
362
359
  export { VerifyEmail } from "./types/VerifyEmail";
363
360
  export { VoteShow } from "./types/VoteShow";
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
4
4
  import { GetComment } from "./types/GetComment";
5
5
  import { GetComments } from "./types/GetComments";
6
6
  import { GetCommunity } from "./types/GetCommunity";
7
- import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
8
7
  import { GetModlog } from "./types/GetModlog";
9
8
  import { GetMultiCommunity } from "./types/GetMultiCommunity";
10
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
@@ -48,8 +47,6 @@ export interface GetCommunityI extends GetCommunity {
48
47
  }
49
48
  export interface ListCommunitiesI extends ListCommunities {
50
49
  }
51
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
52
- }
53
50
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
54
51
  }
55
52
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -1,10 +1,10 @@
1
- import type { ModAddId } from "./ModAddId";
1
+ import type { AdminAddId } from "./AdminAddId";
2
2
  import type { PersonId } from "./PersonId";
3
3
  /**
4
- * When someone is added as a site moderator.
4
+ * When someone is added as a site admin.
5
5
  */
6
- export type ModAdd = {
7
- id: ModAddId;
6
+ export type AdminAdd = {
7
+ id: AdminAddId;
8
8
  mod_person_id: PersonId;
9
9
  other_person_id: PersonId;
10
10
  removed: boolean;
@@ -0,0 +1 @@
1
+ export type AdminAddId = number;
@@ -1,10 +1,10 @@
1
- import type { ModAdd } from "./ModAdd";
1
+ import type { AdminAdd } from "./AdminAdd";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is added as a site moderator.
5
5
  */
6
- export type ModAddView = {
7
- mod_add: ModAdd;
6
+ export type AdminAddView = {
7
+ admin_add: AdminAdd;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,6 +6,6 @@ export type AdminAllowInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  export type AdminAllowInstanceParams = {
2
2
  instance: string;
3
3
  allow: boolean;
4
- reason?: string;
4
+ reason: string;
5
5
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminBanId } from "./AdminBanId";
1
2
  import type { InstanceId } from "./InstanceId";
2
- import type { ModBanId } from "./ModBanId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When someone is banned from the site.
6
6
  */
7
- export type ModBan = {
8
- id: ModBanId;
7
+ export type AdminBan = {
8
+ id: AdminBanId;
9
9
  mod_person_id: PersonId;
10
10
  other_person_id: PersonId;
11
- reason?: string;
11
+ reason: string;
12
12
  banned: boolean;
13
13
  expires_at?: string;
14
14
  published_at: string;
@@ -0,0 +1 @@
1
+ export type AdminBanId = number;
@@ -1,10 +1,10 @@
1
- import type { ModBan } from "./ModBan";
1
+ import type { AdminBan } from "./AdminBan";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is banned from the site.
5
5
  */
6
- export type ModBanView = {
7
- mod_ban: ModBan;
6
+ export type AdminBanView = {
7
+ admin_ban: AdminBan;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,7 +6,7 @@ export type AdminBlockInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
- reason?: string;
9
+ reason: string;
10
10
  expires_at?: string;
11
11
  published_at: string;
12
12
  };
@@ -1,6 +1,11 @@
1
1
  export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
- reason?: string;
5
- expires_at?: string;
4
+ reason: string;
5
+ /**
6
+ * A time that the block will expire, in unix epoch seconds.
7
+ *
8
+ * An i64 unix timestamp is used for a simpler API client implementation.
9
+ */
10
+ expires_at?: number;
6
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgeComment = {
8
8
  id: AdminPurgeCommentId;
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
- reason?: string;
11
+ reason: string;
12
12
  published_at: string;
13
13
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
9
+ reason: string;
10
10
  published_at: string;
11
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgePost = {
8
8
  id: AdminPurgePostId;
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  published_at: string;
13
13
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
1
2
  import type { CommunityId } from "./CommunityId";
2
- import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When a moderator removes a community.
6
6
  */
7
- export type ModRemoveCommunity = {
8
- id: ModRemoveCommunityId;
7
+ export type AdminRemoveCommunity = {
8
+ id: AdminRemoveCommunityId;
9
9
  mod_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  removed: boolean;
13
13
  published_at: string;
14
14
  };
@@ -0,0 +1 @@
1
+ export type AdminRemoveCommunityId = number;
@@ -0,0 +1,11 @@
1
+ import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
+ import type { Community } from "./Community";
3
+ import type { Person } from "./Person";
4
+ /**
5
+ * When an admin removes a community.
6
+ */
7
+ export type AdminRemoveCommunityView = {
8
+ admin_remove_community: AdminRemoveCommunity;
9
+ moderator?: Person;
10
+ community: Community;
11
+ };
@@ -0,0 +1 @@
1
+ export declare const AllLemmyErrors: string[];
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllLemmyErrors = void 0;
4
+ exports.AllLemmyErrors = [
5
+ "block_keyword_too_short",
6
+ "block_keyword_too_long",
7
+ "couldnt_update",
8
+ "couldnt_create",
9
+ "report_reason_required",
10
+ "report_too_long",
11
+ "not_a_moderator",
12
+ "not_an_admin",
13
+ "cant_block_yourself",
14
+ "cant_note_yourself",
15
+ "cant_block_admin",
16
+ "passwords_do_not_match",
17
+ "email_not_verified",
18
+ "email_required",
19
+ "cannot_leave_admin",
20
+ "cannot_leave_mod",
21
+ "cannot_leave_mod",
22
+ "cannot_leave_mod",
23
+ "pictrs_api_key_not_provided",
24
+ "pictrs_api_key_not_provided",
25
+ "no_content_type_header",
26
+ "not_an_image_type",
27
+ "image_upload_disabled",
28
+ "not_a_mod_or_admin",
29
+ "not_top_mod",
30
+ "not_logged_in",
31
+ "not_higher_mod",
32
+ "not_higher_admin",
33
+ "site_ban",
34
+ "deleted",
35
+ "person_is_blocked",
36
+ "community_is_blocked",
37
+ "instance_is_blocked",
38
+ "instance_is_private",
39
+ "invalid_password",
40
+ "site_description_length_overflow",
41
+ "honeypot_failed",
42
+ "registration_application_is_pending",
43
+ "locked",
44
+ "max_comment_depth_reached",
45
+ "no_comment_edit_allowed",
46
+ "only_admins_can_create_communities",
47
+ "already_exists",
48
+ "language_not_allowed",
49
+ "no_post_edit_allowed",
50
+ "nsfw_not_allowed",
51
+ "edit_private_message_not_allowed",
52
+ "application_question_required",
53
+ "invalid_default_post_listing_type",
54
+ "registration_closed",
55
+ "registration_application_answer_required",
56
+ "registration_username_required",
57
+ "email_already_taken",
58
+ "username_already_taken",
59
+ "person_is_banned_from_community",
60
+ "no_id_given",
61
+ "incorrect_login",
62
+ "no_email_setup",
63
+ "local_site_not_setup",
64
+ "local_site_not_setup",
65
+ "invalid_name",
66
+ "invalid_code_verifier",
67
+ "invalid_display_name",
68
+ "invalid_matrix_id",
69
+ "invalid_post_title",
70
+ "invalid_body_field",
71
+ "bio_length_overflow",
72
+ "alt_text_length_overflow",
73
+ "couldnt_parse_totp_secret",
74
+ "couldnt_generate_totp",
75
+ "missing_totp_token",
76
+ "missing_totp_secret",
77
+ "incorrect_totp_token",
78
+ "totp_already_enabled",
79
+ "blocked_url",
80
+ "invalid_url",
81
+ "email_send_failed",
82
+ "slurs",
83
+ "slurs",
84
+ "site_name_required",
85
+ "site_name_length_overflow",
86
+ "permissive_regex",
87
+ "invalid_regex",
88
+ "captcha_incorrect",
89
+ "couldnt_create_audio_captcha",
90
+ "couldnt_create_image_captcha",
91
+ "invalid_url_scheme",
92
+ "contradicting_filters",
93
+ "too_many_items",
94
+ "ban_expiration_in_past",
95
+ "invalid_unix_time",
96
+ "invalid_bot_action",
97
+ "tag_not_in_community",
98
+ "cant_block_local_instance",
99
+ "cant_block_local_instance",
100
+ "url_length_overflow",
101
+ "oauth_authorization_invalid",
102
+ "oauth_login_failed",
103
+ "oauth_registration_closed",
104
+ "not_found",
105
+ "post_schedule_time_must_be_in_future",
106
+ "too_many_scheduled_posts",
107
+ "cannot_combine_federation_blocklist_and_allowlist",
108
+ "cannot_combine_federation_blocklist_and_allowlist",
109
+ "couldnt_parse_pagination_token",
110
+ "couldnt_parse_pagination_token",
111
+ "invalid_fetch_limit",
112
+ "email_notifications_disabled",
113
+ "multi_community_update_wrong_user",
114
+ "cannot_combine_community_id_and_multi_community_id",
115
+ "multi_community_entry_limit_reached",
116
+ "too_many_requests",
117
+ ];
@@ -12,7 +12,7 @@ export type BanFromCommunity = {
12
12
  * If ban is true, then this means remove. If ban is false, it means restore.
13
13
  */
14
14
  remove_or_restore_data?: boolean;
15
- reason?: string;
15
+ reason: string;
16
16
  /**
17
17
  * A time that the ban will expire, in unix epoch seconds.
18
18
  *
@@ -10,7 +10,7 @@ export type BanPerson = {
10
10
  * If ban is true, then this means remove. If ban is false, it means restore.
11
11
  */
12
12
  remove_or_restore_data?: boolean;
13
- reason?: string;
13
+ reason: string;
14
14
  /**
15
15
  * A time that the ban will expire, in unix epoch seconds.
16
16
  *
@@ -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
  };
@@ -23,5 +23,7 @@ export type CommentReportView = {
23
23
  creator_is_admin: boolean;
24
24
  creator_is_moderator: boolean;
25
25
  creator_banned: boolean;
26
+ creator_ban_expires_at?: string;
26
27
  creator_banned_from_community: boolean;
28
+ creator_community_ban_expires_at?: string;
27
29
  };
@@ -1,6 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { InstanceActions } from "./InstanceActions";
4
3
  import type { Person } from "./Person";
5
4
  import type { PersonActions } from "./PersonActions";
6
5
  /**
@@ -11,7 +10,6 @@ export type CommentSlimView = {
11
10
  creator: Person;
12
11
  comment_actions?: CommentActions;
13
12
  person_actions?: PersonActions;
14
- instance_actions?: InstanceActions;
15
13
  creator_is_admin: boolean;
16
14
  can_mod: boolean;
17
15
  creator_banned: boolean;
@@ -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,11 +17,12 @@ export type CommentView = {
18
17
  community_actions?: CommunityActions;
19
18
  comment_actions?: CommentActions;
20
19
  person_actions?: PersonActions;
21
- instance_actions?: InstanceActions;
22
20
  creator_is_admin: boolean;
23
21
  post_tags: TagsView;
24
22
  can_mod: boolean;
25
23
  creator_banned: boolean;
24
+ creator_ban_expires_at?: string;
26
25
  creator_is_moderator: boolean;
27
26
  creator_banned_from_community: boolean;
27
+ creator_community_ban_expires_at?: string;
28
28
  };
@@ -1 +1 @@
1
- export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired";
1
+ export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired" | "Denied";
@@ -12,5 +12,7 @@ export type CommunityReportView = {
12
12
  creator_is_admin: boolean;
13
13
  creator_is_moderator: boolean;
14
14
  creator_banned: boolean;
15
+ creator_ban_expires_at?: string;
15
16
  creator_banned_from_community: boolean;
17
+ creator_community_ban_expires_at?: string;
16
18
  };
@@ -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
  };
@@ -5,4 +5,6 @@ import type { CommunityId } from "./CommunityId";
5
5
  export type CreateCommunityTag = {
6
6
  community_id: CommunityId;
7
7
  name: string;
8
+ display_name?: string;
9
+ description?: string;
8
10
  };
@@ -1,10 +1,11 @@
1
+ import type { DbUrl } from "./DbUrl";
1
2
  /**
2
3
  * Create a custom emoji.
3
4
  */
4
5
  export type CreateCustomEmoji = {
5
6
  category: string;
6
7
  shortcode: string;
7
- image_url: string;
8
+ image_url: DbUrl;
8
9
  alt_text: string;
9
10
  keywords: Array<string>;
10
11
  };
@@ -1,3 +1,2 @@
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.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,7 +27,6 @@ export type CreateSite = {
27
27
  application_email_admins?: boolean;
28
28
  discussion_languages?: Array<LanguageId>;
29
29
  slur_filter_regex?: string;
30
- actor_name_max_length?: number;
31
30
  rate_limit_message_max_requests?: number;
32
31
  rate_limit_message_interval_seconds?: number;
33
32
  rate_limit_post_max_requests?: number;