A retried POST /v1/auth/rotate loses the replacement token because the
presented token is already in grace, and a retried webhook registration
creates duplicates. Only idempotent methods now retry. Add
previous_token_grace_until to RotateApiTokenResponse and percent-encode
the agent id in request paths.
Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
- Mark Register() and Login() as Deprecated (use Better Auth directly)
- Add admin_events.go, members.go, webhooks.go to match backend API
- Sync types with backend changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix AgentKeyRequest → RegisterAgentKeyInput in README
- Add ListAgents, UnfreezeAgent, DeleteAgent to agents.go
- Add GetMe, IssueApiToken to auth.go
- Add DownloadExport to exports.go
- Add Health package-level function in health.go
- Add corresponding types and document all exports in README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>