From 27354f2d74fb3e037f35d4932eb8904ca8685a0d Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 14 Apr 2024 01:22:02 -1000 Subject: [PATCH] Delete old type files --- types/entities-2/account.ts | 35 ------------------- types/entities-2/activity.ts | 6 ---- types/entities-2/announcement.ts | 39 --------------------- types/entities-2/application.ts | 5 --- types/entities-2/async_attachment.ts | 13 ------- types/entities-2/attachment.ts | 47 ------------------------- types/entities-2/card.ts | 16 --------- types/entities-2/context.ts | 6 ---- types/entities-2/conversation.ts | 9 ----- types/entities-2/emoji.ts | 7 ---- types/entities-2/featured_tag.ts | 6 ---- types/entities-2/field.ts | 5 --- types/entities-2/filter.ts | 10 ------ types/entities-2/history.ts | 5 --- types/entities-2/identity_proof.ts | 7 ---- types/entities-2/instance.ts | 49 --------------------------- types/entities-2/list.ts | 7 ---- types/entities-2/marker.ts | 12 ------- types/entities-2/mention.ts | 6 ---- types/entities-2/notification.ts | 12 ------- types/entities-2/poll.ts | 11 ------ types/entities-2/poll_option.ts | 4 --- types/entities-2/preferences.ts | 7 ---- types/entities-2/push_subscription.ts | 14 -------- types/entities-2/relationship.ts | 16 --------- types/entities-2/report.ts | 15 -------- types/entities-2/results.ts | 9 ----- types/entities-2/role.ts | 3 -- types/entities-2/scheduled_status.ts | 9 ----- types/entities-2/source.ts | 9 ----- types/entities-2/stats.ts | 5 --- types/entities-2/status.ts | 46 ------------------------- types/entities-2/status_params.ts | 10 ------ types/entities-2/status_source.ts | 5 --- types/entities-2/tag.ts | 8 ----- types/entities-2/token.ts | 6 ---- types/entities-2/urls.ts | 3 -- 37 files changed, 482 deletions(-) delete mode 100644 types/entities-2/account.ts delete mode 100644 types/entities-2/activity.ts delete mode 100644 types/entities-2/announcement.ts delete mode 100644 types/entities-2/application.ts delete mode 100644 types/entities-2/async_attachment.ts delete mode 100644 types/entities-2/attachment.ts delete mode 100644 types/entities-2/card.ts delete mode 100644 types/entities-2/context.ts delete mode 100644 types/entities-2/conversation.ts delete mode 100644 types/entities-2/emoji.ts delete mode 100644 types/entities-2/featured_tag.ts delete mode 100644 types/entities-2/field.ts delete mode 100644 types/entities-2/filter.ts delete mode 100644 types/entities-2/history.ts delete mode 100644 types/entities-2/identity_proof.ts delete mode 100644 types/entities-2/instance.ts delete mode 100644 types/entities-2/list.ts delete mode 100644 types/entities-2/marker.ts delete mode 100644 types/entities-2/mention.ts delete mode 100644 types/entities-2/notification.ts delete mode 100644 types/entities-2/poll.ts delete mode 100644 types/entities-2/poll_option.ts delete mode 100644 types/entities-2/preferences.ts delete mode 100644 types/entities-2/push_subscription.ts delete mode 100644 types/entities-2/relationship.ts delete mode 100644 types/entities-2/report.ts delete mode 100644 types/entities-2/results.ts delete mode 100644 types/entities-2/role.ts delete mode 100644 types/entities-2/scheduled_status.ts delete mode 100644 types/entities-2/source.ts delete mode 100644 types/entities-2/stats.ts delete mode 100644 types/entities-2/status.ts delete mode 100644 types/entities-2/status_params.ts delete mode 100644 types/entities-2/status_source.ts delete mode 100644 types/entities-2/tag.ts delete mode 100644 types/entities-2/token.ts delete mode 100644 types/entities-2/urls.ts diff --git a/types/entities-2/account.ts b/types/entities-2/account.ts deleted file mode 100644 index bd77eedb..00000000 --- a/types/entities-2/account.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/activity.ts b/types/entities-2/activity.ts deleted file mode 100644 index 0b0b286b..00000000 --- a/types/entities-2/activity.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface APIActivity { - week: string; - statuses: string; - logins: string; - registrations: string; -} diff --git a/types/entities-2/announcement.ts b/types/entities-2/announcement.ts deleted file mode 100644 index 01147efc..00000000 --- a/types/entities-2/announcement.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/application.ts b/types/entities-2/application.ts deleted file mode 100644 index ad047ed6..00000000 --- a/types/entities-2/application.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface APIApplication { - name: string; - website?: string | null; - vapid_key?: string | null; -} diff --git a/types/entities-2/async_attachment.ts b/types/entities-2/async_attachment.ts deleted file mode 100644 index ede90e89..00000000 --- a/types/entities-2/async_attachment.ts +++ /dev/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; -} diff --git a/types/entities-2/attachment.ts b/types/entities-2/attachment.ts deleted file mode 100644 index c8e64a6f..00000000 --- a/types/entities-2/attachment.ts +++ /dev/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; -} diff --git a/types/entities-2/card.ts b/types/entities-2/card.ts deleted file mode 100644 index 01ed6b64..00000000 --- a/types/entities-2/card.ts +++ /dev/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; -} diff --git a/types/entities-2/context.ts b/types/entities-2/context.ts deleted file mode 100644 index 29978aa8..00000000 --- a/types/entities-2/context.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { APIStatus } from "./status"; - -export interface APIContext { - ancestors: APIStatus[]; - descendants: APIStatus[]; -} diff --git a/types/entities-2/conversation.ts b/types/entities-2/conversation.ts deleted file mode 100644 index bc2cf5d5..00000000 --- a/types/entities-2/conversation.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/emoji.ts b/types/entities-2/emoji.ts deleted file mode 100644 index d4732931..00000000 --- a/types/entities-2/emoji.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface APIEmoji { - shortcode: string; - static_url: string; - url: string; - visible_in_picker: boolean; - category?: string; -} diff --git a/types/entities-2/featured_tag.ts b/types/entities-2/featured_tag.ts deleted file mode 100644 index 75d03cc1..00000000 --- a/types/entities-2/featured_tag.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface APIFeaturedTag { - id: string; - name: string; - statuses_count: number; - last_status_at: string; -} diff --git a/types/entities-2/field.ts b/types/entities-2/field.ts deleted file mode 100644 index 9c9bb666..00000000 --- a/types/entities-2/field.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface APIField { - name: string; - value: string; - verified_at: string | null; -} diff --git a/types/entities-2/filter.ts b/types/entities-2/filter.ts deleted file mode 100644 index 46a5438f..00000000 --- a/types/entities-2/filter.ts +++ /dev/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; diff --git a/types/entities-2/history.ts b/types/entities-2/history.ts deleted file mode 100644 index 312ada9b..00000000 --- a/types/entities-2/history.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface APIHistory { - day: string; - uses: number; - accounts: number; -} diff --git a/types/entities-2/identity_proof.ts b/types/entities-2/identity_proof.ts deleted file mode 100644 index 85334ef3..00000000 --- a/types/entities-2/identity_proof.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface APIIdentityProof { - provider: string; - provider_username: string; - updated_at: string; - proof_url: string; - profile_url: string; -} diff --git a/types/entities-2/instance.ts b/types/entities-2/instance.ts deleted file mode 100644 index ab693073..00000000 --- a/types/entities-2/instance.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/list.ts b/types/entities-2/list.ts deleted file mode 100644 index 08eedfc4..00000000 --- a/types/entities-2/list.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface APIList { - id: string; - title: string; - replies_policy: APIRepliesPolicy; -} - -export type APIRepliesPolicy = "followed" | "list" | "none"; diff --git a/types/entities-2/marker.ts b/types/entities-2/marker.ts deleted file mode 100644 index 6468f6a4..00000000 --- a/types/entities-2/marker.ts +++ /dev/null @@ -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; - }; -} diff --git a/types/entities-2/mention.ts b/types/entities-2/mention.ts deleted file mode 100644 index d2d2cfd7..00000000 --- a/types/entities-2/mention.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface APIMention { - id: string; - username: string; - url: string; - acct: string; -} diff --git a/types/entities-2/notification.ts b/types/entities-2/notification.ts deleted file mode 100644 index 7eb3815a..00000000 --- a/types/entities-2/notification.ts +++ /dev/null @@ -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; diff --git a/types/entities-2/poll.ts b/types/entities-2/poll.ts deleted file mode 100644 index 562a004d..00000000 --- a/types/entities-2/poll.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/poll_option.ts b/types/entities-2/poll_option.ts deleted file mode 100644 index 183c0c3c..00000000 --- a/types/entities-2/poll_option.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface APIPollOption { - title: string; - votes_count: number | null; -} diff --git a/types/entities-2/preferences.ts b/types/entities-2/preferences.ts deleted file mode 100644 index 7eacab1d..00000000 --- a/types/entities-2/preferences.ts +++ /dev/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; -} diff --git a/types/entities-2/push_subscription.ts b/types/entities-2/push_subscription.ts deleted file mode 100644 index a20095ff..00000000 --- a/types/entities-2/push_subscription.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/relationship.ts b/types/entities-2/relationship.ts deleted file mode 100644 index 8715757b..00000000 --- a/types/entities-2/relationship.ts +++ /dev/null @@ -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[]; -} diff --git a/types/entities-2/report.ts b/types/entities-2/report.ts deleted file mode 100644 index 13157837..00000000 --- a/types/entities-2/report.ts +++ /dev/null @@ -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"; diff --git a/types/entities-2/results.ts b/types/entities-2/results.ts deleted file mode 100644 index f8d7180e..00000000 --- a/types/entities-2/results.ts +++ /dev/null @@ -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[]; -} diff --git a/types/entities-2/role.ts b/types/entities-2/role.ts deleted file mode 100644 index 6fa60f44..00000000 --- a/types/entities-2/role.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface APIRole { - name: string; -} diff --git a/types/entities-2/scheduled_status.ts b/types/entities-2/scheduled_status.ts deleted file mode 100644 index d2a34fb1..00000000 --- a/types/entities-2/scheduled_status.ts +++ /dev/null @@ -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[]; -} diff --git a/types/entities-2/source.ts b/types/entities-2/source.ts deleted file mode 100644 index 54b9e0a2..00000000 --- a/types/entities-2/source.ts +++ /dev/null @@ -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[]; -} diff --git a/types/entities-2/stats.ts b/types/entities-2/stats.ts deleted file mode 100644 index 8790d502..00000000 --- a/types/entities-2/stats.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface APIStats { - user_count: number; - status_count: number; - domain_count: number; -} diff --git a/types/entities-2/status.ts b/types/entities-2/status.ts deleted file mode 100644 index 7c9840ab..00000000 --- a/types/entities-2/status.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/status_params.ts b/types/entities-2/status_params.ts deleted file mode 100644 index 9aa76256..00000000 --- a/types/entities-2/status_params.ts +++ /dev/null @@ -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; -} diff --git a/types/entities-2/status_source.ts b/types/entities-2/status_source.ts deleted file mode 100644 index 81c896fb..00000000 --- a/types/entities-2/status_source.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface APIStatusSource { - id: string; - text: string; - spoiler_text: string; -} diff --git a/types/entities-2/tag.ts b/types/entities-2/tag.ts deleted file mode 100644 index 2368f24f..00000000 --- a/types/entities-2/tag.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { APIHistory } from "./history"; - -export interface APITag { - name: string; - url: string; - history: APIHistory[]; - following?: boolean; -} diff --git a/types/entities-2/token.ts b/types/entities-2/token.ts deleted file mode 100644 index 1beee10e..00000000 --- a/types/entities-2/token.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface APIToken { - access_token: string; - token_type: string; - scope: string; - created_at: number; -} diff --git a/types/entities-2/urls.ts b/types/entities-2/urls.ts deleted file mode 100644 index efff795f..00000000 --- a/types/entities-2/urls.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface APIURLs { - streaming_api: string; -}