This commit is contained in:
syuilo 2024-08-16 15:01:44 +09:00
parent 07c160a6c2
commit a18bf4bf18
3 changed files with 115 additions and 41 deletions

View File

@ -2478,10 +2478,13 @@ type ModerationLog = {
} | {
type: 'deleteAbuseReportNotificationRecipient';
info: ModerationLogPayloads['deleteAbuseReportNotificationRecipient'];
} | {
type: 'deleteAccount';
info: ModerationLogPayloads['deleteAccount'];
});
// @public (undocumented)
export const moderationLogTypes: readonly ["updateServerSettings", "suspend", "unsuspend", "updateUserNote", "addCustomEmoji", "updateCustomEmoji", "deleteCustomEmoji", "assignRole", "unassignRole", "createRole", "updateRole", "deleteRole", "clearQueue", "promoteQueue", "deleteDriveFile", "deleteNote", "createGlobalAnnouncement", "createUserAnnouncement", "updateGlobalAnnouncement", "updateUserAnnouncement", "deleteGlobalAnnouncement", "deleteUserAnnouncement", "resetPassword", "suspendRemoteInstance", "unsuspendRemoteInstance", "updateRemoteInstanceNote", "markSensitiveDriveFile", "unmarkSensitiveDriveFile", "resolveAbuseReport", "createInvitation", "createAd", "updateAd", "deleteAd", "createAvatarDecoration", "updateAvatarDecoration", "deleteAvatarDecoration", "unsetUserAvatar", "unsetUserBanner", "createSystemWebhook", "updateSystemWebhook", "deleteSystemWebhook", "createAbuseReportNotificationRecipient", "updateAbuseReportNotificationRecipient", "deleteAbuseReportNotificationRecipient"];
export const moderationLogTypes: readonly ["updateServerSettings", "suspend", "unsuspend", "updateUserNote", "addCustomEmoji", "updateCustomEmoji", "deleteCustomEmoji", "assignRole", "unassignRole", "createRole", "updateRole", "deleteRole", "clearQueue", "promoteQueue", "deleteDriveFile", "deleteNote", "createGlobalAnnouncement", "createUserAnnouncement", "updateGlobalAnnouncement", "updateUserAnnouncement", "deleteGlobalAnnouncement", "deleteUserAnnouncement", "resetPassword", "suspendRemoteInstance", "unsuspendRemoteInstance", "updateRemoteInstanceNote", "markSensitiveDriveFile", "unmarkSensitiveDriveFile", "resolveAbuseReport", "createInvitation", "createAd", "updateAd", "deleteAd", "createAvatarDecoration", "updateAvatarDecoration", "deleteAvatarDecoration", "unsetUserAvatar", "unsetUserBanner", "createSystemWebhook", "updateSystemWebhook", "deleteSystemWebhook", "createAbuseReportNotificationRecipient", "updateAbuseReportNotificationRecipient", "deleteAbuseReportNotificationRecipient", "deleteAccount"];
// @public (undocumented)
type MuteCreateRequest = operations['mute___create']['requestBody']['content']['application/json'];

View File

