lemmy-js-client 0.20.0-modlog-combined.1 → 0.20.0-move-community-hidden.2

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 (119) hide show
  1. package/README.md +13 -4
  2. package/dist/http.d.ts +189 -466
  3. package/dist/http.js +1109 -418
  4. package/dist/index.d.ts +20 -18
  5. package/dist/other_types.d.ts +81 -0
  6. package/dist/types/Comment.d.ts +9 -0
  7. package/dist/types/CommentReplyView.d.ts +5 -3
  8. package/dist/types/CommentReport.d.ts +1 -0
  9. package/dist/types/CommentReportView.d.ts +4 -3
  10. package/dist/types/CommentSlimView.d.ts +22 -0
  11. package/dist/types/CommentView.d.ts +5 -3
  12. package/dist/types/Community.d.ts +24 -2
  13. package/dist/types/CommunityReportView.d.ts +0 -2
  14. package/dist/types/CommunitySortType.d.ts +1 -1
  15. package/dist/types/CommunityView.d.ts +1 -2
  16. package/dist/types/CommunityVisibility.d.ts +1 -1
  17. package/dist/types/CreateCommentReport.d.ts +1 -0
  18. package/dist/types/CreatePostReport.d.ts +1 -0
  19. package/dist/types/CreateSite.d.ts +2 -0
  20. package/dist/types/DeleteImageParams.d.ts +0 -1
  21. package/dist/types/EditSite.d.ts +13 -0
  22. package/dist/types/FederationError.d.ts +1 -1
  23. package/dist/types/GetComments.d.ts +5 -0
  24. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  25. package/dist/types/GetModlog.d.ts +24 -0
  26. package/dist/types/GetPostResponse.d.ts +0 -2
  27. package/dist/types/GetPosts.d.ts +10 -0
  28. package/dist/types/GetRandomCommunity.d.ts +1 -0
  29. package/dist/types/GetSiteResponse.d.ts +2 -2
  30. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  31. package/dist/types/ImageDetails.d.ts +1 -0
  32. package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
  33. package/dist/types/InboxCombinedView.d.ts +13 -0
  34. package/dist/types/InboxDataType.d.ts +4 -0
  35. package/dist/types/LemmyErrorType.d.ts +1 -1
  36. package/dist/types/ListCommunities.d.ts +5 -0
  37. package/dist/types/ListInbox.d.ts +11 -0
  38. package/dist/types/ListInboxResponse.d.ts +7 -0
  39. package/dist/types/ListReports.d.ts +18 -0
  40. package/dist/types/LocalImage.d.ts +0 -1
  41. package/dist/types/LocalSite.d.ts +33 -0
  42. package/dist/types/LocalUser.d.ts +17 -0
  43. package/dist/types/LocalUserView.d.ts +0 -4
  44. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  45. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  46. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  47. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  48. package/dist/types/ModChangeCommunityVisibilityId.js +3 -0
  49. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  50. package/dist/types/Person.d.ts +4 -2
  51. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  52. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  53. package/dist/types/PersonCommentMentionId.js +3 -0
  54. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +9 -7
  55. package/dist/types/PersonContentType.d.ts +1 -1
  56. package/dist/types/PersonPostMention.d.ts +13 -0
  57. package/dist/types/PersonPostMentionId.d.ts +4 -0
  58. package/dist/types/PersonPostMentionId.js +3 -0
  59. package/dist/types/PersonPostMentionView.d.ts +34 -0
  60. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  61. package/dist/types/PersonView.d.ts +0 -2
  62. package/dist/types/Post.d.ts +10 -0
  63. package/dist/types/PostPaginationCursor.d.ts +7 -0
  64. package/dist/types/PostPaginationCursor.js +3 -0
  65. package/dist/types/PostReport.d.ts +1 -0
  66. package/dist/types/PostReportView.d.ts +4 -3
  67. package/dist/types/PostSortType.d.ts +1 -1
  68. package/dist/types/PostView.d.ts +5 -3
  69. package/dist/types/PrivateMessage.d.ts +1 -0
  70. package/dist/types/ReportType.d.ts +4 -0
  71. package/dist/types/ReportType.js +3 -0
  72. package/dist/types/ResendVerificationEmail.d.ts +7 -0
  73. package/dist/types/SaveUserSettings.d.ts +8 -0
  74. package/dist/types/Search.d.ts +12 -6
  75. package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
  76. package/dist/types/SearchCombinedPaginationCursor.js +3 -0
  77. package/dist/types/SearchCombinedView.d.ts +13 -0
  78. package/dist/types/SearchResponse.d.ts +2 -10
  79. package/dist/types/SearchSortType.d.ts +4 -0
  80. package/dist/types/SearchSortType.js +3 -0
  81. package/dist/types/Site.d.ts +2 -2
  82. package/dist/types/SiteView.d.ts +0 -2
  83. package/dist/types/SuccessResponse.d.ts +1 -1
  84. package/dist/types/UploadImageResponse.d.ts +0 -1
  85. package/package.json +9 -4
  86. package/dist/types/CommentAggregates.d.ts +0 -17
  87. package/dist/types/CommentReplyResponse.d.ts +0 -7
  88. package/dist/types/CommunityAggregates.d.ts +0 -30
  89. package/dist/types/GetPersonMentions.d.ts +0 -10
  90. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  91. package/dist/types/GetPrivateMessages.d.ts +0 -10
  92. package/dist/types/GetReplies.d.ts +0 -10
  93. package/dist/types/GetRepliesResponse.d.ts +0 -7
  94. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  95. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  96. package/dist/types/PersonAggregates.d.ts +0 -9
  97. package/dist/types/PersonMentionId.d.ts +0 -4
  98. package/dist/types/PersonMentionResponse.d.ts +0 -7
  99. package/dist/types/PostAggregates.d.ts +0 -18
  100. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  101. package/dist/types/SiteAggregates.d.ts +0 -27
  102. /package/dist/types/{CommentAggregates.js → CommentSlimView.js} +0 -0
  103. /package/dist/types/{CommentReplyResponse.js → GetCommentsSlimResponse.js} +0 -0
  104. /package/dist/types/{LocalUserVoteDisplayMode.js → InboxCombinedPaginationCursor.js} +0 -0
  105. /package/dist/types/{CommunityAggregates.js → InboxCombinedView.js} +0 -0
  106. /package/dist/types/{PersonMentionId.js → InboxDataType.js} +0 -0
  107. /package/dist/types/{GetPersonMentions.js → ListInbox.js} +0 -0
  108. /package/dist/types/{GetPersonMentionsResponse.js → ListInboxResponse.js} +0 -0
  109. /package/dist/types/{GetPrivateMessages.js → MarkPersonCommentMentionAsRead.js} +0 -0
  110. /package/dist/types/{GetReplies.js → MarkPersonPostMentionAsRead.js} +0 -0
  111. /package/dist/types/{GetRepliesResponse.js → ModChangeCommunityVisibility.js} +0 -0
  112. /package/dist/types/{MarkPersonMentionAsRead.js → ModChangeCommunityVisibilityView.js} +0 -0
  113. /package/dist/types/{PersonAggregates.js → PersonCommentMention.js} +0 -0
  114. /package/dist/types/{PersonMention.js → PersonCommentMentionView.js} +0 -0
  115. /package/dist/types/{PersonMentionResponse.js → PersonPostMention.js} +0 -0
  116. /package/dist/types/{PersonMentionView.js → PersonPostMentionView.js} +0 -0
  117. /package/dist/types/{PostAggregates.js → PersonSavedCombinedView.js} +0 -0
  118. /package/dist/types/{PrivateMessagesResponse.js → ResendVerificationEmail.js} +0 -0
  119. /package/dist/types/{SiteAggregates.js → SearchCombinedView.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -40,21 +40,19 @@ export { BlockPersonResponse } from "./types/BlockPersonResponse";
40
40
  export { CaptchaResponse } from "./types/CaptchaResponse";
41
41
  export { ChangePassword } from "./types/ChangePassword";
42
42
  export { Comment } from "./types/Comment";
43
- export { CommentAggregates } from "./types/CommentAggregates";
44
43
  export { CommentId } from "./types/CommentId";
45
44
  export { CommentReply } from "./types/CommentReply";
46
45
  export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyResponse } from "./types/CommentReplyResponse";
