@openvireo/sdk - v0.2.0
    Preparing search index...

    Class SyncClient

    Index
    baseUrl: string
    • Exchanges a pairing code for a device token (no token needed; the code is the credential).

      Parameters

      • code: string
      • deviceName: string

      Returns Promise<PairingClaim>

    • A pairing code another device of the same user can claim (needs a device token).

      Returns Promise<{ code: string; expiresAt: string }>

    • Parameters

      • id: string

      Returns BlobHandle

    • Returns Promise<unknown>

    • Returns Promise<BlobMeta[]>

    • Returns Promise<BlobMeta[]>

    • Sends with the bearer token; on 401 with a refreshable source, retries once with a fresh token.

      Parameters

      • path: string
      • init: {
            body?: Uint8Array<ArrayBufferLike>;
            headers?: Record<string, string>;
            method?: string;
            signal?: AbortSignal;
        } = {}

      Returns Promise<Response>

    • Parameters

      • force: boolean = false

      Returns Promise<string | null>

    • Parameters

      • path: string

      Returns string

    • Parameters

      • id: string

      Returns BlobHandle

    • Same as Qt's SyncServerClient::etagFor: the quoted hex SHA-256 of the data.

      Parameters

      • data: Uint8Array

      Returns Promise<string>

    • Parameters

      • text: string

      Returns boolean