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,
|
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`, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export type {
|
|||||||
ListExportsResponse,
|
ListExportsResponse,
|
||||||
GetMeResponse,
|
GetMeResponse,
|
||||||
IssueApiTokenResponse,
|
IssueApiTokenResponse,
|
||||||
|
RotateApiTokenResponse,
|
||||||
JWK,
|
JWK,
|
||||||
JWKSResponse,
|
JWKSResponse,
|
||||||
HealthResponse,
|
HealthResponse,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user