48
46
  export { CommentReplyView } from "./types/CommentReplyView";
49
47
  export { CommentReport } from "./types/CommentReport";
50
48
  export { CommentReportId } from "./types/CommentReportId";
51
49
  export { CommentReportResponse } from "./types/CommentReportResponse";
52
50
  export { CommentReportView } from "./types/CommentReportView";
53
51
  export { CommentResponse } from "./types/CommentResponse";
52
+ export { CommentSlimView } from "./types/CommentSlimView";
54
53
  export { CommentSortType } from "./types/CommentSortType";
55
54
  export { CommentView } from "./types/CommentView";
56
55
  export { Community } from "./types/Community";
57
- export { CommunityAggregates } from "./types/CommunityAggregates";
58
56
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
57
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
58
  export { CommunityId } from "./types/CommunityId";
@@ -113,6 +111,7 @@ export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
113
111
  export { GetComment } from "./types/GetComment";
114
112
  export { GetComments } from "./types/GetComments";
115
113
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
114
+ export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
116
115
  export { GetCommunity } from "./types/GetCommunity";
117
116
  export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
118
117
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
@@ -122,17 +121,12 @@ export { GetModlog } from "./types/GetModlog";
122
121
  export { GetModlogResponse } from "./types/GetModlogResponse";
123
122
  export { GetPersonDetails } from "./types/GetPersonDetails";
124
123
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
125
- export { GetPersonMentions } from "./types/GetPersonMentions";
126
- export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
127
124
  export { GetPost } from "./types/GetPost";
128
125
  export { GetPostResponse } from "./types/GetPostResponse";
129
126
  export { GetPosts } from "./types/GetPosts";
130
127
  export { GetPostsResponse } from "./types/GetPostsResponse";
131
- export { GetPrivateMessages } from "./types/GetPrivateMessages";
132
128
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
133
129
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
134
- export { GetReplies } from "./types/GetReplies";
135
- export { GetRepliesResponse } from "./types/GetRepliesResponse";
136
130
  export { GetReportCount } from "./types/GetReportCount";
137
131
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
138
132
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -145,6 +139,9 @@ export { HidePost } from "./types/HidePost";
145
139
  export { ImageDetails } from "./types/ImageDetails";
146
140
  export { ImageGetParams } from "./types/ImageGetParams";
147
141
  export { ImageProxyParams } from "./types/ImageProxyParams";
142
+ export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
143
+ export { InboxCombinedView } from "./types/InboxCombinedView";
144
+ export { InboxDataType } from "./types/InboxDataType";
148
145
  export { Instance } from "./types/Instance";
149
146
  export { InstanceId } from "./types/InstanceId";
150
147
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
@@ -160,6 +157,8 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
160
157
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
161
158
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
162
159
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
160
+ export { ListInbox } from "./types/ListInbox";
161
+ export { ListInboxResponse } from "./types/ListInboxResponse";
163
162
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
164
163
  export { ListMedia } from "./types/ListMedia";
165
164
  export { ListMediaResponse } from "./types/ListMediaResponse";
@@ -185,14 +184,14 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
185
184
  export { LocalUser } from "./types/LocalUser";
186
185
  export { LocalUserId } from "./types/LocalUserId";
187
186
  export { LocalUserView } from "./types/LocalUserView";
188
- export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
189
187
  export { LockPost } from "./types/LockPost";
190
188
  export { Login } from "./types/Login";
191
189
  export { LoginResponse } from "./types/LoginResponse";
192
190
  export { LoginToken } from "./types/LoginToken";
193
191
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
194
192
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
195
- export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
193
+ export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
194
+ export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
196
195
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
197
196
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
198
197
  export { ModAdd } from "./types/ModAdd";
@@ -241,19 +240,19 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
241
240
  export { PasswordReset } from "./types/PasswordReset";
242
241
  export { PendingFollow } from "./types/PendingFollow";
243
242
  export { Person } from "./types/Person";
244
- export { PersonAggregates } from "./types/PersonAggregates";
243
+ export { PersonCommentMention } from "./types/PersonCommentMention";
244
+ export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
245
+ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
245
246
  export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
