lemmy-js-client 1.0.0-community-reports.0 → 1.0.0-dont-return-actions.1

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 (141) hide show
  1. package/dist/http.d.ts +52 -17
  2. package/dist/http.js +150 -28
  3. package/dist/index.d.ts +25 -3
  4. package/dist/other_types.d.ts +20 -2
  5. package/dist/types/AdminAllowInstance.d.ts +1 -1
  6. package/dist/types/AdminBlockInstance.d.ts +2 -2
  7. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminListUsers.d.ts +7 -0
  9. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  10. package/dist/types/AdminPurgeComment.d.ts +1 -1
  11. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  12. package/dist/types/AdminPurgePerson.d.ts +1 -1
  13. package/dist/types/AdminPurgePost.d.ts +1 -1
  14. package/dist/types/BanFromCommunity.d.ts +1 -1
  15. package/dist/types/BanPerson.d.ts +1 -1
  16. package/dist/types/Comment.d.ts +2 -2
  17. package/dist/types/CommentActions.d.ts +2 -6
  18. package/dist/types/CommentActions.js +1 -0
  19. package/dist/types/CommentReply.d.ts +1 -1
  20. package/dist/types/CommentReplyView.d.ts +2 -3
  21. package/dist/types/CommentReport.d.ts +2 -2
  22. package/dist/types/CommentReportView.d.ts +0 -1
  23. package/dist/types/CommentSlimView.d.ts +2 -4
  24. package/dist/types/CommentView.d.ts +2 -3
  25. package/dist/types/Community.d.ts +2 -2
  26. package/dist/types/CommunityActions.d.ts +5 -13
  27. package/dist/types/CommunityIdQuery.d.ts +8 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  30. package/dist/types/CreateMultiCommunity.js +3 -0
  31. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  32. package/dist/types/CreateOrDeleteMultiCommunityEntry.js +2 -0
  33. package/dist/types/CreatePost.d.ts +1 -1
  34. package/dist/types/CreateSite.d.ts +2 -1
  35. package/dist/types/CustomEmoji.d.ts +2 -2
  36. package/dist/types/EditPost.d.ts +1 -1
  37. package/dist/types/EditSite.d.ts +5 -4
  38. package/dist/types/FederationBlockList.d.ts +3 -3
  39. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  40. package/dist/types/FollowMultiCommunity.js +2 -0
  41. package/dist/types/GetComments.d.ts +0 -2
  42. package/dist/types/GetMultiCommunity.d.ts +4 -0
  43. package/dist/types/GetMultiCommunity.js +2 -0
  44. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  45. package/dist/types/GetMultiCommunityResponse.js +2 -0
  46. package/dist/types/GetPosts.d.ts +2 -2
  47. package/dist/types/Instance.d.ts +4 -3
  48. package/dist/types/InstanceActions.d.ts +3 -7
  49. package/dist/types/InstanceActions.js +1 -0
  50. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  51. package/dist/types/LemmyErrorType.d.ts +8 -0
  52. package/dist/types/LikeType.d.ts +4 -0
  53. package/dist/types/LikeType.js +3 -0
  54. package/dist/types/ListMultiCommunities.d.ts +5 -0
  55. package/dist/types/ListMultiCommunities.js +2 -0
  56. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  57. package/dist/types/ListMultiCommunitiesResponse.js +2 -0
  58. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  59. package/dist/types/ListPersonHidden.js +2 -0
  60. package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
  61. package/dist/types/ListPersonHiddenResponse.js +2 -0
  62. package/dist/types/ListPersonLiked.d.ts +13 -0
  63. package/dist/types/ListPersonLiked.js +2 -0
  64. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  65. package/dist/types/ListPersonLikedResponse.js +2 -0
  66. package/dist/types/ListPersonRead.d.ts +9 -0
  67. package/dist/types/ListPersonRead.js +2 -0
  68. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  69. package/dist/types/ListPersonReadResponse.js +2 -0
  70. package/dist/types/ListingType.d.ts +1 -1
  71. package/dist/types/LocalImage.d.ts +8 -3
  72. package/dist/types/LocalImageView.d.ts +2 -0
  73. package/dist/types/LocalSite.d.ts +6 -6
  74. package/dist/types/LocalSiteRateLimit.d.ts +2 -2
  75. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  76. package/dist/types/LocalUser.d.ts +3 -2
  77. package/dist/types/LocalUserView.d.ts +1 -2
  78. package/dist/types/LockPost.d.ts +1 -0
  79. package/dist/types/Login.d.ts +3 -0
  80. package/dist/types/LoginToken.d.ts +1 -1
  81. package/dist/types/ModAdd.d.ts +1 -1
  82. package/dist/types/ModAddCommunity.d.ts +1 -1
  83. package/dist/types/ModBan.d.ts +2 -2
  84. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  85. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  86. package/dist/types/ModFeaturePost.d.ts +1 -1
  87. package/dist/types/ModLockPost.d.ts +2 -1
  88. package/dist/types/ModRemoveComment.d.ts +1 -1
  89. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  90. package/dist/types/ModRemovePost.d.ts +1 -1
  91. package/dist/types/ModTransferCommunity.d.ts +1 -1
  92. package/dist/types/MultiCommunity.d.ts +17 -0
  93. package/dist/types/MultiCommunity.js +2 -0
  94. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  95. package/dist/types/MultiCommunityFollow.js +2 -0
  96. package/dist/types/MultiCommunityId.d.ts +1 -0
  97. package/dist/types/MultiCommunityId.js +3 -0
  98. package/dist/types/MultiCommunityView.d.ts +6 -0
  99. package/dist/types/MultiCommunityView.js +2 -0
  100. package/dist/types/NotePerson.d.ts +10 -0
  101. package/dist/types/NotePerson.js +2 -0
  102. package/dist/types/OAuthAccount.d.ts +2 -2
  103. package/dist/types/OAuthProvider.d.ts +2 -2
  104. package/dist/types/Person.d.ts +2 -2
  105. package/dist/types/PersonActions.d.ts +9 -4
  106. package/dist/types/PersonActions.js +1 -0
  107. package/dist/types/PersonCommentMention.d.ts +1 -1
  108. package/dist/types/PersonCommentMentionView.d.ts +2 -3
  109. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  110. package/dist/types/PersonLikedCombinedView.js +2 -0
  111. package/dist/types/PersonPostMention.d.ts +1 -1
  112. package/dist/types/PersonPostMentionView.d.ts +2 -3
  113. package/dist/types/PersonView.d.ts +2 -3
  114. package/dist/types/Post.d.ts +4 -4
  115. package/dist/types/PostActions.d.ts +5 -9
  116. package/dist/types/PostActions.js +1 -0
  117. package/dist/types/PostReport.d.ts +2 -2
  118. package/dist/types/PostReportView.d.ts +0 -1
  119. package/dist/types/PostView.d.ts +2 -3
  120. package/dist/types/PrivateMessage.d.ts +2 -2
  121. package/dist/types/PrivateMessageReport.d.ts +2 -2
  122. package/dist/types/ReadableFederationState.d.ts +2 -2
  123. package/dist/types/RegistrationApplication.d.ts +1 -1
  124. package/dist/types/SaveUserSettings.d.ts +2 -1
  125. package/dist/types/Search.d.ts +5 -1
  126. package/dist/types/SearchCombinedView.d.ts +4 -1
  127. package/dist/types/SearchType.d.ts +1 -1
  128. package/dist/types/Site.d.ts +4 -3
  129. package/dist/types/SiteResponse.d.ts +0 -4
  130. package/dist/types/Tag.d.ts +2 -2
  131. package/dist/types/Tagline.d.ts +2 -2
  132. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  133. package/dist/types/UpdateMultiCommunity.js +2 -0
  134. package/dist/types/VoteShow.d.ts +4 -0
  135. package/dist/types/VoteShow.js +3 -0
  136. package/dist/types/VoteView.d.ts +0 -1
  137. package/package.json +4 -4
  138. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  139. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  140. /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
  141. /package/dist/types/{ResolveObjectResponse.js → CommunityIdQuery.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  import { AddModToCommunity } from "./types/AddModToCommunity";
@@ -10,7 +10,6 @@ import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
10
10
  import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
11
11
  import { BanPerson } from "./types/BanPerson";
12
12
  import { BanPersonResponse } from "./types/BanPersonResponse";
13
- import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
14
13
  import { BlockCommunity } from "./types/BlockCommunity";
15
14
  import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
16
15
  import { BlockPerson } from "./types/BlockPerson";
@@ -92,7 +91,6 @@ import { RemoveCommunity } from "./types/RemoveCommunity";
92
91
  import { RemovePost } from "./types/RemovePost";
93
92
  import { ResolveCommentReport } from "./types/ResolveCommentReport";
94
93
  import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
95
- import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
96
94
  import { ResolvePostReport } from "./types/ResolvePostReport";
97
95
  import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
98
96
  import { SaveComment } from "./types/SaveComment";
@@ -108,7 +106,6 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
108
106
  import { UpdateTotp } from "./types/UpdateTotp";
109
107
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
110
108
  import { SuccessResponse } from "./types/SuccessResponse";
111
- import { LoginToken } from "./types/LoginToken";
112
109
  import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
113
110
  import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
114
111
  import { HidePost } from "./types/HidePost";
@@ -137,6 +134,18 @@ import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead
137
134
  import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
138
135
  import { Tag } from "./types/Tag";
139
136
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
137
+ import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
138
+ import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
139
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
140
+ import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
141
+ import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
142
+ import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
143
+ import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
144
+ import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
145
+ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
146
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
147
+ import { ListLoginsResponse } from "./types/ListLoginsResponse";
148
+ import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
140
149
  type RequestOptions = Pick<RequestInit, "signal">;
141
150
  /**
142
151
  * Helps build lemmy HTTP requests.
@@ -195,7 +204,7 @@ export declare class LemmyHttp extends Controller {
195
204
  /**
196
205
  * @summary List login tokens for your user
197
206
  */
198
- listLogins(options?: RequestOptions): Promise<LoginToken[]>;
207
+ listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
199
208
  /**
200
209
  * @summary Returns an error message if your auth token is invalid
201
210
  */
@@ -229,13 +238,13 @@ export declare class LemmyHttp extends Controller {
229
238
  */
230
239
  getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
231
240
  /**
232
- * @summary Search lemmy.
241
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
233
242
  */
234
243
  search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
235
244
  /**
236
245
  * @summary Fetch a non-local / federated object.
237
246
  */
238
- resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<ResolveObjectResponse>;
247
+ resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
239
248
  /**
240
249
  * @summary Create a new community.
241
250
  */
@@ -331,7 +340,7 @@ export declare class LemmyHttp extends Controller {
331
340
  /**
332
341
  * @summary Mark a post as read.
333
342
  */
334
- markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
343
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
335
344
  /**
336
345
  * @summary Mark multiple posts as read.
337
346
  */
@@ -489,9 +498,9 @@ export declare class LemmyHttp extends Controller {
489
498
  */
490
499
  banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
491
500
  /**
492
- * @summary Get a list of banned users.
501
+ * @summary Get a list of users.
493
502
  */
494
- listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
503
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
495
504
  /**
496
505
  * @summary Block a person.
497
506
  */
@@ -548,6 +557,18 @@ export declare class LemmyHttp extends Controller {
548
557
  * @summary List your saved content.
549
558
  */
550
559
  listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
560
+ /**
561
+ * @summary List your read content.
562
+ */
563
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
564
+ /**
565
+ * @summary List your hidden content.
566
+ */
567
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
568
+ /**
569
+ * @summary List your liked content.
570
+ */
571
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
551
572
  /**
552
573
  * @summary Add an admin to your site.
553
574
  */
@@ -683,19 +704,19 @@ export declare class LemmyHttp extends Controller {
683
704
  /**
684
705
  * @summary Upload new community icon.
685
706
  */
686
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
707
+ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
687
708
  /**
688
709
  * @summary Delete the community icon.
689
710
  */
690
- deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
711
+ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
691
712
  /**
692
713
  * @summary Upload new community banner.
693
714
  */
694
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
715
+ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
695
716
  /**
696
717
  * @summary Delete the community banner.
697
718
  */
698
- deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
719
+ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
699
720
  /**
700
721
  * @summary Upload new site icon.
701
722
  */
@@ -722,10 +743,15 @@ export declare class LemmyHttp extends Controller {
722
743
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
723
744
  /**
724
745
  * Mark donation dialog as shown, so it isn't displayed anymore.
725
- *
726
- * `HTTP.POST /user/donation_dialog_shown`
727
746
  */
728
- donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
747
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
748
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
749
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
750
+ getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
751
+ createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
752
+ deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
753
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
754
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
729
755
  /**
730
756
  * Set the headers (can be used to set the auth header)
731
757
  */
@@ -733,4 +759,13 @@ export declare class LemmyHttp extends Controller {
733
759
  [key: string]: string;
734
760
  }): void;
735
761
  }
762
+ /**
763
+ * A Lemmy error type.
764
+ *
765
+ * The name is the i18n translatable error code.
766
+ * The msg is either an empty string, or extra non-translatable info.
767
+ */
768
+ export declare class LemmyError extends Error {
769
+ constructor(name: string, msg?: string);
770
+ }
736
771
  export {};
package/dist/http.js CHANGED
@@ -19,9 +19,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
19
19
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
20
20
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
21
21
  };
22
- var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
22
+ var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.LemmyHttp = void 0;
24
+ exports.LemmyError = exports.LemmyHttp = void 0;
25
25
  const runtime_1 = require("@tsoa/runtime");
26
26
  const other_types_1 = require("./other_types");
27
27
  var HttpType;
@@ -161,7 +161,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
161
161
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
162
162
  }
163
163
  /**
164
- * @summary Search lemmy.
164
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
165
165
  */
166
166
  async search(form, options) {
167
167
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
@@ -551,10 +551,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
551
551
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
552
552
  }
553
553
  /**
554
- * @summary Get a list of banned users.
554
+ * @summary Get a list of users.
555
555
  */
556
- async listBannedPersons(form = {}, options) {
557
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", form, options);
556
+ async listUsers(form = {}, options) {
557
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
558
558
  }
559
559
  /**
560
560
  * @summary Block a person.
@@ -640,6 +640,24 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
640
640
  async listPersonSaved(form, options) {
641
641
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
642
642
  }
643
+ /**
644
+ * @summary List your read content.
645
+ */
646
+ async listPersonRead(form, options) {
647
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
648
+ }
649
+ /**
650
+ * @summary List your hidden content.
651
+ */
652
+ async listPersonHidden(form, options) {
653
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
654
+ }
655
+ /**
656
+ * @summary List your liked content.
657
+ */
658
+ async listPersonLiked(form, options) {
659
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
660
+ }
643
661
  /**
644
662
  * @summary Add an admin to your site.
645
663
  */
@@ -841,26 +859,26 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
841
859
  /**
842
860
  * @summary Upload new community icon.
843
861
  */
844
- async uploadCommunityIcon(image, options) {
845
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
862
+ async uploadCommunityIcon(query, image, options) {
863
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
846
864
  }
847
865
  /**
848
866
  * @summary Delete the community icon.
849
867
  */
850
- async deleteCommunityIcon(options) {
851
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
868
+ async deleteCommunityIcon(form, options) {
869
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
852
870
  }
853
871
  /**
854
872
  * @summary Upload new community banner.
855
873
  */
856
- async uploadCommunityBanner(image, options) {
857
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
874
+ async uploadCommunityBanner(query, image, options) {
875
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
858
876
  }
859
877
  /**
860
878
  * @summary Delete the community banner.
861
879
  */
862
- async deleteCommunityBanner(options) {
863
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
880
+ async deleteCommunityBanner(form, options) {
881
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
864
882
  }
865
883
  /**
866
884
  * @summary Upload new site icon.
@@ -900,12 +918,31 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
900
918
  }
901
919
  /**
902
920
  * Mark donation dialog as shown, so it isn't displayed anymore.
903
- *
904
- * `HTTP.POST /user/donation_dialog_shown`
905
921
  */
906
- donation_dialog_shown(options) {
922
+ donationDialogShown(options) {
907
923
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
908
924
  }
925
+ createMultiCommunity(form, options) {
926
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
927
+ }
928
+ updateMultiCommunity(form, options) {
929
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
930
+ }
931
+ getMultiCommunity(form, options) {
932
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
933
+ }
934
+ createMultiCommunityEntry(form, options) {
935
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
936
+ }
937
+ deleteMultiCommunityEntry(form, options) {
938
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
939
+ }
940
+ listMultiCommunities(form, options) {
941
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
942
+ }
943
+ followMultiCommunity(form, options) {
944
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
945
+ }
909
946
  /**
910
947
  * Set the headers (can be used to set the auth header)
911
948
  */
@@ -931,6 +968,9 @@ _LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
931
968
  });
932
969
  return response.json();
933
970
  };
971
+ _LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
972
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
973
+ };
934
974
  _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
935
975
  let response;
936
976
  if (type_ === HttpType.Get) {
@@ -957,10 +997,11 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
957
997
  json = await response.json();
958
998
  }
959
999
  catch {
960
- throw new Error(response.statusText);
1000
+ throw new LemmyError(response.statusText);
961
1001
  }
962
1002
  if (!response.ok) {
963
- throw new Error(json["error"] ?? response.statusText);
1003
+ let err = new LemmyError(json.error ?? response.statusText, json.message);
1004
+ throw err;
964
1005
  }
965
1006
  else {
966
1007
  return json;
@@ -1540,11 +1581,11 @@ __decorate([
1540
1581
  ], LemmyHttp.prototype, "banPerson", null);
1541
1582
  __decorate([
1542
1583
  (0, runtime_1.Security)("bearerAuth"),
1543
- (0, runtime_1.Get)("/admin/banned"),
1584
+ (0, runtime_1.Get)("/admin/users"),
1544
1585
  (0, runtime_1.Tags)("Admin", "Miscellaneous"),
1545
1586
  __param(0, (0, runtime_1.Queries)()),
1546
1587
  __param(1, (0, runtime_1.Inject)())
1547
- ], LemmyHttp.prototype, "listBannedPersons", null);
1588
+ ], LemmyHttp.prototype, "listUsers", null);
1548
1589
  __decorate([
1549
1590
  (0, runtime_1.Security)("bearerAuth"),
1550
1591
  (0, runtime_1.Post)("/account/block/person"),
@@ -1637,6 +1678,27 @@ __decorate([
1637
1678
  __param(0, (0, runtime_1.Queries)()),
1638
1679
  __param(1, (0, runtime_1.Inject)())
1639
1680
  ], LemmyHttp.prototype, "listPersonSaved", null);
1681
+ __decorate([
1682
+ (0, runtime_1.Security)("bearerAuth"),
1683
+ (0, runtime_1.Get)("/account/read"),
1684
+ (0, runtime_1.Tags)("Account"),
1685
+ __param(0, (0, runtime_1.Queries)()),
1686
+ __param(1, (0, runtime_1.Inject)())
1687
+ ], LemmyHttp.prototype, "listPersonRead", null);
1688
+ __decorate([
1689
+ (0, runtime_1.Security)("bearerAuth"),
1690
+ (0, runtime_1.Get)("/account/hidden"),
1691
+ (0, runtime_1.Tags)("Account"),
1692
+ __param(0, (0, runtime_1.Queries)()),
1693
+ __param(1, (0, runtime_1.Inject)())
1694
+ ], LemmyHttp.prototype, "listPersonHidden", null);
1695
+ __decorate([
1696
+ (0, runtime_1.Security)("bearerAuth"),
1697
+ (0, runtime_1.Get)("/account/liked"),
1698
+ (0, runtime_1.Tags)("Account"),
1699
+ __param(0, (0, runtime_1.Queries)()),
1700
+ __param(1, (0, runtime_1.Inject)())
1701
+ ], LemmyHttp.prototype, "listPersonLiked", null);
1640
1702
  __decorate([
1641
1703
  (0, runtime_1.Security)("bearerAuth"),
1642
1704
  (0, runtime_1.Post)("/admin/add"),
@@ -1869,27 +1931,31 @@ __decorate([
1869
1931
  (0, runtime_1.Security)("bearerAuth"),
1870
1932
  (0, runtime_1.Post)("/community/icon"),
1871
1933
  (0, runtime_1.Tags)("Community", "Media"),
1872
- __param(0, (0, runtime_1.UploadedFile)()),
1873
- __param(1, (0, runtime_1.Inject)())
1934
+ __param(0, (0, runtime_1.Queries)()),
1935
+ __param(1, (0, runtime_1.UploadedFile)()),
1936
+ __param(2, (0, runtime_1.Inject)())
1874
1937
  ], LemmyHttp.prototype, "uploadCommunityIcon", null);
1875
1938
  __decorate([
1876
1939
  (0, runtime_1.Security)("bearerAuth"),
1877
1940
  (0, runtime_1.Delete)("/community/icon"),
1878
1941
  (0, runtime_1.Tags)("Community", "Media"),
1879
- __param(0, (0, runtime_1.Inject)())
1942
+ __param(0, (0, runtime_1.Body)()),
1943
+ __param(1, (0, runtime_1.Inject)())
1880
1944
  ], LemmyHttp.prototype, "deleteCommunityIcon", null);
1881
1945
  __decorate([
1882
1946
  (0, runtime_1.Security)("bearerAuth"),
1883
1947
  (0, runtime_1.Post)("/community/banner"),
1884
1948
  (0, runtime_1.Tags)("Community", "Media"),
1885
- __param(0, (0, runtime_1.UploadedFile)()),
1886
- __param(1, (0, runtime_1.Inject)())
1949
+ __param(0, (0, runtime_1.Queries)()),
1950
+ __param(1, (0, runtime_1.UploadedFile)()),
1951
+ __param(2, (0, runtime_1.Inject)())
1887
1952
  ], LemmyHttp.prototype, "uploadCommunityBanner", null);
1888
1953
  __decorate([
1889
1954
  (0, runtime_1.Security)("bearerAuth"),
1890
1955
  (0, runtime_1.Delete)("/community/banner"),
1891
1956
  (0, runtime_1.Tags)("Community", "Media"),
1892
- __param(0, (0, runtime_1.Inject)())
1957
+ __param(0, (0, runtime_1.Body)()),
1958
+ __param(1, (0, runtime_1.Inject)())
1893
1959
  ], LemmyHttp.prototype, "deleteCommunityBanner", null);
1894
1960
  __decorate([
1895
1961
  (0, runtime_1.Security)("bearerAuth"),
@@ -1930,8 +1996,49 @@ __decorate([
1930
1996
  __param(0, (0, runtime_1.Inject)())
1931
1997
  ], LemmyHttp.prototype, "imageHealth", null);
1932
1998
  __decorate([
1999
+ (0, runtime_1.Security)("bearerAuth"),
2000
+ (0, runtime_1.Post)("/user/donation_dialog_shown"),
1933
2001
  __param(0, (0, runtime_1.Inject)())
1934
- ], LemmyHttp.prototype, "donation_dialog_shown", null);
2002
+ ], LemmyHttp.prototype, "donationDialogShown", null);
2003
+ __decorate([
2004
+ (0, runtime_1.Security)("bearerAuth"),
2005
+ (0, runtime_1.Post)("/multi_community"),
2006
+ __param(0, (0, runtime_1.Body)()),
2007
+ __param(1, (0, runtime_1.Inject)())
2008
+ ], LemmyHttp.prototype, "createMultiCommunity", null);
2009
+ __decorate([
2010
+ (0, runtime_1.Security)("bearerAuth"),
2011
+ (0, runtime_1.Put)("/multi_community"),
2012
+ __param(0, (0, runtime_1.Body)()),
2013
+ __param(1, (0, runtime_1.Inject)())
2014
+ ], LemmyHttp.prototype, "updateMultiCommunity", null);
2015
+ __decorate([
2016
+ (0, runtime_1.Get)("/multi_community"),
2017
+ __param(0, (0, runtime_1.Queries)()),
2018
+ __param(1, (0, runtime_1.Inject)())
2019
+ ], LemmyHttp.prototype, "getMultiCommunity", null);
2020
+ __decorate([
2021
+ (0, runtime_1.Security)("bearerAuth"),
2022
+ (0, runtime_1.Post)("/multi_community/entry"),
2023
+ __param(0, (0, runtime_1.Body)()),
2024
+ __param(1, (0, runtime_1.Inject)())
2025
+ ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2026
+ __decorate([
2027
+ (0, runtime_1.Security)("bearerAuth"),
2028
+ (0, runtime_1.Delete)("/multi_community/entry"),
2029
+ __param(0, (0, runtime_1.Body)()),
2030
+ __param(1, (0, runtime_1.Inject)())
2031
+ ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
2032
+ __decorate([
2033
+ (0, runtime_1.Get)("/multi_community/list"),
2034
+ __param(0, (0, runtime_1.Queries)()),
2035
+ __param(1, (0, runtime_1.Inject)())
2036
+ ], LemmyHttp.prototype, "listMultiCommunities", null);
2037
+ __decorate([
2038
+ (0, runtime_1.Post)("/multi_community/follow"),
2039
+ __param(0, (0, runtime_1.Body)()),
2040
+ __param(1, (0, runtime_1.Inject)())
2041
+ ], LemmyHttp.prototype, "followMultiCommunity", null);
1935
2042
  exports.LemmyHttp = LemmyHttp = __decorate([
1936
2043
  (0, runtime_1.Route)("api/v4")
1937
2044
  ], LemmyHttp);
@@ -1952,3 +2059,18 @@ function createFormData(image) {
1952
2059
  }
1953
2060
  return formData;
1954
2061
  }
2062
+ /**
2063
+ * A Lemmy error type.
2064
+ *
2065
+ * The name is the i18n translatable error code.
2066
+ * The msg is either an empty string, or extra non-translatable info.
2067
+ */
2068
+ class LemmyError extends Error {
2069
+ constructor(name, msg) {
2070
+ super(msg ?? "");
2071
+ this.name = name;
2072
+ // Set the prototype explicitly.
2073
+ Object.setPrototypeOf(this, LemmyError.prototype);
2074
+ }
2075
+ }
2076
+ exports.LemmyError = LemmyError;
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
13
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
14
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
15
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
+ export { AdminListUsers } from "./types/AdminListUsers";
17
+ export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
16
18
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
19
  export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
18
20
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
@@ -32,7 +34,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
32
34
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
33
35
  export { BanPerson } from "./types/BanPerson";
34
36
  export { BanPersonResponse } from "./types/BanPersonResponse";
35
- export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
36
37
  export { BlockCommunity } from "./types/BlockCommunity";
37
38
  export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
38
39
  export { BlockPerson } from "./types/BlockPerson";
@@ -58,6 +59,7 @@ export { CommunityActions } from "./types/CommunityActions";
58
59
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
60
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
61
  export { CommunityId } from "./types/CommunityId";
62
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
63
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
62
64
  export { CommunityReport } from "./types/CommunityReport";
63
65
  export { CommunityReportId } from "./types/CommunityReportId";
@@ -74,7 +76,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
74
76
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
75
77
  export { CreateCommunityTag } from "./types/CreateCommunityTag";
76
78
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
79
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
77
80
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
81
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
78
82
  export { CreatePost } from "./types/CreatePost";
79
83
  export { CreatePostLike } from "./types/CreatePostLike";
80
84
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -112,6 +116,7 @@ export { FederationBlockList } from "./types/FederationBlockList";
112
116
  export { FederationError } from "./types/FederationError";
113
117
  export { FederationMode } from "./types/FederationMode";
114
118
  export { FollowCommunity } from "./types/FollowCommunity";
119
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
115
120
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
116
121
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
117
122
  export { GetComment } from "./types/GetComment";
@@ -125,6 +130,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
125
130
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
126
131
  export { GetModlog } from "./types/GetModlog";
127
132
  export { GetModlogResponse } from "./types/GetModlogResponse";
133
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
134
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
128
135
  export { GetPersonDetails } from "./types/GetPersonDetails";
129
136
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
130
137
  export { GetPost } from "./types/GetPost";
@@ -154,8 +161,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
154
161
  export { Language } from "./types/Language";
155
162
  export { LanguageId } from "./types/LanguageId";
156
163
  export { LemmyErrorType } from "./types/LemmyErrorType";
164
+ export { LikeType } from "./types/LikeType";
157
165
  export { LinkMetadata } from "./types/LinkMetadata";
158
- export { ListBannedPersons } from "./types/ListBannedPersons";
159
166
  export { ListCommentLikes } from "./types/ListCommentLikes";
160
167
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
161
168
  export { ListCommunities } from "./types/ListCommunities";
@@ -169,8 +176,16 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
169
176
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
170
177
  export { ListMedia } from "./types/ListMedia";
171
178
  export { ListMediaResponse } from "./types/ListMediaResponse";
179
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
180
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
172
181
  export { ListPersonContent } from "./types/ListPersonContent";
173
182
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
183
+ export { ListPersonHidden } from "./types/ListPersonHidden";
184
+ export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
185
+ export { ListPersonLiked } from "./types/ListPersonLiked";
186
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
187
+ export { ListPersonRead } from "./types/ListPersonRead";
188
+ export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
174
189
  export { ListPersonSaved } from "./types/ListPersonSaved";
175
190
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
176
191
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -236,7 +251,12 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
236
251
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
237
252
  export { ModlogActionType } from "./types/ModlogActionType";
238
253
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
254
+ export { MultiCommunity } from "./types/MultiCommunity";
255
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
256
+ export { MultiCommunityId } from "./types/MultiCommunityId";
257
+ export { MultiCommunityView } from "./types/MultiCommunityView";
239
258
  export { MyUserInfo } from "./types/MyUserInfo";
259
+ export { NotePerson } from "./types/NotePerson";
240
260
  export { OAuthAccount } from "./types/OAuthAccount";
241
261
  export { OAuthProvider } from "./types/OAuthProvider";
242
262
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -253,6 +273,7 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
253
273
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
254
274
  export { PersonContentType } from "./types/PersonContentType";
255
275
  export { PersonId } from "./types/PersonId";
276
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
256
277
  export { PersonPostMention } from "./types/PersonPostMention";
257
278
  export { PersonPostMentionId } from "./types/PersonPostMentionId";
258
279
  export { PersonPostMentionView } from "./types/PersonPostMentionView";
@@ -300,7 +321,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
300
321
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
301
322
  export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
302
323
  export { ResolveObject } from "./types/ResolveObject";
303
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
304
324
  export { ResolvePostReport } from "./types/ResolvePostReport";
305
325
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
306
326
  export { SaveComment } from "./types/SaveComment";
@@ -325,10 +345,12 @@ export { TaglineResponse } from "./types/TaglineResponse";
325
345
  export { TagsView } from "./types/TagsView";
326
346
  export { TransferCommunity } from "./types/TransferCommunity";
327
347
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
348
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
328
349
  export { UpdateTagline } from "./types/UpdateTagline";
329
350
  export { UpdateTotp } from "./types/UpdateTotp";
330
351
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
331
352
  export { UploadImageResponse } from "./types/UploadImageResponse";
332
353
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
333
354
  export { VerifyEmail } from "./types/VerifyEmail";
355
+ export { VoteShow } from "./types/VoteShow";
334
356
  export { VoteView } from "./types/VoteView";
@@ -1,9 +1,12 @@
1
+ import { AdminListUsers } from "./types/AdminListUsers";
2
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
1
3
  import { DeleteImageParams } from "./types/DeleteImageParams";
2
4
  import { GetComment } from "./types/GetComment";
3
5
  import { GetComments } from "./types/GetComments";
4
6
  import { GetCommunity } from "./types/GetCommunity";
5
7
  import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
8
  import { GetModlog } from "./types/GetModlog";
9
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
7
10
  import { GetPersonDetails } from "./types/GetPersonDetails";
8
11
  import { GetPost } from "./types/GetPost";
9
12
  import { GetPosts } from "./types/GetPosts";
@@ -11,14 +14,17 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
14
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
15
  import { GetReportCount } from "./types/GetReportCount";
13
16
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
- import { ListBannedPersons } from "./types/ListBannedPersons";
15
17
  import { ListCommentLikes } from "./types/ListCommentLikes";
16
18
  import { ListCommunities } from "./types/ListCommunities";
17
19
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
18
20
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
19
21
  import { ListInbox } from "./types/ListInbox";
20
22
  import { ListMedia } from "./types/ListMedia";
23
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
21
24
  import { ListPersonContent } from "./types/ListPersonContent";
25
+ import { ListPersonHidden } from "./types/ListPersonHidden";
26
+ import { ListPersonLiked } from "./types/ListPersonLiked";
27
+ import { ListPersonRead } from "./types/ListPersonRead";
22
28
  import { ListPersonSaved } from "./types/ListPersonSaved";
23
29
  import { ListPostLikes } from "./types/ListPostLikes";
24
30
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -72,6 +78,12 @@ export interface ListInboxI extends ListInbox {
72
78
  }
73
79
  export interface ListPersonSavedI extends ListPersonSaved {
74
80
  }
81
+ export interface ListPersonReadI extends ListPersonRead {
82
+ }
83
+ export interface ListPersonHiddenI extends ListPersonHidden {
84
+ }
85
+ export interface ListPersonLikedI extends ListPersonLiked {
86
+ }
75
87
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
76
88
  }
77
89
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -84,5 +96,11 @@ export interface ListReportsI extends ListReports {
84
96
  }
85
97
  export interface DeleteImageParamsI extends DeleteImageParams {
86
98
  }
87
- export interface ListBannedPersonsI extends ListBannedPersons {
99
+ export interface AdminListUsersI extends AdminListUsers {
100
+ }
101
+ export interface CommunityIdQueryI extends CommunityIdQuery {
102
+ }
103
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
+ }
105
+ export interface GetMultiCommunityI extends GetMultiCommunity {
88
106
  }
@@ -7,5 +7,5 @@ export type AdminAllowInstance = {
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };