fix api report

This commit is contained in:
riku6460 2023-09-26 05:38:46 +09:00
parent e0c30de751
commit 4d9a694d8d
No known key found for this signature in database
GPG key ID: 27414FA27DB94CF6

View file

@ -17,6 +17,11 @@ export type Acct = {
// @public (undocumented) // @public (undocumented)
type Ad = TODO_2; type Ad = TODO_2;
// @public (undocumented)
type AdminInstanceMetadata = DetailedInstanceMetadata & {
blockedHosts: string[];
};
// @public (undocumented) // @public (undocumented)
type Announcement = { type Announcement = {
id: ID; id: ID;
@ -27,6 +32,7 @@ type Announcement = {
imageUrl: string | null; imageUrl: string | null;
isRead?: boolean; isRead?: boolean;
isPrivate: boolean; isPrivate: boolean;
closeDuration: number;
}; };
// @public (undocumented) // @public (undocumented)
@ -262,6 +268,9 @@ type CustomEmoji = {
url: string; url: string;
category: string; category: string;
aliases: string[]; aliases: string[];
isSensitive?: boolean;
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
roleIdsThatCanNotBeUsedThisEmojiAsReaction?: string[];
}; };
// @public (undocumented) // @public (undocumented)
@ -272,6 +281,7 @@ type DetailedInstanceMetadata = LiteInstanceMetadata & {
pinnedPages: string[]; pinnedPages: string[];
pinnedClipId: string | null; pinnedClipId: string | null;
cacheRemoteFiles: boolean; cacheRemoteFiles: boolean;
cacheRemoteSensitiveFiles: boolean;
requireSetup: boolean; requireSetup: boolean;
proxyAccountName: string | null; proxyAccountName: string | null;
features: Record<string, any>; features: Record<string, any>;
@ -328,6 +338,10 @@ export type Endpoints = {
req: TODO; req: TODO;
res: TODO; res: TODO;
}; };
'admin/meta': {
req: NoParams;
res: AdminInstanceMetadata;
};
'admin/reset-password': { 'admin/reset-password': {
req: TODO; req: TODO;
res: TODO; res: TODO;
@ -424,6 +438,22 @@ export type Endpoints = {
req: TODO; req: TODO;
res: 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': { 'admin/drive/clean-remote-files': {
req: TODO; req: TODO;
res: TODO; res: TODO;
@ -482,6 +512,14 @@ export type Endpoints = {
req: TODO; req: TODO;
res: TODO; res: TODO;
}; };
'admin/invite/create': {
req: TODO;
res: TODO;
};
'admin/invite/list': {
req: TODO;
res: TODO;
};
'admin/moderators/add': { 'admin/moderators/add': {
req: TODO; req: TODO;
res: TODO; res: TODO;
@ -962,8 +1000,14 @@ export type Endpoints = {
res: TODO; res: TODO;
}; };
'drive/files/create': { 'drive/files/create': {
req: TODO; req: {
res: TODO; folderId?: string;
name?: string;
comment?: string;
isSentisive?: boolean;
force?: boolean;
};
res: DriveFile;
}; };
'drive/files/delete': { 'drive/files/delete': {
req: { req: {
@ -1545,6 +1589,28 @@ export type Endpoints = {
req: TODO; req: TODO;
res: 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': { 'messaging/history': {
req: { req: {
limit?: number; limit?: number;
@ -1944,6 +2010,19 @@ export type Endpoints = {
req: TODO; req: TODO;
res: 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': { 'stats': {
req: NoParams; req: NoParams;
res: Stats; res: Stats;
@ -2161,6 +2240,8 @@ declare namespace entities {
UserGroup, UserGroup,
UserList, UserList,
MeDetailed, MeDetailed,
MeDetailedWithSecret,
MeSignup,
DriveFile, DriveFile,
DriveFolder, DriveFolder,
GalleryPost, GalleryPost,
@ -2172,6 +2253,7 @@ declare namespace entities {
LiteInstanceMetadata, LiteInstanceMetadata,
DetailedInstanceMetadata, DetailedInstanceMetadata,
InstanceMetadata, InstanceMetadata,
AdminInstanceMetadata,
ServerInfo, ServerInfo,
Stats, Stats,
Page, Page,
@ -2191,6 +2273,8 @@ declare namespace entities {
Blocking, Blocking,
Instance, Instance,
Signin, Signin,
Invite,
InviteLimit,
UserSorting, UserSorting,
OriginType OriginType
} }
@ -2261,7 +2345,7 @@ type ID = string;
// @public (undocumented) // @public (undocumented)
type Instance = { type Instance = {
id: ID; id: ID;
caughtAt: DateString; firstRetrievedAt: DateString;
host: string; host: string;
usersCount: number; usersCount: number;
notesCount: number; notesCount: number;
@ -2275,6 +2359,7 @@ type Instance = {
lastCommunicatedAt: DateString; lastCommunicatedAt: DateString;
isNotResponding: boolean; isNotResponding: boolean;
isSuspended: boolean; isSuspended: boolean;
isBlocked: boolean;
softwareName: string | null; softwareName: string | null;
softwareVersion: string | null; softwareVersion: string | null;
openRegistrations: boolean | null; openRegistrations: boolean | null;
@ -2291,6 +2376,23 @@ type Instance = {
// @public (undocumented) // @public (undocumented)
type InstanceMetadata = LiteInstanceMetadata | DetailedInstanceMetadata; 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) // @public (undocumented)
function isAPIError(reason: any): reason is APIError; function isAPIError(reason: any): reason is APIError;
@ -2363,6 +2465,7 @@ type MeDetailed = UserDetailed & {
hasUnreadMessagingMessage: boolean; hasUnreadMessagingMessage: boolean;
hasUnreadNotification: boolean; hasUnreadNotification: boolean;
hasUnreadSpecifiedNotes: boolean; hasUnreadSpecifiedNotes: boolean;
twoFactorBackupCodes: 'full' | 'partial' | 'none';
hideOnlineStatus: boolean; hideOnlineStatus: boolean;
injectFeaturedNote: boolean; injectFeaturedNote: boolean;
integrations: Record<string, any>; integrations: Record<string, any>;
@ -2376,6 +2479,22 @@ type MeDetailed = UserDetailed & {
[other: string]: any; [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) // @public (undocumented)
type MessagingMessage = { type MessagingMessage = {
id: ID; id: ID;
@ -2662,6 +2781,7 @@ type UserDetailed = UserLite & {
isModerator: boolean; isModerator: boolean;
isMuted: boolean; isMuted: boolean;
isSilenced: boolean; isSilenced: boolean;
isLimited: boolean;
isSuspended: boolean; isSuspended: boolean;
lang: string | null; lang: string | null;
lastFetchedAt?: DateString; lastFetchedAt?: DateString;
@ -2721,7 +2841,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: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:18:25 - (ae-forgotten-export) The symbol "NoParams" 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/api.types.ts:633: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 // 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) // (No @packageDocumentation comment for this package)