Skip to content

Remote

13 methods on the Remote resource.

13 methods · 0 available to app tokens40 pages in SDK Reference

import { Compozy } from "@compozy/client";

13 of 13

endBrowserSession

Revoke the current browser session

compozy.remote.endBrowserSession({ headers }) → Promise<void>

Options

DPoPstringheaderrequired
Proof from the browser key

DELETE /remote/v1/browser/sessionapp tokens denied

getBrowserApproval

Read the approval for the waiting browser key

compozy.remote.getBrowserApproval({ path, headers }) → Promise<BrowserApprovalStatus>

Options

idstringpathrequired
Approval ID
DPoPstringheaderrequired
Proof from the browser key

GET /remote/v1/browser/approvals/{id}app tokens denied

getBrowserStatus

Read the hosted listener status

compozy.remote.getBrowserStatus() → Promise<BrowserStatus>

GET /remote/v1/browser/statusapp tokens denied

getRemoteStatus

Read this computer's remote access status

compozy.remote.getRemoteStatus() → Promise<RemoteStatusResponse>

GET /api/remoteapp tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.getRemoteStatus();

linkRemote

Link this computer from the local daemon

compozy.remote.linkRemote({ body }) → Promise<RemoteLinkResponse>

Request bodyRemoteLinkRequest

POST /api/remote/linkapp tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.linkRemote({ body: { /* request fields */ } });

listBrowserPeers

List other hosted computers on this account

compozy.remote.listBrowserPeers({ headers }) → Promise<BrowserPeersResponse>

Options

DPoPstringheaderrequired
Proof from the browser key

GET /remote/v1/browser/peersapp tokens denied

listRemoteDevices

List devices allowed on this computer

compozy.remote.listRemoteDevices() → Promise<RemoteDevicesResponse>

GET /api/remote/devicesapp tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.listRemoteDevices();

mintBrowserStreamTicket

Mint a single-use ticket for one stream path

compozy.remote.mintBrowserStreamTicket({ headers, body }) → Promise<BrowserStreamTicketResponse>

Options

DPoPstringheaderrequired
Proof from the browser key

Request bodyBrowserStreamTicketRequest

POST /remote/v1/stream-ticketsapp tokens denied

patchRemoteDevice

Change device scopes or decide a local approval

compozy.remote.patchRemoteDevice({ path, body }) → Promise<RemoteDeviceResponse>

Options

idstringpathrequired
Device ID

Request bodyRemoteDevicePatchRequest

PATCH /api/remote/devices/{id}app tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.patchRemoteDevice({ path: { "id": "id" }, body: { /* request fields */ } });

patchRemoteStatus

Update this computer's remote access

compozy.remote.patchRemoteStatus({ body }) → Promise<RemoteStatusResponse>

Request bodyRemotePatchRequest

PATCH /api/remoteapp tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.patchRemoteStatus({ body: { /* request fields */ } });
Show all 13 methods

revokeRemoteDevice

Revoke a device on this account

compozy.remote.revokeRemoteDevice({ path }) → Promise<void>

Options

idstringpathrequired
Device ID

DELETE /api/remote/devices/{id}app tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.revokeRemoteDevice({ path: { "id": "id" } });

startBrowserSession

Redeem a hosted sign-in code

compozy.remote.startBrowserSession({ headers, body }) → Promise<BrowserSessionResponse>

Options

DPoPstringheaderrequired
Proof from the browser key

Request bodyBrowserSessionRequest

POST /remote/v1/browser/sessionapp tokens denied

unlinkRemote

Unlink this computer from the local daemon

compozy.remote.unlinkRemote() → Promise<void>

DELETE /api/remote/linkapp tokens denied

example.ts
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.remote.unlinkRemote();