lemmy-js-client 1.0.0-merge-modlog-tables.2 → 1.0.0-merge-modlog-tables.4

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 (191) hide show
  1. package/dist/http.d.ts +2 -2
  2. package/dist/http.js +4 -3
  3. package/dist/index.d.ts +1 -87
  4. package/dist/index.js +3 -0
  5. package/dist/other_types.d.ts +3 -0
  6. package/dist/types/CommentReportView.d.ts +17 -12
  7. package/dist/types/CommentSlimView.d.ts +3 -4
  8. package/dist/types/CommunityReportView.d.ts +6 -0
  9. package/dist/types/CustomEmojiView.d.ts +5 -2
  10. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  11. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  12. package/dist/types/PostReportView.d.ts +17 -15
  13. package/dist/types/PrivateMessageReportView.d.ts +9 -3
  14. package/dist/types/RegistrationApplicationView.d.ts +5 -2
  15. package/dist/types/ReportCombinedView.d.ts +4 -4
  16. package/dist/types/SearchCombinedView.d.ts +8 -5
  17. package/dist/types/SiteView.d.ts +7 -4
  18. package/dist/types/VoteView.d.ts +10 -3
  19. package/package.json +2 -2
  20. package/dist/types/AdminAllowInstance.d.ts +0 -11
  21. package/dist/types/AdminAllowInstance.js +0 -2
  22. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  23. package/dist/types/AdminAllowInstanceId.js +0 -3
  24. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  25. package/dist/types/AdminAllowInstanceView.js +0 -2
  26. package/dist/types/AdminBlockInstance.d.ts +0 -12
  27. package/dist/types/AdminBlockInstance.js +0 -2
  28. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  29. package/dist/types/AdminBlockInstanceId.js +0 -3
  30. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  31. package/dist/types/AdminBlockInstanceView.js +0 -2
  32. package/dist/types/AdminPurgeComment.d.ts +0 -9
  33. package/dist/types/AdminPurgeComment.js +0 -2
  34. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  35. package/dist/types/AdminPurgeCommentId.js +0 -3
  36. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  37. package/dist/types/AdminPurgeCommentView.js +0 -2
  38. package/dist/types/AdminPurgeCommunity.d.ts +0 -7
  39. package/dist/types/AdminPurgeCommunity.js +0 -2
  40. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  41. package/dist/types/AdminPurgeCommunityId.js +0 -3
  42. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  43. package/dist/types/AdminPurgeCommunityView.js +0 -2
  44. package/dist/types/AdminPurgePerson.d.ts +0 -7
  45. package/dist/types/AdminPurgePerson.js +0 -2
  46. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  47. package/dist/types/AdminPurgePersonId.js +0 -3
  48. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  49. package/dist/types/AdminPurgePersonView.js +0 -2
  50. package/dist/types/AdminPurgePost.d.ts +0 -9
  51. package/dist/types/AdminPurgePost.js +0 -2
  52. package/dist/types/AdminPurgePostId.d.ts +0 -1
  53. package/dist/types/AdminPurgePostId.js +0 -3
  54. package/dist/types/AdminPurgePostView.d.ts +0 -11
  55. package/dist/types/AdminPurgePostView.js +0 -2
  56. package/dist/types/CommentAggregates.d.ts +0 -9
  57. package/dist/types/CommentAggregates.js +0 -2
  58. package/dist/types/CommentReply.d.ts +0 -10
  59. package/dist/types/CommentReply.js +0 -2
  60. package/dist/types/CommentReplyId.d.ts +0 -1
  61. package/dist/types/CommentReplyId.js +0 -3
  62. package/dist/types/CommentReplyView.d.ts +0 -27
  63. package/dist/types/CommentReplyView.js +0 -2
  64. package/dist/types/CommunityAggregates.d.ts +0 -13
  65. package/dist/types/CommunityAggregates.js +0 -2
  66. package/dist/types/FederationError.d.ts +0 -10
  67. package/dist/types/FederationError.js +0 -3
  68. package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
  69. package/dist/types/InboxCombinedPaginationCursor.js +0 -3
  70. package/dist/types/InboxCombinedView.d.ts +0 -13
  71. package/dist/types/InboxCombinedView.js +0 -2
  72. package/dist/types/InboxDataType.d.ts +0 -4
  73. package/dist/types/InboxDataType.js +0 -3
  74. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -8
  75. package/dist/types/LocalUserVoteDisplayMode.js +0 -2
  76. package/dist/types/ModAdd.d.ts +0 -8
  77. package/dist/types/ModAdd.js +0 -2
  78. package/dist/types/ModAddCommunity.d.ts +0 -10
  79. package/dist/types/ModAddCommunity.js +0 -2
  80. package/dist/types/ModAddCommunityId.d.ts +0 -1
  81. package/dist/types/ModAddCommunityId.js +0 -3
  82. package/dist/types/ModAddCommunityView.d.ts +0 -12
  83. package/dist/types/ModAddCommunityView.js +0 -2
  84. package/dist/types/ModAddId.d.ts +0 -1
  85. package/dist/types/ModAddId.js +0 -3
  86. package/dist/types/ModAddView.d.ts +0 -10
  87. package/dist/types/ModAddView.js +0 -2
  88. package/dist/types/ModBan.d.ts +0 -10
  89. package/dist/types/ModBan.js +0 -2
  90. package/dist/types/ModBanFromCommunity.d.ts +0 -12
  91. package/dist/types/ModBanFromCommunity.js +0 -2
  92. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  93. package/dist/types/ModBanFromCommunityId.js +0 -3
  94. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  95. package/dist/types/ModBanFromCommunityView.js +0 -2
  96. package/dist/types/ModBanId.d.ts +0 -1
  97. package/dist/types/ModBanId.js +0 -3
  98. package/dist/types/ModBanView.d.ts +0 -10
  99. package/dist/types/ModBanView.js +0 -2
  100. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
  101. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  102. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  103. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  104. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  105. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  106. package/dist/types/ModFeaturePost.d.ts +0 -10
  107. package/dist/types/ModFeaturePost.js +0 -2
  108. package/dist/types/ModFeaturePostId.d.ts +0 -1
  109. package/dist/types/ModFeaturePostId.js +0 -3
  110. package/dist/types/ModFeaturePostView.d.ts +0 -14
  111. package/dist/types/ModFeaturePostView.js +0 -2
  112. package/dist/types/ModHideCommunity.d.ts +0 -10
  113. package/dist/types/ModHideCommunity.js +0 -2
  114. package/dist/types/ModHideCommunityId.d.ts +0 -1
  115. package/dist/types/ModHideCommunityId.js +0 -3
  116. package/dist/types/ModHideCommunityView.d.ts +0 -11
  117. package/dist/types/ModHideCommunityView.js +0 -2
  118. package/dist/types/ModLockPost.d.ts +0 -9
  119. package/dist/types/ModLockPost.js +0 -2
  120. package/dist/types/ModLockPostId.d.ts +0 -1
  121. package/dist/types/ModLockPostId.js +0 -3
  122. package/dist/types/ModLockPostView.d.ts +0 -14
  123. package/dist/types/ModLockPostView.js +0 -2
  124. package/dist/types/ModRemoveComment.d.ts +0 -10
  125. package/dist/types/ModRemoveComment.js +0 -2
  126. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  127. package/dist/types/ModRemoveCommentId.js +0 -3
  128. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  129. package/dist/types/ModRemoveCommentView.js +0 -2
  130. package/dist/types/ModRemoveCommunity.d.ts +0 -10
  131. package/dist/types/ModRemoveCommunity.js +0 -2
  132. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  133. package/dist/types/ModRemoveCommunityId.js +0 -3
  134. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  135. package/dist/types/ModRemoveCommunityView.js +0 -2
  136. package/dist/types/ModRemovePost.d.ts +0 -10
  137. package/dist/types/ModRemovePost.js +0 -2
  138. package/dist/types/ModRemovePostId.d.ts +0 -1
  139. package/dist/types/ModRemovePostId.js +0 -3
  140. package/dist/types/ModRemovePostView.d.ts +0 -14
  141. package/dist/types/ModRemovePostView.js +0 -2
  142. package/dist/types/ModTransferCommunity.d.ts +0 -9
  143. package/dist/types/ModTransferCommunity.js +0 -2
  144. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  145. package/dist/types/ModTransferCommunityId.js +0 -3
  146. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  147. package/dist/types/ModTransferCommunityView.js +0 -2
  148. package/dist/types/ModlogActionType.d.ts +0 -1
  149. package/dist/types/ModlogActionType.js +0 -3
  150. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  151. package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
  152. package/dist/types/ModlogCombinedView.d.ts +0 -52
  153. package/dist/types/ModlogCombinedView.js +0 -2
  154. package/dist/types/PersonAggregates.d.ts +0 -6
  155. package/dist/types/PersonAggregates.js +0 -2
  156. package/dist/types/PersonCommentMention.d.ts +0 -13
  157. package/dist/types/PersonCommentMention.js +0 -2
  158. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  159. package/dist/types/PersonCommentMentionId.js +0 -3
  160. package/dist/types/PersonCommentMentionView.d.ts +0 -27
  161. package/dist/types/PersonCommentMentionView.js +0 -2
  162. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  163. package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
  164. package/dist/types/PersonMention.d.ts +0 -10
  165. package/dist/types/PersonMention.js +0 -2
  166. package/dist/types/PersonMentionId.d.ts +0 -1
  167. package/dist/types/PersonMentionId.js +0 -3
  168. package/dist/types/PersonPostMention.d.ts +0 -13
  169. package/dist/types/PersonPostMention.js +0 -2
  170. package/dist/types/PersonPostMentionId.d.ts +0 -4
  171. package/dist/types/PersonPostMentionId.js +0 -3
  172. package/dist/types/PersonPostMentionView.d.ts +0 -27
  173. package/dist/types/PersonPostMentionView.js +0 -2
  174. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  175. package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
  176. package/dist/types/PostAggregates.d.ts +0 -10
  177. package/dist/types/PostAggregates.js +0 -2
  178. package/dist/types/PostPaginationCursor.d.ts +0 -7
  179. package/dist/types/PostPaginationCursor.js +0 -3
  180. package/dist/types/PostTags.d.ts +0 -7
  181. package/dist/types/PostTags.js +0 -2
  182. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  183. package/dist/types/ReportCombinedPaginationCursor.js +0 -3
  184. package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
  185. package/dist/types/SearchCombinedPaginationCursor.js +0 -3
  186. package/dist/types/SiteAggregates.d.ts +0 -12
  187. package/dist/types/SiteAggregates.js +0 -2
  188. package/dist/types/SortType.d.ts +0 -1
  189. package/dist/types/SortType.js +0 -3
  190. package/dist/types/SubscribedType.d.ts +0 -1
  191. package/dist/types/SubscribedType.js +0 -3
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage, GetFederatedInstancesI } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  import { AddModToCommunity } from "./types/AddModToCommunity";
@@ -670,7 +670,7 @@ export declare class LemmyHttp extends Controller {
670
670
  /**
671
671
  * @summary Fetch federated instances.
672
672
  */
673
- getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
673
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
674
674
  /**
675
675
  * @summary List user reports.
676
676
  */
package/dist/http.js CHANGED
@@ -805,8 +805,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
805
805
  /**
806
806
  * @summary Fetch federated instances.
807
807
  */
808
- async getFederatedInstances(options) {
809
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
808
+ async getFederatedInstances(form, options) {
809
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form, options);
810
810
  }
811
811
  /**
812
812
  * @summary List user reports.
@@ -1889,7 +1889,8 @@ __decorate([
1889
1889
  __decorate([
1890
1890
  (0, runtime_1.Get)("/federated_instances"),
1891
1891
  (0, runtime_1.Tags)("Miscellaneous"),
1892
- __param(0, (0, runtime_1.Inject)())
1892
+ __param(0, (0, runtime_1.Queries)()),
1893
+ __param(1, (0, runtime_1.Inject)())
1893
1894
  ], LemmyHttp.prototype, "getFederatedInstances", null);
1894
1895
  __decorate([
1895
1896
  (0, runtime_1.Security)("bearerAuth"),
package/dist/index.d.ts CHANGED
@@ -5,29 +5,11 @@ export { AddAdmin } from "./types/AddAdmin";
5
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
- export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
- export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
8
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
- export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
12
- export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
- export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
9
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
- export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
10
  export { AdminListUsers } from "./types/AdminListUsers";
17
11
  export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
18
- export { AdminPurgeComment } from "./types/AdminPurgeComment";
19
- export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
20
- export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
21
- export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
22
- export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
23
- export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
24
- export { AdminPurgePerson } from "./types/AdminPurgePerson";
25
- export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
26
- export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
27
- export { AdminPurgePost } from "./types/AdminPurgePost";
28
- export { AdminPurgePostId } from "./types/AdminPurgePostId";
29
- export { AdminPurgePostView } from "./types/AdminPurgePostView";
30
- export {} from "./types/AllLemmyErrors";
12
+ export { AllLemmyErrors } from "./types/AllLemmyErrors";
31
13
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
32
14
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
33
15
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
@@ -40,11 +22,7 @@ export { CaptchaResponse } from "./types/CaptchaResponse";
40
22
  export { ChangePassword } from "./types/ChangePassword";
41
23
  export { Comment } from "./types/Comment";
42
24
  export { CommentActions } from "./types/CommentActions";
43
- export { CommentAggregates } from "./types/CommentAggregates";
44
25
  export { CommentId } from "./types/CommentId";
45
- export { CommentReply } from "./types/CommentReply";
46
- export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyView } from "./types/CommentReplyView";
48
26
  export { CommentReport } from "./types/CommentReport";
49
27
  export { CommentReportId } from "./types/CommentReportId";
50
28
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -55,7 +33,6 @@ export { CommentSortType } from "./types/CommentSortType";
55
33
  export { CommentView } from "./types/CommentView";
56
34
  export { Community } from "./types/Community";
57
35
  export { CommunityActions } from "./types/CommunityActions";
58
- export { CommunityAggregates } from "./types/CommunityAggregates";
59
36
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
60
37
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
61
38
  export { CommunityId } from "./types/CommunityId";
@@ -116,7 +93,6 @@ export { FeaturePost } from "./types/FeaturePost";
116
93
  export { FederatedInstanceView } from "./types/FederatedInstanceView";
117
94
  export { FederationAllowList } from "./types/FederationAllowList";
118
95
  export { FederationBlockList } from "./types/FederationBlockList";
119
- export { FederationError } from "./types/FederationError";
120
96
  export { FederationMode } from "./types/FederationMode";
121
97
  export { FederationQueueState } from "./types/FederationQueueState";
122
98
  export { FollowCommunity } from "./types/FollowCommunity";
@@ -157,9 +133,6 @@ export { HidePost } from "./types/HidePost";
157
133
  export { ImageDetails } from "./types/ImageDetails";
158
134
  export { ImageGetParams } from "./types/ImageGetParams";
159
135
  export { ImageProxyParams } from "./types/ImageProxyParams";
160
- export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
161
- export { InboxCombinedView } from "./types/InboxCombinedView";
162
- export { InboxDataType } from "./types/InboxDataType";
163
136
  export { Instance } from "./types/Instance";
164
137
  export { InstanceActions } from "./types/InstanceActions";
165
138
  export { InstanceId } from "./types/InstanceId";
@@ -212,7 +185,6 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
212
185
  export { LocalUser } from "./types/LocalUser";
213
186
  export { LocalUserId } from "./types/LocalUserId";
214
187
  export { LocalUserView } from "./types/LocalUserView";
215
- export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
216
188
  export { LockComment } from "./types/LockComment";
217
189
  export { LockPost } from "./types/LockPost";
218
190
  export { Login } from "./types/Login";
@@ -221,47 +193,8 @@ export { LoginToken } from "./types/LoginToken";
221
193
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
222
194
  export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
223
195
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
224
- export { ModAdd } from "./types/ModAdd";
225
- export { ModAddCommunity } from "./types/ModAddCommunity";
226
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
227
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
228
- export { ModAddId } from "./types/ModAddId";
229
- export { ModAddView } from "./types/ModAddView";
230
- export { ModBan } from "./types/ModBan";
231
- export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
232
- export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
233
- export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
234
- export { ModBanId } from "./types/ModBanId";
235
- export { ModBanView } from "./types/ModBanView";
236
- export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
237
- export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
238
- export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
239
196
  export { ModEditPost } from "./types/ModEditPost";
240
- export { ModFeaturePost } from "./types/ModFeaturePost";
241
- export { ModFeaturePostId } from "./types/ModFeaturePostId";
242
- export { ModFeaturePostView } from "./types/ModFeaturePostView";
243
- export { ModHideCommunity } from "./types/ModHideCommunity";
244
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
245
- export { ModHideCommunityView } from "./types/ModHideCommunityView";
246
- export { ModLockPost } from "./types/ModLockPost";
247
- export { ModLockPostId } from "./types/ModLockPostId";
248
- export { ModLockPostView } from "./types/ModLockPostView";
249
- export { ModRemoveComment } from "./types/ModRemoveComment";
250
- export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
251
- export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
252
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
253
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
254
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
255
- export { ModRemovePost } from "./types/ModRemovePost";
256
- export { ModRemovePostId } from "./types/ModRemovePostId";
257
- export { ModRemovePostView } from "./types/ModRemovePostView";
258
- export { ModTransferCommunity } from "./types/ModTransferCommunity";
259
- export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
260
- export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
261
197
  export { Modlog } from "./types/Modlog";
262
- export { ModlogActionType } from "./types/ModlogActionType";
263
- export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
264
- export { ModlogCombinedView } from "./types/ModlogCombinedView";
265
198
  export { ModlogId } from "./types/ModlogId";
266
199
  export { ModlogKind } from "./types/ModlogKind";
267
200
  export { ModlogView } from "./types/ModlogView";
@@ -290,41 +223,27 @@ export { PendingFollow } from "./types/PendingFollow";
290
223
  export { PendingFollowerView } from "./types/PendingFollowerView";
291
224
  export { Person } from "./types/Person";
292
225
  export { PersonActions } from "./types/PersonActions";
293
- export { PersonAggregates } from "./types/PersonAggregates";
294
- export { PersonCommentMention } from "./types/PersonCommentMention";
295
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
296
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
297
- export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
298
226
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
299
227
  export { PersonContentType } from "./types/PersonContentType";
300
228
  export { PersonId } from "./types/PersonId";
301
229
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
302
- export { PersonMention } from "./types/PersonMention";
303
- export { PersonMentionId } from "./types/PersonMentionId";
304
- export { PersonPostMention } from "./types/PersonPostMention";
305
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
306
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
307
230
  export { PersonResponse } from "./types/PersonResponse";
308
- export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
309
231
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
310
232
  export { PersonView } from "./types/PersonView";
311
233
  export { PluginMetadata } from "./types/PluginMetadata";
312
234
  export { Post } from "./types/Post";
313
235
  export { PostActions } from "./types/PostActions";
314
- export { PostAggregates } from "./types/PostAggregates";
315
236
  export { PostFeatureType } from "./types/PostFeatureType";
316
237
  export { PostId } from "./types/PostId";
317
238
  export { PostListingMode } from "./types/PostListingMode";
318
239
  export { PostNotificationsMode } from "./types/PostNotificationsMode";
319
240
  export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
320
- export { PostPaginationCursor } from "./types/PostPaginationCursor";
321
241
  export { PostReport } from "./types/PostReport";
322
242
  export { PostReportId } from "./types/PostReportId";
323
243
  export { PostReportResponse } from "./types/PostReportResponse";
324
244
  export { PostReportView } from "./types/PostReportView";
325
245
  export { PostResponse } from "./types/PostResponse";
326
246
  export { PostSortType } from "./types/PostSortType";
327
- export { PostTags } from "./types/PostTags";
328
247
  export { PostView } from "./types/PostView";
329
248
  export { PrivateMessage } from "./types/PrivateMessage";
330
249
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -349,7 +268,6 @@ export { RegistrationMode } from "./types/RegistrationMode";
349
268
  export { RemoveComment } from "./types/RemoveComment";
350
269
  export { RemoveCommunity } from "./types/RemoveCommunity";
351
270
  export { RemovePost } from "./types/RemovePost";
352
- export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
353
271
  export { ReportCombinedView } from "./types/ReportCombinedView";
354
272
  export { ReportType } from "./types/ReportType";
355
273
  export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
@@ -362,19 +280,15 @@ export { SaveComment } from "./types/SaveComment";
362
280
  export { SavePost } from "./types/SavePost";
363
281
  export { SaveUserSettings } from "./types/SaveUserSettings";
364
282
  export { Search } from "./types/Search";
365
- export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
366
283
  export { SearchCombinedView } from "./types/SearchCombinedView";
367
284
  export { SearchResponse } from "./types/SearchResponse";
368
285
  export { SearchSortType } from "./types/SearchSortType";
369
286
  export { SearchType } from "./types/SearchType";
370
287
  export { SensitiveString } from "./types/SensitiveString";
371
288
  export { Site } from "./types/Site";
372
- export { SiteAggregates } from "./types/SiteAggregates";
373
289
  export { SiteId } from "./types/SiteId";
374
290
  export { SiteResponse } from "./types/SiteResponse";
375
291
  export { SiteView } from "./types/SiteView";
376
- export { SortType } from "./types/SortType";
377
- export { SubscribedType } from "./types/SubscribedType";
378
292
  export { SuccessResponse } from "./types/SuccessResponse";
379
293
  export { Tag } from "./types/Tag";
380
294
  export { TagId } from "./types/TagId";
package/dist/index.js CHANGED
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.AllLemmyErrors = void 0;
17
18
  __exportStar(require("./http"), exports);
19
+ var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
20
+ Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
@@ -31,6 +31,7 @@ import { ListReports } from "./types/ListReports";
31
31
  import { ListTaglines } from "./types/ListTaglines";
32
32
  import { ResolveObject } from "./types/ResolveObject";
33
33
  import { Search } from "./types/Search";
34
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
34
35
  export declare const VERSION = "v4";
35
36
  export interface UploadImage {
36
37
  image: File | Buffer;
@@ -101,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
101
102
  }
102
103
  export interface GetMultiCommunityI extends GetMultiCommunity {
103
104
  }
105
+ export interface GetFederatedInstancesI extends GetFederatedInstances {
106
+ }
@@ -1,24 +1,29 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
2
+ import type { CommentActions } from "./CommentActions";
3
3
  import type { CommentReport } from "./CommentReport";
4
4
  import type { Community } from "./Community";
5
+ import type { CommunityActions } from "./CommunityActions";
5
6
  import type { Person } from "./Person";
7
+ import type { PersonActions } from "./PersonActions";
6
8
  import type { Post } from "./Post";
7
- import type { SubscribedType } from "./SubscribedType";
8
- export interface CommentReportView {
9
+ /**
10
+ * A comment report view.
11
+ */
12
+ export type CommentReportView = {
9
13
  comment_report: CommentReport;
10
14
  comment: Comment;
11
15
  post: Post;
12
16
  community: Community;
13
17
  creator: Person;
14
18
  comment_creator: Person;
15
- counts: CommentAggregates;
16
- creator_banned_from_community: boolean;
17
- creator_is_moderator: boolean;
18
- creator_is_admin: boolean;
19
- creator_blocked: boolean;
20
- subscribed: SubscribedType;
21
- saved: boolean;
22
- my_vote?: number;
19
+ comment_actions?: CommentActions;
23
20
  resolver?: Person;
24
- }
21
+ person_actions?: PersonActions;
22
+ community_actions?: CommunityActions;
23
+ creator_is_admin: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned: boolean;
26
+ creator_ban_expires_at?: string;
27
+ creator_banned_from_community: boolean;
28
+ creator_community_ban_expires_at?: string;
29
+ };
@@ -1,7 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { CommunityActions } from "./CommunityActions";
4
- import type { InstanceActions } from "./InstanceActions";
5
3
  import type { Person } from "./Person";
