From b15f6382bf46a00f1a6f54134db701686d89eabd Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 16 Feb 2024 01:12:52 +0900 Subject: [PATCH] chore: update misskey js --- packages/misskey-js/etc/misskey-js.api.md | 8 ++ .../misskey-js/src/autogen/apiClientJSDoc.ts | 15 +++- packages/misskey-js/src/autogen/endpoint.ts | 7 +- packages/misskey-js/src/autogen/entities.ts | 6 +- packages/misskey-js/src/autogen/models.ts | 4 +- packages/misskey-js/src/autogen/types.ts | 75 ++++++++++++++++++- 6 files changed, 105 insertions(+), 10 deletions(-) diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index b257465611ad..5817773b1f17 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -208,6 +208,12 @@ type AdminInviteListResponse = operations['admin/invite/list']['responses']['200 // @public (undocumented) type AdminMetaResponse = operations['admin/meta']['responses']['200']['content']['application/json']; +// @public (undocumented) +type AdminNirilaDeleteUserLogAccessRequest = operations['admin/nirila-delete-user-log-access']['requestBody']['content']['application/json']; + +// @public (undocumented) +type AdminNirilaDeleteUserLogAccessResponse = operations['admin/nirila-delete-user-log-access']['responses']['200']['content']['application/json']; + // @public (undocumented) type AdminNotePublicToHomeRequest = operations['admin/note-public-to-home']['requestBody']['content']['application/json']; @@ -1058,6 +1064,8 @@ declare namespace entities { AnnouncementCreated, EmptyRequest, EmptyResponse, + AdminNirilaDeleteUserLogAccessRequest, + AdminNirilaDeleteUserLogAccessResponse, AdminMetaResponse, AdminAbuseUserReportsRequest, AdminAbuseUserReportsResponse, diff --git a/packages/misskey-js/src/autogen/apiClientJSDoc.ts b/packages/misskey-js/src/autogen/apiClientJSDoc.ts index bd652805cc93..d6986781cd96 100644 --- a/packages/misskey-js/src/autogen/apiClientJSDoc.ts +++ b/packages/misskey-js/src/autogen/apiClientJSDoc.ts @@ -1,6 +1,6 @@ /* - * version: 2023.12.1 - * generatedAt: 2023-12-27T13:38:13.458Z + * version: 2023.12.2-kinel.1 + * generatedAt: 2024-02-15T16:11:40.190Z */ import type { SwitchCaseResponseType } from '../api.js'; @@ -8,6 +8,17 @@ import type { Endpoints } from './endpoint.js'; declare module '../api.js' { export interface APIClient { + /** + * No description provided. + * + * **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access* + */ + request( + endpoint: E, + params: P, + credential?: string | null, + ): Promise>; + /** * No description provided. * diff --git a/packages/misskey-js/src/autogen/endpoint.ts b/packages/misskey-js/src/autogen/endpoint.ts index ac4a830923fe..443cc63401d8 100644 --- a/packages/misskey-js/src/autogen/endpoint.ts +++ b/packages/misskey-js/src/autogen/endpoint.ts @@ -1,11 +1,13 @@ /* - * version: 2023.12.1 - * generatedAt: 2023-12-27T13:38:13.451Z + * version: 2023.12.2-kinel.1 + * generatedAt: 2024-02-15T16:11:40.187Z */ import type { EmptyRequest, EmptyResponse, + AdminNirilaDeleteUserLogAccessRequest, + AdminNirilaDeleteUserLogAccessResponse, AdminMetaResponse, AdminAbuseUserReportsRequest, AdminAbuseUserReportsResponse, @@ -544,6 +546,7 @@ import type { } from './entities.js'; export type Endpoints = { + 'admin/nirila-delete-user-log-access': { req: AdminNirilaDeleteUserLogAccessRequest; res: AdminNirilaDeleteUserLogAccessResponse }; 'admin/meta': { req: EmptyRequest; res: AdminMetaResponse }; 'admin/abuse-user-reports': { req: AdminAbuseUserReportsRequest; res: AdminAbuseUserReportsResponse }; 'admin/accounts/create': { req: AdminAccountsCreateRequest; res: AdminAccountsCreateResponse }; diff --git a/packages/misskey-js/src/autogen/entities.ts b/packages/misskey-js/src/autogen/entities.ts index 4244b06c5143..4055aa577e89 100644 --- a/packages/misskey-js/src/autogen/entities.ts +++ b/packages/misskey-js/src/autogen/entities.ts @@ -1,6 +1,6 @@ /* - * version: 2023.12.1 - * generatedAt: 2023-12-27T13:38:13.447Z + * version: 2023.12.2-kinel.1 + * generatedAt: 2024-02-15T16:11:40.185Z */ import { operations } from './types.js'; @@ -8,6 +8,8 @@ import { operations } from './types.js'; export type EmptyRequest = Record | undefined; export type EmptyResponse = Record | undefined; +export type AdminNirilaDeleteUserLogAccessRequest = operations['admin/nirila-delete-user-log-access']['requestBody']['content']['application/json']; +export type AdminNirilaDeleteUserLogAccessResponse = operations['admin/nirila-delete-user-log-access']['responses']['200']['content']['application/json']; export type AdminMetaResponse = operations['admin/meta']['responses']['200']['content']['application/json']; export type AdminAbuseUserReportsRequest = operations['admin/abuse-user-reports']['requestBody']['content']['application/json']; export type AdminAbuseUserReportsResponse = operations['admin/abuse-user-reports']['responses']['200']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/models.ts b/packages/misskey-js/src/autogen/models.ts index f3f8c92106e6..323f24ec5227 100644 --- a/packages/misskey-js/src/autogen/models.ts +++ b/packages/misskey-js/src/autogen/models.ts @@ -1,6 +1,6 @@ /* - * version: 2023.12.1 - * generatedAt: 2023-12-27T13:38:13.444Z + * version: 2023.12.2-kinel.1 + * generatedAt: 2024-02-15T16:11:40.183Z */ import { components } from './types.js'; diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 49576e95d4bd..8b38608b8282 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -2,8 +2,8 @@ /* eslint @typescript-eslint/no-explicit-any: 0 */ /* - * version: 2023.12.1 - * generatedAt: 2023-12-27T13:38:13.340Z + * version: 2023.12.2-kinel.1 + * generatedAt: 2024-02-15T16:11:40.091Z */ /** @@ -17,6 +17,15 @@ type XOR = (T | U) extends object ? (Without & U) | (Without & type OneOf = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR, ...Rest]> : never; export type paths = { + '/admin/nirila-delete-user-log-access': { + /** + * admin/nirila-delete-user-log-access + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access* + */ + post: operations['admin/nirila-delete-user-log-access']; + }; '/admin/meta': { /** * admin/meta @@ -4391,6 +4400,68 @@ export type external = Record; export type operations = { + /** + * admin/nirila-delete-user-log-access + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access* + */ + 'admin/nirila-delete-user-log-access': { + requestBody: { + content: { + 'application/json': { + /** @default 10 */ + limit?: number; + /** Format: misskey:id */ + sinceId?: string; + /** Format: misskey:id */ + untilId?: string; + email?: string; + username?: string; + /** Format: misskey:id */ + userId?: string; + }; + }; + }; + responses: { + /** @description OK (with results) */ + 200: { + content: { + 'application/json': Record | Record[]; + }; + }; + /** @description Client error */ + 400: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Authentication error */ + 401: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Forbidden error */ + 403: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description I'm Ai */ + 418: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Internal server error */ + 500: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + }; + }; /** * admin/meta * @description No description provided.