@ -35,19 +35,19 @@
"directory": "packages/misskey-js"
},
"devDependencies": {
"@microsoft/api-extractor": "7.47.4",
"@microsoft/api-extractor": "7.47.6",
"@swc/jest": "0.2.36",
"@types/jest": "29.5.12",
"@types/node": "20.14.12",
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/parser": "7.17.0",
"@types/node": "22.3.0",
"@typescript-eslint/eslint-plugin": "8.1.0",
"@typescript-eslint/parser": "8.1.0",
"jest": "29.7.0",
"jest-fetch-mock": "3.0.3",
"jest-websocket-mock": "2.5.0",
"mock-socket": "9.3.1",
"ncp": "2.0.0",
"nodemon": "3.1.4",
"execa": "9.3.0",
"execa": "9.3.1",
"tsd": "0.31.1",
"typescript": "5.5.4",
"esbuild": "0.23.0",

View File

@ -1097,8 +1097,8 @@ importers:
version: 4.4.0
devDependencies:
'@microsoft/api-extractor':
specifier: 7.47.4
version: 7.47.4(@types/node@20.14.12)
specifier: 7.47.6
version: 7.47.6(@types/node@22.3.0)
'@swc/jest':
specifier: 0.2.36
version: 0.2.36(@swc/core@1.6.13)
@ -1106,26 +1106,26 @@ importers:
specifier: 29.5.12
version: 29.5.12
'@types/node':
specifier: 20.14.12
version: 20.14.12
specifier: 22.3.0
version: 22.3.0
'@typescript-eslint/eslint-plugin':
specifier: 7.17.0
version: 7.17.0(@typescript-eslint/parser@7.17.0(eslint@9.9.0)(typescript@5.5.4))(eslint@9.9.0)(typescript@5.5.4)
specifier: 8.1.0
version: 8.1.0(@typescript-eslint/parser@8.1.0(eslint@9.9.0)(typescript@5.5.4))(eslint@9.9.0)(typescript@5.5.4)
'@typescript-eslint/parser':
specifier: 7.17.0
version: 7.17.0(eslint@9.9.0)(typescript@5.5.4)
specifier: 8.1.0
version: 8.1.0(eslint@9.9.0)(typescript@5.5.4)
esbuild:
specifier: 0.23.0
version: 0.23.0
execa:
specifier: 9.3.0
version: 9.3.0
specifier: 9.3.1
version: 9.3.1
glob:
specifier: 11.0.0
version: 11.0.0
jest:
specifier: 29.7.0
version: 29.7.0(@types/node@20.14.12)
version: 29.7.0(@types/node@22.3.0)
jest-fetch-mock:
specifier: 3.0.3
version: 3.0.3(encoding@0.1.13)
@ -3083,11 +3083,11 @@ packages:
'@types/react': '>=16'
react: '>=16'
'@microsoft/api-extractor-model@7.29.4':
resolution: {integrity: sha512-LHOMxmT8/tU1IiiiHOdHFF83Qsi+V8d0kLfscG4EvQE9cafiR8blOYr8SfkQKWB1wgEilQgXJX3MIA4vetDLZw==}
'@microsoft/api-extractor-model@7.29.5':
resolution: {integrity: sha512-axMwj4pgtYH6/IclP9ly33laSwTym1kBwSUcoHElc2LYAE5NNlhGT78ucEpIZtqEZaGgA8yxGXIyS17XCC2Iuw==}
'@microsoft/api-extractor@7.47.4':
resolution: {integrity: sha512-HKm+P4VNzWwvq1Ey+Jfhhj/3MjsD+ka2hbt8L5AcRM95lu1MFOYnz3XlU7Gr79Q/ZhOb7W/imAKeYrOI0bFydg==}
'@microsoft/api-extractor@7.47.6':
resolution: {integrity: sha512-saI7n319+PdJ8PAePr14LWeIPOW2fHSr3KZfYFqJ2VUpIc1TTSh6ATFZfLPWI1LK7eZHun8+FpNsuxonyvxTgQ==}
hasBin: true
'@microsoft/tsdoc-config@0.17.0':
@ -3639,8 +3639,8 @@ packages:
cpu: [x64]
os: [win32]
'@rushstack/node-core-library@5.5.1':
resolution: {integrity: sha512-ZutW56qIzH8xIOlfyaLQJFx+8IBqdbVCZdnj+XT1MorQ1JqqxHse8vbCpEM+2MjsrqcbxcgDIbfggB1ZSQ2A3g==}
'@rushstack/node-core-library@5.6.0':
resolution: {integrity: sha512-3ixIcEHseqU1sbnvoQkvxvfTYWbi1IIhnq/vexJcex7j6D8lnQCiYnd/E2oXbUH0Zv48CjtfslC/2MVFd71mpg==}
peerDependencies:
'@types/node': '*'
peerDependenciesMeta:
@ -3650,16 +3650,16 @@ packages:
'@rushstack/rig-package@0.5.3':
resolution: {integrity: sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==}
'@rushstack/terminal@0.13.3':
resolution: {integrity: sha512-fc3zjXOw8E0pXS5t9vTiIPx9gHA0fIdTXsu9mT4WbH+P3mYvnrX0iAQ5a6NvyK1+CqYWBTw/wVNx7SDJkI+WYQ==}
'@rushstack/terminal@0.13.4':
resolution: {integrity: sha512-h7g2RuffpqBCDKOijlUmvQ0b2O9kpIOK9TWCX9IR+2kvudp6MdtCYDu29zeqweWwCSWUnuAaUfB5HT88s0YCiw==}
peerDependencies:
'@types/node': '*'
peerDependenciesMeta:
'@types/node':
optional: true
'@rushstack/ts-command-line@4.22.3':
resolution: {integrity: sha512-edMpWB3QhFFZ4KtSzS8WNjBgR4PXPPOVrOHMbb7kNpmQ1UFS9HdVtjCXg1H5fG+xYAbeE+TMPcVPUyX2p84STA==}
'@rushstack/ts-command-line@4.22.5':
resolution: {integrity: sha512-eFm+5DJboPHAy3epLNQtmG+hDlBzS950g26nZPbciMQeXmZ5shGGNe6ERjV77wnr5IuxfLhYGJ4ZjPy8Z56MBA==}
'@sec-ant/readable-stream@0.4.1':
resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}
@ -6939,6 +6939,10 @@ packages:
resolution: {integrity: sha512-l6JFbqnHEadBoVAVpN5dl2yCyfX28WoBAGaoQcNmLLSedOxTxcn2Qa83s8I/PA5i56vWru2OHOtrwF7Om2vqlg==}
engines: {node: ^18.19.0 || >=20.5.0}
execa@9.3.1:
resolution: {integrity: sha512-gdhefCCNy/8tpH/2+ajP9IQc14vXchNdd0weyzSJEFURhRMGncQ+zKFxwjAufIewPEJm9BPOaJnvg2UtlH2gPQ==}
engines: {node: ^18.19.0 || >=20.5.0}
executable@4.1.1:
resolution: {integrity: sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==}
engines: {node: '>=4'}
@ -7619,6 +7623,10 @@ packages:
resolution: {integrity: sha512-74kytxOUSvNbjrT9KisAbaTZ/eJwD/LrbM/kh5j0IhPuJzwuA19dWvniFGwBzN9rVjg+O/e+F310PjObDXS+9Q==}
engines: {node: '>=18.18.0'}
human-signals@8.0.0:
resolution: {integrity: sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==}
engines: {node: '>=18.18.0'}
iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
engines: {node: '>=0.10.0'}
@ -14273,23 +14281,23 @@ snapshots:
'@types/react': 18.0.28
react: 18.3.1
'@microsoft/api-extractor-model@7.29.4(@types/node@20.14.12)':
'@microsoft/api-extractor-model@7.29.5(@types/node@22.3.0)':
dependencies:
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
'@rushstack/node-core-library': 5.5.1(@types/node@20.14.12)
'@rushstack/node-core-library': 5.6.0(@types/node@22.3.0)
transitivePeerDependencies:
- '@types/node'
'@microsoft/api-extractor@7.47.4(@types/node@20.14.12)':
'@microsoft/api-extractor@7.47.6(@types/node@22.3.0)':
dependencies:
'@microsoft/api-extractor-model': 7.29.4(@types/node@20.14.12)
'@microsoft/api-extractor-model': 7.29.5(@types/node@22.3.0)
'@microsoft/tsdoc': 0.15.0
'@microsoft/tsdoc-config': 0.17.0
'@rushstack/node-core-library': 5.5.1(@types/node@20.14.12)
'@rushstack/node-core-library': 5.6.0(@types/node@22.3.0)
'@rushstack/rig-package': 0.5.3
'@rushstack/terminal': 0.13.3(@types/node@20.14.12)
'@rushstack/ts-command-line': 4.22.3(@types/node@20.14.12)
'@rushstack/terminal': 0.13.4(@types/node@22.3.0)
'@rushstack/ts-command-line': 4.22.5(@types/node@22.3.0)
lodash: 4.17.21
minimatch: 3.0.8
resolve: 1.22.8
@ -14913,7 +14921,7 @@ snapshots:
'@rollup/rollup-win32-x64-msvc@4.19.1':
optional: true
'@rushstack/node-core-library@5.5.1(@types/node@20.14.12)':
'@rushstack/node-core-library@5.6.0(@types/node@22.3.0)':
dependencies:
ajv: 8.13.0
ajv-draft-04: 1.0.0(ajv@8.13.0)
@ -14924,23 +14932,23 @@ snapshots:
resolve: 1.22.8
semver: 7.5.4
optionalDependencies:
'@types/node': 20.14.12
'@types/node': 22.3.0
'@rushstack/rig-package@0.5.3':
dependencies:
resolve: 1.22.8
strip-json-comments: 3.1.1
'@rushstack/terminal@0.13.3(@types/node@20.14.12)':
'@rushstack/terminal@0.13.4(@types/node@22.3.0)':
dependencies:
'@rushstack/node-core-library': 5.5.1(@types/node@20.14.12)
'@rushstack/node-core-library': 5.6.0(@types/node@22.3.0)
supports-color: 8.1.1
optionalDependencies:
'@types/node': 20.14.12
'@types/node': 22.3.0
'@rushstack/ts-command-line@4.22.3(@types/node@20.14.12)':
'@rushstack/ts-command-line@4.22.5(@types/node@22.3.0)':
dependencies:
'@rushstack/terminal': 0.13.3(@types/node@20.14.12)
'@rushstack/terminal': 0.13.4(@types/node@22.3.0)
'@types/argparse': 1.0.38
argparse: 1.0.10
string-argv: 0.3.1
@ -18343,6 +18351,21 @@ snapshots:
- supports-color
- ts-node
create-jest@29.7.0(@types/node@22.3.0):
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
jest-config: 29.7.0(@types/node@22.3.0)
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- supports-color
- ts-node
cron-parser@4.8.1:
dependencies:
luxon: 3.3.0
@ -19252,6 +19275,21 @@ snapshots:
strip-final-newline: 4.0.0
yoctocolors: 2.0.2
execa@9.3.1:
dependencies:
'@sindresorhus/merge-streams': 4.0.0
cross-spawn: 7.0.3
figures: 6.1.0
get-stream: 9.0.1
human-signals: 8.0.0
is-plain-obj: 4.1.0
is-stream: 4.0.1
npm-run-path: 5.3.0
pretty-ms: 9.0.0
signal-exit: 4.1.0
strip-final-newline: 4.0.0
yoctocolors: 2.0.2
executable@4.1.1:
dependencies:
pify: 2.3.0
@ -20086,6 +20124,8 @@ snapshots:
human-signals@7.0.0: {}
human-signals@8.0.0: {}
iconv-lite@0.4.24:
dependencies:
safer-buffer: 2.1.2
@ -20519,6 +20559,25 @@ snapshots:
- supports-color
- ts-node
jest-cli@29.7.0(@types/node@22.3.0):
dependencies:
'@jest/core': 29.7.0
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
create-jest: 29.7.0(@types/node@22.3.0)
exit: 0.1.2
import-local: 3.1.0
jest-config: 29.7.0(@types/node@22.3.0)
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- supports-color
- ts-node
jest-config@29.7.0(@types/node@20.14.12):
dependencies:
'@babel/core': 7.23.5
@ -20818,6 +20877,18 @@ snapshots:
- supports-color
- ts-node
jest@29.7.0(@types/node@22.3.0):
dependencies:
'@jest/core': 29.7.0
'@jest/types': 29.6.3
import-local: 3.1.0
jest-cli: 29.7.0(@types/node@22.3.0)
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- supports-color
- ts-node
jju@1.4.0: {}
joi@17.11.0: