Deprecate legacy Login/Register, add admin events, members, webhooks

- 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>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-03-25 00:48:39 -04:00
1 parent 75c2095f30
commit 99b0948da9
7 files changed
+280 -18

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package elydora
import "fmt"
// ListAdminEvents retrieves recent administrative events for the organization.
// An optional limit (1–100) may be provided; pass 0 to use the server default (20).
func (c *Client) ListAdminEvents(limit int) (*ListAdminEventsResponse, error) {
path := "/v1/admin/events"
if limit > 0 {
path = fmt.Sprintf("%s?limit=%d", path, limit)
}
var result ListAdminEventsResponse
if err := c.doGet(path, &result); err != nil {
return nil, err
}
return &result, nil
}