update misskey-js for notes/following endpoint

This commit is contained in:
Hazel K 2024-09-30 12:03:48 -04:00
parent 04baad2f9c
commit 502e642b4a
5 changed files with 106 additions and 3 deletions

View file

@ -1642,6 +1642,8 @@ declare namespace entities {
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
NotesFeaturedResponse,
NotesFollowingRequest,
NotesFollowingResponse,
NotesGlobalTimelineRequest,
NotesGlobalTimelineResponse,
NotesBubbleTimelineRequest,
@ -2648,6 +2650,12 @@ type NotesFeaturedRequest = operations['notes___featured']['requestBody']['conte
// @public (undocumented)
type NotesFeaturedResponse = operations['notes___featured']['responses']['200']['content']['application/json'];
// @public (undocumented)
type NotesFollowingRequest = operations['notes___following']['requestBody']['content']['application/json'];
// @public (undocumented)
type NotesFollowingResponse = operations['notes___following']['responses']['200']['content']['application/json'];
// @public (undocumented)
type NotesGlobalTimelineRequest = operations['notes___global-timeline']['requestBody']['content']['application/json'];

View file

@ -3174,6 +3174,17 @@ declare module '../api.js' {
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;
/**
* No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
request<E extends 'notes/following', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;
/**
* No description provided.
*
@ -4258,7 +4269,7 @@ declare module '../api.js' {
): Promise<SwitchCaseResponseType<E, P>>;
/**
* Get Sharkey GH Sponsors
* Get Sharkey Sponsors
*
* **Credential required**: *No*
*/

View file

@ -420,6 +420,8 @@ import type {
NotesFavoritesDeleteRequest,
NotesFeaturedRequest,
NotesFeaturedResponse,
NotesFollowingRequest,
NotesFollowingResponse,
NotesGlobalTimelineRequest,
NotesGlobalTimelineResponse,
NotesBubbleTimelineRequest,
@ -873,6 +875,7 @@ export type Endpoints = {
'notes/favorites/create': { req: NotesFavoritesCreateRequest; res: EmptyResponse };
'notes/favorites/delete': { req: NotesFavoritesDeleteRequest; res: EmptyResponse };
'notes/featured': { req: NotesFeaturedRequest; res: NotesFeaturedResponse };
'notes/following': { req: NotesFollowingRequest; res: NotesFollowingResponse };
'notes/global-timeline': { req: NotesGlobalTimelineRequest; res: NotesGlobalTimelineResponse };
'notes/bubble-timeline': { req: NotesBubbleTimelineRequest; res: NotesBubbleTimelineResponse };
'notes/hybrid-timeline': { req: NotesHybridTimelineRequest; res: NotesHybridTimelineResponse };
@ -1268,6 +1271,7 @@ export const endpointReqTypes: Record<keyof Endpoints, 'application/json' | 'mul
'notes/favorites/create': 'application/json',
'notes/favorites/delete': 'application/json',
'notes/featured': 'application/json',
'notes/following': 'application/json',
'notes/global-timeline': 'application/json',
'notes/bubble-timeline': 'application/json',
'notes/hybrid-timeline': 'application/json',

View file

@ -423,6 +423,8 @@ export type NotesFavoritesCreateRequest = operations['notes___favorites___create
export type NotesFavoritesDeleteRequest = operations['notes___favorites___delete']['requestBody']['content']['application/json'];
export type NotesFeaturedRequest = operations['notes___featured']['requestBody']['content']['application/json'];
export type NotesFeaturedResponse = operations['notes___featured']['responses']['200']['content']['application/json'];
export type NotesFollowingRequest = operations['notes___following']['requestBody']['content']['application/json'];
export type NotesFollowingResponse = operations['notes___following']['responses']['200']['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 NotesBubbleTimelineRequest = operations['notes___bubble-timeline']['requestBody']['content']['application/json'];

View file

@ -2748,6 +2748,22 @@ export type paths = {
*/
post: operations['notes___featured'];
};
'/notes/following': {
/**
* notes/following
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
get: operations['notes___following'];
/**
* notes/following
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
post: operations['notes___following'];
};
'/notes/global-timeline': {
/**
* notes/global-timeline
@ -3673,7 +3689,7 @@ export type paths = {
'/sponsors': {
/**
* sponsors
* @description Get Sharkey GH Sponsors
* @description Get Sharkey Sponsors
*
* **Credential required**: *No*
*/
@ -22173,6 +22189,68 @@ export type operations = {
};
};
};
/**
* notes/following
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
notes___following: {
requestBody: {
content: {
'application/json': {
/** @default false */
mutualsOnly?: boolean;
/** @default 10 */
limit?: number;
/** Format: misskey:id */
sinceId?: string;
/** Format: misskey:id */
untilId?: string;
sinceDate?: number;
untilDate?: number;
};
};
};
responses: {
/** @description OK (with results) */
200: {
content: {
'application/json': components['schemas']['Note'][];
};
};
/** @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'];
};
};
};
};
/**
* notes/global-timeline
* @description No description provided.
@ -27988,7 +28066,7 @@ export type operations = {
};
/**
* sponsors
* @description Get Sharkey GH Sponsors
* @description Get Sharkey Sponsors
*
* **Credential required**: *No*
*/