wip: build-misskey-js-with-types
This commit is contained in:
parent
f9452aa539
commit
e2c6fb8947
|
@ -1608,8 +1608,8 @@ declare namespace entities {
|
||||||
NotesFeaturedResponse,
|
NotesFeaturedResponse,
|
||||||
NotesGlobalTimelineRequest,
|
NotesGlobalTimelineRequest,
|
||||||
NotesGlobalTimelineResponse,
|
NotesGlobalTimelineResponse,
|
||||||
NotesHistoryRequest,
|
NotesHistoriesRequest,
|
||||||
NotesHistoryResponse,
|
NotesHistoriesResponse,
|
||||||
NotesHybridTimelineRequest,
|
NotesHybridTimelineRequest,
|
||||||
NotesHybridTimelineResponse,
|
NotesHybridTimelineResponse,
|
||||||
NotesLocalTimelineRequest,
|
NotesLocalTimelineRequest,
|
||||||
|
@ -2575,10 +2575,10 @@ type NotesGlobalTimelineRequest = operations['notes___global-timeline']['request
|
||||||
type NotesGlobalTimelineResponse = operations['notes___global-timeline']['responses']['200']['content']['application/json'];
|
type NotesGlobalTimelineResponse = operations['notes___global-timeline']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type NotesHistoryRequest = operations['notes___history']['requestBody']['content']['application/json'];
|
type NotesHistoriesRequest = operations['notes___histories']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type NotesHistoryResponse = operations['notes___history']['responses']['200']['content']['application/json'];
|
type NotesHistoriesResponse = operations['notes___histories']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type NotesHybridTimelineRequest = operations['notes___hybrid-timeline']['requestBody']['content']['application/json'];
|
type NotesHybridTimelineRequest = operations['notes___hybrid-timeline']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -3100,7 +3100,7 @@ declare module '../api.js' {
|
||||||
*
|
*
|
||||||
* **Credential required**: *No*
|
* **Credential required**: *No*
|
||||||
*/
|
*/
|
||||||
request<E extends 'notes/history', P extends Endpoints[E]['req']>(
|
request<E extends 'notes/histories', P extends Endpoints[E]['req']>(
|
||||||
endpoint: E,
|
endpoint: E,
|
||||||
params: P,
|
params: P,
|
||||||
credential?: string | null,
|
credential?: string | null,
|
||||||
|
|
|
@ -415,8 +415,8 @@ import type {
|
||||||
NotesFeaturedResponse,
|
NotesFeaturedResponse,
|
||||||
NotesGlobalTimelineRequest,
|
NotesGlobalTimelineRequest,
|
||||||
NotesGlobalTimelineResponse,
|
NotesGlobalTimelineResponse,
|
||||||
NotesHistoryRequest,
|
NotesHistoriesRequest,
|
||||||
NotesHistoryResponse,
|
NotesHistoriesResponse,
|
||||||
NotesHybridTimelineRequest,
|
NotesHybridTimelineRequest,
|
||||||
NotesHybridTimelineResponse,
|
NotesHybridTimelineResponse,
|
||||||
NotesLocalTimelineRequest,
|
NotesLocalTimelineRequest,
|
||||||
|
@ -854,7 +854,7 @@ export type Endpoints = {
|
||||||
'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse };
|
'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse };
|
||||||
'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse };
|
'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse };
|
||||||
'notes/global-timeline': { req: NotesGlobalTimelineRequest; res: NotesGlobalTimelineResponse };
|
'notes/global-timeline': { req: NotesGlobalTimelineRequest; res: NotesGlobalTimelineResponse };
|
||||||
'notes/history': { req: NotesHistoryRequest; res: NotesHistoryResponse };
|
'notes/histories': { req: NotesHistoriesRequest; res: NotesHistoriesResponse };
|
||||||
'notes/hybrid-timeline': { req: NotesHybridTimelineRequest; res: NotesHybridTimelineResponse };
|
'notes/hybrid-timeline': { req: NotesHybridTimelineRequest; res: NotesHybridTimelineResponse };
|
||||||
'notes/local-timeline': { req: NotesLocalTimelineRequest; res: NotesLocalTimelineResponse };
|
'notes/local-timeline': { req: NotesLocalTimelineRequest; res: NotesLocalTimelineResponse };
|
||||||
'notes/mentions': { req: NotesMentionsRequest; res: NotesMentionsResponse };
|
'notes/mentions': { req: NotesMentionsRequest; res: NotesMentionsResponse };
|
||||||
|
@ -1238,7 +1238,7 @@ export const endpointReqTypes: Record<keyof Endpoints, 'application/json' | 'mul
|
||||||
'notes/favorites/delete': 'application/json',
|
'notes/favorites/delete': 'application/json',
|
||||||
'notes/featured': 'application/json',
|
'notes/featured': 'application/json',
|
||||||
'notes/global-timeline': 'application/json',
|
'notes/global-timeline': 'application/json',
|
||||||
'notes/history': 'application/json',
|
'notes/histories': 'application/json',
|
||||||
'notes/hybrid-timeline': 'application/json',
|
'notes/hybrid-timeline': 'application/json',
|
||||||
'notes/local-timeline': 'application/json',
|
'notes/local-timeline': 'application/json',
|
||||||
'notes/mentions': 'application/json',
|
'notes/mentions': 'application/json',
|
||||||
|
|
|
@ -418,8 +418,8 @@ export type NotesFeaturedRequest = operations['notes___featured']['requestBody']
|
||||||
export type NotesFeaturedResponse = operations['notes___featured']['responses']['200']['content']['application/json'];
|
export type NotesFeaturedResponse = operations['notes___featured']['responses']['200']['content']['application/json'];
|
||||||
export type NotesGlobalTimelineRequest = operations['notes___global-timeline']['requestBody']['content']['application/json'];
|
export type NotesGlobalTimelineRequest = operations['notes___global-timeline']['requestBody']['content']['application/json'];
|
||||||
export type NotesGlobalTimelineResponse = operations['notes___global-timeline']['responses']['200']['content']['application/json'];
|
export type NotesGlobalTimelineResponse = operations['notes___global-timeline']['responses']['200']['content']['application/json'];
|
||||||
export type NotesHistoryRequest = operations['notes___history']['requestBody']['content']['application/json'];
|
export type NotesHistoriesRequest = operations['notes___histories']['requestBody']['content']['application/json'];
|
||||||
export type NotesHistoryResponse = operations['notes___history']['responses']['200']['content']['application/json'];
|
export type NotesHistoriesResponse = operations['notes___histories']['responses']['200']['content']['application/json'];
|
||||||
export type NotesHybridTimelineRequest = operations['notes___hybrid-timeline']['requestBody']['content']['application/json'];
|
export type NotesHybridTimelineRequest = operations['notes___hybrid-timeline']['requestBody']['content']['application/json'];
|
||||||
export type NotesHybridTimelineResponse = operations['notes___hybrid-timeline']['responses']['200']['content']['application/json'];
|
export type NotesHybridTimelineResponse = operations['notes___hybrid-timeline']['responses']['200']['content']['application/json'];
|
||||||
export type NotesLocalTimelineRequest = operations['notes___local-timeline']['requestBody']['content']['application/json'];
|
export type NotesLocalTimelineRequest = operations['notes___local-timeline']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -2683,14 +2683,14 @@ export type paths = {
|
||||||
*/
|
*/
|
||||||
post: operations['notes___global-timeline'];
|
post: operations['notes___global-timeline'];
|
||||||
};
|
};
|
||||||
'/notes/history': {
|
'/notes/histories': {
|
||||||
/**
|
/**
|
||||||
* notes/history
|
* notes/histories
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
*
|
*
|
||||||
* **Credential required**: *No*
|
* **Credential required**: *No*
|
||||||
*/
|
*/
|
||||||
post: operations['notes___history'];
|
post: operations['notes___histories'];
|
||||||
};
|
};
|
||||||
'/notes/hybrid-timeline': {
|
'/notes/hybrid-timeline': {
|
||||||
/**
|
/**
|
||||||
|
@ -21617,12 +21617,12 @@ export type operations = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* notes/history
|
* notes/histories
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
*
|
*
|
||||||
* **Credential required**: *No*
|
* **Credential required**: *No*
|
||||||
*/
|
*/
|
||||||
notes___history: {
|
notes___histories: {
|
||||||
requestBody: {
|
requestBody: {
|
||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
|
|
Loading…
Reference in New Issue