6
4
  import type { PersonActions } from "./PersonActions";
7
5
  /**
@@ -12,8 +10,9 @@ export type CommentSlimView = {
12
10
  creator: Person;
13
11
  comment_actions?: CommentActions;
14
12
  person_actions?: PersonActions;
15
- creator_community_actions?: CommunityActions;
16
- instance_actions?: InstanceActions;
17
13
  creator_is_admin: boolean;
18
14
  can_mod: boolean;
15
+ creator_banned: boolean;
16
+ creator_is_moderator: boolean;
17
+ creator_banned_from_community: boolean;
19
18
  };
@@ -9,4 +9,10 @@ export type CommunityReportView = {
9
9
  community: Community;
10
10
  creator: Person;
11
11
  resolver?: Person;
12
+ creator_is_admin: boolean;
13
+ creator_is_moderator: boolean;
14
+ creator_banned: boolean;
15
+ creator_ban_expires_at?: string;
16
+ creator_banned_from_community: boolean;
17
+ creator_community_ban_expires_at?: string;
12
18
  };
@@ -1,6 +1,9 @@
1
1
  import type { CustomEmoji } from "./CustomEmoji";
2
2
  import type { CustomEmojiKeyword } from "./CustomEmojiKeyword";
3
- export interface CustomEmojiView {
3
+ /**
4
+ * A custom emoji view.
5
+ */
6
+ export type CustomEmojiView = {
4
7
  custom_emoji: CustomEmoji;
5
8
  keywords: Array<CustomEmojiKeyword>;
6
- }
9
+ };
@@ -1,7 +1,7 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { PostView } from "./PostView";
3
3
  export type PersonContentCombinedView = ({
4
- type_: "Post";
4
+ type_: "post";
5
5
  } & PostView) | ({
6
- type_: "Comment";
6
+ type_: "comment";
7
7
  } & CommentView);
