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, GetExportResponse,
GetMeResponse, GetMeResponse,
IssueApiTokenResponse, IssueApiTokenResponse,
RotateApiTokenResponse,
JWKSResponse, JWKSResponse,
HealthResponse, HealthResponse,
AuthRegisterResponse, AuthRegisterResponse,
@@ -137,6 +138,10 @@ export class ElydoraClient {
return this.request<IssueApiTokenResponse>('POST', '/v1/auth/token', { ttl_seconds: ttlSeconds ?? null }); 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 // Agent management
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@@ -241,7 +246,7 @@ export class ElydoraClient {
} }
async verifyOperation(operationId: string): Promise<VerifyOperationResponse> { 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`, {});
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
+1
View File
@@ -62,6 +62,7 @@ export type {
ListExportsResponse, ListExportsResponse,
GetMeResponse, GetMeResponse,
IssueApiTokenResponse, IssueApiTokenResponse,
RotateApiTokenResponse,
JWK, JWK,
JWKSResponse, JWKSResponse,
HealthResponse, HealthResponse,
+8
View File
@@ -266,6 +266,14 @@ export interface GetMeResponse {
export interface IssueApiTokenResponse { export interface IssueApiTokenResponse {
readonly token: string; readonly token: string;
readonly expires_at: number | null; readonly expires_at: number | null;
readonly token_id: string;
}
export interface RotateApiTokenResponse {
readonly token: string;
readonly expires_at: number | null;
readonly token_id: string;
readonly previous_token_grace_until: number;
} }
export interface HealthResponse { export interface HealthResponse {