246
247
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
247
248
  export { PersonContentType } from "./types/PersonContentType";
248
249
  export { PersonId } from "./types/PersonId";
249
- export { PersonMention } from "./types/PersonMention";
250
- export { PersonMentionId } from "./types/PersonMentionId";
251
- export { PersonMentionResponse } from "./types/PersonMentionResponse";
252
- export { PersonMentionView } from "./types/PersonMentionView";
250
+ export { PersonPostMention } from "./types/PersonPostMention";
251
+ export { PersonPostMentionId } from "./types/PersonPostMentionId";
252
+ export { PersonPostMentionView } from "./types/PersonPostMentionView";
253
253
  export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
254
254
  export { PersonView } from "./types/PersonView";
255
255
  export { Post } from "./types/Post";
256
- export { PostAggregates } from "./types/PostAggregates";
257
256
  export { PostFeatureType } from "./types/PostFeatureType";
258
257
  export { PostId } from "./types/PostId";
259
258
  export { PostListingMode } from "./types/PostListingMode";
@@ -273,7 +272,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
273
272
  export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
274
273
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
275
274
  export { PrivateMessageView } from "./types/PrivateMessageView";
276
- export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
277
275
  export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
278
276
  export { PurgeComment } from "./types/PurgeComment";
279
277
  export { PurgeCommunity } from "./types/PurgeCommunity";
@@ -291,6 +289,8 @@ export { RemoveCommunity } from "./types/RemoveCommunity";
291
289
  export { RemovePost } from "./types/RemovePost";
292
290
  export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
293
291
  export { ReportCombinedView } from "./types/ReportCombinedView";
292
+ export { ReportType } from "./types/ReportType";
293
+ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
294
294
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
295
295
  export { ResolveObject } from "./types/ResolveObject";
296
296
  export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
@@ -300,11 +300,13 @@ export { SaveComment } from "./types/SaveComment";
300
300
  export { SavePost } from "./types/SavePost";
301
301
  export { SaveUserSettings } from "./types/SaveUserSettings";
302
302
  export { Search } from "./types/Search";
303
+ export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
304
+ export { SearchCombinedView } from "./types/SearchCombinedView";
303
305
  export { SearchResponse } from "./types/SearchResponse";
306
+ export { SearchSortType } from "./types/SearchSortType";
304
307
  export { SearchType } from "./types/SearchType";
305
308
  export { SensitiveString } from "./types/SensitiveString";
306
309
  export { Site } from "./types/Site";
307
- export { SiteAggregates } from "./types/SiteAggregates";
308
310
  export { SiteId } from "./types/SiteId";
309
311
  export { SiteResponse } from "./types/SiteResponse";
310
312
  export { SiteView } from "./types/SiteView";
@@ -1,4 +1,85 @@
1
+ import { DeleteImageParams } from "./types/DeleteImageParams";
2
+ import { GetComment } from "./types/GetComment";
3
+ import { GetComments } from "./types/GetComments";
4
+ import { GetCommunity } from "./types/GetCommunity";
5
+ import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
+ import { GetModlog } from "./types/GetModlog";
7
+ import { GetPersonDetails } from "./types/GetPersonDetails";
8
+ import { GetPost } from "./types/GetPost";
9
+ import { GetPosts } from "./types/GetPosts";
10
+ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
+ import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
+ import { GetReportCount } from "./types/GetReportCount";
13
+ import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
+ import { ListCommentLikes } from "./types/ListCommentLikes";
15
+ import { ListCommunities } from "./types/ListCommunities";
16
+ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
17
+ import { ListCustomEmojis } from "./types/ListCustomEmojis";
18
+ import { ListInbox } from "./types/ListInbox";
19
+ import { ListMedia } from "./types/ListMedia";
20
+ import { ListPersonContent } from "./types/ListPersonContent";
21
+ import { ListPersonSaved } from "./types/ListPersonSaved";
22
+ import { ListPostLikes } from "./types/ListPostLikes";
23
+ import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
24
+ import { ListReports } from "./types/ListReports";
25
+ import { ListTaglines } from "./types/ListTaglines";
26
+ import { ResolveObject } from "./types/ResolveObject";
27
+ import { Search } from "./types/Search";
1
28
  export declare const VERSION = "v4";
