lemmy-js-client 1.0.0-instance-user-blocking.1 → 1.0.0-instance-user-blocking.4

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.
@@ -22,11 +22,10 @@ export type CommentReplyView = {
22
22
  comment_actions?: CommentActions;
23
23
  person_actions?: PersonActions;
24
24
  instance_actions?: InstanceActions;
25
- creator_home_instance_actions?: InstanceActions;
26
- creator_local_instance_actions?: InstanceActions;
27
- creator_community_actions?: CommunityActions;
28
25
  creator_is_admin: boolean;
29
26
  post_tags: TagsView;
30
27
  can_mod: boolean;
31
28
  creator_banned: boolean;
29
+ creator_is_moderator: boolean;
30
+ creator_banned_from_community: boolean;
32
31
  };
@@ -18,7 +18,6 @@ export type CommentReportView = {
18
18
  comment_creator: Person;
19
19
  comment_actions?: CommentActions;
20
20
  resolver?: Person;
21
- creator_community_actions?: CommunityActions;
22
21
  person_actions?: PersonActions;
23
22
  community_actions?: CommunityActions;
24
23
  creator_is_admin: boolean;
@@ -1,6 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { CommunityActions } from "./CommunityActions";
4
3
  import type { InstanceActions } from "./InstanceActions";
5
4
  import type { Person } from "./Person";
6
5
  import type { PersonActions } from "./PersonActions";
@@ -12,12 +11,11 @@ export type CommentSlimView = {
12
11
  creator: Person;
13
12
  comment_actions?: CommentActions;
14
13
  person_actions?: PersonActions;
15
- creator_community_actions?: CommunityActions;
16
14
  instance_communities_actions?: InstanceActions;
17
15
  instance_persons_actions?: InstanceActions;
18
- creator_home_instance_actions?: InstanceActions;
19
- creator_local_instance_actions?: InstanceActions;
20
16
  creator_is_admin: boolean;
21
17
  can_mod: boolean;
22
18
  creator_banned: boolean;
19
+ creator_is_moderator: boolean;
20
+ creator_banned_from_community: boolean;
23
21
  };
@@ -20,11 +20,10 @@ export type CommentView = {
20
20
  person_actions?: PersonActions;
21
21
  instance_communities_actions?: InstanceActions;
22
22
  instance_persons_actions?: InstanceActions;
23
- creator_home_instance_actions?: InstanceActions;
24
- creator_local_instance_actions?: InstanceActions;
25
- creator_community_actions?: CommunityActions;
26
23
  creator_is_admin: boolean;
27
24
  post_tags: TagsView;
28
25
  can_mod: boolean;
29
26
  creator_banned: boolean;
27
+ creator_is_moderator: boolean;
28
+ creator_banned_from_community: boolean;
30
29
  };
@@ -134,8 +134,6 @@ export type LemmyErrorType = {
134
134
  } | {
135
135
  error: "invalid_email_address";
136
136
  message: string;
137
- } | {
138
- error: "rate_limit_error";
139
137
  } | {
140
138
  error: "invalid_name";
141
139
  } | {
@@ -242,9 +240,9 @@ export type LemmyErrorType = {
242
240
  } | {
243
241
  error: "contradicting_filters";
244
242
  } | {
245
- error: "instance_block_communities_already_exists";
243
+ error: "instance_communities_block_error";
246
244
  } | {
247
- error: "instance_block_persons_already_exists";
245
+ error: "instance_persons_block_error";
248
246
  } | {
249
247
  error: "too_many_items";
250
248
  } | {
@@ -3,7 +3,7 @@ import type { PostId } from "./PostId";
3
3
  export type LocalImage = {
4
4
  pictrs_alias: string;
5
5
  published_at: string;
6
- person_id: PersonId;
6
+ person_id?: PersonId;
7
7
  /**
8
8
  * This means the image is an auto-generated thumbnail, for a post.
9
9
  */
@@ -1,4 +1,3 @@
1
- import type { InstanceActions } from "./InstanceActions";
2
1
  import type { LocalUser } from "./LocalUser";
3
2
  import type { Person } from "./Person";
4
3
  /**
@@ -7,5 +6,5 @@ import type { Person } from "./Person";
7
6
  export type LocalUserView = {
8
7
  local_user: LocalUser;
9
8
  person: Person;
10
- instance_actions?: InstanceActions;
9
+ banned: boolean;
11
10
  };
@@ -21,10 +21,9 @@ export type PersonCommentMentionView = {
21
21
  comment_actions?: CommentActions;
22
22
  person_actions?: PersonActions;
23
23
  instance_actions?: InstanceActions;
24
- creator_home_instance_actions?: InstanceActions;
25
- creator_local_instance_actions?: InstanceActions;
26
- creator_community_actions?: CommunityActions;
27
24
  creator_is_admin: boolean;
28
25
  can_mod: boolean;
29
26
  creator_banned: boolean;
27
+ creator_is_moderator: boolean;
28
+ creator_banned_from_community: boolean;
30
29
  };
@@ -22,11 +22,10 @@ export type PersonPostMentionView = {
22
22
  person_actions?: PersonActions;
23
23
  post_actions?: PostActions;
24
24
  instance_actions?: InstanceActions;
25
- creator_home_instance_actions?: InstanceActions;
26
- creator_local_instance_actions?: InstanceActions;
27
- creator_community_actions?: CommunityActions;
28
25
  post_tags: TagsView;
29
26
  creator_is_admin: boolean;
30
27
  can_mod: boolean;
31
28
  creator_banned: boolean;
29
+ creator_is_moderator: boolean;
30
+ creator_banned_from_community: boolean;
32
31
  };
@@ -1,4 +1,3 @@
1
- import type { InstanceActions } from "./InstanceActions";
2
1
  import type { Person } from "./Person";
3
2
  import type { PersonActions } from "./PersonActions";
4
3
  /**
@@ -8,7 +7,5 @@ export type PersonView = {
8
7
  person: Person;
9
8
  is_admin: boolean;
10
9
  person_actions?: PersonActions;
11
- home_instance_actions?: InstanceActions;
12
- local_instance_actions?: InstanceActions;
13
10
  creator_banned: boolean;
14
11
  };
@@ -14,7 +14,6 @@ export type PostReportView = {
14
14
  community: Community;
15
15
  creator: Person;
16
16
  post_creator: Person;
17
- creator_community_actions?: CommunityActions;
18
17
  community_actions?: CommunityActions;
19
18
  post_actions?: PostActions;
20
19
  person_actions?: PersonActions;
@@ -20,11 +20,10 @@ export type PostView = {
20
20
  post_actions?: PostActions;
21
21
  instance_communities_actions?: InstanceActions;
22
22
  instance_persons_actions?: InstanceActions;
23
- creator_home_instance_actions?: InstanceActions;
24
- creator_local_instance_actions?: InstanceActions;
25
- creator_community_actions?: CommunityActions;
26
23
  creator_is_admin: boolean;
27
24
  tags: TagsView;
28
25
  can_mod: boolean;
29
26
  creator_banned: boolean;
27
+ creator_is_moderator: boolean;
28
+ creator_banned_from_community: boolean;
30
29
  };
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-instance-user-blocking.1",
4
+ "version": "1.0.0-instance-user-blocking.4",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",