lemmy-js-client 0.15.4-rc.3 → 0.16.4-rc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ import { Site } from "../source";
1
2
  import { CommunityModeratorView, CommunityView, PersonViewSafe } from "../views";
2
3
  /**
3
4
  * You can use either `id` or `name` as an id.
@@ -11,6 +12,7 @@ export interface GetCommunity {
11
12
  }
12
13
  export interface GetCommunityResponse {
13
14
  community_view: CommunityView;
15
+ site?: Site;
14
16
  moderators: CommunityModeratorView[];
15
17
  online: number;
16
18
  }
@@ -21,6 +23,7 @@ export interface CreateCommunity {
21
23
  icon?: string;
22
24
  banner?: string;
23
25
  nsfw?: boolean;
26
+ posting_restricted_to_mods?: boolean;
24
27
  auth: string;
25
28
  }
26
29
  export interface CommunityResponse {
@@ -80,6 +83,7 @@ export interface EditCommunity {
80
83
  icon?: string;
81
84
  banner?: string;
82
85
  nsfw?: boolean;
86
+ posting_restricted_to_mods?: boolean;
83
87
  auth: string;
84
88
  }
85
89
  export interface DeleteCommunity {
@@ -54,6 +54,10 @@ export interface Site {
54
54
  application_question?: string;
55
55
  private_instance: boolean;
56
56
  default_theme: string;
57
+ actor_id: string;
58
+ last_refreshed_at: string;
59
+ inbox_url: string;
60
+ public_key: string;
57
61
  }
58
62
  export interface PrivateMessage {
59
63
  id: number;
@@ -202,6 +206,7 @@ export interface CommunitySafe {
202
206
  local: boolean;
203
207
  icon?: string;
204
208
  banner?: string;
209
+ posting_restricted_to_mods: boolean;
205
210
  }
206
211
  export interface CommentReport {
207
212
  id: number;
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": "0.15.4-rc.3",
4
+ "version": "0.16.4-rc.2",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",