misskey-jsの型とインターフェース生成
This commit is contained in:
parent
7d7c2d4daf
commit
a46fefd43c
|
@ -815,6 +815,15 @@ type ChannelsFollowedResponse = operations['channels___followed']['responses']['
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ChannelsFollowRequest = operations['channels___follow']['requestBody']['content']['application/json'];
|
type ChannelsFollowRequest = operations['channels___follow']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type ChannelsMuteCreateRequest = operations['channels___mute___create']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type ChannelsMuteDeleteRequest = operations['channels___mute___delete']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type ChannelsMuteListResponse = operations['channels___mute___list']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ChannelsMyFavoritesResponse = operations['channels___my-favorites']['responses']['200']['content']['application/json'];
|
type ChannelsMyFavoritesResponse = operations['channels___my-favorites']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
|
@ -1358,6 +1367,9 @@ declare namespace entities {
|
||||||
ChannelsMyFavoritesResponse,
|
ChannelsMyFavoritesResponse,
|
||||||
ChannelsSearchRequest,
|
ChannelsSearchRequest,
|
||||||
ChannelsSearchResponse,
|
ChannelsSearchResponse,
|
||||||
|
ChannelsMuteCreateRequest,
|
||||||
|
ChannelsMuteDeleteRequest,
|
||||||
|
ChannelsMuteListResponse,
|
||||||
ChartsActiveUsersRequest,
|
ChartsActiveUsersRequest,
|
||||||
ChartsActiveUsersResponse,
|
ChartsActiveUsersResponse,
|
||||||
ChartsApRequestRequest,
|
ChartsApRequestRequest,
|
||||||
|
|
|
@ -1313,6 +1313,39 @@ declare module '../api.js' {
|
||||||
credential?: string | null,
|
credential?: string | null,
|
||||||
): Promise<SwitchCaseResponseType<E, P>>;
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
request<E extends 'channels/mute/create', P extends Endpoints[E]['req']>(
|
||||||
|
endpoint: E,
|
||||||
|
params: P,
|
||||||
|
credential?: string | null,
|
||||||
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
request<E extends 'channels/mute/delete', P extends Endpoints[E]['req']>(
|
||||||
|
endpoint: E,
|
||||||
|
params: P,
|
||||||
|
credential?: string | null,
|
||||||
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *read:channels*
|
||||||
|
*/
|
||||||
|
request<E extends 'channels/mute/list', P extends Endpoints[E]['req']>(
|
||||||
|
endpoint: E,
|
||||||
|
params: P,
|
||||||
|
credential?: string | null,
|
||||||
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No description provided.
|
* No description provided.
|
||||||
*
|
*
|
||||||
|
|
|
@ -172,6 +172,9 @@ import type {
|
||||||
ChannelsMyFavoritesResponse,
|
ChannelsMyFavoritesResponse,
|
||||||
ChannelsSearchRequest,
|
ChannelsSearchRequest,
|
||||||
ChannelsSearchResponse,
|
ChannelsSearchResponse,
|
||||||
|
ChannelsMuteCreateRequest,
|
||||||
|
ChannelsMuteDeleteRequest,
|
||||||
|
ChannelsMuteListResponse,
|
||||||
ChartsActiveUsersRequest,
|
ChartsActiveUsersRequest,
|
||||||
ChartsActiveUsersResponse,
|
ChartsActiveUsersResponse,
|
||||||
ChartsApRequestRequest,
|
ChartsApRequestRequest,
|
||||||
|
@ -692,6 +695,9 @@ export type Endpoints = {
|
||||||
'channels/unfavorite': { req: ChannelsUnfavoriteRequest; res: EmptyResponse };
|
'channels/unfavorite': { req: ChannelsUnfavoriteRequest; res: EmptyResponse };
|
||||||
'channels/my-favorites': { req: EmptyRequest; res: ChannelsMyFavoritesResponse };
|
'channels/my-favorites': { req: EmptyRequest; res: ChannelsMyFavoritesResponse };
|
||||||
'channels/search': { req: ChannelsSearchRequest; res: ChannelsSearchResponse };
|
'channels/search': { req: ChannelsSearchRequest; res: ChannelsSearchResponse };
|
||||||
|
'channels/mute/create': { req: ChannelsMuteCreateRequest; res: EmptyResponse };
|
||||||
|
'channels/mute/delete': { req: ChannelsMuteDeleteRequest; res: EmptyResponse };
|
||||||
|
'channels/mute/list': { req: EmptyRequest; res: ChannelsMuteListResponse };
|
||||||
'charts/active-users': { req: ChartsActiveUsersRequest; res: ChartsActiveUsersResponse };
|
'charts/active-users': { req: ChartsActiveUsersRequest; res: ChartsActiveUsersResponse };
|
||||||
'charts/ap-request': { req: ChartsApRequestRequest; res: ChartsApRequestResponse };
|
'charts/ap-request': { req: ChartsApRequestRequest; res: ChartsApRequestResponse };
|
||||||
'charts/drive': { req: ChartsDriveRequest; res: ChartsDriveResponse };
|
'charts/drive': { req: ChartsDriveRequest; res: ChartsDriveResponse };
|
||||||
|
|
|
@ -175,6 +175,9 @@ export type ChannelsUnfavoriteRequest = operations['channels___unfavorite']['req
|
||||||
export type ChannelsMyFavoritesResponse = operations['channels___my-favorites']['responses']['200']['content']['application/json'];
|
export type ChannelsMyFavoritesResponse = operations['channels___my-favorites']['responses']['200']['content']['application/json'];
|
||||||
export type ChannelsSearchRequest = operations['channels___search']['requestBody']['content']['application/json'];
|
export type ChannelsSearchRequest = operations['channels___search']['requestBody']['content']['application/json'];
|
||||||
export type ChannelsSearchResponse = operations['channels___search']['responses']['200']['content']['application/json'];
|
export type ChannelsSearchResponse = operations['channels___search']['responses']['200']['content']['application/json'];
|
||||||
|
export type ChannelsMuteCreateRequest = operations['channels___mute___create']['requestBody']['content']['application/json'];
|
||||||
|
export type ChannelsMuteDeleteRequest = operations['channels___mute___delete']['requestBody']['content']['application/json'];
|
||||||
|
export type ChannelsMuteListResponse = operations['channels___mute___list']['responses']['200']['content']['application/json'];
|
||||||
export type ChartsActiveUsersRequest = operations['charts___active-users']['requestBody']['content']['application/json'];
|
export type ChartsActiveUsersRequest = operations['charts___active-users']['requestBody']['content']['application/json'];
|
||||||
export type ChartsActiveUsersResponse = operations['charts___active-users']['responses']['200']['content']['application/json'];
|
export type ChartsActiveUsersResponse = operations['charts___active-users']['responses']['200']['content']['application/json'];
|
||||||
export type ChartsApRequestRequest = operations['charts___ap-request']['requestBody']['content']['application/json'];
|
export type ChartsApRequestRequest = operations['charts___ap-request']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -1086,6 +1086,33 @@ export type paths = {
|
||||||
*/
|
*/
|
||||||
post: operations['channels___search'];
|
post: operations['channels___search'];
|
||||||
};
|
};
|
||||||
|
'/channels/mute/create': {
|
||||||
|
/**
|
||||||
|
* channels/mute/create
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
post: operations['channels___mute___create'];
|
||||||
|
};
|
||||||
|
'/channels/mute/delete': {
|
||||||
|
/**
|
||||||
|
* channels/mute/delete
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
post: operations['channels___mute___delete'];
|
||||||
|
};
|
||||||
|
'/channels/mute/list': {
|
||||||
|
/**
|
||||||
|
* channels/mute/list
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *read:channels*
|
||||||
|
*/
|
||||||
|
post: operations['channels___mute___list'];
|
||||||
|
};
|
||||||
'/charts/active-users': {
|
'/charts/active-users': {
|
||||||
/**
|
/**
|
||||||
* charts/active-users
|
* charts/active-users
|
||||||
|
@ -12132,6 +12159,158 @@ export type operations = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* channels/mute/create
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
channels___mute___create: {
|
||||||
|
requestBody: {
|
||||||
|
content: {
|
||||||
|
'application/json': {
|
||||||
|
/** Format: misskey:id */
|
||||||
|
channelId: string;
|
||||||
|
/** @description A Unix Epoch timestamp that must lie in the future. `null` means an indefinite mute. */
|
||||||
|
expiresAt?: number | null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
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 Internal server error */
|
||||||
|
500: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* channels/mute/delete
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:channels*
|
||||||
|
*/
|
||||||
|
channels___mute___delete: {
|
||||||
|
requestBody: {
|
||||||
|
content: {
|
||||||
|
'application/json': {
|
||||||
|
/** Format: misskey:id */
|
||||||
|
channelId: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
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 Internal server error */
|
||||||
|
500: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* channels/mute/list
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *read:channels*
|
||||||
|
*/
|
||||||
|
channels___mute___list: {
|
||||||
|
responses: {
|
||||||
|
/** @description OK (with results) */
|
||||||
|
200: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Channel'][];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @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'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* charts/active-users
|
* charts/active-users
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
|
|
Loading…
Reference in New Issue