Skip to content

Commit

Permalink
fix(cherrypick-js): API
Browse files Browse the repository at this point in the history
  • Loading branch information
Esurio committed May 26, 2024
1 parent b14d587 commit 6a37566
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 167 deletions.
17 changes: 1 addition & 16 deletions packages/cherrypick-js/etc/cherrypick-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ type AdminEmojiAddAliasesBulkRequest = operations['admin___emoji___add-aliases-b
type AdminEmojiAddRequest = operations['admin___emoji___add']['requestBody']['content']['application/json'];

// @public (undocumented)
type AdminEmojiAddResponse = operations['admin___emoji___add']['responses']['200']['content']['application/json'];

// @public (undocumented)
type AdminEmojiAddsRequest = operations['admin/emoji/adds']['requestBody']['content']['application/json'];

// @public (undocumented)
type AdminEmojiAddsResponse = operations['admin/emoji/adds']['responses']['200']['content']['application/json'];
type AdminEmojiAddsRequest = operations['admin___emoji___adds']['requestBody']['content']['application/json'];

// @public (undocumented)
type AdminEmojiCopyRequest = operations['admin___emoji___copy']['requestBody']['content']['application/json'];
Expand Down Expand Up @@ -2368,15 +2362,6 @@ type MessagingMessagesRequest = operations['messaging___messages']['requestBody'
// @public (undocumented)
type MessagingMessagesResponse = operations['messaging___messages']['responses']['200']['content']['application/json'];

// @public (undocumented)
type MetaDetailed = components['schemas']['MetaDetailed'];

// @public (undocumented)
type MetaDetailedOnly = components['schemas']['MetaDetailedOnly'];

// @public (undocumented)
type MetaLite = components['schemas']['MetaLite'];

// @public (undocumented)
type MetaRequest = operations['meta']['requestBody']['content']['application/json'];

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 @@ -44,9 +44,7 @@ export type AdminDriveShowFileRequest = operations['admin___drive___show-file'][
export type AdminDriveShowFileResponse = operations['admin___drive___show-file']['responses']['200']['content']['application/json'];
export type AdminEmojiAddAliasesBulkRequest = operations['admin___emoji___add-aliases-bulk']['requestBody']['content']['application/json'];
export type AdminEmojiAddRequest = operations['admin___emoji___add']['requestBody']['content']['application/json'];
export type AdminEmojiAddResponse = operations['admin___emoji___add']['responses']['200']['content']['application/json'];
export type AdminEmojiAddsRequest = operations['admin___emoji___adds']['requestBody']['content']['application/json'];
export type AdminEmojiAddsResponse = operations['admin___emoji___adds']['responses']['200']['content']['application/json'];
export type AdminEmojiCopyRequest = operations['admin___emoji___copy']['requestBody']['content']['application/json'];
export type AdminEmojiCopyResponse = operations['admin___emoji___copy']['responses']['200']['content']['application/json'];
export type AdminEmojiDeleteBulkRequest = operations['admin___emoji___delete-bulk']['requestBody']['content']['application/json'];
Expand Down
153 changes: 4 additions & 149 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2927,15 +2927,6 @@ export type paths = {
*/
post: operations['notifications___create'];
};
'/notifications/flush': {
/**
* notifications/flush
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:notifications*
*/
post: operations['notifications___flush'];
};
'/notifications/mark-all-as-read': {
/**
* notifications/mark-all-as-read
Expand Down Expand Up @@ -5087,98 +5078,6 @@ export type components = {
logs: number[][];
map: string[];
};
MetaLite: {
maintainerName: string | null;
maintainerEmail: string | null;
version: string;
basedMisskeyVersion: string;
providesTarball: boolean;
name: string | null;
shortName: string | null;
/**
* Format: url
* @example https://cherrypick.example.com
*/
uri: string;
description: string | null;
langs: string[];
tosUrl: string | null;
/** @default https://github.com/kokonect-link/cherrypick */
repositoryUrl: string | null;
/** @default https://github.com/kokonect-link/cherrypick/issues/new */
feedbackUrl: string | null;
defaultDarkTheme: string | null;
defaultLightTheme: string | null;
disableRegistration: boolean;
emailRequiredForSignup: boolean;
enableHcaptcha: boolean;
hcaptchaSiteKey: string | null;
enableMcaptcha: boolean;
mcaptchaSiteKey: string | null;
mcaptchaInstanceUrl: string | null;
enableRecaptcha: boolean;
recaptchaSiteKey: string | null;
enableTurnstile: boolean;
turnstileSiteKey: string | null;
swPublickey: string | null;
/** @default /assets/ai.png */
mascotImageUrl: string;
bannerUrl: string | null;
serverErrorImageUrl: string | null;
infoImageUrl: string | null;
notFoundImageUrl: string | null;
iconUrl: string | null;
maxNoteTextLength: number;
ads: {
/**
* Format: id
* @example xxxxxxxxxx
*/
id: string;
/** Format: url */
url: string;
place: string;
ratio: number;
/** Format: url */
imageUrl: string;
dayOfWeek: number;
}[];
/** @default 0 */
notesPerOneAd: number;
enableEmail: boolean;
enableServiceWorker: boolean;
translatorAvailable: boolean;
mediaProxy: string;
enableUrlPreview: boolean;
backgroundImageUrl: string | null;
impressumUrl: string | null;
logoImageUrl: string | null;
privacyPolicyUrl: string | null;
serverRules: string[];
themeColor: string | null;
policies: components['schemas']['RolePolicies'];
};
MetaDetailedOnly: {
features?: {
registration: boolean;
emailRequiredForSignup: boolean;
localTimeline: boolean;
globalTimeline: boolean;
hcaptcha: boolean;
turnstile: boolean;
recaptcha: boolean;
objectStorage: boolean;
serviceWorker: boolean;
/** @default true */
miauth?: boolean;
};
proxyAccountName: string | null;
/** @example false */
requireSetup: boolean;
cacheRemoteFiles: boolean;
cacheRemoteSensitiveFiles: boolean;
};
MetaDetailed: components['schemas']['MetaLite'] & components['schemas']['MetaDetailedOnly'];
};
responses: never;
parameters: never;
Expand Down Expand Up @@ -10748,9 +10647,9 @@ export type operations = {
caseSensitive: boolean;
localOnly?: boolean;
excludeBots?: boolean;
withReplies?: boolean;
withFile?: boolean;
notify?: boolean;
withReplies: boolean;
withFile: boolean;
notify: boolean;
};
};
};
Expand Down Expand Up @@ -23001,7 +22900,7 @@ export type operations = {
*
* **Credential required**: *No*
*/
'notes/advanced-search': {
'notes___advanced-search': {
requestBody: {
content: {
'application/json': {
Expand Down Expand Up @@ -23655,50 +23554,6 @@ export type operations = {
};
};
};
/**
* notifications/flush
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:notifications*
*/
notifications___flush: {
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'];
};
};
};
};
/**
* notifications/mark-all-as-read
* @description No description provided.
Expand Down

0 comments on commit 6a37566

Please sign in to comment.