Merge tag '2023.9.0' into merge-upstream
This commit is contained in:
@@ -17,11 +17,6 @@ export type Acct = {
|
||||
// @public (undocumented)
|
||||
type Ad = TODO_2;
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminInstanceMetadata = DetailedInstanceMetadata & {
|
||||
blockedHosts: string[];
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type Announcement = {
|
||||
id: ID;
|
||||
@@ -30,13 +25,8 @@ type Announcement = {
|
||||
text: string;
|
||||
title: string;
|
||||
imageUrl: string | null;
|
||||
display: 'normal' | 'banner' | 'dialog';
|
||||
icon: 'info' | 'warning' | 'error' | 'success';
|
||||
needConfirmationToRead: boolean;
|
||||
closeDuration: number;
|
||||
displayOrder: number;
|
||||
forYou: boolean;
|
||||
isRead?: boolean;
|
||||
isPrivate: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
@@ -272,9 +262,6 @@ type CustomEmoji = {
|
||||
url: string;
|
||||
category: string;
|
||||
aliases: string[];
|
||||
isSensitive?: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
|
||||
roleIdsThatCanNotBeUsedThisEmojiAsReaction?: string[];
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
@@ -285,7 +272,6 @@ type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
||||
pinnedPages: string[];
|
||||
pinnedClipId: string | null;
|
||||
cacheRemoteFiles: boolean;
|
||||
cacheRemoteSensitiveFiles: boolean;
|
||||
requireSetup: boolean;
|
||||
proxyAccountName: string | null;
|
||||
features: Record<string, any>;
|
||||
@@ -342,10 +328,6 @@ export type Endpoints = {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/meta': {
|
||||
req: NoParams;
|
||||
res: AdminInstanceMetadata;
|
||||
};
|
||||
'admin/reset-password': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
@@ -442,22 +424,6 @@ export type Endpoints = {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/abuse-report-resolver/create': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/abuse-report-resolver/list': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/abuse-report-resolver/update': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/abuse-report-resolver/delete': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/drive/clean-remote-files': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
@@ -516,14 +482,6 @@ export type Endpoints = {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/invite/create': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/invite/list': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'admin/moderators/add': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
@@ -570,9 +528,11 @@ export type Endpoints = {
|
||||
};
|
||||
'announcements': {
|
||||
req: {
|
||||
isActive?: boolean;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
withUnreads?: boolean;
|
||||
sinceId?: Announcement['id'];
|
||||
untilId?: Announcement['id'];
|
||||
privateOnly?: boolean;
|
||||
};
|
||||
res: Announcement[];
|
||||
};
|
||||
@@ -1002,14 +962,8 @@ export type Endpoints = {
|
||||
res: TODO;
|
||||
};
|
||||
'drive/files/create': {
|
||||
req: {
|
||||
folderId?: string;
|
||||
name?: string;
|
||||
comment?: string;
|
||||
isSentisive?: boolean;
|
||||
force?: boolean;
|
||||
};
|
||||
res: DriveFile;
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'drive/files/delete': {
|
||||
req: {
|
||||
@@ -1591,28 +1545,6 @@ export type Endpoints = {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'invite/create': {
|
||||
req: NoParams;
|
||||
res: Invite;
|
||||
};
|
||||
'invite/delete': {
|
||||
req: {
|
||||
inviteId: Invite['id'];
|
||||
};
|
||||
res: null;
|
||||
};
|
||||
'invite/list': {
|
||||
req: {
|
||||
limit?: number;
|
||||
sinceId?: Invite['id'];
|
||||
untilId?: Invite['id'];
|
||||
};
|
||||
res: Invite[];
|
||||
};
|
||||
'invite/limit': {
|
||||
req: NoParams;
|
||||
res: InviteLimit;
|
||||
};
|
||||
'messaging/history': {
|
||||
req: {
|
||||
limit?: number;
|
||||
@@ -2012,19 +1944,6 @@ export type Endpoints = {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
};
|
||||
'signup': {
|
||||
req: {
|
||||
username: string;
|
||||
password: string;
|
||||
host?: string;
|
||||
invitationCode?: string;
|
||||
emailAddress?: string;
|
||||
'hcaptcha-response'?: string;
|
||||
'g-recaptcha-response'?: string;
|
||||
'turnstile-response'?: string;
|
||||
};
|
||||
res: MeSignup | null;
|
||||
};
|
||||
'stats': {
|
||||
req: NoParams;
|
||||
res: Stats;
|
||||
@@ -2242,8 +2161,6 @@ declare namespace entities {
|
||||
UserGroup,
|
||||
UserList,
|
||||
MeDetailed,
|
||||
MeDetailedWithSecret,
|
||||
MeSignup,
|
||||
DriveFile,
|
||||
DriveFolder,
|
||||
GalleryPost,
|
||||
@@ -2255,7 +2172,6 @@ declare namespace entities {
|
||||
LiteInstanceMetadata,
|
||||
DetailedInstanceMetadata,
|
||||
InstanceMetadata,
|
||||
AdminInstanceMetadata,
|
||||
ServerInfo,
|
||||
Stats,
|
||||
Page,
|
||||
@@ -2275,8 +2191,6 @@ declare namespace entities {
|
||||
Blocking,
|
||||
Instance,
|
||||
Signin,
|
||||
Invite,
|
||||
InviteLimit,
|
||||
UserSorting,
|
||||
OriginType
|
||||
}
|
||||
@@ -2347,7 +2261,7 @@ type ID = string;
|
||||
// @public (undocumented)
|
||||
type Instance = {
|
||||
id: ID;
|
||||
firstRetrievedAt: DateString;
|
||||
caughtAt: DateString;
|
||||
host: string;
|
||||
usersCount: number;
|
||||
notesCount: number;
|
||||
@@ -2361,7 +2275,6 @@ type Instance = {
|
||||
lastCommunicatedAt: DateString;
|
||||
isNotResponding: boolean;
|
||||
isSuspended: boolean;
|
||||
isBlocked: boolean;
|
||||
softwareName: string | null;
|
||||
softwareVersion: string | null;
|
||||
openRegistrations: boolean | null;
|
||||
@@ -2378,23 +2291,6 @@ type Instance = {
|
||||
// @public (undocumented)
|
||||
type InstanceMetadata = LiteInstanceMetadata | DetailedInstanceMetadata;
|
||||
|
||||
// @public (undocumented)
|
||||
type Invite = {
|
||||
id: ID;
|
||||
code: string;
|
||||
expiresAt: DateString | null;
|
||||
createdAt: DateString;
|
||||
createdBy: UserLite | null;
|
||||
usedBy: UserLite | null;
|
||||
usedAt: DateString | null;
|
||||
used: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type InviteLimit = {
|
||||
remaining: number;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
function isAPIError(reason: any): reason is APIError;
|
||||
|
||||
@@ -2467,7 +2363,6 @@ type MeDetailed = UserDetailed & {
|
||||
hasUnreadMessagingMessage: boolean;
|
||||
hasUnreadNotification: boolean;
|
||||
hasUnreadSpecifiedNotes: boolean;
|
||||
twoFactorBackupCodes: 'full' | 'partial' | 'none';
|
||||
hideOnlineStatus: boolean;
|
||||
injectFeaturedNote: boolean;
|
||||
integrations: Record<string, any>;
|
||||
@@ -2477,26 +2372,10 @@ type MeDetailed = UserDetailed & {
|
||||
mutingNotificationTypes: string[];
|
||||
noCrawle: boolean;
|
||||
receiveAnnouncementEmail: boolean;
|
||||
unreadAnnouncements: Announcement[];
|
||||
usePasswordLessLogin: boolean;
|
||||
[other: string]: any;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type MeDetailedWithSecret = MeDetailed & {
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
securityKeysList: {
|
||||
id: string;
|
||||
name: string;
|
||||
lastUsed: string;
|
||||
}[];
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type MeSignup = MeDetailedWithSecret & {
|
||||
token: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type MessagingMessage = {
|
||||
id: ID;
|
||||
@@ -2783,7 +2662,6 @@ type UserDetailed = UserLite & {
|
||||
isModerator: boolean;
|
||||
isMuted: boolean;
|
||||
isSilenced: boolean;
|
||||
isLimited: boolean;
|
||||
isSuspended: boolean;
|
||||
lang: string | null;
|
||||
lastFetchedAt?: DateString;
|
||||
@@ -2797,7 +2675,6 @@ type UserDetailed = UserLite & {
|
||||
publicReactions: boolean;
|
||||
securityKeys: boolean;
|
||||
twoFactorEnabled: boolean;
|
||||
usePasswordLessLogin: boolean;
|
||||
updatedAt: DateString | null;
|
||||
uri: string | null;
|
||||
url: string | null;
|
||||
@@ -2844,7 +2721,7 @@ type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+u
|
||||
//
|
||||
// src/api.types.ts:16:32 - (ae-forgotten-export) The symbol "TODO" needs to be exported by the entry point index.d.ts
|
||||
// src/api.types.ts:18:25 - (ae-forgotten-export) The symbol "NoParams" needs to be exported by the entry point index.d.ts
|
||||
// src/api.types.ts:633:18 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts
|
||||
// src/api.types.ts:596:18 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts
|
||||
// src/streaming.types.ts:33:4 - (ae-forgotten-export) The symbol "FIXME" needs to be exported by the entry point index.d.ts
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
Reference in New Issue
Block a user