mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +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;
|
name: string;
|
||||||
sidebar?: string;
|
sidebar?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
icon?: string;
|
|
||||||
banner?: string;
|
|
||||||
enable_nsfw?: boolean;
|
enable_nsfw?: boolean;
|
||||||
community_creation_admin_only?: boolean;
|
community_creation_admin_only?: boolean;
|
||||||
require_email_verification?: boolean;
|
require_email_verification?: boolean;
|
||||||
|
|
|
@ -20,14 +20,6 @@ export type EditCommunity = {
|
||||||
* A shorter, one line description of your community.
|
* A shorter, one line description of your community.
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
/**
|
|
||||||
* An icon URL.
|
|
||||||
*/
|
|
||||||
icon?: string;
|
|
||||||
/**
|
|
||||||
* A banner URL.
|
|
||||||
*/
|
|
||||||
banner?: string;
|
|
||||||
/**
|
/**
|
||||||
* Whether its an NSFW community.
|
* Whether its an NSFW community.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,14 +20,6 @@ export type EditSite = {
|
||||||
* A shorter, one line description of your site.
|
* A shorter, one line description of your site.
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
/**
|
|
||||||
* A url for your site's icon.
|
|
||||||
*/
|
|
||||||
icon?: string;
|
|
||||||
/**
|
|
||||||
* A url for your site's banner.
|
|
||||||
*/
|
|
||||||
banner?: string;
|
|
||||||
/**
|
/**
|
||||||
* Whether to enable NSFW.
|
* Whether to enable NSFW.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -35,4 +35,5 @@ export type GetSiteResponse = {
|
||||||
oauth_providers?: Array<PublicOAuthProvider>;
|
oauth_providers?: Array<PublicOAuthProvider>;
|
||||||
admin_oauth_providers?: Array<OAuthProvider>;
|
admin_oauth_providers?: Array<OAuthProvider>;
|
||||||
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
||||||
|
image_upload_disabled: boolean;
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,6 +23,7 @@ export type LemmyErrorType =
|
||||||
| { error: "no_content_type_header" }
|
| { error: "no_content_type_header" }
|
||||||
| { error: "not_an_image_type" }
|
| { error: "not_an_image_type" }
|
||||||
| { error: "invalid_image_upload" }
|
| { error: "invalid_image_upload" }
|
||||||
|
| { error: "image_upload_disabled" }
|
||||||
| { error: "not_a_mod_or_admin" }
|
| { error: "not_a_mod_or_admin" }
|
||||||
| { error: "not_top_mod" }
|
| { error: "not_top_mod" }
|
||||||
| { error: "not_logged_in" }
|
| { error: "not_logged_in" }
|
||||||
|
|
|
@ -42,10 +42,6 @@ export type SaveUserSettings = {
|
||||||
* The language of the lemmy interface
|
* The language of the lemmy interface
|
||||||
*/
|
*/
|
||||||
interface_language?: string;
|
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.
|
* 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 = {
|
export type SiteResponse = {
|
||||||
site_view: SiteView;
|
site_view: SiteView;
|
||||||
/**
|
/**
|
||||||
* deprecated, use field `tagline` or /api/v3/tagline/list
|
* deprecated, use field `tagline` or /api/v4/tagline/list
|
||||||
*/
|
*/
|
||||||
taglines: Array<null>;
|
taglines: Array<null>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue