summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/admin
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-12-02 21:00:05 +0900
committerGitHub <noreply@github.com>2023-12-02 21:00:05 +0900
commit336416261a0a9f46467f90e93854d81ca01292d9 (patch)
tree8ae444f178513fce8f29c2ad3366d5cac71fdb41 /packages/backend/src/server/api/endpoints/admin
parentfix: #12544 (#12545) (diff)
downloadsharkey-336416261a0a9f46467f90e93854d81ca01292d9.tar.gz
sharkey-336416261a0a9f46467f90e93854d81ca01292d9.tar.bz2
sharkey-336416261a0a9f46467f90e93854d81ca01292d9.zip
バックエンドが生成するapi.jsonからmisskey-jsの型を作成する (#12434)
* ひとまず生成できるところまで * ファイル構成整理 * 生成コマンド整理 * misskey-jsへの組み込み * fix generator.ts * wip * fix generator.ts * fix package.json * 生成ロジックの調整 * 型レベルでのswitch-case機構をmisskey-jsからfrontendに持ち込めるようにした * 型チェック用のtsconfig.jsonを作成 * 他のエンドポイントを呼ぶ関数にも適用 * 未使用エンティティなどを削除 * misskey-js側で手動定義されていた型を自動生成された型に移行(ただしapi.jsonがvalidでなくなってしまったので後で修正する) * messagingは廃止されている(テストのビルドエラー解消) * validなapi.jsonを出力できるように修正 * 修正漏れ対応 * Ajvに怒られて起動できなかったところを修正 * fix ci(途中) * パラメータenumをやめる * add command * add api.json * 都度自動生成をやめる * 一気通貫スクリプト修正 * fix ci * 生成ロジック修正 * フロントの型チェックは結局やらなかったので戻しておく * fix pnpm-lock.yaml * add README.md --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/backend/src/server/api/endpoints/admin')
-rw-r--r--packages/backend/src/server/api/endpoints/admin/meta.ts76
1 files changed, 76 insertions, 0 deletions
diff --git a/packages/backend/src/server/api/endpoints/admin/meta.ts b/packages/backend/src/server/api/endpoints/admin/meta.ts
index 1dddb166ae..8774bcbb67 100644
--- a/packages/backend/src/server/api/endpoints/admin/meta.ts
+++ b/packages/backend/src/server/api/endpoints/admin/meta.ts
@@ -327,6 +327,82 @@ export const meta = {
type: 'number',
optional: false, nullable: false,
},
+ backgroundImageUrl: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ deeplAuthKey: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ deeplIsPro: {
+ type: 'boolean',
+ optional: false, nullable: false,
+ },
+ defaultDarkTheme: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ defaultLightTheme: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ description: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ disableRegistration: {
+ type: 'boolean',
+ optional: false, nullable: false,
+ },
+ impressumUrl: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ maintainerEmail: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ maintainerName: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ name: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ objectStorageS3ForcePathStyle: {
+ type: 'boolean',
+ optional: false, nullable: false,
+ },
+ privacyPolicyUrl: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ repositoryUrl: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ summalyProxy: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ themeColor: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ tosUrl: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ uri: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ version: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
},
},
} as const;