lemmy-js-client 0.17.2-rc.9 → 0.18.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +27 -12
- package/dist/http.js +351 -375
- package/dist/index.d.ts +248 -1
- package/dist/index.js +3 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/CommentAggregates.d.ts +4 -3
- package/dist/types/CommunityAggregates.d.ts +8 -7
- package/dist/types/GetCaptcha.d.ts +3 -1
- package/dist/types/GetComments.d.ts +2 -2
- package/dist/types/GetCommunityResponse.d.ts +0 -2
- package/dist/types/GetFederatedInstances.d.ts +3 -1
- package/dist/types/GetModlog.d.ts +2 -2
- package/dist/types/GetPersonDetails.d.ts +2 -2
- package/dist/types/GetPersonMentions.d.ts +2 -2
- package/dist/types/GetPost.d.ts +4 -2
- package/dist/types/GetPostResponse.d.ts +0 -1
- package/dist/types/GetPosts.d.ts +2 -2
- package/dist/types/GetPrivateMessages.d.ts +2 -2
- package/dist/types/GetReplies.d.ts +2 -2
- package/dist/types/GetReportCountResponse.d.ts +3 -3
- package/dist/types/GetSiteResponse.d.ts +0 -1
- package/dist/types/GetUnreadCountResponse.d.ts +3 -3
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +1 -1
- package/dist/types/ListCommentReports.d.ts +2 -2
- package/dist/types/ListCommunities.d.ts +2 -2
- package/dist/types/ListPostReports.d.ts +2 -2
- package/dist/types/ListPrivateMessageReports.d.ts +2 -2
- package/dist/types/ListRegistrationApplications.d.ts +2 -2
- package/dist/types/LocalSite.d.ts +0 -1
- package/dist/types/ModlogListParams.d.ts +2 -2
- package/dist/types/PersonAggregates.d.ts +4 -4
- package/dist/types/PostAggregates.d.ts +6 -4
- package/dist/types/PostView.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/Search.d.ts +2 -2
- package/dist/types/SiteAggregates.d.ts +8 -8
- package/dist/types/SiteResponse.d.ts +2 -0
- package/dist/types/others.d.ts +2 -1
- package/dist/types/others.js +1 -0
- package/dist/websocket.d.ts +7 -1
- package/dist/websocket.js +185 -181
- package/package.json +14 -15
package/dist/types/others.d.ts
CHANGED
package/dist/types/others.js
CHANGED
@@ -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 = {}));
|
package/dist/websocket.d.ts
CHANGED
@@ -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
|
/**
|