lemmy-js-client 1.0.0-post-tags.3 → 1.0.0-private-community-fixes.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.
- package/README.md +6 -0
 - package/dist/http.d.ts +44 -24
 - package/dist/http.js +84 -31
 - package/dist/index.d.ts +24 -29
 - package/dist/other_types.d.ts +0 -3
 - package/dist/types/{ModAdd.d.ts → AdminAdd.d.ts} +4 -4
 - package/dist/types/AdminAddId.d.ts +1 -0
 - package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
 - package/dist/types/AdminAllowInstance.d.ts +1 -1
 - package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
 - package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +4 -4
 - package/dist/types/AdminBanId.d.ts +1 -0
 - package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
 - package/dist/types/AdminBlockInstance.d.ts +1 -1
 - package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
 - package/dist/types/AdminPurgeComment.d.ts +1 -1
 - package/dist/types/AdminPurgeCommunity.d.ts +1 -1
 - package/dist/types/AdminPurgePerson.d.ts +1 -1
 - package/dist/types/AdminPurgePost.d.ts +1 -1
 - package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
 - package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
 - package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
 - package/dist/types/AllLemmyErrors.d.ts +1 -0
 - package/dist/types/AllLemmyErrors.js +117 -0
 - package/dist/types/BanFromCommunity.d.ts +1 -1
 - package/dist/types/BanPerson.d.ts +1 -1
 - package/dist/types/Comment.d.ts +4 -0
 - package/dist/types/CommentReportView.d.ts +2 -0
 - package/dist/types/CommentSlimView.d.ts +0 -2
 - package/dist/types/CommentView.d.ts +2 -2
 - package/dist/types/CommunityFollowerState.d.ts +1 -1
 - package/dist/types/CommunityReportView.d.ts +2 -0
 - package/dist/types/CommunityView.d.ts +0 -2
 - package/dist/types/CreateCustomEmoji.d.ts +2 -1
 - package/dist/types/CreateCustomEmoji.js +0 -1
 - package/dist/types/CreateSite.d.ts +0 -1
 - package/dist/types/EditCustomEmoji.d.ts +7 -5
 - package/dist/types/EditSite.d.ts +4 -4
 - package/dist/types/GetMultiCommunity.d.ts +2 -1
 - package/dist/types/HideCommunity.d.ts +1 -1
 - package/dist/types/InstanceActions.d.ts +6 -2
 - package/dist/types/LemmyErrorType.d.ts +23 -133
 - package/dist/types/LinkMetadata.d.ts +4 -0
 - package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
 - package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
 - package/dist/types/LocalSite.d.ts +1 -6
 - package/dist/types/LocalUser.d.ts +10 -13
 - package/dist/types/LocalUserView.d.ts +1 -0
 - package/dist/types/LockComment.d.ts +9 -0
 - package/dist/types/LockPost.d.ts +1 -1
 - package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
 - package/dist/types/ModAddToCommunityId.d.ts +1 -0
 - package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
 - package/dist/types/ModBanFromCommunity.d.ts +1 -1
 - package/dist/types/ModLockComment.d.ts +14 -0
 - package/dist/types/ModLockCommentId.d.ts +1 -0
 - package/dist/types/ModLockCommentView.d.ts +16 -0
 - package/dist/types/ModLockPost.d.ts +1 -1
 - package/dist/types/ModRemoveComment.d.ts +1 -1
 - package/dist/types/ModRemovePost.d.ts +1 -1
 - package/dist/types/ModlogActionType.d.ts +1 -1
 - package/dist/types/ModlogCombinedView.d.ts +16 -13
 - package/dist/types/MultiCommunityResponse.d.ts +4 -0
 - package/dist/types/MultiCommunityView.d.ts +2 -0
 - package/dist/types/MyUserInfo.d.ts +2 -1
 - package/dist/types/Notification.d.ts +22 -2
 - package/dist/types/NotificationData.d.ts +31 -1
 - package/dist/types/NotificationType.d.ts +4 -0
 - package/dist/types/OpenGraphData.d.ts +4 -0
 - package/dist/types/PendingFollowerView.d.ts +9 -0
 - package/dist/types/PersonResponse.d.ts +7 -0
 - package/dist/types/PersonView.d.ts +2 -1
 - package/dist/types/Post.d.ts +2 -0
 - package/dist/types/PostOrCommentOrPrivateMessage.d.ts +7 -7
 - package/dist/types/PostReportView.d.ts +2 -0
 - package/dist/types/PostView.d.ts +2 -2
 - package/dist/types/PrivateMessageReportView.d.ts +1 -0
 - package/dist/types/PurgeComment.d.ts +1 -1
 - package/dist/types/PurgeCommunity.d.ts +1 -1
 - package/dist/types/PurgePerson.d.ts +1 -1
 - package/dist/types/PurgePost.d.ts +1 -1
 - package/dist/types/ReadableFederationState.d.ts +1 -1
 - package/dist/types/RemoveComment.d.ts +1 -1
 - package/dist/types/RemoveCommunity.d.ts +1 -1
 - package/dist/types/RemovePost.d.ts +1 -1
 - package/dist/types/SaveUserSettings.d.ts +5 -5
 - package/dist/types/UntranslatedError.d.ts +12 -0
 - package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
 - package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
 - package/dist/types/UserSettingsBackup.d.ts +2 -1
 - package/package.json +6 -5
 - package/dist/types/BanPersonResponse.d.ts +0 -8
 - package/dist/types/BlockCommunityResponse.d.ts +0 -8
 - package/dist/types/BlockPersonResponse.d.ts +0 -8
 - package/dist/types/CommentReply.d.ts +0 -13
 - package/dist/types/CommentReplyId.d.ts +0 -4
 - package/dist/types/FederationError.d.ts +0 -10
 - package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
 - package/dist/types/InboxDataType.d.ts +0 -4
 - package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
 - package/dist/types/ModAddCommunityId.d.ts +0 -1
 - package/dist/types/ModAddId.d.ts +0 -1
 - package/dist/types/ModBanId.d.ts +0 -1
 - package/dist/types/ModRemoveCommunityId.d.ts +0 -1
 - package/dist/types/ModRemoveCommunityView.d.ts +0 -11
 - package/dist/types/NotificationTypes.d.ts +0 -4
 - package/dist/types/NotificationTypes.js +0 -3
 - package/dist/types/NotificationsMode.d.ts +0 -4
 - package/dist/types/NotificationsMode.js +0 -3
 - package/dist/types/PersonCommentMention.d.ts +0 -13
 - package/dist/types/PersonCommentMentionId.d.ts +0 -4
 - package/dist/types/PersonCommentMentionId.js +0 -3
 - package/dist/types/PersonNotification.d.ts +0 -9
 - package/dist/types/PersonPostMention.d.ts +0 -13
 - package/dist/types/PersonPostMention.js +0 -2
 - package/dist/types/PersonPostMentionId.d.ts +0 -4
 - package/dist/types/PersonPostMentionId.js +0 -3
 - package/dist/types/UserBlockInstanceParams.js +0 -2
 - /package/dist/types/{BanPersonResponse.js → AdminAdd.js} +0 -0
 - /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
 - /package/dist/types/{BlockCommunityResponse.js → AdminAddView.js} +0 -0
 - /package/dist/types/{BlockPersonResponse.js → AdminBan.js} +0 -0
 - /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
 - /package/dist/types/{CommentReply.js → AdminBanView.js} +0 -0
 - /package/dist/types/{GetCommunityPendingFollowsCount.js → AdminRemoveCommunity.js} +0 -0
 - /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
 - /package/dist/types/{MarkPrivateMessageAsRead.js → AdminRemoveCommunityView.js} +0 -0
 - /package/dist/types/{ModAdd.js → LockComment.js} +0 -0
 - /package/dist/types/{ModAddCommunity.js → ModAddToCommunity.js} +0 -0
 - /package/dist/types/{ModAddCommunityId.js → ModAddToCommunityId.js} +0 -0
 - /package/dist/types/{ModAddCommunityView.js → ModAddToCommunityView.js} +0 -0
 - /package/dist/types/{ModAddView.js → ModLockComment.js} +0 -0
 - /package/dist/types/{ModAddId.js → ModLockCommentId.js} +0 -0
 - /package/dist/types/{ModBan.js → ModLockCommentView.js} +0 -0
 - /package/dist/types/{ModBanView.js → MultiCommunityResponse.js} +0 -0
 - /package/dist/types/{ModBanId.js → NotificationType.js} +0 -0
 - /package/dist/types/{ModRemoveCommunity.js → PendingFollowerView.js} +0 -0
 - /package/dist/types/{ModRemoveCommunityView.js → PersonResponse.js} +0 -0
 - /package/dist/types/{ModRemoveCommunityId.js → UntranslatedError.js} +0 -0
 - /package/dist/types/{PersonCommentMention.js → UserBlockInstanceCommunitiesParams.js} +0 -0
 - /package/dist/types/{PersonNotification.js → UserBlockInstancePersonsParams.js} +0 -0
 
    
        package/README.md
    CHANGED
    
    | 
         @@ -52,6 +52,12 @@ Use `pnpm add` to develop and test changes locally: 
     | 
