From ec05d88d06e015e687c105ffdb6804688c53b75f Mon Sep 17 00:00:00 2001 From: NoriDev Date: Wed, 6 Dec 2023 19:16:57 +0900 Subject: [PATCH] =?UTF-8?q?autogen=EC=97=90=20basedMisskeyVersion=20?= =?UTF-8?q?=ED=91=9C=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/openapi/gen-spec.ts | 1 + packages/cherrypick-js/generator/src/generator.ts | 1 + packages/cherrypick-js/src/autogen/endpoint.ts | 3 ++- packages/cherrypick-js/src/autogen/entities.ts | 3 ++- packages/cherrypick-js/src/autogen/models.ts | 3 ++- packages/cherrypick-js/src/autogen/types.ts | 3 ++- 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/openapi/gen-spec.ts b/packages/backend/src/server/api/openapi/gen-spec.ts index 904103d131..f3d60b1105 100644 --- a/packages/backend/src/server/api/openapi/gen-spec.ts +++ b/packages/backend/src/server/api/openapi/gen-spec.ts @@ -14,6 +14,7 @@ export function genOpenapiSpec(config: Config) { info: { version: config.version, + description: config.basedMisskeyVersion, title: 'CherryPick API', 'x-logo': { url: '/static-assets/api-doc.png' }, }, diff --git a/packages/cherrypick-js/generator/src/generator.ts b/packages/cherrypick-js/generator/src/generator.ts index 59255ecf10..630c1e7e31 100644 --- a/packages/cherrypick-js/generator/src/generator.ts +++ b/packages/cherrypick-js/generator/src/generator.ts @@ -7,6 +7,7 @@ import openapiTS from 'openapi-typescript'; function generateVersionHeaderComment(openApiDocs: OpenAPIV3.Document): string { const contents = { version: openApiDocs.info.version, + basedMisskeyVersion: openApiDocs.info.description, generatedAt: new Date().toISOString(), }; diff --git a/packages/cherrypick-js/src/autogen/endpoint.ts b/packages/cherrypick-js/src/autogen/endpoint.ts index 626c5b4f9e..45add32c9a 100644 --- a/packages/cherrypick-js/src/autogen/endpoint.ts +++ b/packages/cherrypick-js/src/autogen/endpoint.ts @@ -1,6 +1,7 @@ /* * version: 4.6.0-beta.2 - * generatedAt: 2023-12-06T08:45:38.856Z + * basedMisskeyVersion: 2023.12.0-beta.2 + * generatedAt: 2023-12-06T10:16:11.711Z */ import type { diff --git a/packages/cherrypick-js/src/autogen/entities.ts b/packages/cherrypick-js/src/autogen/entities.ts index 8283fdbc40..2e37ffac46 100644 --- a/packages/cherrypick-js/src/autogen/entities.ts +++ b/packages/cherrypick-js/src/autogen/entities.ts @@ -1,6 +1,7 @@ /* * version: 4.6.0-beta.2 - * generatedAt: 2023-12-06T08:45:38.854Z + * basedMisskeyVersion: 2023.12.0-beta.2 + * generatedAt: 2023-12-06T10:16:11.709Z */ import { operations } from './types.js'; diff --git a/packages/cherrypick-js/src/autogen/models.ts b/packages/cherrypick-js/src/autogen/models.ts index c80933e63e..7c0b81b9d6 100644 --- a/packages/cherrypick-js/src/autogen/models.ts +++ b/packages/cherrypick-js/src/autogen/models.ts @@ -1,6 +1,7 @@ /* * version: 4.6.0-beta.2 - * generatedAt: 2023-12-06T08:45:38.853Z + * basedMisskeyVersion: 2023.12.0-beta.2 + * generatedAt: 2023-12-06T10:16:11.709Z */ import { components } from './types.js'; diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts index 838d5656bb..478c897273 100644 --- a/packages/cherrypick-js/src/autogen/types.ts +++ b/packages/cherrypick-js/src/autogen/types.ts @@ -3,7 +3,8 @@ /* * version: 4.6.0-beta.2 - * generatedAt: 2023-12-06T08:45:38.779Z + * basedMisskeyVersion: 2023.12.0-beta.2 + * generatedAt: 2023-12-06T10:16:11.638Z */ /**