-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from h3poteto/iss-28
closes #28 Add all entities
- Loading branch information
Showing
22 changed files
with
179 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import Emoji from './emoji' | ||
import Source from './source' | ||
|
||
export default interface Account { | ||
id: number, | ||
username: string, | ||
acct: string, | ||
avatar: string, | ||
avatar_static: string, | ||
created_at: string, | ||
display_name: string, | ||
locked: boolean, | ||
created_at: string, | ||
followers_count: number, | ||
following_count: number, | ||
header: string, | ||
header_static: string, | ||
id: number, | ||
locked: boolean, | ||
note: string, | ||
source?: object, // Source | ||
statuses_count: number, | ||
note: string, | ||
url: string, | ||
username: string | ||
avatar: string, | ||
avatar_static: string, | ||
header: string, | ||
header_static: string, | ||
emojis: Emoji[], | ||
moved: Account | null, | ||
fields: object | null, | ||
bot: boolean | null, | ||
source?: Source | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export default interface Attachment { | ||
id: number, | ||
type: string, | ||
type: 'unknown' | 'image' | 'gifv' | 'video', | ||
url: string, | ||
remote_url: string, | ||
remote_url: string | null, | ||
preview_url: string, | ||
text_url: string, | ||
meta: object, | ||
description: string | ||
text_url: string | null, | ||
meta: object | null, | ||
description: string | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default interface Card { | ||
url: string, | ||
title: string, | ||
description: string, | ||
image: string | null, | ||
type: 'link' | 'photo' | 'video' | 'rich', | ||
author_name: string | null, | ||
author_url: string | null, | ||
provider_name: string | null, | ||
provider_url: string | null, | ||
html: string | null, | ||
width: number | null, | ||
height: number | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Status from './status' | ||
|
||
export default interface Context { | ||
ancestors: Status[], | ||
descendants: Status[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default interface Emoji { | ||
shortcode: string, | ||
static_url: string, | ||
url: string, | ||
visible_in_picker: boolean | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface Field { | ||
name: string, | ||
value: string, | ||
verified_at: string | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default interface Filter { | ||
id: number, | ||
phrase: string, | ||
context: string[], | ||
expires_at: string | null, | ||
irreversible: boolean, | ||
whole_word: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface History { | ||
day: string, | ||
uses: number, | ||
accounts: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Account from './account' | ||
import URLs from './urls' | ||
import Stats from './stats' | ||
|
||
export default interface Instance { | ||
uri: string, | ||
title: string, | ||
description: string, | ||
email: string, | ||
version: string, | ||
thumbnail: string | null, | ||
urls: URLs, | ||
stats: Stats, | ||
languages: string[], | ||
contact_account: Account | null | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface List { | ||
id: number, | ||
title: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default interface PushSubscription { | ||
id: number, | ||
endpoint: string, | ||
server_key: string, | ||
alerts: object | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default interface Relationship { | ||
id: number, | ||
following: boolean, | ||
followed_by: boolean, | ||
blocking: boolean, | ||
muting: boolean, | ||
muting_notifications: boolean, | ||
requested: boolean, | ||
domain_blocking: boolean, | ||
showing_reblogs: boolean, | ||
endorsed: boolean, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Account from './account' | ||
import Status from './status' | ||
import Tag from './tag' | ||
|
||
export default interface Results { | ||
accounts: Account[], | ||
statuses: Status[], | ||
hashtags: Tag[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Attachment from './attachment' | ||
|
||
export default interface ScheduledStatus { | ||
id: number, | ||
scheduled_at: string, | ||
params: object, | ||
media_attachments: Attachment[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default interface Source { | ||
privacy: string | null, | ||
sensitive: boolean | null, | ||
language: string | null, | ||
note: string, | ||
fields: object | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface Stats { | ||
user_count: number, | ||
status_count: number, | ||
domain_count: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default interface StatusParams { | ||
text: string, | ||
in_reply_to_id: string | null, | ||
media_ids: string[] | null, | ||
sensitive: boolean | null, | ||
spoiler_text: string | null, | ||
visibility: 'public' | 'unlisted' | 'private' | 'direct', | ||
scheduled_at: string | null, | ||
application_id: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import History from './history' | ||
|
||
export default interface Tag { | ||
name: string, | ||
url: string | ||
url: string, | ||
history: History[] | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default interface Token { | ||
access_token: string, | ||
token_type: string, | ||
scope: string, | ||
created_at: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default interface URLs { | ||
streaming_api: string | ||
} |