@@ -1,7 +1,7 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { PostView } from "./PostView";
3
3
  export type PersonSavedCombinedView = ({
4
- type_: "Post";
4
+ type_: "post";
5
5
  } & PostView) | ({
6
- type_: "Comment";
6
+ type_: "comment";
7
7
  } & CommentView);
@@ -1,25 +1,27 @@
1
1
  import type { Community } from "./Community";
2
+ import type { CommunityActions } from "./CommunityActions";
2
3
  import type { Person } from "./Person";
4
+ import type { PersonActions } from "./PersonActions";
3
5
  import type { Post } from "./Post";
4
- import type { PostAggregates } from "./PostAggregates";
6
+ import type { PostActions } from "./PostActions";
5
7
  import type { PostReport } from "./PostReport";
6
- import type { SubscribedType } from "./SubscribedType";
7
- export interface PostReportView {
8
+ /**
9
+ * A post report view.
10
+ */
11
+ export type PostReportView = {
8
12
  post_report: PostReport;
9
13
  post: Post;
10
14
  community: Community;
11
15
  creator: Person;
12
16
  post_creator: Person;
13
- creator_banned_from_community: boolean;
14
- creator_is_moderator: boolean;
15
- creator_is_admin: boolean;
16
- subscribed: SubscribedType;
17
- saved: boolean;
18
- read: boolean;
19
- hidden: boolean;
20
- creator_blocked: boolean;
21
- my_vote?: number;
22
- unread_comments: number;
23
- counts: PostAggregates;
17
+ community_actions?: CommunityActions;
18
+ post_actions?: PostActions;
19
+ person_actions?: PersonActions;
24
20
  resolver?: Person;
25
- }
21
+ creator_is_admin: boolean;
22
+ creator_is_moderator: boolean;
23
+ creator_banned: boolean;
24
+ creator_ban_expires_at?: string;
25
+ creator_banned_from_community: boolean;
26
+ creator_community_ban_expires_at?: string;
27
+ };
@@ -1,10 +1,16 @@
1
1
  import type { Person } from "./Person";
