Skip to content

NetworkAPI

Defined in: namespaces.ts:797

fetch(url, options?): Promise<NetworkResponse>

Defined in: namespaces.ts:799

Performs an HTTP request via URLSession.

string

NetworkFetchOptions

Promise<NetworkResponse>


download(url, destPath): Promise<string>

Defined in: namespaces.ts:801

Downloads a URL to a local file path. Returns the destination path.

string

string

Promise<string>


executeRequest(requestId): Promise<NetworkResponse>

Defined in: namespaces.ts:809

Executes a server-held URLRequest previously built by vault.buildRequest(...) or oauth.buildAuthenticatedRequest(...).

The requestId is single-use; the host holds the actual request (including any injected credentials) so JS never sees raw tokens.

string

Promise<NetworkResponse>