From 6a37566cfe66b499c87a9d92d2996c1f2706c777 Mon Sep 17 00:00:00 2001 From: Esurio Date: Sun, 26 May 2024 23:17:38 +0900 Subject: [PATCH] fix(cherrypick-js): API --- .../cherrypick-js/etc/cherrypick-js.api.md | 17 +- .../cherrypick-js/src/autogen/entities.ts | 2 - packages/cherrypick-js/src/autogen/types.ts | 153 +----------------- 3 files changed, 5 insertions(+), 167 deletions(-) diff --git a/packages/cherrypick-js/etc/cherrypick-js.api.md b/packages/cherrypick-js/etc/cherrypick-js.api.md index edbfb2da4d..369956add7 100644 --- a/packages/cherrypick-js/etc/cherrypick-js.api.md +++ b/packages/cherrypick-js/etc/cherrypick-js.api.md @@ -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']; @@ -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']; diff --git a/packages/cherrypick-js/src/autogen/entities.ts b/packages/cherrypick-js/src/autogen/entities.ts index c086208da7..c9cc79dd76 100644 --- a/packages/cherrypick-js/src/autogen/entities.ts +++ b/packages/cherrypick-js/src/autogen/entities.ts @@ -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']; diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts index c89e428547..37dacac465 100644 --- a/packages/cherrypick-js/src/autogen/types.ts +++ b/packages/cherrypick-js/src/autogen/types.ts @@ -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 @@ -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; @@ -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; }; }; }; @@ -23001,7 +22900,7 @@ export type operations = { * * **Credential required**: *No* */ - 'notes/advanced-search': { + 'notes___advanced-search': { requestBody: { content: { 'application/json': { @@ -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.