merge: upstream
This commit is contained in:
commit
11628e4b6a
285 changed files with 3413 additions and 1913 deletions
|
@ -535,10 +535,10 @@ export type Channels = {
|
|||
mention: (payload: Note) => void;
|
||||
reply: (payload: Note) => void;
|
||||
renote: (payload: Note) => void;
|
||||
follow: (payload: User) => void;
|
||||
followed: (payload: User) => void;
|
||||
unfollow: (payload: User) => void;
|
||||
meUpdated: (payload: MeDetailed) => void;
|
||||
follow: (payload: UserDetailedNotMe) => void;
|
||||
followed: (payload: UserDetailed | UserLite) => void;
|
||||
unfollow: (payload: UserDetailed) => void;
|
||||
meUpdated: (payload: UserDetailed) => void;
|
||||
pageEvent: (payload: PageEvent) => void;
|
||||
urlUploadFinished: (payload: {
|
||||
marker: string;
|
||||
|
@ -571,6 +571,7 @@ export type Channels = {
|
|||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -582,6 +583,7 @@ export type Channels = {
|
|||
withRenotes?: boolean;
|
||||
withReplies?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -593,6 +595,7 @@ export type Channels = {
|
|||
withRenotes?: boolean;
|
||||
withReplies?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -603,6 +606,7 @@ export type Channels = {
|
|||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -610,7 +614,11 @@ export type Channels = {
|
|||
receives: null;
|
||||
};
|
||||
bubbleTimeline: {
|
||||
params: null;
|
||||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
};
|
||||
|
@ -620,6 +628,7 @@ export type Channels = {
|
|||
params: {
|
||||
listId: string;
|
||||
withFiles?: boolean;
|
||||
withRenotes?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -670,7 +679,7 @@ export type Channels = {
|
|||
fileUpdated: (payload: DriveFile) => void;
|
||||
folderCreated: (payload: DriveFolder) => void;
|
||||
folderDeleted: (payload: DriveFolder['id']) => void;
|
||||
folderUpdated: (payload: DriveFile) => void;
|
||||
folderUpdated: (payload: DriveFolder) => void;
|
||||
};
|
||||
receives: null;
|
||||
};
|
||||
|
@ -712,6 +721,46 @@ export type Channels = {
|
|||
};
|
||||
receives: null;
|
||||
};
|
||||
reversiGame: {
|
||||
params: {
|
||||
gameId: string;
|
||||
};
|
||||
events: {
|
||||
started: (payload: {
|
||||
game: ReversiGameDetailed;
|
||||
}) => void;
|
||||
ended: (payload: {
|
||||
winnerId: User['id'] | null;
|
||||
game: ReversiGameDetailed;
|
||||
}) => void;
|
||||
canceled: (payload: {
|
||||
userId: User['id'];
|
||||
}) => void;
|
||||
changeReadyStates: (payload: {
|
||||
user1: boolean;
|
||||
user2: boolean;
|
||||
}) => void;
|
||||
updateSettings: (payload: {
|
||||
userId: User['id'];
|
||||
key: string;
|
||||
value: any;
|
||||
}) => void;
|
||||
log: (payload: Record<string, any>) => void;
|
||||
};
|
||||
receives: {
|
||||
putStone: {
|
||||
pos: number;
|
||||
id: string;
|
||||
};
|
||||
ready: boolean;
|
||||
cancel: null | Record<string, never>;
|
||||
updateSettings: {
|
||||
key: string;
|
||||
value: any;
|
||||
};
|
||||
claimTimeIsUp: null | Record<string, never>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
|
@ -1697,6 +1746,7 @@ declare namespace entities {
|
|||
Hashtag,
|
||||
InviteCode,
|
||||
Page,
|
||||
PageBlock,
|
||||
Channel,
|
||||
QueueCount,
|
||||
Antenna,
|
||||
|
@ -1709,6 +1759,7 @@ declare namespace entities {
|
|||
Signin,
|
||||
RoleLite,
|
||||
Role,
|
||||
RolePolicies,
|
||||
ReversiGameLite,
|
||||
ReversiGameDetailed
|
||||
}
|
||||
|
@ -2235,7 +2286,7 @@ type ModerationLog = {
|
|||
id: ID;
|
||||
createdAt: DateString;
|
||||
userId: User['id'];
|
||||
user: UserDetailed | null;
|
||||
user: UserDetailedNotMe | null;
|
||||
} & ({
|
||||
type: 'updateServerSettings';
|
||||
info: ModerationLogPayloads['updateServerSettings'];
|
||||
|
@ -2577,6 +2628,9 @@ export const notificationTypes: readonly ["note", "follow", "mention", "reply",
|
|||
// @public (undocumented)
|
||||
type Page = components['schemas']['Page'];
|
||||
|
||||
// @public (undocumented)
|
||||
type PageBlock = components['schemas']['PageBlock'];
|
||||
|
||||
// @public (undocumented)
|
||||
type PageEvent = {
|
||||
pageId: Page['id'];
|
||||
|
@ -2725,6 +2779,9 @@ type Role = components['schemas']['Role'];
|
|||
// @public (undocumented)
|
||||
type RoleLite = components['schemas']['RoleLite'];
|
||||
|
||||
// @public (undocumented)
|
||||
type RolePolicies = components['schemas']['RolePolicies'];
|
||||
|
||||
// @public (undocumented)
|
||||
type RolesListResponse = operations['roles/list']['responses']['200']['content']['application/json'];
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"type": "module",
|
||||
"name": "misskey-js",
|
||||
"version": "2024.2.0-beta.3",
|
||||
"version": "2024.2.0-beta.8",
|
||||
"description": "Misskey SDK for JavaScript",
|
||||
"types": "./built/dts/index.d.ts",
|
||||
"exports": {
|
||||
|
@ -19,7 +19,7 @@
|
|||
"ts": "npm run ts-esm && npm run ts-dts",
|
||||
"ts-esm": "tsc --outDir built/esm",
|
||||
"ts-dts": "tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true",
|
||||
"watch": "nodemon -w src -e ts,js,cjs,mjs,json --exec \"pnpm run build\"",
|
||||
"watch": "nodemon -w src -e ts,js,cjs,mjs,json --exec \"pnpm run ts\"",
|
||||
"tsd": "tsd",
|
||||
"api": "pnpm api-extractor run --local --verbose",
|
||||
"api-prod": "pnpm api-extractor run --verbose",
|
||||
|
@ -39,7 +39,7 @@
|
|||
"@misskey-dev/eslint-plugin": "1.0.0",
|
||||
"@swc/jest": "0.2.31",
|
||||
"@types/jest": "29.5.11",
|
||||
"@types/node": "20.11.5",
|
||||
"@types/node": "20.11.10",
|
||||
"@typescript-eslint/eslint-plugin": "6.18.1",
|
||||
"@typescript-eslint/parser": "6.18.1",
|
||||
"eslint": "8.56.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* version: 2024.2.0-beta2
|
||||
* generatedAt: 2024-01-26T20:30:18.423Z
|
||||
* generatedAt: 2024-02-03T19:17:05.681Z
|
||||
*/
|
||||
|
||||
import type { SwitchCaseResponseType } from '../api.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* version: 2024.2.0-beta2
|
||||
* generatedAt: 2024-01-26T20:30:18.421Z
|
||||
* generatedAt: 2024-02-03T19:17:05.679Z
|
||||
*/
|
||||
|
||||
import type {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* version: 2024.2.0-beta2
|
||||
* generatedAt: 2024-01-26T20:30:18.419Z
|
||||
* generatedAt: 2024-02-03T19:17:05.678Z
|
||||
*/
|
||||
|
||||
import { operations } from './types.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* version: 2024.2.0-beta2
|
||||
* generatedAt: 2024-01-26T20:30:18.418Z
|
||||
* generatedAt: 2024-02-03T19:17:05.676Z
|
||||
*/
|
||||
|
||||
import { components } from './types.js';
|
||||
|
@ -29,6 +29,7 @@ export type Blocking = components['schemas']['Blocking'];
|
|||
export type Hashtag = components['schemas']['Hashtag'];
|
||||
export type InviteCode = components['schemas']['InviteCode'];
|
||||
export type Page = components['schemas']['Page'];
|
||||
export type PageBlock = components['schemas']['PageBlock'];
|
||||
export type Channel = components['schemas']['Channel'];
|
||||
export type QueueCount = components['schemas']['QueueCount'];
|
||||
export type Antenna = components['schemas']['Antenna'];
|
||||
|
@ -41,5 +42,6 @@ export type Flash = components['schemas']['Flash'];
|
|||
export type Signin = components['schemas']['Signin'];
|
||||
export type RoleLite = components['schemas']['RoleLite'];
|
||||
export type Role = components['schemas']['Role'];
|
||||
export type RolePolicies = components['schemas']['RolePolicies'];
|
||||
export type ReversiGameLite = components['schemas']['ReversiGameLite'];
|
||||
export type ReversiGameDetailed = components['schemas']['ReversiGameDetailed'];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
/*
|
||||
* version: 2024.2.0-beta2
|
||||
* generatedAt: 2024-01-26T20:30:18.319Z
|
||||
* generatedAt: 2024-02-03T19:17:05.578Z
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -3876,32 +3876,7 @@ export type components = {
|
|||
unlockedAt: number;
|
||||
}[];
|
||||
loggedInDays: number;
|
||||
policies: {
|
||||
gtlAvailable: boolean;
|
||||
ltlAvailable: boolean;
|
||||
canPublicNote: boolean;
|
||||
canInvite: boolean;
|
||||
inviteLimit: number;
|
||||
inviteLimitCycle: number;
|
||||
inviteExpirationTime: number;
|
||||
canManageCustomEmojis: boolean;
|
||||
canManageAvatarDecorations: boolean;
|
||||
canSearchNotes: boolean;
|
||||
canUseTranslator: boolean;
|
||||
canHideAds: boolean;
|
||||
driveCapacityMb: number;
|
||||
alwaysMarkNsfw: boolean;
|
||||
pinLimit: number;
|
||||
antennaLimit: number;
|
||||
wordMuteLimit: number;
|
||||
webhookLimit: number;
|
||||
clipLimit: number;
|
||||
noteEachClipsLimit: number;
|
||||
userListLimit: number;
|
||||
userEachUserListsLimit: number;
|
||||
rateLimitFactor: number;
|
||||
avatarDecorationLimit: number;
|
||||
};
|
||||
policies: components['schemas']['RolePolicies'];
|
||||
email?: string | null;
|
||||
emailVerified?: boolean | null;
|
||||
securityKeysList?: {
|
||||
|
@ -3918,7 +3893,7 @@ export type components = {
|
|||
UserDetailedNotMe: components['schemas']['UserLite'] & components['schemas']['UserDetailedNotMeOnly'];
|
||||
MeDetailed: components['schemas']['UserLite'] & components['schemas']['UserDetailedNotMeOnly'] & components['schemas']['MeDetailedOnly'];
|
||||
UserDetailed: components['schemas']['UserDetailedNotMe'] | components['schemas']['MeDetailed'];
|
||||
User: components['schemas']['UserLite'] | components['schemas']['UserDetailed'] | components['schemas']['UserDetailedNotMe'] | components['schemas']['MeDetailed'];
|
||||
User: components['schemas']['UserLite'] | components['schemas']['UserDetailed'];
|
||||
UserList: {
|
||||
/**
|
||||
* Format: id
|
||||
|
@ -3962,8 +3937,10 @@ export type components = {
|
|||
text: string;
|
||||
title: string;
|
||||
imageUrl: string | null;
|
||||
icon: string;
|
||||
display: string;
|
||||
/** @enum {string} */
|
||||
icon: 'info' | 'warning' | 'error' | 'success';
|
||||
/** @enum {string} */
|
||||
display: 'dialog' | 'normal' | 'banner';
|
||||
needConfirmationToRead: boolean;
|
||||
silence: boolean;
|
||||
forYou: boolean;
|
||||
|
@ -4005,13 +3982,26 @@ export type components = {
|
|||
reply?: components['schemas']['Note'] | null;
|
||||
renote?: components['schemas']['Note'] | null;
|
||||
isHidden?: boolean;
|
||||
visibility: string;
|
||||
/** @enum {string} */
|
||||
visibility: 'public' | 'home' | 'followers' | 'specified';
|
||||
mentions?: string[];
|
||||
visibleUserIds?: string[];
|
||||
fileIds?: string[];
|
||||
files?: components['schemas']['DriveFile'][];
|
||||
tags?: string[];
|
||||
poll?: Record<string, never> | null;
|
||||
poll?: ({
|
||||
/** Format: date-time */
|
||||
expiresAt?: string | null;
|
||||
multiple: boolean;
|
||||
choices: {
|
||||
isVoted: boolean;
|
||||
text: string;
|
||||
votes: number;
|
||||
}[];
|
||||
}) | null;
|
||||
emojis?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Format: id
|
||||
* @example xxxxxxxxxx
|
||||
|
@ -4027,14 +4017,19 @@ export type components = {
|
|||
}) | null;
|
||||
localOnly?: boolean;
|
||||
reactionAcceptance: string | null;
|
||||
reactions: Record<string, never>;
|
||||
reactionEmojis: {
|
||||
[key: string]: string;
|
||||
};
|
||||
reactions: {
|
||||
[key: string]: number;
|
||||
};
|
||||
renoteCount: number;
|
||||
repliesCount: number;
|
||||
uri?: string;
|
||||
url?: string;
|
||||
reactionAndUserPairCache?: string[];
|
||||
clippedCount?: number;
|
||||
myReaction?: Record<string, never> | null;
|
||||
myReaction?: string | null;
|
||||
};
|
||||
NoteReaction: {
|
||||
/**
|
||||
|
@ -4065,21 +4060,162 @@ export type components = {
|
|||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'note' | 'follow' | 'mention' | 'reply' | 'renote' | 'quote' | 'reaction' | 'pollEnded' | 'receiveFollowRequest' | 'followRequestAccepted' | 'roleAssigned' | 'achievementEarned' | 'app' | 'test' | 'reaction:grouped' | 'renote:grouped';
|
||||
user?: components['schemas']['UserLite'] | null;
|
||||
type: 'note';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId?: string | null;
|
||||
note?: components['schemas']['Note'] | null;
|
||||
reaction?: string | null;
|
||||
achievement?: string;
|
||||
body?: string | null;
|
||||
header?: string | null;
|
||||
icon?: string | null;
|
||||
reactions?: {
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'mention';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'reply';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'renote';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'quote';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'reaction';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
reaction: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'pollEnded';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
note: components['schemas']['Note'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'follow';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'receiveFollowRequest';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'followRequestAccepted';
|
||||
user: components['schemas']['UserLite'];
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'roleAssigned';
|
||||
role: components['schemas']['Role'];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'achievementEarned';
|
||||
achievement: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'app';
|
||||
body: string;
|
||||
header: string;
|
||||
icon: string;
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'reaction:grouped';
|
||||
note: components['schemas']['Note'];
|
||||
reactions: {
|
||||
user: components['schemas']['UserLite'];
|
||||
reaction: string;
|
||||
}[] | null;
|
||||
users?: components['schemas']['UserLite'][] | null;
|
||||
}[];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'renote:grouped';
|
||||
note: components['schemas']['Note'];
|
||||
users: components['schemas']['UserLite'][];
|
||||
} | {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** @enum {string} */
|
||||
type: 'test';
|
||||
};
|
||||
DriveFile: {
|
||||
/**
|
||||
|
@ -4160,8 +4296,8 @@ export type components = {
|
|||
followeeId: string;
|
||||
/** Format: id */
|
||||
followerId: string;
|
||||
followee?: components['schemas']['UserDetailed'];
|
||||
follower?: components['schemas']['UserDetailed'];
|
||||
followee?: components['schemas']['UserDetailedNotMe'];
|
||||
follower?: components['schemas']['UserDetailedNotMe'];
|
||||
};
|
||||
Muting: {
|
||||
/**
|
||||
|
@ -4175,7 +4311,7 @@ export type components = {
|
|||
expiresAt: string | null;
|
||||
/** Format: id */
|
||||
muteeId: string;
|
||||
mutee: components['schemas']['UserDetailed'];
|
||||
mutee: components['schemas']['UserDetailedNotMe'];
|
||||
};
|
||||
RenoteMuting: {
|
||||
/**
|
||||
|
@ -4187,7 +4323,7 @@ export type components = {
|
|||
createdAt: string;
|
||||
/** Format: id */
|
||||
muteeId: string;
|
||||
mutee: components['schemas']['UserDetailed'];
|
||||
mutee: components['schemas']['UserDetailedNotMe'];
|
||||
};
|
||||
Blocking: {
|
||||
/**
|
||||
|
@ -4199,7 +4335,7 @@ export type components = {
|
|||
createdAt: string;
|
||||
/** Format: id */
|
||||
blockeeId: string;
|
||||
blockee: components['schemas']['UserDetailed'];
|
||||
blockee: components['schemas']['UserDetailedNotMe'];
|
||||
};
|
||||
Hashtag: {
|
||||
/** @example misskey */
|
||||
|
@ -4242,7 +4378,7 @@ export type components = {
|
|||
/** Format: id */
|
||||
userId: string;
|
||||
user: components['schemas']['UserLite'];
|
||||
content: Record<string, never>[];
|
||||
content: components['schemas']['PageBlock'][];
|
||||
variables: Record<string, never>[];
|
||||
title: string;
|
||||
name: string;
|
||||
|
@ -4257,6 +4393,29 @@ export type components = {
|
|||
likedCount: number;
|
||||
isLiked?: boolean;
|
||||
};
|
||||
PageBlock: OneOf<[{
|
||||
id: string;
|
||||
/** @enum {string} */
|
||||
type: 'text';
|
||||
text: string;
|
||||
}, {
|
||||
id: string;
|
||||
/** @enum {string} */
|
||||
type: 'section';
|
||||
title: string;
|
||||
children: components['schemas']['PageBlock'][];
|
||||
}, {
|
||||
id: string;
|
||||
/** @enum {string} */
|
||||
type: 'image';
|
||||
fileId: string | null;
|
||||
}, {
|
||||
id: string;
|
||||
/** @enum {string} */
|
||||
type: 'note';
|
||||
detailed: boolean;
|
||||
note: string | null;
|
||||
}]>;
|
||||
Channel: {
|
||||
/**
|
||||
* Format: id
|
||||
|
@ -4477,129 +4636,40 @@ export type components = {
|
|||
/** @example false */
|
||||
canEditMembersByModerator: boolean;
|
||||
policies: {
|
||||
pinLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canInvite: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
clipLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canHideAds: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
inviteLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
antennaLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
gtlAvailable: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
ltlAvailable: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
webhookLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canPublicNote: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
userListLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
wordMuteLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
alwaysMarkNsfw: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canSearchNotes: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
driveCapacityMb: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
rateLimitFactor: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
inviteLimitCycle: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
noteEachClipsLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
inviteExpirationTime: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canManageCustomEmojis: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
userEachUserListsLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canManageAvatarDecorations: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
canUseTranslator: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
};
|
||||
avatarDecorationLimit: {
|
||||
value: number | boolean;
|
||||
priority: number;
|
||||
useDefault: boolean;
|
||||
[key: string]: {
|
||||
value?: number | boolean;
|
||||
priority?: number;
|
||||
useDefault?: boolean;
|
||||
};
|
||||
};
|
||||
usersCount: number;
|
||||
});
|
||||
RolePolicies: {
|
||||
gtlAvailable: boolean;
|
||||
ltlAvailable: boolean;
|
||||
canPublicNote: boolean;
|
||||
canInvite: boolean;
|
||||
inviteLimit: number;
|
||||
inviteLimitCycle: number;
|
||||
inviteExpirationTime: number;
|
||||
canManageCustomEmojis: boolean;
|
||||
canManageAvatarDecorations: boolean;
|
||||
canSearchNotes: boolean;
|
||||
canUseTranslator: boolean;
|
||||
canHideAds: boolean;
|
||||
driveCapacityMb: number;
|
||||
alwaysMarkNsfw: boolean;
|
||||
pinLimit: number;
|
||||
antennaLimit: number;
|
||||
wordMuteLimit: number;
|
||||
webhookLimit: number;
|
||||
clipLimit: number;
|
||||
noteEachClipsLimit: number;
|
||||
userListLimit: number;
|
||||
userEachUserListsLimit: number;
|
||||
rateLimitFactor: number;
|
||||
avatarDecorationLimit: number;
|
||||
};
|
||||
ReversiGameLite: {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
|
@ -4893,9 +4963,9 @@ export type operations = {
|
|||
targetUserId: string;
|
||||
/** Format: id */
|
||||
assigneeId: string | null;
|
||||
reporter: components['schemas']['User'];
|
||||
targetUser: components['schemas']['User'];
|
||||
assignee?: components['schemas']['User'] | null;
|
||||
reporter: components['schemas']['UserDetailedNotMe'];
|
||||
targetUser: components['schemas']['UserDetailedNotMe'];
|
||||
assignee?: components['schemas']['UserDetailedNotMe'] | null;
|
||||
})[];
|
||||
};
|
||||
};
|
||||
|
@ -4950,7 +5020,7 @@ export type operations = {
|
|||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['User'];
|
||||
'application/json': components['schemas']['MeDetailed'];
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
|
@ -5055,7 +5125,7 @@ export type operations = {
|
|||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['User'];
|
||||
'application/json': components['schemas']['UserDetailedNotMe'];
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
|
@ -8204,7 +8274,7 @@ export type operations = {
|
|||
info: Record<string, never>;
|
||||
/** Format: id */
|
||||
userId: string;
|
||||
user: components['schemas']['UserDetailed'];
|
||||
user: components['schemas']['UserDetailedNotMe'];
|
||||
}[];
|
||||
};
|
||||
};
|
||||
|
@ -11439,14 +11509,18 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'local.incCount': number[];
|
||||
'local.incSize': number[];
|
||||
'local.decCount': number[];
|
||||
'local.decSize': number[];
|
||||
'remote.incCount': number[];
|
||||
'remote.incSize': number[];
|
||||
'remote.decCount': number[];
|
||||
'remote.decSize': number[];
|
||||
local: {
|
||||
incCount: number[];
|
||||
incSize: number[];
|
||||
decCount: number[];
|
||||
decSize: number[];
|
||||
};
|
||||
remote: {
|
||||
incCount: number[];
|
||||
incSize: number[];
|
||||
decCount: number[];
|
||||
decSize: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -11574,30 +11648,44 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'requests.failed': number[];
|
||||
'requests.succeeded': number[];
|
||||
'requests.received': number[];
|
||||
'notes.total': number[];
|
||||
'notes.inc': number[];
|
||||
'notes.dec': number[];
|
||||
'notes.diffs.normal': number[];
|
||||
'notes.diffs.reply': number[];
|
||||
'notes.diffs.renote': number[];
|
||||
'notes.diffs.withFile': number[];
|
||||
'users.total': number[];
|
||||
'users.inc': number[];
|
||||
'users.dec': number[];
|
||||
'following.total': number[];
|
||||
'following.inc': number[];
|
||||
'following.dec': number[];
|
||||
'followers.total': number[];
|
||||
'followers.inc': number[];
|
||||
'followers.dec': number[];
|
||||
'drive.totalFiles': number[];
|
||||
'drive.incFiles': number[];
|
||||
'drive.decFiles': number[];
|
||||
'drive.incUsage': number[];
|
||||
'drive.decUsage': number[];
|
||||
requests: {
|
||||
failed: number[];
|
||||
succeeded: number[];
|
||||
received: number[];
|
||||
};
|
||||
notes: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
diffs: {
|
||||
normal: number[];
|
||||
reply: number[];
|
||||
renote: number[];
|
||||
withFile: number[];
|
||||
};
|
||||
};
|
||||
users: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
following: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
followers: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
drive: {
|
||||
totalFiles: number[];
|
||||
incFiles: number[];
|
||||
decFiles: number[];
|
||||
incUsage: number[];
|
||||
decUsage: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -11657,20 +11745,28 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'local.total': number[];
|
||||
'local.inc': number[];
|
||||
'local.dec': number[];
|
||||
'local.diffs.normal': number[];
|
||||
'local.diffs.reply': number[];
|
||||
'local.diffs.renote': number[];
|
||||
'local.diffs.withFile': number[];
|
||||
'remote.total': number[];
|
||||
'remote.inc': number[];
|
||||
'remote.dec': number[];
|
||||
'remote.diffs.normal': number[];
|
||||
'remote.diffs.reply': number[];
|
||||
'remote.diffs.renote': number[];
|
||||
'remote.diffs.withFile': number[];
|
||||
local: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
diffs: {
|
||||
normal: number[];
|
||||
reply: number[];
|
||||
renote: number[];
|
||||
withFile: number[];
|
||||
};
|
||||
};
|
||||
remote: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
diffs: {
|
||||
normal: number[];
|
||||
reply: number[];
|
||||
renote: number[];
|
||||
withFile: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -11799,18 +11895,30 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'local.followings.total': number[];
|
||||
'local.followings.inc': number[];
|
||||
'local.followings.dec': number[];
|
||||
'local.followers.total': number[];
|
||||
'local.followers.inc': number[];
|
||||
'local.followers.dec': number[];
|
||||
'remote.followings.total': number[];
|
||||
'remote.followings.inc': number[];
|
||||
'remote.followings.dec': number[];
|
||||
'remote.followers.total': number[];
|
||||
'remote.followers.inc': number[];
|
||||
'remote.followers.dec': number[];
|
||||
local: {
|
||||
followings: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
followers: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
};
|
||||
remote: {
|
||||
followings: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
followers: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -11875,10 +11983,12 @@ export type operations = {
|
|||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
'diffs.normal': number[];
|
||||
'diffs.reply': number[];
|
||||
'diffs.renote': number[];
|
||||
'diffs.withFile': number[];
|
||||
diffs: {
|
||||
normal: number[];
|
||||
reply: number[];
|
||||
renote: number[];
|
||||
withFile: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -11940,10 +12050,14 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'upv.user': number[];
|
||||
'pv.user': number[];
|
||||
'upv.visitor': number[];
|
||||
'pv.visitor': number[];
|
||||
upv: {
|
||||
user: number[];
|
||||
visitor: number[];
|
||||
};
|
||||
pv: {
|
||||
user: number[];
|
||||
visitor: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -12005,8 +12119,12 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'local.count': number[];
|
||||
'remote.count': number[];
|
||||
local: {
|
||||
count: number[];
|
||||
};
|
||||
remote: {
|
||||
count: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -12066,12 +12184,16 @@ export type operations = {
|
|||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'local.total': number[];
|
||||
'local.inc': number[];
|
||||
'local.dec': number[];
|
||||
'remote.total': number[];
|
||||
'remote.inc': number[];
|
||||
'remote.dec': number[];
|
||||
local: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
remote: {
|
||||
total: number[];
|
||||
inc: number[];
|
||||
dec: number[];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -18744,7 +18866,7 @@ export type operations = {
|
|||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['UserDetailed'];
|
||||
'application/json': components['schemas']['MeDetailed'];
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
|
@ -19570,6 +19692,7 @@ export type operations = {
|
|||
privacyPolicyUrl: string | null;
|
||||
serverRules: string[];
|
||||
themeColor: string | null;
|
||||
policies: components['schemas']['RolePolicies'];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -23699,7 +23822,7 @@ export type operations = {
|
|||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
id: string;
|
||||
user: components['schemas']['User'];
|
||||
user: components['schemas']['UserDetailed'];
|
||||
}[];
|
||||
};
|
||||
};
|
||||
|
@ -25494,7 +25617,7 @@ export type operations = {
|
|||
createdAt: string;
|
||||
/** Format: misskey:id */
|
||||
userId: string;
|
||||
user: components['schemas']['User'];
|
||||
user: components['schemas']['UserLite'];
|
||||
withReplies: boolean;
|
||||
}[];
|
||||
};
|
||||
|
@ -26390,7 +26513,14 @@ export type operations = {
|
|||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': unknown;
|
||||
'application/json': {
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
users: number;
|
||||
data: {
|
||||
[key: string]: number;
|
||||
};
|
||||
}[];
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ModerationLogPayloads } from './consts.js';
|
||||
import { Announcement, EmojiDetailed, MeDetailed, MeDetailedOnly, Page, User, UserDetailed } from './autogen/models.js';
|
||||
import { Announcement, EmojiDetailed, MeDetailed, Page, User, UserDetailedNotMe } from './autogen/models.js';
|
||||
|
||||
export * from './autogen/entities.js';
|
||||
export * from './autogen/models.js';
|
||||
|
@ -19,7 +19,7 @@ export type ModerationLog = {
|
|||
id: ID;
|
||||
createdAt: DateString;
|
||||
userId: User['id'];
|
||||
user: UserDetailed | null;
|
||||
user: UserDetailedNotMe | null;
|
||||
} & ({
|
||||
type: 'updateServerSettings';
|
||||
info: ModerationLogPayloads['updateServerSettings'];
|
||||
|
|
|
@ -2,11 +2,13 @@ import {
|
|||
Antenna,
|
||||
DriveFile,
|
||||
DriveFolder,
|
||||
MeDetailed,
|
||||
Note,
|
||||
Notification,
|
||||
Signin,
|
||||
User,
|
||||
UserDetailed,
|
||||
UserDetailedNotMe,
|
||||
UserLite,
|
||||
} from './autogen/models.js';
|
||||
import {
|
||||
AnnouncementCreated,
|
||||
|
@ -17,6 +19,7 @@ import {
|
|||
QueueStatsLog,
|
||||
ServerStats,
|
||||
ServerStatsLog,
|
||||
ReversiGameDetailed,
|
||||
} from './entities.js';
|
||||
|
||||
export type Channels = {
|
||||
|
@ -27,10 +30,10 @@ export type Channels = {
|
|||
mention: (payload: Note) => void;
|
||||
reply: (payload: Note) => void;
|
||||
renote: (payload: Note) => void;
|
||||
follow: (payload: User) => void; // 自分が他人をフォローしたとき
|
||||
followed: (payload: User) => void; // 他人が自分をフォローしたとき
|
||||
unfollow: (payload: User) => void; // 自分が他人をフォロー解除したとき
|
||||
meUpdated: (payload: MeDetailed) => void;
|
||||
follow: (payload: UserDetailedNotMe) => void; // 自分が他人をフォローしたとき
|
||||
followed: (payload: UserDetailed | UserLite) => void; // 他人が自分をフォローしたとき
|
||||
unfollow: (payload: UserDetailed) => void; // 自分が他人をフォロー解除したとき
|
||||
meUpdated: (payload: UserDetailed) => void;
|
||||
pageEvent: (payload: PageEvent) => void;
|
||||
urlUploadFinished: (payload: { marker: string; file: DriveFile; }) => void;
|
||||
readAllNotifications: () => void;
|
||||
|
@ -60,6 +63,7 @@ export type Channels = {
|
|||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -71,6 +75,7 @@ export type Channels = {
|
|||
withRenotes?: boolean;
|
||||
withReplies?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -82,6 +87,7 @@ export type Channels = {
|
|||
withRenotes?: boolean;
|
||||
withReplies?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -92,6 +98,7 @@ export type Channels = {
|
|||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -99,7 +106,11 @@ export type Channels = {
|
|||
receives: null;
|
||||
};
|
||||
bubbleTimeline: {
|
||||
params: null;
|
||||
params: {
|
||||
withRenotes?: boolean;
|
||||
withFiles?: boolean;
|
||||
withBots?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
};
|
||||
|
@ -109,6 +120,7 @@ export type Channels = {
|
|||
params: {
|
||||
listId: string;
|
||||
withFiles?: boolean;
|
||||
withRenotes?: boolean;
|
||||
};
|
||||
events: {
|
||||
note: (payload: Note) => void;
|
||||
|
@ -159,7 +171,7 @@ export type Channels = {
|
|||
fileUpdated: (payload: DriveFile) => void;
|
||||
folderCreated: (payload: DriveFolder) => void;
|
||||
folderDeleted: (payload: DriveFolder['id']) => void;
|
||||
folderUpdated: (payload: DriveFile) => void;
|
||||
folderUpdated: (payload: DriveFolder) => void;
|
||||
};
|
||||
receives: null;
|
||||
};
|
||||
|
@ -200,6 +212,32 @@ export type Channels = {
|
|||
}
|
||||
};
|
||||
receives: null;
|
||||
};
|
||||
reversiGame: {
|
||||
params: {
|
||||
gameId: string;
|
||||
};
|
||||
events: {
|
||||
started: (payload: { game: ReversiGameDetailed; }) => void;
|
||||
ended: (payload: { winnerId: User['id'] | null; game: ReversiGameDetailed; }) => void;
|
||||
canceled: (payload: { userId: User['id']; }) => void;
|
||||
changeReadyStates: (payload: { user1: boolean; user2: boolean; }) => void;
|
||||
updateSettings: (payload: { userId: User['id']; key: string; value: any; }) => void;
|
||||
log: (payload: Record<string, any>) => void;
|
||||
};
|
||||
receives: {
|
||||
putStone: {
|
||||
pos: number;
|
||||
id: string;
|
||||
};
|
||||
ready: boolean;
|
||||
cancel: null | Record<string, never>;
|
||||
updateSettings: {
|
||||
key: string;
|
||||
value: any;
|
||||
};
|
||||
claimTimeIsUp: null | Record<string, never>;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue