Add 7 missing SDK methods and fix README type name

- 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>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-03-01 15:53:44 -05:00
1 parent 0fdedb7247
commit c21e9fcfc6
6 files changed
+245 -3

No files matched your search

+32
View File
@@ -230,6 +230,38 @@ type RevokeAgentRequest struct {
Reason string `json:"reason"`
}
type UnfreezeAgentRequest struct {
Reason string `json:"reason"`
}
type ListAgentsResponse struct {
Agents []Agent `json:"agents"`
}
type DeleteAgentResponse struct {
Deleted bool `json:"deleted"`
}
type GetMeResponse struct {
User User `json:"user"`
}
type IssueApiTokenRequest struct {
TTLSeconds *int `json:"ttl_seconds"`
}
type IssueApiTokenResponse struct {
Token string `json:"token"`
ExpiresAt *int64 `json:"expires_at"`
}
type HealthResponse struct {
Status string `json:"status"`
Version string `json:"version"`
ProtocolVersion string `json:"protocol_version"`
Timestamp int64 `json:"timestamp"`
}
type SubmitOperationResponse struct {
Receipt EAR `json:"receipt"`
}