lemmy-js-client 1.0.0-merge-modlog-tables.8 → 1.0.0-merge-count-endpoints.1

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.
Files changed (97) hide show
  1. package/dist/http.d.ts +44 -54
  2. package/dist/http.js +27 -40
  3. package/dist/index.d.ts +5 -28
  4. package/dist/other_types.d.ts +0 -3
  5. package/dist/types/AdminListUsers.d.ts +0 -1
  6. package/dist/types/CountsResponse.d.ts +6 -0
  7. package/dist/types/GetComments.d.ts +0 -1
  8. package/dist/types/GetFederatedInstances.d.ts +0 -1
  9. package/dist/types/GetModlog.d.ts +0 -1
  10. package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
  11. package/dist/types/GetPosts.d.ts +1 -1
  12. package/dist/types/GetSiteResponse.d.ts +6 -0
  13. package/dist/types/ListCommentLikes.d.ts +0 -1
  14. package/dist/types/ListCommunities.d.ts +0 -1
  15. package/dist/types/ListCommunityPendingFollows.d.ts +0 -1
  16. package/dist/types/ListMedia.d.ts +0 -1
  17. package/dist/types/ListMultiCommunities.d.ts +12 -1
  18. package/dist/types/ListNotifications.d.ts +0 -1
  19. package/dist/types/ListPersonContent.d.ts +0 -1
  20. package/dist/types/ListPersonHidden.d.ts +0 -1
  21. package/dist/types/ListPersonLiked.d.ts +0 -1
  22. package/dist/types/ListPersonRead.d.ts +0 -1
  23. package/dist/types/ListPersonSaved.d.ts +0 -1
  24. package/dist/types/ListPostLikes.d.ts +0 -1
  25. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  26. package/dist/types/ListReports.d.ts +0 -1
  27. package/dist/types/ListTaglines.d.ts +0 -1
  28. package/dist/types/ModlogKind.d.ts +1 -1
  29. package/dist/types/ModlogView.d.ts +6 -6
  30. package/dist/types/MultiCommunity.d.ts +3 -0
  31. package/dist/types/MultiCommunityListingType.d.ts +4 -0
  32. package/dist/types/MultiCommunitySortType.d.ts +1 -0
  33. package/dist/types/MultiCommunitySortType.js +3 -0
  34. package/dist/types/MyUserInfo.d.ts +2 -0
  35. package/dist/types/PagedResponse.d.ts +11 -0
  36. package/dist/types/PaginationCursor.d.ts +5 -1
  37. package/dist/types/PluginMetadata.d.ts +2 -2
  38. package/dist/types/{PersonSavedCombinedView.d.ts → PostCommentCombinedView.d.ts} +1 -1
  39. package/dist/types/RegistrationApplication.d.ts +1 -0
  40. package/dist/types/Search.d.ts +4 -1
  41. package/dist/types/SearchResponse.d.ts +11 -1
  42. package/package.json +4 -4
  43. package/dist/types/AdminListUsersResponse.d.ts +0 -10
  44. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  45. package/dist/types/GetCommentsResponse.d.ts +0 -10
  46. package/dist/types/GetCommentsResponse.js +0 -2
  47. package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
  48. package/dist/types/GetCommentsSlimResponse.js +0 -2
  49. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +0 -3
  50. package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
  51. package/dist/types/GetFederatedInstancesResponse.js +0 -2
  52. package/dist/types/GetModlogResponse.d.ts +0 -13
  53. package/dist/types/GetModlogResponse.js +0 -2
  54. package/dist/types/GetPostsResponse.d.ts +0 -13
  55. package/dist/types/GetPostsResponse.js +0 -2
  56. package/dist/types/GetReportCount.d.ts +0 -7
  57. package/dist/types/GetReportCount.js +0 -2
  58. package/dist/types/GetReportCountResponse.d.ts +0 -6
  59. package/dist/types/ListCommentLikesResponse.d.ts +0 -13
  60. package/dist/types/ListCommentLikesResponse.js +0 -2
  61. package/dist/types/ListCommunitiesResponse.d.ts +0 -13
  62. package/dist/types/ListCommunitiesResponse.js +0 -2
  63. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
  64. package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
  65. package/dist/types/ListMediaResponse.d.ts +0 -10
  66. package/dist/types/ListMediaResponse.js +0 -2
  67. package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
  68. package/dist/types/ListMultiCommunitiesResponse.js +0 -2
  69. package/dist/types/ListNotificationsResponse.d.ts +0 -13
  70. package/dist/types/ListNotificationsResponse.js +0 -2
  71. package/dist/types/ListPersonContentResponse.d.ts +0 -13
  72. package/dist/types/ListPersonContentResponse.js +0 -2
  73. package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
  74. package/dist/types/ListPersonHiddenResponse.js +0 -2
  75. package/dist/types/ListPersonLikedResponse.d.ts +0 -13
  76. package/dist/types/ListPersonLikedResponse.js +0 -2
  77. package/dist/types/ListPersonReadResponse.d.ts +0 -13
  78. package/dist/types/ListPersonReadResponse.js +0 -2
  79. package/dist/types/ListPersonSavedResponse.d.ts +0 -13
  80. package/dist/types/ListPersonSavedResponse.js +0 -2
  81. package/dist/types/ListPostLikesResponse.d.ts +0 -13
  82. package/dist/types/ListPostLikesResponse.js +0 -2
  83. package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
  84. package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
  85. package/dist/types/ListReportsResponse.d.ts +0 -13
  86. package/dist/types/ListReportsResponse.js +0 -2
  87. package/dist/types/ListTaglinesResponse.d.ts +0 -13
  88. package/dist/types/ListTaglinesResponse.js +0 -2
  89. package/dist/types/PersonContentCombinedView.d.ts +0 -7
  90. package/dist/types/PersonContentCombinedView.js +0 -2
  91. package/dist/types/PersonLikedCombinedView.d.ts +0 -7
  92. package/dist/types/PersonLikedCombinedView.js +0 -2
  93. package/dist/types/PersonSavedCombinedView.js +0 -2
  94. /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → CountsResponse.js} +0 -0
  95. /package/dist/types/{GetReportCountResponse.js → MultiCommunityListingType.js} +0 -0
  96. /package/dist/types/{AdminListUsersResponse.js → PagedResponse.js} +0 -0
  97. /package/dist/types/{BanFromCommunityResponse.js → PostCommentCombinedView.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage, GetFederatedInstancesI } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage, GetFederatedInstancesI } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  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,13 @@ 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
