Skip to content

Commit 538be45

Browse files
committed
Fix: API Extractor rerun
1 parent 4638f06 commit 538be45

5 files changed

Lines changed: 116 additions & 8 deletions

File tree

packages/misskey-js/etc/misskey-js.api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ type AdminEmojiUpdateRequestSettingsRequest = operations['admin___emoji___update
263263
// @public (undocumented)
264264
type AdminEmojiUpdateRequestSettingsResponse = operations['admin___emoji___update-request-settings']['responses']['200']['content']['application/json'];
265265

266+
// @public (undocumented)
267+
type AdminEventsListRequest = operations['admin___events___list']['requestBody']['content']['application/json'];
268+
269+
// @public (undocumented)
270+
type AdminEventsListResponse = operations['admin___events___list']['responses']['200']['content']['application/json'];
271+
266272
// @public (undocumented)
267273
type AdminFederationDeleteAllFilesRequest = operations['admin___federation___delete-all-files']['requestBody']['content']['application/json'];
268274

@@ -1723,6 +1729,8 @@ declare namespace entities {
17231729
AdminEmojiUpdateRequestResponse,
17241730
AdminEmojiUpdateRequestSettingsRequest,
17251731
AdminEmojiUpdateRequestSettingsResponse,
1732+
AdminEventsListRequest,
1733+
AdminEventsListResponse,
17261734
AdminFederationDeleteAllFilesRequest,
17271735
AdminFederationRefreshRemoteInstanceMetadataRequest,
17281736
AdminFederationRemoveAllFollowingRequest,
@@ -2013,6 +2021,8 @@ declare namespace entities {
20132021
EventsPendingResponse,
20142022
EventsRejectRequest,
20152023
EventsRejectResponse,
2024+
EventsRelevantRequest,
2025+
EventsRelevantResponse,
20162026
EventsShowRequest,
20172027
EventsShowResponse,
20182028
EventsUpdateRequest,
@@ -2485,6 +2495,12 @@ type EventsRejectRequest = operations['events___reject']['requestBody']['content
24852495
// @public (undocumented)
24862496
type EventsRejectResponse = operations['events___reject']['responses']['200']['content']['application/json'];
24872497

2498+
// @public (undocumented)
2499+
type EventsRelevantRequest = operations['events___relevant']['requestBody']['content']['application/json'];
2500+
2501+
// @public (undocumented)
2502+
type EventsRelevantResponse = operations['events___relevant']['responses']['200']['content']['application/json'];
2503+
24882504
// @public (undocumented)
24892505
type EventsShowRequest = operations['events___show']['requestBody']['content']['application/json'];
24902506

packages/misskey-js/src/autogen/apiClientJSDoc.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,6 +2597,17 @@ declare module '../api.js' {
25972597
credential?: string | null,
25982598
): Promise<SwitchCaseResponseType<E, P>>;
25992599

2600+
/**
2601+
* No description provided.
2602+
*
2603+
* **Credential required**: *Yes* / **Permission**: *read:account*
2604+
*/
2605+
request<E extends 'events/relevant', P extends Endpoints[E]['req']>(
2606+
endpoint: E,
2607+
params: P,
2608+
credential?: string | null,
2609+
): Promise<SwitchCaseResponseType<E, P>>;
2610+
26002611
/**
26012612
* No description provided.
26022613
*

packages/misskey-js/src/autogen/endpoint.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ import type {
368368
EventsPendingResponse,
369369
EventsRejectRequest,
370370
EventsRejectResponse,
371+
EventsRelevantRequest,
372+
EventsRelevantResponse,
371373
EventsShowRequest,
372374
EventsShowResponse,
373375
EventsUpdateRequest,
@@ -957,6 +959,7 @@ export type Endpoints = {
957959
'events/my-submissions': { req: EventsMySubmissionsRequest; res: EventsMySubmissionsResponse };
958960
'events/pending': { req: EventsPendingRequest; res: EventsPendingResponse };
959961
'events/reject': { req: EventsRejectRequest; res: EventsRejectResponse };
962+
'events/relevant': { req: EventsRelevantRequest; res: EventsRelevantResponse };
960963
'events/show': { req: EventsShowRequest; res: EventsShowResponse };
961964
'events/update': { req: EventsUpdateRequest; res: EventsUpdateResponse };
962965
'export-custom-emojis': { req: EmptyRequest; res: EmptyResponse };

packages/misskey-js/src/autogen/entities.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ export type EventsPendingRequest = operations['events___pending']['requestBody']
371371
export type EventsPendingResponse = operations['events___pending']['responses']['200']['content']['application/json'];
372372
export type EventsRejectRequest = operations['events___reject']['requestBody']['content']['application/json'];
373373
export type EventsRejectResponse = operations['events___reject']['responses']['200']['content']['application/json'];
374+
export type EventsRelevantRequest = operations['events___relevant']['requestBody']['content']['application/json'];
375+
export type EventsRelevantResponse = operations['events___relevant']['responses']['200']['content']['application/json'];
374376
export type EventsShowRequest = operations['events___show']['requestBody']['content']['application/json'];
375377
export type EventsShowResponse = operations['events___show']['responses']['200']['content']['application/json'];
376378
export type EventsUpdateRequest = operations['events___update']['requestBody']['content']['application/json'];

packages/misskey-js/src/autogen/types.ts

Lines changed: 84 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,15 @@ export type paths = {
21282128
*/
21292129
post: operations['events___reject'];
21302130
};
2131+
'/events/relevant': {
2132+
/**
2133+
* events/relevant
2134+
* @description No description provided.
2135+
*
2136+
* **Credential required**: *Yes* / **Permission**: *read:account*
2137+
*/
2138+
post: operations['events___relevant'];
2139+
};
21312140
'/events/show': {
21322141
/**
21332142
* events/show
@@ -6005,6 +6014,7 @@ export type components = {
60056014
endAt: string | null;
60066015
description: string | null;
60076016
url: string | null;
6017+
color: string | null;
60086018
tags: string[];
60096019
/** Format: id */
60106020
createdById: string;
@@ -22590,6 +22600,7 @@ export interface operations {
2259022600
endAt?: number | null;
2259122601
description?: string | null;
2259222602
url?: string | null;
22603+
color?: string | null;
2259322604
tags?: string[];
2259422605
/** Format: misskey:id */
2259522606
channelId?: string | null;
@@ -23009,6 +23020,78 @@ export interface operations {
2300923020
};
2301023021
};
2301123022
};
23023+
events___relevant: {
23024+
requestBody: {
23025+
content: {
23026+
'application/json': {
23027+
/** @default 10 */
23028+
limit?: number;
23029+
/** Format: misskey:id */
23030+
sinceId?: string;
23031+
/** Format: misskey:id */
23032+
untilId?: string;
23033+
sinceDate?: number;
23034+
untilDate?: number;
23035+
};
23036+
};
23037+
};
23038+
responses: {
23039+
/** @description OK (with results) */
23040+
200: {
23041+
headers: {
23042+
[name: string]: unknown;
23043+
};
23044+
content: {
23045+
'application/json': components['schemas']['Event'][];
23046+
};
23047+
};
23048+
/** @description Client error */
23049+
400: {
23050+
headers: {
23051+
[name: string]: unknown;
23052+
};
23053+
content: {
23054+
'application/json': components['schemas']['Error'];
23055+
};
23056+
};
23057+
/** @description Authentication error */
23058+
401: {
23059+
headers: {
23060+
[name: string]: unknown;
23061+
};
23062+
content: {
23063+
'application/json': components['schemas']['Error'];
23064+
};
23065+
};
23066+
/** @description Forbidden error */
23067+
403: {
23068+
headers: {
23069+
[name: string]: unknown;
23070+
};
23071+
content: {
23072+
'application/json': components['schemas']['Error'];
23073+
};
23074+
};
23075+
/** @description I'm Ai */
23076+
418: {
23077+
headers: {
23078+
[name: string]: unknown;
23079+
};
23080+
content: {
23081+
'application/json': components['schemas']['Error'];
23082+
};
23083+
};
23084+
/** @description Internal server error */
23085+
500: {
23086+
headers: {
23087+
[name: string]: unknown;
23088+
};
23089+
content: {
23090+
'application/json': components['schemas']['Error'];
23091+
};
23092+
};
23093+
};
23094+
};
2301223095
events___show: {
2301323096
requestBody: {
2301423097
content: {
@@ -23086,6 +23169,7 @@ export interface operations {
2308623169
endAt?: number | null;
2308723170
description?: string | null;
2308823171
url?: string | null;
23172+
color?: string | null;
2308923173
tags?: string[];
2309023174
/** Format: misskey:id */
2309123175
channelId?: string | null;
@@ -33079,10 +33163,6 @@ export interface operations {
3307933163
'application/json': {
3308033164
/** Format: misskey:id */
3308133165
noteId: string;
33082-
/** @default ja-JP */
33083-
locale?: string;
33084-
/** @default ja */
33085-
language?: string;
3308633166
};
3308733167
};
3308833168
};
@@ -33100,11 +33180,7 @@ export interface operations {
3310033180
aliases: string[];
3310133181
category: string | null;
3310233182
}[];
33103-
/** @enum {string} */
33104-
source: 'cache' | 'live' | 'fallback';
3310533183
reason: string | null;
33106-
modelVersion: string;
33107-
emojiIndexVersion: string;
3310833184
};
3310933185
};
3311033186
};

0 commit comments

Comments
 (0)