chore(python): audit core package

_client_common.py owns request building and EOR signing for both clients; types follow the Backend contract; the deprecated issue_token alias and token response aliases are removed; crypto, utils, and CLI comments trimmed.

Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
This commit is contained in:
雷电芽衣 committed 2026-09-02 23:05:37 -04:00
1 parent 54e65eb56a
commit 0f72a5e2f1
10 files changed
+414 -706

No files matched your search

+8 -8
View File
@@ -21,6 +21,10 @@ from .types import (
AgentKey,
AgentAssignment,
AdminEvent,
AuthMeUser,
CurrentOrganization,
DependencyHealth,
ErrorCode,
EpochAnchor,
MemberEntry,
Operation,
@@ -65,8 +69,6 @@ from .types import (
GetMeResponse,
IssueApiTokenResponse,
RotateApiTokenResponse,
IssueTokenResponse,
RotateTokenResponse,
HealthResponse,
DeepHealthResponse,
)
@@ -87,7 +89,6 @@ __all__ = [
"base64url_decode",
"generate_nonce",
"generate_uuidv7",
# Literal type aliases
"AdminAction",
"AgentStatus",
"ExportStatus",
@@ -95,13 +96,16 @@ __all__ = [
"IntegrationType",
"KeyStatus",
"RbacRole",
# Entity types
"EOR",
"EAR",
"Agent",
"AgentAssignment",
"AgentKey",
"AdminEvent",
"AuthMeUser",
"CurrentOrganization",
"DependencyHealth",
"ErrorCode",
"EpochAnchor",
"MemberEntry",
"Operation",
@@ -111,10 +115,8 @@ __all__ = [
"Organization",
"User",
"WebhookEntry",
# Request types
"RegisterAgentRequest",
"UpdateAgentRequest",
# Response types
"RegisterAgentResponse",
"UpdateAgentResponse",
"GetAgentResponse",
@@ -141,8 +143,6 @@ __all__ = [
"GetMeResponse",
"IssueApiTokenResponse",
"RotateApiTokenResponse",
"IssueTokenResponse",
"RotateTokenResponse",
"HealthResponse",
"DeepHealthResponse",
]