Skip to content

Commit

Permalink
cherrypick-jsの更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Esurio committed Apr 25, 2024
1 parent 48aa233 commit 28f3913
Show file tree
Hide file tree
Showing 7 changed files with 12,777 additions and 9,748 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/kokonect-link/cherrypick.git"
},
"packageManager": "pnpm@8.15.1",
"packageManager": "pnpm@9.0.5",
"workspaces": [
"packages/frontend",
"packages/backend",
Expand Down
16 changes: 16 additions & 0 deletions packages/cherrypick-js/etc/cherrypick-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,10 @@ declare namespace entities {
NotesSearchByTagResponse,
NotesSearchRequest,
NotesSearchResponse,
NotesSearchFileRequest,
NotesSearchFileResponse,
NotesAdvancedSearchRequest,
NotesAdvancedSearchResponse,
NotesShowRequest,
NotesShowResponse,
NotesStateRequest,
Expand Down Expand Up @@ -2527,6 +2531,12 @@ type NoteFavorite = components['schemas']['NoteFavorite'];
// @public (undocumented)
type NoteReaction = components['schemas']['NoteReaction'];

// @public (undocumented)
type NotesAdvancedSearchRequest = operations['notes/advanced-search']['requestBody']['content']['application/json'];

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

// @public (undocumented)
type NotesChildrenRequest = operations['notes/children']['requestBody']['content']['application/json'];

Expand Down Expand Up @@ -2641,6 +2651,12 @@ type NotesSearchByTagRequest = operations['notes/search-by-tag']['requestBody'][
// @public (undocumented)
type NotesSearchByTagResponse = operations['notes/search-by-tag']['responses']['200']['content']['application/json'];

// @public (undocumented)
type NotesSearchFileRequest = operations['notes/search-file']['requestBody']['content']['application/json'];

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

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

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

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

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

/**
* No description provided.
*
Expand Down
6 changes: 6 additions & 0 deletions packages/cherrypick-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ import type {
NotesSearchByTagResponse,
NotesSearchRequest,
NotesSearchResponse,
NotesSearchFileRequest,
NotesSearchFileResponse,
NotesAdvancedSearchRequest,
NotesAdvancedSearchResponse,
NotesShowRequest,
NotesShowResponse,
NotesStateRequest,
Expand Down Expand Up @@ -891,6 +895,8 @@ export type Endpoints = {
'notes/replies': { req: NotesRepliesRequest; res: NotesRepliesResponse };
'notes/search-by-tag': { req: NotesSearchByTagRequest; res: NotesSearchByTagResponse };
'notes/search': { req: NotesSearchRequest; res: NotesSearchResponse };
'notes/search-file': { req: NotesSearchFileRequest; res: NotesSearchFileResponse };
'notes/advanced-search': { req: NotesAdvancedSearchRequest; res: NotesAdvancedSearchResponse };
'notes/show': { req: NotesShowRequest; res: NotesShowResponse };
'notes/state': { req: NotesStateRequest; res: NotesStateResponse };
'notes/thread-muting/create': { req: NotesThreadMutingCreateRequest; res: EmptyResponse };
Expand Down
4 changes: 4 additions & 0 deletions packages/cherrypick-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ export type NotesSearchByTagRequest = operations['notes/search-by-tag']['request
export type NotesSearchByTagResponse = operations['notes/search-by-tag']['responses']['200']['content']['application/json'];
export type NotesSearchRequest = operations['notes/search']['requestBody']['content']['application/json'];
export type NotesSearchResponse = operations['notes/search']['responses']['200']['content']['application/json'];
export type NotesSearchFileRequest = operations['notes/search-file']['requestBody']['content']['application/json'];
export type NotesSearchFileResponse = operations['notes/search-file']['responses']['200']['content']['application/json'];
export type NotesAdvancedSearchRequest = operations['notes/advanced-search']['requestBody']['content']['application/json'];
export type NotesAdvancedSearchResponse = operations['notes/advanced-search']['responses']['200']['content']['application/json'];
export type NotesShowRequest = operations['notes/show']['requestBody']['content']['application/json'];
export type NotesShowResponse = operations['notes/show']['responses']['200']['content']['application/json'];
export type NotesStateRequest = operations['notes/state']['requestBody']['content']['application/json'];
Expand Down
199 changes: 192 additions & 7 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2833,6 +2833,24 @@ export type paths = {
*/
post: operations['notes/search'];
};
'/notes/search-file': {
/**
* notes/search-file
* @description No description provided.
*
* **Credential required**: *No*
*/
post: operations['notes/search-file'];
};
'/notes/advanced-search': {
/**
* notes/advanced-search
* @description No description provided.
*
* **Credential required**: *No*
*/
post: operations['notes/advanced-search'];
};
'/notes/show': {
/**
* notes/show
Expand Down Expand Up @@ -4290,8 +4308,6 @@ export type components = {
[key: string]: string;
};
event?: Record<string, never> | null;
/** Format: date-time */
deleteAt?: string | null;
/**
* Format: id
* @example xxxxxxxxxx
Expand Down Expand Up @@ -4977,6 +4993,7 @@ export type components = {
canManageCustomEmojis: boolean;
canManageAvatarDecorations: boolean;
canSearchNotes: boolean;
canAdvancedSearchNotes: boolean;
canUseTranslator: boolean;
canHideAds: boolean;
driveCapacityMb: number;
Expand Down Expand Up @@ -17246,7 +17263,7 @@ export type operations = {
content: {
'application/json': {
/** @enum {string} */
name: 'notes1' | 'notes10' | 'notes100' | 'notes500' | 'notes1000' | 'notes5000' | 'notes10000' | 'notes20000' | 'notes30000' | 'notes40000' | 'notes50000' | 'notes60000' | 'notes70000' | 'notes80000' | 'notes90000' | 'notes100000' | 'login3' | 'login7' | 'login15' | 'login30' | 'login60' | 'login100' | 'login200' | 'login300' | 'login400' | 'login500' | 'login600' | 'login700' | 'login800' | 'login900' | 'login1000' | 'passedSinceAccountCreated1' | 'passedSinceAccountCreated2' | 'passedSinceAccountCreated3' | 'loggedInOnBirthday' | 'loggedInOnNewYearsDay' | 'noteClipped1' | 'noteFavorited1' | 'myNoteFavorited1' | 'profileFilled' | 'markedAsCat' | 'following1' | 'following10' | 'following50' | 'following100' | 'following300' | 'followers1' | 'followers10' | 'followers50' | 'followers100' | 'followers300' | 'followers500' | 'followers1000' | 'collectAchievements30' | 'viewAchievements3min' | 'iLoveCherryPick' | 'foundTreasure' | 'client30min' | 'client60min' | 'noteDeletedWithin1min' | 'postedAtLateNight' | 'postedAt0min0sec' | 'selfQuote' | 'htl20npm' | 'viewInstanceChart' | 'outputHelloWorldOnScratchpad' | 'open3windows' | 'driveFolderCircularReference' | 'reactWithoutRead' | 'clickedClickHere' | 'justPlainLucky' | 'setNameToSyuilo' | 'setNameToNoriDev' | 'setNameToYojo' |'cookieClicked' | 'brainDiver' | 'smashTestNotificationButton' | 'tutorialCompleted' | 'bubbleGameExplodingHead' | 'bubbleGameDoubleExplodingHead';
name: 'notes1' | 'notes10' | 'notes100' | 'notes500' | 'notes1000' | 'notes5000' | 'notes10000' | 'notes20000' | 'notes30000' | 'notes40000' | 'notes50000' | 'notes60000' | 'notes70000' | 'notes80000' | 'notes90000' | 'notes100000' | 'login3' | 'login7' | 'login15' | 'login30' | 'login60' | 'login100' | 'login200' | 'login300' | 'login400' | 'login500' | 'login600' | 'login700' | 'login800' | 'login900' | 'login1000' | 'passedSinceAccountCreated1' | 'passedSinceAccountCreated2' | 'passedSinceAccountCreated3' | 'loggedInOnBirthday' | 'loggedInOnNewYearsDay' | 'noteClipped1' | 'noteFavorited1' | 'myNoteFavorited1' | 'profileFilled' | 'markedAsCat' | 'following1' | 'following10' | 'following50' | 'following100' | 'following300' | 'followers1' | 'followers10' | 'followers50' | 'followers100' | 'followers300' | 'followers500' | 'followers1000' | 'collectAchievements30' | 'viewAchievements3min' | 'iLoveCherryPick' | 'foundTreasure' | 'client30min' | 'client60min' | 'noteDeletedWithin1min' | 'postedAtLateNight' | 'postedAt0min0sec' | 'selfQuote' | 'htl20npm' | 'viewInstanceChart' | 'outputHelloWorldOnScratchpad' | 'open3windows' | 'driveFolderCircularReference' | 'reactWithoutRead' | 'clickedClickHere' | 'justPlainLucky' | 'setNameToSyuilo' | 'setNameToNoriDev' | 'setNameToYojo' | 'cookieClicked' | 'brainDiver' | 'smashTestNotificationButton' | 'tutorialCompleted' | 'bubbleGameExplodingHead' | 'bubbleGameDoubleExplodingHead';
};
};
};
Expand Down Expand Up @@ -21604,10 +21621,6 @@ export type operations = {
end?: number | null;
metadata?: Record<string, never>;
}) | null;
scheduledDelete?: ({
deleteAt?: number | null;
deleteAfter?: number | null;
}) | null;
};
};
};
Expand Down Expand Up @@ -22859,6 +22872,178 @@ export type operations = {
};
};
};
/**
* notes/search-file
* @description No description provided.
*
* **Credential required**: *No*
*/
'notes/search-file': {
requestBody: {
content: {
'application/json': {
query: string;
/** Format: misskey:id */
sinceId?: string;
/** Format: misskey:id */
untilId?: string;
/** @default 8 */
limit?: number;
/**
* @default combined
* @enum {string}
*/
origin?: 'local' | 'remote' | 'combined';
/**
* @default combined
* @enum {string}
*/
fileOption?: 'file-only' | 'no-file' | 'combined';
/** @default 0 */
offset?: number;
/** @description The local host is represented with `.`. */
host?: string;
/**
* Format: misskey:id
* @default null
*/
userId?: string | null;
/**
* Format: misskey:id
* @default null
*/
channelId?: string | null;
};
};
};
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/advanced-search
* @description No description provided.
*
* **Credential required**: *No*
*/
'notes/advanced-search': {
requestBody: {
content: {
'application/json': {
query: string;
/** Format: misskey:id */
sinceId?: string;
/** Format: misskey:id */
untilId?: string;
/** @default 10 */
limit?: number;
/**
* @default combined
* @enum {string}
*/
origin?: 'local' | 'remote' | 'combined';
/**
* @default combined
* @enum {string}
*/
fileOption?: 'file-only' | 'no-file' | 'combined';
/** @default 0 */
offset?: number;
/** @description The local host is represented with `.`. */
host?: string;
/** @default false */
excludeNsfw?: boolean;
/** @default false */
excludeReply?: boolean;
startDate?: number | null;
endDate?: number | null;
/**
* Format: misskey:id
* @default null
*/
userId?: string | null;
/**
* Format: misskey:id
* @default null
*/
channelId?: string | null;
};
};
};
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/show
* @description No description provided.
Expand Down
Loading

0 comments on commit 28f3913

Please sign in to comment.