import type { HttpClient } from "../core/http.js"; import type { OneclawResponse } from "../types.js"; export interface RegisterDeviceRequest { name: string; platform: "ios" | "android"; public_key_pem: string; attestation_blob?: string; } export interface RegisterDeviceResponse { device_id: string; attestation_verified: boolean; } export interface DeviceResponse { id: string; name: string; platform: string; attestation_verified: boolean; last_used_at: string | null; created_at: string; } export interface DeviceListResponse { devices: DeviceResponse[]; } export interface DeviceChallengeRequest { action: string; target_id: string; } export interface DeviceChallengeResponse { challenge_nonce: string; expires_at: string; action_bound_hash: string; } export interface DeviceAttestRequest { challenge_nonce: string; signature: string; } export interface DeviceAttestResponse { step_up_token: string; expires_at: string; } export interface PushTokenRequest { token: string; platform: "apns" | "fcm"; } /** * Devices resource — manage mobile device attestation keys * and step-up authentication challenges. */ export declare class DevicesResource { private readonly http; constructor(http: HttpClient); register(options: RegisterDeviceRequest): Promise>; list(): Promise>; revoke(deviceId: string): Promise>; createChallenge(deviceId: string, options: DeviceChallengeRequest): Promise>; attest(deviceId: string, options: DeviceAttestRequest): Promise>; registerPushToken(deviceId: string, options: PushTokenRequest): Promise>; } //# sourceMappingURL=devices.d.ts.map