lemmy-js-client 1.0.0-bool-vote.1 → 1.0.0-change-api-routes.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 (181) hide show
  1. package/dist/http.d.ts +5 -6
  2. package/dist/http.js +32 -32
  3. package/dist/index.d.ts +11 -59
  4. package/dist/other_types.d.ts +3 -3
  5. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  6. package/dist/types/ChangePassword.d.ts +4 -0
  7. package/dist/types/CommentSortType.d.ts +1 -1
  8. package/dist/types/CommunityActions.d.ts +4 -4
  9. package/dist/types/CommunityFollowerState.d.ts +1 -1
  10. package/dist/types/CommunityNotificationsMode.d.ts +1 -1
  11. package/dist/types/CommunitySortType.d.ts +1 -1
  12. package/dist/types/CommunityVisibility.d.ts +1 -1
  13. package/dist/types/CreateCommentLike.d.ts +3 -0
  14. package/dist/types/CreatePostLike.d.ts +3 -0
  15. package/dist/types/FederatedInstanceView.d.ts +12 -0
  16. package/dist/types/FederationAllowList.d.ts +4 -0
  17. package/dist/types/FederationBlockList.d.ts +0 -2
  18. package/dist/types/FederationBlockList.js +1 -0
  19. package/dist/types/FederationMode.d.ts +1 -1
  20. package/dist/types/FederationQueueState.d.ts +18 -0
  21. package/dist/types/GetFederatedInstances.d.ts +9 -0
  22. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  23. package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
  24. package/dist/types/GetModlog.d.ts +2 -2
  25. package/dist/types/GetModlogResponse.d.ts +2 -2
  26. package/dist/types/GetPosts.d.ts +1 -0
  27. package/dist/types/LikeType.d.ts +1 -1
  28. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  29. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  30. package/dist/types/ListingType.d.ts +1 -1
  31. package/dist/types/Login.d.ts +4 -0
  32. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  33. package/dist/types/Modlog.d.ts +10 -0
  34. package/dist/types/ModlogId.d.ts +1 -0
  35. package/dist/types/ModlogKind.d.ts +4 -0
  36. package/dist/types/ModlogView.d.ts +15 -0
  37. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  38. package/dist/types/Notification.d.ts +2 -20
  39. package/dist/types/NotificationData.d.ts +6 -33
  40. package/dist/types/NotificationDataType.d.ts +1 -1
  41. package/dist/types/NotificationType.d.ts +1 -1
  42. package/dist/types/PendingFollowerView.d.ts +9 -0
  43. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  44. package/dist/types/PersonContentType.d.ts +1 -1
  45. package/dist/types/PersonLikedCombinedView.d.ts +2 -2
  46. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  47. package/dist/types/PostFeatureType.d.ts +1 -1
  48. package/dist/types/PostListingMode.d.ts +1 -1
  49. package/dist/types/PostNotificationsMode.d.ts +1 -1
  50. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
  51. package/dist/types/PostSortType.d.ts +1 -1
  52. package/dist/types/Register.d.ts +4 -0
  53. package/dist/types/RegistrationMode.d.ts +1 -1
  54. package/dist/types/ReportCombinedView.d.ts +4 -4
  55. package/dist/types/ReportType.d.ts +1 -1
  56. package/dist/types/SearchCombinedView.d.ts +5 -5
  57. package/dist/types/SearchSortType.d.ts +1 -1
  58. package/dist/types/SearchType.d.ts +1 -1
  59. package/dist/types/UntranslatedError.d.ts +3 -1
  60. package/dist/types/UserSettingsBackup.d.ts +2 -0
  61. package/dist/types/VoteShow.d.ts +1 -1
  62. package/dist/types/VoteView.d.ts +3 -0
  63. package/package.json +4 -4
  64. package/dist/types/AdminAdd.d.ts +0 -12
  65. package/dist/types/AdminAddId.d.ts +0 -1
  66. package/dist/types/AdminAddView.d.ts +0 -10
  67. package/dist/types/AdminAllowInstance.d.ts +0 -11
  68. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  69. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  70. package/dist/types/AdminBan.d.ts +0 -16
  71. package/dist/types/AdminBanId.d.ts +0 -1
  72. package/dist/types/AdminBanView.d.ts +0 -10
  73. package/dist/types/AdminBlockInstance.d.ts +0 -12
  74. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  75. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  76. package/dist/types/AdminBlockInstanceView.js +0 -2
  77. package/dist/types/AdminPurgeComment.d.ts +0 -13
  78. package/dist/types/AdminPurgeComment.js +0 -2
  79. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  80. package/dist/types/AdminPurgeCommentId.js +0 -3
  81. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  82. package/dist/types/AdminPurgeCommentView.js +0 -2
  83. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  84. package/dist/types/AdminPurgeCommunity.js +0 -2
  85. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  86. package/dist/types/AdminPurgeCommunityId.js +0 -3
  87. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  88. package/dist/types/AdminPurgeCommunityView.js +0 -2
  89. package/dist/types/AdminPurgePerson.d.ts +0 -11
  90. package/dist/types/AdminPurgePerson.js +0 -2
  91. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  92. package/dist/types/AdminPurgePersonId.js +0 -3
  93. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  94. package/dist/types/AdminPurgePersonView.js +0 -2
  95. package/dist/types/AdminPurgePost.d.ts +0 -13
  96. package/dist/types/AdminPurgePost.js +0 -2
  97. package/dist/types/AdminPurgePostId.d.ts +0 -1
  98. package/dist/types/AdminPurgePostId.js +0 -3
  99. package/dist/types/AdminPurgePostView.d.ts +0 -11
  100. package/dist/types/AdminPurgePostView.js +0 -2
  101. package/dist/types/AdminRemoveCommunity.d.ts +0 -14
  102. package/dist/types/AdminRemoveCommunity.js +0 -2
  103. package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
  104. package/dist/types/AdminRemoveCommunityId.js +0 -3
  105. package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
  106. package/dist/types/AdminRemoveCommunityView.js +0 -2
  107. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  108. package/dist/types/BanFromCommunityResponse.js +0 -2
  109. package/dist/types/FederatedInstances.d.ts +0 -9
  110. package/dist/types/FederatedInstances.js +0 -2
  111. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  112. package/dist/types/GetCommunityPendingFollowsCount.js +0 -2
  113. package/dist/types/ModAddToCommunity.d.ts +0 -14
  114. package/dist/types/ModAddToCommunity.js +0 -2
  115. package/dist/types/ModAddToCommunityId.d.ts +0 -1
  116. package/dist/types/ModAddToCommunityId.js +0 -3
  117. package/dist/types/ModAddToCommunityView.d.ts +0 -12
  118. package/dist/types/ModAddToCommunityView.js +0 -2
  119. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  120. package/dist/types/ModBanFromCommunity.js +0 -2
  121. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  122. package/dist/types/ModBanFromCommunityId.js +0 -3
  123. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  124. package/dist/types/ModBanFromCommunityView.js +0 -2
  125. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
  126. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  127. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  128. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  129. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  130. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  131. package/dist/types/ModFeaturePost.d.ts +0 -14
  132. package/dist/types/ModFeaturePost.js +0 -2
  133. package/dist/types/ModFeaturePostId.d.ts +0 -1
  134. package/dist/types/ModFeaturePostId.js +0 -3
  135. package/dist/types/ModFeaturePostView.d.ts +0 -14
  136. package/dist/types/ModFeaturePostView.js +0 -2
  137. package/dist/types/ModLockComment.d.ts +0 -14
  138. package/dist/types/ModLockComment.js +0 -2
  139. package/dist/types/ModLockCommentId.d.ts +0 -1
  140. package/dist/types/ModLockCommentId.js +0 -3
  141. package/dist/types/ModLockCommentView.d.ts +0 -16
  142. package/dist/types/ModLockCommentView.js +0 -2
  143. package/dist/types/ModLockPost.d.ts +0 -14
  144. package/dist/types/ModLockPost.js +0 -2
  145. package/dist/types/ModLockPostId.d.ts +0 -1
  146. package/dist/types/ModLockPostId.js +0 -3
  147. package/dist/types/ModLockPostView.d.ts +0 -14
  148. package/dist/types/ModLockPostView.js +0 -2
  149. package/dist/types/ModRemoveComment.d.ts +0 -14
  150. package/dist/types/ModRemoveComment.js +0 -2
  151. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  152. package/dist/types/ModRemoveCommentId.js +0 -3
  153. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  154. package/dist/types/ModRemoveCommentView.js +0 -2
  155. package/dist/types/ModRemovePost.d.ts +0 -14
  156. package/dist/types/ModRemovePost.js +0 -2
  157. package/dist/types/ModRemovePostId.d.ts +0 -1
  158. package/dist/types/ModRemovePostId.js +0 -3
  159. package/dist/types/ModRemovePostView.d.ts +0 -14
  160. package/dist/types/ModRemovePostView.js +0 -2
  161. package/dist/types/ModTransferCommunity.d.ts +0 -13
  162. package/dist/types/ModTransferCommunity.js +0 -2
  163. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  164. package/dist/types/ModTransferCommunityId.js +0 -3
  165. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  166. package/dist/types/ModTransferCommunityView.js +0 -2
  167. package/dist/types/ModlogActionType.d.ts +0 -4
  168. package/dist/types/ModlogActionType.js +0 -3
  169. package/dist/types/ModlogCombinedView.d.ts +0 -55
  170. package/dist/types/ModlogCombinedView.js +0 -2
  171. /package/dist/types/{AdminAdd.js → FederatedInstanceView.js} +0 -0
  172. /package/dist/types/{AdminAddId.js → FederationAllowList.js} +0 -0
  173. /package/dist/types/{AdminAddView.js → FederationQueueState.js} +0 -0
  174. /package/dist/types/{AdminAllowInstance.js → GetFederatedInstances.js} +0 -0
  175. /package/dist/types/{AdminAllowInstanceId.js → GetFederatedInstancesKind.js} +0 -0
  176. /package/dist/types/{AdminAllowInstanceView.js → Modlog.js} +0 -0
  177. /package/dist/types/{AdminBanId.js → ModlogId.js} +0 -0
  178. /package/dist/types/{AdminBlockInstanceId.js → ModlogKind.js} +0 -0
  179. /package/dist/types/{AdminBan.js → ModlogView.js} +0 -0
  180. /package/dist/types/{AdminBanView.js → MultiCommunityEntry.js} +0 -0
  181. /package/dist/types/{AdminBlockInstance.js → PendingFollowerView.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, 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";
6
6
  import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
7
7
  import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
8
8
  import { BanFromCommunity } from "./types/BanFromCommunity";
9
- import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
10
9
  import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
11
10
  import { BanPerson } from "./types/BanPerson";
12
11
  import { BlockCommunity } from "./types/BlockCommunity";
@@ -270,7 +269,7 @@ export declare class LemmyHttp extends Controller {
270
269
  /**
271
270
  * @summary Get a community's pending follows count.
272
271
  */
273
- getCommunityPendingFollowsCount(form: GetCommunityPendingFollowsCountI, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
272
+ getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
274
273
  /**
275
274
  * @summary Get a community's pending followers.
276
275
  */
@@ -302,7 +301,7 @@ export declare class LemmyHttp extends Controller {
302
301
  /**
303
302
  * @summary Ban a user from a community.
304
303
  */
305
- banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
304
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
306
305
  /**
307
306
  * @summary Add a moderator to your community.
308
307
  */
@@ -520,7 +519,7 @@ export declare class LemmyHttp extends Controller {
520
519
  */
521
520
  passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
522
521
  /**
523
- * @summary Mark all replies as read.
522
+ * @summary Mark all notifications as read.
524
523
  */
525
524
  markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
526
525
  /**
@@ -670,7 +669,7 @@ export declare class LemmyHttp extends Controller {
670
669
  /**
671
670
  * @summary Fetch federated instances.
672
671
  */
673
- getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
672
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
674
673
  /**
675
674
  * @summary List user reports.
676
675
  */
package/dist/http.js CHANGED
@@ -112,7 +112,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
112
112
  * @summary List login tokens for your user
113
113
  */
114
114
  async listLogins(options) {
115
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
115
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/login/list", {}, options);
116
116
  }
117
117
  /**
118
118
  * @summary Returns an error message if your auth token is invalid
@@ -205,8 +205,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
205
205
  /**
206
206
  * @summary Get a community's pending follows count.
207
207
  */
208
- async getCommunityPendingFollowsCount(form, options) {
209
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
208
+ async getCommunityPendingFollowsCount(options) {
209
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", {}, options);
210
210
  }
211
211
  /**
212
212
  * @summary Get a community's pending followers.
@@ -230,7 +230,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
230
230
  * @summary Delete a community.
231
231
  */
232
232
  async deleteCommunity(form, options) {
233
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
233
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community", form, options);
234
234
  }
235
235
  /**
236
236
  * @summary Hide a community from public / "All" view. Admins only.
@@ -308,7 +308,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
308
308
  * @summary Delete a post.
309
309
  */
310
310
  async deletePost(form, options) {
311
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
311
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/post", form, options);
312
312
  }
313
313
  /**
314
314
  * @summary A moderator remove for a post.
@@ -404,7 +404,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
404
404
  * @summary Delete a comment.
405
405
  */
406
406
  async deleteComment(form, options) {
407
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
407
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/comment", form, options);
408
408
  }
409
409
  /**
410
410
  * @summary A moderator remove for a comment.
@@ -488,7 +488,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
488
488
  * @summary Delete a private message.
489
489
  */
490
490
  async deletePrivateMessage(form, options) {
491
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
491
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/private_message", form, options);
492
492
  }
493
493
  /**
494
494
  * @summary Create a report for a private message.
@@ -566,7 +566,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
566
566
  * @summary Delete your account.
567
567
  */
568
568
  async deleteAccount(form, options) {
569
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
569
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account", form, options);
570
570
  }
571
571
  /**
572
572
  * @summary Reset your password.
@@ -581,16 +581,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
581
581
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
582
582
  }
583
583
  /**
584
- * @summary Mark all replies as read.
584
+ * @summary Mark all notifications as read.
585
585
  */
586
586
  async markAllNotificationsAsRead(options) {
587
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
587
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read/all", {}, options);
588
588
  }
589
589
  /**
590
590
  * @summary Mark a notification as read.
591
591
  */
592
592
  async markNotificationAsRead(form, options) {
593
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
593
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read", form, options);
594
594
  }
595
595
  /**
596
596
  * @summary Save your user settings.
@@ -614,13 +614,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
614
614
  * @summary Get your unread counts.
615
615
  */
616
616
  async getUnreadCount(options) {
617
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
617
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/unread_count", {}, options);
618
618
  }
619
619
  /**
620
620
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
621
621
  */
622
622
  async listNotifications(form, options) {
623
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
623
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
624
624
  }
625
625
  /**
626
626
  * @summary Verify your email
@@ -752,7 +752,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
752
752
  * @summary Delete a tagline
753
753
  */
754
754
  async deleteTagline(form, options) {
755
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
755
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
756
756
  }
757
757
  /**
758
758
  * @summary List taglines.
@@ -794,7 +794,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
794
794
  * @summary Delete an oauth provider method
795
795
  */
796
796
  async deleteOAuthProvider(form, options) {
797
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
797
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
798
798
  }
799
799
  /**
800
800
  * @summary Authenticate with OAuth
@@ -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.
@@ -1080,7 +1080,7 @@ __decorate([
1080
1080
  ], LemmyHttp.prototype, "importSettings", null);
1081
1081
  __decorate([
1082
1082
  (0, runtime_1.Security)("bearerAuth"),
1083
- (0, runtime_1.Get)("/account/list_logins"),
1083
+ (0, runtime_1.Get)("/account/login/list"),
1084
1084
  (0, runtime_1.Tags)("Account"),
1085
1085
  __param(0, (0, runtime_1.Inject)())
1086
1086
  ], LemmyHttp.prototype, "listLogins", null);
@@ -1191,8 +1191,7 @@ __decorate([
1191
1191
  (0, runtime_1.Security)("bearerAuth"),
1192
1192
  (0, runtime_1.Get)("/community/pending_follows/count"),
1193
1193
  (0, runtime_1.Tags)("Community"),
1194
- __param(0, (0, runtime_1.Queries)()),
1195
- __param(1, (0, runtime_1.Inject)())
1194
+ __param(0, (0, runtime_1.Inject)())
1196
1195
  ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1197
1196
  __decorate([
1198
1197
  (0, runtime_1.Security)("bearerAuth"),
@@ -1217,7 +1216,7 @@ __decorate([
1217
1216
  ], LemmyHttp.prototype, "blockCommunity", null);
1218
1217
  __decorate([
1219
1218
  (0, runtime_1.Security)("bearerAuth"),
1220
- (0, runtime_1.Post)("/community/delete"),
1219
+ (0, runtime_1.Delete)("/community"),
1221
1220
  (0, runtime_1.Tags)("Community"),
1222
1221
  __param(0, (0, runtime_1.Body)()),
1223
1222
  __param(1, (0, runtime_1.Inject)())
@@ -1310,7 +1309,7 @@ __decorate([
1310
1309
  ], LemmyHttp.prototype, "modEditPost", null);
1311
1310
  __decorate([
1312
1311
  (0, runtime_1.Security)("bearerAuth"),
1313
- (0, runtime_1.Post)("/post/delete"),
1312
+ (0, runtime_1.Delete)("/post"),
1314
1313
  (0, runtime_1.Tags)("Post"),
1315
1314
  __param(0, (0, runtime_1.Body)()),
1316
1315
  __param(1, (0, runtime_1.Inject)())
@@ -1423,7 +1422,7 @@ __decorate([
1423
1422
  ], LemmyHttp.prototype, "editComment", null);
1424
1423
  __decorate([
1425
1424
  (0, runtime_1.Security)("bearerAuth"),
1426
- (0, runtime_1.Post)("/comment/delete"),
1425
+ (0, runtime_1.Delete)("/comment"),
1427
1426
  (0, runtime_1.Tags)("Comment"),
1428
1427
  __param(0, (0, runtime_1.Body)()),
1429
1428
  __param(1, (0, runtime_1.Inject)())
@@ -1524,7 +1523,7 @@ __decorate([
1524
1523
  ], LemmyHttp.prototype, "editPrivateMessage", null);
1525
1524
  __decorate([
1526
1525
  (0, runtime_1.Security)("bearerAuth"),
1527
- (0, runtime_1.Post)("/private_message/delete"),
1526
+ (0, runtime_1.Delete)("/private_message"),
1528
1527
  (0, runtime_1.Tags)("PrivateMessage"),
1529
1528
  __param(0, (0, runtime_1.Body)()),
1530
1529
  __param(1, (0, runtime_1.Inject)())
@@ -1612,7 +1611,7 @@ __decorate([
1612
1611
  ], LemmyHttp.prototype, "getCaptcha", null);
1613
1612
  __decorate([
1614
1613
  (0, runtime_1.Security)("bearerAuth"),
1615
- (0, runtime_1.Post)("/account/delete"),
1614
+ (0, runtime_1.Delete)("/account"),
1616
1615
  (0, runtime_1.Tags)("Account"),
1617
1616
  __param(0, (0, runtime_1.Body)()),
1618
1617
  __param(1, (0, runtime_1.Inject)())
@@ -1633,13 +1632,13 @@ __decorate([
1633
1632
  ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1634
1633
  __decorate([
1635
1634
  (0, runtime_1.Security)("bearerAuth"),
1636
- (0, runtime_1.Post)("/account/mark_as_read/all"),
1635
+ (0, runtime_1.Post)("/account/notification/mark_as_read/all"),
1637
1636
  (0, runtime_1.Tags)("Account"),
1638
1637
  __param(0, (0, runtime_1.Inject)())
1639
1638
  ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1640
1639
  __decorate([
1641
1640
  (0, runtime_1.Security)("bearerAuth"),
1642
- (0, runtime_1.Post)("/account/mark_as_read"),
1641
+ (0, runtime_1.Post)("/account/notification/mark_as_read"),
1643
1642
  (0, runtime_1.Tags)("Account"),
1644
1643
  __param(0, (0, runtime_1.Body)()),
1645
1644
  __param(1, (0, runtime_1.Inject)())
@@ -1667,13 +1666,13 @@ __decorate([
1667
1666
  ], LemmyHttp.prototype, "getReportCount", null);
1668
1667
  __decorate([
1669
1668
  (0, runtime_1.Security)("bearerAuth"),
1670
- (0, runtime_1.Get)("/account/unread_count"),
1669
+ (0, runtime_1.Get)("/account/notification/unread_count"),
1671
1670
  (0, runtime_1.Tags)("Account"),
1672
1671
  __param(0, (0, runtime_1.Inject)())
1673
1672
  ], LemmyHttp.prototype, "getUnreadCount", null);
1674
1673
  __decorate([
1675
1674
  (0, runtime_1.Security)("bearerAuth"),
1676
- (0, runtime_1.Get)("/account/notifications"),
1675
+ (0, runtime_1.Get)("/account/notification/list"),
1677
1676
  (0, runtime_1.Tags)("Account"),
1678
1677
  __param(0, (0, runtime_1.Queries)()),
1679
1678
  __param(1, (0, runtime_1.Inject)())
@@ -1825,7 +1824,7 @@ __decorate([
1825
1824
  ], LemmyHttp.prototype, "editTagline", null);
1826
1825
  __decorate([
1827
1826
  (0, runtime_1.Security)("bearerAuth"),
1828
- (0, runtime_1.Post)("/admin/tagline/delete"),
1827
+ (0, runtime_1.Delete)("/admin/tagline"),
1829
1828
  (0, runtime_1.Tags)("Admin", "Tagline"),
1830
1829
  __param(0, (0, runtime_1.Body)()),
1831
1830
  __param(1, (0, runtime_1.Inject)())
@@ -1875,7 +1874,7 @@ __decorate([
1875
1874
  ], LemmyHttp.prototype, "editOAuthProvider", null);
1876
1875
  __decorate([
1877
1876
  (0, runtime_1.Security)("bearerAuth"),
1878
- (0, runtime_1.Post)("/oauth_provider/delete"),
1877
+ (0, runtime_1.Delete)("/oauth_provider"),
1879
1878
  (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1880
1879
  __param(0, (0, runtime_1.Body)()),
1881
1880
  __param(1, (0, runtime_1.Inject)())
@@ -1890,7 +1889,8 @@ __decorate([
1890
1889
  __decorate([
1891
1890
  (0, runtime_1.Get)("/federated_instances"),
1892
1891
  (0, runtime_1.Tags)("Miscellaneous"),
1893
- __param(0, (0, runtime_1.Inject)())
1892
+ __param(0, (0, runtime_1.Queries)()),
1893
+ __param(1, (0, runtime_1.Inject)())
1894
1894
  ], LemmyHttp.prototype, "getFederatedInstances", null);
1895
1895
  __decorate([
1896
1896
  (0, runtime_1.Security)("bearerAuth"),
package/dist/index.d.ts CHANGED
@@ -5,43 +5,15 @@ 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 { AdminAdd } from "./types/AdminAdd";
9
- export { AdminAddId } from "./types/AdminAddId";
10
- export { AdminAddView } from "./types/AdminAddView";
11
- export { AdminAllowInstance } from "./types/AdminAllowInstance";
12
- export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
13
8
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
14
- export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
15
- export { AdminBan } from "./types/AdminBan";
16
- export { AdminBanId } from "./types/AdminBanId";
17
- export { AdminBanView } from "./types/AdminBanView";
18
- export { AdminBlockInstance } from "./types/AdminBlockInstance";
19
- export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
20
9
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
21
- export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
22
10
  export { AdminListUsers } from "./types/AdminListUsers";
23
11
  export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
24
- export { AdminPurgeComment } from "./types/AdminPurgeComment";
25
- export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
26
- export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
27
- export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
28
- export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
29
- export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
30
- export { AdminPurgePerson } from "./types/AdminPurgePerson";
31
- export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
32
- export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
33
- export { AdminPurgePost } from "./types/AdminPurgePost";
34
- export { AdminPurgePostId } from "./types/AdminPurgePostId";
35
- export { AdminPurgePostView } from "./types/AdminPurgePostView";
36
- export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
37
- export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
38
- export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
39
12
  export { AllLemmyErrors } from "./types/AllLemmyErrors";
40
13
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
41
14
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
42
15
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
43
16
  export { BanFromCommunity } from "./types/BanFromCommunity";
44
- export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
45
17
  export { BanPerson } from "./types/BanPerson";
46
18
  export { BlockCommunity } from "./types/BlockCommunity";
47
19
  export { BlockPerson } from "./types/BlockPerson";
@@ -117,9 +89,11 @@ export { EditPrivateMessage } from "./types/EditPrivateMessage";
117
89
  export { EditSite } from "./types/EditSite";
118
90
  export { ExportDataResponse } from "./types/ExportDataResponse";
119
91
  export { FeaturePost } from "./types/FeaturePost";
120
- export { FederatedInstances } from "./types/FederatedInstances";
92
+ export { FederatedInstanceView } from "./types/FederatedInstanceView";
93
+ export { FederationAllowList } from "./types/FederationAllowList";
121
94
  export { FederationBlockList } from "./types/FederationBlockList";
122
95
  export { FederationMode } from "./types/FederationMode";
96
+ export { FederationQueueState } from "./types/FederationQueueState";
123
97
  export { FollowCommunity } from "./types/FollowCommunity";
124
98
  export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
125
99
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
@@ -129,9 +103,10 @@ export { GetComments } from "./types/GetComments";
129
103
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
130
104
  export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
131
105
  export { GetCommunity } from "./types/GetCommunity";
132
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
133
106
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
134
107
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
108
+ export { GetFederatedInstances } from "./types/GetFederatedInstances";
109
+ export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
135
110
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
136
111
  export { GetModlog } from "./types/GetModlog";
137
112
  export { GetModlogResponse } from "./types/GetModlogResponse";
@@ -217,37 +192,13 @@ export { LoginToken } from "./types/LoginToken";
217
192
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
218
193
  export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
219
194
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
220
- export { ModAddToCommunity } from "./types/ModAddToCommunity";
221
- export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
222
- export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
223
- export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
224
- export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
225
- export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
226
- export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
227
- export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
228
- export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
229
195
  export { ModEditPost } from "./types/ModEditPost";
230
- export { ModFeaturePost } from "./types/ModFeaturePost";
231
- export { ModFeaturePostId } from "./types/ModFeaturePostId";
232
- export { ModFeaturePostView } from "./types/ModFeaturePostView";
233
- export { ModLockComment } from "./types/ModLockComment";
234
- export { ModLockCommentId } from "./types/ModLockCommentId";
235
- export { ModLockCommentView } from "./types/ModLockCommentView";
236
- export { ModLockPost } from "./types/ModLockPost";
237
- export { ModLockPostId } from "./types/ModLockPostId";
238
- export { ModLockPostView } from "./types/ModLockPostView";
239
- export { ModRemoveComment } from "./types/ModRemoveComment";
240
- export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
241
- export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
242
- export { ModRemovePost } from "./types/ModRemovePost";
243
- export { ModRemovePostId } from "./types/ModRemovePostId";
244
- export { ModRemovePostView } from "./types/ModRemovePostView";
245
- export { ModTransferCommunity } from "./types/ModTransferCommunity";
246
- export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
247
- export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
248
- export { ModlogActionType } from "./types/ModlogActionType";
249
- export { ModlogCombinedView } from "./types/ModlogCombinedView";
196
+ export { Modlog } from "./types/Modlog";
197
+ export { ModlogId } from "./types/ModlogId";
198
+ export { ModlogKind } from "./types/ModlogKind";
199
+ export { ModlogView } from "./types/ModlogView";
250
200
  export { MultiCommunity } from "./types/MultiCommunity";
201
+ export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
251
202
  export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
252
203
  export { MultiCommunityId } from "./types/MultiCommunityId";
253
204
  export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
@@ -268,6 +219,7 @@ export { PaginationCursor } from "./types/PaginationCursor";
268
219
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
269
220
  export { PasswordReset } from "./types/PasswordReset";
270
221
  export { PendingFollow } from "./types/PendingFollow";
222
+ export { PendingFollowerView } from "./types/PendingFollowerView";
271
223
  export { Person } from "./types/Person";
272
224
  export { PersonActions } from "./types/PersonActions";
273
225
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
4
4
  import { GetComment } from "./types/GetComment";
5
5
  import { GetComments } from "./types/GetComments";
6
6
  import { GetCommunity } from "./types/GetCommunity";
7
- import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
8
7
  import { GetModlog } from "./types/GetModlog";
9
8
  import { GetMultiCommunity } from "./types/GetMultiCommunity";
10
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
@@ -32,6 +31,7 @@ import { ListReports } from "./types/ListReports";
32
31
  import { ListTaglines } from "./types/ListTaglines";
33
32
  import { ResolveObject } from "./types/ResolveObject";
34
33
  import { Search } from "./types/Search";
34
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
35
35
  export declare const VERSION = "v4";
36
36
  export interface UploadImage {
37
37
  image: File | Buffer;
@@ -48,8 +48,6 @@ export interface GetCommunityI extends GetCommunity {
48
48
  }
49
49
  export interface ListCommunitiesI extends ListCommunities {
50
50
  }
51
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
52
- }
53
51
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
54
52
  }
55
53
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -104,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
102
  }
105
103
  export interface GetMultiCommunityI extends GetMultiCommunity {
106
104
  }
105
+ export interface GetFederatedInstancesI extends GetFederatedInstances {
106
+ }
@@ -16,4 +16,8 @@ export type AuthenticateWithOauth = {
16
16
  */
17
17
  answer?: string;
18
18
  pkce_code_verifier?: string;
19
+ /**
20
+ * If this is true the login is valid forever, otherwise it expires after one week.
21
+ */
22
+ stay_logged_in?: boolean;
19
23
  };
@@ -6,4 +6,8 @@ export type ChangePassword = {
6
6
  new_password: SensitiveString;
7
7
  new_password_verify: SensitiveString;
8
8
  old_password: SensitiveString;
9
+ /**
10
+ * If this is true the login is valid forever, otherwise it expires after one week.
11
+ */
12
+ stay_logged_in?: boolean;
9
13
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommentSortType = "Hot" | "Top" | "New" | "Old" | "Controversial";
4
+ export type CommentSortType = "hot" | "top" | "new" | "old" | "controversial";
@@ -5,10 +5,6 @@ export type CommunityActions = {
5
5
  * When the community was followed.
6
6
  */
7
7
  followed_at?: string;
8
- /**
9
- * The state of the community follow.
10
- */
11
- follow_state?: CommunityFollowerState;
12
8
  /**
13
9
  * When the community was blocked.
14
10
  */
@@ -25,5 +21,9 @@ export type CommunityActions = {
25
21
  * When their ban expires.
26
22
  */
27
23
  ban_expires_at?: string;
24
+ /**
25
+ * The state of the community follow.
26
+ */
27
+ follow_state?: CommunityFollowerState;
28
28
  notifications?: CommunityNotificationsMode;
29
29
  };
@@ -1 +1 @@
1
- export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired";
1
+ export type CommunityFollowerState = "accepted" | "pending" | "approval_required" | "denied";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Available settings for community notifications
3
3
  */
4
- export type CommunityNotificationsMode = "AllPostsAndComments" | "AllPosts" | "RepliesAndMentions" | "Mute";
4
+ export type CommunityNotificationsMode = "all_posts_and_comments" | "all_posts" | "replies_and_mentions" | "mute";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
4
+ export type CommunitySortType = "active_six_months" | "active_monthly" | "active_weekly" | "active_daily" | "hot" | "new" | "old" | "name_asc" | "name_desc" | "comments" | "posts" | "subscribers" | "subscribers_local";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Defines who can browse and interact with content in a community.
3
3
  */
4
- export type CommunityVisibility = "Public" | "Unlisted" | "LocalOnlyPublic" | "LocalOnlyPrivate" | "Private";
4
+ export type CommunityVisibility = "public" | "unlisted" | "local_only_public" | "local_only_private" | "private";
@@ -4,5 +4,8 @@ import type { CommentId } from "./CommentId";
4
4
  */
5
5
  export type CreateCommentLike = {
6
6
  comment_id: CommentId;
7
+ /**
8
+ * True means Upvote, False means Downvote, and None means remove vote.
9
+ */
7
10
  is_upvote?: boolean;
8
11
  };
@@ -4,5 +4,8 @@ import type { PostId } from "./PostId";
4
4
  */
5
5
  export type CreatePostLike = {
6
6
  post_id: PostId;
7
+ /**
8
+ * True means Upvote, False means Downvote, and None means remove vote.
9
+ */
7
10
  is_upvote?: boolean;
8
11
  };
@@ -0,0 +1,12 @@
1
+ import type { FederationAllowList } from "./FederationAllowList";
2
+ import type { FederationBlockList } from "./FederationBlockList";
3
+ import type { FederationQueueState } from "./FederationQueueState";
4
+ import type { Instance } from "./Instance";
5
+ import type { Site } from "./Site";
6
+ export type FederatedInstanceView = {
7
+ instance: Instance;
8
+ site?: Site;
9
+ queue_state?: FederationQueueState;
10
+ blocked?: FederationBlockList;
11
+ allowed?: FederationAllowList;
12
+ };
@@ -0,0 +1,4 @@
1
+ export type FederationAllowList = {
2
+ published_at: string;
3
+ updated_at?: string;
4
+ };
@@ -1,6 +1,4 @@
1
- import type { InstanceId } from "./InstanceId";
2
1
  export type FederationBlockList = {
3
- instance_id: InstanceId;
4
2
  published_at: string;
5
3
  updated_at?: string;
6
4
  expires_at?: string;
@@ -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 });
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The federation mode for an item
3
3
  */
4
- export type FederationMode = "All" | "Local" | "Disable";
4
+ export type FederationMode = "all" | "local" | "disable";
@@ -0,0 +1,18 @@
1
+ import type { ActivityId } from "./ActivityId";
2
+ import type { InstanceId } from "./InstanceId";
3
+ export type FederationQueueState = {
4
+ instance_id: InstanceId;
5
+ /**
6
+ * the last successfully sent activity id
7
+ */
8
+ last_successful_id?: ActivityId;
9
+ last_successful_published_time_at?: string;
10
+ /**
11
+ * how many failed attempts have been made to send the next activity
12
+ */
13
+ fail_count: number;
14
+ /**
15
+ * timestamp of the last retry attempt (when the last failing activity was resent)
16
+ */
17
+ last_retry_at?: string;
18
+ };
@@ -0,0 +1,9 @@
1
+ import type { GetFederatedInstancesKind } from "./GetFederatedInstancesKind";
2
+ import type { PaginationCursor } from "./PaginationCursor";
3
+ export type GetFederatedInstances = {
4
+ domain_filter?: string;
5
+ kind: GetFederatedInstancesKind;
6
+ page_cursor?: PaginationCursor;
7
+ page_back?: boolean;
8
+ limit?: number;
9
+ };
@@ -0,0 +1 @@
1
+ export type GetFederatedInstancesKind = "all" | "linked" | "allowed" | "blocked";
@@ -1,10 +1,10 @@
1
- import type { FederatedInstances } from "./FederatedInstances";
1
+ import type { FederatedInstanceView } from "./FederatedInstanceView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * A response of federated instances.
4
5
  */
5
6
  export type GetFederatedInstancesResponse = {
6
- /**
7
- * Optional, because federation may be disabled.
8
- */
9
- federated_instances?: FederatedInstances;
7
+ federated_instances: Array<FederatedInstanceView>;
8
+ next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
10
10
  };