Skip to content

Commit 8e11fb2

Browse files
feat: Unify managed auth reauth eligibility and blockers
Stainless-Generated-From: f5bdf95e42b3b049f1382fa0c48381a8002bdc5c
1 parent 42c33c6 commit 8e11fb2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/kernel/types/auth/managed_auth.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ class ManagedAuth(BaseModel):
377377
"has_credential",
378378
"viable_plans_found",
379379
"no_requirements_recorded",
380+
"totp_reauth_allowed",
380381
"requirements_satisfiable",
381382
"no_prior_successful_login",
382383
"no_credential",
@@ -400,8 +401,10 @@ class ManagedAuth(BaseModel):
400401
- `viable_plans_found` — at least one stored login plan can be replayed
401402
- `no_requirements_recorded` — no recorded credential requirements to fail
402403
against
403-
- `requirements_satisfiable` — recorded requirements can be met by the attached
404-
credential
404+
- `totp_reauth_allowed` — TOTP is the only recorded requirement and is safe to
405+
attempt automatically
406+
- `requirements_satisfiable` — recorded requirements contain no recognized
407+
blocker
405408
406409
Negative values (a human must complete the login flow):
407410

0 commit comments

Comments
 (0)