2
29
  export interface UploadImage {
3
30
  image: File | Buffer;
4
31
  }
32
+ export interface ListMediaI extends ListMedia {
33
+ }
34
+ export interface GetModlogI extends GetModlog {
35
+ }
36
+ export interface SearchI extends Search {
37
+ }
38
+ export interface ResolveObjectI extends ResolveObject {
39
+ }
40
+ export interface GetCommunityI extends GetCommunity {
41
+ }
42
+ export interface ListCommunitiesI extends ListCommunities {
43
+ }
44
+ export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
45
+ }
46
+ export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
47
+ }
48
+ export interface GetRandomCommunityI extends GetRandomCommunity {
49
+ }
50
+ export interface GetPostI extends GetPost {
51
+ }
52
+ export interface GetPostsI extends GetPosts {
53
+ }
54
+ export interface ListPostLikesI extends ListPostLikes {
55
+ }
56
+ export interface GetSiteMetadataI extends GetSiteMetadata {
57
+ }
58
+ export interface ListCommentLikesI extends ListCommentLikes {
59
+ }
60
+ export interface GetCommentsI extends GetComments {
61
+ }
62
+ export interface GetCommentI extends GetComment {
63
+ }
64
+ export interface GetPersonDetailsI extends GetPersonDetails {
65
+ }
66
+ export interface ListPersonContentI extends ListPersonContent {
67
+ }
68
+ export interface GetReportCountI extends GetReportCount {
69
+ }
70
+ export interface ListInboxI extends ListInbox {
71
+ }
72
+ export interface ListPersonSavedI extends ListPersonSaved {
73
+ }
74
+ export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
75
+ }
76
+ export interface GetRegistrationApplicationI extends GetRegistrationApplication {
77
+ }
78
+ export interface ListCustomEmojisI extends ListCustomEmojis {
79
+ }
80
+ export interface ListTaglinesI extends ListTaglines {
81
+ }
82
+ export interface ListReportsI extends ListReports {
83
+ }
84
+ export interface DeleteImageParamsI extends DeleteImageParams {
85
+ }
@@ -39,4 +39,13 @@ export type Comment = {
39
39
  */
40
40
  distinguished: boolean;
41
41
  language_id: LanguageId;
42
+ score: number;
43
+ upvotes: number;
44
+ downvotes: number;
45
+ /**
46
+ * The total number of children in this comment branch.
47
+ */
48
+ child_count: number;
49
+ report_count: number;
50
+ unresolved_report_count: number;
42
51
  };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { CommentReply } from "./CommentReply";
4
3
  import type { Community } from "./Community";
5
4
  import type { Person } from "./Person";
@@ -15,13 +14,16 @@ export type CommentReplyView = {
15
14
  post: Post;
16
15
  community: Community;
17
16
  recipient: Person;
18
- counts: CommentAggregates;
19
17
  creator_banned_from_community: boolean;
20
18
  banned_from_community: boolean;
21
19
  creator_is_moderator: boolean;
22
20
  creator_is_admin: boolean;
23
21
  subscribed: SubscribedType;
24
- saved: boolean;
22
+ /**
23
+ * The time when the comment was saved.
24
+ */
25
+ saved?: string;
25
26
  creator_blocked: boolean;
26
27
  my_vote?: number;
28
+ can_mod: boolean;
27
29
  };
@@ -14,4 +14,5 @@ export type CommentReport = {
14
14
  resolver_id?: PersonId;
15
15
  published: string;
16
16
  updated?: string;
17
+ violates_instance_rules: boolean;
17
18
  };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { CommentReport } from "./CommentReport";
4
3
  import type { Community } from "./Community";
5
4
  import type { Person } from "./Person";
@@ -15,13 +14,15 @@ export type CommentReportView = {
15
14
  community: Community;
16
15
  creator: Person;
17
16
  comment_creator: Person;
18
- counts: CommentAggregates;
19
17
  creator_banned_from_community: boolean;
20
18
  creator_is_moderator: boolean;
21
19
  creator_is_admin: boolean;
22
20
  creator_blocked: boolean;
23
21
  subscribed: SubscribedType;
24
- saved: boolean;
22
+ /**
23
+ * The time when the comment was saved.
24
+ */
25
+ saved?: string;
25
26
  my_vote?: number;
26
27
  resolver?: Person;
27
28
  };
