upd: megalodon to v7
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace MisskeyEntity {
|
||||
export type GetAll = {
|
||||
tutorial: number;
|
||||
defaultNoteVisibility: "public" | "home" | "followers" | "specified";
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Announcement = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
text: string;
|
||||
title: string;
|
||||
isRead?: boolean;
|
||||
};
|
||||
export type Announcement = {
|
||||
id: string
|
||||
createdAt: string
|
||||
updatedAt: string | null
|
||||
text: string
|
||||
title: string
|
||||
imageurl: string | null
|
||||
isRead?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace MisskeyEntity {
|
||||
export type App = {
|
||||
id: string;
|
||||
name: string;
|
||||
callbackUrl: string;
|
||||
permission: Array<string>;
|
||||
secret: string;
|
||||
};
|
||||
export type App = {
|
||||
id: string
|
||||
name: string
|
||||
callbackUrl: string
|
||||
permission: Array<string>
|
||||
secret: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/// <reference path="userDetail.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Blocking = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
blockeeId: string;
|
||||
blockee: UserDetail;
|
||||
};
|
||||
export type Blocking = {
|
||||
id: string
|
||||
createdAt: string
|
||||
blockeeId: string
|
||||
blockee: UserDetail
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/// <reference path="note.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type CreatedNote = {
|
||||
createdNote: Note;
|
||||
};
|
||||
export type CreatedNote = {
|
||||
createdNote: Note
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Emoji = {
|
||||
name: string;
|
||||
host: string | null;
|
||||
url: string;
|
||||
aliases: Array<string>;
|
||||
category: string;
|
||||
};
|
||||
export type Emoji = {
|
||||
name: string
|
||||
url: string
|
||||
aliases: Array<string>
|
||||
category: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/// <reference path="note.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Favorite = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
noteId: string;
|
||||
note: Note;
|
||||
};
|
||||
export type Favorite = {
|
||||
id: string
|
||||
createdAt: string
|
||||
noteId: string
|
||||
note: Note
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Field = {
|
||||
name: string;
|
||||
value: string;
|
||||
verified?: string;
|
||||
};
|
||||
}
|
||||
@@ -1,20 +1,18 @@
|
||||
namespace MisskeyEntity {
|
||||
export type File = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
name: string;
|
||||
type: string;
|
||||
md5: string;
|
||||
size: number;
|
||||
isSensitive: boolean;
|
||||
properties: {
|
||||
width: number;
|
||||
height: number;
|
||||
avgColor: string;
|
||||
};
|
||||
url: string;
|
||||
thumbnailUrl: string;
|
||||
comment: string;
|
||||
blurhash: string;
|
||||
};
|
||||
export type File = {
|
||||
id: string
|
||||
createdAt: string
|
||||
name: string
|
||||
type: string
|
||||
md5: string
|
||||
size: number
|
||||
isSensitive: boolean
|
||||
properties: {
|
||||
width: number
|
||||
height: number
|
||||
avgColor: string
|
||||
}
|
||||
url: string
|
||||
thumbnailUrl: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/// <reference path="user.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type FollowRequest = {
|
||||
id: string;
|
||||
follower: User;
|
||||
followee: User;
|
||||
};
|
||||
export type FollowRequest = {
|
||||
id: string
|
||||
follower: User
|
||||
followee: User
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/// <reference path="userDetail.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Follower = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
followeeId: string;
|
||||
followerId: string;
|
||||
follower: UserDetail;
|
||||
};
|
||||
export type Follower = {
|
||||
id: string
|
||||
createdAt: string
|
||||
followeeId: string
|
||||
followerId: string
|
||||
follower: UserDetail
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/// <reference path="userDetail.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Following = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
followeeId: string;
|
||||
followerId: string;
|
||||
followee: UserDetail;
|
||||
};
|
||||
export type Following = {
|
||||
id: string
|
||||
createdAt: string
|
||||
followeeId: string
|
||||
followerId: string
|
||||
followee: UserDetail
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Hashtag = {
|
||||
tag: string;
|
||||
chart: Array<number>;
|
||||
usersCount: number;
|
||||
};
|
||||
export type Hashtag = {
|
||||
tag: string
|
||||
chart: Array<number>
|
||||
usersCount: number
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace MisskeyEntity {
|
||||
export type List = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
name: string;
|
||||
userIds: Array<string>;
|
||||
};
|
||||
export type List = {
|
||||
id: string
|
||||
createdAt: string
|
||||
name: string
|
||||
userIds: Array<string>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,47 @@
|
||||
/// <reference path="emoji.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Meta = {
|
||||
maintainerName: string;
|
||||
maintainerEmail: string;
|
||||
name: string;
|
||||
version: string;
|
||||
uri: string;
|
||||
description: string;
|
||||
langs: Array<string>;
|
||||
disableRegistration: boolean;
|
||||
disableLocalTimeline: boolean;
|
||||
bannerUrl: string;
|
||||
maxNoteTextLength: 3000;
|
||||
emojis: Array<Emoji>;
|
||||
};
|
||||
export type Meta = {
|
||||
maintainerName: string
|
||||
maintainerEmail: string
|
||||
name: string
|
||||
version: string
|
||||
uri: string
|
||||
description: string
|
||||
langs: Array<string>
|
||||
disableRegistration: boolean
|
||||
disableLocalTimeline: boolean
|
||||
bannerUrl: string
|
||||
maxNoteTextLength: number
|
||||
emojis: Array<Emoji>
|
||||
policies: {
|
||||
gtlAvailable: boolean
|
||||
ltlAvailable: boolean
|
||||
canPublicNote: boolean
|
||||
canInvite: boolean
|
||||
canManageCustomEmojis: boolean
|
||||
canHideAds: boolean
|
||||
driveCapacityMb: number
|
||||
pinLimit: number
|
||||
antennaLimit: number
|
||||
wordMuteLimit: number
|
||||
webhookLimit: number
|
||||
clipLimit: number
|
||||
noteEachClipsLimit: number
|
||||
userListLimit: number
|
||||
userEachUserListsLimit: number
|
||||
rateLimitFactor: number
|
||||
}
|
||||
features: {
|
||||
registration: boolean
|
||||
emailRequiredForSignup: boolean
|
||||
elasticsearch: boolean
|
||||
hcaptcha: boolean
|
||||
recaptcha: boolean
|
||||
turnstile: boolean
|
||||
objectStorage: boolean
|
||||
serviceWorker: boolean
|
||||
miauth: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/// <reference path="userDetail.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Mute = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
muteeId: string;
|
||||
mutee: UserDetail;
|
||||
};
|
||||
export type Mute = {
|
||||
id: string
|
||||
createdAt: string
|
||||
muteeId: string
|
||||
mutee: UserDetail
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,29 +4,31 @@
|
||||
/// <reference path="poll.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Note = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
userId: string;
|
||||
user: User;
|
||||
text: string | null;
|
||||
cw: string | null;
|
||||
visibility: "public" | "home" | "followers" | "specified";
|
||||
renoteCount: number;
|
||||
repliesCount: number;
|
||||
reactions: { [key: string]: number };
|
||||
emojis: Array<Emoji>;
|
||||
fileIds: Array<string>;
|
||||
files: Array<File>;
|
||||
replyId: string | null;
|
||||
renoteId: string | null;
|
||||
uri?: string;
|
||||
reply?: Note;
|
||||
renote?: Note;
|
||||
viaMobile?: boolean;
|
||||
tags?: Array<string>;
|
||||
poll?: Poll;
|
||||
mentions?: Array<string>;
|
||||
myReaction?: string;
|
||||
};
|
||||
export type Note = {
|
||||
id: string
|
||||
createdAt: string
|
||||
userId: string
|
||||
user: User
|
||||
text: string | null
|
||||
cw: string | null
|
||||
visibility: 'public' | 'home' | 'followers' | 'specified'
|
||||
renoteCount: number
|
||||
repliesCount: number
|
||||
reactions: { [key: string]: number }
|
||||
// This field includes only remote emojis
|
||||
reactionEmojis: { [key: string]: string }
|
||||
emojis: Array<Emoji> | { [key: string]: string }
|
||||
fileIds: Array<string>
|
||||
files: Array<File>
|
||||
replyId: string | null
|
||||
renoteId: string | null
|
||||
uri?: string
|
||||
reply?: Note
|
||||
renote?: Note
|
||||
viaMobile?: boolean
|
||||
tags?: Array<string>
|
||||
poll?: Poll
|
||||
mentions?: Array<string>
|
||||
myReaction?: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
/// <reference path="note.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Notification = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
// https://github.com/syuilo/misskey/blob/056942391aee135eb6c77aaa63f6ed5741d701a6/src/models/entities/notification.ts#L50-L62
|
||||
type: NotificationType;
|
||||
userId: string;
|
||||
user: User;
|
||||
note?: Note;
|
||||
reaction?: string;
|
||||
};
|
||||
export type Notification = {
|
||||
id: string
|
||||
createdAt: string
|
||||
// https://github.com/syuilo/misskey/blob/056942391aee135eb6c77aaa63f6ed5741d701a6/src/models/entities/notification.ts#L50-L62
|
||||
type: NotificationType
|
||||
userId: string
|
||||
user: User
|
||||
note?: Note
|
||||
reaction?: string
|
||||
}
|
||||
|
||||
export type NotificationType = string;
|
||||
export type NotificationType = string
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Choice = {
|
||||
text: string;
|
||||
votes: number;
|
||||
isVoted: boolean;
|
||||
};
|
||||
export type Choice = {
|
||||
text: string
|
||||
votes: number
|
||||
isVoted: boolean
|
||||
}
|
||||
|
||||
export type Poll = {
|
||||
multiple: boolean;
|
||||
expiresAt: string;
|
||||
choices: Array<Choice>;
|
||||
};
|
||||
export type Poll = {
|
||||
multiple: boolean
|
||||
expiresAt: string
|
||||
choices: Array<Choice>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
/// <reference path="user.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type Reaction = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
user: User;
|
||||
url?: string;
|
||||
type: string;
|
||||
};
|
||||
export type Reaction = {
|
||||
id: string
|
||||
createdAt: string
|
||||
user: User
|
||||
type: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Relation = {
|
||||
id: string;
|
||||
isFollowing: boolean;
|
||||
hasPendingFollowRequestFromYou: boolean;
|
||||
hasPendingFollowRequestToYou: boolean;
|
||||
isFollowed: boolean;
|
||||
isBlocking: boolean;
|
||||
isBlocked: boolean;
|
||||
isMuted: boolean;
|
||||
};
|
||||
export type Relation = {
|
||||
id: string
|
||||
isFollowing: boolean
|
||||
hasPendingFollowRequestFromYou: boolean
|
||||
hasPendingFollowRequestToYou: boolean
|
||||
isFollowed: boolean
|
||||
isBlocking: boolean
|
||||
isBlocked: boolean
|
||||
isMuted: boolean
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Session = {
|
||||
token: string;
|
||||
url: string;
|
||||
};
|
||||
export type Session = {
|
||||
token: string
|
||||
url: string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace MisskeyEntity {
|
||||
export type State = {
|
||||
isFavorited: boolean;
|
||||
isMutedThread: boolean;
|
||||
isWatching: boolean;
|
||||
};
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace MisskeyEntity {
|
||||
export type Stats = {
|
||||
notesCount: number;
|
||||
originalNotesCount: number;
|
||||
usersCount: number;
|
||||
originalUsersCount: number;
|
||||
instances: number;
|
||||
};
|
||||
export type Stats = {
|
||||
notesCount: number
|
||||
originalNotesCount: number
|
||||
usersCount: number
|
||||
originalUsersCount: number
|
||||
instances: number
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/// <reference path="emoji.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type User = {
|
||||
id: string;
|
||||
name: string;
|
||||
username: string;
|
||||
host: string | null;
|
||||
avatarUrl: string;
|
||||
avatarColor: string;
|
||||
emojis: Array<Emoji>;
|
||||
};
|
||||
export type User = {
|
||||
id: string
|
||||
name: string
|
||||
username: string
|
||||
host: string | null
|
||||
avatarUrl: string
|
||||
avatarColor: string
|
||||
emojis: Array<Emoji> | { [key: string]: string }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,34 +1,32 @@
|
||||
/// <reference path="emoji.ts" />
|
||||
/// <reference path="field.ts" />
|
||||
/// <reference path="note.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type UserDetail = {
|
||||
id: string;
|
||||
name: string;
|
||||
username: string;
|
||||
host: string | null;
|
||||
avatarUrl: string;
|
||||
avatarColor: string;
|
||||
isAdmin: boolean;
|
||||
isModerator: boolean;
|
||||
isBot: boolean;
|
||||
isCat: boolean;
|
||||
emojis: Array<Emoji>;
|
||||
createdAt: string;
|
||||
bannerUrl: string;
|
||||
bannerColor: string;
|
||||
isLocked: boolean;
|
||||
isSilenced: boolean;
|
||||
isSuspended: boolean;
|
||||
description: string;
|
||||
followersCount: number;
|
||||
followingCount: number;
|
||||
notesCount: number;
|
||||
avatarId: string;
|
||||
bannerId: string;
|
||||
pinnedNoteIds?: Array<string>;
|
||||
pinnedNotes?: Array<Note>;
|
||||
fields: Array<Field>;
|
||||
};
|
||||
export type UserDetail = {
|
||||
id: string
|
||||
name: string
|
||||
username: string
|
||||
host: string | null
|
||||
avatarUrl: string
|
||||
avatarColor: string
|
||||
isAdmin: boolean
|
||||
isModerator: boolean
|
||||
isBot: boolean
|
||||
isCat: boolean
|
||||
emojis: Array<Emoji> | { [key: string]: string }
|
||||
createdAt: string
|
||||
bannerUrl: string
|
||||
bannerColor: string
|
||||
isLocked: boolean
|
||||
isSilenced: boolean
|
||||
isSuspended: boolean
|
||||
description: string
|
||||
followersCount: number
|
||||
followingCount: number
|
||||
notesCount: number
|
||||
avatarId: string
|
||||
bannerId: string
|
||||
pinnedNoteIds?: Array<string>
|
||||
pinnedNotes?: Array<Note>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
/// <reference path="emoji.ts" />
|
||||
/// <reference path="field.ts" />
|
||||
/// <reference path="note.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type UserDetailMe = {
|
||||
id: string;
|
||||
name: string;
|
||||
username: string;
|
||||
host: string | null;
|
||||
avatarUrl: string;
|
||||
avatarColor: string;
|
||||
isAdmin: boolean;
|
||||
isModerator: boolean;
|
||||
isBot: boolean;
|
||||
isCat: boolean;
|
||||
emojis: Array<Emoji>;
|
||||
createdAt: string;
|
||||
bannerUrl: string;
|
||||
bannerColor: string;
|
||||
isLocked: boolean;
|
||||
isSilenced: boolean;
|
||||
isSuspended: boolean;
|
||||
description: string;
|
||||
followersCount: number;
|
||||
followingCount: number;
|
||||
notesCount: number;
|
||||
avatarId: string;
|
||||
bannerId: string;
|
||||
pinnedNoteIds?: Array<string>;
|
||||
pinnedNotes?: Array<Note>;
|
||||
fields: Array<Field>;
|
||||
alwaysMarkNsfw: boolean;
|
||||
lang: string | null;
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
/// <reference path="user.ts" />
|
||||
|
||||
namespace MisskeyEntity {
|
||||
export type UserKey = {
|
||||
accessToken: string;
|
||||
user: User;
|
||||
};
|
||||
export type UserKey = {
|
||||
accessToken: string
|
||||
user: User
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user