lemmy-js-client 0.17.2-rc.9 → 0.18.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/http.d.ts +27 -12
  2. package/dist/http.js +351 -375
  3. package/dist/index.d.ts +248 -1
  4. package/dist/index.js +3 -1
  5. package/dist/types/BanFromCommunity.d.ts +1 -1
  6. package/dist/types/BanPerson.d.ts +1 -1
  7. package/dist/types/CommentAggregates.d.ts +4 -3
  8. package/dist/types/CommunityAggregates.d.ts +8 -7
  9. package/dist/types/GetCaptcha.d.ts +3 -1
  10. package/dist/types/GetComments.d.ts +2 -2
  11. package/dist/types/GetCommunityResponse.d.ts +0 -2
  12. package/dist/types/GetFederatedInstances.d.ts +3 -1
  13. package/dist/types/GetModlog.d.ts +2 -2
  14. package/dist/types/GetPersonDetails.d.ts +2 -2
  15. package/dist/types/GetPersonMentions.d.ts +2 -2
  16. package/dist/types/GetPost.d.ts +4 -2
  17. package/dist/types/GetPostResponse.d.ts +0 -1
  18. package/dist/types/GetPosts.d.ts +2 -2
  19. package/dist/types/GetPrivateMessages.d.ts +2 -2
  20. package/dist/types/GetReplies.d.ts +2 -2
  21. package/dist/types/GetReportCountResponse.d.ts +3 -3
  22. package/dist/types/GetSiteResponse.d.ts +0 -1
  23. package/dist/types/GetUnreadCountResponse.d.ts +3 -3
  24. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +1 -1
  25. package/dist/types/ListCommentReports.d.ts +2 -2
  26. package/dist/types/ListCommunities.d.ts +2 -2
  27. package/dist/types/ListPostReports.d.ts +2 -2
  28. package/dist/types/ListPrivateMessageReports.d.ts +2 -2
  29. package/dist/types/ListRegistrationApplications.d.ts +2 -2
  30. package/dist/types/LocalSite.d.ts +0 -1
  31. package/dist/types/ModlogListParams.d.ts +2 -2
  32. package/dist/types/PersonAggregates.d.ts +4 -4
  33. package/dist/types/PostAggregates.d.ts +6 -4
  34. package/dist/types/PostView.d.ts +1 -1
  35. package/dist/types/RemoveCommunity.d.ts +1 -1
  36. package/dist/types/Search.d.ts +2 -2
  37. package/dist/types/SiteAggregates.d.ts +8 -8
  38. package/dist/types/SiteResponse.d.ts +2 -0
  39. package/dist/types/others.d.ts +2 -1
  40. package/dist/types/others.js +1 -0
  41. package/dist/websocket.d.ts +7 -1
  42. package/dist/websocket.js +185 -181
  43. package/package.json +14 -15
@@ -1,4 +1,6 @@
1
1
  import type { SiteView } from "./SiteView";
2
+ import type { Tagline } from "./Tagline";
2
3
  export interface SiteResponse {
3
4
  site_view: SiteView;
5
+ taglines: Array<Tagline>;
4
6
  }
@@ -89,7 +89,8 @@ export declare enum UserOperation {
89
89
  VerifyEmail = 82,
90
90
  CreateCustomEmoji = 83,
91
91
  EditCustomEmoji = 84,
92
- DeleteCustomEmoji = 85
92
+ DeleteCustomEmoji = 85,
93
+ GetFederatedInstances = 86
93
94
  }
94
95
  export interface UploadImage {
95
96
  image: File | Buffer;
@@ -93,4 +93,5 @@ var UserOperation;
93
93
  UserOperation[UserOperation["CreateCustomEmoji"] = 83] = "CreateCustomEmoji";
94
94
  UserOperation[UserOperation["EditCustomEmoji"] = 84] = "EditCustomEmoji";
95
95
  UserOperation[UserOperation["DeleteCustomEmoji"] = 85] = "DeleteCustomEmoji";
96
+ UserOperation[UserOperation["GetFederatedInstances"] = 86] = "GetFederatedInstances";
96
97
  })(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
@@ -33,9 +33,11 @@ import { EditSite } from "./types/EditSite";
33
33
  import { FeaturePost } from "./types/FeaturePost";
34
34
  import { FollowCommunity } from "./types/FollowCommunity";
35
35
  import { GetBannedPersons } from "./types/GetBannedPersons";
36
+ import { GetCaptcha } from "./types/GetCaptcha";
36
37
  import { GetComment } from "./types/GetComment";
37
38
  import { GetComments } from "./types/GetComments";
38
39
  import { GetCommunity } from "./types/GetCommunity";
40
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
39
41
  import { GetModlog } from "./types/GetModlog";
40
42
  import { GetPersonDetails } from "./types/GetPersonDetails";
41
43
  import { GetPersonMentions } from "./types/GetPersonMentions";
@@ -124,7 +126,7 @@ export declare class LemmyWebsocket {
124
126
  /**
125
127
  * Fetch a Captcha.
126
128
  */
127
- getCaptcha(): string;
129
+ getCaptcha(form: GetCaptcha): string;
128
130
  /**
129
131
  * Create a new community.
130
132
  */
@@ -445,6 +447,10 @@ export declare class LemmyWebsocket {
445
447
  * Delete a custom emoji
446
448
  */
447
449
  deleteCustomEmoji(form: DeleteCustomEmoji): string;
450
+ /**
451
+ * Fetch federated instances.
452
+ */
453
+ getFederatedInstances(form: GetFederatedInstances): string;
448
454
  }
449
455
  export declare function wsUserOp(msg: any): UserOperation;
450
456
  /**