2
2
  import type { PrivateMessage } from "./PrivateMessage";
3
3
  import type { PrivateMessageReport } from "./PrivateMessageReport";
4
- export interface PrivateMessageReportView {
4
+ /**
5
+ * A private message report view.
6
+ */
7
+ export type PrivateMessageReportView = {
5
8
  private_message_report: PrivateMessageReport;
6
9
  private_message: PrivateMessage;
7
- private_message_creator: Person;
8
10
  creator: Person;
11
+ private_message_creator: Person;
9
12
  resolver?: Person;
10
- }
13
+ creator_is_admin: boolean;
14
+ creator_banned: boolean;
15
+ creator_ban_expires_at?: string;
16
+ };
@@ -1,9 +1,12 @@
1
1
  import type { LocalUser } from "./LocalUser";
2
2
  import type { Person } from "./Person";
3
3
  import type { RegistrationApplication } from "./RegistrationApplication";
4
- export interface RegistrationApplicationView {
4
+ /**
5
+ * A registration application view.
6
+ */
7
+ export type RegistrationApplicationView = {
5
8
  registration_application: RegistrationApplication;
6
9
  creator_local_user: LocalUser;
7
10
  creator: Person;
8
11
  admin?: Person;
9
- }
12
+ };
@@ -3,11 +3,11 @@ import type { CommunityReportView } from "./CommunityReportView";
3
3
  import type { PostReportView } from "./PostReportView";
4
4
  import type { PrivateMessageReportView } from "./PrivateMessageReportView";
5
5
  export type ReportCombinedView = ({
6
- type_: "Post";
6
+ type_: "post";
7
7
  } & PostReportView) | ({
8
- type_: "Comment";
8
+ type_: "comment";
9
9
  } & CommentReportView) | ({
10
- type_: "PrivateMessage";
10
+ type_: "private_message";
11
11
  } & PrivateMessageReportView) | ({
12
- type_: "Community";
12
+ type_: "community";
13
13
  } & CommunityReportView);
@@ -1,13 +1,16 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { CommunityView } from "./CommunityView";
3
+ import type { MultiCommunityView } from "./MultiCommunityView";
3
4
  import type { PersonView } from "./PersonView";
4
5
  import type { PostView } from "./PostView";
5
6
  export type SearchCombinedView = ({
6
- type_: "Post";
7
+ type_: "post";
7
8
  } & PostView) | ({
8
- type_: "Comment";
9
+ type_: "comment";
9
10
  } & CommentView) | ({
10
- type_: "Community";
11
+ type_: "community";
11
12
  } & CommunityView) | ({
12
- type_: "Person";
13
- } & PersonView);
13
+ type_: "person";
14
+ } & PersonView) | ({
15
+ type_: "multi_community";
16
+ } & MultiCommunityView);
@@ -1,10 +1,13 @@
1
+ import type { Instance } from "./Instance";
1
2
  import type { LocalSite } from "./LocalSite";
