lemmy-js-client 0.19.4-alpha.4 → 0.19.4-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ export interface CreatePost {
5
5
  community_id: CommunityId;
6
6
  url?: string;
7
7
  body?: string;
8
+ alt_text?: string;
8
9
  honeypot?: string;
9
10
  nsfw?: boolean;
10
11
  language_id?: LanguageId;
@@ -5,6 +5,7 @@ export interface EditPost {
5
5
  name?: string;
6
6
  url?: string;
7
7
  body?: string;
8
+ alt_text?: string;
8
9
  nsfw?: boolean;
9
10
  language_id?: LanguageId;
10
11
  custom_thumbnail?: string;
@@ -181,6 +181,8 @@ export type LemmyErrorType = {
181
181
  error: "invalid_body_field";
182
182
  } | {
183
183
  error: "bio_length_overflow";
184
+ } | {
185
+ error: "alt_text_length_overflow";
184
186
  } | {
185
187
  error: "missing_totp_token";
186
188
  } | {
@@ -25,4 +25,5 @@ export interface Post {
25
25
  featured_community: boolean;
26
26
  featured_local: boolean;
27
27
  url_content_type?: string;
28
+ alt_text?: string;
28
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": "0.19.4-alpha.4",
4
+ "version": "0.19.4-alpha.5",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",