new tasks, devnet topup, cli, new model support
This commit is contained in:
@@ -176,6 +176,14 @@ class AccountStore:
|
||||
with self._lock:
|
||||
return api_key in self._revoked_keys
|
||||
|
||||
def is_active_key(self, api_key: str) -> bool:
|
||||
with self._lock:
|
||||
return api_key in self._active_keys
|
||||
|
||||
def owner_of_key(self, api_key: str) -> str | None:
|
||||
with self._lock:
|
||||
return self._active_keys.get(api_key)
|
||||
|
||||
# ---- views ----
|
||||
|
||||
def _public_view(self, record: dict) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user