From 3a98271802002d1da2623bcb9657f0b39fefc622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Sat, 7 Sep 2024 20:28:33 +0900 Subject: [PATCH] autogen: api/locale indexing --- locales/index.d.ts | 34 ++++++++ packages/misskey-js/etc/misskey-js.api.md | 12 +++ .../misskey-js/src/autogen/apiClientJSDoc.ts | 11 +++ packages/misskey-js/src/autogen/endpoint.ts | 3 + packages/misskey-js/src/autogen/entities.ts | 2 + packages/misskey-js/src/autogen/models.ts | 1 + packages/misskey-js/src/autogen/types.ts | 78 +++++++++++++++++++ 7 files changed, 141 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index 7b83b6fa2..c4368fdbd 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5215,6 +5215,10 @@ export interface Locale extends ILocale { * 現在、休暇モードを使用しています。 このメッセージを閉じるにはここをクリックしてください。 */ "youAreOnVacation": string; + /** + * 노트 자동 삭제 + */ + "autoRemoval": string; "_bubbleGame": { /** * 遊び方 @@ -5418,6 +5422,36 @@ export interface Locale extends ILocale { */ "silenceDescription": string; }; + "_autoRemoval": { + /** + * 노트 자동 삭제를 사용하기 + */ + "use": string; + /** + * 이 기간이 지난 후에 자동으로 삭제 + */ + "deleteAfter": string; + /** + * 여기에 적힌 일 수가 지나면 노트를 자동으로 삭제합니다. 활성화 이후에는 삭제 대상인 노트도 같이 제거됩니다. + */ + "deleteAfterDescription": string; + /** + * 고정된 노트를 제외하기 + */ + "noPiningNotes": string; + /** + * 프로필에 고정된 노트를 제외하고 삭제합니다. + */ + "noPiningNotesDescription": string; + /** + * 다이렉트 노트를 제외하기 + */ + "noSpecifiedNotes": string; + /** + * 다이렉트 노트를 제외하고 삭제합니다. + */ + "noSpecifiedNotesDescription": string; + }; "_initialTutorial": { /** * チュートリアルを見る diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index acb3973df..c6c64a013 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -524,6 +524,9 @@ type AuthSessionUserkeyRequest = operations['auth___session___userkey']['request // @public (undocumented) type AuthSessionUserkeyResponse = operations['auth___session___userkey']['responses']['200']['content']['application/json']; +// @public (undocumented) +type AutoRemovalCondition = components['schemas']['AutoRemovalCondition']; + // @public (undocumented) type Blocking = components['schemas']['Blocking']; @@ -1569,6 +1572,8 @@ declare namespace entities { IUpdateEmailResponse, IUpdateRequest, IUpdateResponse, + IUpdateRemovalConditionRequest, + IUpdateRemovalConditionResponse, IMoveRequest, IMoveResponse, IWebhooksCreateRequest, @@ -1819,6 +1824,7 @@ declare namespace entities { EmojiDetailed, Flash, FlashLike, + AutoRemovalCondition, Signin, RoleCondFormulaLogics, RoleCondFormulaValueNot, @@ -2320,6 +2326,12 @@ type IUpdateEmailRequest = operations['i___update-email']['requestBody']['conten // @public (undocumented) type IUpdateEmailResponse = operations['i___update-email']['responses']['200']['content']['application/json']; +// @public (undocumented) +type IUpdateRemovalConditionRequest = operations['i___update-removal-condition']['requestBody']['content']['application/json']; + +// @public (undocumented) +type IUpdateRemovalConditionResponse = operations['i___update-removal-condition']['responses']['200']['content']['application/json']; + // @public (undocumented) type IUpdateRequest = operations['i___update']['requestBody']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/apiClientJSDoc.ts b/packages/misskey-js/src/autogen/apiClientJSDoc.ts index a36996a5c..7ebd4f673 100644 --- a/packages/misskey-js/src/autogen/apiClientJSDoc.ts +++ b/packages/misskey-js/src/autogen/apiClientJSDoc.ts @@ -2822,6 +2822,17 @@ declare module '../api.js' { credential?: string | null, ): Promise>; + /** + * No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:account* + */ + 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 7683f212d..850252366 100644 --- a/packages/misskey-js/src/autogen/endpoint.ts +++ b/packages/misskey-js/src/autogen/endpoint.ts @@ -371,6 +371,8 @@ import type { IUpdateEmailResponse, IUpdateRequest, IUpdateResponse, + IUpdateRemovalConditionRequest, + IUpdateRemovalConditionResponse, IMoveRequest, IMoveResponse, IWebhooksCreateRequest, @@ -837,6 +839,7 @@ export type Endpoints = { 'i/unpin': { req: IUnpinRequest; res: IUnpinResponse }; 'i/update-email': { req: IUpdateEmailRequest; res: IUpdateEmailResponse }; 'i/update': { req: IUpdateRequest; res: IUpdateResponse }; + 'i/update-removal-condition': { req: IUpdateRemovalConditionRequest; res: IUpdateRemovalConditionResponse }; 'i/move': { req: IMoveRequest; res: IMoveResponse }; 'i/webhooks/create': { req: IWebhooksCreateRequest; res: IWebhooksCreateResponse }; 'i/webhooks/list': { req: EmptyRequest; res: IWebhooksListResponse }; diff --git a/packages/misskey-js/src/autogen/entities.ts b/packages/misskey-js/src/autogen/entities.ts index e9ee6a253..37aeb917d 100644 --- a/packages/misskey-js/src/autogen/entities.ts +++ b/packages/misskey-js/src/autogen/entities.ts @@ -374,6 +374,8 @@ export type IUpdateEmailRequest = operations['i___update-email']['requestBody'][ export type IUpdateEmailResponse = operations['i___update-email']['responses']['200']['content']['application/json']; export type IUpdateRequest = operations['i___update']['requestBody']['content']['application/json']; export type IUpdateResponse = operations['i___update']['responses']['200']['content']['application/json']; +export type IUpdateRemovalConditionRequest = operations['i___update-removal-condition']['requestBody']['content']['application/json']; +export type IUpdateRemovalConditionResponse = operations['i___update-removal-condition']['responses']['200']['content']['application/json']; export type IMoveRequest = operations['i___move']['requestBody']['content']['application/json']; export type IMoveResponse = operations['i___move']['responses']['200']['content']['application/json']; export type IWebhooksCreateRequest = operations['i___webhooks___create']['requestBody']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/models.ts b/packages/misskey-js/src/autogen/models.ts index 6a8eccbf4..d3809278a 100644 --- a/packages/misskey-js/src/autogen/models.ts +++ b/packages/misskey-js/src/autogen/models.ts @@ -39,6 +39,7 @@ export type EmojiSimple = components['schemas']['EmojiSimple']; export type EmojiDetailed = components['schemas']['EmojiDetailed']; export type Flash = components['schemas']['Flash']; export type FlashLike = components['schemas']['FlashLike']; +export type AutoRemovalCondition = components['schemas']['AutoRemovalCondition']; export type Signin = components['schemas']['Signin']; export type RoleCondFormulaLogics = components['schemas']['RoleCondFormulaLogics']; export type RoleCondFormulaValueNot = components['schemas']['RoleCondFormulaValueNot']; diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 313cd6b9e..14297bade 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -2437,6 +2437,15 @@ export type paths = { */ post: operations['i___update']; }; + '/i/update-removal-condition': { + /** + * i/update-removal-condition + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:account* + */ + post: operations['i___update-removal-condition']; + }; '/i/move': { /** * i/move @@ -4054,6 +4063,12 @@ export type components = { name: string; unlockedAt: number; }[]; + autoRemovalCondition: { + active: boolean; + deleteAfter: number; + noPiningNotes: boolean; + noSpecifiedNotes: boolean; + }; loggedInDays: number; policies: components['schemas']['RolePolicies']; email?: string | null; @@ -4836,6 +4851,11 @@ export type components = { id: string; flash: components['schemas']['Flash']; }; + AutoRemovalCondition: { + deleteAfter?: number; + noPiningNotes?: boolean; + noSpecifiedNotes?: boolean; + }; Signin: { id: string; /** Format: date-time */ @@ -20419,6 +20439,8 @@ export type operations = { description?: string | null; })[]; })[]; + autoRemoval?: boolean; + autoRemovalCondition?: Record; }; }; }; @@ -20467,6 +20489,62 @@ export type operations = { }; }; }; + /** + * i/update-removal-condition + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:account* + */ + 'i___update-removal-condition': { + requestBody: { + content: { + 'application/json': { + active?: boolean; + deleteAfter?: number; + noPiningNotes?: boolean; + noSpecifiedNotes?: boolean; + }; + }; + }; + responses: { + /** @description OK (with results) */ + 200: { + content: { + 'application/json': components['schemas']['MeDetailed']; + }; + }; + /** @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']; + }; + }; + }; + }; /** * i/move * @description No description provided.