Sync types and operations with backend for social auth and agent assignments

Adds SocialAuthProvider, AgentAssignment types, and integration compat test.

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-24 22:42:38 -04:00
1 parent 8e8610d7ed
commit 3683bd28dc
4 files changed
+197 -1

No files matched your search

+10
View File
@@ -140,3 +140,13 @@ func (c *Client) IssueApiToken(req *IssueApiTokenRequest) (*IssueApiTokenRespons
}
return &result, nil
}
// RotateApiToken rotates the current API token and leaves the old token
// valid for a 24h grace window.
func (c *Client) RotateApiToken() (*RotateApiTokenResponse, error) {
var result RotateApiTokenResponse
if err := c.doPost("/v1/auth/rotate", map[string]interface{}{}, &result); err != nil {
return nil, err
}
return &result, nil
}