|
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         
             
            `pnpm add path/to/lemmy-js-client`
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
      
 55 
     | 
    
         
            +
            Alternatively, use `yalc publish` and `yalc add lemmy-js-client`
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
            ## Generating typescript types from lemmy structs
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
            Run `./scripts/copy_generated_types_from_lemmy.sh`
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
       55 
61 
     | 
    
         
             
            ## OpenAPI
         
     | 
| 
       56 
62 
     | 
    
         | 
| 
       57 
63 
     | 
    
         
             
            To generate OpenAPI docs, run `pnpm tsoa`
         
     | 
    
        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,  
     | 
| 
      
 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";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { AddAdmin } from "./types/AddAdmin";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import { AddAdminResponse } from "./types/AddAdminResponse";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import { AddModToCommunity } from "./types/AddModToCommunity";
         
     | 
| 
         @@ -9,11 +9,8 @@ import { BanFromCommunity } from "./types/BanFromCommunity"; 
     | 
|
| 
       9 
9 
     | 
    
         
             
            import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
         
     | 
| 
       10 
10 
     | 
    
         
             
            import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
         
     | 
| 
       11 
11 
     | 
    
         
             
            import { BanPerson } from "./types/BanPerson";
         
     | 
| 
       12 
     | 
    
         
            -
            import { BanPersonResponse } from "./types/BanPersonResponse";
         
     | 
| 
       13 
12 
     | 
    
         
             
            import { BlockCommunity } from "./types/BlockCommunity";
         
     | 
| 
       14 
     | 
    
         
            -
            import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
         
     | 
| 
       15 
13 
     | 
    
         
             
            import { BlockPerson } from "./types/BlockPerson";
         
     | 
| 
       16 
     | 
    
         
            -
            import { BlockPersonResponse } from "./types/BlockPersonResponse";
         
     | 
| 
       17 
14 
     | 
    
         
             
            import { ChangePassword } from "./types/ChangePassword";
         
     | 
| 
       18 
15 
     | 
    
         
             
            import { CommentReportResponse } from "./types/CommentReportResponse";
         
     | 
| 
       19 
16 
     | 
    
         
             
            import { CommentResponse } from "./types/CommentResponse";
         
     | 
| 
         @@ -70,10 +67,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread 
     | 
|
| 
       70 
67 
     | 
    
         
             
            import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
         
     | 
| 
       71 
68 
     | 
    
         
             
            import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
         
     | 
| 
       72 
69 
     | 
    
         
             
            import { LockPost } from "./types/LockPost";
         
     | 
| 
      
 70 
     | 
    
         
            +
            import { LockComment } from "./types/LockComment";
         
     | 
| 
       73 
71 
     | 
    
         
             
            import { Login } from "./types/Login";
         
     | 
| 
       74 
72 
     | 
    
         
             
            import { LoginResponse } from "./types/LoginResponse";
         
     | 
| 
       75 
73 
     | 
    
         
             
            import { MarkPostAsRead } from "./types/MarkPostAsRead";
         
     | 
| 
       76 
     | 
    
         
            -
            import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
         
     | 
| 
       77 
74 
     | 
    
         
             
            import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
         
     | 
| 
       78 
75 
     | 
    
         
             
            import { PasswordReset } from "./types/PasswordReset";
         
     | 
| 
       79 
76 
     | 
    
         
             
            import { PostReportResponse } from "./types/PostReportResponse";
         
     | 
| 
         @@ -121,7 +118,6 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen 
     | 
|
| 
       121 
118 
     | 
    
         
             
            import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
         
     | 
| 
       122 
119 
     | 
    
         
             
            import { ListReportsResponse } from "./types/ListReportsResponse";
         
     | 
| 
       123 
120 
     | 
    
         
             
            import { MyUserInfo } from "./types/MyUserInfo";
         
     | 
| 
       124 
     | 
    
         
            -
            import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
         
     | 
| 
       125 
121 
     | 
    
         
             
            import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
         
     | 
| 
       126 
122 
     | 
    
         
             
            import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
         
     | 
| 
       127 
123 
     | 
    
         
             
            import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
         
     | 
| 
         @@ -142,9 +138,16 @@ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse"; 
     | 
|
| 
       142 
138 
     | 
    
         
             
            import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
         
     | 
| 
       143 
139 
     | 
    
         
             
            import { ListLoginsResponse } from "./types/ListLoginsResponse";
         
     | 
| 
       144 
140 
     | 
    
         
             
            import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
         
     | 
| 
      
 141 
     | 
    
         
            +
            import { NotePerson } from "./types/NotePerson";
         
     | 
| 
      
 142 
     | 
    
         
            +
            import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
         
     | 
| 
      
 143 
     | 
    
         
            +
            import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
         
     | 
| 
       145 
144 
     | 
    
         
             
            import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
         
     | 
| 
       146 
145 
     | 
    
         
             
            import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
         
     | 
| 
       147 
146 
     | 
    
         
             
            import { ModEditPost } from "./types/ModEditPost";
         
     | 
| 
      
 147 
     | 
    
         
            +
            import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
         
     | 
| 
      
 148 
     | 
    
         
            +
            import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
         
     | 
| 
      
 149 
     | 
    
         
            +
            import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
         
     | 
| 
      
 150 
     | 
    
         
            +
            import { PersonResponse } from "./types/PersonResponse";
         
     | 
| 
       148 
151 
     | 
    
         
             
            type RequestOptions = Pick<RequestInit, "signal">;
         
     | 
| 
       149 
152 
     | 
    
         
             
            /**
         
     | 
| 
       150 
153 
     | 
    
         
             
             * Helps build lemmy HTTP requests.
         
     | 
| 
         @@ -267,7 +270,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       267 
270 
     | 
    
         
             
                /**
         
     | 
| 
       268 
271 
     | 
    
         
             
                 * @summary Get a community's pending follows count.
         
     | 
| 
       269 
272 
     | 
    
         
             
                 */
         
     | 
