remaining upload endpoints

This commit is contained in:
Felix Ableitner 2024-12-18 11:54:08 +01:00
parent e3f700850e
commit 0ba2002514
7 changed files with 3 additions and 23 deletions

View file

@ -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;

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -35,4 +35,5 @@ export type GetSiteResponse = {
oauth_providers?: Array<PublicOAuthProvider>;
admin_oauth_providers?: Array<OAuthProvider>;
blocked_urls: Array<LocalSiteUrlBlocklist>;
image_upload_disabled: boolean;
};

View file

@ -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" }

View file

@ -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.
*/

View file

@ -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>;
};