From 9e958c08ac3b9b4cf62fc9dd4c4a09137da0b095 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 20 Jul 2024 23:43:39 +0900 Subject: [PATCH] update res props @ admin/show-user --- .../server/api/endpoints/admin/show-user.ts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/admin/show-user.ts b/packages/backend/src/server/api/endpoints/admin/show-user.ts index 49b399bb61..391b7ad2b7 100644 --- a/packages/backend/src/server/api/endpoints/admin/show-user.ts +++ b/packages/backend/src/server/api/endpoints/admin/show-user.ts @@ -178,10 +178,49 @@ export const meta = { publicKeys: { type: 'array', optional: false, nullable: true, + items: { + type: 'object', + properties: { + userId: { + type: 'string', + optional: false, nullable: false, + }, + keyId: { + type: 'string', + optional: false, nullable: false, + }, + keyPem: { + type: 'string', + optional: false, nullable: false, + }, + } + }, }, keyPairs: { type: 'object', optional: false, nullable: true, + properties: { + userId: { + type: 'string', + optional: false, nullable: false, + }, + publicKey: { + type: 'string', + optional: false, nullable: false, + }, + privateKey: { + type: 'string', + optional: false, nullable: false, + }, + ed25519PublicKey: { + type: 'string', + optional: false, nullable: true, + }, + ed25519PrivateKey: { + type: 'string', + optional: false, nullable: true, + }, + } }, }, },