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
 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { AdminAdd } from "./AdminAdd";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { Person } from "./Person";
         
     | 
| 
       3 
3 
     | 
    
         
             
            /**
         
     | 
| 
       4 
4 
     | 
    
         
             
             * When someone is added as a site moderator.
         
     | 
| 
       5 
5 
     | 
    
         
             
             */
         
     | 
| 
       6 
     | 
    
         
            -
            export type  
     | 
| 
       7 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
            export type AdminAddView = {
         
     | 
| 
      
 7 
     | 
    
         
            +
                admin_add: AdminAdd;
         
     | 
| 
       8 
8 
     | 
    
         
             
                moderator?: Person;
         
     | 
| 
       9 
9 
     | 
    
         
             
                other_person: Person;
         
     | 
| 
       10 
10 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import type { AdminBanId } from "./AdminBanId";
         
     | 
| 
       1 
2 
     | 
    
         
             
            import type { InstanceId } from "./InstanceId";
         
     | 
| 
       2 
     | 
    
         
            -
            import type { ModBanId } from "./ModBanId";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import type { PersonId } from "./PersonId";
         
     | 
| 
       4 
4 
     | 
    
         
             
            /**
         
     | 
| 
       5 
5 
     | 
    
         
             
             * When someone is banned from the site.
         
     | 
| 
       6 
6 
     | 
    
         
             
             */
         
     | 
| 
       7 
     | 
    
         
            -
            export type  
     | 
| 
       8 
     | 
    
         
            -
                id:  
     | 
| 
      
 7 
     | 
    
         
            +
            export type AdminBan = {
         
     | 
| 
      
 8 
     | 
    
         
            +
                id: AdminBanId;
         
     | 
| 
       9 
9 
     | 
    
         
             
                mod_person_id: PersonId;
         
     | 
| 
       10 
10 
     | 
    
         
             
                other_person_id: PersonId;
         
     | 
| 
       11 
     | 
    
         
            -
                reason 
     | 
| 
      
 11 
     | 
    
         
            +
                reason: string;
         
     | 
| 
       12 
12 
     | 
    
         
             
                banned: boolean;
         
     | 
| 
       13 
13 
     | 
    
         
             
                expires_at?: string;
         
     | 
| 
       14 
14 
     | 
    
         
             
                published_at: string;
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export type AdminBanId = number;
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { AdminBan } from "./AdminBan";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { Person } from "./Person";
         
     | 
| 
       3 
3 
     | 
    
         
             
            /**
         
     | 
| 
       4 
4 
     | 
    
         
             
             * When someone is banned from the site.
         
     | 
| 
       5 
5 
     | 
    
         
             
             */
         
     | 
| 
       6 
     | 
    
         
            -
            export type  
     | 
| 
       7 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
            export type AdminBanView = {
         
     | 
| 
      
 7 
     | 
    
         
            +
                admin_ban: AdminBan;
         
     | 
| 
       8 
8 
     | 
    
         
             
                moderator?: Person;
         
     | 
| 
       9 
9 
     | 
    
         
             
                other_person: Person;
         
     | 
| 
       10 
10 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,6 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            export type AdminBlockInstanceParams = {
         
     | 
| 
       2 
2 
     | 
    
         
             
                instance: string;
         
     | 
| 
       3 
3 
     | 
    
         
             
                block: boolean;
         
     | 
| 
       4 
     | 
    
         
            -
                reason 
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                reason: string;
         
     | 
| 
      
 5 
     | 
    
         
            +
                /**
         
     | 
| 
      
 6 
     | 
    
         
            +
                 * A time that the block will expire, in unix epoch seconds.
         
     | 
| 
      
 7 
     | 
    
         
            +
                 *
         
     | 
| 
      
 8 
     | 
    
         
            +
                 * An i64 unix timestamp is used for a simpler API client implementation.
         
     | 
| 
      
 9 
     | 
    
         
            +
                 */
         
     | 
| 
      
 10 
     | 
    
         
            +
                expires_at?: number;
         
     | 
| 
       6 
11 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
         
     | 
| 
       1 
2 
     | 
    
         
             
            import type { CommunityId } from "./CommunityId";
         
     | 
| 
       2 
     | 
    
         
            -
            import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import type { PersonId } from "./PersonId";
         
     | 
| 
       4 
4 
     | 
    
         
             
            /**
         
     | 
| 
       5 
5 
     | 
    
         
             
             * When a moderator removes a community.
         
     | 
| 
       6 
6 
     | 
    
         
             
             */
         
     | 
| 
       7 
     | 
    
         
            -
            export type  
     | 
| 
       8 
     | 
    
         
            -
                id:  
     | 
| 
      
 7 
     | 
    
         
            +
            export type AdminRemoveCommunity = {
         
     | 
| 
      
 8 
     | 
    
         
            +
                id: AdminRemoveCommunityId;
         
     | 
| 
       9 
9 
     | 
    
         
             
                mod_person_id: PersonId;
         
     | 
| 
       10 
10 
     | 
    
         
             
                community_id: CommunityId;
         
     | 
| 
       11 
     | 
    
         
            -
                reason 
     | 
| 
      
 11 
     | 
    
         
            +
                reason: string;
         
     | 
| 
       12 
12 
     | 
    
         
             
                removed: boolean;
         
     | 
| 
       13 
13 
     | 
    
         
             
                published_at: string;
         
     | 
| 
       14 
14 
     | 
    
         
             
            };
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export type AdminRemoveCommunityId = number;
         
     | 
| 
         @@ -0,0 +1,11 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import type { Community } from "./Community";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import type { Person } from "./Person";
         
     | 
| 
      
 4 
     | 
    
         
            +
            /**
         
     | 
| 
      
 5 
     | 
    
         
            +
             * When an admin removes a community.
         
     | 
| 
      
 6 
     | 
    
         
            +
             */
         
     | 
| 
      
 7 
     | 
    
         
            +
            export type AdminRemoveCommunityView = {
         
     | 
| 
      
 8 
     | 
    
         
            +
                admin_remove_community: AdminRemoveCommunity;
         
     | 
| 
      
 9 
     | 
    
         
            +
                moderator?: Person;
         
     | 
| 
      
 10 
     | 
    
         
            +
                community: Community;
         
     | 
| 
      
 11 
     | 
    
         
            +
            };
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export declare const AllLemmyErrors: string[];
         
     | 
| 
         @@ -0,0 +1,117 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            Object.defineProperty(exports, "__esModule", { value: true });
         
     | 
| 
      
 3 
     | 
    
         
            +
            exports.AllLemmyErrors = void 0;
         
     | 
| 
      
 4 
     | 
    
         
            +
            exports.AllLemmyErrors = [
         
     | 
| 
      
 5 
     | 
    
         
            +
                "block_keyword_too_short",
         
     | 
| 
      
 6 
     | 
    
         
            +
                "block_keyword_too_long",
         
     | 
| 
      
 7 
     | 
    
         
            +
                "couldnt_update",
         
     | 
| 
      
 8 
     | 
    
         
            +
                "couldnt_create",
         
     | 
| 
      
 9 
     | 
    
         
            +
                "report_reason_required",
         
     | 
| 
      
 10 
     | 
    
         
            +
                "report_too_long",
         
     | 
| 
      
 11 
     | 
    
         
            +
                "not_a_moderator",
         
     | 
| 
      
 12 
     | 
    
         
            +
                "not_an_admin",
         
     | 
| 
      
 13 
     | 
    
         
            +
                "cant_block_yourself",
         
     | 
| 
      
 14 
     | 
    
         
            +
                "cant_note_yourself",
         
     | 
| 
      
 15 
     | 
    
         
            +
                "cant_block_admin",
         
     | 
| 
      
 16 
     | 
    
         
            +
                "passwords_do_not_match",
         
     | 
| 
      
 17 
     | 
    
         
            +
                "email_not_verified",
         
     | 
| 
      
 18 
     | 
    
         
            +
                "email_required",
         
     | 
| 
      
 19 
     | 
    
         
            +
                "cannot_leave_admin",
         
     | 
| 
      
 20 
     | 
    
         
            +
                "cannot_leave_mod",
         
     | 
| 
      
 21 
     | 
    
         
            +
                "cannot_leave_mod",
         
     | 
| 
      
 22 
     | 
    
         
            +
                "cannot_leave_mod",
         
     | 
| 
      
 23 
     | 
    
         
            +
                "pictrs_api_key_not_provided",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "pictrs_api_key_not_provided",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "no_content_type_header",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "not_an_image_type",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "image_upload_disabled",
         
     | 
| 
      
 28 
     | 
    
         
            +
                "not_a_mod_or_admin",
         
     | 
| 
      
 29 
     | 
    
         
            +
                "not_top_mod",
         
     | 
| 
      
 30 
     | 
    
         
            +
                "not_logged_in",
         
     | 
| 
      
 31 
     | 
    
         
            +
                "not_higher_mod",
         
     | 
| 
      
 32 
     | 
    
         
            +
                "not_higher_admin",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "site_ban",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "deleted",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "person_is_blocked",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "community_is_blocked",
         
     | 
| 
      
 37 
     | 
    
         
            +
                "instance_is_blocked",
         
     | 
| 
      
 38 
     | 
    
         
            +
                "instance_is_private",
         
     | 
| 
      
 39 
     | 
    
         
            +
                "invalid_password",
         
     | 
| 
      
 40 
     | 
    
         
            +
                "site_description_length_overflow",
         
     | 
| 
      
 41 
     | 
    
         
            +
                "honeypot_failed",
         
     | 
| 
      
 42 
     | 
    
         
            +
                "registration_application_is_pending",
         
     | 
| 
      
 43 
     | 
    
         
            +
                "locked",
         
     | 
| 
      
 44 
     | 
    
         
            +
                "max_comment_depth_reached",
         
     | 
| 
      
 45 
     | 
    
         
            +
                "no_comment_edit_allowed",
         
     | 
| 
      
 46 
     | 
    
         
            +
                "only_admins_can_create_communities",
         
     | 
| 
      
 47 
     | 
    
         
            +
                "already_exists",
         
     | 
| 
      
 48 
     | 
    
         
            +
                "language_not_allowed",
         
     | 
| 
      
 49 
     | 
    
         
            +
                "no_post_edit_allowed",
         
     | 
| 
      
 50 
     | 
    
         
            +
                "nsfw_not_allowed",
         
     | 
| 
      
 51 
     | 
    
         
            +
                "edit_private_message_not_allowed",
         
     | 
| 
      
 52 
     | 
    
         
            +
                "application_question_required",
         
     | 
| 
      
 53 
     | 
    
         
            +
                "invalid_default_post_listing_type",
         
     | 
| 
      
 54 
     | 
    
         
            +
                "registration_closed",
         
     | 
| 
      
 55 
     | 
    
         
            +
                "registration_application_answer_required",
         
     | 
| 
      
 56 
     | 
    
         
            +
                "registration_username_required",
         
     | 
| 
      
 57 
     | 
    
         
            +
                "email_already_taken",
         
     | 
| 
      
 58 
     | 
    
         
            +
                "username_already_taken",
         
     | 
| 
      
 59 
     | 
    
         
            +
                "person_is_banned_from_community",
         
     | 
| 
      
 60 
     | 
    
         
            +
                "no_id_given",
         
     | 
| 
      
 61 
     | 
    
         
            +
                "incorrect_login",
         
     | 
| 
      
 62 
     | 
    
         
            +
                "no_email_setup",
         
     | 
| 
      
 63 
     | 
    
         
            +
                "local_site_not_setup",
         
     | 
| 
      
 64 
     | 
    
         
            +
                "local_site_not_setup",
         
     | 
| 
      
 65 
     | 
    
         
            +
                "invalid_name",
         
     | 
| 
      
 66 
     | 
    
         
            +
                "invalid_code_verifier",
         
     | 
| 
      
 67 
     | 
    
         
            +
                "invalid_display_name",
         
     | 
| 
      
 68 
     | 
    
         
            +
                "invalid_matrix_id",
         
     | 
| 
      
 69 
     | 
    
         
            +
                "invalid_post_title",
         
     | 
| 
      
 70 
     | 
    
         
            +
                "invalid_body_field",
         
     | 
| 
      
 71 
     | 
    
         
            +
                "bio_length_overflow",
         
     | 
| 
      
 72 
     | 
    
         
            +
                "alt_text_length_overflow",
         
     | 
| 
      
 73 
     | 
    
         
            +
                "couldnt_parse_totp_secret",
         
     | 
| 
      
 74 
     | 
    
         
            +
                "couldnt_generate_totp",
         
     | 
| 
      
 75 
     | 
    
         
            +
                "missing_totp_token",
         
     | 
| 
      
 76 
     | 
    
         
            +
                "missing_totp_secret",
         
     | 
| 
      
 77 
     | 
    
         
            +
                "incorrect_totp_token",
         
     | 
| 
      
 78 
     | 
    
         
            +
                "totp_already_enabled",
         
     | 
| 
      
 79 
     | 
    
         
            +
                "blocked_url",
         
     | 
| 
      
 80 
     | 
    
         
            +
                "invalid_url",
         
     | 
| 
      
 81 
     | 
    
         
            +
                "email_send_failed",
         
     | 
| 
      
 82 
     | 
    
         
            +
                "slurs",
         
     | 
| 
      
 83 
     | 
    
         
            +
                "slurs",
         
     | 
| 
      
 84 
     | 
    
         
            +
                "site_name_required",
         
     | 
| 
      
 85 
     | 
    
         
            +
                "site_name_length_overflow",
         
     | 
| 
      
 86 
     | 
    
         
            +
                "permissive_regex",
         
     | 
| 
      
 87 
     | 
    
         
            +
                "invalid_regex",
         
     | 
| 
      
 88 
     | 
    
         
            +
                "captcha_incorrect",
         
     | 
| 
      
 89 
     | 
    
         
            +
                "couldnt_create_audio_captcha",
         
     | 
| 
      
 90 
     | 
    
         
            +
                "couldnt_create_image_captcha",
         
     | 
| 
      
 91 
     | 
    
         
            +
                "invalid_url_scheme",
         
     | 
| 
      
 92 
     | 
    
         
            +
                "contradicting_filters",
         
     | 
| 
      
 93 
     | 
    
         
            +
                "too_many_items",
         
     | 
| 
      
 94 
     | 
    
         
            +
                "ban_expiration_in_past",
         
     | 
| 
      
 95 
     | 
    
         
            +
                "invalid_unix_time",
         
     | 
| 
      
 96 
     | 
    
         
            +
                "invalid_bot_action",
         
     | 
| 
      
 97 
     | 
    
         
            +
                "tag_not_in_community",
         
     | 
| 
      
 98 
     | 
    
         
            +
                "cant_block_local_instance",
         
     | 
| 
      
 99 
     | 
    
         
            +
                "cant_block_local_instance",
         
     | 
| 
      
 100 
     | 
    
         
            +
                "url_length_overflow",
         
     | 
| 
      
 101 
     | 
    
         
            +
                "oauth_authorization_invalid",
         
     | 
| 
      
 102 
     | 
    
         
            +
                "oauth_login_failed",
         
     | 
| 
      
 103 
     | 
    
         
            +
                "oauth_registration_closed",
         
     | 
| 
      
 104 
     | 
    
         
            +
                "not_found",
         
     | 
| 
      
 105 
     | 
    
         
            +
                "post_schedule_time_must_be_in_future",
         
     | 
| 
      
 106 
     | 
    
         
            +
                "too_many_scheduled_posts",
         
     | 
| 
      
 107 
     | 
    
         
            +
                "cannot_combine_federation_blocklist_and_allowlist",
         
     | 
| 
      
 108 
     | 
    
         
            +
                "cannot_combine_federation_blocklist_and_allowlist",
         
     | 
| 
      
 109 
     | 
    
         
            +
                "couldnt_parse_pagination_token",
         
     | 
| 
      
 110 
     | 
    
         
            +
                "couldnt_parse_pagination_token",
         
     | 
| 
      
 111 
     | 
    
         
            +
                "invalid_fetch_limit",
         
     | 
| 
      
 112 
     | 
    
         
            +
                "email_notifications_disabled",
         
     | 
| 
      
 113 
     | 
    
         
            +
                "multi_community_update_wrong_user",
         
     | 
| 
      
 114 
     | 
    
         
            +
                "cannot_combine_community_id_and_multi_community_id",
         
     | 
| 
      
 115 
     | 
    
         
            +
                "multi_community_entry_limit_reached",
         
     | 
| 
      
 116 
     | 
    
         
            +
                "too_many_requests",
         
     | 
| 
      
 117 
     | 
    
         
            +
            ];
         
     | 
| 
         @@ -12,7 +12,7 @@ export type BanFromCommunity = { 
     | 
|
| 
       12 
12 
     | 
    
         
             
                 * If ban is true, then this means remove. If ban is false, it means restore.
         
     | 
| 
       13 
13 
     | 
    
         
             
                 */
         
     | 
| 
       14 
14 
     | 
    
         
             
                remove_or_restore_data?: boolean;
         
     | 
| 
       15 
     | 
    
         
            -
                reason 
     | 
| 
      
 15 
     | 
    
         
            +
                reason: string;
         
     | 
| 
       16 
16 
     | 
    
         
             
                /**
         
     | 
| 
       17 
17 
     | 
    
         
             
                 * A time that the ban will expire, in unix epoch seconds.
         
     | 
| 
       18 
18 
     | 
    
         
             
                 *
         
     | 
| 
         @@ -10,7 +10,7 @@ export type BanPerson = { 
     | 
|
| 
       10 
10 
     | 
    
         
             
                 * If ban is true, then this means remove. If ban is false, it means restore.
         
     | 
| 
       11 
11 
     | 
    
         
             
                 */
         
     | 
| 
       12 
12 
     | 
    
         
             
                remove_or_restore_data?: boolean;
         
     | 
| 
       13 
     | 
    
         
            -
                reason 
     | 
| 
      
 13 
     | 
    
         
            +
                reason: string;
         
     | 
| 
       14 
14 
     | 
    
         
             
                /**
         
     | 
| 
       15 
15 
     | 
    
         
             
                 * A time that the ban will expire, in unix epoch seconds.
         
     | 
| 
       16 
16 
     | 
    
         
             
                 *
         
     | 
    
        package/dist/types/Comment.d.ts
    CHANGED
    
    
| 
         @@ -1,6 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type { Comment } from "./Comment";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { CommentActions } from "./CommentActions";
         
     | 
| 
       3 
     | 
    
         
            -
            import type { InstanceActions } from "./InstanceActions";
         
     | 
| 
       4 
3 
     | 
    
         
             
            import type { Person } from "./Person";
         
     | 
| 
       5 
4 
     | 
    
         
             
            import type { PersonActions } from "./PersonActions";
         
     | 
| 
       6 
5 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -11,7 +10,6 @@ export type CommentSlimView = { 
     | 
|
| 
       11 
10 
     | 
    
         
             
                creator: Person;
         
     | 
| 
       12 
11 
     | 
    
         
             
                comment_actions?: CommentActions;
         
     | 
| 
       13 
12 
     | 
    
         
             
                person_actions?: PersonActions;
         
     | 
| 
       14 
     | 
    
         
            -
                instance_actions?: InstanceActions;
         
     | 
| 
       15 
13 
     | 
    
         
             
                creator_is_admin: boolean;
         
     | 
| 
       16 
14 
     | 
    
         
             
                can_mod: boolean;
         
     | 
| 
       17 
15 
     | 
    
         
             
                creator_banned: boolean;
         
     | 
| 
         @@ -2,7 +2,6 @@ import type { Comment } from "./Comment"; 
     | 
|
| 
       2 
2 
     | 
    
         
             
            import type { CommentActions } from "./CommentActions";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import type { Community } from "./Community";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import type { CommunityActions } from "./CommunityActions";
         
     | 
| 
       5 
     | 
    
         
            -
            import type { InstanceActions } from "./InstanceActions";
         
     | 
| 
       6 
5 
     | 
    
         
             
            import type { Person } from "./Person";
         
     | 
| 
       7 
6 
     | 
    
         
             
            import type { PersonActions } from "./PersonActions";
         
     | 
| 
       8 
7 
     | 
    
         
             
            import type { Post } from "./Post";
         
     | 
| 
         @@ -18,11 +17,12 @@ export type CommentView = { 
     | 
|
| 
       18 
17 
     | 
    
         
             
                community_actions?: CommunityActions;
         
     | 
| 
       19 
18 
     | 
    
         
             
                comment_actions?: CommentActions;
         
     | 
| 
       20 
19 
     | 
    
         
             
                person_actions?: PersonActions;
         
     | 
| 
       21 
     | 
    
         
            -
                instance_actions?: InstanceActions;
         
     | 
| 
       22 
20 
     | 
    
         
             
                creator_is_admin: boolean;
         
     | 
| 
       23 
21 
     | 
    
         
             
                post_tags: TagsView;
         
     | 
| 
       24 
22 
     | 
    
         
             
                can_mod: boolean;
         
     | 
| 
       25 
23 
     | 
    
         
             
                creator_banned: boolean;
         
     | 
| 
      
 24 
     | 
    
         
            +
                creator_ban_expires_at?: string;
         
     | 
| 
       26 
25 
     | 
    
         
             
                creator_is_moderator: boolean;
         
     | 
| 
       27 
26 
     | 
    
         
             
                creator_banned_from_community: boolean;
         
     | 
| 
      
 27 
     | 
    
         
            +
                creator_community_ban_expires_at?: string;
         
     | 
| 
       28 
28 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired";
         
     | 
| 
      
 1 
     | 
    
         
            +
            export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired" | "Denied";
         
     | 
| 
         @@ -1,6 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type { Community } from "./Community";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { CommunityActions } from "./CommunityActions";
         
     | 
| 
       3 
     | 
    
         
            -
            import type { InstanceActions } from "./InstanceActions";
         
     | 
| 
       4 
3 
     | 
    
         
             
            import type { TagsView } from "./TagsView";
         
     | 
| 
       5 
4 
     | 
    
         
             
            /**
         
     | 
| 
       6 
5 
     | 
    
         
             
             * A community view.
         
     | 
| 
         @@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView"; 
     | 
|
| 
       8 
7 
     | 
    
         
             
            export type CommunityView = {
         
     | 
| 
       9 
8 
     | 
    
         
             
                community: Community;
         
     | 
| 
       10 
9 
     | 
    
         
             
                community_actions?: CommunityActions;
         
     | 
| 
       11 
     | 
    
         
            -
                instance_actions?: InstanceActions;
         
     | 
| 
       12 
10 
     | 
    
         
             
                can_mod: boolean;
         
     | 
| 
       13 
11 
     | 
    
         
             
                post_tags: TagsView;
         
     | 
| 
       14 
12 
     | 
    
         
             
            };
         
     | 
| 
         @@ -27,7 +27,6 @@ export type CreateSite = { 
     | 
|
| 
       27 
27 
     | 
    
         
             
                application_email_admins?: boolean;
         
     | 
| 
       28 
28 
     | 
    
         
             
                discussion_languages?: Array<LanguageId>;
         
     | 
| 
       29 
29 
     | 
    
         
             
                slur_filter_regex?: string;
         
     | 
| 
       30 
     | 
    
         
            -
                actor_name_max_length?: number;
         
     | 
| 
       31 
30 
     | 
    
         
             
                rate_limit_message_max_requests?: number;
         
     | 
| 
       32 
31 
     | 
    
         
             
                rate_limit_message_interval_seconds?: number;
         
     | 
| 
       33 
32 
     | 
    
         
             
                rate_limit_post_max_requests?: number;
         
     | 
| 
         @@ -1,11 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type { CustomEmojiId } from "./CustomEmojiId";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import type { DbUrl } from "./DbUrl";
         
     | 
| 
       2 
3 
     | 
    
         
             
            /**
         
     | 
| 
       3 
     | 
    
         
            -
             * Edit 
     | 
| 
      
 4 
     | 
    
         
            +
             * Edit a custom emoji.
         
     | 
| 
       4 
5 
     | 
    
         
             
             */
         
     | 
| 
       5 
6 
     | 
    
         
             
            export type EditCustomEmoji = {
         
     | 
| 
       6 
7 
     | 
    
         
             
                id: CustomEmojiId;
         
     | 
| 
       7 
     | 
    
         
            -
                category 
     | 
| 
       8 
     | 
    
         
            -
                 
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
      
 8 
     | 
    
         
            +
                category?: string;
         
     | 
| 
      
 9 
     | 
    
         
            +
                shortcode?: string;
         
     | 
| 
      
 10 
     | 
    
         
            +
                image_url?: DbUrl;
         
     | 
| 
      
 11 
     | 
    
         
            +
                alt_text?: string;
         
     | 
| 
      
 12 
     | 
    
         
            +
                keywords?: Array<string>;
         
     | 
| 
       11 
13 
     | 
    
         
             
            };
         
     | 
    
        package/dist/types/EditSite.d.ts
    CHANGED
    
    | 
         @@ -55,6 +55,10 @@ export type EditSite = { 
     | 
|
| 
       55 
55 
     | 
    
         
             
                 * A default time range limit to apply to post sorts, in seconds. 0 means none.
         
     | 
| 
       56 
56 
     | 
    
         
             
                 */
         
     | 
| 
       57 
57 
     | 
    
         
             
                default_post_time_range_seconds?: number;
         
     | 
| 
      
 58 
     | 
    
         
            +
                /**
         
     | 
| 
      
 59 
     | 
    
         
            +
                 * A default fetch limit for number of items returned.
         
     | 
| 
      
 60 
     | 
    
         
            +
                 */
         
     | 
| 
      
 61 
     | 
    
         
            +
                default_items_per_page?: number;
         
     | 
| 
       58 
62 
     | 
    
         
             
                /**
         
     | 
| 
       59 
63 
     | 
    
         
             
                 * The default comment sort, usually "hot"
         
     | 
| 
       60 
64 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -75,10 +79,6 @@ export type EditSite = { 
     | 
|
| 
       75 
79 
     | 
    
         
             
                 * A regex string of items to filter.
         
     | 
| 
       76 
80 
     | 
    
         
             
                 */
         
     | 
| 
       77 
81 
     | 
    
         
             
                slur_filter_regex?: string;
         
     | 
| 
       78 
     | 
    
         
            -
                /**
         
     | 
| 
       79 
     | 
    
         
            -
                 * The max length of actor names.
         
     | 
| 
       80 
     | 
    
         
            -
                 */
         
     | 
| 
       81 
     | 
    
         
            -
                actor_name_max_length?: number;
         
     | 
| 
       82 
82 
     | 
    
         
             
                /**
         
     | 
| 
       83 
83 
     | 
    
         
             
                 * The number of messages allowed in a given time frame.
         
     | 
| 
       84 
84 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -1,8 +1,8 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            export type InstanceActions = {
         
     | 
| 
       2 
2 
     | 
    
         
             
                /**
         
     | 
| 
       3 
     | 
    
         
            -
                 * When the instance  
     | 
| 
      
 3 
     | 
    
         
            +
                 * When the instance's communities were blocked.
         
     | 
| 
       4 
4 
     | 
    
         
             
                 */
         
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
      
 5 
     | 
    
         
            +
                blocked_communities_at?: string;
         
     | 
| 
       6 
6 
     | 
    
         
             
                /**
         
     | 
| 
       7 
7 
     | 
    
         
             
                 * When this user received a site ban.
         
     | 
| 
       8 
8 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -11,4 +11,8 @@ export type InstanceActions = { 
     | 
|
| 
       11 
11 
     | 
    
         
             
                 * When their ban expires.
         
     | 
| 
       12 
12 
     | 
    
         
             
                 */
         
     | 
| 
       13 
13 
     | 
    
         
             
                ban_expires_at?: string;
         
     | 
| 
      
 14 
     | 
    
         
            +
                /**
         
     | 
| 
      
 15 
     | 
    
         
            +
                 * When the instance's persons were blocked.
         
     | 
| 
      
 16 
     | 
    
         
            +
                 */
         
     | 
| 
      
 17 
     | 
    
         
            +
                blocked_persons_at?: string;
         
     | 
| 
       14 
18 
     | 
    
         
             
            };
         
     |