Merge branch 'main' into add_hide_post

This commit is contained in:
SleeplessOne1917 2024-03-01 21:51:53 +00:00 committed by GitHub
commit 7d382039a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "lemmy-js-client", "name": "lemmy-js-client",
"description": "A javascript / typescript client for Lemmy", "description": "A javascript / typescript client for Lemmy",
"version": "0.19.4-alpha.4", "version": "0.19.4-alpha.6",
"author": "Dessalines <tyhou13@gmx.com>", "author": "Dessalines <tyhou13@gmx.com>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "./dist/index.js", "main": "./dist/index.js",

View file

@ -7,6 +7,7 @@ export interface CreatePost {
community_id: CommunityId; community_id: CommunityId;
url?: string; url?: string;
body?: string; body?: string;
alt_text?: string;
honeypot?: string; honeypot?: string;
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;

View file

@ -7,6 +7,7 @@ export interface EditPost {
name?: string; name?: string;
url?: string; url?: string;
body?: string; body?: string;
alt_text?: string;
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;
custom_thumbnail?: string; custom_thumbnail?: string;

View file

@ -91,6 +91,7 @@ export type LemmyErrorType =
| { error: "invalid_post_title" } | { error: "invalid_post_title" }
| { error: "invalid_body_field" } | { error: "invalid_body_field" }
| { error: "bio_length_overflow" } | { error: "bio_length_overflow" }
| { error: "alt_text_length_overflow" }
| { error: "missing_totp_token" } | { error: "missing_totp_token" }
| { error: "missing_totp_secret" } | { error: "missing_totp_secret" }
| { error: "incorrect_totp_token" } | { error: "incorrect_totp_token" }

View file

@ -27,4 +27,5 @@ export interface Post {
featured_community: boolean; featured_community: boolean;
featured_local: boolean; featured_local: boolean;
url_content_type?: string; url_content_type?: string;
alt_text?: string;
} }