Files
Elydora-Open-Source/packages/server/src/shared/index.ts
T
ZacharyZhang-NYandClaude Opus 4.6 27a8f0667c Complete Better Auth migration, harden security, update all docs
Console:
- Rewrite auth from JWT decoding to Better Auth useSession()
- Add auth-client.ts with createAuthClient
- Remove elydora_token localStorage, dead auth API functions
- Fix login/register pages to use signIn.email/signUp.email

Server:
- Upgrade better-auth ^1.2.0 → ^1.5.5
- CORS: enforce allowlist on all environments
- Sync auth service and middleware with backend

SDKs:
- Deprecate login/register in Node, Python, Go SDKs
- Update READMEs to show direct token initialization

Config:
- Sanitize .env with dev-only placeholder values
- Update helm chart and install scripts

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

65 lines
1.1 KiB
TypeScript

export type {
AgentStatus,
KeyStatus,
ExportStatus,
AdminAction,
RbacRole,
ErrorCode,
EOR,
ECH,
EAR,
EER,
Agent,
AgentKey,
Operation,
Receipt,
Epoch,
AdminEvent,
Export,
Organization,
User,
RegisterAgentRequest,
RegisterAgentResponse,
GetAgentResponse,
ListAgentsResponse,
FreezeAgentRequest,
UnfreezeAgentRequest,
RevokeAgentRequest,
UpdateAgentRequest,
SubmitOperationRequest,
SubmitOperationResponse,
GetOperationResponse,
VerifyOperationResponse,
AuditQueryRequest,
AuditQueryResponse,
GetEpochResponse,
ListEpochsResponse,
CreateExportRequest,
CreateExportResponse,
GetExportResponse,
ListExportsResponse,
AuthRegisterRequest,
AuthRegisterResponse,
AuthLoginRequest,
AuthLoginResponse,
AuthMeResponse,
AuthRefreshResponse,
IssueTokenRequest,
IssueTokenResponse,
JWK,
JWKSResponse,
ErrorResponse,
} from './types/index.js';
export {
ERROR_CODES,
MAX_PAYLOAD_SIZE,
MAX_TTL_MS,
MIN_TTL_MS,
MAX_NONCE_LENGTH,
DEFAULT_EPOCH_INTERVAL_MS,
MAX_QUERY_LIMIT,
DEFAULT_QUERY_LIMIT,
DEFAULT_SESSION_TTL_SECONDS,
} from './constants/index.js';