| 
       270 
     | 
    
         
            -
                getCommunityPendingFollowsCount( 
     | 
| 
      
 273 
     | 
    
         
            +
                getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
         
     | 
| 
       271 
274 
     | 
    
         
             
                /**
         
     | 
| 
       272 
275 
     | 
    
         
             
                 * @summary Get a community's pending followers.
         
     | 
| 
       273 
276 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -279,7 +282,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       279 
282 
     | 
    
         
             
                /**
         
     | 
| 
       280 
283 
     | 
    
         
             
                 * @summary Block a community.
         
     | 
| 
       281 
284 
     | 
    
         
             
                 */
         
     | 
| 
       282 
     | 
    
         
            -
                blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise< 
     | 
| 
      
 285 
     | 
    
         
            +
                blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
         
     | 
| 
       283 
286 
     | 
    
         
             
                /**
         
     | 
| 
       284 
287 
     | 
    
         
             
                 * @summary Delete a community.
         
     | 
| 
       285 
288 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -351,7 +354,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       351 
354 
     | 
    
         
             
                /**
         
     | 
| 
       352 
355 
     | 
    
         
             
                 * @summary Hide a post from list views.
         
     | 
| 
       353 
356 
     | 
    
         
             
                 */
         
     | 
| 
       354 
     | 
    
         
            -
                hidePost(form: HidePost, options?: RequestOptions): Promise< 
     | 
| 
      
 357 
     | 
    
         
            +
                hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
         
     | 
| 
       355 
358 
     | 
    
         
             
                /**
         
     | 
| 
       356 
359 
     | 
    
         
             
                 * @summary A moderator can lock a post ( IE disable new comments ).
         
     | 
| 
       357 
360 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -405,7 +408,11 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       405 
408 
     | 
    
         
             
                 */
         
     | 
| 
       406 
409 
     | 
    
         
             
                removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
         
     | 
| 
       407 
410 
     | 
    
         
             
                /**
         
     | 
| 
       408 
     | 
    
         
            -
                 * @summary  
     | 
| 
      
 411 
     | 
    
         
            +
                 * @summary A moderator can lock a comment (IE disable replies).
         
     | 
| 
      
 412 
     | 
    
         
            +
                 */
         
     | 
| 
      
 413 
     | 
    
         
            +
                lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
         
     | 
| 
      
 414 
     | 
    
         
            +
                /**
         
     | 
| 
      
 415 
     | 
    
         
            +
                 * @Summary Like / vote on a comment.
         
     | 
| 
       409 
416 
     | 
    
         
             
                 */
         
     | 
| 
       410 
417 
     | 
    
         
             
                likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
         
     | 
| 
       411 
418 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -452,10 +459,6 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       452 
459 
     | 
    
         
             
                 * @summary Delete a private message.
         
     | 
| 
       453 
460 
     | 
    
         
             
                 */
         
     | 
| 
       454 
461 
     | 
    
         
             
                deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
         
     | 
| 
       455 
     | 
    
         
            -
                /**
         
     | 
| 
       456 
     | 
    
         
            -
                 * @summary Mark a private message as read.
         
     | 
| 
       457 
     | 
    
         
            -
                 */
         
     | 
| 
       458 
     | 
    
         
            -
                markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       459 
462 
     | 
    
         
             
                /**
         
     | 
| 
       460 
463 
     | 
    
         
             
                 * @summary Create a report for a private message.
         
     | 
| 
       461 
464 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -484,10 +487,14 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       484 
487 
     | 
    
         
             
                 * @summary List the content for a person.
         
     | 
| 
       485 
488 
     | 
    
         
             
                 */
         
     | 
| 
       486 
489 
     | 
    
         
             
                listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
         
     | 
| 
      
 490 
     | 
    
         
            +
                /**
         
     | 
| 
      
 491 
     | 
    
         
            +
                 * @summary Make a note for a person.
         
     | 
| 
      
 492 
     | 
    
         
            +
                 */
         
     | 
| 
      
 493 
     | 
    
         
            +
                notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       487 
494 
     | 
    
         
             
                /**
         
     | 
| 
       488 
495 
     | 
    
         
             
                 * @summary Ban a person from your site.
         
     | 
| 
       489 
496 
     | 
    
         
             
                 */
         
     | 
| 
       490 
     | 
    
         
            -
                banPerson(form: BanPerson, options?: RequestOptions): Promise< 
     | 
| 
      
 497 
     | 
    
         
            +
                banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
         
     | 
| 
       491 
498 
     | 
    
         
             
                /**
         
     | 
| 
       492 
499 
     | 
    
         
             
                 * @summary Get a list of users.
         
     | 
| 
       493 
500 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -495,7 +502,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       495 
502 
     | 
    
         
             
                /**
         
     | 
| 
       496 
503 
     | 
    
         
             
                 * @summary Block a person.
         
     | 
| 
       497 
504 
     | 
    
         
             
                 */
         
     | 
| 
       498 
     | 
    
         
            -
                blockPerson(form: BlockPerson, options?: RequestOptions): Promise< 
     | 
| 
      
 505 
     | 
    
         
            +
                blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
         
     | 
| 
       499 
506 
     | 
    
         
             
                /**
         
     | 
| 
       500 
507 
     | 
    
         
             
                 * @summary Fetch a Captcha.
         
     | 
| 
       501 
508 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -517,7 +524,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       517 
524 
     | 
    
         
             
                 */
         
     | 
| 
       518 
525 
     | 
    
         
             
                markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       519 
526 
     | 
    
         
             
                /**
         
     | 
| 
       520 
     | 
    
         
            -
                 * @summary Mark a  
     | 
| 
      
 527 
     | 
    
         
            +
                 * @summary Mark a notification as read.
         
     | 
| 
       521 
528 
     | 
    
         
             
                 */
         
     | 
| 
       522 
529 
     | 
    
         
             
                markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       523 
530 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -669,9 +676,13 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       669 
676 
     | 
    
         
             
                 */
         
     | 
| 
       670 
677 
     | 
    
         
             
                listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
         
     | 
| 
       671 
678 
     | 
    
         
             
                /**
         
     | 
| 
       672 
     | 
    
         
            -
                 * @summary Block an instance as user.
         
     | 
| 
      
 679 
     | 
    
         
            +
                 * @summary Block an instance's communities as a user.
         
     | 
| 
       673 
680 
     | 
    
         
             
                 */
         
     | 
| 
       674 
     | 
    
         
            -
                 
     | 
| 
      
 681 
     | 
    
         
            +
                userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
      
 682 
     | 
    
         
            +
                /**
         
     | 
| 
      
 683 
     | 
    
         
            +
                 * @summary Block an instance's persons as a user.
         
     | 
| 
      
 684 
     | 
    
         
            +
                 */
         
     | 
| 
      
 685 
     | 
    
         
            +
                userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       675 
686 
     | 
    
         
             
                /**
         
     | 
| 
       676 
687 
     | 
    
         
             
                 * @summary Globally block an instance as admin.
         
     | 
| 
       677 
688 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -740,13 +751,21 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       740 
751 
     | 
    
         
             
                 * Mark donation dialog as shown, so it isn't displayed anymore.
         
     | 
| 
       741 
752 
     | 
    
         
             
                 */
         
     | 
| 
       742 
753 
     | 
    
         
             
                donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       743 
     | 
    
         
            -
                createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise< 
     | 
| 
       744 
     | 
    
         
            -
                updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise< 
     | 
| 
      
 754 
     | 
    
         
            +
                createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
         
     | 
| 
      
 755 
     | 
    
         
            +
                updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
         
     | 
| 
       745 
756 
     | 
    
         
             
                getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
         
     | 
| 
       746 
     | 
    
         
            -
                createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise< 
     | 
| 
      
 757 
     | 
    
         
            +
                createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
         
     | 
| 
       747 
758 
     | 
    
         
             
                deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       748 
759 
     | 
    
         
             
                listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
         
     | 
| 
       749 
     | 
    
         
            -
                followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise< 
     | 
| 
      
 760 
     | 
    
         
            +
                followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
         
     | 
| 
      
 761 
     | 
    
         
            +
                /**
         
     | 
| 
      
 762 
     | 
    
         
            +
                 * @summary Change notification settings for a community
         
     | 
| 
      
 763 
     | 
    
         
            +
                 */
         
     | 
| 
      
 764 
     | 
    
         
            +
                updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
      
 765 
     | 
    
         
            +
                /**
         
     | 
| 
      
 766 
     | 
    
         
            +
                 * @summary Change notification settings for a post
         
     | 
| 
      
 767 
     | 
    
         
            +
                 */
         
     | 
| 
      
 768 
     | 
    
         
            +
                updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
         
     | 
| 
       750 
769 
     | 
    
         
             
                /**
         
     | 
| 
       751 
770 
     | 
    
         
             
                 * Set the headers (can be used to set the auth header)
         
     | 
| 
       752 
771 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -761,6 +780,7 @@ export declare class LemmyHttp extends Controller { 
     | 
|
| 
       761 
780 
     | 
    
         
             
             * The msg is either an empty string, or extra non-translatable info.
         
     | 
| 
       762 
781 
     | 
    
         
             
             */
         
     | 
| 
       763 
782 
     | 
    
         
             
            export declare class LemmyError extends Error {
         
     | 
| 
       764 
     | 
    
         
            -
                 
     | 
| 
      
 783 
     | 
    
         
            +
                status: number;
         
     | 
| 
      
 784 
     | 
    
         
            +
                constructor(name: string, status: number, msg?: string);
         
     | 
| 
       765 
785 
     | 
    
         
             
            }
         
     | 
| 
       766 
786 
     | 
    
         
             
            export {};
         
     | 
    
        package/dist/http.js
    CHANGED
    
    | 
         @@ -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( 
     | 
| 
       209 
     | 
    
         
            -
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count",  
     | 
| 
      
 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.
         
     | 
| 
         @@ -413,7 +413,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       413 
413 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
         
     | 
| 
       414 
414 
     | 
    
         
             
                }
         
     | 
| 
       415 
415 
     | 
    
         
             
                /**
         
     | 
| 
       416 
     | 
    
         
            -
                 * @summary  
     | 
| 
      
 416 
     | 
    
         
            +
                 * @summary A moderator can lock a comment (IE disable replies).
         
     | 
| 
      
 417 
     | 
    
         
            +
                 */
         
     | 
| 
      
 418 
     | 
    
         
            +
                async lockComment(form, options) {
         
     | 
| 
      
 419 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/lock", form, options);
         
     | 
| 
      
 420 
     | 
    
         
            +
                }
         
     | 
| 
      
 421 
     | 
    
         
            +
                /**
         
     | 
| 
      
 422 
     | 
    
         
            +
                 * @Summary Like / vote on a comment.
         
     | 
| 
       417 
423 
     | 
    
         
             
                 */
         
     | 
| 
       418 
424 
     | 
    
         
             
                async likeComment(form, options) {
         
     | 
| 
       419 
425 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
         
     | 
| 
         @@ -484,12 +490,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       484 
490 
     | 
    
         
             
                async deletePrivateMessage(form, options) {
         
     | 
| 
       485 
491 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
         
     | 
| 
       486 
492 
     | 
    
         
             
                }
         
     | 
| 
       487 
     | 
    
         
            -
                /**
         
     | 
| 
       488 
     | 
    
         
            -
                 * @summary Mark a private message as read.
         
     | 
| 
       489 
     | 
    
         
            -
                 */
         
     | 
| 
       490 
     | 
    
         
            -
                async markPrivateMessageAsRead(form, options) {
         
     | 
| 
       491 
     | 
    
         
            -
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
         
     | 
| 
       492 
     | 
    
         
            -
                }
         
     | 
| 
       493 
493 
     | 
    
         
             
                /**
         
     | 
| 
       494 
494 
     | 
    
         
             
                 * @summary Create a report for a private message.
         
     | 
| 
       495 
495 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -532,6 +532,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       532 
532 
     | 
    
         
             
                async listPersonContent(form = {}, options) {
         
     | 
| 
       533 
533 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
         
     | 
| 
       534 
534 
     | 
    
         
             
                }
         
     | 
| 
      
 535 
     | 
    
         
            +
                /**
         
     | 
| 
      
 536 
     | 
    
         
            +
                 * @summary Make a note for a person.
         
     | 
| 
      
 537 
     | 
    
         
            +
                 */
         
     | 
| 
      
 538 
     | 
    
         
            +
                async notePerson(form, options) {
         
     | 
| 
      
 539 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
         
     | 
| 
      
 540 
     | 
    
         
            +
                }
         
     | 
| 
       535 
541 
     | 
    
         
             
                /**
         
     | 
| 
       536 
542 
     | 
    
         
             
                 * @summary Ban a person from your site.
         
     | 
| 
       537 
543 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -581,7 +587,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       581 
587 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
         
     | 
| 
       582 
588 
     | 
    
         
             
                }
         
     | 
| 
       583 
589 
     | 
    
         
             
                /**
         
     | 
| 
       584 
     | 
    
         
            -
                 * @summary Mark a  
     | 
| 
      
 590 
     | 
    
         
            +
                 * @summary Mark a notification as read.
         
     | 
| 
       585 
591 
     | 
    
         
             
                 */
         
     | 
| 
       586 
592 
     | 
    
         
             
                async markNotificationAsRead(form, options) {
         
     | 
| 
       587 
593 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
         
     | 
| 
         @@ -809,10 +815,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       809 
815 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
         
     | 
| 
       810 
816 
     | 
    
         
             
                }
         
     | 
| 
       811 
817 
     | 
    
         
             
                /**
         
     | 
| 
       812 
     | 
    
         
            -
                 * @summary Block an instance as user.
         
     | 
| 
      
 818 
     | 
    
         
            +
                 * @summary Block an instance's communities as a user.
         
     | 
| 
       813 
819 
     | 
    
         
             
                 */
         
     | 
| 
       814 
     | 
    
         
            -
                async  
     | 
| 
       815 
     | 
    
         
            -
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
         
     | 
| 
      
 820 
     | 
    
         
            +
                async userBlockInstanceCommunities(form, options) {
         
     | 
| 
      
 821 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
         
     | 
| 
      
 822 
     | 
    
         
            +
                }
         
     | 
| 
      
 823 
     | 
    
         
            +
                /**
         
     | 
| 
      
 824 
     | 
    
         
            +
                 * @summary Block an instance's persons as a user.
         
     | 
| 
      
 825 
     | 
    
         
            +
                 */
         
     | 
| 
      
 826 
     | 
    
         
            +
                async userBlockInstancePersons(form, options) {
         
     | 
| 
      
 827 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
         
     | 
| 
       816 
828 
     | 
    
         
             
                }
         
     | 
| 
       817 
829 
     | 
    
         
             
                /**
         
     | 
| 
       818 
830 
     | 
    
         
             
                 * @summary Globally block an instance as admin.
         
     | 
| 
         @@ -914,7 +926,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       914 
926 
     | 
    
         
             
                 * Mark donation dialog as shown, so it isn't displayed anymore.
         
     | 
| 
       915 
927 
     | 
    
         
             
                 */
         
     | 
| 
       916 
928 
     | 
    
         
             
                donationDialogShown(options) {
         
     | 
| 
       917 
     | 
    
         
            -
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/ 
     | 
| 
      
 929 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/donation_dialog_shown", {}, options);
         
     | 
| 
       918 
930 
     | 
    
         
             
                }
         
     | 
| 
       919 
931 
     | 
    
         
             
                createMultiCommunity(form, options) {
         
     | 
| 
       920 
932 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
         
     | 
| 
         @@ -937,6 +949,18 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller { 
     | 
|
| 
       937 
949 
     | 
    
         
             
                followMultiCommunity(form, options) {
         
     | 
| 
       938 
950 
     | 
    
         
             
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
         
     | 
| 
       939 
951 
     | 
    
         
             
                }
         
     | 
| 
      
 952 
     | 
    
         
            +
                /**
         
     | 
| 
      
 953 
     | 
    
         
            +
                 * @summary Change notification settings for a community
         
     | 
| 
      
 954 
     | 
    
         
            +
                 */
         
     | 
| 
      
 955 
     | 
    
         
            +
                updateCommunityNotifications(form, options) {
         
     | 
| 
      
 956 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/notifications", form, options);
         
     | 
| 
      
 957 
     | 
    
         
            +
                }
         
     | 
| 
      
 958 
     | 
    
         
            +
                /**
         
     | 
| 
      
 959 
     | 
    
         
            +
                 * @summary Change notification settings for a post
         
     | 
| 
      
 960 
     | 
    
         
            +
                 */
         
     | 
| 
      
 961 
     | 
    
         
            +
                updatePostNotifications(form, options) {
         
     | 
| 
      
 962 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/notifications", form, options);
         
     | 
| 
      
 963 
     | 
    
         
            +
                }
         
     | 
| 
       940 
964 
     | 
    
         
             
                /**
         
     | 
| 
       941 
965 
     | 
    
         
             
                 * Set the headers (can be used to set the auth header)
         
     | 
| 
       942 
966 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -991,10 +1015,11 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op 
     | 
|
| 
       991 
1015 
     | 
    
         
             
                    json = await response.json();
         
     | 
| 
       992 
1016 
     | 
    
         
             
                }
         
     | 
| 
       993 
1017 
     | 
    
         
             
                catch {
         
     | 
| 
       994 
     | 
    
         
            -
                    throw new LemmyError(response.statusText);
         
     | 
| 
      
 1018 
     | 
    
         
            +
                    throw new LemmyError(response.statusText, response.status);
         
     | 
| 
       995 
1019 
     | 
    
         
             
                }
         
     | 
| 
       996 
1020 
     | 
    
         
             
                if (!response.ok) {
         
     | 
| 
       997 
     | 
    
         
            -
                     
     | 
| 
      
 1021 
     | 
    
         
            +
                    console.error(`Request error while calling ${type_} ${endpoint} with ${JSON.stringify(form)}`);
         
     | 
| 
      
 1022 
     | 
    
         
            +
                    let err = new LemmyError(json.error ?? response.statusText, response.status, json.message);
         
     | 
| 
       998 
1023 
     | 
    
         
             
                    throw err;
         
     | 
| 
       999 
1024 
     | 
    
         
             
                }
         
     | 
| 
       1000 
1025 
     | 
    
         
             
                else {
         
     | 
| 
         @@ -1166,8 +1191,7 @@ __decorate([ 
     | 
|
| 
       1166 
1191 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1167 
1192 
     | 
    
         
             
                (0, runtime_1.Get)("/community/pending_follows/count"),
         
     | 
| 
       1168 
1193 
     | 
    
         
             
                (0, runtime_1.Tags)("Community"),
         
     | 
| 
       1169 
     | 
    
         
            -
                __param(0, (0, runtime_1. 
     | 
| 
       1170 
     | 
    
         
            -
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 1194 
     | 
    
         
            +
                __param(0, (0, runtime_1.Inject)())
         
     | 
| 
       1171 
1195 
     | 
    
         
             
            ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
         
     | 
| 
       1172 
1196 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1173 
1197 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
         @@ -1410,6 +1434,13 @@ __decorate([ 
     | 
|
| 
       1410 
1434 
     | 
    
         
             
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
       1411 
1435 
     | 
    
         
             
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       1412 
1436 
     | 
    
         
             
            ], LemmyHttp.prototype, "removeComment", null);
         
     | 
| 
      
 1437 
     | 
    
         
            +
            __decorate([
         
     | 
| 
      
 1438 
     | 
    
         
            +
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
      
 1439 
     | 
    
         
            +
                (0, runtime_1.Post)("/comment/lock"),
         
     | 
| 
      
 1440 
     | 
    
         
            +
                (0, runtime_1.Tags)("Comment", "Moderator"),
         
     | 
| 
      
 1441 
     | 
    
         
            +
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
      
 1442 
     | 
    
         
            +
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 1443 
     | 
    
         
            +
            ], LemmyHttp.prototype, "lockComment", null);
         
     | 
| 
       1413 
1444 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1414 
1445 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1415 
1446 
     | 
    
         
             
                (0, runtime_1.Post)("/comment/like"),
         
     | 
| 
         @@ -1497,13 +1528,6 @@ __decorate([ 
     | 
|
| 
       1497 
1528 
     | 
    
         
             
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
       1498 
1529 
     | 
    
         
             
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       1499 
1530 
     | 
    
         
             
            ], LemmyHttp.prototype, "deletePrivateMessage", null);
         
     | 
| 
       1500 
     | 
    
         
            -
            __decorate([
         
     | 
| 
       1501 
     | 
    
         
            -
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1502 
     | 
    
         
            -
                (0, runtime_1.Post)("/private_message/mark_as_read"),
         
     | 
| 
       1503 
     | 
    
         
            -
                (0, runtime_1.Tags)("PrivateMessage"),
         
     | 
| 
       1504 
     | 
    
         
            -
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
       1505 
     | 
    
         
            -
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       1506 
     | 
    
         
            -
            ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
         
     | 
| 
       1507 
1531 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1508 
1532 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1509 
1533 
     | 
    
         
             
                (0, runtime_1.Post)("/private_message/report"),
         
     | 
| 
         @@ -1552,6 +1576,13 @@ __decorate([ 
     | 
|
| 
       1552 
1576 
     | 
    
         
             
                __param(0, (0, runtime_1.Queries)()),
         
     | 
| 
       1553 
1577 
     | 
    
         
             
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       1554 
1578 
     | 
    
         
             
            ], LemmyHttp.prototype, "listPersonContent", null);
         
     | 
| 
      
 1579 
     | 
    
         
            +
            __decorate([
         
     | 
| 
      
 1580 
     | 
    
         
            +
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
      
 1581 
     | 
    
         
            +
                (0, runtime_1.Post)("/person/note"),
         
     | 
| 
      
 1582 
     | 
    
         
            +
                (0, runtime_1.Tags)("Person"),
         
     | 
| 
      
 1583 
     | 
    
         
            +
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
      
 1584 
     | 
    
         
            +
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 1585 
     | 
    
         
            +
            ], LemmyHttp.prototype, "notePerson", null);
         
     | 
| 
       1555 
1586 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1556 
1587 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1557 
1588 
     | 
    
         
             
                (0, runtime_1.Post)("/admin/ban"),
         
     | 
| 
         @@ -1869,11 +1900,18 @@ __decorate([ 
     | 
|
| 
       1869 
1900 
     | 
    
         
             
            ], LemmyHttp.prototype, "listReports", null);
         
     | 
| 
       1870 
1901 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1871 
1902 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1872 
     | 
    
         
            -
                (0, runtime_1.Post)("/account/block/instance"),
         
     | 
| 
       1873 
     | 
    
         
            -
                (0, runtime_1.Tags)("Account"),
         
     | 
| 
      
 1903 
     | 
    
         
            +
                (0, runtime_1.Post)("/account/block/instance/communities"),
         
     | 
| 
      
 1904 
     | 
    
         
            +
                (0, runtime_1.Tags)("Account", "Community"),
         
     | 
| 
       1874 
1905 
     | 
    
         
             
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
       1875 
1906 
     | 
    
         
             
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       1876 
     | 
    
         
            -
            ], LemmyHttp.prototype, " 
     | 
| 
      
 1907 
     | 
    
         
            +
            ], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
         
     | 
| 
      
 1908 
     | 
    
         
            +
            __decorate([
         
     | 
| 
      
 1909 
     | 
    
         
            +
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
      
 1910 
     | 
    
         
            +
                (0, runtime_1.Post)("/account/block/instance/persons"),
         
     | 
| 
      
 1911 
     | 
    
         
            +
                (0, runtime_1.Tags)("Account", "Person"),
         
     | 
| 
      
 1912 
     | 
    
         
            +
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
      
 1913 
     | 
    
         
            +
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 1914 
     | 
    
         
            +
            ], LemmyHttp.prototype, "userBlockInstancePersons", null);
         
     | 
| 
       1877 
1915 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1878 
1916 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1879 
1917 
     | 
    
         
             
                (0, runtime_1.Post)("/admin/instance/block"),
         
     | 
| 
         @@ -1984,8 +2022,8 @@ __decorate([ 
     | 
|
| 
       1984 
2022 
     | 
    
         
             
            ], LemmyHttp.prototype, "imageHealth", null);
         
     | 
| 
       1985 
2023 
     | 
    
         
             
            __decorate([
         
     | 
| 
       1986 
2024 
     | 
    
         
             
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
       1987 
     | 
    
         
            -
                (0, runtime_1.Post)("/ 
     | 
| 
       1988 
     | 
    
         
            -
                (0, runtime_1.Tags)(" 
     | 
| 
      
 2025 
     | 
    
         
            +
                (0, runtime_1.Post)("/account/donation_dialog_shown"),
         
     | 
| 
      
 2026 
     | 
    
         
            +
                (0, runtime_1.Tags)("Account"),
         
     | 
| 
       1989 
2027 
     | 
    
         
             
                __param(0, (0, runtime_1.Inject)())
         
     | 
| 
       1990 
2028 
     | 
    
         
             
            ], LemmyHttp.prototype, "donationDialogShown", null);
         
     | 
| 
       1991 
2029 
     | 
    
         
             
            __decorate([
         
     | 
| 
         @@ -2034,6 +2072,20 @@ __decorate([ 
     | 
|
| 
       2034 
2072 
     | 
    
         
             
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
       2035 
2073 
     | 
    
         
             
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
       2036 
2074 
     | 
    
         
             
            ], LemmyHttp.prototype, "followMultiCommunity", null);
         
     | 
| 
      
 2075 
     | 
    
         
            +
            __decorate([
         
     | 
| 
      
 2076 
     | 
    
         
            +
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
      
 2077 
     | 
    
         
            +
                (0, runtime_1.Put)("/community/notifications"),
         
     | 
| 
      
 2078 
     | 
    
         
            +
                (0, runtime_1.Tags)("Community"),
         
     | 
| 
      
 2079 
     | 
    
         
            +
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
      
 2080 
     | 
    
         
            +
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 2081 
     | 
    
         
            +
            ], LemmyHttp.prototype, "updateCommunityNotifications", null);
         
     | 
| 
      
 2082 
     | 
    
         
            +
            __decorate([
         
     | 
| 
      
 2083 
     | 
    
         
            +
                (0, runtime_1.Security)("bearerAuth"),
         
     | 
| 
      
 2084 
     | 
    
         
            +
                (0, runtime_1.Put)("/post/notifications"),
         
     | 
| 
      
 2085 
     | 
    
         
            +
                (0, runtime_1.Tags)("Post"),
         
     | 
| 
      
 2086 
     | 
    
         
            +
                __param(0, (0, runtime_1.Body)()),
         
     | 
| 
      
 2087 
     | 
    
         
            +
                __param(1, (0, runtime_1.Inject)())
         
     | 
| 
      
 2088 
     | 
    
         
            +
            ], LemmyHttp.prototype, "updatePostNotifications", null);
         
     | 
| 
       2037 
2089 
     | 
    
         
             
            exports.LemmyHttp = LemmyHttp = __decorate([
         
     | 
| 
       2038 
2090 
     | 
    
         
             
                (0, runtime_1.Route)("api/v4")
         
     | 
| 
       2039 
2091 
     | 
    
         
             
            ], LemmyHttp);
         
     | 
| 
         @@ -2061,9 +2113,10 @@ function createFormData(image) { 
     | 
|
| 
       2061 
2113 
     | 
    
         
             
             * The msg is either an empty string, or extra non-translatable info.
         
     | 
| 
       2062 
2114 
     | 
    
         
             
             */
         
     | 
| 
       2063 
2115 
     | 
    
         
             
            class LemmyError extends Error {
         
     | 
| 
       2064 
     | 
    
         
            -
                constructor(name, msg) {
         
     | 
| 
      
 2116 
     | 
    
         
            +
                constructor(name, status, msg) {
         
     | 
| 
       2065 
2117 
     | 
    
         
             
                    super(msg ?? "");
         
     | 
| 
       2066 
2118 
     | 
    
         
             
                    this.name = name;
         
     | 
| 
      
 2119 
     | 
    
         
            +
                    this.status = status;
         
     | 
| 
       2067 
2120 
     | 
    
         
             
                    // Set the prototype explicitly.
         
     | 
| 
       2068 
2121 
     | 
    
         
             
                    Object.setPrototypeOf(this, LemmyError.prototype);
         
     | 
| 
       2069 
2122 
     | 
    
         
             
                }
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -5,10 +5,16 @@ 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";
         
     | 
| 
       8 
11 
     | 
    
         
             
            export { AdminAllowInstance } from "./types/AdminAllowInstance";
         
     | 
| 
       9 
12 
     | 
    
         
             
            export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
         
     | 
| 
       10 
13 
     | 
    
         
             
            export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
         
     | 
| 
       11 
14 
     | 
    
         
             
            export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
         
     | 
| 
      
 15 
     | 
    
         
            +
            export { AdminBan } from "./types/AdminBan";
         
     | 
| 
      
 16 
     | 
    
         
            +
            export { AdminBanId } from "./types/AdminBanId";
         
     | 
| 
      
 17 
     | 
    
         
            +
            export { AdminBanView } from "./types/AdminBanView";
         
     | 
| 
       12 
18 
     | 
    
         
             
            export { AdminBlockInstance } from "./types/AdminBlockInstance";
         
     | 
| 
       13 
19 
     | 
    
         
             
            export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
         
     | 
| 
       14 
20 
     | 
    
         
             
            export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
         
     | 
| 
         @@ -27,24 +33,23 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView"; 
     | 
|
| 
       27 
33 
     | 
    
         
             
            export { AdminPurgePost } from "./types/AdminPurgePost";
         
     | 
| 
       28 
34 
     | 
    
         
             
            export { AdminPurgePostId } from "./types/AdminPurgePostId";
         
     | 
| 
       29 
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 
     | 
    
         
            +
            export {} from "./types/AllLemmyErrors";
         
     | 
| 
       30 
40 
     | 
    
         
             
            export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
         
     | 
| 
       31 
41 
     | 
    
         
             
            export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
         
     | 
| 
       32 
42 
     | 
    
         
             
            export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
         
     | 
| 
       33 
43 
     | 
    
         
             
            export { BanFromCommunity } from "./types/BanFromCommunity";
         
     | 
| 
       34 
44 
     | 
    
         
             
            export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
         
     | 
| 
       35 
45 
     | 
    
         
             
            export { BanPerson } from "./types/BanPerson";
         
     | 
| 
       36 
     | 
    
         
            -
            export { BanPersonResponse } from "./types/BanPersonResponse";
         
     | 
| 
       37 
46 
     | 
    
         
             
            export { BlockCommunity } from "./types/BlockCommunity";
         
     | 
| 
       38 
     | 
    
         
            -
            export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
         
     | 
| 
       39 
47 
     | 
    
         
             
            export { BlockPerson } from "./types/BlockPerson";
         
     | 
| 
       40 
     | 
    
         
            -
            export { BlockPersonResponse } from "./types/BlockPersonResponse";
         
     | 
| 
       41 
48 
     | 
    
         
             
            export { CaptchaResponse } from "./types/CaptchaResponse";
         
     | 
| 
       42 
49 
     | 
    
         
             
            export { ChangePassword } from "./types/ChangePassword";
         
     | 
| 
       43 
50 
     | 
    
         
             
            export { Comment } from "./types/Comment";
         
     | 
| 
       44 
51 
     | 
    
         
             
            export { CommentActions } from "./types/CommentActions";
         
     | 
| 
       45 
52 
     | 
    
         
             
            export { CommentId } from "./types/CommentId";
         
     | 
| 
       46 
     | 
    
         
            -
            export { CommentReply } from "./types/CommentReply";
         
     | 
| 
       47 
     | 
    
         
            -
            export { CommentReplyId } from "./types/CommentReplyId";
         
     | 
| 
       48 
53 
     | 
    
         
             
            export { CommentReport } from "./types/CommentReport";
         
     | 
| 
       49 
54 
     | 
    
         
             
            export { CommentReportId } from "./types/CommentReportId";
         
     | 
| 
       50 
55 
     | 
    
         
             
            export { CommentReportResponse } from "./types/CommentReportResponse";
         
     | 
| 
         @@ -114,7 +119,6 @@ export { ExportDataResponse } from "./types/ExportDataResponse"; 
     | 
|
| 
       114 
119 
     | 
    
         
             
            export { FeaturePost } from "./types/FeaturePost";
         
     | 
| 
       115 
120 
     | 
    
         
             
            export { FederatedInstances } from "./types/FederatedInstances";
         
     | 
| 
       116 
121 
     | 
    
         
             
            export { FederationBlockList } from "./types/FederationBlockList";
         
     | 
| 
       117 
     | 
    
         
            -
            export { FederationError } from "./types/FederationError";
         
     | 
| 
       118 
122 
     | 
    
         
             
            export { FederationMode } from "./types/FederationMode";
         
     | 
| 
       119 
123 
     | 
    
         
             
            export { FollowCommunity } from "./types/FollowCommunity";
         
     | 
| 
       120 
124 
     | 
    
         
             
            export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
         
     | 
| 
         @@ -125,7 +129,6 @@ export { GetComments } from "./types/GetComments"; 
     | 
|
| 
       125 
129 
     | 
    
         
             
            export { GetCommentsResponse } from "./types/GetCommentsResponse";
         
     | 
| 
       126 
130 
     | 
    
         
             
            export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
         
     | 
| 
       127 
131 
     | 
    
         
             
            export { GetCommunity } from "./types/GetCommunity";
         
     | 
| 
       128 
     | 
    
         
            -
            export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
         
     | 
| 
       129 
132 
     | 
    
         
             
            export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
         
     | 
| 
       130 
133 
     | 
    
         
             
            export { GetCommunityResponse } from "./types/GetCommunityResponse";
         
     | 
| 
       131 
134 
     | 
    
         
             
            export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
         
     | 
| 
         @@ -153,7 +156,6 @@ export { HidePost } from "./types/HidePost"; 
     | 
|
| 
       153 
156 
     | 
    
         
             
            export { ImageDetails } from "./types/ImageDetails";
         
     | 
| 
       154 
157 
     | 
    
         
             
            export { ImageGetParams } from "./types/ImageGetParams";
         
     | 
| 
       155 
158 
     | 
    
         
             
            export { ImageProxyParams } from "./types/ImageProxyParams";
         
     | 
| 
       156 
     | 
    
         
            -
            export { InboxDataType } from "./types/InboxDataType";
         
     | 
| 
       157 
159 
     | 
    
         
             
            export { Instance } from "./types/Instance";
         
     | 
| 
       158 
160 
     | 
    
         
             
            export { InstanceActions } from "./types/InstanceActions";
         
     | 
| 
       159 
161 
     | 
    
         
             
            export { InstanceId } from "./types/InstanceId";
         
     | 
| 
         @@ -206,6 +208,7 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist"; 
     | 
|
| 
       206 
208 
     | 
    
         
             
            export { LocalUser } from "./types/LocalUser";
         
     | 
| 
       207 
209 
     | 
    
         
             
            export { LocalUserId } from "./types/LocalUserId";
         
     | 
| 
       208 
210 
     | 
    
         
             
            export { LocalUserView } from "./types/LocalUserView";
         
     | 
| 
      
 211 
     | 
    
         
            +
            export { LockComment } from "./types/LockComment";
         
     | 
| 
       209 
212 
     | 
    
         
             
            export { LockPost } from "./types/LockPost";
         
     | 
| 
       210 
213 
     | 
    
         
             
            export { Login } from "./types/Login";
         
     | 
| 
       211 
214 
     | 
    
         
             
            export { LoginResponse } from "./types/LoginResponse";
         
     | 
| 
         @@ -213,19 +216,12 @@ export { LoginToken } from "./types/LoginToken"; 
     | 
|
| 
       213 
216 
     | 
    
         
             
            export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
         
     | 
| 
       214 
217 
     | 
    
         
             
            export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
         
     | 
| 
       215 
218 
     | 
    
         
             
            export { MarkPostAsRead } from "./types/MarkPostAsRead";
         
     | 
| 
       216 
     | 
    
         
            -
            export {  
     | 
| 
       217 
     | 
    
         
            -
            export {  
     | 
| 
       218 
     | 
    
         
            -
            export {  
     | 
| 
       219 
     | 
    
         
            -
            export { ModAddCommunityId } from "./types/ModAddCommunityId";
         
     | 
| 
       220 
     | 
    
         
            -
            export { ModAddCommunityView } from "./types/ModAddCommunityView";
         
     | 
| 
       221 
     | 
    
         
            -
            export { ModAddId } from "./types/ModAddId";
         
     | 
| 
       222 
     | 
    
         
            -
            export { ModAddView } from "./types/ModAddView";
         
     | 
| 
       223 
     | 
    
         
            -
            export { ModBan } from "./types/ModBan";
         
     | 
| 
      
 219 
     | 
    
         
            +
            export { ModAddToCommunity } from "./types/ModAddToCommunity";
         
     | 
| 
      
 220 
     | 
    
         
            +
            export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
         
     | 
| 
      
 221 
     | 
    
         
            +
            export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
         
     | 
| 
       224 
222 
     | 
    
         
             
            export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
         
     | 
| 
       225 
223 
     | 
    
         
             
            export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
         
     | 
| 
       226 
224 
     | 
    
         
             
            export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
         
     | 
| 
       227 
     | 
    
         
            -
            export { ModBanId } from "./types/ModBanId";
         
     | 
| 
       228 
     | 
    
         
            -
            export { ModBanView } from "./types/ModBanView";
         
     | 
| 
       229 
225 
     | 
    
         
             
            export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
         
     | 
| 
       230 
226 
     | 
    
         
             
            export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
         
     | 
| 
       231 
227 
     | 
    
         
             
            export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
         
     | 
| 
         @@ -233,15 +229,15 @@ export { ModEditPost } from "./types/ModEditPost"; 
     | 
|
| 
       233 
229 
     | 
    
         
             
            export { ModFeaturePost } from "./types/ModFeaturePost";
         
     | 
| 
       234 
230 
     | 
    
         
             
            export { ModFeaturePostId } from "./types/ModFeaturePostId";
         
     | 
| 
       235 
231 
     | 
    
         
             
            export { ModFeaturePostView } from "./types/ModFeaturePostView";
         
     | 
| 
      
 232 
     | 
    
         
            +
            export { ModLockComment } from "./types/ModLockComment";
         
     | 
| 
      
 233 
     | 
    
         
            +
            export { ModLockCommentId } from "./types/ModLockCommentId";
         
     | 
| 
      
 234 
     | 
    
         
            +
            export { ModLockCommentView } from "./types/ModLockCommentView";
         
     | 
| 
       236 
235 
     | 
    
         
             
            export { ModLockPost } from "./types/ModLockPost";
         
     | 
| 
       237 
236 
     | 
    
         
             
            export { ModLockPostId } from "./types/ModLockPostId";
         
     | 
| 
       238 
237 
     | 
    
         
             
            export { ModLockPostView } from "./types/ModLockPostView";
         
     | 
| 
       239 
238 
     | 
    
         
             
            export { ModRemoveComment } from "./types/ModRemoveComment";
         
     | 
| 
       240 
239 
     | 
    
         
             
            export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
         
     | 
| 
       241 
240 
     | 
    
         
             
            export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
         
     | 
| 
       242 
     | 
    
         
            -
            export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
         
     | 
| 
       243 
     | 
    
         
            -
            export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
         
     | 
| 
       244 
     | 
    
         
            -
            export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
         
     | 
| 
       245 
241 
     | 
    
         
             
            export { ModRemovePost } from "./types/ModRemovePost";
         
     | 
| 
       246 
242 
     | 
    
         
             
            export { ModRemovePostId } from "./types/ModRemovePostId";
         
     | 
| 
       247 
243 
     | 
    
         
             
            export { ModRemovePostView } from "./types/ModRemovePostView";
         
     | 
| 
         @@ -253,6 +249,7 @@ export { ModlogCombinedView } from "./types/ModlogCombinedView"; 
     | 
|
| 
       253 
249 
     | 
    
         
             
            export { MultiCommunity } from "./types/MultiCommunity";
         
     | 
| 
       254 
250 
     | 
    
         
             
            export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
         
     | 
| 
       255 
251 
     | 
    
         
             
            export { MultiCommunityId } from "./types/MultiCommunityId";
         
     | 
| 
      
 252 
     | 
    
         
            +
            export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
         
     | 
| 
       256 
253 
     | 
    
         
             
            export { MultiCommunityView } from "./types/MultiCommunityView";
         
     | 
| 
       257 
254 
     | 
    
         
             
            export { MyUserInfo } from "./types/MyUserInfo";
         
     | 
| 
       258 
255 
     | 
    
         
             
            export { NotePerson } from "./types/NotePerson";
         
     | 
| 
         @@ -260,9 +257,8 @@ export { Notification } from "./types/Notification"; 
     | 
|
| 
       260 
257 
     | 
    
         
             
            export { NotificationData } from "./types/NotificationData";
         
     | 
| 
       261 
258 
     | 
    
         
             
            export { NotificationDataType } from "./types/NotificationDataType";
         
     | 
| 
       262 
259 
     | 
    
         
             
            export { NotificationId } from "./types/NotificationId";
         
     | 
| 
       263 
     | 
    
         
            -
            export {  
     | 
| 
      
 260 
     | 
    
         
            +
            export { NotificationType } from "./types/NotificationType";
         
     | 
| 
       264 
261 
     | 
    
         
             
            export { NotificationView } from "./types/NotificationView";
         
     | 
| 
       265 
     | 
    
         
            -
            export { NotificationsMode } from "./types/NotificationsMode";
         
     | 
| 
       266 
262 
     | 
    
         
             
            export { OAuthAccount } from "./types/OAuthAccount";
         
     | 
| 
       267 
263 
     | 
    
         
             
            export { OAuthProvider } from "./types/OAuthProvider";
         
     | 
| 
       268 
264 
     | 
    
         
             
            export { OAuthProviderId } from "./types/OAuthProviderId";
         
     | 
| 
         @@ -271,17 +267,14 @@ export { PaginationCursor } from "./types/PaginationCursor"; 
     | 
|
| 
       271 
267 
     | 
    
         
             
            export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
         
     | 
| 
       272 
268 
     | 
    
         
             
            export { PasswordReset } from "./types/PasswordReset";
         
     | 
| 
       273 
269 
     | 
    
         
             
            export { PendingFollow } from "./types/PendingFollow";
         
     | 
| 
      
 270 
     | 
    
         
            +
            export { PendingFollowerView } from "./types/PendingFollowerView";
         
     | 
| 
       274 
271 
     | 
    
         
             
            export { Person } from "./types/Person";
         
     | 
| 
       275 
272 
     | 
    
         
             
            export { PersonActions } from "./types/PersonActions";
         
     | 
| 
       276 
     | 
    
         
            -
            export { PersonCommentMention } from "./types/PersonCommentMention";
         
     | 
| 
       277 
     | 
    
         
            -
            export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
         
     | 
| 
       278 
273 
     | 
    
         
             
            export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
         
     | 
| 
       279 
274 
     | 
    
         
             
            export { PersonContentType } from "./types/PersonContentType";
         
     | 
| 
       280 
275 
     | 
    
         
             
            export { PersonId } from "./types/PersonId";
         
     | 
| 
       281 
276 
     | 
    
         
             
            export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
         
     | 
| 
       282 
     | 
    
         
            -
            export {  
     | 
| 
       283 
     | 
    
         
            -
            export { PersonPostMention } from "./types/PersonPostMention";
         
     | 
| 
       284 
     | 
    
         
            -
            export { PersonPostMentionId } from "./types/PersonPostMentionId";
         
     | 
| 
      
 277 
     | 
    
         
            +
            export { PersonResponse } from "./types/PersonResponse";
         
     | 
| 
       285 
278 
     | 
    
         
             
            export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
         
     | 
| 
       286 
279 
     | 
    
         
             
            export { PersonView } from "./types/PersonView";
         
     | 
| 
       287 
280 
     | 
    
         
             
            export { PluginMetadata } from "./types/PluginMetadata";
         
     | 
| 
         @@ -351,6 +344,7 @@ export { TaglineId } from "./types/TaglineId"; 
     | 
|
| 
       351 
344 
     | 
    
         
             
            export { TaglineResponse } from "./types/TaglineResponse";
         
     | 
| 
       352 
345 
     | 
    
         
             
            export { TagsView } from "./types/TagsView";
         
     | 
| 
       353 
346 
     | 
    
         
             
            export { TransferCommunity } from "./types/TransferCommunity";
         
     | 
| 
      
 347 
     | 
    
         
            +
            export { UntranslatedError } from "./types/UntranslatedError";
         
     | 
| 
       354 
348 
     | 
    
         
             
            export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
         
     | 
| 
       355 
349 
     | 
    
         
             
            export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
         
     | 
| 
       356 
350 
     | 
    
         
             
            export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
         
     | 
| 
         @@ -359,7 +353,8 @@ export { UpdateTagline } from "./types/UpdateTagline"; 
     | 
|
| 
       359 
353 
     | 
    
         
             
            export { UpdateTotp } from "./types/UpdateTotp";
         
     | 
| 
       360 
354 
     | 
    
         
             
            export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
         
     | 
| 
       361 
355 
     | 
    
         
             
            export { UploadImageResponse } from "./types/UploadImageResponse";
         
     | 
| 
       362 
     | 
    
         
            -
            export {  
     | 
| 
      
 356 
     | 
    
         
            +
            export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
         
     | 
| 
      
 357 
     | 
    
         
            +
            export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
         
     | 
| 
       363 
358 
     | 
    
         
             
            export { UserSettingsBackup } from "./types/UserSettingsBackup";
         
     | 
| 
       364 
359 
     | 
    
         
             
            export { VerifyEmail } from "./types/VerifyEmail";
         
     | 
| 
       365 
360 
     | 
    
         
             
            export { VoteShow } from "./types/VoteShow";
         
     | 
    
        package/dist/other_types.d.ts
    CHANGED
    
    | 
         @@ -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";
         
     | 
| 
         @@ -48,8 +47,6 @@ export interface GetCommunityI extends GetCommunity { 
     | 
|
| 
       48 
47 
     | 
    
         
             
            }
         
     | 
| 
       49 
48 
     | 
    
         
             
            export interface ListCommunitiesI extends ListCommunities {
         
     | 
| 
       50 
49 
     | 
    
         
             
            }
         
     | 
| 
       51 
     | 
    
         
            -
            export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
         
     | 
| 
       52 
     | 
    
         
            -
            }
         
     | 
| 
       53 
50 
     | 
    
         
             
            export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
         
     | 
| 
       54 
51 
     | 
    
         
             
            }
         
     | 
| 
       55 
52 
     | 
    
         
             
            export interface GetRandomCommunityI extends GetRandomCommunity {
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { AdminAddId } from "./AdminAddId";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { PersonId } from "./PersonId";
         
     | 
| 
       3 
3 
     | 
    
         
             
            /**
         
     | 
| 
       4 
     | 
    
         
            -
             * When someone is added as a site  
     | 
| 
      
 4 
     | 
    
         
            +
             * When someone is added as a site admin.
         
     | 
| 
       5 
5 
     | 
    
         
             
             */
         
     | 
| 
       6 
     | 
    
         
            -
            export type  
     | 
| 
       7 
     | 
    
         
            -
                id:  
     | 
| 
      
 6 
     | 
    
         
            +
            export type AdminAdd = {
         
     | 
| 
      
 7 
     | 
    
         
            +
                id: AdminAddId;
         
     | 
| 
       8 
8 
     | 
    
         
             
                mod_person_id: PersonId;
         
     | 
| 
       9 
9 
     | 
    
         
             
                other_person_id: PersonId;
         
     | 
| 
       10 
10 
     | 
    
         
             
                removed: boolean;
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export type AdminAddId = number;
         
     |