mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
Delete old type files
This commit is contained in:
parent
ab6fe6988c
commit
27354f2d74
|
|
@ -1,35 +0,0 @@
|
|||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIField } from "./field";
|
||||
import type { APIRole } from "./role";
|
||||
import type { APISource } from "./source";
|
||||
|
||||
export interface APIAccount {
|
||||
id: string;
|
||||
username: string;
|
||||
acct: string;
|
||||
display_name: string;
|
||||
locked: boolean;
|
||||
discoverable?: boolean;
|
||||
group: boolean | null;
|
||||
noindex: boolean | null;
|
||||
suspended: boolean | null;
|
||||
limited: boolean | null;
|
||||
created_at: string;
|
||||
followers_count: number;
|
||||
following_count: number;
|
||||
statuses_count: number;
|
||||
note: string;
|
||||
url: string;
|
||||
avatar: string;
|
||||
avatar_static: string;
|
||||
header: string;
|
||||
header_static: string;
|
||||
emojis: APIEmoji[];
|
||||
moved: APIAccount | null;
|
||||
fields: APIField[];
|
||||
bot: boolean;
|
||||
source?: APISource;
|
||||
role?: APIRole;
|
||||
mute_expires_at?: string;
|
||||
pleroma?: object;
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
export interface APIActivity {
|
||||
week: string;
|
||||
statuses: string;
|
||||
logins: string;
|
||||
registrations: string;
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIStatusTag } from "./status";
|
||||
|
||||
export interface APIAnnouncement {
|
||||
id: string;
|
||||
content: string;
|
||||
starts_at: string | null;
|
||||
ends_at: string | null;
|
||||
published: boolean;
|
||||
all_day: boolean;
|
||||
published_at: string;
|
||||
updated_at: string;
|
||||
read: boolean | null;
|
||||
mentions: AnnouncementAccount[];
|
||||
statuses: AnnouncementStatus[];
|
||||
tags: APIStatusTag[];
|
||||
emojis: APIEmoji[];
|
||||
reactions: AnnouncementReaction[];
|
||||
}
|
||||
|
||||
export interface AnnouncementAccount {
|
||||
id: string;
|
||||
username: string;
|
||||
url: string;
|
||||
acct: string;
|
||||
}
|
||||
|
||||
export interface AnnouncementStatus {
|
||||
id: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface AnnouncementReaction {
|
||||
name: string;
|
||||
count: number;
|
||||
me: boolean | null;
|
||||
url: string | null;
|
||||
static_url: string | null;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export interface APIApplication {
|
||||
name: string;
|
||||
website?: string | null;
|
||||
vapid_key?: string | null;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
import type { APIMeta } from "./attachment";
|
||||
|
||||
export interface APIAsyncAttachment {
|
||||
id: string;
|
||||
type: "unknown" | "image" | "gifv" | "video" | "audio";
|
||||
url: string | null;
|
||||
remote_url: string | null;
|
||||
preview_url: string;
|
||||
text_url: string | null;
|
||||
meta: APIMeta | null;
|
||||
description: string | null;
|
||||
blurhash: string | null;
|
||||
}
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
export interface APISub {
|
||||
// For Image, Gifv, and Video
|
||||
width?: number;
|
||||
height?: number;
|
||||
size?: string;
|
||||
aspect?: number;
|
||||
|
||||
// For Gifv and Video
|
||||
frame_rate?: string;
|
||||
|
||||
// For Audio, Gifv, and Video
|
||||
duration?: number;
|
||||
bitrate?: number;
|
||||
}
|
||||
|
||||
export interface APIFocus {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
export interface APIMeta {
|
||||
original?: APISub;
|
||||
small?: APISub;
|
||||
focus?: APIFocus;
|
||||
length?: string;
|
||||
duration?: number;
|
||||
fps?: number;
|
||||
size?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
aspect?: number;
|
||||
audio_encode?: string;
|
||||
audio_bitrate?: string;
|
||||
audio_channel?: string;
|
||||
}
|
||||
|
||||
export interface APIAttachment {
|
||||
id: string;
|
||||
type: "unknown" | "image" | "gifv" | "video" | "audio";
|
||||
url: string;
|
||||
remote_url: string | null;
|
||||
preview_url: string | null;
|
||||
text_url: string | null;
|
||||
meta: APIMeta | null;
|
||||
description: string | null;
|
||||
blurhash: string | null;
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
export interface APICard {
|
||||
url: string;
|
||||
title: string;
|
||||
description: string;
|
||||
type: "link" | "photo" | "video" | "rich";
|
||||
image: string | null;
|
||||
author_name: string;
|
||||
author_url: string;
|
||||
provider_name: string;
|
||||
provider_url: string;
|
||||
html: string;
|
||||
width: number;
|
||||
height: number;
|
||||
embed_url: string;
|
||||
blurhash: string | null;
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APIContext {
|
||||
ancestors: APIStatus[];
|
||||
descendants: APIStatus[];
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APIConversation {
|
||||
id: string;
|
||||
accounts: APIAccount[];
|
||||
last_status: APIStatus | null;
|
||||
unread: boolean;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
export interface APIEmoji {
|
||||
shortcode: string;
|
||||
static_url: string;
|
||||
url: string;
|
||||
visible_in_picker: boolean;
|
||||
category?: string;
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
export interface APIFeaturedTag {
|
||||
id: string;
|
||||
name: string;
|
||||
statuses_count: number;
|
||||
last_status_at: string;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export interface APIField {
|
||||
name: string;
|
||||
value: string;
|
||||
verified_at: string | null;
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
export interface APIFilter {
|
||||
id: string;
|
||||
phrase: string;
|
||||
context: FilterContext[];
|
||||
expires_at: string | null;
|
||||
irreversible: boolean;
|
||||
whole_word: boolean;
|
||||
}
|
||||
|
||||
export type FilterContext = string;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export interface APIHistory {
|
||||
day: string;
|
||||
uses: number;
|
||||
accounts: number;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
export interface APIIdentityProof {
|
||||
provider: string;
|
||||
provider_username: string;
|
||||
updated_at: string;
|
||||
proof_url: string;
|
||||
profile_url: string;
|
||||
}
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
import type { APIStats } from "./stats";
|
||||
import type { APIURLs } from "./urls";
|
||||
|
||||
export interface APIInstance {
|
||||
tos_url: string | undefined;
|
||||
uri: string;
|
||||
title: string;
|
||||
description: string;
|
||||
email: string;
|
||||
version: string;
|
||||
thumbnail: string | null;
|
||||
urls: APIURLs;
|
||||
stats: APIStats;
|
||||
languages: string[];
|
||||
registrations: boolean;
|
||||
approval_required: boolean;
|
||||
invites_enabled: boolean;
|
||||
max_toot_chars?: number;
|
||||
configuration: {
|
||||
statuses: {
|
||||
max_characters: number;
|
||||
max_media_attachments: number;
|
||||
characters_reserved_per_url: number;
|
||||
supported_mime_types: string[];
|
||||
};
|
||||
media_attachments: {
|
||||
supported_mime_types: string[];
|
||||
image_size_limit: number;
|
||||
image_matrix_limit: number;
|
||||
video_size_limit: number;
|
||||
video_frame_limit: number;
|
||||
video_matrix_limit: number;
|
||||
};
|
||||
polls: {
|
||||
max_options: number;
|
||||
max_characters_per_option: number;
|
||||
min_expiration: number;
|
||||
max_expiration: number;
|
||||
};
|
||||
};
|
||||
contact_account: APIAccount;
|
||||
rules: APIInstanceRule[];
|
||||
}
|
||||
|
||||
export interface APIInstanceRule {
|
||||
id: string;
|
||||
text: string;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
export interface APIList {
|
||||
id: string;
|
||||
title: string;
|
||||
replies_policy: APIRepliesPolicy;
|
||||
}
|
||||
|
||||
export type APIRepliesPolicy = "followed" | "list" | "none";
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
export interface APIMarker {
|
||||
home: {
|
||||
last_read_id: string;
|
||||
version: number;
|
||||
updated_at: string;
|
||||
};
|
||||
notifications: {
|
||||
last_read_id: string;
|
||||
version: number;
|
||||
updated_at: string;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
export interface APIMention {
|
||||
id: string;
|
||||
username: string;
|
||||
url: string;
|
||||
acct: string;
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APINotification {
|
||||
account: APIAccount;
|
||||
created_at: string;
|
||||
id: string;
|
||||
status?: APIStatus;
|
||||
type: APINotificationType;
|
||||
}
|
||||
|
||||
export type APINotificationType = string;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import type { APIPollOption } from "./poll_option";
|
||||
|
||||
export interface APIPoll {
|
||||
id: string;
|
||||
expires_at: string | null;
|
||||
expired: boolean;
|
||||
multiple: boolean;
|
||||
votes_count: number;
|
||||
options: APIPollOption[];
|
||||
voted: boolean;
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
export interface APIPollOption {
|
||||
title: string;
|
||||
votes_count: number | null;
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
export interface APIPreferences {
|
||||
"posting:default:visibility": "public" | "unlisted" | "private" | "direct";
|
||||
"posting:default:sensitive": boolean;
|
||||
"posting:default:language": string | null;
|
||||
"reading:expand:media": "default" | "show_all" | "hide_all";
|
||||
"reading:expand:spoilers": boolean;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
export interface APIAlerts {
|
||||
follow: boolean;
|
||||
favourite: boolean;
|
||||
mention: boolean;
|
||||
reblog: boolean;
|
||||
poll: boolean;
|
||||
}
|
||||
|
||||
export interface APIPushSubscription {
|
||||
id: string;
|
||||
endpoint: string;
|
||||
server_key: string;
|
||||
alerts: APIAlerts;
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
export interface APIRelationship {
|
||||
id: string;
|
||||
following: boolean;
|
||||
followed_by: boolean;
|
||||
blocking: boolean;
|
||||
blocked_by: boolean;
|
||||
muting: boolean;
|
||||
muting_notifications: boolean;
|
||||
requested: boolean;
|
||||
domain_blocking: boolean;
|
||||
showing_reblogs: boolean;
|
||||
endorsed: boolean;
|
||||
notifying: boolean;
|
||||
note: string;
|
||||
languages: string[];
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
|
||||
export interface APIReport {
|
||||
id: string;
|
||||
action_taken: boolean;
|
||||
action_taken_at: string | null;
|
||||
category: APICategory;
|
||||
comment: string;
|
||||
forwarded: boolean;
|
||||
status_ids: string[] | null;
|
||||
rule_ids: string[] | null;
|
||||
target_account: APIAccount;
|
||||
}
|
||||
|
||||
export type APICategory = "spam" | "violation" | "other";
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
import type { APITag } from "./tag";
|
||||
|
||||
export interface APIResults {
|
||||
accounts: APIAccount[];
|
||||
statuses: APIStatus[];
|
||||
hashtags: APITag[];
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
export interface APIRole {
|
||||
name: string;
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import type { APIAttachment } from "./attachment";
|
||||
import type { APIStatusParams } from "./status_params";
|
||||
|
||||
export interface APIScheduledStatus {
|
||||
id: string;
|
||||
scheduled_at: string;
|
||||
params: APIStatusParams;
|
||||
media_attachments: APIAttachment[];
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import type { APIField } from "./field";
|
||||
|
||||
export interface APISource {
|
||||
privacy: string | null;
|
||||
sensitive: boolean | null;
|
||||
language: string | null;
|
||||
note: string;
|
||||
fields: APIField[];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export interface APIStats {
|
||||
user_count: number;
|
||||
status_count: number;
|
||||
domain_count: number;
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
import type { APIAccount } from "./account";
|
||||
import type { APIApplication } from "./application";
|
||||
import type { APIAttachment } from "./attachment";
|
||||
import type { APICard } from "./card";
|
||||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIMention } from "./mention";
|
||||
import type { APIPoll } from "./poll";
|
||||
|
||||
export interface APIStatus {
|
||||
id: string;
|
||||
uri: string;
|
||||
url: string;
|
||||
account: APIAccount;
|
||||
in_reply_to_id: string | null;
|
||||
in_reply_to_account_id: string | null;
|
||||
reblog: APIStatus | null;
|
||||
content: string;
|
||||
created_at: string;
|
||||
emojis: APIEmoji[];
|
||||
replies_count: number;
|
||||
reblogs_count: number;
|
||||
favourites_count: number;
|
||||
reblogged: boolean | null;
|
||||
favourited: boolean | null;
|
||||
muted: boolean | null;
|
||||
sensitive: boolean;
|
||||
spoiler_text: string;
|
||||
visibility: "public" | "unlisted" | "private" | "direct";
|
||||
media_attachments: APIAttachment[];
|
||||
mentions: APIMention[];
|
||||
tags: APIStatusTag[];
|
||||
card: APICard | null;
|
||||
poll: APIPoll | null;
|
||||
application: APIApplication | null;
|
||||
language: string | null;
|
||||
pinned: boolean | null;
|
||||
bookmarked?: boolean;
|
||||
// These parameters are unique parameters in fedibird.com for quote.
|
||||
quote_id?: string;
|
||||
quote?: APIStatus | null;
|
||||
}
|
||||
|
||||
export interface APIStatusTag {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
export interface APIStatusParams {
|
||||
text: string;
|
||||
in_reply_to_id: string | null;
|
||||
media_ids: string[] | null;
|
||||
sensitive: boolean | null;
|
||||
spoiler_text: string | null;
|
||||
visibility: "public" | "unlisted" | "private" | "direct" | null;
|
||||
scheduled_at: string | null;
|
||||
application_id: number;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export interface APIStatusSource {
|
||||
id: string;
|
||||
text: string;
|
||||
spoiler_text: string;
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
import type { APIHistory } from "./history";
|
||||
|
||||
export interface APITag {
|
||||
name: string;
|
||||
url: string;
|
||||
history: APIHistory[];
|
||||
following?: boolean;
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
export interface APIToken {
|
||||
access_token: string;
|
||||
token_type: string;
|
||||
scope: string;
|
||||
created_at: number;
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
export interface APIURLs {
|
||||
streaming_api: string;
|
||||
}
|
||||
Loading…
Reference in a new issue