Sync types and client with backend for social auth and agent assignments
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
99f2c4e4f1
commit
1e2f764414
3 files changed
+15
-1
No files matched your search
+6
-1
@@ -21,6 +21,7 @@ import type {
|
||||
GetExportResponse,
|
||||
GetMeResponse,
|
||||
IssueApiTokenResponse,
|
||||
RotateApiTokenResponse,
|
||||
JWKSResponse,
|
||||
HealthResponse,
|
||||
AuthRegisterResponse,
|
||||
@@ -137,6 +138,10 @@ export class ElydoraClient {
|
||||
return this.request<IssueApiTokenResponse>('POST', '/v1/auth/token', { ttl_seconds: ttlSeconds ?? null });
|
||||
}
|
||||
|
||||
async rotateApiToken(): Promise<RotateApiTokenResponse> {
|
||||
return this.request<RotateApiTokenResponse>('POST', '/v1/auth/rotate', {});
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Agent management
|
||||
// -------------------------------------------------------------------------
|
||||
@@ -241,7 +246,7 @@ export class ElydoraClient {
|
||||
}
|
||||
|
||||
async verifyOperation(operationId: string): Promise<VerifyOperationResponse> {
|
||||
return this.request<VerifyOperationResponse>('POST', `/v1/operations/${encodeURIComponent(operationId)}/verify`);
|
||||
return this.request<VerifyOperationResponse>('POST', `/v1/operations/${encodeURIComponent(operationId)}/verify`, {});
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user