Skip to content

Commit

Permalink
build types
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Mar 27, 2024
1 parent 861ecf4 commit 8be5f35
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 122 deletions.
8 changes: 0 additions & 8 deletions packages/cherrypick-js/etc/cherrypick-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1594,8 +1594,6 @@ declare namespace entities {
NotesPollsRecommendationRequest,
NotesPollsRecommendationResponse,
NotesPollsVoteRequest,
NotesEventsSearchRequest,
NotesEventsSearchResponse,
NotesReactionsRequest,
NotesReactionsResponse,
NotesReactionsCreateRequest,
Expand Down Expand Up @@ -2554,12 +2552,6 @@ type NotesCreateResponse = operations['notes/create']['responses']['200']['conte
// @public (undocumented)
type NotesDeleteRequest = operations['notes/delete']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesEventsSearchRequest = operations['notes/events/search']['requestBody']['content']['application/json'];

// @public (undocumented)
type NotesEventsSearchResponse = operations['notes/events/search']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesFavoritesCreateRequest = operations['notes/favorites/create']['requestBody']['content']['application/json'];

Expand Down
11 changes: 0 additions & 11 deletions packages/cherrypick-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3184,17 +3184,6 @@ declare module '../api.js' {
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
* **Credential required**: *No*
*/
request<E extends 'notes/events/search', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
Expand Down
3 changes: 0 additions & 3 deletions packages/cherrypick-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,6 @@ import type {
NotesPollsRecommendationRequest,
NotesPollsRecommendationResponse,
NotesPollsVoteRequest,
NotesEventsSearchRequest,
NotesEventsSearchResponse,
NotesReactionsRequest,
NotesReactionsResponse,
NotesReactionsCreateRequest,
Expand Down Expand Up @@ -883,7 +881,6 @@ export type Endpoints = {
'notes/mentions': { req: NotesMentionsRequest; res: NotesMentionsResponse };
'notes/polls/recommendation': { req: NotesPollsRecommendationRequest; res: NotesPollsRecommendationResponse };
'notes/polls/vote': { req: NotesPollsVoteRequest; res: EmptyResponse };
'notes/events/search': { req: NotesEventsSearchRequest; res: NotesEventsSearchResponse };
'notes/reactions': { req: NotesReactionsRequest; res: NotesReactionsResponse };
'notes/reactions/create': { req: NotesReactionsCreateRequest; res: EmptyResponse };
'notes/reactions/delete': { req: NotesReactionsDeleteRequest; res: EmptyResponse };
Expand Down
2 changes: 0 additions & 2 deletions packages/cherrypick-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,6 @@ export type NotesMentionsResponse = operations['notes/mentions']['responses']['2
export type NotesPollsRecommendationRequest = operations['notes/polls/recommendation']['requestBody']['content']['application/json'];
export type NotesPollsRecommendationResponse = operations['notes/polls/recommendation']['responses']['200']['content']['application/json'];
export type NotesPollsVoteRequest = operations['notes/polls/vote']['requestBody']['content']['application/json'];
export type NotesEventsSearchRequest = operations['notes/events/search']['requestBody']['content']['application/json'];
export type NotesEventsSearchResponse = operations['notes/events/search']['responses']['200']['content']['application/json'];
export type NotesReactionsRequest = operations['notes/reactions']['requestBody']['content']['application/json'];
export type NotesReactionsResponse = operations['notes/reactions']['responses']['200']['content']['application/json'];
export type NotesReactionsCreateRequest = operations['notes/reactions/create']['requestBody']['content']['application/json'];
Expand Down
104 changes: 6 additions & 98 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2754,15 +2754,6 @@ export type paths = {
*/
post: operations['notes/polls/vote'];
};
'/notes/events/search': {
/**
* notes/events/search
* @description No description provided.
*
* **Credential required**: *No*
*/
post: operations['notes/events/search'];
};
'/notes/reactions': {
/**
* notes/reactions
Expand Down Expand Up @@ -5106,8 +5097,11 @@ export type operations = {
infoImageUrl: string | null;
notFoundImageUrl: string | null;
iconUrl: string | null;
appleIconUrl: string | null;
app192IconUrl: string | null;
app512IconUrl: string | null;
app769IconUrl: string | null;
app1024IconUrl: string | null;
enableEmail: boolean;
enableServiceWorker: boolean;
translatorAvailable: boolean;
Expand Down Expand Up @@ -9466,8 +9460,11 @@ export type operations = {
infoImageUrl?: string | null;
notFoundImageUrl?: string | null;
iconUrl?: string | null;
appleIconUrl?: string | null;
app192IconUrl?: string | null;
app512IconUrl?: string | null;
app769IconUrl?: string | null;
app1024IconUrl?: string | null;
backgroundImageUrl?: string | null;
logoImageUrl?: string | null;
name?: string | null;
Expand Down Expand Up @@ -21595,12 +21592,6 @@ export type operations = {
expiresAt?: number | null;
expiredAfter?: number | null;
}) | null;
event?: ({
title?: string;
start?: number;
end?: number | null;
metadata?: Record<string, never>;
}) | null;
};
};
};
Expand Down Expand Up @@ -21731,8 +21722,6 @@ export type operations = {
expiredAfter?: number | null;
}) | null;
cw: string | null;
/** @default false */
disableRightClick?: boolean;
};
};
};
Expand Down Expand Up @@ -22329,87 +22318,6 @@ export type operations = {
};
};
};
/**
* notes/events/search
* @description No description provided.
*
* **Credential required**: *No*
*/
'notes/events/search': {
requestBody: {
content: {
'application/json': {
query?: string | null;
/** Format: misskey:id */
sinceId?: string;
/** Format: misskey:id */
untilId?: string;
/** @default 10 */
limit?: number;
/**
* @default combined
* @enum {string}
*/
origin?: 'local' | 'remote' | 'combined';
/** @default 0 */
offset?: number;
users?: string[] | null;
sinceDate?: number | null;
untilDate?: number | null;
/** @description list of string -> [string] that filters events based on metadata. Each item in filters is applied as an AND */
filters?: (({
/** @description the metadata string property to filter on. Can filter on nested properties using an array. such as `["location", "postalCode"]`. */
key?: string[];
/** @description The values to match the metadata against (case insensitive regex). Each item in this array is applied as an OR. Include null to indicate match on missing metadata */
values?: (string | null)[];
})[]) | null;
/**
* @default startDate
* @enum {string|null}
*/
sortBy?: 'startDate' | 'createdAt';
};
};
};
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/reactions
* @description No description provided.
Expand Down

0 comments on commit 8be5f35

Please sign in to comment.