Skip to content

Commit 3522fcb

Browse files
feat: Harden canonical managed auth interactions
Stainless-Generated-From: d1e34365f0a909af7b481fcda9c54a08297b67ea
1 parent 20d3bba commit 3522fcb

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/kernel/types/auth/connection_follow_response.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ class ManagedAuthStateEventField(BaseModel):
9797
id: str
9898
"""Stable field identifier for canonical submit."""
9999

100+
reason: Literal["missing", "rejected"]
101+
"""Why the field requires user input."""
102+
100103
ref: str
101104
"""Credential reference name to store the submitted value under."""
102105

@@ -112,12 +115,6 @@ class ManagedAuthStateEventField(BaseModel):
112115
observed_selector: Optional[str] = None
113116
"""Selector for the visible field, when available."""
114117

115-
replace_existing: Optional[bool] = None
116-
"""
117-
Whether the submitted value must replace an existing credential after explicit
118-
rejection.
119-
"""
120-
121118
required: Optional[bool] = None
122119
"""Whether this field is required."""
123120

src/kernel/types/auth/managed_auth.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ class Field(BaseModel):
206206
id: str
207207
"""Stable field identifier for canonical submit."""
208208

209+
reason: Literal["missing", "rejected"]
210+
"""Why the field requires user input."""
211+
209212
ref: str
210213
"""Credential reference name to store the submitted value under."""
211214

@@ -221,12 +224,6 @@ class Field(BaseModel):
221224
observed_selector: Optional[str] = None
222225
"""Selector for the visible field, when available."""
223226

224-
replace_existing: Optional[bool] = None
225-
"""
226-
Whether the submitted value must replace an existing credential after explicit
227-
rejection.
228-
"""
229-
230227
required: Optional[bool] = None
231228
"""Whether this field is required."""
232229

0 commit comments

Comments
 (0)