lemmy-js-client 1.0.0-api-updates-4.1 → 1.0.0-api-updates-6.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 +43 -46
- package/dist/http.js +25 -25
- package/dist/index.d.ts +8 -79
- package/dist/index.js +3 -0
- package/dist/types/AdminListUsers.d.ts +0 -1
- package/dist/types/GetComments.d.ts +0 -1
- package/dist/types/GetFederatedInstances.d.ts +0 -1
- package/dist/types/GetModlog.d.ts +2 -3
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +1 -1
- package/dist/types/GetSiteResponse.d.ts +6 -0
- package/dist/types/ListCommentLikes.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +0 -1
- package/dist/types/ListMedia.d.ts +0 -1
- package/dist/types/ListMultiCommunities.d.ts +12 -1
- package/dist/types/ListNotifications.d.ts +0 -1
- package/dist/types/ListPersonContent.d.ts +0 -1
- package/dist/types/ListPersonHidden.d.ts +0 -1
- package/dist/types/ListPersonLiked.d.ts +0 -1
- package/dist/types/ListPersonRead.d.ts +0 -1
- package/dist/types/ListPersonSaved.d.ts +0 -1
- package/dist/types/ListPostLikes.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListReports.d.ts +0 -1
- package/dist/types/ListTaglines.d.ts +0 -1
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +3 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MyUserInfo.d.ts +2 -0
- package/dist/types/Notification.d.ts +2 -20
- package/dist/types/NotificationData.d.ts +3 -30
- package/dist/types/NotificationDataType.d.ts +1 -1
- package/dist/types/PagedResponse.d.ts +11 -0
- package/dist/types/PaginationCursor.d.ts +5 -1
- package/dist/types/PluginMetadata.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -0
- package/dist/types/Search.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +11 -1
- package/package.json +4 -4
- package/dist/types/AdminAdd.d.ts +0 -12
- package/dist/types/AdminAddId.d.ts +0 -1
- package/dist/types/AdminAddView.d.ts +0 -10
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminAllowInstanceView.js +0 -2
- package/dist/types/AdminBan.d.ts +0 -16
- package/dist/types/AdminBan.js +0 -2
- package/dist/types/AdminBanId.d.ts +0 -1
- package/dist/types/AdminBanView.d.ts +0 -10
- package/dist/types/AdminBanView.js +0 -2
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstance.js +0 -2
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstanceView.js +0 -2
- package/dist/types/AdminListUsersResponse.d.ts +0 -10
- package/dist/types/AdminListUsersResponse.js +0 -2
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeComment.js +0 -2
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentId.js +0 -3
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommentView.js +0 -2
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.js +0 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityId.js +0 -3
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgeCommunityView.js +0 -2
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePerson.js +0 -2
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonId.js +0 -3
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePersonView.js +0 -2
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePost.js +0 -2
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostId.js +0 -3
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/AdminPurgePostView.js +0 -2
- package/dist/types/AdminRemoveCommunity.d.ts +0 -14
- package/dist/types/AdminRemoveCommunity.js +0 -2
- package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
- package/dist/types/AdminRemoveCommunityId.js +0 -3
- package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
- package/dist/types/AdminRemoveCommunityView.js +0 -2
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanFromCommunityResponse.js +0 -2
- package/dist/types/GetCommentsResponse.d.ts +0 -10
- package/dist/types/GetCommentsResponse.js +0 -2
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
- package/dist/types/GetCommentsSlimResponse.js +0 -2
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetFederatedInstancesResponse.js +0 -2
- package/dist/types/GetModlogResponse.d.ts +0 -13
- package/dist/types/GetModlogResponse.js +0 -2
- package/dist/types/GetPostsResponse.d.ts +0 -13
- package/dist/types/GetPostsResponse.js +0 -2
- package/dist/types/ListCommentLikesResponse.d.ts +0 -13
- package/dist/types/ListCommentLikesResponse.js +0 -2
- package/dist/types/ListCommunitiesResponse.d.ts +0 -13
- package/dist/types/ListCommunitiesResponse.js +0 -2
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
- package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
- package/dist/types/ListMediaResponse.d.ts +0 -10
- package/dist/types/ListMediaResponse.js +0 -2
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListMultiCommunitiesResponse.js +0 -2
- package/dist/types/ListNotificationsResponse.d.ts +0 -13
- package/dist/types/ListNotificationsResponse.js +0 -2
- package/dist/types/ListPersonContentResponse.d.ts +0 -13
- package/dist/types/ListPersonContentResponse.js +0 -2
- package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
- package/dist/types/ListPersonHiddenResponse.js +0 -2
- package/dist/types/ListPersonLikedResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.js +0 -2
- package/dist/types/ListPersonReadResponse.d.ts +0 -13
- package/dist/types/ListPersonReadResponse.js +0 -2
- package/dist/types/ListPersonSavedResponse.d.ts +0 -13
- package/dist/types/ListPersonSavedResponse.js +0 -2
- package/dist/types/ListPostLikesResponse.d.ts +0 -13
- package/dist/types/ListPostLikesResponse.js +0 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
- package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
- package/dist/types/ListReportsResponse.d.ts +0 -13
- package/dist/types/ListReportsResponse.js +0 -2
- package/dist/types/ListTaglinesResponse.d.ts +0 -13
- package/dist/types/ListTaglinesResponse.js +0 -2
- package/dist/types/ModAddToCommunity.d.ts +0 -14
- package/dist/types/ModAddToCommunity.js +0 -2
- package/dist/types/ModAddToCommunityId.d.ts +0 -1
- package/dist/types/ModAddToCommunityId.js +0 -3
- package/dist/types/ModAddToCommunityView.d.ts +0 -12
- package/dist/types/ModAddToCommunityView.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockComment.d.ts +0 -14
- package/dist/types/ModLockComment.js +0 -2
- package/dist/types/ModLockCommentId.d.ts +0 -1
- package/dist/types/ModLockCommentId.js +0 -3
- package/dist/types/ModLockCommentView.d.ts +0 -16
- package/dist/types/ModLockCommentView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -55
- package/dist/types/ModlogCombinedView.js +0 -2
- /package/dist/types/{AdminAdd.js → Modlog.js} +0 -0
- /package/dist/types/{AdminAddId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminAddView.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminBanId.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{AdminAllowInstance.js → PagedResponse.js} +0 -0
package/dist/http.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { AddModToCommunity } from "./types/AddModToCommunity";
|
|
|
6
6
|
import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|
7
7
|
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
8
8
|
import { BanFromCommunity } from "./types/BanFromCommunity";
|
|
9
|
-
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
9
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
11
10
|
import { BanPerson } from "./types/BanPerson";
|
|
12
11
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
@@ -52,20 +51,14 @@ import { OAuthProvider } from "./types/OAuthProvider";
|
|
|
52
51
|
import { FeaturePost } from "./types/FeaturePost";
|
|
53
52
|
import { FollowCommunity } from "./types/FollowCommunity";
|
|
54
53
|
import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
55
|
-
import { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
56
54
|
import { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
57
|
-
import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
|
58
|
-
import { GetModlogResponse } from "./types/GetModlogResponse";
|
|
59
55
|
import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
|
60
56
|
import { GetPostResponse } from "./types/GetPostResponse";
|
|
61
|
-
import { GetPostsResponse } from "./types/GetPostsResponse";
|
|
62
57
|
import { GetReportCountResponse } from "./types/GetReportCountResponse";
|
|
63
58
|
import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
|
64
59
|
import { GetSiteResponse } from "./types/GetSiteResponse";
|
|
65
60
|
import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|
66
61
|
import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
|
67
|
-
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
68
|
-
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
69
62
|
import { LockPost } from "./types/LockPost";
|
|
70
63
|
import { LockComment } from "./types/LockComment";
|
|
71
64
|
import { Login } from "./types/Login";
|
|
@@ -102,52 +95,56 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
|
102
95
|
import { UpdateTotp } from "./types/UpdateTotp";
|
|
103
96
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
104
97
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
105
|
-
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
106
|
-
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
107
98
|
import { HidePost } from "./types/HidePost";
|
|
108
|
-
import { ListMediaResponse } from "./types/ListMediaResponse";
|
|
109
99
|
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
110
100
|
import { CreateTagline } from "./types/CreateTagline";
|
|
111
101
|
import { TaglineResponse } from "./types/TaglineResponse";
|
|
112
102
|
import { UpdateTagline } from "./types/UpdateTagline";
|
|
113
103
|
import { DeleteTagline } from "./types/DeleteTagline";
|
|
114
|
-
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
115
104
|
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
116
105
|
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
117
106
|
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
118
|
-
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
119
|
-
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
120
107
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
121
108
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
122
109
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
123
|
-
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
124
|
-
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
125
110
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
|
126
|
-
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
127
111
|
import { Tag } from "./types/Tag";
|
|
128
112
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
129
|
-
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
130
|
-
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
131
113
|
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
132
114
|
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
133
115
|
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
134
|
-
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
135
|
-
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
136
116
|
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
137
117
|
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
138
118
|
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
139
119
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
140
|
-
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
141
120
|
import { NotePerson } from "./types/NotePerson";
|
|
142
121
|
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
143
122
|
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
144
123
|
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
145
|
-
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
146
124
|
import { ModEditPost } from "./types/ModEditPost";
|
|
147
125
|
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
148
126
|
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
149
127
|
import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
150
128
|
import { PersonResponse } from "./types/PersonResponse";
|
|
129
|
+
import { LocalImageView } from "./types/LocalImageView";
|
|
130
|
+
import { PagedResponse } from "./types/PagedResponse";
|
|
131
|
+
import { ModlogView } from "./types/ModlogView";
|
|
132
|
+
import { CommunityView } from "./types/CommunityView";
|
|
133
|
+
import { PendingFollowerView } from "./types/PendingFollowerView";
|
|
134
|
+
import { PostView } from "./types/PostView";
|
|
135
|
+
import { VoteView } from "./types/VoteView";
|
|
136
|
+
import { CommentView } from "./types/CommentView";
|
|
137
|
+
import { CommentSlimView } from "./types/CommentSlimView";
|
|
138
|
+
import { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
|
139
|
+
import { LocalUserView } from "./types/LocalUserView";
|
|
140
|
+
import { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
|
141
|
+
import { NotificationView } from "./types/NotificationView";
|
|
142
|
+
import { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
|
143
|
+
import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
|
144
|
+
import { Tagline } from "./types/Tagline";
|
|
145
|
+
import { ReportCombinedView } from "./types/ReportCombinedView";
|
|
146
|
+
import { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
147
|
+
import { MultiCommunityView } from "./types/MultiCommunityView";
|
|
151
148
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
152
149
|
/**
|
|
153
150
|
* Helps build lemmy HTTP requests.
|
|
@@ -214,7 +211,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
214
211
|
/**
|
|
215
212
|
* @summary List all the media for your account.
|
|
216
213
|
*/
|
|
217
|
-
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<
|
|
214
|
+
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
218
215
|
/**
|
|
219
216
|
* @summary Delete media for your account.
|
|
220
217
|
*/
|
|
@@ -226,7 +223,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
226
223
|
/**
|
|
227
224
|
* @summary List all the media known to your instance.
|
|
228
225
|
*/
|
|
229
|
-
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<
|
|
226
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
230
227
|
/**
|
|
231
228
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
|
232
229
|
*
|
|
@@ -238,7 +235,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
238
235
|
/**
|
|
239
236
|
* @summary Get the modlog.
|
|
240
237
|
*/
|
|
241
|
-
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<
|
|
238
|
+
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
|
|
242
239
|
/**
|
|
243
240
|
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
244
241
|
*/
|
|
@@ -262,7 +259,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
262
259
|
/**
|
|
263
260
|
* @summary List communities, with various filters.
|
|
264
261
|
*/
|
|
265
|
-
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<
|
|
262
|
+
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
|
|
266
263
|
/**
|
|
267
264
|
* @summary Follow / subscribe to a community.
|
|
268
265
|
*/
|
|
@@ -274,7 +271,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
274
271
|
/**
|
|
275
272
|
* @summary Get a community's pending followers.
|
|
276
273
|
*/
|
|
277
|
-
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<
|
|
274
|
+
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
|
|
278
275
|
/**
|
|
279
276
|
* @summary Approve a community pending follow request.
|
|
280
277
|
*/
|
|
@@ -302,7 +299,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
302
299
|
/**
|
|
303
300
|
* @summary Ban a user from a community.
|
|
304
301
|
*/
|
|
305
|
-
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<
|
|
302
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
|
|
306
303
|
/**
|
|
307
304
|
* @summary Add a moderator to your community.
|
|
308
305
|
*/
|
|
@@ -366,7 +363,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
366
363
|
/**
|
|
367
364
|
* @summary Get / fetch posts, with various filters.
|
|
368
365
|
*/
|
|
369
|
-
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<
|
|
366
|
+
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
370
367
|
/**
|
|
371
368
|
* @summary Like / vote on a post.
|
|
372
369
|
*/
|
|
@@ -374,7 +371,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
374
371
|
/**
|
|
375
372
|
* @summary List a post's likes. Admin-only.
|
|
376
373
|
*/
|
|
377
|
-
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<
|
|
374
|
+
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
378
375
|
/**
|
|
379
376
|
* @summary Save a post.
|
|
380
377
|
*/
|
|
@@ -418,7 +415,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
418
415
|
/**
|
|
419
416
|
* @summary List a comment's likes. Admin-only.
|
|
420
417
|
*/
|
|
421
|
-
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<
|
|
418
|
+
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
422
419
|
/**
|
|
423
420
|
* @summary Save a comment.
|
|
424
421
|
*/
|
|
@@ -430,11 +427,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
430
427
|
/**
|
|
431
428
|
* @summary Get / fetch comments.
|
|
432
429
|
*/
|
|
433
|
-
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
430
|
+
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
|
|
434
431
|
/**
|
|
435
432
|
* @summary Get / fetch comments, but without the post or community.
|
|
436
433
|
*/
|
|
437
|
-
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
434
|
+
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
|
|
438
435
|
/**
|
|
439
436
|
* @summary Get / fetch comment.
|
|
440
437
|
*/
|
|
@@ -486,7 +483,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
486
483
|
/**
|
|
487
484
|
* @summary List the content for a person.
|
|
488
485
|
*/
|
|
489
|
-
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<
|
|
486
|
+
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PersonContentCombinedView>>;
|
|
490
487
|
/**
|
|
491
488
|
* @summary Make a note for a person.
|
|
492
489
|
*/
|
|
@@ -498,7 +495,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
498
495
|
/**
|
|
499
496
|
* @summary Get a list of users.
|
|
500
497
|
*/
|
|
501
|
-
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<
|
|
498
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
|
|
502
499
|
/**
|
|
503
500
|
* @summary Block a person.
|
|
504
501
|
*/
|
|
@@ -520,7 +517,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
520
517
|
*/
|
|
521
518
|
passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
|
|
522
519
|
/**
|
|
523
|
-
* @summary Mark all
|
|
520
|
+
* @summary Mark all notifications as read.
|
|
524
521
|
*/
|
|
525
522
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
526
523
|
/**
|
|
@@ -546,7 +543,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
546
543
|
/**
|
|
547
544
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
548
545
|
*/
|
|
549
|
-
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<
|
|
546
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
|
|
550
547
|
/**
|
|
551
548
|
* @summary Verify your email
|
|
552
549
|
*/
|
|
@@ -558,19 +555,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
558
555
|
/**
|
|
559
556
|
* @summary List your saved content.
|
|
560
557
|
*/
|
|
561
|
-
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<
|
|
558
|
+
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PersonSavedCombinedView>>;
|
|
562
559
|
/**
|
|
563
560
|
* @summary List your read content.
|
|
564
561
|
*/
|
|
565
|
-
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<
|
|
562
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
|
|
566
563
|
/**
|
|
567
564
|
* @summary List your hidden content.
|
|
568
565
|
*/
|
|
569
|
-
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<
|
|
566
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
570
567
|
/**
|
|
571
568
|
* @summary List your liked content.
|
|
572
569
|
*/
|
|
573
|
-
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<
|
|
570
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PersonLikedCombinedView>>;
|
|
574
571
|
/**
|
|
575
572
|
* @summary Add an admin to your site.
|
|
576
573
|
*/
|
|
@@ -582,7 +579,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
582
579
|
/**
|
|
583
580
|
* @summary List the registration applications.
|
|
584
581
|
*/
|
|
585
|
-
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<
|
|
582
|
+
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
|
|
586
583
|
/**
|
|
587
584
|
* @summary Approve a registration application
|
|
588
585
|
*/
|
|
@@ -638,7 +635,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
638
635
|
/**
|
|
639
636
|
* @summary List taglines.
|
|
640
637
|
*/
|
|
641
|
-
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<
|
|
638
|
+
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
|
|
642
639
|
/**
|
|
643
640
|
* @summary Create a community post tag.
|
|
644
641
|
*/
|
|
@@ -670,11 +667,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
670
667
|
/**
|
|
671
668
|
* @summary Fetch federated instances.
|
|
672
669
|
*/
|
|
673
|
-
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<
|
|
670
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
|
|
674
671
|
/**
|
|
675
672
|
* @summary List user reports.
|
|
676
673
|
*/
|
|
677
|
-
listReports(form: ListReportsI, options?: RequestOptions): Promise<
|
|
674
|
+
listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
|
|
678
675
|
/**
|
|
679
676
|
* @summary Block an instance's communities as a user.
|
|
680
677
|
*/
|
|
@@ -756,7 +753,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
756
753
|
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
757
754
|
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
|
|
758
755
|
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
759
|
-
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<
|
|
756
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
|
|
760
757
|
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
761
758
|
/**
|
|
762
759
|
* @summary Change notification settings for a community
|
package/dist/http.js
CHANGED
|
@@ -112,7 +112,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
112
112
|
* @summary List login tokens for your user
|
|
113
113
|
*/
|
|
114
114
|
async listLogins(options) {
|
|
115
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
115
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/login/list", {}, options);
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
|
@@ -230,7 +230,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
230
230
|
* @summary Delete a community.
|
|
231
231
|
*/
|
|
232
232
|
async deleteCommunity(form, options) {
|
|
233
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
233
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community", form, options);
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
|
@@ -308,7 +308,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
308
308
|
* @summary Delete a post.
|
|
309
309
|
*/
|
|
310
310
|
async deletePost(form, options) {
|
|
311
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
311
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/post", form, options);
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* @summary A moderator remove for a post.
|
|
@@ -404,7 +404,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
404
404
|
* @summary Delete a comment.
|
|
405
405
|
*/
|
|
406
406
|
async deleteComment(form, options) {
|
|
407
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
407
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/comment", form, options);
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* @summary A moderator remove for a comment.
|
|
@@ -488,7 +488,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
488
488
|
* @summary Delete a private message.
|
|
489
489
|
*/
|
|
490
490
|
async deletePrivateMessage(form, options) {
|
|
491
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
491
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/private_message", form, options);
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* @summary Create a report for a private message.
|
|
@@ -566,7 +566,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
566
566
|
* @summary Delete your account.
|
|
567
567
|
*/
|
|
568
568
|
async deleteAccount(form, options) {
|
|
569
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
569
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account", form, options);
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* @summary Reset your password.
|
|
@@ -581,16 +581,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
581
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
|
582
582
|
}
|
|
583
583
|
/**
|
|
584
|
-
* @summary Mark all
|
|
584
|
+
* @summary Mark all notifications as read.
|
|
585
585
|
*/
|
|
586
586
|
async markAllNotificationsAsRead(options) {
|
|
587
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
|
587
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read/all", {}, options);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* @summary Mark a notification as read.
|
|
591
591
|
*/
|
|
592
592
|
async markNotificationAsRead(form, options) {
|
|
593
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
|
|
593
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read", form, options);
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
596
596
|
* @summary Save your user settings.
|
|
@@ -614,13 +614,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
614
614
|
* @summary Get your unread counts.
|
|
615
615
|
*/
|
|
616
616
|
async getUnreadCount(options) {
|
|
617
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
617
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/count", {}, options);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
621
621
|
*/
|
|
622
622
|
async listNotifications(form, options) {
|
|
623
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
623
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @summary Verify your email
|
|
@@ -752,7 +752,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
752
752
|
* @summary Delete a tagline
|
|
753
753
|
*/
|
|
754
754
|
async deleteTagline(form, options) {
|
|
755
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
755
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
758
758
|
* @summary List taglines.
|
|
@@ -794,7 +794,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
794
794
|
* @summary Delete an oauth provider method
|
|
795
795
|
*/
|
|
796
796
|
async deleteOAuthProvider(form, options) {
|
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
797
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
800
800
|
* @summary Authenticate with OAuth
|
|
@@ -1080,7 +1080,7 @@ __decorate([
|
|
|
1080
1080
|
], LemmyHttp.prototype, "importSettings", null);
|
|
1081
1081
|
__decorate([
|
|
1082
1082
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1083
|
-
(0, runtime_1.Get)("/account/
|
|
1083
|
+
(0, runtime_1.Get)("/account/login/list"),
|
|
1084
1084
|
(0, runtime_1.Tags)("Account"),
|
|
1085
1085
|
__param(0, (0, runtime_1.Inject)())
|
|
1086
1086
|
], LemmyHttp.prototype, "listLogins", null);
|
|
@@ -1216,7 +1216,7 @@ __decorate([
|
|
|
1216
1216
|
], LemmyHttp.prototype, "blockCommunity", null);
|
|
1217
1217
|
__decorate([
|
|
1218
1218
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1219
|
-
(0, runtime_1.
|
|
1219
|
+
(0, runtime_1.Delete)("/community"),
|
|
1220
1220
|
(0, runtime_1.Tags)("Community"),
|
|
1221
1221
|
__param(0, (0, runtime_1.Body)()),
|
|
1222
1222
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1309,7 +1309,7 @@ __decorate([
|
|
|
1309
1309
|
], LemmyHttp.prototype, "modEditPost", null);
|
|
1310
1310
|
__decorate([
|
|
1311
1311
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1312
|
-
(0, runtime_1.
|
|
1312
|
+
(0, runtime_1.Delete)("/post"),
|
|
1313
1313
|
(0, runtime_1.Tags)("Post"),
|
|
1314
1314
|
__param(0, (0, runtime_1.Body)()),
|
|
1315
1315
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1422,7 +1422,7 @@ __decorate([
|
|
|
1422
1422
|
], LemmyHttp.prototype, "editComment", null);
|
|
1423
1423
|
__decorate([
|
|
1424
1424
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1425
|
-
(0, runtime_1.
|
|
1425
|
+
(0, runtime_1.Delete)("/comment"),
|
|
1426
1426
|
(0, runtime_1.Tags)("Comment"),
|
|
1427
1427
|
__param(0, (0, runtime_1.Body)()),
|
|
1428
1428
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1523,7 +1523,7 @@ __decorate([
|
|
|
1523
1523
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
|
1524
1524
|
__decorate([
|
|
1525
1525
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1526
|
-
(0, runtime_1.
|
|
1526
|
+
(0, runtime_1.Delete)("/private_message"),
|
|
1527
1527
|
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1528
1528
|
__param(0, (0, runtime_1.Body)()),
|
|
1529
1529
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1611,7 +1611,7 @@ __decorate([
|
|
|
1611
1611
|
], LemmyHttp.prototype, "getCaptcha", null);
|
|
1612
1612
|
__decorate([
|
|
1613
1613
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1614
|
-
(0, runtime_1.
|
|
1614
|
+
(0, runtime_1.Delete)("/account"),
|
|
1615
1615
|
(0, runtime_1.Tags)("Account"),
|
|
1616
1616
|
__param(0, (0, runtime_1.Body)()),
|
|
1617
1617
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1632,13 +1632,13 @@ __decorate([
|
|
|
1632
1632
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
|
1633
1633
|
__decorate([
|
|
1634
1634
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1635
|
-
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
|
1635
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read/all"),
|
|
1636
1636
|
(0, runtime_1.Tags)("Account"),
|
|
1637
1637
|
__param(0, (0, runtime_1.Inject)())
|
|
1638
1638
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
|
1639
1639
|
__decorate([
|
|
1640
1640
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1641
|
-
(0, runtime_1.Post)("/account/mark_as_read"),
|
|
1641
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read"),
|
|
1642
1642
|
(0, runtime_1.Tags)("Account"),
|
|
1643
1643
|
__param(0, (0, runtime_1.Body)()),
|
|
1644
1644
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1666,13 +1666,13 @@ __decorate([
|
|
|
1666
1666
|
], LemmyHttp.prototype, "getReportCount", null);
|
|
1667
1667
|
__decorate([
|
|
1668
1668
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1669
|
-
(0, runtime_1.Get)("/account/
|
|
1669
|
+
(0, runtime_1.Get)("/account/notification/count"),
|
|
1670
1670
|
(0, runtime_1.Tags)("Account"),
|
|
1671
1671
|
__param(0, (0, runtime_1.Inject)())
|
|
1672
1672
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
|
1673
1673
|
__decorate([
|
|
1674
1674
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1675
|
-
(0, runtime_1.Get)("/account/
|
|
1675
|
+
(0, runtime_1.Get)("/account/notification/list"),
|
|
1676
1676
|
(0, runtime_1.Tags)("Account"),
|
|
1677
1677
|
__param(0, (0, runtime_1.Queries)()),
|
|
1678
1678
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1824,7 +1824,7 @@ __decorate([
|
|
|
1824
1824
|
], LemmyHttp.prototype, "editTagline", null);
|
|
1825
1825
|
__decorate([
|
|
1826
1826
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1827
|
-
(0, runtime_1.
|
|
1827
|
+
(0, runtime_1.Delete)("/admin/tagline"),
|
|
1828
1828
|
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1829
1829
|
__param(0, (0, runtime_1.Body)()),
|
|
1830
1830
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1874,7 +1874,7 @@ __decorate([
|
|
|
1874
1874
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
|
1875
1875
|
__decorate([
|
|
1876
1876
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1877
|
-
(0, runtime_1.
|
|
1877
|
+
(0, runtime_1.Delete)("/oauth_provider"),
|
|
1878
1878
|
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1879
1879
|
__param(0, (0, runtime_1.Body)()),
|
|
1880
1880
|
__param(1, (0, runtime_1.Inject)())
|