lemmy-js-client 1.0.0-rename-rate-limit-columns.1 → 1.0.0-rename-person-banned.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 (130) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +40 -25
  3. package/dist/http.js +101 -53
  4. package/dist/index.d.ts +35 -30
  5. package/dist/other_types.d.ts +2 -2
  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/{ModBan.d.ts → AdminBan.d.ts} +3 -3
  10. package/dist/types/AdminBanId.d.ts +1 -0
  11. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  12. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +3 -3
  13. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  14. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  15. package/dist/types/Comment.d.ts +4 -0
  16. package/dist/types/CommentReportView.d.ts +3 -0
  17. package/dist/types/CommentResponse.d.ts +0 -2
  18. package/dist/types/CommentSlimView.d.ts +0 -2
  19. package/dist/types/CommentView.d.ts +2 -2
  20. package/dist/types/CommunityActions.d.ts +2 -0
  21. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  22. package/dist/types/CommunityReportView.d.ts +4 -0
  23. package/dist/types/CommunityView.d.ts +0 -2
  24. package/dist/types/CreateCommunityTag.d.ts +3 -1
  25. package/dist/types/EditSite.d.ts +4 -0
  26. package/dist/types/ExportDataResponse.d.ts +13 -0
  27. package/dist/types/FederationError.d.ts +4 -2
  28. package/dist/types/InstanceActions.d.ts +6 -2
  29. package/dist/types/LemmyErrorType.d.ts +10 -134
  30. package/dist/types/LinkMetadata.d.ts +4 -0
  31. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  32. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  33. package/dist/types/LocalSite.d.ts +1 -0
  34. package/dist/types/LocalUser.d.ts +2 -0
  35. package/dist/types/LocalUserView.d.ts +1 -0
  36. package/dist/types/LockComment.d.ts +6 -0
  37. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  38. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
  39. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  40. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  41. package/dist/types/ModEditPost.d.ts +10 -0
  42. package/dist/types/ModLockComment.d.ts +14 -0
  43. package/dist/types/ModLockCommentId.d.ts +1 -0
  44. package/dist/types/ModLockCommentView.d.ts +14 -0
  45. package/dist/types/ModlogActionType.d.ts +1 -1
  46. package/dist/types/ModlogCombinedView.d.ts +16 -13
  47. package/dist/types/MyUserInfo.d.ts +2 -1
  48. package/dist/types/Notification.d.ts +16 -0
  49. package/dist/types/NotificationData.d.ts +10 -0
  50. package/dist/types/NotificationDataType.d.ts +4 -0
  51. package/dist/types/NotificationId.d.ts +1 -0
  52. package/dist/types/NotificationTypes.d.ts +4 -0
  53. package/dist/types/NotificationTypes.js +3 -0
  54. package/dist/types/NotificationView.d.ts +6 -0
  55. package/dist/types/OpenGraphData.d.ts +4 -0
  56. package/dist/types/PersonActions.d.ts +12 -0
  57. package/dist/types/PersonView.d.ts +2 -1
  58. package/dist/types/PostActions.d.ts +2 -0
  59. package/dist/types/PostActions.js +0 -1
  60. package/dist/types/PostNotificationsMode.d.ts +4 -0
  61. package/dist/types/PostNotificationsMode.js +3 -0
  62. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  63. package/dist/types/PostReportView.d.ts +3 -0
  64. package/dist/types/PostView.d.ts +2 -2
  65. package/dist/types/PrivateMessage.d.ts +0 -1
  66. package/dist/types/PrivateMessageReportView.d.ts +2 -0
  67. package/dist/types/SaveUserSettings.d.ts +8 -0
  68. package/dist/types/Tag.d.ts +6 -14
  69. package/dist/types/TagsView.d.ts +1 -1
  70. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  71. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  72. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  73. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  74. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  75. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  76. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  77. package/dist/types/UserSettingsBackup.d.ts +27 -0
  78. package/dist/types/UserSettingsBackup.js +2 -0
  79. package/dist/types/VoteView.d.ts +1 -0
  80. package/package.json +6 -5
  81. package/dist/types/CommentReply.d.ts +0 -13
  82. package/dist/types/CommentReplyId.d.ts +0 -4
  83. package/dist/types/CommentReplyView.d.ts +0 -31
  84. package/dist/types/InboxCombinedView.d.ts +0 -13
  85. package/dist/types/InboxDataType.d.ts +0 -4
  86. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  87. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  88. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  89. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  90. package/dist/types/ModAddCommunityId.d.ts +0 -1
  91. package/dist/types/ModAddId.d.ts +0 -1
  92. package/dist/types/ModBanId.d.ts +0 -1
  93. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  94. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  95. package/dist/types/PersonCommentMention.d.ts +0 -13
  96. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  97. package/dist/types/PersonCommentMentionView.d.ts +0 -29
  98. package/dist/types/PersonPostMention.d.ts +0 -13
  99. package/dist/types/PersonPostMentionId.d.ts +0 -4
  100. package/dist/types/PersonPostMentionView.d.ts +0 -31
  101. /package/dist/types/{CommentReply.js → AdminAdd.js} +0 -0
  102. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  103. /package/dist/types/{CommentReplyView.js → AdminAddView.js} +0 -0
  104. /package/dist/types/{InboxCombinedView.js → AdminBan.js} +0 -0
  105. /package/dist/types/{InboxDataType.js → AdminBanId.js} +0 -0
  106. /package/dist/types/{ListInbox.js → AdminBanView.js} +0 -0
  107. /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunity.js} +0 -0
  108. /package/dist/types/{ModAddCommunityId.js → AdminRemoveCommunityId.js} +0 -0
  109. /package/dist/types/{MarkCommentReplyAsRead.js → AdminRemoveCommunityView.js} +0 -0
  110. /package/dist/types/{ModAddId.js → CommunityNotificationsMode.js} +0 -0
  111. /package/dist/types/{MarkPersonCommentMentionAsRead.js → ExportDataResponse.js} +0 -0
  112. /package/dist/types/{MarkPersonPostMentionAsRead.js → ListNotifications.js} +0 -0
  113. /package/dist/types/{MarkPrivateMessageAsRead.js → ListNotificationsResponse.js} +0 -0
  114. /package/dist/types/{ModAdd.js → LockComment.js} +0 -0
  115. /package/dist/types/{ModAddCommunity.js → MarkNotificationAsRead.js} +0 -0
  116. /package/dist/types/{ModAddCommunityView.js → ModAddToCommunity.js} +0 -0
  117. /package/dist/types/{ModBanId.js → ModAddToCommunityId.js} +0 -0
  118. /package/dist/types/{ModAddView.js → ModAddToCommunityView.js} +0 -0
  119. /package/dist/types/{ModBan.js → ModEditPost.js} +0 -0
  120. /package/dist/types/{ModBanView.js → ModLockComment.js} +0 -0
  121. /package/dist/types/{ModRemoveCommunityId.js → ModLockCommentId.js} +0 -0
  122. /package/dist/types/{ModRemoveCommunity.js → ModLockCommentView.js} +0 -0
  123. /package/dist/types/{ModRemoveCommunityView.js → Notification.js} +0 -0
  124. /package/dist/types/{PersonCommentMention.js → NotificationData.js} +0 -0
  125. /package/dist/types/{PersonCommentMentionId.js → NotificationDataType.js} +0 -0
  126. /package/dist/types/{PersonPostMentionId.js → NotificationId.js} +0 -0
  127. /package/dist/types/{PersonCommentMentionView.js → NotificationView.js} +0 -0
  128. /package/dist/types/{PersonPostMention.js → PostOrCommentOrPrivateMessage.js} +0 -0
  129. /package/dist/types/{PersonPostMentionView.js → UpdateCommunityNotifications.js} +0 -0
  130. /package/dist/types/{UserBlockInstanceParams.js → UpdatePostNotifications.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,6 +33,9 @@ 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";
30
39
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
31
40
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
32
41
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
@@ -43,9 +52,6 @@ export { ChangePassword } from "./types/ChangePassword";
43
52
  export { Comment } from "./types/Comment";
44
53
  export { CommentActions } from "./types/CommentActions";
45
54
  export { CommentId } from "./types/CommentId";
46
- export { CommentReply } from "./types/CommentReply";
47
- export { CommentReplyId } from "./types/CommentReplyId";
48
- export { CommentReplyView } from "./types/CommentReplyView";
49
55
  export { CommentReport } from "./types/CommentReport";
50
56
  export { CommentReportId } from "./types/CommentReportId";
51
57
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -61,6 +67,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
61
67
  export { CommunityId } from "./types/CommunityId";
62
68
  export { CommunityIdQuery } from "./types/CommunityIdQuery";
63
69
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
70
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
64
71
  export { CommunityReport } from "./types/CommunityReport";
65
72
  export { CommunityReportId } from "./types/CommunityReportId";
66
73
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -110,6 +117,7 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
110
117
  export { EditPost } from "./types/EditPost";
111
118
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
112
119
  export { EditSite } from "./types/EditSite";
120
+ export { ExportDataResponse } from "./types/ExportDataResponse";
113
121
  export { FeaturePost } from "./types/FeaturePost";
114
122
  export { FederatedInstances } from "./types/FederatedInstances";
115
123
  export { FederationBlockList } from "./types/FederationBlockList";
@@ -152,8 +160,6 @@ export { HidePost } from "./types/HidePost";
152
160
  export { ImageDetails } from "./types/ImageDetails";
153
161
  export { ImageGetParams } from "./types/ImageGetParams";
154
162
  export { ImageProxyParams } from "./types/ImageProxyParams";
155
- export { InboxCombinedView } from "./types/InboxCombinedView";
156
- export { InboxDataType } from "./types/InboxDataType";
157
163
  export { Instance } from "./types/Instance";
158
164
  export { InstanceActions } from "./types/InstanceActions";
159
165
  export { InstanceId } from "./types/InstanceId";
@@ -171,13 +177,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
171
177
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
172
178
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
173
179
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
174
- export { ListInbox } from "./types/ListInbox";
175
- export { ListInboxResponse } from "./types/ListInboxResponse";
176
180
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
177
181
  export { ListMedia } from "./types/ListMedia";
178
182
  export { ListMediaResponse } from "./types/ListMediaResponse";
179
183
  export { ListMultiCommunities } from "./types/ListMultiCommunities";
180
184
  export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
185
+ export { ListNotifications } from "./types/ListNotifications";
186
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
181
187
  export { ListPersonContent } from "./types/ListPersonContent";
182
188
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
183
189
  export { ListPersonHidden } from "./types/ListPersonHidden";
@@ -206,43 +212,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
206
212
  export { LocalUser } from "./types/LocalUser";
207
213
  export { LocalUserId } from "./types/LocalUserId";
208
214
  export { LocalUserView } from "./types/LocalUserView";
215
+ export { LockComment } from "./types/LockComment";
209
216
  export { LockPost } from "./types/LockPost";
210
217
  export { Login } from "./types/Login";
211
218
  export { LoginResponse } from "./types/LoginResponse";
212
219
  export { LoginToken } from "./types/LoginToken";
213
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
214
220
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
215
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
216
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
221
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
217
222
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
218
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
219
- export { ModAdd } from "./types/ModAdd";
220
- export { ModAddCommunity } from "./types/ModAddCommunity";
221
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
222
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
223
- export { ModAddId } from "./types/ModAddId";
224
- export { ModAddView } from "./types/ModAddView";
225
- export { ModBan } from "./types/ModBan";
223
+ export { ModAddToCommunity } from "./types/ModAddToCommunity";
224
+ export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
225
+ export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
226
226
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
227
227
  export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
228
228
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
229
- export { ModBanId } from "./types/ModBanId";
230
- export { ModBanView } from "./types/ModBanView";
231
229
  export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
232
230
  export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
233
231
  export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
232
+ export { ModEditPost } from "./types/ModEditPost";
234
233
  export { ModFeaturePost } from "./types/ModFeaturePost";
235
234
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
236
235
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
236
+ export { ModLockComment } from "./types/ModLockComment";
237
+ export { ModLockCommentId } from "./types/ModLockCommentId";
238
+ export { ModLockCommentView } from "./types/ModLockCommentView";
237
239
  export { ModLockPost } from "./types/ModLockPost";
238
240
  export { ModLockPostId } from "./types/ModLockPostId";
239
241
  export { ModLockPostView } from "./types/ModLockPostView";
240
242
  export { ModRemoveComment } from "./types/ModRemoveComment";
241
243
  export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
242
244
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
243
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
244
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
245
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
246
245
  export { ModRemovePost } from "./types/ModRemovePost";
247
246
  export { ModRemovePostId } from "./types/ModRemovePostId";
248
247
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -257,6 +256,12 @@ export { MultiCommunityId } from "./types/MultiCommunityId";
257
256
  export { MultiCommunityView } from "./types/MultiCommunityView";
258
257
  export { MyUserInfo } from "./types/MyUserInfo";
259
258
  export { NotePerson } from "./types/NotePerson";
259
+ export { Notification } from "./types/Notification";
260
+ export { NotificationData } from "./types/NotificationData";
261
+ export { NotificationDataType } from "./types/NotificationDataType";
262
+ export { NotificationId } from "./types/NotificationId";
263
+ export { NotificationTypes } from "./types/NotificationTypes";
264
+ export { NotificationView } from "./types/NotificationView";
260
265
  export { OAuthAccount } from "./types/OAuthAccount";
261
266
  export { OAuthProvider } from "./types/OAuthProvider";
262
267
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -267,16 +272,10 @@ export { PasswordReset } from "./types/PasswordReset";
267
272
  export { PendingFollow } from "./types/PendingFollow";
268
273
  export { Person } from "./types/Person";
269
274
  export { PersonActions } from "./types/PersonActions";
270
- export { PersonCommentMention } from "./types/PersonCommentMention";
271
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
272
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
273
275
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
274
276
  export { PersonContentType } from "./types/PersonContentType";
275
277
  export { PersonId } from "./types/PersonId";
276
278
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
277
- export { PersonPostMention } from "./types/PersonPostMention";
278
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
279
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
280
279
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
281
280
  export { PersonView } from "./types/PersonView";
282
281
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -285,6 +284,8 @@ export { PostActions } from "./types/PostActions";
285
284
  export { PostFeatureType } from "./types/PostFeatureType";
286
285
  export { PostId } from "./types/PostId";
287
286
  export { PostListingMode } from "./types/PostListingMode";
287
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
288
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
288
289
  export { PostReport } from "./types/PostReport";
289
290
  export { PostReportId } from "./types/PostReportId";
290
291
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -344,13 +345,17 @@ export { TaglineId } from "./types/TaglineId";
344
345
  export { TaglineResponse } from "./types/TaglineResponse";
345
346
  export { TagsView } from "./types/TagsView";
346
347
  export { TransferCommunity } from "./types/TransferCommunity";
348
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
347
349
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
348
350
  export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
351
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
349
352
  export { UpdateTagline } from "./types/UpdateTagline";
350
353
  export { UpdateTotp } from "./types/UpdateTotp";
351
354
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
352
355
  export { UploadImageResponse } from "./types/UploadImageResponse";
353
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
356
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
357
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
358
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
354
359
  export { VerifyEmail } from "./types/VerifyEmail";
355
360
  export { VoteShow } from "./types/VoteShow";
356
361
  export { VoteView } from "./types/VoteView";
@@ -18,7 +18,7 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
18
18
  import { ListCommunities } from "./types/ListCommunities";
19
19
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
20
20
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
21
- import { ListInbox } from "./types/ListInbox";
21
+ import { ListNotifications } from "./types/ListNotifications";
22
22
  import { ListMedia } from "./types/ListMedia";
23
23
  import { ListMultiCommunities } from "./types/ListMultiCommunities";
24
24
  import { ListPersonContent } from "./types/ListPersonContent";
@@ -74,7 +74,7 @@ export interface ListPersonContentI extends ListPersonContent {
74
74
  }
75
75
  export interface GetReportCountI extends GetReportCount {
76
76
  }
77
- export interface ListInboxI extends ListInbox {
77
+ export interface ListNotificationsI extends ListNotifications {
78
78
  }
79
79
  export interface ListPersonSavedI extends ListPersonSaved {
80
80
  }
@@ -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
  };
@@ -1,11 +1,11 @@
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
11
  reason?: 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
  };
@@ -1,11 +1,11 @@
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
11
  reason?: string;
@@ -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
+ };
@@ -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
  };
@@ -21,4 +21,7 @@ export type CommentReportView = {
21
21
  person_actions?: PersonActions;
22
22
  community_actions?: CommunityActions;
23
23
  creator_is_admin: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned: boolean;
26
+ creator_banned_from_community: boolean;
24
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,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,4 +1,5 @@
1
1
  import type { CommunityFollowerState } from "./CommunityFollowerState";
2
+ import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
2
3
  export type CommunityActions = {
3
4
  /**
4
5
  * When the community was followed.
@@ -24,4 +25,5 @@ export type CommunityActions = {
24
25
  * When their ban expires.
25
26
  */
26
27
  ban_expires_at?: string;
28
+ notifications?: CommunityNotificationsMode;
27
29
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Available settings for community notifications
3
+ */
4
+ export type CommunityNotificationsMode = "AllPostsAndComments" | "AllPosts" | "RepliesAndMentions" | "Mute";
@@ -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
  };
@@ -55,6 +55,10 @@ export type EditSite = {
55
55
  * A default time range limit to apply to post sorts, in seconds. 0 means none.
56
56
  */
57
57
  default_post_time_range_seconds?: number;
58
+ /**
59
+ * A default fetch limit for number of items returned.
60
+ */
61
+ default_items_per_page?: number;
58
62
  /**
59
63
  * The default comment sort, usually "hot"
60
64
  */
@@ -0,0 +1,13 @@
1
+ import type { PostOrCommentOrPrivateMessage } from "./PostOrCommentOrPrivateMessage";
2
+ import type { UserSettingsBackup } from "./UserSettingsBackup";
3
+ /**
4
+ * Your exported data.
5
+ */
6
+ export type ExportDataResponse = {
7
+ notifications: Array<PostOrCommentOrPrivateMessage>;
8
+ content: Array<PostOrCommentOrPrivateMessage>;
9
+ read_posts: Array<string>;
10
+ liked: Array<string>;
11
+ moderates: Array<string>;
12
+ settings: UserSettingsBackup;
13
+ };
@@ -3,8 +3,10 @@
3
3
  */
4
4
  export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
5
5
  PersonIsBannedFromSite: string;
6
- } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
6
+ } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "FederationDisabled" | {
7
7
  DomainBlocked: string;
8
8
  } | {
9
9
  DomainNotInAllowList: string;
10
- } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
10
+ } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | {
11
+ InvalidFollow: string;
12
+ } | "Unreachable";
@@ -1,8 +1,8 @@
1
1
  export type InstanceActions = {
2
2
  /**
3
- * When the instance was blocked.
3
+ * When the instance's communities were blocked.
4
4
  */
5
- blocked_at?: string;
5
+ blocked_communities_at?: string;
6
6
  /**
7
7
  * When this user received a site ban.
8
8
  */
@@ -11,4 +11,8 @@ export type InstanceActions = {
11
11
  * When their ban expires.
12
12
  */
13
13
  ban_expires_at?: string;
14
+ /**
15
+ * When the instance's persons were blocked.
16
+ */
17
+ blocked_persons_at?: string;
14
18
  };