Skip to content

Commit

Permalink
fix autogen
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Feb 24, 2024
1 parent 2469d45 commit 1a58f68
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/misskey-js/etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,7 @@ declare namespace entities {
NotesCreateRequest,
NotesCreateResponse,
NotesDeleteRequest,
NotesUpdateVisibilityRequest,
NotesFavoritesCreateRequest,
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
Expand Down Expand Up @@ -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'];

Expand Down
11 changes: 11 additions & 0 deletions packages/misskey-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2920,6 +2920,17 @@ declare module '../api.js' {
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:notes*
*/
request<E extends 'notes/update-visibility', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
Expand Down
2 changes: 2 additions & 0 deletions packages/misskey-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ import type {
NotesCreateRequest,
NotesCreateResponse,
NotesDeleteRequest,
NotesUpdateVisibilityRequest,
NotesFavoritesCreateRequest,
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
Expand Down Expand Up @@ -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 };
Expand Down
1 change: 1 addition & 0 deletions packages/misskey-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
92 changes: 92 additions & 0 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -3695,6 +3704,7 @@ export type components = {
mutedWords: string[][];
hardMutedWords: string[][];
mutedInstances: string[] | null;
gtlMutedInstances: string[] | null;
notificationRecieveConfig: {
note?: OneOf<[{
/** @enum {string} */
Expand Down Expand Up @@ -4934,6 +4944,7 @@ export type operations = {
/** Format: date-time */
createdAt: string;
comment: string;
reason: string;
/** @example false */
resolved: boolean;
/** Format: id */
Expand Down Expand Up @@ -8799,6 +8810,7 @@ export type operations = {
perUserListTimelineCacheMax?: number;
notesPerOneAd?: number;
silencedHosts?: string[] | null;
gtlMutedHosts?: string[] | null;
};
};
};
Expand Down Expand Up @@ -18681,6 +18693,7 @@ export type operations = {
mutedWords?: (string[] | string)[];
hardMutedWords?: (string[] | string)[];
mutedInstances?: string[];
gtlMutedInstances?: string[];
notificationRecieveConfig?: {
note?: OneOf<[{
/** @enum {string} */
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -20693,6 +20772,8 @@ export type operations = {
withFiles?: boolean;
/** @default true */
withRenotes?: boolean;
/** @default true */
withHashtags?: boolean;
/** @default 10 */
limit?: number;
/** Format: misskey:id */
Expand Down Expand Up @@ -20773,6 +20854,8 @@ export type operations = {
withFiles?: boolean;
/** @default true */
withRenotes?: boolean;
/** @default true */
withHashtags?: boolean;
/** @default false */
withReplies?: boolean;
};
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -21743,6 +21831,8 @@ export type operations = {
withFiles?: boolean;
/** @default true */
withRenotes?: boolean;
/** @default true */
withHashtags?: boolean;
};
};
};
Expand Down Expand Up @@ -25221,6 +25311,8 @@ export type operations = {
withReplies?: boolean;
/** @default true */
withRenotes?: boolean;
/** @default true */
withSpecified?: boolean;
/** @default false */
withChannelNotes?: boolean;
/** @default 10 */
Expand Down

0 comments on commit 1a58f68

Please sign in to comment.