2
3
  import type { LocalSiteRateLimit } from "./LocalSiteRateLimit";
3
4
  import type { Site } from "./Site";
4
- import type { SiteAggregates } from "./SiteAggregates";
5
- export interface SiteView {
5
+ /**
6
+ * A site view.
7
+ */
8
+ export type SiteView = {
6
9
  site: Site;
7
10
  local_site: LocalSite;
8
11
  local_site_rate_limit: LocalSiteRateLimit;
9
- counts: SiteAggregates;
10
- }
12
+ instance: Instance;
13
+ };
@@ -1,6 +1,13 @@
1
1
  import type { Person } from "./Person";
2
- export interface VoteView {
2
+ /**
3
+ * A vote view for checking a post or comments votes.
4
+ */
5
+ export type VoteView = {
3
6
  creator: Person;
7
+ creator_banned: boolean;
4
8
  creator_banned_from_community: boolean;
5
- score: number;
6
- }
9
+ /**
10
+ * True means Upvote, False means Downvote.
11
+ */
12
+ is_upvote: boolean;
13
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-merge-modlog-tables.2",
4
+ "version": "1.0.0-merge-modlog-tables.4",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "typescript": "^5.5.4",
45
45
  "typescript-eslint": "^8.7.0"
46
46
  },
47
- "packageManager": "pnpm@10.18.3",
47
+ "packageManager": "pnpm@10.19.0",
48
48
  "types": "./dist/index.d.ts",
49
49
  "lint-staged": {
50
50
  "*.{ts,tsx,js}": [
@@ -1,11 +0,0 @@
1
- import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
- export type AdminAllowInstance = {
5
- id: AdminAllowInstanceId;
6
- instance_id: InstanceId;
7
- admin_person_id: PersonId;
8
- allowed: boolean;
9
- reason?: string;
10
- published: string;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminAllowInstanceId = number;
@@ -1,3 +0,0 @@
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 });
@@ -1,11 +0,0 @@
1
- import type { AdminAllowInstance } from "./AdminAllowInstance";
2
- import type { Instance } from "./Instance";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminAllowInstanceView = {
8
- admin_allow_instance: AdminAllowInstance;
9
- instance: Instance;
10
- admin?: Person;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
- export type AdminBlockInstance = {
5
- id: AdminBlockInstanceId;
6
- instance_id: InstanceId;
7
- admin_person_id: PersonId;
8
- blocked: boolean;
9
- reason?: string;
10
- expires?: string;
11
- published: string;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type AdminBlockInstanceId = number;
@@ -1,3 +0,0 @@
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 });
@@ -1,11 +0,0 @@
1
- import type { AdminBlockInstance } from "./AdminBlockInstance";
2
- import type { Instance } from "./Instance";
3
- import type { Person } from "./Person";
4
- /**
5
- * When an admin purges a post.
6
- */
7
- export type AdminBlockInstanceView = {
8
- admin_block_instance: AdminBlockInstance;
9
- instance: Instance;
10
- admin?: Person;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- import type { PostId } from "./PostId";
3
- export interface AdminPurgeComment {
4
- id: number;
5
- admin_person_id: PersonId;
6
- post_id: PostId;
7
- reason?: string;
8
- when_: string;
9
- }