Permanently revoke an AgentIdentity.
(
agent_id: str,
data: AgentIdentityRevoke,
db: Annotated[AsyncSession, Depends(get_db)],
)
| 367 | description="Permanently revoke an AgentIdentity. This cannot be undone.", |
| 368 | ) |
| 369 | async def revoke_identity( |
| 370 | agent_id: str, |
| 371 | data: AgentIdentityRevoke, |
| 372 | db: Annotated[AsyncSession, Depends(get_db)], |
| 373 | ) -> AgentIdentityOut: |
| 374 | """Permanently revoke an AgentIdentity.""" |
| 375 | svc = AgentIdentityService(db) |
| 376 | try: |
| 377 | return await svc.revoke(agent_id, data) |
| 378 | except ValueError as e: |
| 379 | raise HTTPException(status_code=400, detail=str(e)) |
| 380 | |
| 381 | |
| 382 | @_identity.get( |
nothing calls this directly
no test coverage detected