lemmy-js-client 0.20.0-image-api-rework.8 → 0.20.0-inbox-combined.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +31 -32
- package/dist/http.js +30 -30
- package/dist/index.d.ts +46 -15
- package/dist/types/AdminAllowInstance.d.ts +3 -2
- package/dist/types/AdminAllowInstanceId.d.ts +1 -0
- package/dist/types/AdminAllowInstanceView.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +3 -2
- package/dist/types/AdminBlockInstanceId.d.ts +1 -0
- package/dist/types/AdminPurgeComment.d.ts +3 -2
- package/dist/types/AdminPurgeCommentId.d.ts +1 -0
- package/dist/types/AdminPurgeCommentId.js +3 -0
- package/dist/types/AdminPurgeCommunity.d.ts +3 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
- package/dist/types/AdminPurgeCommunityId.js +3 -0
- package/dist/types/AdminPurgePerson.d.ts +3 -2
- package/dist/types/AdminPurgePersonId.d.ts +1 -0
- package/dist/types/AdminPurgePersonId.js +3 -0
- package/dist/types/AdminPurgePost.d.ts +3 -2
- package/dist/types/AdminPurgePostId.d.ts +1 -0
- package/dist/types/AdminPurgePostId.js +3 -0
- package/dist/types/CommunityAggregates.d.ts +2 -0
- package/dist/types/CommunityReport.d.ts +22 -0
- package/dist/types/CommunityReportId.d.ts +4 -0
- package/dist/types/CommunityReportId.js +3 -0
- package/dist/types/CommunityReportView.d.ts +16 -0
- package/dist/types/CreatePost.d.ts +2 -0
- package/dist/types/CreateSite.d.ts +0 -2
- package/dist/types/DeleteImageParams.d.ts +0 -1
- package/dist/types/EditPost.d.ts +2 -0
- package/dist/types/EditSite.d.ts +0 -8
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetComments.d.ts +0 -1
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +2 -34
- package/dist/types/GetPersonDetails.d.ts +0 -7
- package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
- package/dist/types/GetPosts.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +0 -8
- package/dist/types/GetUnreadCountResponse.d.ts +2 -4
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/InboxCombinedView.d.ts +13 -0
- package/dist/types/InboxDataType.d.ts +4 -0
- package/dist/types/InboxDataType.js +3 -0
- package/dist/types/LemmyErrorType.d.ts +1 -3
- package/dist/types/ListInbox.d.ts +11 -0
- package/dist/types/ListInboxResponse.d.ts +7 -0
- package/dist/types/ListPersonContent.d.ts +18 -0
- package/dist/types/ListPersonContentResponse.d.ts +7 -0
- package/dist/types/ListPersonSaved.d.ts +10 -0
- package/dist/types/ListPersonSavedResponse.d.ts +7 -0
- package/dist/types/LocalImage.d.ts +0 -1
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
- package/dist/types/ModAdd.d.ts +3 -2
- package/dist/types/ModAddCommunity.d.ts +3 -2
- package/dist/types/ModAddCommunityId.d.ts +1 -0
- package/dist/types/ModAddCommunityId.js +3 -0
- package/dist/types/ModAddCommunityView.d.ts +1 -1
- package/dist/types/ModAddId.d.ts +1 -0
- package/dist/types/ModAddId.js +3 -0
- package/dist/types/ModAddView.d.ts +1 -1
- package/dist/types/ModBan.d.ts +3 -2
- package/dist/types/ModBanFromCommunity.d.ts +3 -2
- package/dist/types/ModBanFromCommunityId.d.ts +1 -0
- package/dist/types/ModBanFromCommunityId.js +3 -0
- package/dist/types/ModBanFromCommunityView.d.ts +1 -1
- package/dist/types/ModBanId.d.ts +1 -0
- package/dist/types/ModBanId.js +3 -0
- package/dist/types/ModBanView.d.ts +1 -1
- package/dist/types/ModFeaturePost.d.ts +3 -2
- package/dist/types/ModFeaturePostId.d.ts +1 -0
- package/dist/types/ModFeaturePostId.js +3 -0
- package/dist/types/ModFeaturePostView.d.ts +1 -0
- package/dist/types/ModHideCommunity.d.ts +3 -2
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModLockPost.d.ts +3 -2
- package/dist/types/ModLockPostId.d.ts +1 -0
- package/dist/types/ModLockPostId.js +3 -0
- package/dist/types/ModLockPostView.d.ts +1 -0
- package/dist/types/ModRemoveComment.d.ts +3 -2
- package/dist/types/ModRemoveCommentId.d.ts +1 -0
- package/dist/types/ModRemoveCommentId.js +3 -0
- package/dist/types/ModRemoveCommentView.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +3 -2
- package/dist/types/ModRemoveCommunityId.d.ts +1 -0
- package/dist/types/ModRemoveCommunityId.js +3 -0
- package/dist/types/ModRemovePost.d.ts +3 -2
- package/dist/types/ModRemovePostId.d.ts +1 -0
- package/dist/types/ModRemovePostId.js +3 -0
- package/dist/types/ModRemovePostView.d.ts +1 -0
- package/dist/types/ModTransferCommunity.d.ts +3 -2
- package/dist/types/ModTransferCommunityId.d.ts +1 -0
- package/dist/types/ModTransferCommunityId.js +3 -0
- package/dist/types/ModTransferCommunityView.d.ts +1 -1
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogCombinedView.d.ts +52 -0
- package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
- package/dist/types/PersonCommentMentionId.d.ts +4 -0
- package/dist/types/PersonCommentMentionId.js +3 -0
- package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +4 -4
- package/dist/types/PersonCommentMentionView.js +2 -0
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentCombinedView.d.ts +7 -0
- package/dist/types/PersonContentCombinedView.js +2 -0
- package/dist/types/PersonContentType.d.ts +4 -0
- package/dist/types/PersonContentType.js +3 -0
- package/dist/types/PersonPostMention.d.ts +13 -0
- package/dist/types/PersonPostMention.js +2 -0
- package/dist/types/PersonPostMentionId.d.ts +4 -0
- package/dist/types/PersonPostMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +30 -0
- package/dist/types/PersonPostMentionView.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PostView.d.ts +2 -0
- package/dist/types/ReportCombinedView.d.ts +4 -1
- package/dist/types/Search.d.ts +0 -1
- package/dist/types/Tag.d.ts +27 -0
- package/dist/types/Tag.js +2 -0
- package/dist/types/TagId.d.ts +4 -0
- package/dist/types/TagId.js +3 -0
- package/dist/types/UploadImageResponse.d.ts +0 -1
- package/package.json +2 -2
- package/dist/types/CommentReplyResponse.d.ts +0 -7
- package/dist/types/GetPersonMentions.d.ts +0 -10
- package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
- package/dist/types/GetPrivateMessages.d.ts +0 -10
- package/dist/types/GetReplies.d.ts +0 -10
- package/dist/types/GetRepliesResponse.d.ts +0 -7
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
- package/dist/types/ModlogListParams.d.ts +0 -17
- package/dist/types/PersonMentionId.d.ts +0 -4
- package/dist/types/PersonMentionResponse.d.ts +0 -7
- package/dist/types/PrivateMessagesResponse.d.ts +0 -7
- package/dist/types/ReportCombined.d.ts +0 -14
- package/dist/types/ReportCombinedId.d.ts +0 -4
- /package/dist/types/{PersonMentionId.js → AdminAllowInstanceId.js} +0 -0
- /package/dist/types/{ReportCombinedId.js → AdminBlockInstanceId.js} +0 -0
- /package/dist/types/{CommentReplyResponse.js → CommunityReport.js} +0 -0
- /package/dist/types/{GetPersonMentions.js → CommunityReportView.js} +0 -0
- /package/dist/types/{GetPersonMentionsResponse.js → InboxCombinedView.js} +0 -0
- /package/dist/types/{GetPrivateMessages.js → ListInbox.js} +0 -0
- /package/dist/types/{GetReplies.js → ListInboxResponse.js} +0 -0
- /package/dist/types/{GetRepliesResponse.js → ListPersonContent.js} +0 -0
- /package/dist/types/{MarkPersonMentionAsRead.js → ListPersonContentResponse.js} +0 -0
- /package/dist/types/{ModlogListParams.js → ListPersonSaved.js} +0 -0
- /package/dist/types/{PersonMention.js → ListPersonSavedResponse.js} +0 -0
- /package/dist/types/{PersonMentionResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
- /package/dist/types/{PersonMentionView.js → MarkPersonPostMentionAsRead.js} +0 -0
- /package/dist/types/{PrivateMessagesResponse.js → ModlogCombinedView.js} +0 -0
- /package/dist/types/{ReportCombined.js → PersonCommentMention.js} +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { CommunityAggregates } from "./CommunityAggregates";
|
3
|
+
import type { CommunityReport } from "./CommunityReport";
|
4
|
+
import type { Person } from "./Person";
|
5
|
+
import type { SubscribedType } from "./SubscribedType";
|
6
|
+
/**
|
7
|
+
* A community report view.
|
8
|
+
*/
|
9
|
+
export type CommunityReportView = {
|
10
|
+
community_report: CommunityReport;
|
11
|
+
community: Community;
|
12
|
+
creator: Person;
|
13
|
+
counts: CommunityAggregates;
|
14
|
+
subscribed: SubscribedType;
|
15
|
+
resolver?: Person;
|
16
|
+
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { LanguageId } from "./LanguageId";
|
3
|
+
import type { TagId } from "./TagId";
|
3
4
|
/**
|
4
5
|
* Create a post.
|
5
6
|
*/
|
@@ -25,6 +26,7 @@ export type CreatePost = {
|
|
25
26
|
* Instead of fetching a thumbnail, use a custom one.
|
26
27
|
*/
|
27
28
|
custom_thumbnail?: string;
|
29
|
+
tags?: Array<TagId>;
|
28
30
|
/**
|
29
31
|
* Time when this post should be scheduled. Null means publish immediately.
|
30
32
|
*/
|
@@ -12,7 +12,6 @@ export type CreateSite = {
|
|
12
12
|
name: string;
|
13
13
|
sidebar?: string;
|
14
14
|
description?: string;
|
15
|
-
enable_nsfw?: boolean;
|
16
15
|
community_creation_admin_only?: boolean;
|
17
16
|
require_email_verification?: boolean;
|
18
17
|
application_question?: string;
|
@@ -41,7 +40,6 @@ export type CreateSite = {
|
|
41
40
|
rate_limit_search?: number;
|
42
41
|
rate_limit_search_per_second?: number;
|
43
42
|
federation_enabled?: boolean;
|
44
|
-
federation_debug?: boolean;
|
45
43
|
captcha_enabled?: boolean;
|
46
44
|
captcha_difficulty?: string;
|
47
45
|
registration_mode?: RegistrationMode;
|
package/dist/types/EditPost.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { LanguageId } from "./LanguageId";
|
2
2
|
import type { PostId } from "./PostId";
|
3
|
+
import type { TagId } from "./TagId";
|
3
4
|
/**
|
4
5
|
* Edit a post.
|
5
6
|
*/
|
@@ -21,6 +22,7 @@ export type EditPost = {
|
|
21
22
|
* Instead of fetching a thumbnail, use a custom one.
|
22
23
|
*/
|
23
24
|
custom_thumbnail?: string;
|
25
|
+
tags?: Array<TagId>;
|
24
26
|
/**
|
25
27
|
* Time when this post should be scheduled. Null means publish immediately.
|
26
28
|
*/
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -18,10 +18,6 @@ export type EditSite = {
|
|
18
18
|
* A shorter, one line description of your site.
|
19
19
|
*/
|
20
20
|
description?: string;
|
21
|
-
/**
|
22
|
-
* Whether to enable NSFW.
|
23
|
-
*/
|
24
|
-
enable_nsfw?: boolean;
|
25
21
|
/**
|
26
22
|
* Limits community creation to admins only.
|
27
23
|
*/
|
@@ -116,10 +112,6 @@ export type EditSite = {
|
|
116
112
|
* Whether to enable federation.
|
117
113
|
*/
|
118
114
|
federation_enabled?: boolean;
|
119
|
-
/**
|
120
|
-
* Enables federation debugging.
|
121
|
-
*/
|
122
|
-
federation_debug?: boolean;
|
123
115
|
/**
|
124
116
|
* Whether to enable captchas for signups.
|
125
117
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Federation related errors, these dont need to be translated.
|
3
3
|
*/
|
4
|
-
export type FederationError = "
|
4
|
+
export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
|
5
5
|
PersonIsBannedFromSite: string;
|
6
6
|
} | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
|
7
7
|
DomainBlocked: string;
|
@@ -1,6 +1,7 @@
|
|
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";
|
4
5
|
import type { PersonId } from "./PersonId";
|
5
6
|
import type { PostId } from "./PostId";
|
6
7
|
/**
|
@@ -9,10 +10,10 @@ import type { PostId } from "./PostId";
|
|
9
10
|
export type GetModlog = {
|
10
11
|
mod_person_id?: PersonId;
|
11
12
|
community_id?: CommunityId;
|
12
|
-
page?: number;
|
13
|
-
limit?: number;
|
14
13
|
type_?: ModlogActionType;
|
15
14
|
other_person_id?: PersonId;
|
16
15
|
post_id?: PostId;
|
17
16
|
comment_id?: CommentId;
|
17
|
+
page_cursor?: ModlogCombinedPaginationCursor;
|
18
|
+
page_back?: boolean;
|
18
19
|
};
|
@@ -1,39 +1,7 @@
|
|
1
|
-
import type {
|
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";
|
1
|
+
import type { ModlogCombinedView } from "./ModlogCombinedView";
|
18
2
|
/**
|
19
3
|
* The modlog fetch response.
|
20
4
|
*/
|
21
5
|
export type GetModlogResponse = {
|
22
|
-
|
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>;
|
6
|
+
modlog: Array<ModlogCombinedView>;
|
39
7
|
};
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import type { CommunityId } from "./CommunityId";
|
2
1
|
import type { PersonId } from "./PersonId";
|
3
|
-
import type { PostSortType } from "./PostSortType";
|
4
2
|
/**
|
5
3
|
* Gets a person's details.
|
6
4
|
*
|
@@ -12,9 +10,4 @@ export type GetPersonDetails = {
|
|
12
10
|
* Example: dessalines , or dessalines@xyz.tld
|
13
11
|
*/
|
14
12
|
username?: string;
|
15
|
-
sort?: PostSortType;
|
16
|
-
page?: number;
|
17
|
-
limit?: number;
|
18
|
-
community_id?: CommunityId;
|
19
|
-
saved_only?: boolean;
|
20
13
|
};
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { CommentView } from "./CommentView";
|
2
1
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
3
2
|
import type { PersonView } from "./PersonView";
|
4
|
-
import type { PostView } from "./PostView";
|
5
3
|
import type { Site } from "./Site";
|
6
4
|
/**
|
7
5
|
* A person's details response.
|
@@ -9,7 +7,5 @@ import type { Site } from "./Site";
|
|
9
7
|
export type GetPersonDetailsResponse = {
|
10
8
|
person_view: PersonView;
|
11
9
|
site?: Site;
|
12
|
-
comments: Array<CommentView>;
|
13
|
-
posts: Array<PostView>;
|
14
10
|
moderates: Array<CommunityModeratorView>;
|
15
11
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -15,14 +15,6 @@ 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>;
|
26
18
|
/**
|
27
19
|
* If the site has any taglines, a random one is included here for displaying
|
28
20
|
*/
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { CommentReplyView } from "./CommentReplyView";
|
2
|
+
import type { PersonCommentMentionView } from "./PersonCommentMentionView";
|
3
|
+
import type { PersonPostMentionView } from "./PersonPostMentionView";
|
4
|
+
import type { PrivateMessageView } from "./PrivateMessageView";
|
5
|
+
export type InboxCombinedView = ({
|
6
|
+
type_: "CommentReply";
|
7
|
+
} & CommentReplyView) | ({
|
8
|
+
type_: "CommentMention";
|
9
|
+
} & PersonCommentMentionView) | ({
|
10
|
+
type_: "PostMention";
|
11
|
+
} & PersonPostMentionView) | ({
|
12
|
+
type_: "PrivateMessage";
|
13
|
+
} & PrivateMessageView);
|
@@ -195,7 +195,7 @@ export type LemmyErrorType = {
|
|
195
195
|
} | {
|
196
196
|
error: "couldnt_update_replies";
|
197
197
|
} | {
|
198
|
-
error: "
|
198
|
+
error: "couldnt_update_person_comment_mentions";
|
199
199
|
} | {
|
200
200
|
error: "couldnt_create_post";
|
201
201
|
} | {
|
@@ -208,8 +208,6 @@ export type LemmyErrorType = {
|
|
208
208
|
error: "couldnt_set_all_registrations_accepted";
|
209
209
|
} | {
|
210
210
|
error: "couldnt_set_all_email_verified";
|
211
|
-
} | {
|
212
|
-
error: "banned";
|
213
211
|
} | {
|
214
212
|
error: "blocked_url";
|
215
213
|
} | {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { InboxCombinedPaginationCursor } from "./InboxCombinedPaginationCursor";
|
2
|
+
import type { InboxDataType } from "./InboxDataType";
|
3
|
+
/**
|
4
|
+
* Get your inbox (replies, comment mentions, post mentions, and messages)
|
5
|
+
*/
|
6
|
+
export type ListInbox = {
|
7
|
+
type_?: InboxDataType;
|
8
|
+
unread_only?: boolean;
|
9
|
+
page_cursor?: InboxCombinedPaginationCursor;
|
10
|
+
page_back?: boolean;
|
11
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { PersonContentCombinedPaginationCursor } from "./PersonContentCombinedPaginationCursor";
|
2
|
+
import type { PersonContentType } from "./PersonContentType";
|
3
|
+
import type { PersonId } from "./PersonId";
|
4
|
+
/**
|
5
|
+
* Gets a person's content (posts and comments)
|
6
|
+
*
|
7
|
+
* Either person_id, or username are required.
|
8
|
+
*/
|
9
|
+
export type ListPersonContent = {
|
10
|
+
type_?: PersonContentType;
|
11
|
+
person_id?: PersonId;
|
12
|
+
/**
|
13
|
+
* Example: dessalines , or dessalines@xyz.tld
|
14
|
+
*/
|
15
|
+
username?: string;
|
16
|
+
page_cursor?: PersonContentCombinedPaginationCursor;
|
17
|
+
page_back?: boolean;
|
18
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { PersonContentType } from "./PersonContentType";
|
2
|
+
import type { PersonSavedCombinedPaginationCursor } from "./PersonSavedCombinedPaginationCursor";
|
3
|
+
/**
|
4
|
+
* Gets your saved posts and comments
|
5
|
+
*/
|
6
|
+
export type ListPersonSaved = {
|
7
|
+
type_?: PersonContentType;
|
8
|
+
page_cursor?: PersonSavedCombinedPaginationCursor;
|
9
|
+
page_back?: boolean;
|
10
|
+
};
|
package/dist/types/ModAdd.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
+
import type { ModAddId } from "./ModAddId";
|
1
2
|
import type { PersonId } from "./PersonId";
|
2
3
|
/**
|
3
4
|
* When someone is added as a site moderator.
|
4
5
|
*/
|
5
6
|
export type ModAdd = {
|
6
|
-
id:
|
7
|
+
id: ModAddId;
|
7
8
|
mod_person_id: PersonId;
|
8
9
|
other_person_id: PersonId;
|
9
10
|
removed: boolean;
|
10
|
-
|
11
|
+
published: string;
|
11
12
|
};
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { ModAddCommunityId } from "./ModAddCommunityId";
|
2
3
|
import type { PersonId } from "./PersonId";
|
3
4
|
/**
|
4
5
|
* When someone is added as a community moderator.
|
5
6
|
*/
|
6
7
|
export type ModAddCommunity = {
|
7
|
-
id:
|
8
|
+
id: ModAddCommunityId;
|
8
9
|
mod_person_id: PersonId;
|
9
10
|
other_person_id: PersonId;
|
10
11
|
community_id: CommunityId;
|
11
12
|
removed: boolean;
|
12
|
-
|
13
|
+
published: string;
|
13
14
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModAddCommunityId = number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModAddId = number;
|
package/dist/types/ModBan.d.ts
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
import type { ModBanId } from "./ModBanId";
|
1
2
|
import type { PersonId } from "./PersonId";
|
2
3
|
/**
|
3
4
|
* When someone is banned from the site.
|
4
5
|
*/
|
5
6
|
export type ModBan = {
|
6
|
-
id:
|
7
|
+
id: ModBanId;
|
7
8
|
mod_person_id: PersonId;
|
8
9
|
other_person_id: PersonId;
|
9
10
|
reason?: string;
|
10
11
|
banned: boolean;
|
11
12
|
expires?: string;
|
12
|
-
|
13
|
+
published: string;
|
13
14
|
};
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
|
2
3
|
import type { PersonId } from "./PersonId";
|
3
4
|
/**
|
4
5
|
* When someone is banned from a community.
|
5
6
|
*/
|
6
7
|
export type ModBanFromCommunity = {
|
7
|
-
id:
|
8
|
+
id: ModBanFromCommunityId;
|
8
9
|
mod_person_id: PersonId;
|
9
10
|
other_person_id: PersonId;
|
10
11
|
community_id: CommunityId;
|
11
12
|
reason?: string;
|
12
13
|
banned: boolean;
|
13
14
|
expires?: string;
|
14
|
-
|
15
|
+
published: string;
|
15
16
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModBanFromCommunityId = number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModBanId = number;
|
@@ -1,13 +1,14 @@
|
|
1
|
+
import type { ModFeaturePostId } from "./ModFeaturePostId";
|
1
2
|
import type { PersonId } from "./PersonId";
|
2
3
|
import type { PostId } from "./PostId";
|
3
4
|
/**
|
4
5
|
* When a moderator features a post on a community (pins it to the top).
|
5
6
|
*/
|
6
7
|
export type ModFeaturePost = {
|
7
|
-
id:
|
8
|
+
id: ModFeaturePostId;
|
8
9
|
mod_person_id: PersonId;
|
9
10
|
post_id: PostId;
|
10
11
|
featured: boolean;
|
11
|
-
|
12
|
+
published: string;
|
12
13
|
is_featured_community: boolean;
|
13
14
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModFeaturePostId = number;
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { ModHideCommunityId } from "./ModHideCommunityId";
|
2
3
|
import type { PersonId } from "./PersonId";
|
3
4
|
/**
|
4
5
|
* When a community is hidden from public view.
|
5
6
|
*/
|
6
7
|
export type ModHideCommunity = {
|
7
|
-
id:
|
8
|
+
id: ModHideCommunityId;
|
8
9
|
community_id: CommunityId;
|
9
10
|
mod_person_id: PersonId;
|
10
|
-
|
11
|
+
published: string;
|
11
12
|
reason?: string;
|
12
13
|
hidden: boolean;
|
13
14
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModHideCommunityId = number;
|
@@ -1,12 +1,13 @@
|
|
1
|
+
import type { ModLockPostId } from "./ModLockPostId";
|
1
2
|
import type { PersonId } from "./PersonId";
|
2
3
|
import type { PostId } from "./PostId";
|
3
4
|
/**
|
4
5
|
* When a moderator locks a post (prevents new comments being made).
|
5
6
|
*/
|
6
7
|
export type ModLockPost = {
|
7
|
-
id:
|
8
|
+
id: ModLockPostId;
|
8
9
|
mod_person_id: PersonId;
|
9
10
|
post_id: PostId;
|
10
11
|
locked: boolean;
|
11
|
-
|
12
|
+
published: string;
|
12
13
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModLockPostId = number;
|