- import { GetReportCountResponse } from "./types/GetReportCountResponse";
63
57
  import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
64
58
  import { GetSiteResponse } from "./types/GetSiteResponse";
65
59
  import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
66
60
  import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
67
- import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
68
- import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
69
61
  import { LockPost } from "./types/LockPost";
70
62
  import { LockComment } from "./types/LockComment";
71
63
  import { Login } from "./types/Login";
@@ -102,52 +94,54 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
102
94
  import { UpdateTotp } from "./types/UpdateTotp";
103
95
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
104
96
  import { SuccessResponse } from "./types/SuccessResponse";
105
- import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
106
- import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
107
97
  import { HidePost } from "./types/HidePost";
108
- import { ListMediaResponse } from "./types/ListMediaResponse";
109
98
  import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
110
99
  import { CreateTagline } from "./types/CreateTagline";
111
100
  import { TaglineResponse } from "./types/TaglineResponse";
112
101
  import { UpdateTagline } from "./types/UpdateTagline";
113
102
  import { DeleteTagline } from "./types/DeleteTagline";
114
- import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
115
103
  import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
116
104
  import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
117
- import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
118
- import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
119
- import { ListReportsResponse } from "./types/ListReportsResponse";
105
+ import { CountsResponse } from "./types/CountsResponse";
120
106
  import { MyUserInfo } from "./types/MyUserInfo";
121
107
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
122
108
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
123
- import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
124
- import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
125
109
  import { UploadImageResponse } from "./types/UploadImageResponse";
126
- import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
127
110
  import { Tag } from "./types/Tag";
128
111
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
129
- import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
130
- import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
131
112
  import { CommunityIdQuery } from "./types/CommunityIdQuery";
132
113
  import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
133
114
  import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
134
- import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
135
- import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
136
115
  import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
137
116
  import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
138
117
  import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
139
118
  import { ListLoginsResponse } from "./types/ListLoginsResponse";
140
- import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
141
119
  import { NotePerson } from "./types/NotePerson";
142
120
  import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
143
121
  import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
144
122
  import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
145
- import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
146
123
  import { ModEditPost } from "./types/ModEditPost";
