Skip to content

Commit

Permalink
Update build-misskey-js-with-types
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Dec 27, 2023
1 parent fba7aed commit 7f59462
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/misskey-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T14:48:28.593Z
* generatedAt: 2023-12-27T16:11:06.180Z
*/

import type { SwitchCaseResponseType } from '../api.js';
Expand Down
5 changes: 3 additions & 2 deletions packages/misskey-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T14:48:28.587Z
* generatedAt: 2023-12-27T16:11:06.175Z
*/

import type {
Expand Down Expand Up @@ -393,6 +393,7 @@ import type {
NotesCreateResponse,
NotesDeleteRequest,
NotesUpdateRequest,
NotesUpdateResponse,
NotesFavoritesCreateRequest,
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
Expand Down Expand Up @@ -805,7 +806,7 @@ export type Endpoints = {
'notes/conversation': { req: NotesConversationRequest; res: NotesConversationResponse };
'notes/create': { req: NotesCreateRequest; res: NotesCreateResponse };
'notes/delete': { req: NotesDeleteRequest; res: EmptyResponse };
'notes/update': { req: NotesUpdateRequest; res: EmptyResponse };
'notes/update': { req: NotesUpdateRequest; res: NotesUpdateResponse };
'notes/favorites/create': { req: NotesFavoritesCreateRequest; res: EmptyResponse };
'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse };
'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse };
Expand Down
3 changes: 2 additions & 1 deletion packages/misskey-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T14:48:28.581Z
* generatedAt: 2023-12-27T16:11:06.172Z
*/

import { operations } from './types.js';
Expand Down Expand Up @@ -395,6 +395,7 @@ export type NotesCreateRequest = operations['notes/create']['requestBody']['cont
export type NotesCreateResponse = operations['notes/create']['responses']['200']['content']['application/json'];
export type NotesDeleteRequest = operations['notes/delete']['requestBody']['content']['application/json'];
export type NotesUpdateRequest = operations['notes/update']['requestBody']['content']['application/json'];
export type NotesUpdateResponse = operations['notes/update']['responses']['200']['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
2 changes: 1 addition & 1 deletion packages/misskey-js/src/autogen/models.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T14:48:28.579Z
* generatedAt: 2023-12-27T16:11:06.170Z
*/

import { components } from './types.js';
Expand Down
24 changes: 20 additions & 4 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/*
* version: 2023.12.1
* generatedAt: 2023-12-27T14:48:28.425Z
* generatedAt: 2023-12-27T16:11:06.000Z
*/

/**
Expand Down Expand Up @@ -3766,6 +3766,8 @@ export type components = {
createdAt: string;
/** Format: date-time */
updatedAt?: string | null;
updatedAtHistory?: string[] | null;
noteEditHistory?: unknown[];
/** Format: date-time */
deletedAt?: string | null;
text: string | null;
Expand Down Expand Up @@ -19753,14 +19755,28 @@ export type operations = {
/** Format: misskey:id */
noteId: string;
text: string;
fileIds?: string[];
mediaIds?: string[];
poll?: ({
choices: string[];
multiple?: boolean;
expiresAt?: number | null;
expiredAfter?: number | null;
}) | null;
cw: string | null;
/** @default false */
disableRightClick?: boolean;
};
};
};
responses: {
/** @description OK (without any results) */
204: {
content: never;
/** @description OK (with results) */
200: {
content: {
'application/json': {
updatedNote: components['schemas']['Note'];
};
};
};
/** @description Client error */
400: {
Expand Down

0 comments on commit 7f59462

Please sign in to comment.