lemmy-js-client 0.20.0-reports-combined.3 → 0.20.0-show-mod-reports.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/README.md +1 -1
  2. package/dist/http.d.ts +229 -411
  3. package/dist/http.js +1208 -390
  4. package/dist/index.d.ts +57 -16
  5. package/dist/other_types.d.ts +80 -16
  6. package/dist/types/AdminAllowInstance.d.ts +3 -2
  7. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  8. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  9. package/dist/types/AdminBlockInstance.d.ts +3 -2
  10. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  11. package/dist/types/AdminPurgeComment.d.ts +3 -2
  12. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  13. package/dist/types/AdminPurgeCommentId.js +3 -0
  14. package/dist/types/AdminPurgeCommunity.d.ts +3 -2
  15. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  16. package/dist/types/AdminPurgeCommunityId.js +3 -0
  17. package/dist/types/AdminPurgePerson.d.ts +3 -2
  18. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  19. package/dist/types/AdminPurgePersonId.js +3 -0
  20. package/dist/types/AdminPurgePost.d.ts +3 -2
  21. package/dist/types/AdminPurgePostId.d.ts +1 -0
  22. package/dist/types/AdminPurgePostId.js +3 -0
  23. package/dist/types/CommentSlimView.d.ts +20 -0
  24. package/dist/types/Community.d.ts +2 -2
  25. package/dist/types/CommunityAggregates.d.ts +2 -0
  26. package/dist/types/CommunityReport.d.ts +22 -0
  27. package/dist/types/CommunityReportId.d.ts +4 -0
  28. package/dist/types/CommunityReportId.js +3 -0
  29. package/dist/types/CommunityReportView.d.ts +16 -0
  30. package/dist/types/CreatePost.d.ts +2 -0
  31. package/dist/types/CreateSite.d.ts +1 -4
  32. package/dist/types/DeleteImageParams.d.ts +3 -0
  33. package/dist/types/DeleteImageParams.js +3 -0
  34. package/dist/types/EditCommunity.d.ts +0 -8
  35. package/dist/types/EditPost.d.ts +2 -0
  36. package/dist/types/EditSite.d.ts +5 -16
  37. package/dist/types/FederationError.d.ts +1 -1
  38. package/dist/types/GetComments.d.ts +0 -1
  39. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  40. package/dist/types/GetModlog.d.ts +3 -2
  41. package/dist/types/GetModlogResponse.d.ts +2 -34
  42. package/dist/types/GetPersonDetails.d.ts +0 -7
  43. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  44. package/dist/types/GetPosts.d.ts +5 -0
  45. package/dist/types/GetRandomCommunity.d.ts +1 -0
  46. package/dist/types/GetSiteResponse.d.ts +1 -8
  47. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  48. package/dist/types/ImageGetParams.d.ts +4 -0
  49. package/dist/types/ImageGetParams.js +3 -0
  50. package/dist/types/ImageProxyParams.d.ts +5 -0
  51. package/dist/types/ImageProxyParams.js +3 -0
  52. package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
  53. package/dist/types/InboxCombinedPaginationCursor.js +3 -0
  54. package/dist/types/InboxCombinedView.d.ts +13 -0
  55. package/dist/types/InboxDataType.d.ts +4 -0
  56. package/dist/types/InboxDataType.js +3 -0
  57. package/dist/types/LemmyErrorType.d.ts +5 -3
  58. package/dist/types/ListInbox.d.ts +11 -0
  59. package/dist/types/ListInboxResponse.d.ts +7 -0
  60. package/dist/types/ListPersonContent.d.ts +18 -0
  61. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  62. package/dist/types/ListPersonSaved.d.ts +10 -0
  63. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  64. package/dist/types/ListReports.d.ts +14 -0
  65. package/dist/types/LocalImage.d.ts +0 -1
  66. package/dist/types/LocalSite.d.ts +5 -0
  67. package/dist/types/LocalUser.d.ts +9 -0
  68. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  69. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  70. package/dist/types/ModAdd.d.ts +3 -2
  71. package/dist/types/ModAddCommunity.d.ts +3 -2
  72. package/dist/types/ModAddCommunityId.d.ts +1 -0
  73. package/dist/types/ModAddCommunityId.js +3 -0
  74. package/dist/types/ModAddCommunityView.d.ts +1 -1
  75. package/dist/types/ModAddId.d.ts +1 -0
  76. package/dist/types/ModAddId.js +3 -0
  77. package/dist/types/ModAddView.d.ts +1 -1
  78. package/dist/types/ModBan.d.ts +3 -2
  79. package/dist/types/ModBanFromCommunity.d.ts +3 -2
  80. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  81. package/dist/types/ModBanFromCommunityId.js +3 -0
  82. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  83. package/dist/types/ModBanId.d.ts +1 -0
  84. package/dist/types/ModBanId.js +3 -0
  85. package/dist/types/ModBanView.d.ts +1 -1
  86. package/dist/types/ModFeaturePost.d.ts +3 -2
  87. package/dist/types/ModFeaturePostId.d.ts +1 -0
  88. package/dist/types/ModFeaturePostId.js +3 -0
  89. package/dist/types/ModFeaturePostView.d.ts +1 -0
  90. package/dist/types/ModHideCommunity.d.ts +3 -2
  91. package/dist/types/ModHideCommunityId.d.ts +1 -0
  92. package/dist/types/ModHideCommunityId.js +3 -0
  93. package/dist/types/ModLockPost.d.ts +3 -2
  94. package/dist/types/ModLockPostId.d.ts +1 -0
  95. package/dist/types/ModLockPostId.js +3 -0
  96. package/dist/types/ModLockPostView.d.ts +1 -0
  97. package/dist/types/ModRemoveComment.d.ts +3 -2
  98. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  99. package/dist/types/ModRemoveCommentId.js +3 -0
  100. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  101. package/dist/types/ModRemoveCommunity.d.ts +3 -2
  102. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  103. package/dist/types/ModRemoveCommunityId.js +3 -0
  104. package/dist/types/ModRemovePost.d.ts +3 -2
  105. package/dist/types/ModRemovePostId.d.ts +1 -0
  106. package/dist/types/ModRemovePostId.js +3 -0
  107. package/dist/types/ModRemovePostView.d.ts +1 -0
  108. package/dist/types/ModTransferCommunity.d.ts +3 -2
  109. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  110. package/dist/types/ModTransferCommunityId.js +3 -0
  111. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  112. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  113. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  114. package/dist/types/ModlogCombinedView.d.ts +52 -0
  115. package/dist/types/ModlogCombinedView.js +2 -0
  116. package/dist/types/Person.d.ts +2 -2
  117. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  118. package/dist/types/PersonCommentMention.js +2 -0
  119. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  120. package/dist/types/PersonCommentMentionId.js +3 -0
  121. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +4 -4
  122. package/dist/types/PersonCommentMentionView.js +2 -0
  123. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  124. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  125. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  126. package/dist/types/PersonContentCombinedView.js +2 -0
  127. package/dist/types/PersonContentType.d.ts +4 -0
  128. package/dist/types/PersonContentType.js +3 -0
  129. package/dist/types/PersonPostMention.d.ts +13 -0
  130. package/dist/types/PersonPostMention.js +2 -0
  131. package/dist/types/PersonPostMentionId.d.ts +4 -0
  132. package/dist/types/PersonPostMentionId.js +3 -0
  133. package/dist/types/PersonPostMentionView.d.ts +32 -0
  134. package/dist/types/PersonPostMentionView.js +2 -0
  135. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  136. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  137. package/dist/types/PostTags.d.ts +7 -0
  138. package/dist/types/PostTags.js +2 -0
  139. package/dist/types/PostView.d.ts +2 -0
  140. package/dist/types/ReportCombinedView.d.ts +4 -1
  141. package/dist/types/ReportType.d.ts +4 -0
  142. package/dist/types/ReportType.js +3 -0
  143. package/dist/types/SaveUserSettings.d.ts +4 -8
  144. package/dist/types/Search.d.ts +7 -7
  145. package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
  146. package/dist/types/SearchCombinedPaginationCursor.js +3 -0
  147. package/dist/types/SearchCombinedView.d.ts +13 -0
  148. package/dist/types/SearchCombinedView.js +2 -0
  149. package/dist/types/SearchResponse.d.ts +2 -10
  150. package/dist/types/SearchSortType.d.ts +4 -0
  151. package/dist/types/SearchSortType.js +3 -0
  152. package/dist/types/Site.d.ts +2 -2
  153. package/dist/types/SiteResponse.d.ts +1 -1
  154. package/dist/types/SuccessResponse.d.ts +1 -1
  155. package/dist/types/Tag.d.ts +27 -0
  156. package/dist/types/Tag.js +2 -0
  157. package/dist/types/TagId.d.ts +4 -0
  158. package/dist/types/TagId.js +3 -0
  159. package/dist/types/UploadImageResponse.d.ts +4 -0
  160. package/dist/types/UploadImageResponse.js +3 -0
  161. package/package.json +8 -4
  162. package/dist/types/CommentReplyResponse.d.ts +0 -7
  163. package/dist/types/GetPersonMentions.d.ts +0 -10
  164. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  165. package/dist/types/GetPrivateMessages.d.ts +0 -10
  166. package/dist/types/GetReplies.d.ts +0 -10
  167. package/dist/types/GetRepliesResponse.d.ts +0 -7
  168. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  169. package/dist/types/ModlogListParams.d.ts +0 -17
  170. package/dist/types/PersonMentionId.d.ts +0 -4
  171. package/dist/types/PersonMentionResponse.d.ts +0 -7
  172. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  173. package/dist/types/ReportCombined.d.ts +0 -14
  174. package/dist/types/ReportCombinedId.d.ts +0 -4
  175. /package/dist/types/{PersonMentionId.js → AdminAllowInstanceId.js} +0 -0
  176. /package/dist/types/{ReportCombinedId.js → AdminBlockInstanceId.js} +0 -0
  177. /package/dist/types/{CommentReplyResponse.js → CommentSlimView.js} +0 -0
  178. /package/dist/types/{GetPersonMentions.js → CommunityReport.js} +0 -0
  179. /package/dist/types/{GetPersonMentionsResponse.js → CommunityReportView.js} +0 -0
  180. /package/dist/types/{GetPrivateMessages.js → GetCommentsSlimResponse.js} +0 -0
  181. /package/dist/types/{GetReplies.js → InboxCombinedView.js} +0 -0
  182. /package/dist/types/{GetRepliesResponse.js → ListInbox.js} +0 -0
  183. /package/dist/types/{MarkPersonMentionAsRead.js → ListInboxResponse.js} +0 -0
  184. /package/dist/types/{ModlogListParams.js → ListPersonContent.js} +0 -0
  185. /package/dist/types/{PersonMention.js → ListPersonContentResponse.js} +0 -0
  186. /package/dist/types/{PersonMentionResponse.js → ListPersonSaved.js} +0 -0
  187. /package/dist/types/{PersonMentionView.js → ListPersonSavedResponse.js} +0 -0
  188. /package/dist/types/{PrivateMessagesResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
  189. /package/dist/types/{ReportCombined.js → MarkPersonPostMentionAsRead.js} +0 -0
@@ -18,14 +18,6 @@ export type EditCommunity = {
18
18
  * A shorter, one line description of your community.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * An icon URL.
23
- */
24
- icon?: string;
25
- /**
26
- * A banner URL.
27
- */
28
- banner?: string;
29
21
  /**
30
22
  * Whether its an NSFW community.
31
23
  */
@@ -1,5 +1,6 @@
1
1
  import type { LanguageId } from "./LanguageId";
2
2
  import type { PostId } from "./PostId";
3
+ import type { TagId } from "./TagId";
3
4
  /**
4
5
  * Edit a post.
5
6
  */
@@ -21,6 +22,7 @@ export type EditPost = {
21
22
  * Instead of fetching a thumbnail, use a custom one.
22
23
  */
23
24
  custom_thumbnail?: string;
25
+ tags?: Array<TagId>;
24
26
  /**
25
27
  * Time when this post should be scheduled. Null means publish immediately.
26
28
  */
@@ -18,18 +18,6 @@ export type EditSite = {
18
18
  * A shorter, one line description of your site.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * A url for your site's icon.
23
- */
24
- icon?: string;
25
- /**
26
- * A url for your site's banner.
27
- */
28
- banner?: string;
29
- /**
30
- * Whether to enable NSFW.
31
- */
32
- enable_nsfw?: boolean;
33
21
  /**
34
22
  * Limits community creation to admins only.
35
23
  */
@@ -124,10 +112,6 @@ export type EditSite = {
124
112
  * Whether to enable federation.
125
113
  */
126
114
  federation_enabled?: boolean;
127
- /**
128
- * Enables federation debugging.
129
- */
130
- federation_debug?: boolean;
131
115
  /**
132
116
  * Whether to enable captchas for signups.
133
117
  */
@@ -170,4 +154,9 @@ export type EditSite = {
170
154
  * What kind of comment downvotes your site allows.
171
155
  */
172
156
  comment_downvotes?: FederationMode;
157
+ /**
158
+ * If this is true, users will never see the dialog asking to support Lemmy development with
159
+ * donations.
160
+ */
161
+ disable_donation_dialog?: boolean;
173
162
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Federation related errors, these dont need to be translated.
3
3
  */
4
- export type FederationError = "CouldntFindActivity" | "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
4
+ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
5
5
  PersonIsBannedFromSite: string;
6
6
  } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
7
7
  DomainBlocked: string;
@@ -16,7 +16,6 @@ export type GetComments = {
16
16
  community_name?: string;
17
17
  post_id?: PostId;
18
18
  parent_id?: CommentId;
19
- saved_only?: boolean;
20
19
  liked_only?: boolean;
21
20
  disliked_only?: boolean;
22
21
  };
@@ -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,6 +1,7 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
3
  import type { ModlogActionType } from "./ModlogActionType";
4
+ import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
4
5
  import type { PersonId } from "./PersonId";
5
6
  import type { PostId } from "./PostId";
6
7
  /**
@@ -9,10 +10,10 @@ import type { PostId } from "./PostId";
9
10
  export type GetModlog = {
10
11
  mod_person_id?: PersonId;
11
12
  community_id?: CommunityId;
12
- page?: number;
13
- limit?: number;
14
13
  type_?: ModlogActionType;
15
14
  other_person_id?: PersonId;
16
15
  post_id?: PostId;
17
16
  comment_id?: CommentId;
17
+ page_cursor?: ModlogCombinedPaginationCursor;
18
+ page_back?: boolean;
18
19
  };
@@ -1,39 +1,7 @@
1
- import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
2
- import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
3
- import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
4
- import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
5
- import type { AdminPurgePersonView } from "./AdminPurgePersonView";
6
- import type { AdminPurgePostView } from "./AdminPurgePostView";
7
- import type { ModAddCommunityView } from "./ModAddCommunityView";
8
- import type { ModAddView } from "./ModAddView";
9
- import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
10
- import type { ModBanView } from "./ModBanView";
11
- import type { ModFeaturePostView } from "./ModFeaturePostView";
12
- import type { ModHideCommunityView } from "./ModHideCommunityView";
13
- import type { ModLockPostView } from "./ModLockPostView";
14
- import type { ModRemoveCommentView } from "./ModRemoveCommentView";
15
- import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
16
- import type { ModRemovePostView } from "./ModRemovePostView";
17
- import type { ModTransferCommunityView } from "./ModTransferCommunityView";
1
+ import type { ModlogCombinedView } from "./ModlogCombinedView";
18
2
  /**
19
3
  * The modlog fetch response.
20
4
  */
21
5
  export type GetModlogResponse = {
22
- removed_posts: Array<ModRemovePostView>;
23
- locked_posts: Array<ModLockPostView>;
24
- featured_posts: Array<ModFeaturePostView>;
25
- removed_comments: Array<ModRemoveCommentView>;
26
- removed_communities: Array<ModRemoveCommunityView>;
27
- banned_from_community: Array<ModBanFromCommunityView>;
28
- banned: Array<ModBanView>;
29
- added_to_community: Array<ModAddCommunityView>;
30
- transferred_to_community: Array<ModTransferCommunityView>;
31
- added: Array<ModAddView>;
32
- admin_purged_persons: Array<AdminPurgePersonView>;
33
- admin_purged_communities: Array<AdminPurgeCommunityView>;
34
- admin_purged_posts: Array<AdminPurgePostView>;
35
- admin_purged_comments: Array<AdminPurgeCommentView>;
36
- hidden_communities: Array<ModHideCommunityView>;
37
- admin_block_instance: Array<AdminBlockInstanceView>;
38
- admin_allow_instance: Array<AdminAllowInstanceView>;
6
+ modlog: Array<ModlogCombinedView>;
39
7
  };
@@ -1,6 +1,4 @@
1
- import type { CommunityId } from "./CommunityId";
2
1
  import type { PersonId } from "./PersonId";
3
- import type { PostSortType } from "./PostSortType";
4
2
  /**
5
3
  * Gets a person's details.
6
4
  *
@@ -12,9 +10,4 @@ export type GetPersonDetails = {
12
10
  * Example: dessalines , or dessalines@xyz.tld
13
11
  */
14
12
  username?: string;
15
- sort?: PostSortType;
16
- page?: number;
17
- limit?: number;
18
- community_id?: CommunityId;
19
- saved_only?: boolean;
20
13
  };
@@ -1,7 +1,5 @@
1
- import type { CommentView } from "./CommentView";
2
1
  import type { CommunityModeratorView } from "./CommunityModeratorView";
3
2
  import type { PersonView } from "./PersonView";
4
- import type { PostView } from "./PostView";
5
3
  import type { Site } from "./Site";
6
4
  /**
7
5
  * A person's details response.
@@ -9,7 +7,5 @@ import type { Site } from "./Site";
9
7
  export type GetPersonDetailsResponse = {
10
8
  person_view: PersonView;
11
9
  site?: Site;
12
- comments: Array<CommentView>;
13
- posts: Array<PostView>;
14
10
  moderates: Array<CommunityModeratorView>;
15
11
  };
@@ -16,6 +16,7 @@ export type GetPosts = {
16
16
  community_id?: CommunityId;
17
17
  community_name?: string;
18
18
  saved_only?: boolean;
19
+ read_only?: boolean;
19
20
  liked_only?: boolean;
20
21
  disliked_only?: boolean;
21
22
  show_hidden?: boolean;
@@ -27,6 +28,10 @@ export type GetPosts = {
27
28
  * If true, then show the nsfw posts (even if your user setting is to hide them)
28
29
  */
29
30
  show_nsfw?: boolean;
31
+ /**
32
+ * If false, then show posts with media attached (even if your user setting is to hide them)
33
+ */
34
+ hide_media?: boolean;
30
35
  /**
31
36
  * Whether to automatically mark fetched posts as read.
32
37
  */
@@ -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
  };
@@ -15,14 +15,6 @@ export type GetSiteResponse = {
15
15
  version: string;
16
16
  all_languages: Array<Language>;
17
17
  discussion_languages: Array<LanguageId>;
18
- /**
19
- * deprecated, use field `tagline` or /api/v3/tagline/list
20
- */
21
- taglines: Array<null>;
22
- /**
23
- * deprecated, use /api/v3/custom_emoji/list
24
- */
25
- custom_emojis: Array<null>;
26
18
  /**
27
19
  * If the site has any taglines, a random one is included here for displaying
28
20
  */
@@ -33,4 +25,5 @@ export type GetSiteResponse = {
33
25
  oauth_providers?: Array<PublicOAuthProvider>;
34
26
  admin_oauth_providers?: Array<OAuthProvider>;
35
27
  blocked_urls: Array<LocalSiteUrlBlocklist>;
28
+ image_upload_disabled: boolean;
36
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
  };
@@ -0,0 +1,4 @@
1
+ export type ImageGetParams = {
2
+ file_type?: string;
3
+ max_size?: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type ImageProxyParams = {
2
+ url: string;
3
+ file_type?: string;
4
+ max_size?: number;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * like PaginationCursor but for the report_combined table
3
+ */
4
+ export type InboxCombinedPaginationCursor = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type { CommentReplyView } from "./CommentReplyView";
2
+ import type { PersonCommentMentionView } from "./PersonCommentMentionView";
3
+ import type { PersonPostMentionView } from "./PersonPostMentionView";
4
+ import type { PrivateMessageView } from "./PrivateMessageView";
5
+ export type InboxCombinedView = ({
6
+ type_: "CommentReply";
7
+ } & CommentReplyView) | ({
8
+ type_: "CommentMention";
9
+ } & PersonCommentMentionView) | ({
10
+ type_: "PostMention";
11
+ } & PersonPostMentionView) | ({
12
+ type_: "PrivateMessage";
13
+ } & PrivateMessageView);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A list of possible types for the inbox.
3
+ */
4
+ export type InboxDataType = "All" | "CommentReply" | "CommentMention" | "PostMention" | "PrivateMessage";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,10 @@ export type LemmyErrorType = {
41
41
  error: "no_content_type_header";
42
42
  } | {
43
43
  error: "not_an_image_type";
44
+ } | {
45
+ error: "invalid_image_upload";
46
+ } | {
47
+ error: "image_upload_disabled";
44
48
  } | {
45
49
  error: "not_a_mod_or_admin";
46
50
  } | {
@@ -191,7 +195,7 @@ export type LemmyErrorType = {
191
195
  } | {
192
196
  error: "couldnt_update_replies";
193
197
  } | {
194
- error: "couldnt_update_person_mentions";
198
+ error: "couldnt_update_person_comment_mentions";
195
199
  } | {
196
200
  error: "couldnt_create_post";
197
201
  } | {
@@ -204,8 +208,6 @@ export type LemmyErrorType = {
204
208
  error: "couldnt_set_all_registrations_accepted";
205
209
  } | {
206
210
  error: "couldnt_set_all_email_verified";
207
- } | {
208
- error: "banned";
209
211
  } | {
210
212
  error: "blocked_url";
211
213
  } | {
@@ -0,0 +1,11 @@
1
+ import type { InboxCombinedPaginationCursor } from "./InboxCombinedPaginationCursor";
2
+ import type { InboxDataType } from "./InboxDataType";
3
+ /**
4
+ * Get your inbox (replies, comment mentions, post mentions, and messages)
5
+ */
6
+ export type ListInbox = {
7
+ type_?: InboxDataType;
8
+ unread_only?: boolean;
9
+ page_cursor?: InboxCombinedPaginationCursor;
10
+ page_back?: boolean;
11
+ };
@@ -0,0 +1,7 @@
1
+ import type { InboxCombinedView } from "./InboxCombinedView";
2
+ /**
3
+ * Get your inbox (replies, comment mentions, post mentions, and messages)
4
+ */
5
+ export type ListInboxResponse = {
6
+ inbox: Array<InboxCombinedView>;
7
+ };
@@ -0,0 +1,18 @@
1
+ import type { PersonContentCombinedPaginationCursor } from "./PersonContentCombinedPaginationCursor";
2
+ import type { PersonContentType } from "./PersonContentType";
3
+ import type { PersonId } from "./PersonId";
4
+ /**
5
+ * Gets a person's content (posts and comments)
6
+ *
7
+ * Either person_id, or username are required.
8
+ */
9
+ export type ListPersonContent = {
10
+ type_?: PersonContentType;
11
+ person_id?: PersonId;
12
+ /**
13
+ * Example: dessalines , or dessalines@xyz.tld
14
+ */
15
+ username?: string;
16
+ page_cursor?: PersonContentCombinedPaginationCursor;
17
+ page_back?: boolean;
18
+ };
@@ -0,0 +1,7 @@
1
+ import type { PersonContentCombinedView } from "./PersonContentCombinedView";
2
+ /**
3
+ * A person's content response.
4
+ */
5
+ export type ListPersonContentResponse = {
6
+ content: Array<PersonContentCombinedView>;
7
+ };
@@ -0,0 +1,10 @@
1
+ import type { PersonContentType } from "./PersonContentType";
2
+ import type { PersonSavedCombinedPaginationCursor } from "./PersonSavedCombinedPaginationCursor";
3
+ /**
4
+ * Gets your saved posts and comments
5
+ */
6
+ export type ListPersonSaved = {
7
+ type_?: PersonContentType;
8
+ page_cursor?: PersonSavedCombinedPaginationCursor;
9
+ page_back?: boolean;
10
+ };
@@ -0,0 +1,7 @@
1
+ import type { PersonContentCombinedView } from "./PersonContentCombinedView";
2
+ /**
3
+ * A person's saved content response.
4
+ */
5
+ export type ListPersonSavedResponse = {
6
+ saved: Array<PersonContentCombinedView>;
7
+ };
@@ -1,5 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { PostId } from "./PostId";
2
3
  import type { ReportCombinedPaginationCursor } from "./ReportCombinedPaginationCursor";
4
+ import type { ReportType } from "./ReportType";
3
5
  /**
4
6
  * List reports.
5
7
  */
@@ -8,10 +10,22 @@ export type ListReports = {
8
10
  * Only shows the unresolved reports
9
11
  */
10
12
  unresolved_only?: boolean;
13
+ /**
14
+ * Filter the type of report.
15
+ */
16
+ type_?: ReportType;
17
+ /**
18
+ * Filter by the post id. Can return either comment or post reports.
19
+ */
20
+ post_id?: PostId;
11
21
  /**
12
22
  * if no community is given, it returns reports for all communities moderated by the auth user
13
23
  */
14
24
  community_id?: CommunityId;
15
25
  page_cursor?: ReportCombinedPaginationCursor;
16
26
  page_back?: boolean;
27
+ /**
28
+ * Only for admins: also show reports destined to community mods
29
+ */
30
+ show_mod_reports?: boolean;
17
31
  };
@@ -2,6 +2,5 @@ import type { LocalUserId } from "./LocalUserId";
2
2
  export type LocalImage = {
3
3
  local_user_id?: LocalUserId;
4
4
  pictrs_alias: string;
5
- pictrs_delete_token: string;
6
5
  published: string;
7
6
  };
@@ -113,4 +113,9 @@ export type LocalSite = {
113
113
  * What kind of comment downvotes your site allows.
114
114
  */
115
115
  comment_downvotes: FederationMode;
116
+ /**
117
+ * If this is true, users will never see the dialog asking to support Lemmy development with
118
+ * donations.
119
+ */
120
+ disable_donation_dialog: boolean;
116
121
  };
@@ -84,4 +84,13 @@ export type LocalUser = {
84
84
  * Whether to automatically mark fetched posts as read.
85
85
  */
86
86
  auto_mark_fetched_posts_as_read: boolean;
87
+ /**
88
+ * The last time a donation request was shown to this user. If this is more than a year ago,
89
+ * a new notification request should be shown.
90
+ */
91
+ last_donation_notification: string;
92
+ /**
93
+ * Whether to hide posts containing images/videos
94
+ */
95
+ hide_media: boolean;
87
96
  };
@@ -0,0 +1,8 @@
1
+ import type { PersonCommentMentionId } from "./PersonCommentMentionId";
2
+ /**
3
+ * Mark a person mention as read.
4
+ */
5
+ export type MarkPersonCommentMentionAsRead = {
6
+ person_comment_mention_id: PersonCommentMentionId;
7
+ read: boolean;
8
+ };
@@ -0,0 +1,8 @@
1
+ import type { PersonPostMentionId } from "./PersonPostMentionId";
2
+ /**
3
+ * Mark a person mention as read.
4
+ */
5
+ export type MarkPersonPostMentionAsRead = {
6
+ person_post_mention_id: PersonPostMentionId;
7
+ read: boolean;
8
+ };
@@ -1,11 +1,12 @@
1
+ import type { ModAddId } from "./ModAddId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When someone is added as a site moderator.
4
5
  */
5
6
  export type ModAdd = {
6
- id: number;
7
+ id: ModAddId;
7
8
  mod_person_id: PersonId;
8
9
  other_person_id: PersonId;
9
10
  removed: boolean;
10
- when_: string;
11
+ published: string;
11
12
  };
@@ -1,13 +1,14 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { ModAddCommunityId } from "./ModAddCommunityId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  /**
4
5
  * When someone is added as a community moderator.
5
6
  */
6
7
  export type ModAddCommunity = {
7
- id: number;
8
+ id: ModAddCommunityId;
8
9
  mod_person_id: PersonId;
9
10
  other_person_id: PersonId;
10
11
  community_id: CommunityId;
11
12
  removed: boolean;
12
- when_: string;
13
+ published: string;
13
14
  };
@@ -0,0 +1 @@
1
+ export type ModAddCommunityId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,5 +8,5 @@ export type ModAddCommunityView = {
8
8
  mod_add_community: ModAddCommunity;
9
9
  moderator?: Person;
10
10
  community: Community;
11
- modded_person: Person;
11
+ other_person: Person;
12
12
  };
@@ -0,0 +1 @@
1
+ export type ModAddId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,5 +6,5 @@ import type { Person } from "./Person";
6
6
  export type ModAddView = {
7
7
  mod_add: ModAdd;
8
8
  moderator?: Person;
9
- modded_person: Person;
9
+ other_person: Person;
10
10
  };
@@ -1,13 +1,14 @@
1
+ import type { ModBanId } from "./ModBanId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When someone is banned from the site.
4
5
  */
5
6
  export type ModBan = {
6
- id: number;
7
+ id: ModBanId;
7
8
  mod_person_id: PersonId;
8
9
  other_person_id: PersonId;
9
10
  reason?: string;
10
11
  banned: boolean;
11
12
  expires?: string;
12
- when_: string;
13
+ published: string;
13
14
  };
@@ -1,15 +1,16 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  /**
4
5
  * When someone is banned from a community.
5
6
  */
6
7
  export type ModBanFromCommunity = {
7
- id: number;
8
+ id: ModBanFromCommunityId;
8
9
  mod_person_id: PersonId;
9
10
  other_person_id: PersonId;
10
11
  community_id: CommunityId;
11
12
  reason?: string;
12
13
  banned: boolean;
13
14
  expires?: string;
14
- when_: string;
15
+ published: string;
15
16
  };
@@ -0,0 +1 @@
1
+ export type ModBanFromCommunityId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,5 +8,5 @@ export type ModBanFromCommunityView = {
8
8
  mod_ban_from_community: ModBanFromCommunity;
9
9
  moderator?: Person;
10
10
  community: Community;
11
- banned_person: Person;
11
+ other_person: Person;
12
12
  };
@@ -0,0 +1 @@
1
+ export type ModBanId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,5 +6,5 @@ import type { Person } from "./Person";
6
6
  export type ModBanView = {
7
7
  mod_ban: ModBan;
8
8
  moderator?: Person;
9
- banned_person: Person;
9
+ other_person: Person;
10
10
  };