mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
feat: track agent API key usage
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
a4aac781b7
commit
8b288dbc1e
7 files changed
+211
-50
No files matched your search
@@ -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,
|
||||
}))),
|
||||
|
||||
Reference in new issue
Block a user