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:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-03-24 22:42:42 -04:00
1 parent 99f2c4e4f1
commit 1e2f764414
3 files changed
+15 -1

No files matched your search

+6 -1
View File
@@ -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`, {});
}
// -------------------------------------------------------------------------