@@ -0,0 +1,22 @@
1
+ import type { Comment } from "./Comment";
2
+ import type { Person } from "./Person";
3
+ import type { SubscribedType } from "./SubscribedType";
4
+ /**
5
+ * A slimmer comment view, without the post, or community.
6
+ */
7
+ export type CommentSlimView = {
8
+ comment: Comment;
9
+ creator: Person;
10
+ creator_banned_from_community: boolean;
11
+ banned_from_community: boolean;
12
+ creator_is_moderator: boolean;
13
+ creator_is_admin: boolean;
14
+ subscribed: SubscribedType;
15
+ /**
16
+ * The time when the comment was saved.
17
+ */
18
+ saved?: string;
19
+ creator_blocked: boolean;
20
+ my_vote?: number;
21
+ can_mod: boolean;
22
+ };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { Community } from "./Community";
4
3
  import type { Person } from "./Person";
5
4
  import type { Post } from "./Post";
@@ -12,13 +11,16 @@ export type CommentView = {
12
11
  creator: Person;
13
12
  post: Post;
14
13
  community: Community;
15
- counts: CommentAggregates;
16
14
  creator_banned_from_community: boolean;
17
15
  banned_from_community: boolean;
18
16
  creator_is_moderator: boolean;
19
17
  creator_is_admin: boolean;
20
18
  subscribed: SubscribedType;
21
- saved: boolean;
19
+ /**
20
+ * The time when the comment was saved.
21
+ */
22
+ saved?: string;
22
23
  creator_blocked: boolean;
23
24
  my_vote?: number;
25
+ can_mod: boolean;
24
26
  };
