summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2023-01-09 16:00:49 +0100
committerGitHub <noreply@github.com>2023-01-10 00:00:49 +0900
commitfc921d8c1d80d221519317a7fcd33247ecbb2dc1 (patch)
treee7d8a742b3fe743c0bc44badfaedb78d36805d20
parentfix: Add comment property to DriveFile (#46) (diff)
downloadmisskey-fc921d8c1d80d221519317a7fcd33247ecbb2dc1.tar.gz
misskey-fc921d8c1d80d221519317a7fcd33247ecbb2dc1.tar.bz2
misskey-fc921d8c1d80d221519317a7fcd33247ecbb2dc1.zip
enhance: add missing InstanceMetadata fields (#50)
-rw-r--r--etc/misskey-js.api.md24
-rw-r--r--src/entities.ts21
2 files changed, 44 insertions, 1 deletions
diff --git a/etc/misskey-js.api.md b/etc/misskey-js.api.md
index 1a462ba4e9..bc3dbcaccf 100644
--- a/etc/misskey-js.api.md
+++ b/etc/misskey-js.api.md
@@ -270,6 +270,11 @@ type DateString = string;
// @public (undocumented)
type DetailedInstanceMetadata = LiteInstanceMetadata & {
+ pinnedPages: string[];
+ pinnedClipId: string | null;
+ cacheRemoteFiles: boolean;
+ requireSetup: boolean;
+ proxyAccountName: string | null;
features: Record<string, any>;
};
@@ -285,6 +290,7 @@ type DriveFile = {
size: number;
md5: string;
blurhash: string;
+ comment: string | null;
properties: Record<string, any>;
};
@@ -2264,17 +2270,30 @@ type LiteInstanceMetadata = {
name: string | null;
uri: string;
description: string | null;
+ langs: string[];
tosUrl: string | null;
+ repositoryUrl: string;
+ feedbackUrl: string;
disableRegistration: boolean;
disableLocalTimeline: boolean;
disableGlobalTimeline: boolean;
driveCapacityPerLocalUserMb: number;
driveCapacityPerRemoteUserMb: number;
+ emailRequiredForSignup: boolean;
enableHcaptcha: boolean;
hcaptchaSiteKey: string | null;
enableRecaptcha: boolean;
recaptchaSiteKey: string | null;
+ enableTurnstile: boolean;
+ turnstileSiteKey: string | null;
swPublickey: string | null;
+ themeColor: string | null;
+ mascotImageUrl: string | null;
+ bannerUrl: string | null;
+ errorImageUrl: string | null;
+ iconUrl: string | null;
+ backgroundImageUrl: string | null;
+ logoImageUrl: string | null;
maxNoteTextLength: number;
enableEmail: boolean;
enableTwitterIntegration: boolean;
@@ -2282,6 +2301,8 @@ type LiteInstanceMetadata = {
enableDiscordIntegration: boolean;
enableServiceWorker: boolean;
emojis: CustomEmoji[];
+ defaultDarkTheme: string | null;
+ defaultLightTheme: string | null;
ads: {
id: ID;
ratio: number;
@@ -2289,6 +2310,7 @@ type LiteInstanceMetadata = {
url: string;
imageUrl: string;
}[];
+ translatorAvailable: boolean;
};
// @public (undocumented)
@@ -2459,7 +2481,7 @@ type Notification_2 = {
});
// @public (undocumented)
-export const notificationTypes: readonly ["follow", "mention", "reply", "renote", "quote", "reaction", "pollVote", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app"];
+export const notificationTypes: readonly ["follow", "mention", "reply", "renote", "quote", "reaction", "pollVote", "pollEnded", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app"];
// @public (undocumented)
type OriginType = 'combined' | 'local' | 'remote';
diff --git a/src/entities.ts b/src/entities.ts
index 90cee3f4d1..7acffa32e7 100644
--- a/src/entities.ts
+++ b/src/entities.ts
@@ -260,17 +260,30 @@ export type LiteInstanceMetadata = {
name: string | null;
uri: string;
description: string | null;
+ langs: string[];
tosUrl: string | null;
+ repositoryUrl: string;
+ feedbackUrl: string;
disableRegistration: boolean;
disableLocalTimeline: boolean;
disableGlobalTimeline: boolean;
driveCapacityPerLocalUserMb: number;
driveCapacityPerRemoteUserMb: number;
+ emailRequiredForSignup: boolean;
enableHcaptcha: boolean;
hcaptchaSiteKey: string | null;
enableRecaptcha: boolean;
recaptchaSiteKey: string | null;
+ enableTurnstile: boolean;
+ turnstileSiteKey: string | null;
swPublickey: string | null;
+ themeColor: string | null;
+ mascotImageUrl: string | null;
+ bannerUrl: string | null;
+ errorImageUrl: string | null;
+ iconUrl: string | null;
+ backgroundImageUrl: string | null;
+ logoImageUrl: string | null;
maxNoteTextLength: number;
enableEmail: boolean;
enableTwitterIntegration: boolean;
@@ -278,6 +291,8 @@ export type LiteInstanceMetadata = {
enableDiscordIntegration: boolean;
enableServiceWorker: boolean;
emojis: CustomEmoji[];
+ defaultDarkTheme: string | null;
+ defaultLightTheme: string | null;
ads: {
id: ID;
ratio: number;
@@ -285,9 +300,15 @@ export type LiteInstanceMetadata = {
url: string;
imageUrl: string;
}[];
+ translatorAvailable: boolean;
};
export type DetailedInstanceMetadata = LiteInstanceMetadata & {
+ pinnedPages: string[];
+ pinnedClipId: string | null;
+ cacheRemoteFiles: boolean;
+ requireSetup: boolean;
+ proxyAccountName: string | null;
features: Record<string, any>;
};