lemmy-js-client 1.0.0-dont-return-actions.0 → 1.0.0-instance-user-blocking.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 +17 -18
- package/dist/http.js +36 -70
- package/dist/index.d.ts +2 -13
- package/dist/other_types.d.ts +0 -6
- package/dist/types/CommentSlimView.d.ts +6 -3
- package/dist/types/CommentView.d.ts +5 -3
- package/dist/types/CreateSite.d.ts +0 -2
- package/dist/types/EditSite.d.ts +0 -5
- package/dist/types/GetPosts.d.ts +0 -2
- package/dist/types/InstanceActions.d.ts +6 -2
- package/dist/types/LemmyErrorType.d.ts +3 -7
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +0 -4
- package/dist/types/MyUserInfo.d.ts +2 -1
- package/dist/types/PostView.d.ts +5 -3
- package/dist/types/SearchCombinedView.d.ts +1 -4
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/types/CreateMultiCommunity.d.ts +0 -5
- package/dist/types/CreateMultiCommunity.js +0 -3
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +0 -6
- package/dist/types/FollowMultiCommunity.d.ts +0 -5
- package/dist/types/GetMultiCommunity.d.ts +0 -4
- package/dist/types/GetMultiCommunity.js +0 -2
- package/dist/types/GetMultiCommunityResponse.d.ts +0 -6
- package/dist/types/GetMultiCommunityResponse.js +0 -2
- package/dist/types/ListMultiCommunities.d.ts +0 -5
- package/dist/types/ListMultiCommunities.js +0 -2
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListMultiCommunitiesResponse.js +0 -2
- package/dist/types/MultiCommunity.d.ts +0 -17
- package/dist/types/MultiCommunity.js +0 -2
- package/dist/types/MultiCommunityFollow.d.ts +0 -8
- package/dist/types/MultiCommunityFollow.js +0 -2
- package/dist/types/MultiCommunityId.d.ts +0 -1
- package/dist/types/MultiCommunityId.js +0 -3
- package/dist/types/MultiCommunityView.d.ts +0 -6
- package/dist/types/MultiCommunityView.js +0 -2
- package/dist/types/UpdateMultiCommunity.d.ts +0 -7
- package/dist/types/UpdateMultiCommunity.js +0 -2
- package/dist/types/UserBlockInstanceParams.js +0 -2
- /package/dist/types/{CreateOrDeleteMultiCommunityEntry.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{FollowMultiCommunity.js → UserBlockInstancePersonsParams.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
2
|
-
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI,
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -122,7 +122,6 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
|
|
122
122
|
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
123
123
|
import { ListReportsResponse } from "./types/ListReportsResponse";
|
124
124
|
import { MyUserInfo } from "./types/MyUserInfo";
|
125
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
126
125
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
127
126
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
128
127
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
@@ -137,15 +136,12 @@ import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
137
136
|
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
138
137
|
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
139
138
|
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
140
|
-
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
141
|
-
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
142
|
-
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
143
139
|
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
144
|
-
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
145
|
-
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
146
|
-
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
147
140
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
148
141
|
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
142
|
+
import { NotePerson } from "./types/NotePerson";
|
143
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
144
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
149
145
|
type RequestOptions = Pick<RequestInit, "signal">;
|
150
146
|
/**
|
151
147
|
* Helps build lemmy HTTP requests.
|
@@ -485,6 +481,10 @@ export declare class LemmyHttp extends Controller {
|
|
485
481
|
* @summary List the content for a person.
|
486
482
|
*/
|
487
483
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
484
|
+
/**
|
485
|
+
* @summary Make a note for a person.
|
486
|
+
*/
|
487
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
488
488
|
/**
|
489
489
|
* @summary Mark a person mention as read.
|
490
490
|
*/
|
@@ -674,9 +674,13 @@ export declare class LemmyHttp extends Controller {
|
|
674
674
|
*/
|
675
675
|
listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
|
676
676
|
/**
|
677
|
-
* @summary Block an instance as user.
|
677
|
+
* @summary Block an instance's communities as a user.
|
678
678
|
*/
|
679
|
-
|
679
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
680
|
+
/**
|
681
|
+
* @summary Block an instance's persons as a user.
|
682
|
+
*/
|
683
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
680
684
|
/**
|
681
685
|
* @summary Globally block an instance as admin.
|
682
686
|
*/
|
@@ -743,15 +747,10 @@ export declare class LemmyHttp extends Controller {
|
|
743
747
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
744
748
|
/**
|
745
749
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
750
|
+
*
|
751
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
746
752
|
*/
|
747
|
-
|
748
|
-
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
749
|
-
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
750
|
-
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
751
|
-
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
752
|
-
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
753
|
-
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
754
|
-
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
753
|
+
donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
|
755
754
|
/**
|
756
755
|
* Set the headers (can be used to set the auth header)
|
757
756
|
*/
|
package/dist/http.js
CHANGED
@@ -532,6 +532,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
532
532
|
async listPersonContent(form = {}, options) {
|
533
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
534
534
|
}
|
535
|
+
/**
|
536
|
+
* @summary Make a note for a person.
|
537
|
+
*/
|
538
|
+
async notePerson(form, options) {
|
539
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
|
540
|
+
}
|
535
541
|
/**
|
536
542
|
* @summary Mark a person mention as read.
|
537
543
|
*/
|
@@ -815,10 +821,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
815
821
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
816
822
|
}
|
817
823
|
/**
|
818
|
-
* @summary Block an instance as user.
|
824
|
+
* @summary Block an instance's communities as a user.
|
819
825
|
*/
|
820
|
-
async
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
826
|
+
async userBlockInstanceCommunities(form, options) {
|
827
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
|
828
|
+
}
|
829
|
+
/**
|
830
|
+
* @summary Block an instance's persons as a user.
|
831
|
+
*/
|
832
|
+
async userBlockInstancePersons(form, options) {
|
833
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
|
822
834
|
}
|
823
835
|
/**
|
824
836
|
* @summary Globally block an instance as admin.
|
@@ -918,31 +930,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
918
930
|
}
|
919
931
|
/**
|
920
932
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
933
|
+
*
|
934
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
921
935
|
*/
|
922
|
-
|
936
|
+
donation_dialog_shown(options) {
|
923
937
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
|
924
938
|
}
|
925
|
-
createMultiCommunity(form, options) {
|
926
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
927
|
-
}
|
928
|
-
updateMultiCommunity(form, options) {
|
929
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
|
930
|
-
}
|
931
|
-
getMultiCommunity(form, options) {
|
932
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
|
933
|
-
}
|
934
|
-
createMultiCommunityEntry(form, options) {
|
935
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
|
936
|
-
}
|
937
|
-
deleteMultiCommunityEntry(form, options) {
|
938
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
|
939
|
-
}
|
940
|
-
listMultiCommunities(form, options) {
|
941
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
|
942
|
-
}
|
943
|
-
followMultiCommunity(form, options) {
|
944
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
|
945
|
-
}
|
946
939
|
/**
|
947
940
|
* Set the headers (can be used to set the auth header)
|
948
941
|
*/
|
@@ -1558,6 +1551,13 @@ __decorate([
|
|
1558
1551
|
__param(0, (0, runtime_1.Queries)()),
|
1559
1552
|
__param(1, (0, runtime_1.Inject)())
|
1560
1553
|
], LemmyHttp.prototype, "listPersonContent", null);
|
1554
|
+
__decorate([
|
1555
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1556
|
+
(0, runtime_1.Post)("/person/note"),
|
1557
|
+
(0, runtime_1.Tags)("Person"),
|
1558
|
+
__param(0, (0, runtime_1.Body)()),
|
1559
|
+
__param(1, (0, runtime_1.Inject)())
|
1560
|
+
], LemmyHttp.prototype, "notePerson", null);
|
1561
1561
|
__decorate([
|
1562
1562
|
(0, runtime_1.Security)("bearerAuth"),
|
1563
1563
|
(0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
|
@@ -1882,11 +1882,18 @@ __decorate([
|
|
1882
1882
|
], LemmyHttp.prototype, "listReports", null);
|
1883
1883
|
__decorate([
|
1884
1884
|
(0, runtime_1.Security)("bearerAuth"),
|
1885
|
-
(0, runtime_1.Post)("/account/block/instance"),
|
1886
|
-
(0, runtime_1.Tags)("Account"),
|
1885
|
+
(0, runtime_1.Post)("/account/block/instance/communities"),
|
1886
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
1887
|
+
__param(0, (0, runtime_1.Body)()),
|
1888
|
+
__param(1, (0, runtime_1.Inject)())
|
1889
|
+
], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
|
1890
|
+
__decorate([
|
1891
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1892
|
+
(0, runtime_1.Post)("/account/block/instance/persons"),
|
1893
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
1887
1894
|
__param(0, (0, runtime_1.Body)()),
|
1888
1895
|
__param(1, (0, runtime_1.Inject)())
|
1889
|
-
], LemmyHttp.prototype, "
|
1896
|
+
], LemmyHttp.prototype, "userBlockInstancePersons", null);
|
1890
1897
|
__decorate([
|
1891
1898
|
(0, runtime_1.Security)("bearerAuth"),
|
1892
1899
|
(0, runtime_1.Post)("/admin/instance/block"),
|
@@ -1996,49 +2003,8 @@ __decorate([
|
|
1996
2003
|
__param(0, (0, runtime_1.Inject)())
|
1997
2004
|
], LemmyHttp.prototype, "imageHealth", null);
|
1998
2005
|
__decorate([
|
1999
|
-
(0, runtime_1.Security)("bearerAuth"),
|
2000
|
-
(0, runtime_1.Post)("/user/donation_dialog_shown"),
|
2001
2006
|
__param(0, (0, runtime_1.Inject)())
|
2002
|
-
], LemmyHttp.prototype, "
|
2003
|
-
__decorate([
|
2004
|
-
(0, runtime_1.Security)("bearerAuth"),
|
2005
|
-
(0, runtime_1.Post)("/multi_community"),
|
2006
|
-
__param(0, (0, runtime_1.Body)()),
|
2007
|
-
__param(1, (0, runtime_1.Inject)())
|
2008
|
-
], LemmyHttp.prototype, "createMultiCommunity", null);
|
2009
|
-
__decorate([
|
2010
|
-
(0, runtime_1.Security)("bearerAuth"),
|
2011
|
-
(0, runtime_1.Put)("/multi_community"),
|
2012
|
-
__param(0, (0, runtime_1.Body)()),
|
2013
|
-
__param(1, (0, runtime_1.Inject)())
|
2014
|
-
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
2015
|
-
__decorate([
|
2016
|
-
(0, runtime_1.Get)("/multi_community"),
|
2017
|
-
__param(0, (0, runtime_1.Queries)()),
|
2018
|
-
__param(1, (0, runtime_1.Inject)())
|
2019
|
-
], LemmyHttp.prototype, "getMultiCommunity", null);
|
2020
|
-
__decorate([
|
2021
|
-
(0, runtime_1.Security)("bearerAuth"),
|
2022
|
-
(0, runtime_1.Post)("/multi_community/entry"),
|
2023
|
-
__param(0, (0, runtime_1.Body)()),
|
2024
|
-
__param(1, (0, runtime_1.Inject)())
|
2025
|
-
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
2026
|
-
__decorate([
|
2027
|
-
(0, runtime_1.Security)("bearerAuth"),
|
2028
|
-
(0, runtime_1.Delete)("/multi_community/entry"),
|
2029
|
-
__param(0, (0, runtime_1.Body)()),
|
2030
|
-
__param(1, (0, runtime_1.Inject)())
|
2031
|
-
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2032
|
-
__decorate([
|
2033
|
-
(0, runtime_1.Get)("/multi_community/list"),
|
2034
|
-
__param(0, (0, runtime_1.Queries)()),
|
2035
|
-
__param(1, (0, runtime_1.Inject)())
|
2036
|
-
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2037
|
-
__decorate([
|
2038
|
-
(0, runtime_1.Post)("/multi_community/follow"),
|
2039
|
-
__param(0, (0, runtime_1.Body)()),
|
2040
|
-
__param(1, (0, runtime_1.Inject)())
|
2041
|
-
], LemmyHttp.prototype, "followMultiCommunity", null);
|
2007
|
+
], LemmyHttp.prototype, "donation_dialog_shown", null);
|
2042
2008
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
2043
2009
|
(0, runtime_1.Route)("api/v4")
|
2044
2010
|
], LemmyHttp);
|
package/dist/index.d.ts
CHANGED
@@ -76,9 +76,7 @@ export { CreateCommunity } from "./types/CreateCommunity";
|
|
76
76
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
77
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
78
78
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
79
|
-
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
80
79
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
81
|
-
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
82
80
|
export { CreatePost } from "./types/CreatePost";
|
83
81
|
export { CreatePostLike } from "./types/CreatePostLike";
|
84
82
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -116,7 +114,6 @@ export { FederationBlockList } from "./types/FederationBlockList";
|
|
116
114
|
export { FederationError } from "./types/FederationError";
|
117
115
|
export { FederationMode } from "./types/FederationMode";
|
118
116
|
export { FollowCommunity } from "./types/FollowCommunity";
|
119
|
-
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
120
117
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
121
118
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
122
119
|
export { GetComment } from "./types/GetComment";
|
@@ -130,8 +127,6 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
130
127
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
131
128
|
export { GetModlog } from "./types/GetModlog";
|
132
129
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
133
|
-
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
134
|
-
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
135
130
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
136
131
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
137
132
|
export { GetPost } from "./types/GetPost";
|
@@ -176,8 +171,6 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
|
|
176
171
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
177
172
|
export { ListMedia } from "./types/ListMedia";
|
178
173
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
179
|
-
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
180
|
-
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
181
174
|
export { ListPersonContent } from "./types/ListPersonContent";
|
182
175
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
183
176
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
@@ -251,10 +244,6 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
251
244
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
252
245
|
export { ModlogActionType } from "./types/ModlogActionType";
|
253
246
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
254
|
-
export { MultiCommunity } from "./types/MultiCommunity";
|
255
|
-
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
256
|
-
export { MultiCommunityId } from "./types/MultiCommunityId";
|
257
|
-
export { MultiCommunityView } from "./types/MultiCommunityView";
|
258
247
|
export { MyUserInfo } from "./types/MyUserInfo";
|
259
248
|
export { NotePerson } from "./types/NotePerson";
|
260
249
|
export { OAuthAccount } from "./types/OAuthAccount";
|
@@ -345,12 +334,12 @@ export { TaglineResponse } from "./types/TaglineResponse";
|
|
345
334
|
export { TagsView } from "./types/TagsView";
|
346
335
|
export { TransferCommunity } from "./types/TransferCommunity";
|
347
336
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
348
|
-
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
349
337
|
export { UpdateTagline } from "./types/UpdateTagline";
|
350
338
|
export { UpdateTotp } from "./types/UpdateTotp";
|
351
339
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
352
340
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
353
|
-
export {
|
341
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
342
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
354
343
|
export { VerifyEmail } from "./types/VerifyEmail";
|
355
344
|
export { VoteShow } from "./types/VoteShow";
|
356
345
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -6,7 +6,6 @@ import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
7
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
8
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
-
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
10
9
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
11
10
|
import { GetPost } from "./types/GetPost";
|
12
11
|
import { GetPosts } from "./types/GetPosts";
|
@@ -20,7 +19,6 @@ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
20
19
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
21
20
|
import { ListInbox } from "./types/ListInbox";
|
22
21
|
import { ListMedia } from "./types/ListMedia";
|
23
|
-
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
24
22
|
import { ListPersonContent } from "./types/ListPersonContent";
|
25
23
|
import { ListPersonHidden } from "./types/ListPersonHidden";
|
26
24
|
import { ListPersonLiked } from "./types/ListPersonLiked";
|
@@ -100,7 +98,3 @@ export interface AdminListUsersI extends AdminListUsers {
|
|
100
98
|
}
|
101
99
|
export interface CommunityIdQueryI extends CommunityIdQuery {
|
102
100
|
}
|
103
|
-
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
-
}
|
105
|
-
export interface GetMultiCommunityI extends GetMultiCommunity {
|
106
|
-
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
|
+
import type { CommunityActions } from "./CommunityActions";
|
3
4
|
import type { InstanceActions } from "./InstanceActions";
|
4
5
|
import type { Person } from "./Person";
|
5
6
|
import type { PersonActions } from "./PersonActions";
|
@@ -11,10 +12,12 @@ export type CommentSlimView = {
|
|
11
12
|
creator: Person;
|
12
13
|
comment_actions?: CommentActions;
|
13
14
|
person_actions?: PersonActions;
|
14
|
-
|
15
|
+
creator_community_actions?: CommunityActions;
|
16
|
+
instance_communities_actions?: InstanceActions;
|
17
|
+
instance_persons_actions?: InstanceActions;
|
18
|
+
creator_home_instance_actions?: InstanceActions;
|
19
|
+
creator_local_instance_actions?: InstanceActions;
|
15
20
|
creator_is_admin: boolean;
|
16
21
|
can_mod: boolean;
|
17
22
|
creator_banned: boolean;
|
18
|
-
creator_is_moderator: boolean;
|
19
|
-
creator_banned_from_community: boolean;
|
20
23
|
};
|
@@ -18,11 +18,13 @@ export type CommentView = {
|
|
18
18
|
community_actions?: CommunityActions;
|
19
19
|
comment_actions?: CommentActions;
|
20
20
|
person_actions?: PersonActions;
|
21
|
-
|
21
|
+
instance_communities_actions?: InstanceActions;
|
22
|
+
instance_persons_actions?: InstanceActions;
|
23
|
+
creator_home_instance_actions?: InstanceActions;
|
24
|
+
creator_local_instance_actions?: InstanceActions;
|
25
|
+
creator_community_actions?: CommunityActions;
|
22
26
|
creator_is_admin: boolean;
|
23
27
|
post_tags: TagsView;
|
24
28
|
can_mod: boolean;
|
25
29
|
creator_banned: boolean;
|
26
|
-
creator_is_moderator: boolean;
|
27
|
-
creator_banned_from_community: boolean;
|
28
30
|
};
|
@@ -2,7 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { LanguageId } from "./LanguageId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
6
5
|
import type { PostListingMode } from "./PostListingMode";
|
7
6
|
import type { PostSortType } from "./PostSortType";
|
8
7
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -52,5 +51,4 @@ export type CreateSite = {
|
|
52
51
|
comment_downvotes?: FederationMode;
|
53
52
|
disallow_nsfw_content?: boolean;
|
54
53
|
disable_email_notifications?: boolean;
|
55
|
-
suggested_communities?: MultiCommunityId;
|
56
54
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -2,7 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { LanguageId } from "./LanguageId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
6
5
|
import type { PostListingMode } from "./PostListingMode";
|
7
6
|
import type { PostSortType } from "./PostSortType";
|
8
7
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -163,8 +162,4 @@ export type EditSite = {
|
|
163
162
|
* Dont send email notifications to users for new replies, mentions etc
|
164
163
|
*/
|
165
164
|
disable_email_notifications?: boolean;
|
166
|
-
/**
|
167
|
-
* A multicommunity with suggested communities which is shown on the homepage
|
168
|
-
*/
|
169
|
-
suggested_communities?: MultiCommunityId;
|
170
165
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
4
3
|
import type { PaginationCursor } from "./PaginationCursor";
|
5
4
|
import type { PostSortType } from "./PostSortType";
|
6
5
|
/**
|
@@ -17,7 +16,6 @@ export type GetPosts = {
|
|
17
16
|
time_range_seconds?: number;
|
18
17
|
community_id?: CommunityId;
|
19
18
|
community_name?: string;
|
20
|
-
multi_community_id?: MultiCommunityId;
|
21
19
|
show_hidden?: boolean;
|
22
20
|
/**
|
23
21
|
* If true, then show the read posts (even if your user setting is to hide them)
|
@@ -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
|
};
|
@@ -242,7 +242,9 @@ export type LemmyErrorType = {
|
|
242
242
|
} | {
|
243
243
|
error: "contradicting_filters";
|
244
244
|
} | {
|
245
|
-
error: "
|
245
|
+
error: "instance_block_communities_already_exists";
|
246
|
+
} | {
|
247
|
+
error: "instance_block_persons_already_exists";
|
246
248
|
} | {
|
247
249
|
error: "too_many_items";
|
248
250
|
} | {
|
@@ -358,10 +360,4 @@ export type LemmyErrorType = {
|
|
358
360
|
error: "couldnt_create_email_verification";
|
359
361
|
} | {
|
360
362
|
error: "email_notifications_disabled";
|
361
|
-
} | {
|
362
|
-
error: "multi_community_update_wrong_user";
|
363
|
-
} | {
|
364
|
-
error: "cannot_combine_community_id_and_multi_community_id";
|
365
|
-
} | {
|
366
|
-
error: "multi_community_entry_limit_reached";
|
367
363
|
};
|
@@ -2,8 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { ListingType } from "./ListingType";
|
4
4
|
import type { LocalSiteId } from "./LocalSiteId";
|
5
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
6
|
-
import type { PersonId } from "./PersonId";
|
7
5
|
import type { PostListingMode } from "./PostListingMode";
|
8
6
|
import type { PostSortType } from "./PostSortType";
|
9
7
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -143,6 +141,4 @@ export type LocalSite = {
|
|
143
141
|
* Dont send email notifications to users for new replies, mentions etc
|
144
142
|
*/
|
145
143
|
disable_email_notifications: boolean;
|
146
|
-
suggested_communities?: MultiCommunityId;
|
147
|
-
multi_comm_follower: PersonId;
|
148
144
|
};
|
@@ -13,7 +13,8 @@ export type MyUserInfo = {
|
|
13
13
|
follows: Array<CommunityFollowerView>;
|
14
14
|
moderates: Array<CommunityModeratorView>;
|
15
15
|
community_blocks: Array<Community>;
|
16
|
-
|
16
|
+
instance_communities_blocks: Array<Instance>;
|
17
|
+
instance_persons_blocks: Array<Instance>;
|
17
18
|
person_blocks: Array<Person>;
|
18
19
|
keyword_blocks: Array<string>;
|
19
20
|
discussion_languages: Array<LanguageId>;
|
package/dist/types/PostView.d.ts
CHANGED
@@ -18,11 +18,13 @@ export type PostView = {
|
|
18
18
|
community_actions?: CommunityActions;
|
19
19
|
person_actions?: PersonActions;
|
20
20
|
post_actions?: PostActions;
|
21
|
-
|
21
|
+
instance_communities_actions?: InstanceActions;
|
22
|
+
instance_persons_actions?: InstanceActions;
|
23
|
+
creator_home_instance_actions?: InstanceActions;
|
24
|
+
creator_local_instance_actions?: InstanceActions;
|
25
|
+
creator_community_actions?: CommunityActions;
|
22
26
|
creator_is_admin: boolean;
|
23
27
|
tags: TagsView;
|
24
28
|
can_mod: boolean;
|
25
29
|
creator_banned: boolean;
|
26
|
-
creator_is_moderator: boolean;
|
27
|
-
creator_banned_from_community: boolean;
|
28
30
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { CommentView } from "./CommentView";
|
2
2
|
import type { CommunityView } from "./CommunityView";
|
3
|
-
import type { MultiCommunityView } from "./MultiCommunityView";
|
4
3
|
import type { PersonView } from "./PersonView";
|
5
4
|
import type { PostView } from "./PostView";
|
6
5
|
export type SearchCombinedView = ({
|
@@ -11,6 +10,4 @@ export type SearchCombinedView = ({
|
|
11
10
|
type_: "Community";
|
12
11
|
} & CommunityView) | ({
|
13
12
|
type_: "Person";
|
14
|
-
} & PersonView)
|
15
|
-
type_: "MultiCommunity";
|
16
|
-
} & MultiCommunityView);
|
13
|
+
} & PersonView);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { InstanceId } from "./InstanceId";
|
2
2
|
/**
|
3
|
-
* Block an instance
|
3
|
+
* Block an instance's persons.
|
4
4
|
*/
|
5
|
-
export type
|
5
|
+
export type UserBlockInstancePersonsParams = {
|
6
6
|
instance_id: InstanceId;
|
7
7
|
block: boolean;
|
8
8
|
};
|
package/package.json
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { DbUrl } from "./DbUrl";
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
3
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
4
|
-
import type { PersonId } from "./PersonId";
|
5
|
-
export type MultiCommunity = {
|
6
|
-
id: MultiCommunityId;
|
7
|
-
creator_id: PersonId;
|
8
|
-
instance_id: InstanceId;
|
9
|
-
name: string;
|
10
|
-
title?: string;
|
11
|
-
description?: string;
|
12
|
-
local: boolean;
|
13
|
-
deleted: boolean;
|
14
|
-
ap_id: DbUrl;
|
15
|
-
published_at: string;
|
16
|
-
updated_at?: string;
|
17
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
-
import type { MultiCommunityId } from "./MultiCommunityId";
|
3
|
-
import type { PersonId } from "./PersonId";
|
4
|
-
export type MultiCommunityFollow = {
|
5
|
-
multi_community_id: MultiCommunityId;
|
6
|
-
person_id: PersonId;
|
7
|
-
follow_state: CommunityFollowerState;
|
8
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export type MultiCommunityId = number;
|
/package/dist/types/{CreateOrDeleteMultiCommunityEntry.js → UserBlockInstanceCommunitiesParams.js}
RENAMED
File without changes
|
File without changes
|