diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index f362f0b34e2b..d7e5a3952574 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -1507,6 +1507,7 @@ declare namespace entities { NotesCreateRequest, NotesCreateResponse, NotesDeleteRequest, + NotesUpdateVisibilityRequest, NotesFavoritesCreateRequest, NotesFavoritesDeleteRequest, NotesFeaturedRequest, @@ -2537,6 +2538,9 @@ type NotesTranslateResponse = operations['notes/translate']['responses']['200'][ // @public (undocumented) type NotesUnrenoteRequest = operations['notes/unrenote']['requestBody']['content']['application/json']; +// @public (undocumented) +type NotesUpdateVisibilityRequest = operations['notes/update-visibility']['requestBody']['content']['application/json']; + // @public (undocumented) type NotesUserListTimelineRequest = operations['notes/user-list-timeline']['requestBody']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/apiClientJSDoc.ts b/packages/misskey-js/src/autogen/apiClientJSDoc.ts index d27413810c7d..e5e2f2683fd3 100644 --- a/packages/misskey-js/src/autogen/apiClientJSDoc.ts +++ b/packages/misskey-js/src/autogen/apiClientJSDoc.ts @@ -2920,6 +2920,17 @@ declare module '../api.js' { credential?: string | null, ): Promise>; + /** + * No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:notes* + */ + 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 595d0d66c0e9..e1411c535704 100644 --- a/packages/misskey-js/src/autogen/endpoint.ts +++ b/packages/misskey-js/src/autogen/endpoint.ts @@ -388,6 +388,7 @@ import type { NotesCreateRequest, NotesCreateResponse, NotesDeleteRequest, + NotesUpdateVisibilityRequest, NotesFavoritesCreateRequest, NotesFavoritesDeleteRequest, NotesFeaturedRequest, @@ -815,6 +816,7 @@ export type Endpoints = { 'notes/conversation': { req: NotesConversationRequest; res: NotesConversationResponse }; 'notes/create': { req: NotesCreateRequest; res: NotesCreateResponse }; 'notes/delete': { req: NotesDeleteRequest; res: EmptyResponse }; + 'notes/update-visibility': { req: NotesUpdateVisibilityRequest; res: EmptyResponse }; 'notes/favorites/create': { req: NotesFavoritesCreateRequest; res: EmptyResponse }; 'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse }; 'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse }; diff --git a/packages/misskey-js/src/autogen/entities.ts b/packages/misskey-js/src/autogen/entities.ts index e7ed146c4349..9cd3750e387c 100644 --- a/packages/misskey-js/src/autogen/entities.ts +++ b/packages/misskey-js/src/autogen/entities.ts @@ -390,6 +390,7 @@ export type NotesConversationResponse = operations['notes/conversation']['respon export type NotesCreateRequest = operations['notes/create']['requestBody']['content']['application/json']; export type NotesCreateResponse = operations['notes/create']['responses']['200']['content']['application/json']; export type NotesDeleteRequest = operations['notes/delete']['requestBody']['content']['application/json']; +export type NotesUpdateVisibilityRequest = operations['notes/update-visibility']['requestBody']['content']['application/json']; export type NotesFavoritesCreateRequest = operations['notes/favorites/create']['requestBody']['content']['application/json']; export type NotesFavoritesDeleteRequest = operations['notes/favorites/delete']['requestBody']['content']['application/json']; export type NotesFeaturedRequest = operations['notes/featured']['requestBody']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 20f35052d598..69de0cdc18eb 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -2531,6 +2531,15 @@ export type paths = { */ post: operations['notes/delete']; }; + '/notes/update-visibility': { + /** + * notes/update-visibility + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:notes* + */ + post: operations['notes/update-visibility']; + }; '/notes/favorites/create': { /** * notes/favorites/create @@ -3695,6 +3704,7 @@ export type components = { mutedWords: string[][]; hardMutedWords: string[][]; mutedInstances: string[] | null; + gtlMutedInstances: string[] | null; notificationRecieveConfig: { note?: OneOf<[{ /** @enum {string} */ @@ -4934,6 +4944,7 @@ export type operations = { /** Format: date-time */ createdAt: string; comment: string; + reason: string; /** @example false */ resolved: boolean; /** Format: id */ @@ -8799,6 +8810,7 @@ export type operations = { perUserListTimelineCacheMax?: number; notesPerOneAd?: number; silencedHosts?: string[] | null; + gtlMutedHosts?: string[] | null; }; }; }; @@ -18681,6 +18693,7 @@ export type operations = { mutedWords?: (string[] | string)[]; hardMutedWords?: (string[] | string)[]; mutedInstances?: string[]; + gtlMutedInstances?: string[]; notificationRecieveConfig?: { note?: OneOf<[{ /** @enum {string} */ @@ -20511,6 +20524,72 @@ export type operations = { }; }; }; + /** + * notes/update-visibility + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:notes* + */ + 'notes/update-visibility': { + requestBody: { + content: { + 'application/json': { + /** Format: misskey:id */ + noteId: string; + /** @enum {string|null} */ + visibility?: null | 'public' | 'home' | 'followers' | 'specified'; + localOnly?: boolean | null; + /** + * @default null + * @enum {string|null} + */ + reactionAcceptance?: null | 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote'; + }; + }; + }; + responses: { + /** @description OK (without any results) */ + 204: { + content: never; + }; + /** @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 To many requests */ + 429: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Internal server error */ + 500: { + content: { + 'application/json': components['schemas']['Error']; + }; + }; + }; + }; /** * notes/favorites/create * @description No description provided. @@ -20693,6 +20772,8 @@ export type operations = { withFiles?: boolean; /** @default true */ withRenotes?: boolean; + /** @default true */ + withHashtags?: boolean; /** @default 10 */ limit?: number; /** Format: misskey:id */ @@ -20773,6 +20854,8 @@ export type operations = { withFiles?: boolean; /** @default true */ withRenotes?: boolean; + /** @default true */ + withHashtags?: boolean; /** @default false */ withReplies?: boolean; }; @@ -20831,6 +20914,11 @@ export type operations = { withFiles?: boolean; /** @default true */ withRenotes?: boolean; + /** @default true */ + withHashtags?: boolean; + fileType?: string[]; + /** @default false */ + excludeNsfw?: boolean; /** @default false */ withReplies?: boolean; /** @default 10 */ @@ -21743,6 +21831,8 @@ export type operations = { withFiles?: boolean; /** @default true */ withRenotes?: boolean; + /** @default true */ + withHashtags?: boolean; }; }; }; @@ -25221,6 +25311,8 @@ export type operations = { withReplies?: boolean; /** @default true */ withRenotes?: boolean; + /** @default true */ + withSpecified?: boolean; /** @default false */ withChannelNotes?: boolean; /** @default 10 */