lemmy-js-client 1.0.0-action-structs.1 → 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.
Files changed (121) hide show
  1. package/dist/http.d.ts +78 -26
  2. package/dist/http.js +1001 -893
  3. package/dist/index.d.ts +17 -3
  4. package/dist/other_types.d.ts +14 -2
  5. package/dist/types/AdminListUsers.d.ts +7 -0
  6. package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
  7. package/dist/types/Comment.d.ts +5 -0
  8. package/dist/types/CommentActions.d.ts +0 -4
  9. package/dist/types/CommentActions.js +1 -0
  10. package/dist/types/CommentReplyView.d.ts +5 -0
  11. package/dist/types/CommentSlimView.d.ts +3 -0
  12. package/dist/types/CommentView.d.ts +5 -0
  13. package/dist/types/Community.d.ts +1 -0
  14. package/dist/types/CommunityActions.d.ts +0 -8
  15. package/dist/types/CommunityIdQuery.d.ts +8 -0
  16. package/dist/types/CommunityIdQuery.js +2 -0
  17. package/dist/types/CommunityView.d.ts +2 -0
  18. package/dist/types/CreateCommunityTag.d.ts +8 -0
  19. package/dist/types/CreateCommunityTag.js +2 -0
  20. package/dist/types/CreateSite.d.ts +1 -2
  21. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  22. package/dist/types/DeleteCommunityTag.js +2 -0
  23. package/dist/types/EditPost.d.ts +1 -1
  24. package/dist/types/EditSite.d.ts +4 -9
  25. package/dist/types/GetComments.d.ts +3 -3
  26. package/dist/types/GetCommentsResponse.d.ts +3 -0
  27. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  28. package/dist/types/GetModlog.d.ts +1 -0
  29. package/dist/types/GetModlogResponse.d.ts +1 -0
  30. package/dist/types/GetPosts.d.ts +3 -11
  31. package/dist/types/GetPostsResponse.d.ts +3 -2
  32. package/dist/types/GetSiteResponse.d.ts +2 -0
  33. package/dist/types/Instance.d.ts +2 -1
  34. package/dist/types/InstanceActions.d.ts +8 -4
  35. package/dist/types/InstanceActions.js +1 -0
  36. package/dist/types/LemmyErrorType.d.ts +91 -22
  37. package/dist/types/LikeType.d.ts +4 -0
  38. package/dist/types/ListCommentLikes.d.ts +3 -1
  39. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  40. package/dist/types/ListCommunities.d.ts +3 -1
  41. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  42. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  43. package/dist/types/ListCommunityPendingFollows.js +0 -1
  44. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  45. package/dist/types/ListCustomEmojis.d.ts +0 -3
  46. package/dist/types/ListInbox.d.ts +1 -0
  47. package/dist/types/ListInboxResponse.d.ts +1 -0
  48. package/dist/types/ListMedia.d.ts +3 -1
  49. package/dist/types/ListMedia.js +0 -1
  50. package/dist/types/ListMediaResponse.d.ts +6 -0
  51. package/dist/types/ListPersonContent.d.ts +1 -0
  52. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  53. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  54. package/dist/types/ListPersonHidden.js +2 -0
  55. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  56. package/dist/types/ListPersonHiddenResponse.js +2 -0
  57. package/dist/types/ListPersonLiked.d.ts +13 -0
  58. package/dist/types/ListPersonLiked.js +2 -0
  59. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  60. package/dist/types/ListPersonLikedResponse.js +2 -0
  61. package/dist/types/ListPersonRead.d.ts +9 -0
  62. package/dist/types/ListPersonRead.js +2 -0
  63. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  64. package/dist/types/ListPersonReadResponse.js +2 -0
  65. package/dist/types/ListPersonSaved.d.ts +1 -0
  66. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  67. package/dist/types/ListPostLikes.d.ts +3 -1
  68. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  69. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  70. package/dist/types/ListRegistrationApplications.js +0 -1
  71. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  72. package/dist/types/ListReports.d.ts +1 -0
  73. package/dist/types/ListReportsResponse.d.ts +1 -0
  74. package/dist/types/ListTaglines.d.ts +3 -1
  75. package/dist/types/ListTaglines.js +0 -1
  76. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  77. package/dist/types/LocalImage.d.ts +7 -2
  78. package/dist/types/LocalImageView.d.ts +2 -0
  79. package/dist/types/LocalSite.d.ts +4 -9
  80. package/dist/types/LocalUser.d.ts +2 -1
  81. package/dist/types/LocalUserView.d.ts +2 -0
  82. package/dist/types/LockPost.d.ts +1 -0
  83. package/dist/types/Login.d.ts +3 -0
  84. package/dist/types/ModBan.d.ts +2 -0
  85. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -1
  86. package/dist/types/ModLockPost.d.ts +1 -0
  87. package/dist/types/MyUserInfo.d.ts +1 -0
  88. package/dist/types/Person.d.ts +0 -8
  89. package/dist/types/PersonActions.d.ts +0 -3
  90. package/dist/types/PersonActions.js +1 -0
  91. package/dist/types/PersonCommentMentionView.d.ts +3 -0
  92. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  93. package/dist/types/PersonLikedCombinedView.js +2 -0
  94. package/dist/types/PersonPostMentionView.d.ts +5 -0
  95. package/dist/types/PersonView.d.ts +4 -0
  96. package/dist/types/PluginMetadata.d.ts +5 -0
  97. package/dist/types/PluginMetadata.js +3 -0
  98. package/dist/types/Post.d.ts +5 -0
  99. package/dist/types/PostActions.d.ts +0 -4
  100. package/dist/types/PostActions.js +1 -0
  101. package/dist/types/PostView.d.ts +5 -0
  102. package/dist/types/SaveUserSettings.d.ts +3 -1
  103. package/dist/types/Search.d.ts +5 -0
  104. package/dist/types/SearchResponse.d.ts +1 -0
  105. package/dist/types/Site.d.ts +2 -1
  106. package/dist/types/SiteResponse.d.ts +0 -4
  107. package/dist/types/SiteView.d.ts +2 -0
  108. package/dist/types/Tag.d.ts +8 -6
  109. package/dist/types/Tagline.d.ts +2 -1
  110. package/dist/types/Tagline.js +0 -1
  111. package/dist/types/TagsView.d.ts +5 -0
  112. package/dist/types/TagsView.js +2 -0
  113. package/dist/types/UpdateCommunityTag.d.ts +8 -0
  114. package/dist/types/UpdateCommunityTag.js +2 -0
  115. package/dist/types/VoteShow.d.ts +4 -0
  116. package/dist/types/VoteShow.js +3 -0
  117. package/package.json +8 -5
  118. package/dist/types/PostPaginationCursor.d.ts +0 -7
  119. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  120. /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
  121. /package/dist/types/{PostPaginationCursor.js → LikeType.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,6 +59,7 @@ 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";
@@ -72,6 +74,7 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
72
74
  export { CreateCommentReport } from "./types/CreateCommentReport";
73
75
  export { CreateCommunity } from "./types/CreateCommunity";
74
76
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
77
+ export { CreateCommunityTag } from "./types/CreateCommunityTag";
75
78
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
76
79
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
77
80
  export { CreatePost } from "./types/CreatePost";
@@ -90,6 +93,7 @@ export { DbUrl } from "./types/DbUrl";
90
93
  export { DeleteAccount } from "./types/DeleteAccount";
91
94
  export { DeleteComment } from "./types/DeleteComment";
92
95
  export { DeleteCommunity } from "./types/DeleteCommunity";
96
+ export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
93
97
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
94
98
  export { DeleteImageParams } from "./types/DeleteImageParams";
95
99
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
@@ -152,8 +156,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
152
156
  export { Language } from "./types/Language";
153
157
  export { LanguageId } from "./types/LanguageId";
154
158
  export { LemmyErrorType } from "./types/LemmyErrorType";
159
+ export { LikeType } from "./types/LikeType";
155
160
  export { LinkMetadata } from "./types/LinkMetadata";
156
- export { ListBannedPersons } from "./types/ListBannedPersons";
157
161
  export { ListCommentLikes } from "./types/ListCommentLikes";
158
162
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
159
163
  export { ListCommunities } from "./types/ListCommunities";
@@ -169,6 +173,12 @@ export { ListMedia } from "./types/ListMedia";
169
173
  export { ListMediaResponse } from "./types/ListMediaResponse";
170
174
  export { ListPersonContent } from "./types/ListPersonContent";
171
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";
172
182
  export { ListPersonSaved } from "./types/ListPersonSaved";
173
183
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
174
184
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -251,17 +261,18 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
251
261
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
252
262
  export { PersonContentType } from "./types/PersonContentType";
253
263
  export { PersonId } from "./types/PersonId";
264
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
254
265
  export { PersonPostMention } from "./types/PersonPostMention";
255
266
  export { PersonPostMentionId } from "./types/PersonPostMentionId";
256
267
  export { PersonPostMentionView } from "./types/PersonPostMentionView";
257
268
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
258
269
  export { PersonView } from "./types/PersonView";
270
+ export { PluginMetadata } from "./types/PluginMetadata";
259
271
  export { Post } from "./types/Post";
260
272
  export { PostActions } from "./types/PostActions";
261
273
  export { PostFeatureType } from "./types/PostFeatureType";
262
274
  export { PostId } from "./types/PostId";
263
275
  export { PostListingMode } from "./types/PostListingMode";
264
- export { PostPaginationCursor } from "./types/PostPaginationCursor";
265
276
  export { PostReport } from "./types/PostReport";
266
277
  export { PostReportId } from "./types/PostReportId";
267
278
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -320,11 +331,14 @@ export { TagId } from "./types/TagId";
320
331
  export { Tagline } from "./types/Tagline";
321
332
  export { TaglineId } from "./types/TaglineId";
322
333
  export { TaglineResponse } from "./types/TaglineResponse";
334
+ export { TagsView } from "./types/TagsView";
323
335
  export { TransferCommunity } from "./types/TransferCommunity";
336
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
324
337
  export { UpdateTagline } from "./types/UpdateTagline";
325
338
  export { UpdateTotp } from "./types/UpdateTotp";
326
339
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
327
340
  export { UploadImageResponse } from "./types/UploadImageResponse";
328
341
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
329
342
  export { VerifyEmail } from "./types/VerifyEmail";
343
+ export { VoteShow } from "./types/VoteShow";
330
344
  export { VoteView } from "./types/VoteView";
@@ -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";
@@ -11,7 +13,6 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
13
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
14
  import { GetReportCount } from "./types/GetReportCount";
13
15
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
- import { ListBannedPersons } from "./types/ListBannedPersons";
15
16
  import { ListCommentLikes } from "./types/ListCommentLikes";
16
17
  import { ListCommunities } from "./types/ListCommunities";
17
18
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
@@ -19,6 +20,9 @@ import { ListCustomEmojis } from "./types/ListCustomEmojis";
19
20
  import { ListInbox } from "./types/ListInbox";
20
21
  import { ListMedia } from "./types/ListMedia";
21
22
  import { ListPersonContent } from "./types/ListPersonContent";
23
+ import { ListPersonHidden } from "./types/ListPersonHidden";
24
+ import { ListPersonLiked } from "./types/ListPersonLiked";
25
+ import { ListPersonRead } from "./types/ListPersonRead";
22
26
  import { ListPersonSaved } from "./types/ListPersonSaved";
23
27
  import { ListPostLikes } from "./types/ListPostLikes";
24
28
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -72,6 +76,12 @@ export interface ListInboxI extends ListInbox {
72
76
  }
73
77
  export interface ListPersonSavedI extends ListPersonSaved {
74
78
  }
79
+ export interface ListPersonReadI extends ListPersonRead {
80
+ }
81
+ export interface ListPersonHiddenI extends ListPersonHidden {
82
+ }
83
+ export interface ListPersonLikedI extends ListPersonLiked {
84
+ }
75
85
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
76
86
  }
77
87
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -84,5 +94,7 @@ export interface ListReportsI extends ListReports {
84
94
  }
85
95
  export interface DeleteImageParamsI extends DeleteImageParams {
86
96
  }
87
- export interface ListBannedPersonsI extends ListBannedPersons {
97
+ export interface AdminListUsersI extends AdminListUsers {
98
+ }
99
+ export interface CommunityIdQueryI extends CommunityIdQuery {
88
100
  }
@@ -0,0 +1,7 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
+ export type AdminListUsers = {
3
+ banned_only?: boolean;
4
+ page_cursor?: PaginationCursor;
5
+ page_back?: boolean;
6
+ limit?: number;
7
+ };
@@ -1,12 +1,10 @@
1
+ import type { LocalUserView } from "./LocalUserView";
1
2
  import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonView } from "./PersonView";
3
- /**
4
- * The list of banned persons.
5
- */
6
- export type BannedPersonsResponse = {
7
- banned: Array<PersonView>;
3
+ export type AdminListUsersResponse = {
4
+ users: Array<LocalUserView>;
8
5
  /**
9
6
  * the pagination cursor to use to fetch the next page
10
7
  */
11
8
  next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
12
10
  };
@@ -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,8 +1,4 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { PersonId } from "./PersonId";
3
1
  export type CommentActions = {
4
- person_id: PersonId;
5
- comment_id: CommentId;
6
2
  /**
7
3
  * The like / score for the comment.
8
4
  */
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -14,6 +14,9 @@ export type CommentSlimView = {
14
14
  person_actions?: PersonActions;
15
15
  creator_community_actions?: CommunityActions;
16
16
  instance_actions?: InstanceActions;
17
+ creator_home_instance_actions?: InstanceActions;
18
+ creator_local_instance_actions?: InstanceActions;
17
19
  creator_is_admin: boolean;
18
20
  can_mod: boolean;
21
+ creator_banned: boolean;
19
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
  };
@@ -78,4 +78,5 @@ export type Community = {
78
78
  subscribers_local: number;
79
79
  report_count: number;
80
80
  unresolved_report_count: number;
81
+ local_removed: boolean;
81
82
  };
@@ -1,9 +1,5 @@
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
- community_id: CommunityId;
6
- person_id: PersonId;
7
3
  /**
8
4
  * When the community was followed.
9
5
  */
@@ -12,10 +8,6 @@ export type CommunityActions = {
12
8
  * The state of the community follow.
13
9
  */
14
10
  follow_state?: CommunityFollowerState;
15
- /**
16
- * The approver of the community follow.
17
- */
18
- follow_approver_id?: PersonId;
19
11
  /**
20
12
  * When the community was blocked.
21
13
  */
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Parameter for setting community icon or banner. Can't use POST data here as it already contains
4
+ * the image data.
5
+ */
6
+ export type CommunityIdQuery = {
7
+ id: CommunityId;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -0,0 +1,8 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ /**
3
+ * Create a tag for a community.
4
+ */
5
+ export type CreateCommunityTag = {
6
+ community_id: CommunityId;
7
+ display_name: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -0,0 +1,7 @@
1
+ import type { TagId } from "./TagId";
2
+ /**
3
+ * Delete a community tag.
4
+ */
5
+ export type DeleteCommunityTag = {
6
+ tag_id: TagId;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -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
- page?: number;
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
  };
@@ -40,4 +40,5 @@ export type GetModlog = {
40
40
  comment_id?: CommentId;
41
41
  page_cursor?: PaginationCursor;
42
42
  page_back?: boolean;
43
+ limit?: number;
43
44
  };
@@ -9,4 +9,5 @@ export type GetModlogResponse = {
9
9
  * the pagination cursor to use to fetch the next page
10
10
  */
11
11
  next_page?: PaginationCursor;
12
+ prev_page?: PaginationCursor;
12
13
  };
@@ -1,6 +1,6 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { ListingType } from "./ListingType";
3
- import type { PostPaginationCursor } from "./PostPaginationCursor";
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?: PostPaginationCursor;
40
+ page_cursor?: PaginationCursor;
50
41
  page_back?: boolean;
42
+ limit?: number;
51
43
  };
@@ -1,4 +1,4 @@
1
- import type { PostPaginationCursor } from "./PostPaginationCursor";
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?: PostPaginationCursor;
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
  };
@@ -1,6 +1,7 @@
1
1
  import type { InstanceId } from "./InstanceId";
2
2
  /**
3
- * A federated instance / site.
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;
@@ -1,10 +1,14 @@
1
- import type { InstanceId } from "./InstanceId";
2
- import type { PersonId } from "./PersonId";
3
1
  export type InstanceActions = {
4
- person_id: PersonId;
5
- instance_id: InstanceId;
6
2
  /**
7
3
  * When the instance was blocked.
8
4
  */
9
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;
10
14
  };
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });