lemmy-js-client 0.20.0-modlog-combined.0 → 0.20.0-no-delete-token.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +0 -16
- package/dist/http.js +0 -16
- package/dist/index.d.ts +3 -30
- package/dist/types/AdminAllowInstance.d.ts +1 -2
- package/dist/types/AdminAllowInstanceView.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +1 -2
- package/dist/types/AdminPurgeComment.d.ts +1 -2
- package/dist/types/AdminPurgeCommunity.d.ts +1 -2
- package/dist/types/AdminPurgePerson.d.ts +1 -2
- package/dist/types/AdminPurgePost.d.ts +1 -2
- package/dist/types/CreatePost.d.ts +0 -2
- package/dist/types/DeleteImageParams.d.ts +0 -1
- package/dist/types/EditPost.d.ts +0 -2
- package/dist/types/GetComments.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +3 -4
- package/dist/types/GetModlogResponse.d.ts +34 -2
- package/dist/types/GetPersonDetails.d.ts +7 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +4 -0
- package/dist/types/GetPosts.d.ts +0 -1
- package/dist/types/GetSiteResponse.d.ts +8 -0
- package/dist/types/LemmyErrorType.d.ts +2 -0
- package/dist/types/LocalImage.d.ts +0 -1
- package/dist/types/ModAdd.d.ts +1 -2
- package/dist/types/ModAddCommunity.d.ts +1 -2
- package/dist/types/ModBan.d.ts +1 -2
- package/dist/types/ModBanFromCommunity.d.ts +1 -2
- package/dist/types/ModBanFromCommunityView.d.ts +1 -1
- package/dist/types/ModBanView.d.ts +1 -1
- package/dist/types/ModFeaturePost.d.ts +1 -2
- package/dist/types/ModFeaturePostView.d.ts +0 -1
- package/dist/types/ModHideCommunity.d.ts +1 -2
- package/dist/types/ModLockPost.d.ts +1 -2
- package/dist/types/ModLockPostView.d.ts +0 -1
- package/dist/types/ModRemoveComment.d.ts +1 -2
- package/dist/types/ModRemoveCommentView.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -2
- package/dist/types/ModRemovePost.d.ts +1 -2
- package/dist/types/ModRemovePostView.d.ts +0 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -2
- package/dist/types/ModlogListParams.d.ts +17 -0
- package/dist/types/PostView.d.ts +0 -2
- package/dist/types/ReportCombined.d.ts +14 -0
- package/dist/types/ReportCombinedId.d.ts +4 -0
- package/dist/types/Search.d.ts +1 -0
- package/dist/types/UploadImageResponse.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceId.js +0 -3
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentId.js +0 -3
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityId.js +0 -3
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonId.js +0 -3
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostId.js +0 -3
- package/dist/types/ListPersonContent.d.ts +0 -18
- package/dist/types/ListPersonContentResponse.d.ts +0 -7
- package/dist/types/ListPersonSaved.d.ts +0 -10
- package/dist/types/ListPersonSaved.js +0 -2
- package/dist/types/ListPersonSavedResponse.d.ts +0 -7
- package/dist/types/ListPersonSavedResponse.js +0 -2
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddCommunityId.js +0 -3
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModAddId.js +0 -3
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModBanId.js +0 -3
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityId.js +0 -3
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.js +0 -3
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonContentCombinedView.d.ts +0 -7
- package/dist/types/PersonContentCombinedView.js +0 -2
- package/dist/types/PersonContentType.d.ts +0 -4
- package/dist/types/PersonContentType.js +0 -3
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
- package/dist/types/PostTags.d.ts +0 -7
- package/dist/types/PostTags.js +0 -2
- package/dist/types/Tag.d.ts +0 -27
- package/dist/types/Tag.js +0 -2
- package/dist/types/TagId.d.ts +0 -4
- package/dist/types/TagId.js +0 -3
- /package/dist/types/{ListPersonContent.js → ModlogListParams.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → ReportCombined.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → ReportCombinedId.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -153,10 +153,6 @@ import { MyUserInfo } from "./types/MyUserInfo";
|
|
153
153
|
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
154
154
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
155
155
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
156
|
-
import { ListPersonContent } from "./types/ListPersonContent";
|
157
|
-
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
158
|
-
import { ListPersonSaved } from "./types/ListPersonSaved";
|
159
|
-
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
160
156
|
import { DeleteImageParams } from "./types/DeleteImageParams";
|
161
157
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
162
158
|
type RequestOptions = Pick<RequestInit, "signal">;
|
@@ -606,12 +602,6 @@ export declare class LemmyHttp {
|
|
606
602
|
* `HTTP.GET /person`
|
607
603
|
*/
|
608
604
|
getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
|
609
|
-
/**
|
610
|
-
* List the content for a person.
|
611
|
-
*
|
612
|
-
* `HTTP.GET /person/content`
|
613
|
-
*/
|
614
|
-
listPersonContent(form?: ListPersonContent, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
615
605
|
/**
|
616
606
|
* Get mentions for your user.
|
617
607
|
*
|
@@ -714,12 +704,6 @@ export declare class LemmyHttp {
|
|
714
704
|
* `HTTP.POST /account/auth/verify_email`
|
715
705
|
*/
|
716
706
|
verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
|
717
|
-
/**
|
718
|
-
* List your saved content.
|
719
|
-
*
|
720
|
-
* `HTTP.GET /account/auth/saved`
|
721
|
-
*/
|
722
|
-
listPersonSaved(form: ListPersonSaved, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
723
707
|
/**
|
724
708
|
* Add an admin to your site.
|
725
709
|
*
|
package/dist/http.js
CHANGED
@@ -629,14 +629,6 @@ class LemmyHttp {
|
|
629
629
|
getPersonDetails(form = {}, options) {
|
630
630
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
631
631
|
}
|
632
|
-
/**
|
633
|
-
* List the content for a person.
|
634
|
-
*
|
635
|
-
* `HTTP.GET /person/content`
|
636
|
-
*/
|
637
|
-
listPersonContent(form = {}, options) {
|
638
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
639
|
-
}
|
640
632
|
/**
|
641
633
|
* Get mentions for your user.
|
642
634
|
*
|
@@ -773,14 +765,6 @@ class LemmyHttp {
|
|
773
765
|
verifyEmail(form, options) {
|
774
766
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
775
767
|
}
|
776
|
-
/**
|
777
|
-
* List your saved content.
|
778
|
-
*
|
779
|
-
* `HTTP.GET /account/auth/saved`
|
780
|
-
*/
|
781
|
-
listPersonSaved(form, options) {
|
782
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/saved", form, options);
|
783
|
-
}
|
784
768
|
/**
|
785
769
|
* Add an admin to your site.
|
786
770
|
*
|
package/dist/index.d.ts
CHANGED
@@ -6,24 +6,18 @@ export { AddAdminResponse } from "./types/AddAdminResponse";
|
|
6
6
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
7
7
|
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
8
8
|
export { AdminAllowInstance } from "./types/AdminAllowInstance";
|
9
|
-
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
10
9
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
11
10
|
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
12
11
|
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
13
|
-
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
14
12
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
15
13
|
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
16
14
|
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
17
|
-
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
18
15
|
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
19
16
|
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
20
|
-
export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
|
21
17
|
export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
|
22
18
|
export { AdminPurgePerson } from "./types/AdminPurgePerson";
|
23
|
-
export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
|
24
19
|
export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
25
20
|
export { AdminPurgePost } from "./types/AdminPurgePost";
|
26
|
-
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
27
21
|
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
28
22
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
29
23
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
@@ -160,10 +154,6 @@ export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
160
154
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
161
155
|
export { ListMedia } from "./types/ListMedia";
|
162
156
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
163
|
-
export { ListPersonContent } from "./types/ListPersonContent";
|
164
|
-
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
165
|
-
export { ListPersonSaved } from "./types/ListPersonSaved";
|
166
|
-
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
167
157
|
export { ListPostLikes } from "./types/ListPostLikes";
|
168
158
|
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
169
159
|
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -194,40 +184,28 @@ export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
194
184
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
195
185
|
export { ModAdd } from "./types/ModAdd";
|
196
186
|
export { ModAddCommunity } from "./types/ModAddCommunity";
|
197
|
-
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
198
187
|
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
199
|
-
export { ModAddId } from "./types/ModAddId";
|
200
188
|
export { ModAddView } from "./types/ModAddView";
|
201
189
|
export { ModBan } from "./types/ModBan";
|
202
190
|
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
203
|
-
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
204
191
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
205
|
-
export { ModBanId } from "./types/ModBanId";
|
206
192
|
export { ModBanView } from "./types/ModBanView";
|
207
193
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
208
|
-
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
209
194
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
210
195
|
export { ModHideCommunity } from "./types/ModHideCommunity";
|
211
|
-
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
212
196
|
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
213
197
|
export { ModLockPost } from "./types/ModLockPost";
|
214
|
-
export { ModLockPostId } from "./types/ModLockPostId";
|
215
198
|
export { ModLockPostView } from "./types/ModLockPostView";
|
216
199
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
217
|
-
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
218
200
|
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
219
201
|
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
220
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
221
202
|
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
222
203
|
export { ModRemovePost } from "./types/ModRemovePost";
|
223
|
-
export { ModRemovePostId } from "./types/ModRemovePostId";
|
224
204
|
export { ModRemovePostView } from "./types/ModRemovePostView";
|
225
205
|
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
226
|
-
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
227
206
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
228
207
|
export { ModlogActionType } from "./types/ModlogActionType";
|
229
|
-
export {
|
230
|
-
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
208
|
+
export { ModlogListParams } from "./types/ModlogListParams";
|
231
209
|
export { MyUserInfo } from "./types/MyUserInfo";
|
232
210
|
export { OAuthAccount } from "./types/OAuthAccount";
|
233
211
|
export { OAuthProvider } from "./types/OAuthProvider";
|
@@ -239,15 +217,11 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
239
217
|
export { PendingFollow } from "./types/PendingFollow";
|
240
218
|
export { Person } from "./types/Person";
|
241
219
|
export { PersonAggregates } from "./types/PersonAggregates";
|
242
|
-
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
243
|
-
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
244
|
-
export { PersonContentType } from "./types/PersonContentType";
|
245
220
|
export { PersonId } from "./types/PersonId";
|
246
221
|
export { PersonMention } from "./types/PersonMention";
|
247
222
|
export { PersonMentionId } from "./types/PersonMentionId";
|
248
223
|
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
249
224
|
export { PersonMentionView } from "./types/PersonMentionView";
|
250
|
-
export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
|
251
225
|
export { PersonView } from "./types/PersonView";
|
252
226
|
export { Post } from "./types/Post";
|
253
227
|
export { PostAggregates } from "./types/PostAggregates";
|
@@ -260,7 +234,6 @@ export { PostReportResponse } from "./types/PostReportResponse";
|
|
260
234
|
export { PostReportView } from "./types/PostReportView";
|
261
235
|
export { PostResponse } from "./types/PostResponse";
|
262
236
|
export { PostSortType } from "./types/PostSortType";
|
263
|
-
export { PostTags } from "./types/PostTags";
|
264
237
|
export { PostView } from "./types/PostView";
|
265
238
|
export { PrivateMessage } from "./types/PrivateMessage";
|
266
239
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
@@ -286,6 +259,8 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
286
259
|
export { RemoveComment } from "./types/RemoveComment";
|
287
260
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
288
261
|
export { RemovePost } from "./types/RemovePost";
|
262
|
+
export { ReportCombined } from "./types/ReportCombined";
|
263
|
+
export { ReportCombinedId } from "./types/ReportCombinedId";
|
289
264
|
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
290
265
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
291
266
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
@@ -307,8 +282,6 @@ export { SiteResponse } from "./types/SiteResponse";
|
|
307
282
|
export { SiteView } from "./types/SiteView";
|
308
283
|
export { SubscribedType } from "./types/SubscribedType";
|
309
284
|
export { SuccessResponse } from "./types/SuccessResponse";
|
310
|
-
export { Tag } from "./types/Tag";
|
311
|
-
export { TagId } from "./types/TagId";
|
312
285
|
export { Tagline } from "./types/Tagline";
|
313
286
|
export { TaglineId } from "./types/TaglineId";
|
314
287
|
export { TaglineResponse } from "./types/TaglineResponse";
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
|
2
1
|
import type { InstanceId } from "./InstanceId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
export type AdminAllowInstance = {
|
5
|
-
id:
|
4
|
+
id: number;
|
6
5
|
instance_id: InstanceId;
|
7
6
|
admin_person_id: PersonId;
|
8
7
|
allowed: boolean;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
|
2
1
|
import type { InstanceId } from "./InstanceId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
export type AdminBlockInstance = {
|
5
|
-
id:
|
4
|
+
id: number;
|
6
5
|
instance_id: InstanceId;
|
7
6
|
admin_person_id: PersonId;
|
8
7
|
blocked: boolean;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
import type { PostId } from "./PostId";
|
4
3
|
/**
|
5
4
|
* When an admin purges a comment.
|
6
5
|
*/
|
7
6
|
export type AdminPurgeComment = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
admin_person_id: PersonId;
|
10
9
|
post_id: PostId;
|
11
10
|
reason?: string;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
/**
|
4
3
|
* When an admin purges a community.
|
5
4
|
*/
|
6
5
|
export type AdminPurgeCommunity = {
|
7
|
-
id:
|
6
|
+
id: number;
|
8
7
|
admin_person_id: PersonId;
|
9
8
|
reason?: string;
|
10
9
|
when_: string;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import type { AdminPurgePersonId } from "./AdminPurgePersonId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
/**
|
4
3
|
* When an admin purges a person.
|
5
4
|
*/
|
6
5
|
export type AdminPurgePerson = {
|
7
|
-
id:
|
6
|
+
id: number;
|
8
7
|
admin_person_id: PersonId;
|
9
8
|
reason?: string;
|
10
9
|
when_: string;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { AdminPurgePostId } from "./AdminPurgePostId";
|
2
1
|
import type { CommunityId } from "./CommunityId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When an admin purges a post.
|
6
5
|
*/
|
7
6
|
export type AdminPurgePost = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
admin_person_id: PersonId;
|
10
9
|
community_id: CommunityId;
|
11
10
|
reason?: string;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { LanguageId } from "./LanguageId";
|
3
|
-
import type { TagId } from "./TagId";
|
4
3
|
/**
|
5
4
|
* Create a post.
|
6
5
|
*/
|
@@ -26,7 +25,6 @@ export type CreatePost = {
|
|
26
25
|
* Instead of fetching a thumbnail, use a custom one.
|
27
26
|
*/
|
28
27
|
custom_thumbnail?: string;
|
29
|
-
tags?: Array<TagId>;
|
30
28
|
/**
|
31
29
|
* Time when this post should be scheduled. Null means publish immediately.
|
32
30
|
*/
|
package/dist/types/EditPost.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { LanguageId } from "./LanguageId";
|
2
2
|
import type { PostId } from "./PostId";
|
3
|
-
import type { TagId } from "./TagId";
|
4
3
|
/**
|
5
4
|
* Edit a post.
|
6
5
|
*/
|
@@ -22,7 +21,6 @@ export type EditPost = {
|
|
22
21
|
* Instead of fetching a thumbnail, use a custom one.
|
23
22
|
*/
|
24
23
|
custom_thumbnail?: string;
|
25
|
-
tags?: Array<TagId>;
|
26
24
|
/**
|
27
25
|
* Time when this post should be scheduled. Null means publish immediately.
|
28
26
|
*/
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { CommentId } from "./CommentId";
|
2
2
|
import type { CommunityId } from "./CommunityId";
|
3
3
|
import type { ModlogActionType } from "./ModlogActionType";
|
4
|
-
import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
|
5
4
|
import type { PersonId } from "./PersonId";
|
6
5
|
import type { PostId } from "./PostId";
|
7
6
|
/**
|
@@ -10,10 +9,10 @@ import type { PostId } from "./PostId";
|
|
10
9
|
export type GetModlog = {
|
11
10
|
mod_person_id?: PersonId;
|
12
11
|
community_id?: CommunityId;
|
12
|
+
page?: number;
|
13
|
+
limit?: number;
|
13
14
|
type_?: ModlogActionType;
|
14
|
-
|
15
|
+
other_person_id?: PersonId;
|
15
16
|
post_id?: PostId;
|
16
17
|
comment_id?: CommentId;
|
17
|
-
page_cursor?: ModlogCombinedPaginationCursor;
|
18
|
-
page_back?: boolean;
|
19
18
|
};
|
@@ -1,7 +1,39 @@
|
|
1
|
-
import type {
|
1
|
+
import type { AdminAllowInstanceView } from "./AdminAllowInstanceView";
|
2
|
+
import type { AdminBlockInstanceView } from "./AdminBlockInstanceView";
|
3
|
+
import type { AdminPurgeCommentView } from "./AdminPurgeCommentView";
|
4
|
+
import type { AdminPurgeCommunityView } from "./AdminPurgeCommunityView";
|
5
|
+
import type { AdminPurgePersonView } from "./AdminPurgePersonView";
|
6
|
+
import type { AdminPurgePostView } from "./AdminPurgePostView";
|
7
|
+
import type { ModAddCommunityView } from "./ModAddCommunityView";
|
8
|
+
import type { ModAddView } from "./ModAddView";
|
9
|
+
import type { ModBanFromCommunityView } from "./ModBanFromCommunityView";
|
10
|
+
import type { ModBanView } from "./ModBanView";
|
11
|
+
import type { ModFeaturePostView } from "./ModFeaturePostView";
|
12
|
+
import type { ModHideCommunityView } from "./ModHideCommunityView";
|
13
|
+
import type { ModLockPostView } from "./ModLockPostView";
|
14
|
+
import type { ModRemoveCommentView } from "./ModRemoveCommentView";
|
15
|
+
import type { ModRemoveCommunityView } from "./ModRemoveCommunityView";
|
16
|
+
import type { ModRemovePostView } from "./ModRemovePostView";
|
17
|
+
import type { ModTransferCommunityView } from "./ModTransferCommunityView";
|
2
18
|
/**
|
3
19
|
* The modlog fetch response.
|
4
20
|
*/
|
5
21
|
export type GetModlogResponse = {
|
6
|
-
|
22
|
+
removed_posts: Array<ModRemovePostView>;
|
23
|
+
locked_posts: Array<ModLockPostView>;
|
24
|
+
featured_posts: Array<ModFeaturePostView>;
|
25
|
+
removed_comments: Array<ModRemoveCommentView>;
|
26
|
+
removed_communities: Array<ModRemoveCommunityView>;
|
27
|
+
banned_from_community: Array<ModBanFromCommunityView>;
|
28
|
+
banned: Array<ModBanView>;
|
29
|
+
added_to_community: Array<ModAddCommunityView>;
|
30
|
+
transferred_to_community: Array<ModTransferCommunityView>;
|
31
|
+
added: Array<ModAddView>;
|
32
|
+
admin_purged_persons: Array<AdminPurgePersonView>;
|
33
|
+
admin_purged_communities: Array<AdminPurgeCommunityView>;
|
34
|
+
admin_purged_posts: Array<AdminPurgePostView>;
|
35
|
+
admin_purged_comments: Array<AdminPurgeCommentView>;
|
36
|
+
hidden_communities: Array<ModHideCommunityView>;
|
37
|
+
admin_block_instance: Array<AdminBlockInstanceView>;
|
38
|
+
admin_allow_instance: Array<AdminAllowInstanceView>;
|
7
39
|
};
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
1
2
|
import type { PersonId } from "./PersonId";
|
3
|
+
import type { PostSortType } from "./PostSortType";
|
2
4
|
/**
|
3
5
|
* Gets a person's details.
|
4
6
|
*
|
@@ -10,4 +12,9 @@ export type GetPersonDetails = {
|
|
10
12
|
* Example: dessalines , or dessalines@xyz.tld
|
11
13
|
*/
|
12
14
|
username?: string;
|
15
|
+
sort?: PostSortType;
|
16
|
+
page?: number;
|
17
|
+
limit?: number;
|
18
|
+
community_id?: CommunityId;
|
19
|
+
saved_only?: boolean;
|
13
20
|
};
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import type { CommentView } from "./CommentView";
|
1
2
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
2
3
|
import type { PersonView } from "./PersonView";
|
4
|
+
import type { PostView } from "./PostView";
|
3
5
|
import type { Site } from "./Site";
|
4
6
|
/**
|
5
7
|
* A person's details response.
|
@@ -7,5 +9,7 @@ import type { Site } from "./Site";
|
|
7
9
|
export type GetPersonDetailsResponse = {
|
8
10
|
person_view: PersonView;
|
9
11
|
site?: Site;
|
12
|
+
comments: Array<CommentView>;
|
13
|
+
posts: Array<PostView>;
|
10
14
|
moderates: Array<CommunityModeratorView>;
|
11
15
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -15,6 +15,14 @@ export type GetSiteResponse = {
|
|
15
15
|
version: string;
|
16
16
|
all_languages: Array<Language>;
|
17
17
|
discussion_languages: Array<LanguageId>;
|
18
|
+
/**
|
19
|
+
* deprecated, use field `tagline` or /api/v3/tagline/list
|
20
|
+
*/
|
21
|
+
taglines: Array<null>;
|
22
|
+
/**
|
23
|
+
* deprecated, use /api/v3/custom_emoji/list
|
24
|
+
*/
|
25
|
+
custom_emojis: Array<null>;
|
18
26
|
/**
|
19
27
|
* If the site has any taglines, a random one is included here for displaying
|
20
28
|
*/
|
package/dist/types/ModAdd.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import type { ModAddId } from "./ModAddId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
/**
|
4
3
|
* When someone is added as a site moderator.
|
5
4
|
*/
|
6
5
|
export type ModAdd = {
|
7
|
-
id:
|
6
|
+
id: number;
|
8
7
|
mod_person_id: PersonId;
|
9
8
|
other_person_id: PersonId;
|
10
9
|
removed: boolean;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { ModAddCommunityId } from "./ModAddCommunityId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When someone is added as a community moderator.
|
6
5
|
*/
|
7
6
|
export type ModAddCommunity = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
other_person_id: PersonId;
|
11
10
|
community_id: CommunityId;
|
package/dist/types/ModBan.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import type { ModBanId } from "./ModBanId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
/**
|
4
3
|
* When someone is banned from the site.
|
5
4
|
*/
|
6
5
|
export type ModBan = {
|
7
|
-
id:
|
6
|
+
id: number;
|
8
7
|
mod_person_id: PersonId;
|
9
8
|
other_person_id: PersonId;
|
10
9
|
reason?: string;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When someone is banned from a community.
|
6
5
|
*/
|
7
6
|
export type ModBanFromCommunity = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
other_person_id: PersonId;
|
11
10
|
community_id: CommunityId;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { ModFeaturePostId } from "./ModFeaturePostId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
import type { PostId } from "./PostId";
|
4
3
|
/**
|
5
4
|
* When a moderator features a post on a community (pins it to the top).
|
6
5
|
*/
|
7
6
|
export type ModFeaturePost = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
post_id: PostId;
|
11
10
|
featured: boolean;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { ModHideCommunityId } from "./ModHideCommunityId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When a community is hidden from public view.
|
6
5
|
*/
|
7
6
|
export type ModHideCommunity = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
community_id: CommunityId;
|
10
9
|
mod_person_id: PersonId;
|
11
10
|
when_: string;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { ModLockPostId } from "./ModLockPostId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
import type { PostId } from "./PostId";
|
4
3
|
/**
|
5
4
|
* When a moderator locks a post (prevents new comments being made).
|
6
5
|
*/
|
7
6
|
export type ModLockPost = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
post_id: PostId;
|
11
10
|
locked: boolean;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { CommentId } from "./CommentId";
|
2
|
-
import type { ModRemoveCommentId } from "./ModRemoveCommentId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When a moderator removes a comment.
|
6
5
|
*/
|
7
6
|
export type ModRemoveComment = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
comment_id: CommentId;
|
11
10
|
reason?: string;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
|
3
2
|
import type { PersonId } from "./PersonId";
|
4
3
|
/**
|
5
4
|
* When a moderator removes a community.
|
6
5
|
*/
|
7
6
|
export type ModRemoveCommunity = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
community_id: CommunityId;
|
11
10
|
reason?: string;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { ModRemovePostId } from "./ModRemovePostId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
2
|
import type { PostId } from "./PostId";
|
4
3
|
/**
|
5
4
|
* When a moderator removes a post.
|
6
5
|
*/
|
7
6
|
export type ModRemovePost = {
|
8
|
-
id:
|
7
|
+
id: number;
|
9
8
|
mod_person_id: PersonId;
|
10
9
|
post_id: PostId;
|
11
10
|
reason?: string;
|