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:
1 parent
8e8610d7ed
commit
3683bd28dc
4 files changed
+197
-1
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user