lemmy-js-client 0.19.0-rc.8 → 0.19.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/dist/http.d.ts +87 -15
 - package/dist/http.js +99 -13
 - package/dist/index.d.ts +14 -8
 - package/dist/{types/others.d.ts → other_types.d.ts} +4 -4
 - package/dist/types/ActivityId.d.ts +1 -0
 - package/dist/types/BlockInstance.d.ts +5 -0
 - package/dist/types/BlockInstanceResponse.d.ts +3 -0
 - package/dist/types/CommentAggregates.d.ts +0 -3
 - package/dist/types/CommentReplyView.d.ts +2 -0
 - package/dist/types/CommentView.d.ts +2 -0
 - package/dist/types/Community.d.ts +0 -2
 - package/dist/types/CommunityAggregates.d.ts +0 -2
 - package/dist/types/CustomEmojiKeyword.d.ts +0 -1
 - package/dist/types/FederatedInstances.d.ts +4 -4
 - package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
 - package/dist/types/GetPosts.d.ts +2 -0
 - package/dist/types/GetPostsResponse.d.ts +2 -0
 - package/dist/types/ImageUpload.d.ts +0 -2
 - package/dist/types/InstanceBlockView.d.ts +8 -0
 - package/dist/types/InstanceBlockView.js +2 -0
 - package/dist/types/InstanceWithFederationState.d.ts +11 -0
 - package/dist/types/InstanceWithFederationState.js +2 -0
 - package/dist/types/LemmyErrorType.d.ts +171 -138
 - package/dist/types/LocalSite.d.ts +1 -0
 - package/dist/types/LocalSiteRateLimit.d.ts +2 -1
 - package/dist/types/LocalUser.d.ts +4 -3
 - package/dist/types/LoginToken.d.ts +7 -0
 - package/dist/types/LoginToken.js +2 -0
 - package/dist/types/MarkPostAsRead.d.ts +2 -1
 - package/dist/types/ModRemoveCommunity.d.ts +0 -1
 - package/dist/types/MyUserInfo.d.ts +2 -0
 - package/dist/types/PaginationCursor.d.ts +1 -0
 - package/dist/types/Person.d.ts +0 -1
 - package/dist/types/PersonAggregates.d.ts +0 -3
 - package/dist/types/PersonMentionView.d.ts +2 -0
 - package/dist/types/PersonView.d.ts +1 -0
 - package/dist/types/PostAggregates.d.ts +0 -12
 - package/dist/types/PostView.d.ts +2 -0
 - package/dist/types/ReadableFederationState.d.ts +10 -0
 - package/dist/types/ReadableFederationState.js +2 -0
 - package/dist/types/RemoveCommunity.d.ts +0 -1
 - package/dist/types/SaveUserSettings.d.ts +5 -2
 - package/dist/types/SiteAggregates.d.ts +0 -1
 - package/dist/types/SortType.d.ts +1 -1
 - package/dist/types/SuccessResponse.d.ts +3 -0
 - package/dist/types/UpdateTotp.d.ts +4 -0
 - package/dist/types/UpdateTotpResponse.d.ts +3 -0
 - package/package.json +12 -12
 - package/dist/types/CommunityBlockId.d.ts +0 -1
 - package/dist/types/DeleteAccountResponse.d.ts +0 -1
 - package/dist/types/DeleteCustomEmojiResponse.d.ts +0 -5
 - package/dist/types/ImageUploadId.d.ts +0 -1
 - package/dist/types/PasswordResetResponse.d.ts +0 -1
 - package/dist/types/PersonSortType.d.ts +0 -1
 - package/dist/types/PurgeItemResponse.d.ts +0 -3
 - package/dist/types/VerifyEmailResponse.d.ts +0 -1
 - package/dist/utils.d.ts +0 -0
 - package/dist/utils.js +0 -0
 - /package/dist/{types/others.js → other_types.js} +0 -0
 - /package/dist/types/{CommunityBlockId.js → ActivityId.js} +0 -0
 - /package/dist/types/{DeleteCustomEmojiResponse.js → BlockInstance.js} +0 -0
 - /package/dist/types/{DeleteAccountResponse.js → BlockInstanceResponse.js} +0 -0
 - /package/dist/types/{ImageUploadId.js → GenerateTotpSecretResponse.js} +0 -0
 - /package/dist/types/{PasswordResetResponse.js → PaginationCursor.js} +0 -0
 - /package/dist/types/{PersonSortType.js → SuccessResponse.js} +0 -0
 - /package/dist/types/{PurgeItemResponse.js → UpdateTotp.js} +0 -0
 - /package/dist/types/{VerifyEmailResponse.js → UpdateTotpResponse.js} +0 -0
 
| 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type { LanguageId } from "./LanguageId";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { ListingType } from "./ListingType";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import type { PostListingMode } from "./PostListingMode";
         
     | 
| 
       3 
4 
     | 
    
         
             
            import type { SortType } from "./SortType";
         
     | 
| 
       4 
5 
     | 
    
         
             
            export interface SaveUserSettings {
         
     | 
| 
       5 
6 
     | 
    
         
             
                show_nsfw?: boolean;
         
     | 
| 
         @@ -21,9 +22,11 @@ export interface SaveUserSettings { 
     | 
|
| 
       21 
22 
     | 
    
         
             
                bot_account?: boolean;
         
     | 
| 
       22 
23 
     | 
    
         
             
                show_bot_accounts?: boolean;
         
     | 
| 
       23 
24 
     | 
    
         
             
                show_read_posts?: boolean;
         
     | 
| 
       24 
     | 
    
         
            -
                show_new_post_notifs?: boolean;
         
     | 
| 
       25 
25 
     | 
    
         
             
                discussion_languages?: Array<LanguageId>;
         
     | 
| 
       26 
     | 
    
         
            -
                generate_totp_2fa?: boolean;
         
     | 
| 
       27 
26 
     | 
    
         
             
                open_links_in_new_tab?: boolean;
         
     | 
| 
       28 
27 
     | 
    
         
             
                infinite_scroll_enabled?: boolean;
         
     | 
| 
      
 28 
     | 
    
         
            +
                post_listing_mode?: PostListingMode;
         
     | 
| 
      
 29 
     | 
    
         
            +
                enable_keyboard_navigation?: boolean;
         
     | 
| 
      
 30 
     | 
    
         
            +
                enable_animated_images?: boolean;
         
     | 
| 
      
 31 
     | 
    
         
            +
                collapse_bot_comments?: boolean;
         
     | 
| 
       29 
32 
     | 
    
         
             
            }
         
     | 
    
        package/dist/types/SortType.d.ts
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial";
         
     | 
| 
      
 1 
     | 
    
         
            +
            export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled";
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "lemmy-js-client",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "0.19.0 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "0.19.0",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "A javascript / typescript client for Lemmy",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "repository": "https://github.com/LemmyNet/lemmy-js-client",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "license": "AGPL-3.0",
         
     | 
| 
         @@ -30,20 +30,20 @@ 
     | 
|
| 
       30 
30 
     | 
    
         
             
                "form-data": "^4.0.0"
         
     | 
| 
       31 
31 
     | 
    
         
             
              },
         
     | 
| 
       32 
32 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       33 
     | 
    
         
            -
                "@types/node": "^20. 
     | 
| 
       34 
     | 
    
         
            -
                "@typescript-eslint/eslint-plugin": "^ 
     | 
| 
       35 
     | 
    
         
            -
                "@typescript-eslint/parser": "^ 
     | 
| 
       36 
     | 
    
         
            -
                "eslint": "^8. 
     | 
| 
       37 
     | 
    
         
            -
                "eslint-plugin-prettier": "^ 
     | 
| 
      
 33 
     | 
    
         
            +
                "@types/node": "^20.10.0",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "@typescript-eslint/eslint-plugin": "^6.13.1",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "@typescript-eslint/parser": "^6.13.1",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "eslint": "^8.54.0",
         
     | 
| 
      
 37 
     | 
    
         
            +
                "eslint-plugin-prettier": "^5.0.1",
         
     | 
| 
       38 
38 
     | 
    
         
             
                "husky": "^8.0.3",
         
     | 
| 
       39 
     | 
    
         
            -
                "lint-staged": "^ 
     | 
| 
       40 
     | 
    
         
            -
                "prettier": "^3. 
     | 
| 
      
 39 
     | 
    
         
            +
                "lint-staged": "^15.1.0",
         
     | 
| 
      
 40 
     | 
    
         
            +
                "prettier": "^3.1.0",
         
     | 
| 
       41 
41 
     | 
    
         
             
                "prettier-plugin-import-sort": "^0.0.7",
         
     | 
| 
       42 
     | 
    
         
            -
                "prettier-plugin-organize-imports": "^3.2. 
     | 
| 
       43 
     | 
    
         
            -
                "prettier-plugin-packagejson": "^2.4. 
     | 
| 
       44 
     | 
    
         
            -
                "sortpack": "^2.3. 
     | 
| 
      
 42 
     | 
    
         
            +
                "prettier-plugin-organize-imports": "^3.2.4",
         
     | 
| 
      
 43 
     | 
    
         
            +
                "prettier-plugin-packagejson": "^2.4.6",
         
     | 
| 
      
 44 
     | 
    
         
            +
                "sortpack": "^2.3.5",
         
     | 
| 
       45 
45 
     | 
    
         
             
                "typedoc": "^0.24.7",
         
     | 
| 
       46 
     | 
    
         
            -
                "typescript": "^5. 
     | 
| 
      
 46 
     | 
    
         
            +
                "typescript": "^5.3.2"
         
     | 
| 
       47 
47 
     | 
    
         
             
              },
         
     | 
| 
       48 
48 
     | 
    
         
             
              "importSort": {
         
     | 
| 
       49 
49 
     | 
    
         
             
                ".js, .jsx, .ts, .tsx": {
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type CommunityBlockId = number;
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type DeleteAccountResponse = null;
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type ImageUploadId = number;
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type PasswordResetResponse = null;
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export type VerifyEmailResponse = null;
         
     | 
    
        package/dist/utils.d.ts
    DELETED
    
    | 
         
            File without changes
         
     | 
    
        package/dist/utils.js
    DELETED
    
    | 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |