lemmy-js-client 0.20.0-modlog-combined.1 → 0.20.0-no-delete-token.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/dist/http.d.ts +0 -16
  2. package/dist/http.js +0 -16
  3. package/dist/index.d.ts +3 -33
  4. package/dist/types/AdminAllowInstance.d.ts +2 -3
  5. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  6. package/dist/types/AdminBlockInstance.d.ts +2 -3
  7. package/dist/types/AdminPurgeComment.d.ts +2 -3
  8. package/dist/types/AdminPurgeCommunity.d.ts +2 -3
  9. package/dist/types/AdminPurgePerson.d.ts +2 -3
  10. package/dist/types/AdminPurgePost.d.ts +2 -3
  11. package/dist/types/CommunityAggregates.d.ts +0 -2
  12. package/dist/types/CreatePost.d.ts +0 -2
  13. package/dist/types/CreateSite.d.ts +2 -0
  14. package/dist/types/DeleteImageParams.d.ts +0 -1
  15. package/dist/types/EditPost.d.ts +0 -2
  16. package/dist/types/EditSite.d.ts +8 -0
  17. package/dist/types/FederationError.d.ts +1 -1
  18. package/dist/types/GetComments.d.ts +1 -0
  19. package/dist/types/GetModlog.d.ts +2 -3
  20. package/dist/types/GetModlogResponse.d.ts +34 -2
  21. package/dist/types/GetPersonDetails.d.ts +7 -0
  22. package/dist/types/GetPersonDetailsResponse.d.ts +4 -0
  23. package/dist/types/GetPosts.d.ts +0 -1
  24. package/dist/types/GetSiteResponse.d.ts +8 -0
  25. package/dist/types/LemmyErrorType.d.ts +2 -0
  26. package/dist/types/LocalImage.d.ts +0 -1
  27. package/dist/types/ModAdd.d.ts +2 -3
  28. package/dist/types/ModAddCommunity.d.ts +2 -3
  29. package/dist/types/ModAddCommunityView.d.ts +1 -1
  30. package/dist/types/ModAddView.d.ts +1 -1
  31. package/dist/types/ModBan.d.ts +2 -3
  32. package/dist/types/ModBanFromCommunity.d.ts +2 -3
  33. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  34. package/dist/types/ModBanView.d.ts +1 -1
  35. package/dist/types/ModFeaturePost.d.ts +2 -3
  36. package/dist/types/ModFeaturePostView.d.ts +0 -1
  37. package/dist/types/ModHideCommunity.d.ts +2 -3
  38. package/dist/types/ModLockPost.d.ts +2 -3
  39. package/dist/types/ModLockPostView.d.ts +0 -1
  40. package/dist/types/ModRemoveComment.d.ts +2 -3
  41. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  42. package/dist/types/ModRemoveCommunity.d.ts +2 -3
  43. package/dist/types/ModRemovePost.d.ts +2 -3
  44. package/dist/types/ModRemovePostView.d.ts +0 -1
  45. package/dist/types/ModTransferCommunity.d.ts +2 -3
  46. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  47. package/dist/types/ModlogListParams.d.ts +17 -0
  48. package/dist/types/PostView.d.ts +0 -2
  49. package/dist/types/ReportCombined.d.ts +14 -0
  50. package/dist/types/ReportCombinedId.d.ts +4 -0
  51. package/dist/types/ReportCombinedView.d.ts +1 -4
  52. package/dist/types/Search.d.ts +1 -0
  53. package/dist/types/UploadImageResponse.d.ts +0 -1
  54. package/package.json +1 -1
  55. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  56. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  57. package/dist/types/AdminBlockInstanceId.js +0 -3
  58. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  59. package/dist/types/AdminPurgeCommentId.js +0 -3
  60. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  61. package/dist/types/AdminPurgeCommunityId.js +0 -3
  62. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  63. package/dist/types/AdminPurgePersonId.js +0 -3
  64. package/dist/types/AdminPurgePostId.d.ts +0 -1
  65. package/dist/types/AdminPurgePostId.js +0 -3
  66. package/dist/types/CommunityReport.d.ts +0 -22
  67. package/dist/types/CommunityReportId.d.ts +0 -4
  68. package/dist/types/CommunityReportId.js +0 -3
  69. package/dist/types/CommunityReportView.d.ts +0 -16
  70. package/dist/types/ListPersonContent.d.ts +0 -18
  71. package/dist/types/ListPersonContent.js +0 -2
  72. package/dist/types/ListPersonContentResponse.d.ts +0 -7
  73. package/dist/types/ListPersonContentResponse.js +0 -2
  74. package/dist/types/ListPersonSaved.d.ts +0 -10
  75. package/dist/types/ListPersonSaved.js +0 -2
  76. package/dist/types/ListPersonSavedResponse.d.ts +0 -7
  77. package/dist/types/ListPersonSavedResponse.js +0 -2
  78. package/dist/types/ModAddCommunityId.d.ts +0 -1
  79. package/dist/types/ModAddCommunityId.js +0 -3
  80. package/dist/types/ModAddId.d.ts +0 -1
  81. package/dist/types/ModAddId.js +0 -3
  82. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  83. package/dist/types/ModBanFromCommunityId.js +0 -3
  84. package/dist/types/ModBanId.d.ts +0 -1
  85. package/dist/types/ModBanId.js +0 -3
  86. package/dist/types/ModFeaturePostId.d.ts +0 -1
  87. package/dist/types/ModFeaturePostId.js +0 -3
  88. package/dist/types/ModHideCommunityId.d.ts +0 -1
  89. package/dist/types/ModHideCommunityId.js +0 -3
  90. package/dist/types/ModLockPostId.d.ts +0 -1
  91. package/dist/types/ModLockPostId.js +0 -3
  92. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  93. package/dist/types/ModRemoveCommentId.js +0 -3
  94. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  95. package/dist/types/ModRemoveCommunityId.js +0 -3
  96. package/dist/types/ModRemovePostId.d.ts +0 -1
  97. package/dist/types/ModRemovePostId.js +0 -3
  98. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  99. package/dist/types/ModTransferCommunityId.js +0 -3
  100. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  101. package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
  102. package/dist/types/ModlogCombinedView.d.ts +0 -52
  103. package/dist/types/ModlogCombinedView.js +0 -2
  104. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  105. package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
  106. package/dist/types/PersonContentCombinedView.d.ts +0 -7
  107. package/dist/types/PersonContentCombinedView.js +0 -2
  108. package/dist/types/PersonContentType.d.ts +0 -4
  109. package/dist/types/PersonContentType.js +0 -3
  110. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  111. package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
  112. package/dist/types/PostTags.d.ts +0 -7
  113. package/dist/types/PostTags.js +0 -2
  114. package/dist/types/Tag.d.ts +0 -27
  115. package/dist/types/Tag.js +0 -2
  116. package/dist/types/TagId.d.ts +0 -4
  117. package/dist/types/TagId.js +0 -3
  118. /package/dist/types/{CommunityReport.js → ModlogListParams.js} +0 -0
  119. /package/dist/types/{CommunityReportView.js → ReportCombined.js} +0 -0
  120. /package/dist/types/{AdminAllowInstanceId.js → ReportCombinedId.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -153,10 +153,6 @@ import { MyUserInfo } from "./types/MyUserInfo";
153
153
  import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
154
154
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
155
155
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
156
- import { ListPersonContent } from "./types/ListPersonContent";
157
- import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
158
- import { ListPersonSaved } from "./types/ListPersonSaved";
159
- import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
160
156
  import { DeleteImageParams } from "./types/DeleteImageParams";
161
157
  import { UploadImageResponse } from "./types/UploadImageResponse";
162
158
  type RequestOptions = Pick<RequestInit, "signal">;
@@ -606,12 +602,6 @@ export declare class LemmyHttp {
606
602
  * `HTTP.GET /person`
607
603
  */
608
604
  getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
609
- /**
610
- * List the content for a person.
611
- *
612
- * `HTTP.GET /person/content`
613
- */
614
- listPersonContent(form?: ListPersonContent, options?: RequestOptions): Promise<ListPersonContentResponse>;
615
605
  /**
616
606
  * Get mentions for your user.
617
607
  *
@@ -714,12 +704,6 @@ export declare class LemmyHttp {
714
704
  * `HTTP.POST /account/auth/verify_email`
715
705
  */
716
706
  verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
717
- /**
718
- * List your saved content.
719
- *
720
- * `HTTP.GET /account/auth/saved`
721
- */
722
- listPersonSaved(form: ListPersonSaved, options?: RequestOptions): Promise<ListPersonSavedResponse>;
723
707
  /**
724
708
  * Add an admin to your site.
725
709
  *
package/dist/http.js CHANGED
@@ -629,14 +629,6 @@ class LemmyHttp {
629
629
  getPersonDetails(form = {}, options) {
630
630
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
631
631
  }
632
- /**
633
- * List the content for a person.
634
- *
635
- * `HTTP.GET /person/content`
636
- */
637
- listPersonContent(form = {}, options) {
638
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
639
- }
640
632
  /**
641
633
  * Get mentions for your user.
642
634
  *
@@ -773,14 +765,6 @@ class LemmyHttp {
773
765
  verifyEmail(form, options) {
774
766
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
775
767
  }
776
- /**
777
- * List your saved content.
778
- *
779
- * `HTTP.GET /account/auth/saved`
780
- */
781
- listPersonSaved(form, options) {
782
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/saved", form, options);
783
- }
784
768
  /**
785
769
  * Add an admin to your site.
786
770
  *
package/dist/index.d.ts CHANGED
@@ -6,24 +6,18 @@ export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
8
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
- export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
9
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
10
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
12
11
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
- export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
12
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
13
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
14
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
- export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
18
15
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
19
16
  export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
20
- export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
21
17
  export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
22
18
  export { AdminPurgePerson } from "./types/AdminPurgePerson";
23
- export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
24
19
  export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
25
20
  export { AdminPurgePost } from "./types/AdminPurgePost";
26
- export { AdminPurgePostId } from "./types/AdminPurgePostId";
27
21
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
28
22
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
29
23
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
@@ -59,9 +53,6 @@ export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
53
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
54
  export { CommunityId } from "./types/CommunityId";
61
55
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
62
- export { CommunityReport } from "./types/CommunityReport";
63
- export { CommunityReportId } from "./types/CommunityReportId";
64
- export { CommunityReportView } from "./types/CommunityReportView";
65
56
  export { CommunityResponse } from "./types/CommunityResponse";
66
57
  export { CommunitySortType } from "./types/CommunitySortType";
67
58
  export { CommunityView } from "./types/CommunityView";
@@ -163,10 +154,6 @@ export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
163
154
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
164
155
  export { ListMedia } from "./types/ListMedia";
165
156
  export { ListMediaResponse } from "./types/ListMediaResponse";
166
- export { ListPersonContent } from "./types/ListPersonContent";
167
- export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
168
- export { ListPersonSaved } from "./types/ListPersonSaved";
169
- export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
170
157
  export { ListPostLikes } from "./types/ListPostLikes";
171
158
  export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
172
159
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -197,40 +184,28 @@ export { MarkPostAsRead } from "./types/MarkPostAsRead";
197
184
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
198
185
  export { ModAdd } from "./types/ModAdd";
199
186
  export { ModAddCommunity } from "./types/ModAddCommunity";
200
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
201
187
  export { ModAddCommunityView } from "./types/ModAddCommunityView";
202
- export { ModAddId } from "./types/ModAddId";
203
188
  export { ModAddView } from "./types/ModAddView";
204
189
  export { ModBan } from "./types/ModBan";
205
190
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
206
- export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
207
191
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
208
- export { ModBanId } from "./types/ModBanId";
209
192
  export { ModBanView } from "./types/ModBanView";
210
193
  export { ModFeaturePost } from "./types/ModFeaturePost";
211
- export { ModFeaturePostId } from "./types/ModFeaturePostId";
212
194
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
213
195
  export { ModHideCommunity } from "./types/ModHideCommunity";
214
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
215
196
  export { ModHideCommunityView } from "./types/ModHideCommunityView";
216
197
  export { ModLockPost } from "./types/ModLockPost";
217
- export { ModLockPostId } from "./types/ModLockPostId";
218
198
  export { ModLockPostView } from "./types/ModLockPostView";
219
199
  export { ModRemoveComment } from "./types/ModRemoveComment";
220
- export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
221
200
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
222
201
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
223
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
224
202
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
225
203
  export { ModRemovePost } from "./types/ModRemovePost";
226
- export { ModRemovePostId } from "./types/ModRemovePostId";
227
204
  export { ModRemovePostView } from "./types/ModRemovePostView";
228
205
  export { ModTransferCommunity } from "./types/ModTransferCommunity";
229
- export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
230
206
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
231
207
  export { ModlogActionType } from "./types/ModlogActionType";
232
- export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
233
- export { ModlogCombinedView } from "./types/ModlogCombinedView";
208
+ export { ModlogListParams } from "./types/ModlogListParams";
234
209
  export { MyUserInfo } from "./types/MyUserInfo";
235
210
  export { OAuthAccount } from "./types/OAuthAccount";
236
211
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -242,15 +217,11 @@ export { PasswordReset } from "./types/PasswordReset";
242
217
  export { PendingFollow } from "./types/PendingFollow";
243
218
  export { Person } from "./types/Person";
244
219
  export { PersonAggregates } from "./types/PersonAggregates";
245
- export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
246
- export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
247
- export { PersonContentType } from "./types/PersonContentType";
248
220
  export { PersonId } from "./types/PersonId";
249
221
  export { PersonMention } from "./types/PersonMention";
250
222
  export { PersonMentionId } from "./types/PersonMentionId";
251
223
  export { PersonMentionResponse } from "./types/PersonMentionResponse";
252
224
  export { PersonMentionView } from "./types/PersonMentionView";
253
- export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
254
225
  export { PersonView } from "./types/PersonView";
255
226
  export { Post } from "./types/Post";
256
227
  export { PostAggregates } from "./types/PostAggregates";
@@ -263,7 +234,6 @@ export { PostReportResponse } from "./types/PostReportResponse";
263
234
  export { PostReportView } from "./types/PostReportView";
264
235
  export { PostResponse } from "./types/PostResponse";
265
236
  export { PostSortType } from "./types/PostSortType";
266
- export { PostTags } from "./types/PostTags";
267
237
  export { PostView } from "./types/PostView";
268
238
  export { PrivateMessage } from "./types/PrivateMessage";
269
239
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -289,6 +259,8 @@ export { RegistrationMode } from "./types/RegistrationMode";
289
259
  export { RemoveComment } from "./types/RemoveComment";
290
260
  export { RemoveCommunity } from "./types/RemoveCommunity";
291
261
  export { RemovePost } from "./types/RemovePost";
262
+ export { ReportCombined } from "./types/ReportCombined";
263
+ export { ReportCombinedId } from "./types/ReportCombinedId";
292
264
  export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
293
265
  export { ReportCombinedView } from "./types/ReportCombinedView";
294
266
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
@@ -310,8 +282,6 @@ export { SiteResponse } from "./types/SiteResponse";
310
282
  export { SiteView } from "./types/SiteView";
311
283
  export { SubscribedType } from "./types/SubscribedType";
312
284
  export { SuccessResponse } from "./types/SuccessResponse";
313
- export { Tag } from "./types/Tag";
314
- export { TagId } from "./types/TagId";
315
285
  export { Tagline } from "./types/Tagline";
316
286
  export { TaglineId } from "./types/TaglineId";
317
287
  export { TaglineResponse } from "./types/TaglineResponse";
@@ -1,11 +1,10 @@
1
- import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
2
1
  import type { InstanceId } from "./InstanceId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  export type AdminAllowInstance = {
5
- id: AdminAllowInstanceId;
4
+ id: number;
6
5
  instance_id: InstanceId;
7
6
  admin_person_id: PersonId;
8
7
  allowed: boolean;
9
8
  reason?: string;
10
- published: string;
9
+ when_: string;
11
10
  };
@@ -5,7 +5,7 @@ import type { Person } from "./Person";
5
5
  * When an admin purges a post.
6
6
  */
7
7
  export type AdminAllowInstanceView = {
8
- admin_allow_instance: AdminAllowInstance;
8
+ admin_block_instance: AdminAllowInstance;
9
9
  instance: Instance;
10
10
  admin?: Person;
11
11
  };
@@ -1,12 +1,11 @@
1
- import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
2
1
  import type { InstanceId } from "./InstanceId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  export type AdminBlockInstance = {
5
- id: AdminBlockInstanceId;
4
+ id: number;
6
5
  instance_id: InstanceId;
7
6
  admin_person_id: PersonId;
8
7
  blocked: boolean;
9
8
  reason?: string;
10
9
  expires?: string;
11
- published: string;
10
+ when_: string;
12
11
  };
@@ -1,13 +1,12 @@
1
- import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  import type { PostId } from "./PostId";
4
3
  /**
5
4
  * When an admin purges a comment.
6
5
  */
7
6
  export type AdminPurgeComment = {
8
- id: AdminPurgeCommentId;
7
+ id: number;
9
8
  admin_person_id: PersonId;
10
9
  post_id: PostId;
11
10
  reason?: string;
12
- published: string;
11
+ when_: string;
13
12
  };
@@ -1,11 +1,10 @@
1
- import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  /**
4
3
  * When an admin purges a community.
5
4
  */
6
5
  export type AdminPurgeCommunity = {
7
- id: AdminPurgeCommunityId;
6
+ id: number;
8
7
  admin_person_id: PersonId;
9
8
  reason?: string;
10
- published: string;
9
+ when_: string;
11
10
  };
@@ -1,11 +1,10 @@
1
- import type { AdminPurgePersonId } from "./AdminPurgePersonId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  /**
4
3
  * When an admin purges a person.
5
4
  */
6
5
  export type AdminPurgePerson = {
7
- id: AdminPurgePersonId;
6
+ id: number;
8
7
  admin_person_id: PersonId;
9
8
  reason?: string;
10
- published: string;
9
+ when_: string;
11
10
  };
@@ -1,13 +1,12 @@
1
- import type { AdminPurgePostId } from "./AdminPurgePostId";
2
1
  import type { CommunityId } from "./CommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When an admin purges a post.
6
5
  */
7
6
  export type AdminPurgePost = {
8
- id: AdminPurgePostId;
7
+ id: number;
9
8
  admin_person_id: PersonId;
10
9
  community_id: CommunityId;
11
10
  reason?: string;
12
- published: string;
11
+ when_: string;
13
12
  };
@@ -25,6 +25,4 @@ export type CommunityAggregates = {
25
25
  */
26
26
  users_active_half_year: number;
27
27
  subscribers_local: number;
28
- report_count: number;
29
- unresolved_report_count: number;
30
28
  };
@@ -1,6 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { LanguageId } from "./LanguageId";
3
- import type { TagId } from "./TagId";
4
3
  /**
5
4
  * Create a post.
6
5
  */
@@ -26,7 +25,6 @@ export type CreatePost = {
26
25
  * Instead of fetching a thumbnail, use a custom one.
27
26
  */
28
27
  custom_thumbnail?: string;
29
- tags?: Array<TagId>;
30
28
  /**
31
29
  * Time when this post should be scheduled. Null means publish immediately.
32
30
  */
@@ -12,6 +12,7 @@ export type CreateSite = {
12
12
  name: string;
13
13
  sidebar?: string;
14
14
  description?: string;
15
+ enable_nsfw?: boolean;
15
16
  community_creation_admin_only?: boolean;
16
17
  require_email_verification?: boolean;
17
18
  application_question?: string;
@@ -40,6 +41,7 @@ export type CreateSite = {
40
41
  rate_limit_search?: number;
41
42
  rate_limit_search_per_second?: number;
42
43
  federation_enabled?: boolean;
44
+ federation_debug?: boolean;
43
45
  captcha_enabled?: boolean;
44
46
  captcha_difficulty?: string;
45
47
  registration_mode?: RegistrationMode;
@@ -1,4 +1,3 @@
1
1
  export type DeleteImageParams = {
2
2
  filename: string;
3
- token: string;
4
3
  };
@@ -1,6 +1,5 @@
1
1
  import type { LanguageId } from "./LanguageId";
2
2
  import type { PostId } from "./PostId";
3
- import type { TagId } from "./TagId";
4
3
  /**
5
4
  * Edit a post.
6
5
  */
@@ -22,7 +21,6 @@ export type EditPost = {
22
21
  * Instead of fetching a thumbnail, use a custom one.
23
22
  */
24
23
  custom_thumbnail?: string;
25
- tags?: Array<TagId>;
26
24
  /**
27
25
  * Time when this post should be scheduled. Null means publish immediately.
28
26
  */
@@ -18,6 +18,10 @@ export type EditSite = {
18
18
  * A shorter, one line description of your site.
19
19
  */
20
20
  description?: string;
21
+ /**
22
+ * Whether to enable NSFW.
23
+ */
24
+ enable_nsfw?: boolean;
21
25
  /**
22
26
  * Limits community creation to admins only.
23
27
  */
@@ -112,6 +116,10 @@ export type EditSite = {
112
116
  * Whether to enable federation.
113
117
  */
114
118
  federation_enabled?: boolean;
119
+ /**
120
+ * Enables federation debugging.
121
+ */
122
+ federation_debug?: boolean;
115
123
  /**
116
124
  * Whether to enable captchas for signups.
117
125
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Federation related errors, these dont need to be translated.
3
3
  */
4
- export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
4
+ export type FederationError = "CouldntFindActivity" | "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
5
5
  PersonIsBannedFromSite: string;
6
6
  } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
7
7
  DomainBlocked: string;
@@ -16,6 +16,7 @@ export type GetComments = {
16
16
  community_name?: string;
17
17
  post_id?: PostId;
18
18
  parent_id?: CommentId;
19
+ saved_only?: boolean;
19
20
  liked_only?: boolean;
20
21
  disliked_only?: boolean;
21
22
  };
@@ -1,7 +1,6 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
3
  import type { ModlogActionType } from "./ModlogActionType";
4
- import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
5
4
  import type { PersonId } from "./PersonId";
6
5
  import type { PostId } from "./PostId";
7
6
  /**
@@ -10,10 +9,10 @@ import type { PostId } from "./PostId";
10
9
  export type GetModlog = {
11
10
  mod_person_id?: PersonId;
12
11
  community_id?: CommunityId;
12
+ page?: number;
13
+ limit?: number;
13
14
  type_?: ModlogActionType;
14
15
  other_person_id?: PersonId;
15
16
  post_id?: PostId;
16
17
  comment_id?: CommentId;
17
- page_cursor?: ModlogCombinedPaginationCursor;
18
- page_back?: boolean;
19
18
  };
@@ -1,7 +1,39 @@
1
- import type { ModlogCombinedView } from "./ModlogCombinedView";
1
+ import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
2
+ import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
3
+ import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
4
+ import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
5
+ import type { AdminPurgePersonView } from "./AdminPurgePersonView";
6
+ import type { AdminPurgePostView } from "./AdminPurgePostView";
7
+ import type { ModAddCommunityView } from "./ModAddCommunityView";
8
+ import type { ModAddView } from "./ModAddView";
9
+ import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
10
+ import type { ModBanView } from "./ModBanView";
11
+ import type { ModFeaturePostView } from "./ModFeaturePostView";
12
+ import type { ModHideCommunityView } from "./ModHideCommunityView";
13
+ import type { ModLockPostView } from "./ModLockPostView";
14
+ import type { ModRemoveCommentView } from "./ModRemoveCommentView";
15
+ import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
16
+ import type { ModRemovePostView } from "./ModRemovePostView";
17
+ import type { ModTransferCommunityView } from "./ModTransferCommunityView";
2
18
  /**
3
19
  * The modlog fetch response.
4
20
  */
5
21
  export type GetModlogResponse = {
6
- modlog: Array<ModlogCombinedView>;
22
+ removed_posts: Array<ModRemovePostView>;
23
+ locked_posts: Array<ModLockPostView>;
24
+ featured_posts: Array<ModFeaturePostView>;
25
+ removed_comments: Array<ModRemoveCommentView>;
26
+ removed_communities: Array<ModRemoveCommunityView>;
27
+ banned_from_community: Array<ModBanFromCommunityView>;
28
+ banned: Array<ModBanView>;
29
+ added_to_community: Array<ModAddCommunityView>;
30
+ transferred_to_community: Array<ModTransferCommunityView>;
31
+ added: Array<ModAddView>;
32
+ admin_purged_persons: Array<AdminPurgePersonView>;
33
+ admin_purged_communities: Array<AdminPurgeCommunityView>;
34
+ admin_purged_posts: Array<AdminPurgePostView>;
35
+ admin_purged_comments: Array<AdminPurgeCommentView>;
36
+ hidden_communities: Array<ModHideCommunityView>;
37
+ admin_block_instance: Array<AdminBlockInstanceView>;
38
+ admin_allow_instance: Array<AdminAllowInstanceView>;
7
39
  };
@@ -1,4 +1,6 @@
1
+ import type { CommunityId } from "./CommunityId";
1
2
  import type { PersonId } from "./PersonId";
3
+ import type { PostSortType } from "./PostSortType";
2
4
  /**
3
5
  * Gets a person's details.
4
6
  *
@@ -10,4 +12,9 @@ export type GetPersonDetails = {
10
12
  * Example: dessalines , or dessalines@xyz.tld
11
13
  */
12
14
  username?: string;
15
+ sort?: PostSortType;
16
+ page?: number;
17
+ limit?: number;
18
+ community_id?: CommunityId;
19
+ saved_only?: boolean;
13
20
  };
@@ -1,5 +1,7 @@
1
+ import type { CommentView } from "./CommentView";
1
2
  import type { CommunityModeratorView } from "./CommunityModeratorView";
2
3
  import type { PersonView } from "./PersonView";
4
+ import type { PostView } from "./PostView";
3
5
  import type { Site } from "./Site";
4
6
  /**
5
7
  * A person's details response.
@@ -7,5 +9,7 @@ import type { Site } from "./Site";
7
9
  export type GetPersonDetailsResponse = {
8
10
  person_view: PersonView;
9
11
  site?: Site;
12
+ comments: Array<CommentView>;
13
+ posts: Array<PostView>;
10
14
  moderates: Array<CommunityModeratorView>;
11
15
  };
@@ -16,7 +16,6 @@ export type GetPosts = {
16
16
  community_id?: CommunityId;
17
17
  community_name?: string;
18
18
  saved_only?: boolean;
19
- read_only?: boolean;
20
19
  liked_only?: boolean;
21
20
  disliked_only?: boolean;
22
21
  show_hidden?: boolean;
@@ -15,6 +15,14 @@ export type GetSiteResponse = {
15
15
  version: string;
16
16
  all_languages: Array<Language>;
17
17
  discussion_languages: Array<LanguageId>;
18
+ /**
19
+ * deprecated, use field `tagline` or /api/v3/tagline/list
20
+ */
21
+ taglines: Array<null>;
22
+ /**
23
+ * deprecated, use /api/v3/custom_emoji/list
24
+ */
25
+ custom_emojis: Array<null>;
18
26
  /**
19
27
  * If the site has any taglines, a random one is included here for displaying
20
28
  */
@@ -208,6 +208,8 @@ export type LemmyErrorType = {
208
208
  error: "couldnt_set_all_registrations_accepted";
209
209
  } | {
210
210
  error: "couldnt_set_all_email_verified";
211
+ } | {
212
+ error: "banned";
211
213
  } | {
212
214
  error: "blocked_url";
213
215
  } | {
@@ -2,6 +2,5 @@ import type { LocalUserId } from "./LocalUserId";
2
2
  export type LocalImage = {
3
3
  local_user_id?: LocalUserId;
4
4
  pictrs_alias: string;
5
- pictrs_delete_token: string;
6
5
  published: string;
7
6
  };
@@ -1,12 +1,11 @@
1
- import type { ModAddId } from "./ModAddId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  /**
4
3
  * When someone is added as a site moderator.
5
4
  */
6
5
  export type ModAdd = {
7
- id: ModAddId;
6
+ id: number;
8
7
  mod_person_id: PersonId;
9
8
  other_person_id: PersonId;
10
9
  removed: boolean;
11
- published: string;
10
+ when_: string;
12
11
  };
@@ -1,14 +1,13 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
- import type { ModAddCommunityId } from "./ModAddCommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When someone is added as a community moderator.
6
5
  */
7
6
  export type ModAddCommunity = {
8
- id: ModAddCommunityId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  other_person_id: PersonId;
11
10
  community_id: CommunityId;
12
11
  removed: boolean;
13
- published: string;
12
+ when_: string;
14
13
  };
@@ -8,5 +8,5 @@ export type ModAddCommunityView = {
8
8
  mod_add_community: ModAddCommunity;
9
9
  moderator?: Person;
10
10
  community: Community;
11
- other_person: Person;
11
+ modded_person: Person;
12
12
  };
@@ -6,5 +6,5 @@ import type { Person } from "./Person";
6
6
  export type ModAddView = {
7
7
  mod_add: ModAdd;
8
8
  moderator?: Person;
9
- other_person: Person;
9
+ modded_person: Person;
10
10
  };
@@ -1,14 +1,13 @@
1
- import type { ModBanId } from "./ModBanId";
2
1
  import type { PersonId } from "./PersonId";
3
2
  /**
4
3
  * When someone is banned from the site.
5
4
  */
6
5
  export type ModBan = {
7
- id: ModBanId;
6
+ id: number;
8
7
  mod_person_id: PersonId;
9
8
  other_person_id: PersonId;
10
9
  reason?: string;
11
10
  banned: boolean;
12
11
  expires?: string;
13
- published: string;
12
+ when_: string;
14
13
  };
@@ -1,16 +1,15 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
- import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
3
2
  import type { PersonId } from "./PersonId";
4
3
  /**
5
4
  * When someone is banned from a community.
6
5
  */
7
6
  export type ModBanFromCommunity = {
8
- id: ModBanFromCommunityId;
7
+ id: number;
9
8
  mod_person_id: PersonId;
10
9
  other_person_id: PersonId;
11
10
  community_id: CommunityId;
12
11
  reason?: string;
13
12
  banned: boolean;
14
13
  expires?: string;
15
- published: string;
14
+ when_: string;
16
15
  };
@@ -8,5 +8,5 @@ export type ModBanFromCommunityView = {
8
8
  mod_ban_from_community: ModBanFromCommunity;
9
9
  moderator?: Person;
10
10
  community: Community;
11
- other_person: Person;
11
+ banned_person: Person;
12
12
  };