mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 09:13:08 +02:00
enhance: add missing InstanceMetadata fields (#50)
This commit is contained in:
parent
c89374c321
commit
fc921d8c1d
2 changed files with 44 additions and 1 deletions
|
@ -270,6 +270,11 @@ type DateString = string;
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
||||||
|
pinnedPages: string[];
|
||||||
|
pinnedClipId: string | null;
|
||||||
|
cacheRemoteFiles: boolean;
|
||||||
|
requireSetup: boolean;
|
||||||
|
proxyAccountName: string | null;
|
||||||
features: Record<string, any>;
|
features: Record<string, any>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -285,6 +290,7 @@ type DriveFile = {
|
||||||
size: number;
|
size: number;
|
||||||
md5: string;
|
md5: string;
|
||||||
blurhash: string;
|
blurhash: string;
|
||||||
|
comment: string | null;
|
||||||
properties: Record<string, any>;
|
properties: Record<string, any>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2264,17 +2270,30 @@ type LiteInstanceMetadata = {
|
||||||
name: string | null;
|
name: string | null;
|
||||||
uri: string;
|
uri: string;
|
||||||
description: string | null;
|
description: string | null;
|
||||||
|
langs: string[];
|
||||||
tosUrl: string | null;
|
tosUrl: string | null;
|
||||||
|
repositoryUrl: string;
|
||||||
|
feedbackUrl: string;
|
||||||
disableRegistration: boolean;
|
disableRegistration: boolean;
|
||||||
disableLocalTimeline: boolean;
|
disableLocalTimeline: boolean;
|
||||||
disableGlobalTimeline: boolean;
|
disableGlobalTimeline: boolean;
|
||||||
driveCapacityPerLocalUserMb: number;
|
driveCapacityPerLocalUserMb: number;
|
||||||
driveCapacityPerRemoteUserMb: number;
|
driveCapacityPerRemoteUserMb: number;
|
||||||
|
emailRequiredForSignup: boolean;
|
||||||
enableHcaptcha: boolean;
|
enableHcaptcha: boolean;
|
||||||
hcaptchaSiteKey: string | null;
|
hcaptchaSiteKey: string | null;
|
||||||
enableRecaptcha: boolean;
|
enableRecaptcha: boolean;
|
||||||
recaptchaSiteKey: string | null;
|
recaptchaSiteKey: string | null;
|
||||||
|
enableTurnstile: boolean;
|
||||||
|
turnstileSiteKey: string | null;
|
||||||
swPublickey: 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;
|
maxNoteTextLength: number;
|
||||||
enableEmail: boolean;
|
enableEmail: boolean;
|
||||||
enableTwitterIntegration: boolean;
|
enableTwitterIntegration: boolean;
|
||||||
|
@ -2282,6 +2301,8 @@ type LiteInstanceMetadata = {
|
||||||
enableDiscordIntegration: boolean;
|
enableDiscordIntegration: boolean;
|
||||||
enableServiceWorker: boolean;
|
enableServiceWorker: boolean;
|
||||||
emojis: CustomEmoji[];
|
emojis: CustomEmoji[];
|
||||||
|
defaultDarkTheme: string | null;
|
||||||
|
defaultLightTheme: string | null;
|
||||||
ads: {
|
ads: {
|
||||||
id: ID;
|
id: ID;
|
||||||
ratio: number;
|
ratio: number;
|
||||||
|
@ -2289,6 +2310,7 @@ type LiteInstanceMetadata = {
|
||||||
url: string;
|
url: string;
|
||||||
imageUrl: string;
|
imageUrl: string;
|
||||||
}[];
|
}[];
|
||||||
|
translatorAvailable: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -2459,7 +2481,7 @@ type Notification_2 = {
|
||||||
});
|
});
|
||||||
|
|
||||||
// @public (undocumented)
|
// @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)
|
// @public (undocumented)
|
||||||
type OriginType = 'combined' | 'local' | 'remote';
|
type OriginType = 'combined' | 'local' | 'remote';
|
||||||
|
|
|
@ -260,17 +260,30 @@ export type LiteInstanceMetadata = {
|
||||||
name: string | null;
|
name: string | null;
|
||||||
uri: string;
|
uri: string;
|
||||||
description: string | null;
|
description: string | null;
|
||||||
|
langs: string[];
|
||||||
tosUrl: string | null;
|
tosUrl: string | null;
|
||||||
|
repositoryUrl: string;
|
||||||
|
feedbackUrl: string;
|
||||||
disableRegistration: boolean;
|
disableRegistration: boolean;
|
||||||
disableLocalTimeline: boolean;
|
disableLocalTimeline: boolean;
|
||||||
disableGlobalTimeline: boolean;
|
disableGlobalTimeline: boolean;
|
||||||
driveCapacityPerLocalUserMb: number;
|
driveCapacityPerLocalUserMb: number;
|
||||||
driveCapacityPerRemoteUserMb: number;
|
driveCapacityPerRemoteUserMb: number;
|
||||||
|
emailRequiredForSignup: boolean;
|
||||||
enableHcaptcha: boolean;
|
enableHcaptcha: boolean;
|
||||||
hcaptchaSiteKey: string | null;
|
hcaptchaSiteKey: string | null;
|
||||||
enableRecaptcha: boolean;
|
enableRecaptcha: boolean;
|
||||||
recaptchaSiteKey: string | null;
|
recaptchaSiteKey: string | null;
|
||||||
|
enableTurnstile: boolean;
|
||||||
|
turnstileSiteKey: string | null;
|
||||||
swPublickey: 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;
|
maxNoteTextLength: number;
|
||||||
enableEmail: boolean;
|
enableEmail: boolean;
|
||||||
enableTwitterIntegration: boolean;
|
enableTwitterIntegration: boolean;
|
||||||
|
@ -278,6 +291,8 @@ export type LiteInstanceMetadata = {
|
||||||
enableDiscordIntegration: boolean;
|
enableDiscordIntegration: boolean;
|
||||||
enableServiceWorker: boolean;
|
enableServiceWorker: boolean;
|
||||||
emojis: CustomEmoji[];
|
emojis: CustomEmoji[];
|
||||||
|
defaultDarkTheme: string | null;
|
||||||
|
defaultLightTheme: string | null;
|
||||||
ads: {
|
ads: {
|
||||||
id: ID;
|
id: ID;
|
||||||
ratio: number;
|
ratio: number;
|
||||||
|
@ -285,9 +300,15 @@ export type LiteInstanceMetadata = {
|
||||||
url: string;
|
url: string;
|
||||||
imageUrl: string;
|
imageUrl: string;
|
||||||
}[];
|
}[];
|
||||||
|
translatorAvailable: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
export type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
||||||
|
pinnedPages: string[];
|
||||||
|
pinnedClipId: string | null;
|
||||||
|
cacheRemoteFiles: boolean;
|
||||||
|
requireSetup: boolean;
|
||||||
|
proxyAccountName: string | null;
|
||||||
features: Record<string, any>;
|
features: Record<string, any>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue