Files
Elydora-Python-SDK/elydora/__init__.py
T
ZacharyZhang-NYandClaude Opus 4.6 47a8038e8d Deprecate legacy login/register methods with warnings
- Add DeprecationWarning to login() and register() static methods
- Update docstrings with .. deprecated:: notices
- Sync types with backend changes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 00:48:33 -04:00

147 lines
3.2 KiB
Python

"""Elydora Python SDK — tamper-evident audit trail for AI agents."""
from .client import ElydoraClient
from .async_client import AsyncElydoraClient
from .errors import ElydoraError
from .crypto import (
compute_chain_hash,
compute_payload_hash,
jcs_canonicalize,
sha256_base64url,
sign_ed25519,
sign_eor,
get_public_key_base64url,
)
from .utils import base64url_encode, base64url_decode, generate_nonce, generate_uuidv7
from .types import (
EOR,
EAR,
Agent,
AgentKey,
AgentAssignment,
AdminEvent,
EpochAnchor,
MemberEntry,
Operation,
Receipt,
Epoch,
Export,
Organization,
User,
WebhookEntry,
AdminAction,
AgentStatus,
ExportStatus,
IntegrationType,
KeyStatus,
RbacRole,
RegisterAgentRequest,
RegisterAgentResponse,
UpdateAgentRequest,
UpdateAgentResponse,
GetAgentResponse,
ListAgentsResponse,
DeleteAgentResponse,
FreezeAgentResponse,
UnfreezeAgentResponse,
SubmitOperationResponse,
GetOperationResponse,
VerifyOperationResponse,
AuditQueryResponse,
GetEpochResponse,
ListEpochsResponse,
CreateExportResponse,
GetExportResponse,
ListExportsResponse,
ListWebhooksResponse,
RegisterWebhookResponse,
ListMembersResponse,
ListAdminEventsResponse,
JWKSResponse,
AuthRegisterResponse,
AuthLoginResponse,
GetMeResponse,
IssueApiTokenResponse,
RotateApiTokenResponse,
IssueTokenResponse,
RotateTokenResponse,
HealthResponse,
DeepHealthResponse,
)
__version__ = "1.2.0"
__all__ = [
"ElydoraClient",
"AsyncElydoraClient",
"ElydoraError",
"compute_chain_hash",
"compute_payload_hash",
"jcs_canonicalize",
"sha256_base64url",
"sign_ed25519",
"sign_eor",
"get_public_key_base64url",
"base64url_encode",
"base64url_decode",
"generate_nonce",
"generate_uuidv7",
# Literal type aliases
"AdminAction",
"AgentStatus",
"ExportStatus",
"IntegrationType",
"KeyStatus",
"RbacRole",
# Entity types
"EOR",
"EAR",
"Agent",
"AgentAssignment",
"AgentKey",
"AdminEvent",
"EpochAnchor",
"MemberEntry",
"Operation",
"Receipt",
"Epoch",
"Export",
"Organization",
"User",
"WebhookEntry",
# Request types
"RegisterAgentRequest",
"UpdateAgentRequest",
# Response types
"RegisterAgentResponse",
"UpdateAgentResponse",
"GetAgentResponse",
"ListAgentsResponse",
"DeleteAgentResponse",
"FreezeAgentResponse",
"UnfreezeAgentResponse",
"SubmitOperationResponse",
"GetOperationResponse",
"VerifyOperationResponse",
"AuditQueryResponse",
"GetEpochResponse",
"ListEpochsResponse",
"CreateExportResponse",
"GetExportResponse",
"ListExportsResponse",
"ListWebhooksResponse",
"RegisterWebhookResponse",
"ListMembersResponse",
"ListAdminEventsResponse",
"JWKSResponse",
"AuthRegisterResponse",
"AuthLoginResponse",
"GetMeResponse",
"IssueApiTokenResponse",
"RotateApiTokenResponse",
"IssueTokenResponse",
"RotateTokenResponse",
"HealthResponse",
"DeepHealthResponse",
]