@@ -31,9 +31,9 @@ export type Community = {
31
31
  */
32
32
  nsfw: boolean;
33
33
  /**
34
- * The federated actor_id.
34
+ * The federated ap_id.
35
35
  */
36
- actor_id: DbUrl;
36
+ ap_id: DbUrl;
37
37
  /**
38
38
  * Whether the community is local.
39
39
  */
@@ -60,4 +60,26 @@ export type Community = {
60
60
  * A shorter, one-line description of the site.
61
61
  */
62
62
  description?: string;
63
+ subscribers: number;
64
+ posts: number;
65
+ comments: number;
66
+ /**
67
+ * The number of users with any activity in the last day.
68
+ */
69
+ users_active_day: number;
70
+ /**
71
+ * The number of users with any activity in the last week.
72
+ */
73
+ users_active_week: number;
74
+ /**
75
+ * The number of users with any activity in the last month.
76
+ */
77
+ users_active_month: number;
78
+ /**
79
+ * The number of users with any activity in the last year.
80
+ */
81
+ users_active_half_year: number;
82
+ subscribers_local: number;
83
+ report_count: number;
84
+ unresolved_report_count: number;
63
85
  };
@@ -1,5 +1,4 @@
1
1
  import type { Community } from "./Community";
2
- import type { CommunityAggregates } from "./CommunityAggregates";
3
2
  import type { CommunityReport } from "./CommunityReport";
4
3
  import type { Person } from "./Person";
5
4
  import type { SubscribedType } from "./SubscribedType";
@@ -10,7 +9,6 @@ export type CommunityReportView = {
10
9
  community_report: CommunityReport;
11
10
  community: Community;
12
11
  creator: Person;
13
- counts: CommunityAggregates;
14
12
  subscribed: SubscribedType;
15
13
  resolver?: Person;
16
14
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommunitySortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled" | "NameAsc" | "NameDesc";
4
+ export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
@@ -1,5 +1,4 @@
1
1
  import type { Community } from "./Community";
2
- import type { CommunityAggregates } from "./CommunityAggregates";
3
2
  import type { SubscribedType } from "./SubscribedType";
4
3
  /**
5
4
  * A community view.
@@ -8,6 +7,6 @@ export type CommunityView = {
8
7
  community: Community;
9
8
  subscribed: SubscribedType;
10
9
  blocked: boolean;
11
- counts: CommunityAggregates;
12
10
  banned_from_community: boolean;
11
+ can_mod: boolean;
13
12
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Defines who can browse and interact with content in a community.
3
3
  */
4
- export type CommunityVisibility = "Public" | "LocalOnly" | "Private";
4
+ export type CommunityVisibility = "Public" | "Hidden" | "LocalOnlyPublic" | "LocalOnlyPrivate" | "Private";
@@ -5,4 +5,5 @@ import type { CommentId } from "./CommentId";
5
5
  export type CreateCommentReport = {
6
6
  comment_id: CommentId;
7
7
  reason: string;
8
+ violates_instance_rules?: boolean;
8
9
  };
@@ -5,4 +5,5 @@ import type { PostId } from "./PostId";
5
5
  export type CreatePostReport = {
6
6
  post_id: PostId;
7
7
  reason: string;
8
+ violates_instance_rules?: boolean;
8
9
  };
@@ -20,6 +20,7 @@ export type CreateSite = {
20
20
  default_post_listing_type?: ListingType;
21
21
  default_post_listing_mode?: PostListingMode;
22
22
  default_post_sort_type?: PostSortType;
23
+ default_post_time_range_seconds?: number;
23
24
  default_comment_sort_type?: CommentSortType;
24
25
  legal_information?: string;
25
26
  application_email_admins?: boolean;
@@ -49,4 +50,5 @@ export type CreateSite = {
49
50
  post_downvotes?: FederationMode;
50
51
  comment_upvotes?: FederationMode;
51
52
  comment_downvotes?: FederationMode;
53
+ disable_donation_dialog?: boolean;
52
54
  };
@@ -1,4 +1,3 @@
1
1
  export type DeleteImageParams = {
2
2
  filename: string;
3
- token: string;
4
3
  };
@@ -50,6 +50,10 @@ export type EditSite = {
50
50
  * The default post sort, usually "active"
51
51
  */
52
52
  default_post_sort_type?: PostSortType;
53
+ /**
54
+ * A default time range limit to apply to post sorts, in seconds. 0 means none.
55
+ */
56
+ default_post_time_range_seconds?: number;
53
57
  /**
54
58
  * The default comment sort, usually "hot"
55
59
  */
@@ -154,4 +158,13 @@ export type EditSite = {
154
158
  * What kind of comment downvotes your site allows.
155
159
  */
156
160
  comment_downvotes?: FederationMode;
161
+ /**
162
+ * If this is true, users will never see the dialog asking to support Lemmy development with
163
+ * donations.
164
+ */
165
+ disable_donation_dialog?: boolean;
166
+ /**
167
+ * Block NSFW content being created
168
+ */
169
+ disallow_nsfw_content?: boolean;
157
170
  };
@@ -7,4 +7,4 @@ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInD
7
7
  DomainBlocked: string;
8
8
  } | {
9
9
  DomainNotInAllowList: string;
10
- } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "Unreachable";
10
+ } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
@@ -9,6 +9,11 @@ import type { PostId } from "./PostId";
9
9
  export type GetComments = {
10
10
  type_?: ListingType;
11
11
  sort?: CommentSortType;
12
+ /**
13
+ * Filter to within a given time range, in seconds.
14
+ * IE 60 would give results for the past minute.
15
+ */
16
+ time_range_seconds?: number;
12
17
  max_depth?: number;
13
18
  page?: number;
14
19
  limit?: number;
@@ -0,0 +1,7 @@
1
+ import type { CommentSlimView } from "./CommentSlimView";
2
+ /**
3
+ * A slimmer comment list response, without the post or community.
4
+ */
5
+ export type GetCommentsSlimResponse = {
6
+ comments: Array<CommentSlimView>;
7
+ };
@@ -1,5 +1,6 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
+ import type { ListingType } from "./ListingType";
3
4
  import type { ModlogActionType } from "./ModlogActionType";
4
5
  import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
5
6
  import type { PersonId } from "./PersonId";
@@ -8,11 +9,34 @@ import type { PostId } from "./PostId";
8
9
  * Fetches the modlog.
9
10
  */
10
11
  export type GetModlog = {
12
+ /**
13
+ * Filter by the moderator.
14
+ */
11
15
  mod_person_id?: PersonId;
16
+ /**
17
+ * Filter by the community.
18
+ */
12
19
  community_id?: CommunityId;
20
+ /**
21
+ * Filter by the modlog action type.
22
+ */
13
23
  type_?: ModlogActionType;
24
+ /**
25
+ * Filter by listing type. When not using All, it will remove the non-community modlog entries,
26
+ * such as site bans, instance blocks, adding an admin, etc.
27
+ */
28
+ listing_type?: ListingType;
29
+ /**
30
+ * Filter by the other / modded person.
31
+ */
14
32
  other_person_id?: PersonId;
33
+ /**
34
+ * Filter by post. Will include comments of that post.
35
+ */
15
36
  post_id?: PostId;
37
+ /**
38
+ * Filter by comment.
39
+ */
16
40
  comment_id?: CommentId;
17
41
  page_cursor?: ModlogCombinedPaginationCursor;
18
42
  page_back?: boolean;
@@ -1,4 +1,3 @@
1
- import type { CommunityModeratorView } from "./CommunityModeratorView";
2
1
  import type { CommunityView } from "./CommunityView";
3
2
  import type { PostView } from "./PostView";
4
3
  /**
@@ -7,7 +6,6 @@ import type { PostView } from "./PostView";
7
6
  export type GetPostResponse = {
8
7
  post_view: PostView;
9
8
  community_view: CommunityView;
10
- moderators: Array<CommunityModeratorView>;
11
9
  /**
12
10
  * A list of cross-posts, or other times / communities this link has been posted to.
13
11
  */
@@ -8,6 +8,12 @@ import type { PostSortType } from "./PostSortType";
8
8
  export type GetPosts = {
9
9
  type_?: ListingType;
10
10
  sort?: PostSortType;
11
+ /**
12
+ * Filter to within a given time range, in seconds.
13
+ * IE 60 would give results for the past minute.
14
+ * Use Zero to override the local_site and local_user time_range.
15
+ */
16
+ time_range_seconds?: number;
11
17
  /**
12
18
  * DEPRECATED, use page_cursor
13
19
  */
@@ -28,6 +34,10 @@ export type GetPosts = {
28
34
  * If true, then show the nsfw posts (even if your user setting is to hide them)
29
35
  */
30
36
  show_nsfw?: boolean;
37
+ /**
38
+ * If false, then show posts with media attached (even if your user setting is to hide them)
39
+ */
40
+ hide_media?: boolean;
31
41
  /**
32
42
  * Whether to automatically mark fetched posts as read.
33
43
  */
@@ -4,4 +4,5 @@ import type { ListingType } from "./ListingType";
4
4
  */
5
5
  export type GetRandomCommunity = {
6
6
  type_?: ListingType;
7
+ show_nsfw?: boolean;
7
8
  };
@@ -22,8 +22,8 @@ export type GetSiteResponse = {
22
22
  /**
23
23
  * A list of external auth methods your site supports.
24
24
  */
25
- oauth_providers?: Array<PublicOAuthProvider>;
26
- admin_oauth_providers?: Array<OAuthProvider>;
25
+ oauth_providers: Array<PublicOAuthProvider>;
26
+ admin_oauth_providers: Array<OAuthProvider>;
27
27
  blocked_urls: Array<LocalSiteUrlBlocklist>;
28
28
  image_upload_disabled: boolean;
29
29
  };
@@ -1,8 +1,6 @@
1
1
  /**
2
- * A response containing counts for your notifications.
2
+ * A response containing a count of unread notifications.
3
3
  */
4
4
  export type GetUnreadCountResponse = {
5
- replies: number;
6
- mentions: number;
7
- private_messages: number;
5
+ count: number;
8
6
  };
@@ -4,4 +4,5 @@ export type ImageDetails = {
4
4
  width: number;
5
5
  height: number;
6
6
  content_type: string;
7
+ blurhash?: string;
7
8
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * like PaginationCursor but for the report_combined table
3
+ */
4
+ export type InboxCombinedPaginationCursor = string;