Skip to content

Commit

Permalink
fix api report
Browse files Browse the repository at this point in the history
  • Loading branch information
riku6460 committed Sep 25, 2023
1 parent e0c30de commit 4d9a694
Showing 1 changed file with 124 additions and 4 deletions.
128 changes: 124 additions & 4 deletions packages/misskey-js/etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export type Acct = {
// @public (undocumented)
type Ad = TODO_2;

// @public (undocumented)
type AdminInstanceMetadata = DetailedInstanceMetadata & {
blockedHosts: string[];
};

// @public (undocumented)
type Announcement = {
id: ID;
Expand All @@ -27,6 +32,7 @@ type Announcement = {
imageUrl: string | null;
isRead?: boolean;
isPrivate: boolean;
closeDuration: number;
};

// @public (undocumented)
Expand Down Expand Up @@ -262,6 +268,9 @@ type CustomEmoji = {
url: string;
category: string;
aliases: string[];
isSensitive?: boolean;
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
roleIdsThatCanNotBeUsedThisEmojiAsReaction?: string[];
};

// @public (undocumented)
Expand All @@ -272,6 +281,7 @@ type DetailedInstanceMetadata = LiteInstanceMetadata & {
pinnedPages: string[];
pinnedClipId: string | null;
cacheRemoteFiles: boolean;
cacheRemoteSensitiveFiles: boolean;
requireSetup: boolean;
proxyAccountName: string | null;
features: Record<string, any>;
Expand Down Expand Up @@ -328,6 +338,10 @@ export type Endpoints = {
req: TODO;
res: TODO;
};
'admin/meta': {
req: NoParams;
res: AdminInstanceMetadata;
};
'admin/reset-password': {
req: TODO;
res: TODO;
Expand Down Expand Up @@ -424,6 +438,22 @@ 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;
Expand Down Expand Up @@ -482,6 +512,14 @@ 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;
Expand Down Expand Up @@ -962,8 +1000,14 @@ export type Endpoints = {
res: TODO;
};
'drive/files/create': {
req: TODO;
res: TODO;
req: {
folderId?: string;
name?: string;
comment?: string;
isSentisive?: boolean;
force?: boolean;
};
res: DriveFile;
};
'drive/files/delete': {
req: {
Expand Down Expand Up @@ -1545,6 +1589,28 @@ 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;
Expand Down Expand Up @@ -1944,6 +2010,19 @@ 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;
Expand Down Expand Up @@ -2161,6 +2240,8 @@ declare namespace entities {
UserGroup,
UserList,
MeDetailed,
MeDetailedWithSecret,
MeSignup,
DriveFile,
DriveFolder,
GalleryPost,
Expand All @@ -2172,6 +2253,7 @@ declare namespace entities {
LiteInstanceMetadata,
DetailedInstanceMetadata,
InstanceMetadata,
AdminInstanceMetadata,
ServerInfo,
Stats,
Page,
Expand All @@ -2191,6 +2273,8 @@ declare namespace entities {
Blocking,
Instance,
Signin,
Invite,
InviteLimit,
UserSorting,
OriginType
}
Expand Down Expand Up @@ -2261,7 +2345,7 @@ type ID = string;
// @public (undocumented)
type Instance = {
id: ID;
caughtAt: DateString;
firstRetrievedAt: DateString;
host: string;
usersCount: number;
notesCount: number;
Expand All @@ -2275,6 +2359,7 @@ type Instance = {
lastCommunicatedAt: DateString;
isNotResponding: boolean;
isSuspended: boolean;
isBlocked: boolean;
softwareName: string | null;
softwareVersion: string | null;
openRegistrations: boolean | null;
Expand All @@ -2291,6 +2376,23 @@ 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;

Expand Down Expand Up @@ -2363,6 +2465,7 @@ type MeDetailed = UserDetailed & {
hasUnreadMessagingMessage: boolean;
hasUnreadNotification: boolean;
hasUnreadSpecifiedNotes: boolean;
twoFactorBackupCodes: 'full' | 'partial' | 'none';
hideOnlineStatus: boolean;
injectFeaturedNote: boolean;
integrations: Record<string, any>;
Expand All @@ -2376,6 +2479,22 @@ type MeDetailed = UserDetailed & {
[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;
Expand Down Expand Up @@ -2662,6 +2781,7 @@ type UserDetailed = UserLite & {
isModerator: boolean;
isMuted: boolean;
isSilenced: boolean;
isLimited: boolean;
isSuspended: boolean;
lang: string | null;
lastFetchedAt?: DateString;
Expand Down Expand Up @@ -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: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

// (No @packageDocumentation comment for this package)
Expand Down

0 comments on commit 4d9a694

Please sign in to comment.