lemmy-js-client 1.0.0-bool-vote.2 → 1.0.0-change-api-routes.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.
- package/dist/http.d.ts +4 -5
- package/dist/http.js +29 -28
- package/dist/index.d.ts +11 -59
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CreateCommentLike.d.ts +3 -0
- package/dist/types/CreatePostLike.d.ts +3 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +0 -2
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/GetFederatedInstances.d.ts +9 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
- package/dist/types/GetModlog.d.ts +2 -2
- package/dist/types/GetModlogResponse.d.ts +2 -2
- package/dist/types/GetPosts.d.ts +1 -0
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/Notification.d.ts +2 -20
- package/dist/types/NotificationData.d.ts +6 -33
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonLikedCombinedView.d.ts +2 -2
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/UntranslatedError.d.ts +3 -1
- package/dist/types/UserSettingsBackup.d.ts +2 -0
- package/dist/types/VoteView.d.ts +3 -0
- package/package.json +4 -4
- package/dist/types/AdminAdd.d.ts +0 -12
- package/dist/types/AdminAddId.d.ts +0 -1
- package/dist/types/AdminAddView.d.ts +0 -10
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBan.d.ts +0 -16
- package/dist/types/AdminBanId.d.ts +0 -1
- package/dist/types/AdminBanView.d.ts +0 -10
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstance.js +0 -2
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstanceView.js +0 -2
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeComment.js +0 -2
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentId.js +0 -3
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommentView.js +0 -2
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.js +0 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityId.js +0 -3
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgeCommunityView.js +0 -2
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePerson.js +0 -2
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonId.js +0 -3
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePersonView.js +0 -2
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePost.js +0 -2
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostId.js +0 -3
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/AdminPurgePostView.js +0 -2
- package/dist/types/AdminRemoveCommunity.d.ts +0 -14
- package/dist/types/AdminRemoveCommunity.js +0 -2
- package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
- package/dist/types/AdminRemoveCommunityId.js +0 -3
- package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
- package/dist/types/AdminRemoveCommunityView.js +0 -2
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanFromCommunityResponse.js +0 -2
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederatedInstances.js +0 -2
- package/dist/types/ModAddToCommunity.d.ts +0 -14
- package/dist/types/ModAddToCommunity.js +0 -2
- package/dist/types/ModAddToCommunityId.d.ts +0 -1
- package/dist/types/ModAddToCommunityId.js +0 -3
- package/dist/types/ModAddToCommunityView.d.ts +0 -12
- package/dist/types/ModAddToCommunityView.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockComment.d.ts +0 -14
- package/dist/types/ModLockComment.js +0 -2
- package/dist/types/ModLockCommentId.d.ts +0 -1
- package/dist/types/ModLockCommentId.js +0 -3
- package/dist/types/ModLockCommentView.d.ts +0 -16
- package/dist/types/ModLockCommentView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -55
- package/dist/types/ModlogCombinedView.js +0 -2
- /package/dist/types/{AdminAdd.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminAddId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminAddView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminAllowInstance.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → Modlog.js} +0 -0
- /package/dist/types/{AdminBanId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminBan.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminBanView.js → MultiCommunityEntry.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Comment } from "./Comment";
|
|
2
|
+
import type { Community } from "./Community";
|
|
3
|
+
import type { Instance } from "./Instance";
|
|
4
|
+
import type { Modlog } from "./Modlog";
|
|
5
|
+
import type { Person } from "./Person";
|
|
6
|
+
import type { Post } from "./Post";
|
|
7
|
+
export type ModlogView = {
|
|
8
|
+
modlog: Modlog;
|
|
9
|
+
moderator?: Person;
|
|
10
|
+
target_person?: Person;
|
|
11
|
+
target_instance?: Instance;
|
|
12
|
+
target_community?: Community;
|
|
13
|
+
target_post?: Post;
|
|
14
|
+
target_comment?: Comment;
|
|
15
|
+
};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import type { AdminAddId } from "./AdminAddId";
|
|
2
|
-
import type { AdminBanId } from "./AdminBanId";
|
|
3
|
-
import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
|
|
4
1
|
import type { CommentId } from "./CommentId";
|
|
5
|
-
import type {
|
|
6
|
-
import type { ModBanFromCommunityId } from "./ModBanFromCommunityId";
|
|
7
|
-
import type { ModLockCommentId } from "./ModLockCommentId";
|
|
8
|
-
import type { ModLockPostId } from "./ModLockPostId";
|
|
9
|
-
import type { ModRemoveCommentId } from "./ModRemoveCommentId";
|
|
10
|
-
import type { ModRemovePostId } from "./ModRemovePostId";
|
|
11
|
-
import type { ModTransferCommunityId } from "./ModTransferCommunityId";
|
|
2
|
+
import type { ModlogId } from "./ModlogId";
|
|
12
3
|
import type { NotificationId } from "./NotificationId";
|
|
13
4
|
import type { NotificationType } from "./NotificationType";
|
|
14
5
|
import type { PersonId } from "./PersonId";
|
|
@@ -23,14 +14,5 @@ export type Notification = {
|
|
|
23
14
|
kind: NotificationType;
|
|
24
15
|
post_id?: PostId;
|
|
25
16
|
private_message_id?: PrivateMessageId;
|
|
26
|
-
|
|
27
|
-
mod_add_to_community_id?: ModAddToCommunityId;
|
|
28
|
-
admin_ban_id?: AdminBanId;
|
|
29
|
-
mod_ban_from_community_id?: ModBanFromCommunityId;
|
|
30
|
-
mod_lock_post_id?: ModLockPostId;
|
|
31
|
-
mod_remove_comment_id?: ModRemoveCommentId;
|
|
32
|
-
admin_remove_community_id?: AdminRemoveCommunityId;
|
|
33
|
-
mod_remove_post_id?: ModRemovePostId;
|
|
34
|
-
mod_lock_comment_id?: ModLockCommentId;
|
|
35
|
-
mod_transfer_community_id?: ModTransferCommunityId;
|
|
17
|
+
modlog_id?: ModlogId;
|
|
36
18
|
};
|
|
@@ -1,40 +1,13 @@
|
|
|
1
|
-
import type { AdminAdd } from "./AdminAdd";
|
|
2
|
-
import type { AdminBan } from "./AdminBan";
|
|
3
|
-
import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
|
|
4
1
|
import type { CommentView } from "./CommentView";
|
|
5
|
-
import type {
|
|
6
|
-
import type { ModBanFromCommunity } from "./ModBanFromCommunity";
|
|
7
|
-
import type { ModLockComment } from "./ModLockComment";
|
|
8
|
-
import type { ModLockPost } from "./ModLockPost";
|
|
9
|
-
import type { ModRemoveComment } from "./ModRemoveComment";
|
|
10
|
-
import type { ModRemovePost } from "./ModRemovePost";
|
|
11
|
-
import type { ModTransferCommunity } from "./ModTransferCommunity";
|
|
2
|
+
import type { ModlogView } from "./ModlogView";
|
|
12
3
|
import type { PostView } from "./PostView";
|
|
13
4
|
import type { PrivateMessageView } from "./PrivateMessageView";
|
|
14
5
|
export type NotificationData = ({
|
|
15
|
-
type_: "
|
|
6
|
+
type_: "comment";
|
|
16
7
|
} & CommentView) | ({
|
|
17
|
-
type_: "
|
|
8
|
+
type_: "post";
|
|
18
9
|
} & PostView) | ({
|
|
19
|
-
type_: "
|
|
10
|
+
type_: "private_message";
|
|
20
11
|
} & PrivateMessageView) | ({
|
|
21
|
-
type_: "
|
|
22
|
-
} &
|
|
23
|
-
type_: "ModAddToCommunity";
|
|
24
|
-
} & ModAddToCommunity) | ({
|
|
25
|
-
type_: "AdminBan";
|
|
26
|
-
} & AdminBan) | ({
|
|
27
|
-
type_: "ModBanFromCommunity";
|
|
28
|
-
} & ModBanFromCommunity) | ({
|
|
29
|
-
type_: "ModLockPost";
|
|
30
|
-
} & ModLockPost) | ({
|
|
31
|
-
type_: "ModLockComment";
|
|
32
|
-
} & ModLockComment) | ({
|
|
33
|
-
type_: "ModRemovePost";
|
|
34
|
-
} & ModRemovePost) | ({
|
|
35
|
-
type_: "ModRemoveComment";
|
|
36
|
-
} & ModRemoveComment) | ({
|
|
37
|
-
type_: "AdminRemoveCommunity";
|
|
38
|
-
} & AdminRemoveCommunity) | ({
|
|
39
|
-
type_: "ModTransferCommunity";
|
|
40
|
-
} & ModTransferCommunity);
|
|
12
|
+
type_: "mod_action";
|
|
13
|
+
} & ModlogView);
|
|
@@ -2,9 +2,9 @@ import type { Comment } from "./Comment";
|
|
|
2
2
|
import type { Post } from "./Post";
|
|
3
3
|
import type { PrivateMessage } from "./PrivateMessage";
|
|
4
4
|
export type PostOrCommentOrPrivateMessage = ({
|
|
5
|
-
type_: "
|
|
5
|
+
type_: "post";
|
|
6
6
|
} & Post) | ({
|
|
7
|
-
type_: "
|
|
7
|
+
type_: "comment";
|
|
8
8
|
} & Comment) | ({
|
|
9
|
-
type_: "
|
|
9
|
+
type_: "private_message";
|
|
10
10
|
} & PrivateMessage);
|
package/dist/types/Register.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import type { CommunityReportView } from "./CommunityReportView";
|
|
|
3
3
|
import type { PostReportView } from "./PostReportView";
|
|
4
4
|
import type { PrivateMessageReportView } from "./PrivateMessageReportView";
|
|
5
5
|
export type ReportCombinedView = ({
|
|
6
|
-
type_: "
|
|
6
|
+
type_: "post";
|
|
7
7
|
} & PostReportView) | ({
|
|
8
|
-
type_: "
|
|
8
|
+
type_: "comment";
|
|
9
9
|
} & CommentReportView) | ({
|
|
10
|
-
type_: "
|
|
10
|
+
type_: "private_message";
|
|
11
11
|
} & PrivateMessageReportView) | ({
|
|
12
|
-
type_: "
|
|
12
|
+
type_: "community";
|
|
13
13
|
} & CommunityReportView);
|
|
@@ -4,13 +4,13 @@ import type { MultiCommunityView } from "./MultiCommunityView";
|
|
|
4
4
|
import type { PersonView } from "./PersonView";
|
|
5
5
|
import type { PostView } from "./PostView";
|
|
6
6
|
export type SearchCombinedView = ({
|
|
7
|
-
type_: "
|
|
7
|
+
type_: "post";
|
|
8
8
|
} & PostView) | ({
|
|
9
|
-
type_: "
|
|
9
|
+
type_: "comment";
|
|
10
10
|
} & CommentView) | ({
|
|
11
|
-
type_: "
|
|
11
|
+
type_: "community";
|
|
12
12
|
} & CommunityView) | ({
|
|
13
|
-
type_: "
|
|
13
|
+
type_: "person";
|
|
14
14
|
} & PersonView) | ({
|
|
15
|
-
type_: "
|
|
15
|
+
type_: "multi_community";
|
|
16
16
|
} & MultiCommunityView);
|
|
@@ -9,4 +9,6 @@ export type UntranslatedError = "InvalidCommunity" | "CannotCreatePostOrCommentI
|
|
|
9
9
|
DomainNotInAllowList: string;
|
|
10
10
|
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | {
|
|
11
11
|
InvalidFollow: string;
|
|
12
|
-
} | "PurgeInvalidImageUrl" | "Unreachable" | "CouldntSendWebmention" |
|
|
12
|
+
} | "PurgeInvalidImageUrl" | "Unreachable" | "CouldntSendWebmention" | {
|
|
13
|
+
CommunityHasNoFollowers: string;
|
|
14
|
+
};
|
package/dist/types/VoteView.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lemmy-js-client",
|
|
3
3
|
"description": "A javascript / typescript client for Lemmy",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-change-api-routes.1",
|
|
5
5
|
"author": "Dessalines",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@eslint/js": "^9.20.0",
|
|
27
27
|
"@redocly/cli": "^2.0.0",
|
|
28
|
-
"@types/node": "^
|
|
28
|
+
"@types/node": "^24.0.0",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
30
30
|
"@typescript-eslint/parser": "^8.7.0",
|
|
31
31
|
"ajv": "^8.17.1",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
39
39
|
"prettier-plugin-organize-imports": "^4.0.0",
|
|
40
40
|
"prettier-plugin-packagejson": "^2.5.1",
|
|
41
|
-
"sortpack": "^
|
|
41
|
+
"sortpack": "^4.0.0",
|
|
42
42
|
"tsoa": "^6.6.0",
|
|
43
43
|
"typedoc": "^0.28.0",
|
|
44
44
|
"typescript": "^5.5.4",
|
|
45
45
|
"typescript-eslint": "^8.7.0"
|
|
46
46
|
},
|
|
47
|
-
"packageManager": "pnpm@10.
|
|
47
|
+
"packageManager": "pnpm@10.20.0",
|
|
48
48
|
"types": "./dist/index.d.ts",
|
|
49
49
|
"lint-staged": {
|
|
50
50
|
"*.{ts,tsx,js}": [
|
package/dist/types/AdminAdd.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AdminAddId } from "./AdminAddId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
/**
|
|
4
|
-
* When someone is added as a site admin.
|
|
5
|
-
*/
|
|
6
|
-
export type AdminAdd = {
|
|
7
|
-
id: AdminAddId;
|
|
8
|
-
mod_person_id: PersonId;
|
|
9
|
-
other_person_id: PersonId;
|
|
10
|
-
removed: boolean;
|
|
11
|
-
published_at: string;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminAddId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
|
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
export type AdminAllowInstance = {
|
|
5
|
-
id: AdminAllowInstanceId;
|
|
6
|
-
instance_id: InstanceId;
|
|
7
|
-
admin_person_id: PersonId;
|
|
8
|
-
allowed: boolean;
|
|
9
|
-
reason: string;
|
|
10
|
-
published_at: string;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminAllowInstanceId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminAllowInstance } from "./AdminAllowInstance";
|
|
2
|
-
import type { Instance } from "./Instance";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a post.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminAllowInstanceView = {
|
|
8
|
-
admin_allow_instance: AdminAllowInstance;
|
|
9
|
-
instance: Instance;
|
|
10
|
-
admin?: Person;
|
|
11
|
-
};
|
package/dist/types/AdminBan.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AdminBanId } from "./AdminBanId";
|
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When someone is banned from the site.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminBan = {
|
|
8
|
-
id: AdminBanId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
other_person_id: PersonId;
|
|
11
|
-
reason: string;
|
|
12
|
-
banned: boolean;
|
|
13
|
-
expires_at?: string;
|
|
14
|
-
published_at: string;
|
|
15
|
-
instance_id: InstanceId;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminBanId = number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
|
|
2
|
-
import type { InstanceId } from "./InstanceId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
export type AdminBlockInstance = {
|
|
5
|
-
id: AdminBlockInstanceId;
|
|
6
|
-
instance_id: InstanceId;
|
|
7
|
-
admin_person_id: PersonId;
|
|
8
|
-
blocked: boolean;
|
|
9
|
-
reason: string;
|
|
10
|
-
expires_at?: string;
|
|
11
|
-
published_at: string;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminBlockInstanceId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminBlockInstance } from "./AdminBlockInstance";
|
|
2
|
-
import type { Instance } from "./Instance";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a post.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminBlockInstanceView = {
|
|
8
|
-
admin_block_instance: AdminBlockInstance;
|
|
9
|
-
instance: Instance;
|
|
10
|
-
admin?: Person;
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
import type { PostId } from "./PostId";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a comment.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminPurgeComment = {
|
|
8
|
-
id: AdminPurgeCommentId;
|
|
9
|
-
admin_person_id: PersonId;
|
|
10
|
-
post_id: PostId;
|
|
11
|
-
reason: string;
|
|
12
|
-
published_at: string;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminPurgeCommentId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgeComment } from "./AdminPurgeComment";
|
|
2
|
-
import type { Person } from "./Person";
|
|
3
|
-
import type { Post } from "./Post";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a comment.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminPurgeCommentView = {
|
|
8
|
-
admin_purge_comment: AdminPurgeComment;
|
|
9
|
-
admin?: Person;
|
|
10
|
-
post: Post;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
/**
|
|
4
|
-
* When an admin purges a community.
|
|
5
|
-
*/
|
|
6
|
-
export type AdminPurgeCommunity = {
|
|
7
|
-
id: AdminPurgeCommunityId;
|
|
8
|
-
admin_person_id: PersonId;
|
|
9
|
-
reason: string;
|
|
10
|
-
published_at: string;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminPurgeCommunityId = number;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgeCommunity } from "./AdminPurgeCommunity";
|
|
2
|
-
import type { Person } from "./Person";
|
|
3
|
-
/**
|
|
4
|
-
* When an admin purges a community.
|
|
5
|
-
*/
|
|
6
|
-
export type AdminPurgeCommunityView = {
|
|
7
|
-
admin_purge_community: AdminPurgeCommunity;
|
|
8
|
-
admin?: Person;
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgePersonId } from "./AdminPurgePersonId";
|
|
2
|
-
import type { PersonId } from "./PersonId";
|
|
3
|
-
/**
|
|
4
|
-
* When an admin purges a person.
|
|
5
|
-
*/
|
|
6
|
-
export type AdminPurgePerson = {
|
|
7
|
-
id: AdminPurgePersonId;
|
|
8
|
-
admin_person_id: PersonId;
|
|
9
|
-
reason: string;
|
|
10
|
-
published_at: string;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminPurgePersonId = number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgePostId } from "./AdminPurgePostId";
|
|
2
|
-
import type { CommunityId } from "./CommunityId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a post.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminPurgePost = {
|
|
8
|
-
id: AdminPurgePostId;
|
|
9
|
-
admin_person_id: PersonId;
|
|
10
|
-
community_id: CommunityId;
|
|
11
|
-
reason: string;
|
|
12
|
-
published_at: string;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminPurgePostId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminPurgePost } from "./AdminPurgePost";
|
|
2
|
-
import type { Community } from "./Community";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin purges a post.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminPurgePostView = {
|
|
8
|
-
admin_purge_post: AdminPurgePost;
|
|
9
|
-
admin?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
|
|
2
|
-
import type { CommunityId } from "./CommunityId";
|
|
3
|
-
import type { PersonId } from "./PersonId";
|
|
4
|
-
/**
|
|
5
|
-
* When a moderator removes a community.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminRemoveCommunity = {
|
|
8
|
-
id: AdminRemoveCommunityId;
|
|
9
|
-
mod_person_id: PersonId;
|
|
10
|
-
community_id: CommunityId;
|
|
11
|
-
reason: string;
|
|
12
|
-
removed: boolean;
|
|
13
|
-
published_at: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AdminRemoveCommunityId = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
|
|
2
|
-
import type { Community } from "./Community";
|
|
3
|
-
import type { Person } from "./Person";
|
|
4
|
-
/**
|
|
5
|
-
* When an admin removes a community.
|
|
6
|
-
*/
|
|
7
|
-
export type AdminRemoveCommunityView = {
|
|
8
|
-
admin_remove_community: AdminRemoveCommunity;
|
|
9
|
-
moderator?: Person;
|
|
10
|
-
community: Community;
|
|
11
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { InstanceWithFederationState } from "./InstanceWithFederationState";
|
|
2
|
-
/**
|
|
3
|
-
* A list of federated instances.
|
|
4
|
-
*/
|
|
5
|
-
export type FederatedInstances = {
|
|
6
|
-
linked: Array<InstanceWithFederationState>;
|
|
7
|
-
allowed: Array<InstanceWithFederationState>;
|
|
8
|
-
blocked: Array<InstanceWithFederationState>;
|
|
9
|
-
};
|