Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lexicons/com.atproto.server.deleteSession.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"defs": {
"main": {
"type": "procedure",
"description": "Delete the current session. Requires auth."
"description": "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
"errors": [{ "name": "InvalidToken" }, { "name": "ExpiredToken" }]
}
}
}
2 changes: 1 addition & 1 deletion lexicons/com.atproto.server.getSession.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"properties": {
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"didDoc": { "type": "unknown" },
"email": { "type": "string" },
"emailConfirmed": { "type": "boolean" },
"emailAuthFactor": { "type": "boolean" },
"didDoc": { "type": "unknown" },
"active": { "type": "boolean" },
"status": {
"type": "string",
Expand Down
9 changes: 8 additions & 1 deletion lexicons/com.atproto.server.refreshSession.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"didDoc": { "type": "unknown" },
"email": { "type": "string" },
"emailConfirmed": { "type": "boolean" },
"emailAuthFactor": { "type": "boolean" },
"active": { "type": "boolean" },
"status": {
"type": "string",
Expand All @@ -25,7 +28,11 @@
}
}
},
"errors": [{ "name": "AccountTakedown" }]
"errors": [
{ "name": "AccountTakedown" },
{ "name": "InvalidToken" },
{ "name": "ExpiredToken" }
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Response(base.ResponseModelBase):
refresh_jwt: str #: Refresh jwt.
active: t.Optional[bool] = None #: Active.
did_doc: t.Optional['UnknownType'] = None #: Did doc.
email: t.Optional[str] = None #: Email.
email_auth_factor: t.Optional[bool] = None #: Email auth factor.
email_confirmed: t.Optional[bool] = None #: Email confirmed.
status: t.Optional[t.Union[t.Literal['takendown'], t.Literal['suspended'], t.Literal['deactivated'], str]] = (
None #: Hosting status of the account. If not specified, then assume 'active'.
)
2 changes: 1 addition & 1 deletion packages/atproto_client/namespaces/async_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -7536,7 +7536,7 @@ async def delete_account(
return get_response_model(response, bool)

async def delete_session(self, **kwargs: t.Any) -> bool:
"""Delete the current session. Requires auth.
"""Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').

Args:
**kwargs: Arbitrary arguments to HTTP request.
Expand Down
2 changes: 1 addition & 1 deletion packages/atproto_client/namespaces/sync_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -7536,7 +7536,7 @@ def delete_account(
return get_response_model(response, bool)

def delete_session(self, **kwargs: t.Any) -> bool:
"""Delete the current session. Requires auth.
"""Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').

Args:
**kwargs: Arbitrary arguments to HTTP request.
Expand Down
Loading