lemmy-js-client 1.0.0-action-structs.0 → 1.0.0-add-liked.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.
- package/dist/http.d.ts +78 -26
- package/dist/http.js +1001 -892
- package/dist/index.d.ts +23 -6
- package/dist/other_types.d.ts +15 -0
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/Comment.d.ts +5 -0
- package/dist/types/CommentActions.d.ts +9 -4
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReplyView.d.ts +5 -0
- package/dist/types/CommentSlimView.d.ts +5 -0
- package/dist/types/CommentView.d.ts +5 -0
- package/dist/types/Community.d.ts +1 -4
- package/dist/types/CommunityActions.d.ts +18 -5
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportResponse.js +2 -0
- package/dist/types/CommunityView.d.ts +2 -0
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityReport.js +2 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateCommunityTag.js +2 -0
- package/dist/types/CreateSite.d.ts +1 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/DeleteCommunityTag.js +2 -0
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -9
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetPosts.d.ts +3 -11
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/Instance.d.ts +11 -1
- package/dist/types/InstanceActions.d.ts +11 -4
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +9 -0
- package/dist/types/LemmyErrorType.d.ts +91 -24
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/ListPersonHidden.d.ts +9 -0
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/LocalImage.d.ts +7 -2
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +6 -11
- package/dist/types/LocalUser.d.ts +2 -1
- package/dist/types/LocalUserView.d.ts +2 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModLockPost.d.ts +1 -0
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +3 -3
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +0 -8
- package/dist/types/PersonActions.d.ts +3 -5
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonCommentMentionView.d.ts +3 -0
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonPostMentionView.d.ts +5 -0
- package/dist/types/PersonView.d.ts +4 -0
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +5 -0
- package/dist/types/PostActions.d.ts +22 -4
- package/dist/types/PostActions.js +1 -0
- package/dist/types/PostView.d.ts +5 -0
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +3 -1
- package/dist/types/Search.d.ts +5 -0
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/Site.d.ts +2 -1
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/SiteView.d.ts +2 -0
- package/dist/types/Tag.d.ts +8 -6
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +8 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/package.json +8 -5
- package/dist/types/BannedPersonsResponse.d.ts +0 -7
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/SubscribedType.d.ts +0 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{ModHideCommunityId.js → LikeType.js} +0 -0
- /package/dist/types/{PostPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{SubscribedType.js → PluginMetadata.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,8 @@ export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
13
|
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
14
14
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
15
15
|
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
16
|
+
export { AdminListUsers } from "./types/AdminListUsers";
|
17
|
+
export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
16
18
|
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
17
19
|
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
18
20
|
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
@@ -32,7 +34,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
32
34
|
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
33
35
|
export { BanPerson } from "./types/BanPerson";
|
34
36
|
export { BanPersonResponse } from "./types/BanPersonResponse";
|
35
|
-
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
36
37
|
export { BlockCommunity } from "./types/BlockCommunity";
|
37
38
|
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
38
39
|
export { BlockPerson } from "./types/BlockPerson";
|
@@ -58,9 +59,11 @@ export { CommunityActions } from "./types/CommunityActions";
|
|
58
59
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
59
60
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
61
|
export { CommunityId } from "./types/CommunityId";
|
62
|
+
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
61
63
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
62
64
|
export { CommunityReport } from "./types/CommunityReport";
|
63
65
|
export { CommunityReportId } from "./types/CommunityReportId";
|
66
|
+
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
64
67
|
export { CommunityReportView } from "./types/CommunityReportView";
|
65
68
|
export { CommunityResponse } from "./types/CommunityResponse";
|
66
69
|
export { CommunitySortType } from "./types/CommunitySortType";
|
@@ -70,6 +73,8 @@ export { CreateComment } from "./types/CreateComment";
|
|
70
73
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
71
74
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
72
75
|
export { CreateCommunity } from "./types/CreateCommunity";
|
76
|
+
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
|
+
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
73
78
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
74
79
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
75
80
|
export { CreatePost } from "./types/CreatePost";
|
@@ -88,6 +93,7 @@ export { DbUrl } from "./types/DbUrl";
|
|
88
93
|
export { DeleteAccount } from "./types/DeleteAccount";
|
89
94
|
export { DeleteComment } from "./types/DeleteComment";
|
90
95
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
96
|
+
export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
91
97
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
92
98
|
export { DeleteImageParams } from "./types/DeleteImageParams";
|
93
99
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
@@ -150,6 +156,7 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
150
156
|
export { Language } from "./types/Language";
|
151
157
|
export { LanguageId } from "./types/LanguageId";
|
152
158
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
159
|
+
export { LikeType } from "./types/LikeType";
|
153
160
|
export { LinkMetadata } from "./types/LinkMetadata";
|
154
161
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
155
162
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
@@ -166,6 +173,12 @@ export { ListMedia } from "./types/ListMedia";
|
|
166
173
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
167
174
|
export { ListPersonContent } from "./types/ListPersonContent";
|
168
175
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
176
|
+
export { ListPersonHidden } from "./types/ListPersonHidden";
|
177
|
+
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
178
|
+
export { ListPersonLiked } from "./types/ListPersonLiked";
|
179
|
+
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
180
|
+
export { ListPersonRead } from "./types/ListPersonRead";
|
181
|
+
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
169
182
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
170
183
|
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
171
184
|
export { ListPostLikes } from "./types/ListPostLikes";
|
@@ -208,12 +221,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
208
221
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
209
222
|
export { ModBanId } from "./types/ModBanId";
|
210
223
|
export { ModBanView } from "./types/ModBanView";
|
224
|
+
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
225
|
+
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
226
|
+
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
211
227
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
212
228
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
213
229
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
214
|
-
export { ModHideCommunity } from "./types/ModHideCommunity";
|
215
|
-
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
216
|
-
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
217
230
|
export { ModLockPost } from "./types/ModLockPost";
|
218
231
|
export { ModLockPostId } from "./types/ModLockPostId";
|
219
232
|
export { ModLockPostView } from "./types/ModLockPostView";
|
@@ -248,17 +261,18 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
|
248
261
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
249
262
|
export { PersonContentType } from "./types/PersonContentType";
|
250
263
|
export { PersonId } from "./types/PersonId";
|
264
|
+
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
251
265
|
export { PersonPostMention } from "./types/PersonPostMention";
|
252
266
|
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
253
267
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
254
268
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
255
269
|
export { PersonView } from "./types/PersonView";
|
270
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
256
271
|
export { Post } from "./types/Post";
|
257
272
|
export { PostActions } from "./types/PostActions";
|
258
273
|
export { PostFeatureType } from "./types/PostFeatureType";
|
259
274
|
export { PostId } from "./types/PostId";
|
260
275
|
export { PostListingMode } from "./types/PostListingMode";
|
261
|
-
export { PostPaginationCursor } from "./types/PostPaginationCursor";
|
262
276
|
export { PostReport } from "./types/PostReport";
|
263
277
|
export { PostReportId } from "./types/PostReportId";
|
264
278
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -293,6 +307,7 @@ export { ReportCombinedView } from "./types/ReportCombinedView";
|
|
293
307
|
export { ReportType } from "./types/ReportType";
|
294
308
|
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
295
309
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
310
|
+
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
296
311
|
export { ResolveObject } from "./types/ResolveObject";
|
297
312
|
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
298
313
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
@@ -310,18 +325,20 @@ export { Site } from "./types/Site";
|
|
310
325
|
export { SiteId } from "./types/SiteId";
|
311
326
|
export { SiteResponse } from "./types/SiteResponse";
|
312
327
|
export { SiteView } from "./types/SiteView";
|
313
|
-
export { SubscribedType } from "./types/SubscribedType";
|
314
328
|
export { SuccessResponse } from "./types/SuccessResponse";
|
315
329
|
export { Tag } from "./types/Tag";
|
316
330
|
export { TagId } from "./types/TagId";
|
317
331
|
export { Tagline } from "./types/Tagline";
|
318
332
|
export { TaglineId } from "./types/TaglineId";
|
319
333
|
export { TaglineResponse } from "./types/TaglineResponse";
|
334
|
+
export { TagsView } from "./types/TagsView";
|
320
335
|
export { TransferCommunity } from "./types/TransferCommunity";
|
336
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
321
337
|
export { UpdateTagline } from "./types/UpdateTagline";
|
322
338
|
export { UpdateTotp } from "./types/UpdateTotp";
|
323
339
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
324
340
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
325
341
|
export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
326
342
|
export { VerifyEmail } from "./types/VerifyEmail";
|
343
|
+
export { VoteShow } from "./types/VoteShow";
|
327
344
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import { AdminListUsers } from "./types/AdminListUsers";
|
2
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
1
3
|
import { DeleteImageParams } from "./types/DeleteImageParams";
|
2
4
|
import { GetComment } from "./types/GetComment";
|
3
5
|
import { GetComments } from "./types/GetComments";
|
@@ -18,6 +20,9 @@ import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
|
18
20
|
import { ListInbox } from "./types/ListInbox";
|
19
21
|
import { ListMedia } from "./types/ListMedia";
|
20
22
|
import { ListPersonContent } from "./types/ListPersonContent";
|
23
|
+
import { ListPersonHidden } from "./types/ListPersonHidden";
|
24
|
+
import { ListPersonLiked } from "./types/ListPersonLiked";
|
25
|
+
import { ListPersonRead } from "./types/ListPersonRead";
|
21
26
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
22
27
|
import { ListPostLikes } from "./types/ListPostLikes";
|
23
28
|
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -71,6 +76,12 @@ export interface ListInboxI extends ListInbox {
|
|
71
76
|
}
|
72
77
|
export interface ListPersonSavedI extends ListPersonSaved {
|
73
78
|
}
|
79
|
+
export interface ListPersonReadI extends ListPersonRead {
|
80
|
+
}
|
81
|
+
export interface ListPersonHiddenI extends ListPersonHidden {
|
82
|
+
}
|
83
|
+
export interface ListPersonLikedI extends ListPersonLiked {
|
84
|
+
}
|
74
85
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
75
86
|
}
|
76
87
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
@@ -83,3 +94,7 @@ export interface ListReportsI extends ListReports {
|
|
83
94
|
}
|
84
95
|
export interface DeleteImageParamsI extends DeleteImageParams {
|
85
96
|
}
|
97
|
+
export interface AdminListUsersI extends AdminListUsers {
|
98
|
+
}
|
99
|
+
export interface CommunityIdQueryI extends CommunityIdQuery {
|
100
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { LocalUserView } from "./LocalUserView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
|
+
export type AdminListUsersResponse = {
|
4
|
+
users: Array<LocalUserView>;
|
5
|
+
/**
|
6
|
+
* the pagination cursor to use to fetch the next page
|
7
|
+
*/
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
10
|
+
};
|
package/dist/types/Comment.d.ts
CHANGED
@@ -48,4 +48,9 @@ export type Comment = {
|
|
48
48
|
child_count: number;
|
49
49
|
report_count: number;
|
50
50
|
unresolved_report_count: number;
|
51
|
+
/**
|
52
|
+
* If a local user comments in a remote community, the comment is hidden until it is confirmed
|
53
|
+
* accepted by the community (by receiving it back via federation).
|
54
|
+
*/
|
55
|
+
federation_pending: boolean;
|
51
56
|
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import type { CommentId } from "./CommentId";
|
2
|
-
import type { PersonId } from "./PersonId";
|
3
1
|
export type CommentActions = {
|
4
|
-
|
5
|
-
|
2
|
+
/**
|
3
|
+
* The like / score for the comment.
|
4
|
+
*/
|
6
5
|
like_score?: number;
|
6
|
+
/**
|
7
|
+
* When the comment was liked.
|
8
|
+
*/
|
7
9
|
liked?: string;
|
10
|
+
/**
|
11
|
+
* When the comment was saved.
|
12
|
+
*/
|
8
13
|
saved?: string;
|
9
14
|
};
|
@@ -7,6 +7,7 @@ import type { InstanceActions } from "./InstanceActions";
|
|
7
7
|
import type { Person } from "./Person";
|
8
8
|
import type { PersonActions } from "./PersonActions";
|
9
9
|
import type { Post } from "./Post";
|
10
|
+
import type { TagsView } from "./TagsView";
|
10
11
|
/**
|
11
12
|
* A comment reply view.
|
12
13
|
*/
|
@@ -21,7 +22,11 @@ export type CommentReplyView = {
|
|
21
22
|
comment_actions?: CommentActions;
|
22
23
|
person_actions?: PersonActions;
|
23
24
|
instance_actions?: InstanceActions;
|
25
|
+
creator_home_instance_actions?: InstanceActions;
|
26
|
+
creator_local_instance_actions?: InstanceActions;
|
24
27
|
creator_community_actions?: CommunityActions;
|
25
28
|
creator_is_admin: boolean;
|
29
|
+
post_tags: TagsView;
|
26
30
|
can_mod: boolean;
|
31
|
+
creator_banned: boolean;
|
27
32
|
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
|
+
import type { CommunityActions } from "./CommunityActions";
|
3
4
|
import type { InstanceActions } from "./InstanceActions";
|
4
5
|
import type { Person } from "./Person";
|
5
6
|
import type { PersonActions } from "./PersonActions";
|
@@ -11,7 +12,11 @@ export type CommentSlimView = {
|
|
11
12
|
creator: Person;
|
12
13
|
comment_actions?: CommentActions;
|
13
14
|
person_actions?: PersonActions;
|
15
|
+
creator_community_actions?: CommunityActions;
|
14
16
|
instance_actions?: InstanceActions;
|
17
|
+
creator_home_instance_actions?: InstanceActions;
|
18
|
+
creator_local_instance_actions?: InstanceActions;
|
15
19
|
creator_is_admin: boolean;
|
16
20
|
can_mod: boolean;
|
21
|
+
creator_banned: boolean;
|
17
22
|
};
|
@@ -6,6 +6,7 @@ import type { InstanceActions } from "./InstanceActions";
|
|
6
6
|
import type { Person } from "./Person";
|
7
7
|
import type { PersonActions } from "./PersonActions";
|
8
8
|
import type { Post } from "./Post";
|
9
|
+
import type { TagsView } from "./TagsView";
|
9
10
|
/**
|
10
11
|
* A comment view.
|
11
12
|
*/
|
@@ -18,7 +19,11 @@ export type CommentView = {
|
|
18
19
|
comment_actions?: CommentActions;
|
19
20
|
person_actions?: PersonActions;
|
20
21
|
instance_actions?: InstanceActions;
|
22
|
+
creator_home_instance_actions?: InstanceActions;
|
23
|
+
creator_local_instance_actions?: InstanceActions;
|
21
24
|
creator_community_actions?: CommunityActions;
|
22
25
|
creator_is_admin: boolean;
|
26
|
+
post_tags: TagsView;
|
23
27
|
can_mod: boolean;
|
28
|
+
creator_banned: boolean;
|
24
29
|
};
|
@@ -46,10 +46,6 @@ export type Community = {
|
|
46
46
|
* A URL for a banner.
|
47
47
|
*/
|
48
48
|
banner?: DbUrl;
|
49
|
-
/**
|
50
|
-
* Whether the community is hidden.
|
51
|
-
*/
|
52
|
-
hidden: boolean;
|
53
49
|
/**
|
54
50
|
* Whether posting is restricted to mods only.
|
55
51
|
*/
|
@@ -82,4 +78,5 @@ export type Community = {
|
|
82
78
|
subscribers_local: number;
|
83
79
|
report_count: number;
|
84
80
|
unresolved_report_count: number;
|
81
|
+
local_removed: boolean;
|
85
82
|
};
|
@@ -1,14 +1,27 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
-
import type { CommunityId } from "./CommunityId";
|
3
|
-
import type { PersonId } from "./PersonId";
|
4
2
|
export type CommunityActions = {
|
5
|
-
|
6
|
-
|
3
|
+
/**
|
4
|
+
* When the community was followed.
|
5
|
+
*/
|
7
6
|
followed?: string;
|
7
|
+
/**
|
8
|
+
* The state of the community follow.
|
9
|
+
*/
|
8
10
|
follow_state?: CommunityFollowerState;
|
9
|
-
|
11
|
+
/**
|
12
|
+
* When the community was blocked.
|
13
|
+
*/
|
10
14
|
blocked?: string;
|
15
|
+
/**
|
16
|
+
* When this user became a moderator.
|
17
|
+
*/
|
11
18
|
became_moderator?: string;
|
19
|
+
/**
|
20
|
+
* When this user received a ban.
|
21
|
+
*/
|
12
22
|
received_ban?: string;
|
23
|
+
/**
|
24
|
+
* When their ban expires.
|
25
|
+
*/
|
13
26
|
ban_expires?: string;
|
14
27
|
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { Community } from "./Community";
|
2
2
|
import type { CommunityActions } from "./CommunityActions";
|
3
3
|
import type { InstanceActions } from "./InstanceActions";
|
4
|
+
import type { TagsView } from "./TagsView";
|
4
5
|
/**
|
5
6
|
* A community view.
|
6
7
|
*/
|
@@ -9,4 +10,5 @@ export type CommunityView = {
|
|
9
10
|
community_actions?: CommunityActions;
|
10
11
|
instance_actions?: InstanceActions;
|
11
12
|
can_mod: boolean;
|
13
|
+
post_tags: TagsView;
|
12
14
|
};
|
@@ -24,7 +24,6 @@ export type CreateSite = {
|
|
24
24
|
default_comment_sort_type?: CommentSortType;
|
25
25
|
legal_information?: string;
|
26
26
|
application_email_admins?: boolean;
|
27
|
-
hide_modlog_mod_names?: boolean;
|
28
27
|
discussion_languages?: Array<LanguageId>;
|
29
28
|
slur_filter_regex?: string;
|
30
29
|
actor_name_max_length?: number;
|
@@ -50,6 +49,6 @@ export type CreateSite = {
|
|
50
49
|
post_downvotes?: FederationMode;
|
51
50
|
comment_upvotes?: FederationMode;
|
52
51
|
comment_downvotes?: FederationMode;
|
53
|
-
disable_donation_dialog?: boolean;
|
54
52
|
disallow_nsfw_content?: boolean;
|
53
|
+
disable_email_notifications?: boolean;
|
55
54
|
};
|
package/dist/types/EditPost.d.ts
CHANGED
@@ -22,9 +22,9 @@ export type EditPost = {
|
|
22
22
|
* Instead of fetching a thumbnail, use a custom one.
|
23
23
|
*/
|
24
24
|
custom_thumbnail?: string;
|
25
|
-
tags?: Array<TagId>;
|
26
25
|
/**
|
27
26
|
* Time when this post should be scheduled. Null means publish immediately.
|
28
27
|
*/
|
29
28
|
scheduled_publish_time?: number;
|
29
|
+
tags?: Array<TagId>;
|
30
30
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -66,10 +66,6 @@ export type EditSite = {
|
|
66
66
|
* Whether to email admins when receiving a new application.
|
67
67
|
*/
|
68
68
|
application_email_admins?: boolean;
|
69
|
-
/**
|
70
|
-
* Whether to hide moderator names from the modlog.
|
71
|
-
*/
|
72
|
-
hide_modlog_mod_names?: boolean;
|
73
69
|
/**
|
74
70
|
* A list of allowed discussion languages.
|
75
71
|
*/
|
@@ -158,13 +154,12 @@ export type EditSite = {
|
|
158
154
|
* What kind of comment downvotes your site allows.
|
159
155
|
*/
|
160
156
|
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
157
|
/**
|
167
158
|
* Block NSFW content being created
|
168
159
|
*/
|
169
160
|
disallow_nsfw_content?: boolean;
|
161
|
+
/**
|
162
|
+
* Dont send email notifications to users for new replies, mentions etc
|
163
|
+
*/
|
164
|
+
disable_email_notifications?: boolean;
|
170
165
|
};
|
@@ -2,6 +2,7 @@ import type { CommentId } from "./CommentId";
|
|
2
2
|
import type { CommentSortType } from "./CommentSortType";
|
3
3
|
import type { CommunityId } from "./CommunityId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
5
6
|
import type { PostId } from "./PostId";
|
6
7
|
/**
|
7
8
|
* Get a list of comments.
|
@@ -15,12 +16,11 @@ export type GetComments = {
|
|
15
16
|
*/
|
16
17
|
time_range_seconds?: number;
|
17
18
|
max_depth?: number;
|
18
|
-
|
19
|
+
page_cursor?: PaginationCursor;
|
20
|
+
page_back?: boolean;
|
19
21
|
limit?: number;
|
20
22
|
community_id?: CommunityId;
|
21
23
|
community_name?: string;
|
22
24
|
post_id?: PostId;
|
23
25
|
parent_id?: CommentId;
|
24
|
-
liked_only?: boolean;
|
25
|
-
disliked_only?: boolean;
|
26
26
|
};
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import type { CommentView } from "./CommentView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
3
|
/**
|
3
4
|
* The comment list response.
|
4
5
|
*/
|
5
6
|
export type GetCommentsResponse = {
|
6
7
|
comments: Array<CommentView>;
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
7
10
|
};
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import type { CommentSlimView } from "./CommentSlimView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
3
|
/**
|
3
4
|
* A slimmer comment list response, without the post or community.
|
4
5
|
*/
|
5
6
|
export type GetCommentsSlimResponse = {
|
6
7
|
comments: Array<CommentSlimView>;
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
7
10
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
-
import type {
|
3
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
4
4
|
import type { PostSortType } from "./PostSortType";
|
5
5
|
/**
|
6
6
|
* Get a list of posts.
|
@@ -14,17 +14,8 @@ export type GetPosts = {
|
|
14
14
|
* Use Zero to override the local_site and local_user time_range.
|
15
15
|
*/
|
16
16
|
time_range_seconds?: number;
|
17
|
-
/**
|
18
|
-
* DEPRECATED, use page_cursor
|
19
|
-
*/
|
20
|
-
page?: number;
|
21
|
-
limit?: number;
|
22
17
|
community_id?: CommunityId;
|
23
18
|
community_name?: string;
|
24
|
-
saved_only?: boolean;
|
25
|
-
read_only?: boolean;
|
26
|
-
liked_only?: boolean;
|
27
|
-
disliked_only?: boolean;
|
28
19
|
show_hidden?: boolean;
|
29
20
|
/**
|
30
21
|
* If true, then show the read posts (even if your user setting is to hide them)
|
@@ -46,6 +37,7 @@ export type GetPosts = {
|
|
46
37
|
* If true, then only show posts with no comments
|
47
38
|
*/
|
48
39
|
no_comments_only?: boolean;
|
49
|
-
page_cursor?:
|
40
|
+
page_cursor?: PaginationCursor;
|
50
41
|
page_back?: boolean;
|
42
|
+
limit?: number;
|
51
43
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
2
|
import type { PostView } from "./PostView";
|
3
3
|
/**
|
4
4
|
* The post list response.
|
@@ -8,5 +8,6 @@ export type GetPostsResponse = {
|
|
8
8
|
/**
|
9
9
|
* the pagination cursor to use to fetch the next page
|
10
10
|
*/
|
11
|
-
next_page?:
|
11
|
+
next_page?: PaginationCursor;
|
12
|
+
prev_page?: PaginationCursor;
|
12
13
|
};
|
@@ -3,6 +3,7 @@ import type { LanguageId } from "./LanguageId";
|
|
3
3
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
4
4
|
import type { OAuthProvider } from "./OAuthProvider";
|
5
5
|
import type { PersonView } from "./PersonView";
|
6
|
+
import type { PluginMetadata } from "./PluginMetadata";
|
6
7
|
import type { PublicOAuthProvider } from "./PublicOAuthProvider";
|
7
8
|
import type { SiteView } from "./SiteView";
|
8
9
|
import type { Tagline } from "./Tagline";
|
@@ -26,4 +27,5 @@ export type GetSiteResponse = {
|
|
26
27
|
admin_oauth_providers: Array<OAuthProvider>;
|
27
28
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
28
29
|
image_upload_disabled: boolean;
|
30
|
+
active_plugins: Array<PluginMetadata>;
|
29
31
|
};
|
package/dist/types/Instance.d.ts
CHANGED
@@ -1,12 +1,22 @@
|
|
1
1
|
import type { InstanceId } from "./InstanceId";
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* Basic data about a Fediverse instance which is available for every known domain. Additional
|
4
|
+
* data may be available in [[Site]].
|
4
5
|
*/
|
5
6
|
export type Instance = {
|
6
7
|
id: InstanceId;
|
7
8
|
domain: string;
|
8
9
|
published: string;
|
10
|
+
/**
|
11
|
+
* When the instance was updated.
|
12
|
+
*/
|
9
13
|
updated?: string;
|
14
|
+
/**
|
15
|
+
* The software of the instance.
|
16
|
+
*/
|
10
17
|
software?: string;
|
18
|
+
/**
|
19
|
+
* The version of the instance's software.
|
20
|
+
*/
|
11
21
|
version?: string;
|
12
22
|
};
|
@@ -1,7 +1,14 @@
|
|
1
|
-
import type { InstanceId } from "./InstanceId";
|
2
|
-
import type { PersonId } from "./PersonId";
|
3
1
|
export type InstanceActions = {
|
4
|
-
|
5
|
-
|
2
|
+
/**
|
3
|
+
* When the instance was blocked.
|
4
|
+
*/
|
6
5
|
blocked?: string;
|
6
|
+
/**
|
7
|
+
* When this user received a site ban.
|
8
|
+
*/
|
9
|
+
received_ban?: string;
|
10
|
+
/**
|
11
|
+
* When their ban expires.
|
12
|
+
*/
|
13
|
+
ban_expires?: string;
|
7
14
|
};
|