Make lint-backend green, and regenerate the stale client

`wanted_names` never read its `previous` argument — the caller reassigns
`wanted` from the return value — so the parameter goes rather than gaining
an underscore; its one call site and four test calls follow. Sorts the
imports in test_artifacts.py. Both were failing `make lint-backend` at HEAD.

Regenerates the client, which 8cb843e left behind when it corrected the
revoke_client docstring.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CL9zvnnvcp1mvA8o7impxk
This commit is contained in:
2026-09-06 15:29:35 +02:00
co-authored by Claude Opus 5
parent ff612623a1
commit d15520ec8a
4 changed files with 11 additions and 12 deletions
+5 -3
View File
@@ -1486,9 +1486,11 @@ export class OauthService {
* Withdraw one agent's access, leaving every other agent alone.
*
* Deleting the client cascades to its codes and refresh tokens, so it can
* get nothing new and cannot come back without registering again. An access
* token already in its hands keeps working until it expires
* (``MCP_TOKEN_EXPIRE_MINUTES``) — those are stateless by design.
* get nothing new and cannot come back without registering again. The access
* token already in its hands stops working too, even though it is a
* stateless JWT nobody can reach into: every door that takes one looks the
* client up first (``api.deps.oauth_client_lives``), so the row deleted here
* is the whole of the revocation.
* @param data The data for the request.
* @param data.clientId
* @returns Message Successful Response