147
124
  import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
148
125
  import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
149
126
  import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
150
127
  import { PersonResponse } from "./types/PersonResponse";
128
+ import { LocalImageView } from "./types/LocalImageView";
129
+ import { PagedResponse } from "./types/PagedResponse";
130
+ import { ModlogView } from "./types/ModlogView";
131
+ import { CommunityView } from "./types/CommunityView";
132
+ import { PendingFollowerView } from "./types/PendingFollowerView";
133
+ import { PostView } from "./types/PostView";
134
+ import { VoteView } from "./types/VoteView";
135
+ import { CommentView } from "./types/CommentView";
136
+ import { CommentSlimView } from "./types/CommentSlimView";
137
+ import { LocalUserView } from "./types/LocalUserView";
138
+ import { NotificationView } from "./types/NotificationView";
139
+ import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
140
+ import { Tagline } from "./types/Tagline";
141
+ import { ReportCombinedView } from "./types/ReportCombinedView";
142
+ import { FederatedInstanceView } from "./types/FederatedInstanceView";
143
+ import { MultiCommunityView } from "./types/MultiCommunityView";
144
+ import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
151
145
  type RequestOptions = Pick<RequestInit, "signal">;
152
146
  /**
153
147
  * Helps build lemmy HTTP requests.
@@ -214,7 +208,7 @@ export declare class LemmyHttp extends Controller {
214
208
  /**
215
209
  * @summary List all the media for your account.
216
210
  */
217
- listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
211
+ listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
218
212
  /**
219
213
  * @summary Delete media for your account.
220
214
  */
@@ -226,7 +220,7 @@ export declare class LemmyHttp extends Controller {
226
220
  /**
227
221
  * @summary List all the media known to your instance.
228
222
  */
229
- listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
223
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
230
224
  /**
231
225
  * @summary Enable / Disable TOTP / two-factor authentication.
232
226
  *
@@ -238,7 +232,7 @@ export declare class LemmyHttp extends Controller {
238
232
  /**
239
233
  * @summary Get the modlog.
240
234
  */
241
- getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
235
+ getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
242
236
  /**
243
237
  * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
244
238
  */
@@ -262,7 +256,7 @@ export declare class LemmyHttp extends Controller {
262
256
  /**
263
257
  * @summary List communities, with various filters.
264
258
  */
265
- listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<ListCommunitiesResponse>;
259
+ listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
266
260
  /**
267
261
  * @summary Follow / subscribe to a community.
268
262
  */
@@ -270,11 +264,11 @@ export declare class LemmyHttp extends Controller {
270
264
  /**
271
265
  * @summary Get a community's pending follows count.
272
266
  */
273
- getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
267
+ getCommunityPendingFollowsCount(options?: RequestOptions): Promise<CountsResponse>;
274
268
  /**
275
269
  * @summary Get a community's pending followers.
276
270
  */
277
- listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
271
+ listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
278
272
  /**
279
273
  * @summary Approve a community pending follow request.
280
274
  */
@@ -302,7 +296,7 @@ export declare class LemmyHttp extends Controller {
302
296
  /**
303
297
  * @summary Ban a user from a community.
304
298
  */
305
- banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
299
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
306
300
  /**
307
301
  * @summary Add a moderator to your community.
308
302
  */
@@ -366,7 +360,7 @@ export declare class LemmyHttp extends Controller {
366
360
  /**
367
361
  * @summary Get / fetch posts, with various filters.
368
362
  */
369
- getPosts(form?: GetPostsI, options?: RequestOptions): Promise<GetPostsResponse>;
363
+ getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
370
364
  /**
371
365
  * @summary Like / vote on a post.
372
366
  */
@@ -374,7 +368,7 @@ export declare class LemmyHttp extends Controller {
374
368
  /**
375
369
  * @summary List a post's likes. Admin-only.
376
370
  */
377
- listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<ListPostLikesResponse>;
371
+ listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
378
372
  /**
379
373
  * @summary Save a post.
380
374
  */
@@ -418,7 +412,7 @@ export declare class LemmyHttp extends Controller {
418
412
  /**
419
413
  * @summary List a comment's likes. Admin-only.
420
414
  */
421
- listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<ListCommentLikesResponse>;
415
+ listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
422
416
  /**
423
417
  * @summary Save a comment.
424
418
  */
@@ -430,11 +424,11 @@ export declare class LemmyHttp extends Controller {
430
424
  /**
431
425
  * @summary Get / fetch comments.
432
426
  */
433
- getComments(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsResponse>;
427
+ getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
434
428
  /**
435
429
  * @summary Get / fetch comments, but without the post or community.
436
430
  */
437
- getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsSlimResponse>;
431
+ getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
438
432
  /**
439
433
  * @summary Get / fetch comment.
440
434
  */
@@ -486,7 +480,7 @@ export declare class LemmyHttp extends Controller {
486
480
  /**
487
481
  * @summary List the content for a person.
488
482
  */
489
- listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
483
+ listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
490
484
  /**
491
485
  * @summary Make a note for a person.
492
486
  */
@@ -498,7 +492,7 @@ export declare class LemmyHttp extends Controller {
498
492
  /**
499
493
  * @summary Get a list of users.
500
494
  */
501
- listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
495
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
502
496
  /**
503
497
  * @summary Block a person.
504
498
  */
@@ -520,7 +514,7 @@ export declare class LemmyHttp extends Controller {
520
514
  */
521
515
  passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
522
516
  /**
523
- * @summary Mark all replies as read.
517
+ * @summary Mark all notifications as read.
524
518
  */
525
519
  markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
526
520
  /**
@@ -535,10 +529,6 @@ export declare class LemmyHttp extends Controller {
535
529
  * @summary Change your user password.
536
530
  */
537
531
  changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
538
- /**
539
- * @summary Get counts for your reports.
540
- */
541
- getReportCount(form: GetReportCountI, options?: RequestOptions): Promise<GetReportCountResponse>;
542
532
  /**
543
533
  * @summary Get your unread counts.
544
534
  */
@@ -546,7 +536,7 @@ export declare class LemmyHttp extends Controller {
546
536
  /**
547
537
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
548
538
  */
549
- listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
539
+ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
550
540
  /**
551
541
  * @summary Verify your email
552
542
  */
@@ -558,19 +548,19 @@ export declare class LemmyHttp extends Controller {
558
548
  /**
559
549
  * @summary List your saved content.
560
550
  */
561
- listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
551
+ listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
562
552
  /**
563
553
  * @summary List your read content.
564
554
  */
565
- listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
555
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
566
556
  /**
567
557
  * @summary List your hidden content.
568
558
  */
569
- listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
559
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
570
560
  /**
571
561
  * @summary List your liked content.
572
562
  */
573
- listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
563
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
574
564
  /**
575
565
  * @summary Add an admin to your site.
576
566
  */
@@ -582,7 +572,7 @@ export declare class LemmyHttp extends Controller {
582
572
  /**
583
573
  * @summary List the registration applications.
584
574
  */
585
- listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
575
+ listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
586
576
  /**
587
577
  * @summary Approve a registration application
588
578
  */
@@ -638,7 +628,7 @@ export declare class LemmyHttp extends Controller {
638
628
  /**
639
629
  * @summary List taglines.
640
630
  */
641
- listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
631
+ listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
642
632
  /**
643
633
  * @summary Create a community post tag.
644
634
  */
@@ -670,11 +660,11 @@ export declare class LemmyHttp extends Controller {
670
660
  /**
671
661
  * @summary Fetch federated instances.
672
662
  */
673
- getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
663
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
674
664
  /**
675
665
  * @summary List user reports.
676
666
  */
677
- listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
667
+ listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
678
668
  /**
679
669
  * @summary Block an instance's communities as a user.
680
670
  */
@@ -756,7 +746,7 @@ export declare class LemmyHttp extends Controller {
756
746
  getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
757
747
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
758
748
  deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
759
- listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
749
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
760
750
  followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
761
751
  /**
762
752
  * @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/list_logins", {}, options);
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
@@ -206,7 +206,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
206
206
  * @summary Get a community's pending follows count.
207
207
  */
208
208
  async getCommunityPendingFollowsCount(options) {
209
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", {}, options);
209
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/counts", {}, options);
210
210
  }
211
211
  /**
212
212
  * @summary Get a community's pending followers.
@@ -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.Post, "/community/delete", form, options);
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.Post, "/post/delete", form, options);
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.Post, "/comment/delete", form, options);
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.Post, "/private_message/delete", form, options);
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.Post, "/account/delete", form, options);
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 replies as read.
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.
@@ -604,23 +604,17 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
604
604
  async changePassword(form, options) {
605
605
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
606
606
  }
607
- /**
608
- * @summary Get counts for your reports.
609
- */
610
- async getReportCount(form, options) {
611
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
612
- }
613
607
  /**
614
608
  * @summary Get your unread counts.
615
609
  */
616
610
  async getUnreadCount(options) {
617
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
611
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/count", {}, options);
618
612
  }
619
613
  /**
620
614
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
621
615
  */
622
616
  async listNotifications(form, options) {
623
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
617
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
624
618
  }
625
619
  /**
626
620
  * @summary Verify your email
@@ -752,7 +746,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
752
746
  * @summary Delete a tagline
753
747
  */
754
748
  async deleteTagline(form, options) {
755
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
749
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
756
750
  }
757
751
  /**
758
752
  * @summary List taglines.
@@ -794,7 +788,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
794
788
  * @summary Delete an oauth provider method
795
789
  */
796
790
  async deleteOAuthProvider(form, options) {
797
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
791
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
798
792
  }
799
793
  /**
800
794
  * @summary Authenticate with OAuth
@@ -1080,7 +1074,7 @@ __decorate([
1080
1074
  ], LemmyHttp.prototype, "importSettings", null);
1081
1075
  __decorate([
1082
1076
  (0, runtime_1.Security)("bearerAuth"),
1083
- (0, runtime_1.Get)("/account/list_logins"),
1077
+ (0, runtime_1.Get)("/account/login/list"),
1084
1078
  (0, runtime_1.Tags)("Account"),
1085
1079
  __param(0, (0, runtime_1.Inject)())
1086
1080
  ], LemmyHttp.prototype, "listLogins", null);
@@ -1189,7 +1183,7 @@ __decorate([
1189
1183
  ], LemmyHttp.prototype, "followCommunity", null);
1190
1184
  __decorate([
1191
1185
  (0, runtime_1.Security)("bearerAuth"),
1192
- (0, runtime_1.Get)("/community/pending_follows/count"),
1186
+ (0, runtime_1.Get)("/account/counts"),
1193
1187
  (0, runtime_1.Tags)("Community"),
1194
1188
  __param(0, (0, runtime_1.Inject)())
1195
1189
  ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
@@ -1216,7 +1210,7 @@ __decorate([
1216
1210
  ], LemmyHttp.prototype, "blockCommunity", null);
1217
1211
  __decorate([
1218
1212
  (0, runtime_1.Security)("bearerAuth"),
1219
- (0, runtime_1.Post)("/community/delete"),
1213
+ (0, runtime_1.Delete)("/community"),
1220
1214
  (0, runtime_1.Tags)("Community"),
1221
1215
  __param(0, (0, runtime_1.Body)()),
1222
1216
  __param(1, (0, runtime_1.Inject)())
@@ -1309,7 +1303,7 @@ __decorate([
1309
1303
  ], LemmyHttp.prototype, "modEditPost", null);
1310
1304
  __decorate([
1311
1305
  (0, runtime_1.Security)("bearerAuth"),
1312
- (0, runtime_1.Post)("/post/delete"),
1306
+ (0, runtime_1.Delete)("/post"),
1313
1307
  (0, runtime_1.Tags)("Post"),
1314
1308
  __param(0, (0, runtime_1.Body)()),
1315
1309
  __param(1, (0, runtime_1.Inject)())
@@ -1422,7 +1416,7 @@ __decorate([
1422
1416
  ], LemmyHttp.prototype, "editComment", null);
1423
1417
  __decorate([
1424
1418
  (0, runtime_1.Security)("bearerAuth"),
1425
- (0, runtime_1.Post)("/comment/delete"),
1419
+ (0, runtime_1.Delete)("/comment"),
1426
1420
  (0, runtime_1.Tags)("Comment"),
1427
1421
  __param(0, (0, runtime_1.Body)()),
1428
1422
  __param(1, (0, runtime_1.Inject)())
@@ -1523,7 +1517,7 @@ __decorate([
1523
1517
  ], LemmyHttp.prototype, "editPrivateMessage", null);
1524
1518
  __decorate([
1525
1519
  (0, runtime_1.Security)("bearerAuth"),
1526
- (0, runtime_1.Post)("/private_message/delete"),
1520
+ (0, runtime_1.Delete)("/private_message"),
1527
1521
  (0, runtime_1.Tags)("PrivateMessage"),
1528
1522
  __param(0, (0, runtime_1.Body)()),
1529
1523
  __param(1, (0, runtime_1.Inject)())
@@ -1611,7 +1605,7 @@ __decorate([
1611
1605
  ], LemmyHttp.prototype, "getCaptcha", null);
1612
1606
  __decorate([
1613
1607
  (0, runtime_1.Security)("bearerAuth"),
1614
- (0, runtime_1.Post)("/account/delete"),
1608
+ (0, runtime_1.Delete)("/account"),
1615
1609
  (0, runtime_1.Tags)("Account"),
1616
1610
  __param(0, (0, runtime_1.Body)()),
1617
1611
  __param(1, (0, runtime_1.Inject)())
@@ -1632,13 +1626,13 @@ __decorate([
1632
1626
  ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1633
1627
  __decorate([
1634
1628
  (0, runtime_1.Security)("bearerAuth"),
1635
- (0, runtime_1.Post)("/account/mark_as_read/all"),
1629
+ (0, runtime_1.Post)("/account/notification/mark_as_read/all"),
1636
1630
  (0, runtime_1.Tags)("Account"),
1637
1631
  __param(0, (0, runtime_1.Inject)())
1638
1632
  ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1639
1633
  __decorate([
1640
1634
  (0, runtime_1.Security)("bearerAuth"),
1641
- (0, runtime_1.Post)("/account/mark_as_read"),
1635
+ (0, runtime_1.Post)("/account/notification/mark_as_read"),
1642
1636
  (0, runtime_1.Tags)("Account"),
1643
1637
  __param(0, (0, runtime_1.Body)()),
1644
1638
  __param(1, (0, runtime_1.Inject)())
@@ -1659,20 +1653,13 @@ __decorate([
1659
1653
  ], LemmyHttp.prototype, "changePassword", null);
1660
1654
  __decorate([
1661
1655
  (0, runtime_1.Security)("bearerAuth"),
1662
- (0, runtime_1.Get)("/account/report_count"),
1663
- (0, runtime_1.Tags)("Account"),
1664
- __param(0, (0, runtime_1.Queries)()),
1665
- __param(1, (0, runtime_1.Inject)())
1666
- ], LemmyHttp.prototype, "getReportCount", null);
1667
- __decorate([
1668
- (0, runtime_1.Security)("bearerAuth"),
1669
- (0, runtime_1.Get)("/account/unread_count"),
1656
+ (0, runtime_1.Get)("/account/notification/count"),
1670
1657
  (0, runtime_1.Tags)("Account"),
1671
1658
  __param(0, (0, runtime_1.Inject)())
1672
1659
  ], LemmyHttp.prototype, "getUnreadCount", null);
1673
1660
  __decorate([
1674
1661
  (0, runtime_1.Security)("bearerAuth"),
1675
- (0, runtime_1.Get)("/account/notifications"),
1662
+ (0, runtime_1.Get)("/account/notification/list"),
1676
1663
  (0, runtime_1.Tags)("Account"),
1677
1664
  __param(0, (0, runtime_1.Queries)()),
1678
1665
  __param(1, (0, runtime_1.Inject)())
@@ -1824,7 +1811,7 @@ __decorate([
1824
1811
  ], LemmyHttp.prototype, "editTagline", null);
1825
1812
  __decorate([
1826
1813
  (0, runtime_1.Security)("bearerAuth"),
1827
- (0, runtime_1.Post)("/admin/tagline/delete"),
1814
+ (0, runtime_1.Delete)("/admin/tagline"),
1828
1815
  (0, runtime_1.Tags)("Admin", "Tagline"),
1829
1816
  __param(0, (0, runtime_1.Body)()),
1830
1817
  __param(1, (0, runtime_1.Inject)())
@@ -1874,7 +1861,7 @@ __decorate([
1874
1861
  ], LemmyHttp.prototype, "editOAuthProvider", null);
1875
1862
  __decorate([
1876
1863
  (0, runtime_1.Security)("bearerAuth"),
1877
- (0, runtime_1.Post)("/oauth_provider/delete"),
1864
+ (0, runtime_1.Delete)("/oauth_provider"),
1878
1865
  (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1879
1866
  __param(0, (0, runtime_1.Body)()),
1880
1867
  __param(1, (0, runtime_1.Inject)())