lemmy-js-client 0.17.0-rc.31 → 0.17.0-rc.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +1 -13
- package/dist/http.js +0 -24
- package/dist/interfaces/api/site.d.ts +0 -12
- package/dist/interfaces/api/site.js +1 -21
- package/dist/interfaces/others.d.ts +15 -17
- package/dist/interfaces/others.js +15 -17
- package/dist/websocket.d.ts +1 -9
- package/dist/websocket.js +0 -12
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLik
|
|
2
2
|
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
|
3
3
|
import { AddAdmin, AddAdminResponse, BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail, VerifyEmailResponse } from "./interfaces/api/person";
|
4
4
|
import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, MarkPostAsRead, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
|
5
|
-
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite,
|
5
|
+
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite, GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, LeaveAdmin, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, Search, SearchResponse, SiteResponse } from "./interfaces/api/site";
|
6
6
|
/**
|
7
7
|
* Helps build lemmy HTTP requests.
|
8
8
|
*/
|
@@ -41,18 +41,6 @@ export declare class LemmyHttp {
|
|
41
41
|
* `HTTP.POST /user/leave_admin`
|
42
42
|
*/
|
43
43
|
leaveAdmin(form: LeaveAdmin): Promise<GetSiteResponse>;
|
44
|
-
/**
|
45
|
-
* Get your site configuration.
|
46
|
-
*
|
47
|
-
* `HTTP.GET /site/config`
|
48
|
-
*/
|
49
|
-
getSiteConfig(form: GetSiteConfig): Promise<GetSiteConfigResponse>;
|
50
|
-
/**
|
51
|
-
* Save your site config.
|
52
|
-
*
|
53
|
-
* `HTTP.PUT /site/config`
|
54
|
-
*/
|
55
|
-
saveSiteConfig(form: SaveSiteConfig): Promise<GetSiteConfigResponse>;
|
56
44
|
/**
|
57
45
|
* Get the modlog.
|
58
46
|
*
|
package/dist/http.js
CHANGED
@@ -126,30 +126,6 @@ var LemmyHttp = /** @class */ (function () {
|
|
126
126
|
});
|
127
127
|
});
|
128
128
|
};
|
129
|
-
/**
|
130
|
-
* Get your site configuration.
|
131
|
-
*
|
132
|
-
* `HTTP.GET /site/config`
|
133
|
-
*/
|
134
|
-
LemmyHttp.prototype.getSiteConfig = function (form) {
|
135
|
-
return __awaiter(this, void 0, void 0, function () {
|
136
|
-
return __generator(this, function (_a) {
|
137
|
-
return [2 /*return*/, this.wrapper(HttpType.Get, "/site/config", form, site_1.GetSiteConfigResponse)];
|
138
|
-
});
|
139
|
-
});
|
140
|
-
};
|
141
|
-
/**
|
142
|
-
* Save your site config.
|
143
|
-
*
|
144
|
-
* `HTTP.PUT /site/config`
|
145
|
-
*/
|
146
|
-
LemmyHttp.prototype.saveSiteConfig = function (form) {
|
147
|
-
return __awaiter(this, void 0, void 0, function () {
|
148
|
-
return __generator(this, function (_a) {
|
149
|
-
return [2 /*return*/, this.wrapper(HttpType.Put, "/site/config", form, site_1.GetSiteConfigResponse)];
|
150
|
-
});
|
151
|
-
});
|
152
|
-
};
|
153
129
|
/**
|
154
130
|
* Get the modlog.
|
155
131
|
*
|
@@ -125,18 +125,6 @@ export declare class LeaveAdmin {
|
|
125
125
|
auth: string;
|
126
126
|
constructor(init: LeaveAdmin);
|
127
127
|
}
|
128
|
-
export declare class GetSiteConfig {
|
129
|
-
auth: string;
|
130
|
-
constructor(init: GetSiteConfig);
|
131
|
-
}
|
132
|
-
export declare class GetSiteConfigResponse {
|
133
|
-
config_hjson: string;
|
134
|
-
}
|
135
|
-
export declare class SaveSiteConfig {
|
136
|
-
config_hjson: string;
|
137
|
-
auth: string;
|
138
|
-
constructor(init: SaveSiteConfig);
|
139
|
-
}
|
140
128
|
export declare class FederatedInstances {
|
141
129
|
linked: string[];
|
142
130
|
allowed: Option<string[]>;
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
exports.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.
|
9
|
+
exports.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.LeaveAdmin = exports.MyUserInfo = exports.GetSiteResponse = exports.SiteResponse = exports.GetSite = exports.EditSite = exports.CreateSite = exports.GetModlogResponse = exports.GetModlog = exports.SearchResponse = exports.Search = void 0;
|
10
10
|
var class_transformer_1 = require("class-transformer");
|
11
11
|
require("reflect-metadata");
|
12
12
|
var utils_1 = require("../../utils");
|
@@ -683,26 +683,6 @@ var LeaveAdmin = /** @class */ (function () {
|
|
683
683
|
return LeaveAdmin;
|
684
684
|
}());
|
685
685
|
exports.LeaveAdmin = LeaveAdmin;
|
686
|
-
var GetSiteConfig = /** @class */ (function () {
|
687
|
-
function GetSiteConfig(init) {
|
688
|
-
Object.assign(this, init);
|
689
|
-
}
|
690
|
-
return GetSiteConfig;
|
691
|
-
}());
|
692
|
-
exports.GetSiteConfig = GetSiteConfig;
|
693
|
-
var GetSiteConfigResponse = /** @class */ (function () {
|
694
|
-
function GetSiteConfigResponse() {
|
695
|
-
}
|
696
|
-
return GetSiteConfigResponse;
|
697
|
-
}());
|
698
|
-
exports.GetSiteConfigResponse = GetSiteConfigResponse;
|
699
|
-
var SaveSiteConfig = /** @class */ (function () {
|
700
|
-
function SaveSiteConfig(init) {
|
701
|
-
Object.assign(this, init);
|
702
|
-
}
|
703
|
-
return SaveSiteConfig;
|
704
|
-
}());
|
705
|
-
exports.SaveSiteConfig = SaveSiteConfig;
|
706
686
|
var FederatedInstances = /** @class */ (function () {
|
707
687
|
function FederatedInstances(init) {
|
708
688
|
Object.assign(this, init);
|
@@ -64,23 +64,21 @@ export declare enum UserOperation {
|
|
64
64
|
GetPrivateMessages = 57,
|
65
65
|
UserJoin = 58,
|
66
66
|
GetComments = 59,
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
GetUnreadCount = 75,
|
83
|
-
VerifyEmail = 76
|
67
|
+
PostJoin = 60,
|
68
|
+
CommunityJoin = 61,
|
69
|
+
ChangePassword = 62,
|
70
|
+
GetSiteMetadata = 63,
|
71
|
+
BlockCommunity = 64,
|
72
|
+
BlockPerson = 65,
|
73
|
+
CreateCommentReport = 66,
|
74
|
+
ResolveCommentReport = 67,
|
75
|
+
ListCommentReports = 68,
|
76
|
+
CreatePostReport = 69,
|
77
|
+
ResolvePostReport = 70,
|
78
|
+
ListPostReports = 71,
|
79
|
+
GetReportCount = 72,
|
80
|
+
GetUnreadCount = 73,
|
81
|
+
VerifyEmail = 74
|
84
82
|
}
|
85
83
|
/**
|
86
84
|
* Different sort types used in lemmy.
|
@@ -75,23 +75,21 @@ var UserOperation;
|
|
75
75
|
UserOperation[UserOperation["GetPrivateMessages"] = 57] = "GetPrivateMessages";
|
76
76
|
UserOperation[UserOperation["UserJoin"] = 58] = "UserJoin";
|
77
77
|
UserOperation[UserOperation["GetComments"] = 59] = "GetComments";
|
78
|
-
UserOperation[UserOperation["
|
79
|
-
UserOperation[UserOperation["
|
80
|
-
UserOperation[UserOperation["
|
81
|
-
UserOperation[UserOperation["
|
82
|
-
UserOperation[UserOperation["
|
83
|
-
UserOperation[UserOperation["
|
84
|
-
UserOperation[UserOperation["
|
85
|
-
UserOperation[UserOperation["
|
86
|
-
UserOperation[UserOperation["
|
87
|
-
UserOperation[UserOperation["
|
88
|
-
UserOperation[UserOperation["
|
89
|
-
UserOperation[UserOperation["
|
90
|
-
UserOperation[UserOperation["
|
91
|
-
UserOperation[UserOperation["
|
92
|
-
UserOperation[UserOperation["
|
93
|
-
UserOperation[UserOperation["GetUnreadCount"] = 75] = "GetUnreadCount";
|
94
|
-
UserOperation[UserOperation["VerifyEmail"] = 76] = "VerifyEmail";
|
78
|
+
UserOperation[UserOperation["PostJoin"] = 60] = "PostJoin";
|
79
|
+
UserOperation[UserOperation["CommunityJoin"] = 61] = "CommunityJoin";
|
80
|
+
UserOperation[UserOperation["ChangePassword"] = 62] = "ChangePassword";
|
81
|
+
UserOperation[UserOperation["GetSiteMetadata"] = 63] = "GetSiteMetadata";
|
82
|
+
UserOperation[UserOperation["BlockCommunity"] = 64] = "BlockCommunity";
|
83
|
+
UserOperation[UserOperation["BlockPerson"] = 65] = "BlockPerson";
|
84
|
+
UserOperation[UserOperation["CreateCommentReport"] = 66] = "CreateCommentReport";
|
85
|
+
UserOperation[UserOperation["ResolveCommentReport"] = 67] = "ResolveCommentReport";
|
86
|
+
UserOperation[UserOperation["ListCommentReports"] = 68] = "ListCommentReports";
|
87
|
+
UserOperation[UserOperation["CreatePostReport"] = 69] = "CreatePostReport";
|
88
|
+
UserOperation[UserOperation["ResolvePostReport"] = 70] = "ResolvePostReport";
|
89
|
+
UserOperation[UserOperation["ListPostReports"] = 71] = "ListPostReports";
|
90
|
+
UserOperation[UserOperation["GetReportCount"] = 72] = "GetReportCount";
|
91
|
+
UserOperation[UserOperation["GetUnreadCount"] = 73] = "GetUnreadCount";
|
92
|
+
UserOperation[UserOperation["VerifyEmail"] = 74] = "VerifyEmail";
|
95
93
|
})(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
|
96
94
|
/**
|
97
95
|
* Different sort types used in lemmy.
|
package/dist/websocket.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, E
|
|
3
3
|
import { AddModToCommunity, BanFromCommunity, BlockCommunity, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, ListCommunities, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
|
4
4
|
import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, Login, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
|
5
5
|
import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPosts, GetSiteMetadata, ListPostReports, LockPost, MarkPostAsRead, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
|
6
|
-
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite,
|
6
|
+
import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite, GetUnreadRegistrationApplicationCount, LeaveAdmin, ListRegistrationApplications, ResolveObject, Search } from "./interfaces/api/site";
|
7
7
|
import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
|
8
8
|
import { UserOperation } from "./interfaces/others";
|
9
9
|
/**
|
@@ -251,10 +251,6 @@ export declare class LemmyWebsocket {
|
|
251
251
|
* Gets the site, and your user data.
|
252
252
|
*/
|
253
253
|
getSite(form: GetSite): string;
|
254
|
-
/**
|
255
|
-
* Get your site configuration.
|
256
|
-
*/
|
257
|
-
getSiteConfig(form: GetSiteConfig): string;
|
258
254
|
/**
|
259
255
|
* Search lemmy.
|
260
256
|
*/
|
@@ -319,10 +315,6 @@ export declare class LemmyWebsocket {
|
|
319
315
|
* Get / fetch private messages.
|
320
316
|
*/
|
321
317
|
getPrivateMessages(form: GetPrivateMessages): string;
|
322
|
-
/**
|
323
|
-
* Save your site config.
|
324
|
-
*/
|
325
|
-
saveSiteConfig(form: SaveSiteConfig): string;
|
326
318
|
/**
|
327
319
|
* Block a person.
|
328
320
|
*/
|
package/dist/websocket.js
CHANGED
@@ -363,12 +363,6 @@ var LemmyWebsocket = /** @class */ (function () {
|
|
363
363
|
LemmyWebsocket.prototype.getSite = function (form) {
|
364
364
|
return wrapper(others_1.UserOperation.GetSite, form);
|
365
365
|
};
|
366
|
-
/**
|
367
|
-
* Get your site configuration.
|
368
|
-
*/
|
369
|
-
LemmyWebsocket.prototype.getSiteConfig = function (form) {
|
370
|
-
return wrapper(others_1.UserOperation.GetSiteConfig, form);
|
371
|
-
};
|
372
366
|
/**
|
373
367
|
* Search lemmy.
|
374
368
|
*/
|
@@ -465,12 +459,6 @@ var LemmyWebsocket = /** @class */ (function () {
|
|
465
459
|
LemmyWebsocket.prototype.getPrivateMessages = function (form) {
|
466
460
|
return wrapper(others_1.UserOperation.GetPrivateMessages, form);
|
467
461
|
};
|
468
|
-
/**
|
469
|
-
* Save your site config.
|
470
|
-
*/
|
471
|
-
LemmyWebsocket.prototype.saveSiteConfig = function (form) {
|
472
|
-
return wrapper(others_1.UserOperation.SaveSiteConfig, form);
|
473
|
-
};
|
474
462
|
/**
|
475
463
|
* Block a person.
|
476
464
|
*/
|
package/package.json
CHANGED