feat: track agent API key usage

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-22 18:31:56 +00:00
1 parent a4aac781b7
commit 8b288dbc1e
7 files changed
+211 -50

No files matched your search

+2
View File
@@ -926,6 +926,7 @@ export function agentService(db: Db) {
name: agentApiKeys.name,
responsibleUserId: agentApiKeys.responsibleUserId,
scopeConfig: agentApiKeys.scopeConfig,
lastUsedAt: agentApiKeys.lastUsedAt,
createdAt: agentApiKeys.createdAt,
revokedAt: agentApiKeys.revokedAt,
})
@@ -936,6 +937,7 @@ export function agentService(db: Db) {
name: row.name,
scope: normalizeAgentApiKeyScope(row.scopeConfig),
responsibleUserId: row.responsibleUserId,
lastUsedAt: row.lastUsedAt,
createdAt: row.createdAt,
revokedAt: row.revokedAt,
}))),