mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-22 19:01:27 +00:00
remaining upload endpoints
This commit is contained in:
parent
e3f700850e
commit
0ba2002514
7 changed files with 3 additions and 23 deletions
|
@ -14,8 +14,6 @@ export type CreateSite = {
|
|||
name: string;
|
||||
sidebar?: string;
|
||||
description?: string;
|
||||
icon?: string;
|
||||
banner?: string;
|
||||
enable_nsfw?: boolean;
|
||||
community_creation_admin_only?: boolean;
|
||||
require_email_verification?: boolean;
|
||||
|
|
|
@ -20,14 +20,6 @@ export type EditCommunity = {
|
|||
* A shorter, one line description of your community.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* An icon URL.
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
* A banner URL.
|
||||
*/
|
||||
banner?: string;
|
||||
/**
|
||||
* Whether its an NSFW community.
|
||||
*/
|
||||
|
|
|
@ -20,14 +20,6 @@ export type EditSite = {
|
|||
* A shorter, one line description of your site.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* A url for your site's icon.
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
* A url for your site's banner.
|
||||
*/
|
||||
banner?: string;
|
||||
/**
|
||||
* Whether to enable NSFW.
|
||||
*/
|
||||
|
|
|
@ -35,4 +35,5 @@ export type GetSiteResponse = {
|
|||
oauth_providers?: Array<PublicOAuthProvider>;
|
||||
admin_oauth_providers?: Array<OAuthProvider>;
|
||||
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
||||
image_upload_disabled: boolean;
|
||||
};
|
||||
|
|
|
@ -23,6 +23,7 @@ export type LemmyErrorType =
|
|||
| { error: "no_content_type_header" }
|
||||
| { error: "not_an_image_type" }
|
||||
| { error: "invalid_image_upload" }
|
||||
| { error: "image_upload_disabled" }
|
||||
| { error: "not_a_mod_or_admin" }
|
||||
| { error: "not_top_mod" }
|
||||
| { error: "not_logged_in" }
|
||||
|
|
|
@ -42,10 +42,6 @@ export type SaveUserSettings = {
|
|||
* The language of the lemmy interface
|
||||
*/
|
||||
interface_language?: string;
|
||||
/**
|
||||
* A URL for your banner.
|
||||
*/
|
||||
banner?: string;
|
||||
/**
|
||||
* Your display name, which can contain strange characters, and does not need to be unique.
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,7 @@ import type { SiteView } from "./SiteView";
|
|||
export type SiteResponse = {
|
||||
site_view: SiteView;
|
||||
/**
|
||||
* deprecated, use field `tagline` or /api/v3/tagline/list
|
||||
* deprecated, use field `tagline` or /api/v4/tagline/list
|
||||
*/
|
||||
taglines: Array<null>;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue