lemmy-js-client 1.0.0-remove-page-limit.0 → 1.0.0-rename-timestamp-to-at.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 +50 -20
- package/dist/http.js +243 -158
- package/dist/index.d.ts +12 -2
- package/dist/other_types.d.ts +14 -2
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +2 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +5 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityIdQuery.js +2 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +1 -1
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -4
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/GetComments.d.ts +0 -2
- package/dist/types/GetPosts.d.ts +0 -2
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +3 -7
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +2 -2
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +6 -6
- package/dist/types/LocalSiteRateLimit.d.ts +2 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +3 -2
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +1 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/Post.d.ts +4 -4
- package/dist/types/PostActions.d.ts +5 -9
- package/dist/types/PostActions.js +1 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +2 -1
- package/dist/types/Search.d.ts +4 -0
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +2 -2
- package/dist/types/Tagline.d.ts +2 -2
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +0 -1
- package/package.json +4 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI,
|
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";
|
@@ -10,7 +10,6 @@ import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
10
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
11
11
|
import { BanPerson } from "./types/BanPerson";
|
12
12
|
import { BanPersonResponse } from "./types/BanPersonResponse";
|
13
|
-
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
14
13
|
import { BlockCommunity } from "./types/BlockCommunity";
|
15
14
|
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
16
15
|
import { BlockPerson } from "./types/BlockPerson";
|
@@ -18,11 +17,13 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
18
17
|
import { ChangePassword } from "./types/ChangePassword";
|
19
18
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
20
19
|
import { CommentResponse } from "./types/CommentResponse";
|
20
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
21
21
|
import { CommunityResponse } from "./types/CommunityResponse";
|
22
22
|
import { CreateComment } from "./types/CreateComment";
|
23
23
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
24
24
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
25
25
|
import { CreateCommunity } from "./types/CreateCommunity";
|
26
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
26
27
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
27
28
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
28
29
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
@@ -89,7 +90,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
89
90
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
90
91
|
import { RemovePost } from "./types/RemovePost";
|
91
92
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
92
|
-
import {
|
93
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
93
94
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
94
95
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
95
96
|
import { SaveComment } from "./types/SaveComment";
|
@@ -105,7 +106,6 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
105
106
|
import { UpdateTotp } from "./types/UpdateTotp";
|
106
107
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
107
108
|
import { SuccessResponse } from "./types/SuccessResponse";
|
108
|
-
import { LoginToken } from "./types/LoginToken";
|
109
109
|
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
110
110
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
111
111
|
import { HidePost } from "./types/HidePost";
|
@@ -134,6 +134,12 @@ import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead
|
|
134
134
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
135
135
|
import { Tag } from "./types/Tag";
|
136
136
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
137
|
+
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
138
|
+
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
139
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
140
|
+
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
141
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
142
|
+
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
137
143
|
type RequestOptions = Pick<RequestInit, "signal">;
|
138
144
|
/**
|
139
145
|
* Helps build lemmy HTTP requests.
|
@@ -192,19 +198,27 @@ export declare class LemmyHttp extends Controller {
|
|
192
198
|
/**
|
193
199
|
* @summary List login tokens for your user
|
194
200
|
*/
|
195
|
-
listLogins(options?: RequestOptions): Promise<
|
201
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
196
202
|
/**
|
197
203
|
* @summary Returns an error message if your auth token is invalid
|
198
204
|
*/
|
199
205
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
200
206
|
/**
|
201
|
-
* @summary List all the media for your
|
207
|
+
* @summary List all the media for your account.
|
202
208
|
*/
|
203
209
|
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
210
|
+
/**
|
211
|
+
* @summary Delete media for your account.
|
212
|
+
*/
|
213
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
214
|
+
/**
|
215
|
+
* @summary Delete any media. (Admin only)
|
216
|
+
*/
|
217
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
204
218
|
/**
|
205
219
|
* @summary List all the media known to your instance.
|
206
220
|
*/
|
207
|
-
|
221
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
208
222
|
/**
|
209
223
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
210
224
|
*
|
@@ -218,13 +232,13 @@ export declare class LemmyHttp extends Controller {
|
|
218
232
|
*/
|
219
233
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
220
234
|
/**
|
221
|
-
* @summary Search lemmy.
|
235
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
222
236
|
*/
|
223
237
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
224
238
|
/**
|
225
239
|
* @summary Fetch a non-local / federated object.
|
226
240
|
*/
|
227
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
241
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
228
242
|
/**
|
229
243
|
* @summary Create a new community.
|
230
244
|
*/
|
@@ -289,6 +303,14 @@ export declare class LemmyHttp extends Controller {
|
|
289
303
|
* @summary Get a random community.
|
290
304
|
*/
|
291
305
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
306
|
+
/**
|
307
|
+
* @summary Create a report for a community.
|
308
|
+
*/
|
309
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
310
|
+
/**
|
311
|
+
* @summary Resolve a report for a private message.
|
312
|
+
*/
|
313
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
292
314
|
/**
|
293
315
|
* @summary Create a post.
|
294
316
|
*/
|
@@ -312,7 +334,7 @@ export declare class LemmyHttp extends Controller {
|
|
312
334
|
/**
|
313
335
|
* @summary Mark a post as read.
|
314
336
|
*/
|
315
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
337
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
316
338
|
/**
|
317
339
|
* @summary Mark multiple posts as read.
|
318
340
|
*/
|
@@ -470,9 +492,9 @@ export declare class LemmyHttp extends Controller {
|
|
470
492
|
*/
|
471
493
|
banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
|
472
494
|
/**
|
473
|
-
* @summary Get a list of
|
495
|
+
* @summary Get a list of users.
|
474
496
|
*/
|
475
|
-
|
497
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
|
476
498
|
/**
|
477
499
|
* @summary Block a person.
|
478
500
|
*/
|
@@ -529,6 +551,18 @@ export declare class LemmyHttp extends Controller {
|
|
529
551
|
* @summary List your saved content.
|
530
552
|
*/
|
531
553
|
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
554
|
+
/**
|
555
|
+
* @summary List your read content.
|
556
|
+
*/
|
557
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
|
558
|
+
/**
|
559
|
+
* @summary List your hidden content.
|
560
|
+
*/
|
561
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
562
|
+
/**
|
563
|
+
* @summary List your liked content.
|
564
|
+
*/
|
565
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
532
566
|
/**
|
533
567
|
* @summary Add an admin to your site.
|
534
568
|
*/
|
@@ -664,19 +698,19 @@ export declare class LemmyHttp extends Controller {
|
|
664
698
|
/**
|
665
699
|
* @summary Upload new community icon.
|
666
700
|
*/
|
667
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
701
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
668
702
|
/**
|
669
703
|
* @summary Delete the community icon.
|
670
704
|
*/
|
671
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
705
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
672
706
|
/**
|
673
707
|
* @summary Upload new community banner.
|
674
708
|
*/
|
675
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
709
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
676
710
|
/**
|
677
711
|
* @summary Delete the community banner.
|
678
712
|
*/
|
679
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
713
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
680
714
|
/**
|
681
715
|
* @summary Upload new site icon.
|
682
716
|
*/
|
@@ -697,10 +731,6 @@ export declare class LemmyHttp extends Controller {
|
|
697
731
|
* @summary Upload an image to the server.
|
698
732
|
*/
|
699
733
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
700
|
-
/**
|
701
|
-
* @summary Delete a pictrs image
|
702
|
-
*/
|
703
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
704
734
|
/**
|
705
735
|
* @summary Health check for image functionality
|
706
736
|
*/
|