Skip to main content
TypesWorkflow, protocol and runtime types

The types around Camera: the workflows built on it, the connection under it, and the host that shares cameras between callers. This is one of the 5 pages of the types reference, which names every type. A field ending in ? may be absent: Slate leaves out what a camera does not report, and never guesses it.

import type { CameraClient, CameraProvider } from '@darkgrade/slate/runtime'

Workflows

The types of the workflows built on Camera: takes on several cameras, shot analysis and setup and checks before a shoot.

BenchmarkCheck

One check of runBenchmark and how it went.

interface BenchmarkCheck {
    name: string
    passed: boolean
    durationMilliseconds: number
    error?: 'operation-failed' | 'deadline' | 'cancelled'
}
Show BenchmarkCheck fields
namestring

Which check.

passedboolean

Whether it succeeded.

durationMillisecondsnumber

How long it took.

error?'operation-failed' | 'deadline' | 'cancelled'

Why it did not pass: the operation failed, the deadline passed, or the run was cancelled.

BenchmarkOptions

What runBenchmark takes. Every field is optional.

interface BenchmarkOptions {
    photo?: boolean
    liveView?: boolean
    purpose?: 'benchmark' | 'first-contact'
    signal?: AbortSignal
    timeoutMilliseconds?: number
    maximumProperties?: number
    onProgress?: (check: BenchmarkCheck) => void
    flushEvidence?: () => Promise<unknown>
}
Show BenchmarkOptions fields
photo?booleandefault: false

Take one photo and transfer it.

liveView?booleandefault: false

Transfer one live-view frame.

purpose?'benchmark' | 'first-contact'

'first-contact' is the automatic read-only inventory: no capture, live view or storage mode change.

signal?AbortSignal

Cancels the run.

timeoutMilliseconds?numberdefault: 180000

The deadline for the whole run, from 1 to 300,000.

maximumProperties?numberdefault: 128

The most property descriptors to read, from 1 to 512.

onProgress?(check: BenchmarkCheck) => void

Called with each check as it finishes.

See BenchmarkCheck.

flushEvidence?() => Promise<unknown>

Hosts can drain their bounded telemetry queue between inventory phases.

QualificationCamera

The camera qualifyCameraSetting drives: one read of its controls and one write of a setting.

interface QualificationCamera {
    read: () => Promise<{
        controls?: Partial<
            Record<QualificationSetting, QualificationControl>
        >
    }>
    set: (
        setting: QualificationSetting,
        value: Value,
    ) => Promise<unknown>
}
Show QualificationCamera fields
readfunction

Reads the current controls.

See QualificationSetting.

setfunction

Writes one setting.

See QualificationSetting.

QualificationSetting

The settings qualifyCameraSetting can exercise.

type QualificationSetting = typeof qualificationSettings[number]

Every value (4)

shutterSpeed aperture iso whiteBalance

VideoTakeState

A take on several cameras as VideoTake publishes it: its stage and each camera's state. See Record a take on several cameras.

interface VideoTakeState {
    id: string
    name: string
  stage: 'preparing'
    | 'armed'
    | 'recording'
    | 'stopping'
    | 'review'
    | 'collecting'
    | 'complete'
    | 'attention'
    createdAt: string
    maximumMinutes: number
    error?: string
    stopRequested?: boolean
    startedAt?: string
    stoppedAt?: string
    startSkewMilliseconds?: number
    cameras: TakeCameraState[]
}
Show VideoTakeState fields
idstring

The id given to the constructor.

namestring

The take's name, at most 100 characters; Untitled take when none was given.

stageunion

Where the take is. attention and review wait for a person.

createdAtstring

When the take was made, as an ISO 8601 time.

maximumMinutesnumber

The safety stop, from 1 to 120 minutes.

error?string

What went wrong with the take as a whole.

stopRequested?boolean

True once a stop was asked for.

startedAt?string

When recording started, as an ISO 8601 time.

stoppedAt?string

When recording stopped, as an ISO 8601 time.

startSkewMilliseconds?number

The time between the first camera's start and the last one's.

camerasTakeCameraState[]

Each camera's part of the take.

See TakeCameraState.

TakeCamera

What VideoTake needs from each camera: the five steps of a take, which you implement over a Camera.

interface TakeCamera {
    prepare: () => Promise<void>
    start: () => Promise<{
        recordingConfirmed:boolean
        evidence:string
    }>
    stop: () => Promise<{
        stopped:boolean
        media:TakeMedia[]
        warning?:string
    }>
    collect: (
        media:TakeMedia[],
        progress:(bytes:number,total:number)=>void,
    ) => Promise<TakeMedia[]>
    close: () => Promise<void>
}
Show TakeCamera fields
prepare() => Promise<void>

Gets the camera ready to record.

start() => Promise<{recordingConfirmed:boolean;evidence:string}>

Starts recording, and says whether the camera confirmed it and on what evidence.

stopfunction

Stops recording and lists the new clips.

See TakeMedia.

collectfunction

Copies the clips off the camera, reporting progress, and returns them.

See TakeMedia.

close() => Promise<void>

Releases the camera.

TakeCameraState

One camera's part in a take: its state, when it started and stopped, and its clips. stopRequestedAt precedes the first adapter stop attempt; stoppedAt includes card finalization/media discovery.

interface TakeCameraState {
    camera: string
  state: 'preparing'
    | 'ready'
    | 'recording'
    | 'stopping'
    | 'stopped'
    | 'collected'
    | 'error'
    | 'uncertain'
    recordingConfirmed?: boolean
    startedAt?: string
    stopRequestedAt?: string
    stoppedAt?: string
    evidence?: string
    error?: string
    warning?: string
    media: TakeMedia[]
    transferredBytes?: number
    totalBytes?: number
    transferRecovery?: string
}
Show TakeCameraState fields
camerastring

The camera's key in the map given to VideoTake.

stateunion

Where this camera is in the take. uncertain: its start was sent and not confirmed.

recordingConfirmed?boolean

Whether the camera confirmed that it was recording.

startedAt?string

When its start returned, as an ISO 8601 time.

stopRequestedAt?string

When its first stop attempt began, as an ISO 8601 time.

stoppedAt?string

When it had stopped and its clips were found, as an ISO 8601 time.

evidence?string

What the start was confirmed by, in words.

error?string

What went wrong on this camera.

warning?string

Something to check that did not fail the take.

mediaTakeMedia[]

Its clips.

See TakeMedia.

transferredBytes?number

Bytes copied so far while collecting.

totalBytes?number

Bytes to copy in all.

transferRecovery?string

Set while an interrupted transfer is being retried.

TakeMedia

One clip of a take.

interface TakeMedia {
    id: string
    filename: string
    bytes: number
    downloadUrl?: string
    verified: boolean
}
Show TakeMedia fields
idstring

The clip's id on its camera.

filenamestring

Its file name.

bytesnumber

Its size in bytes.

downloadUrl?string

Where the collected copy is, once it is collected.

verifiedboolean

Whether the collected copy was verified.

ShotAnalysis

What analyseShot measured in a picture, and how it reads the exposure, focus and colour. See Analyse and set up a shot.

interface ShotAnalysis {
    metrics: ShotMetrics
    effectiveIso?: number
    exposure: 'balanced' | 'bright' | 'dark'
    focus: 'detail-visible' | 'soft'
    colour: 'neutral' | 'cast' | 'unknown'
    method: string
    durationMilliseconds: number
    scene?: {
        subject: string
        focus: boolean
        colour: boolean
        confidence: number
    }
}
Show ShotAnalysis fields
metricsShotMetrics

The measurements the three readings below are made from.

See ShotMetrics.

effectiveIso?number

The ISO in the picture's EXIF, when it has one.

exposure'balanced' | 'bright' | 'dark'

How the exposure reads: clipped or very bright, dark, or in between.

focus'detail-visible' | 'soft'

Whether edge detail is visible. Edge contrast describes the picture; it cannot prove the subject is in focus.

colour'neutral' | 'cast' | 'unknown'

Whether near-grey pixels are neutral or carry a cast; unknown when the picture has too few of them.

methodstring

How the picture was analysed, in words.

durationMillisecondsnumber

How long the analysis took.

scene?object

A local vision model's review of the subject, present only when one was already running.

ShotMetrics

The numbers measureShot takes from the middle of a picture, leaving a 15% border out.

interface ShotMetrics {
    median: number
    p95: number
    clipped: number
    dark: number
    detail: number
    neutralPixels: number
    redBlueRatio: number
}
Show ShotMetrics fields
mediannumber

Median brightness (luma), 0 to 1.

p95number

95th-percentile brightness, 0 to 1.

clippednumber

The share of pixels clipped to white, 0 to 1.

darknumber

The share of pixels darker than 0.08, 0 to 1.

detailnumber

Edge detail: the mean squared Laplacian of brightness.

neutralPixelsnumber

The share of pixels that are near grey, 0 to 1.

redBlueRationumber

Red over blue across the near-grey pixels; about 1 is neutral.

ShotSetupReport

What optimiseShot changed, and whether the result was verified.

interface ShotSetupReport {
    status: 'verified' | 'attention' | 'unavailable'
    summary: string
    durationMilliseconds: number
    changes: {
        setting: string
        before: string
        after: string
        verified: boolean
        reverted?: boolean
        attempted?: string
    }[]
    analysis?: ShotAnalysis
    before?: ShotAnalysis
    error?: string
    budgetExceeded?: boolean
    imageVerified?: boolean
    focusVerified?: boolean
    exposureVerified?: boolean
}
Show ShotSetupReport fields
status'verified' | 'attention' | 'unavailable'

verified: the exposure measured in range and every change read back. attention: something still needs a person. optimiseShot returns only these two.

summarystring

The result in a sentence.

durationMillisecondsnumber

How long the setup took.

changesobject

Each setting written: its value before and after, and whether it read back.

analysis?ShotAnalysis

The picture after the changes.

See ShotAnalysis.

before?ShotAnalysis

The picture before any change.

See ShotAnalysis.

error?string

What stopped the setup, when something did.

budgetExceeded?boolean

True when the time budget ran out.

imageVerified?boolean

Whether analysis is of a picture taken after the last change.

focusVerified?boolean

Whether focus on the subject was confirmed, by the camera or by the scene review.

exposureVerified?boolean

Whether the exposure measured in range with fixed ISO and shutter speed, each change read back.

ShotProperty

A setting as optimiseShot reads it: the fields of a CameraControlState it needs.

interface ShotProperty {
    value?: string
    allowedValues?: string[]
    writable?: boolean
    enabled?: boolean
}
Show ShotProperty fields
value?string

The current value.

allowedValues?string[]

The values the camera offers now.

writable?boolean

Whether the camera accepts a write now.

enabled?boolean

Whether the setting applies in the camera's current mode.

CameraPower

A camera's battery and power reading, as readCameraPower returns it. Camera telemetry only. A configured outlet or USB cable is not power-source evidence.

interface CameraPower {
    observedAt: string
    lastRefreshError?: string
    source: string
    percent?: number
    level?: 'empty' | 'low' | 'medium' | 'high' | 'full'
  powerSource: 'battery'
    | 'dc'
    | 'usb'
    | 'poe'
    | 'unknown'
    remainingMinutes?: number
    charging?: boolean
    batteryPresent?: boolean
    raw: Record<string, string | number>
}
Show CameraPower fields
observedAtstring

When the camera was read, as an ISO 8601 time.

lastRefreshError?string

Why the latest read failed, when it did.

sourcestring

Which reading it came from, such as ptp-battery-level, canon-eos-ptp or sony-sdk.

percent?number

0–100, when the camera reports a percentage.

level?'empty' | 'low' | 'medium' | 'high' | 'full'

The camera's coarse level, when it reports one.

powerSource'battery' | 'dc' | 'usb' | 'poe' | 'unknown'

What powers the camera; unknown unless the camera says.

remainingMinutes?number

The camera's own estimate of the minutes left.

charging?boolean

True only when explicitly reported; external power does not imply charging.

batteryPresent?boolean

Whether a battery is in the camera, when it says.

rawRecord<string, string | number>

The raw property values the reading was made from.

CameraPowerAssessment

What assessCameraPower concludes for a planned recording. See Checks before a shoot.

interface CameraPowerAssessment {
    status: 'pass' | 'warn' | 'fail'
    summary: string
    runtimeVerified: boolean
    reserveMinutes: number
}
Show CameraPowerAssessment fields
status'pass' | 'warn' | 'fail'

pass, warn or fail for the planned recording.

summarystring

The verdict in a sentence.

runtimeVerifiedboolean

True only when the camera's own estimate covers the planned minutes and the reserve.

reserveMinutesnumber

The reserve that was asked for.

Protocol and transport

The connection under a Camera: timeouts and logging and raw protocol access.

ObjectInfo

A file's PTP ObjectInfo dataset, as the camera sent it. takePhoto returns it with includeInfo.

interface ObjectInfo {
    storageID: number
    objectFormat: number
    objectFormatDecoded: string
    protectionStatus: number
    objectCompressedSize: number
    thumbFormat: number
    thumbFormatDecoded: string
    thumbCompressedSize: number
    thumbPixWidth: number
    thumbPixHeight: number
    imagePixWidth: number
    imagePixHeight: number
    imageBitDepth: number
    parentObject: number
    associationType: number
    associationDesc: number
    sequenceNumber: number
    filename: string
    captureDate: string
    modificationDate: string
    keywords: string
}
Show ObjectInfo fields
storageIDnumber

The StorageID of the card the object is on.

objectFormatnumber

The object's format code.

objectFormatDecodedstring

The name of that format, or Unknown_0x… when Slate has none.

protectionStatusnumber

0 for no protection, 1 for read-only.

objectCompressedSizenumber

The size in bytes; 0xffffffff when the object is 4 GiB or larger.

thumbFormatnumber

The thumbnail's format code.

thumbFormatDecodedstring

The name of that format.

thumbCompressedSizenumber

The thumbnail's size in bytes.

thumbPixWidthnumber

The thumbnail's width in pixels.

thumbPixHeightnumber

The thumbnail's height in pixels.

imagePixWidthnumber

The picture's width in pixels.

imagePixHeightnumber

The picture's height in pixels.

imageBitDepthnumber

The picture's bit depth.

parentObjectnumber

The ObjectHandle of the folder it is in; 0 at the top of the card.

associationTypenumber

For a folder, the kind of association; 0 for a file.

associationDescnumber

More about the association, when the type defines it.

sequenceNumbernumber

Its place in a sequence, when it is part of one.

filenamestring

The file name on the card.

captureDatestring

When it was captured, as a PTP date-time string in the camera's local time.

modificationDatestring

When it was last changed, in the same form.

keywordsstring

Keywords, when the camera sets any.

DeviceDescriptor

Which device to open: a USB filter, or a host on the network. See Choose a camera.

interface DeviceDescriptor {
    usb?: {
        filters: Array<{
            vendorId?: number
            productId?: number
            classCode?: number
            subclassCode?: number
            protocolCode?: number
            serialNumber?: string
        }>
        exclusionFilters?: Array<{
            vendorId?: number
            productId?: number
            classCode?: number
            subclassCode?: number
            protocolCode?: number
            serialNumber?: string
        }>
    }
    ip?: {
        host: string
        port?: number
        protocol?: 'ptp/ip' | 'upnp'
        localAddress?: string
    }
}
Show DeviceDescriptor fields
usb?object

Which USB device to open: one matching any of filters and none of exclusionFilters.

ip?object

A camera on the network, for a PTP/IP transport.

TransportInterface

What a transport implements to carry PTP for a Camera. USB is built in; IPTransport is PTP/IP.

interface TransportInterface {
    connect: (device?: DeviceDescriptor) => Promise<void>
    disconnect: () => Promise<void>
    send: (
        data: Uint8Array,
        sessionId: number,
        transactionId: number,
    ) => Promise<void>
    receive: (
        maxLength: number,
        sessionId: number,
        transactionId: number,
    ) => Promise<Uint8Array>
    isConnected: () => boolean
    classRequestReset: () => Promise<void>
    resetPort?: () => Promise<void>
    getType: () => TransportType
    connectionKind?: () => 'usb' | 'wifi' | 'ip'
    isLittleEndian: () => boolean
    on?: (handler: (event: PTPEvent) => void) => void
    off?: (handler: (event: PTPEvent) => void) => void
}
Show TransportInterface fields
connect(device?: DeviceDescriptor) => Promise<void>

Opens the device.

See DeviceDescriptor.

disconnect() => Promise<void>

Closes it.

sendfunction

Sends one container.

receivefunction

Reads one container of up to maxLength bytes.

isConnected() => boolean

Whether the device is open.

classRequestReset() => Promise<void>

The still-image class's Device Reset Request.

resetPort?() => Promise<void>

Resets the device's USB port and releases it, as if it were unplugged and replugged. Clears a pipe a crashed host left mid-transfer, which a Device Reset Request does not. The transport must be connected again afterwards.

getType() => TransportType

Which kind of transport this is.

connectionKind?() => 'usb' | 'wifi' | 'ip'

The connection as Camera.getInfo() reports it, for a transport that is not what getType() implies (Sony's authenticated SDK channel runs over Wi-Fi IP but is not PTP/IP). Without it: USB or PTP/IP.

isLittleEndian() => boolean

Get endianness for this transport PTP datasets and both USB and PTP/IP packet fields use little-endian encoding.

on?(handler: (event: PTPEvent) => void) => void

Calls handler with each PTP event the device sends.

off?(handler: (event: PTPEvent) => void) => void

Stops handler.

OperationParams

The parameters of a raw operation, by name, as protocolSession(camera).send takes them. See Raw protocol access.

type OperationParams<
    Op extends { operationParameters: readonly unknown[] },
> =
    Op['operationParameters'] extends readonly []
        ? Record<string, never>
        : BuildParamObject<Op['operationParameters']>

OperationResponse

What a raw operation resolves to: the response code and parameters, with data when the operation returns any.

type OperationResponse<Op> =
    Op extends { dataCodec: infer C }
        ? { code: number; parameters?: number[]; data: CodecType<C> }
        : Op extends { dataDirection: 'out' }
            ? { code: number; parameters?: number[]; data: Uint8Array }
            : { code: number; parameters?: number[] }

EventParams

The parameters of a raw event, by name.

type EventParams<E extends { parameters: readonly unknown[] }> =
    E['parameters'] extends readonly []
        ? Record<string, never>
        : BuildEventParamObject<E['parameters']>

TransactionPolicy

How long and how often Slate waits for a camera before giving up on a transaction.

interface TransactionPolicy {
    timeoutMilliseconds: number
    minimumThroughputBytesPerSecond: number
    deviceBusyRetries: number
    deviceBusyBackoffMilliseconds: number
    deviceBusyBudgetMilliseconds: number
    automaticUSBReset: boolean
    recoverTransport?: (failure: PTPErrorContext) => Promise<void>
}
Show TransactionPolicy fields
timeoutMillisecondsnumberdefault: 30000

Base time a single send or receive phase may take.

minimumThroughputBytesPerSecondnumberdefault: 2097152

Large data phases get extra time at this rate on top of the base timeout.

deviceBusyRetriesnumberdefault: 6

Standard (0x1xxx) operations answered DeviceBusy are retried at most this many times.

deviceBusyBackoffMillisecondsnumberdefault: 50

First retry delay; each further retry doubles it.

deviceBusyBudgetMillisecondsnumberdefault: 2000

Retries stop once this much time has passed since the first attempt; the last delay is shortened to fit.

automaticUSBResetbooleandefault: true

After a timeout or framing violation on a USB transport, automatically send the still-image class Device Reset Request, wait for the abandoned I/O to settle and reopen the session before the next command. On by default. If the automatic reset fails, later commands fail with PTPRecoveryRequiredError until a disconnect/connect. Transports without a class reset (PTP/IP) always latch instead.

recoverTransport?(failure: PTPErrorContext) => Promise<void>

Caller-owned recovery that replaces the automatic USB reset, for example to honor recording/lease guards. It must settle outstanding transport I/O before resolving and must not call this camera's queued methods. Failed or pending recovery blocks further commands; use an explicit disconnect/connect to establish a new transport instead.

PTPProtocolViolation

How a reply broke PTP container framing, on PTPProtocolError.violation.

type PTPProtocolViolation =
    | 'short-container'
    | 'truncated-container'
    | 'unexpected-container-type'
    | 'transaction-mismatch'
    | 'operation-mismatch'

LoggerConfig

What the logger option of new Camera() takes. See Timeouts and logging.

type LoggerConfig = {
    expanded?: boolean
    captureConsole?: boolean
    renderInTerminal?: boolean
    maxTransactions?: number
}
Show LoggerConfig fields
expanded?booleandefault: true

Shows each entry's detail in the terminal view; false shows one line per entry.

captureConsole?booleandefault: false

Routes console.log, console.info, console.warn and console.error into the logger's view. Node only.

renderInTerminal?booleandefault: false

Draws a live view of every transaction in the terminal. Node only.

maxTransactions?numberdefault: 1000

Transactions kept in memory; older ones are dropped, with any data they carried.

Runtime

What a host that shares cameras is written against. These are imported from @darkgrade/slate/runtime, not the main entry. Host cameras for other processes shows them at work.

CameraClient

What MCP and other remote frontends call: the public operations, by their library name.

interface CameraClient {
    discover: () => Promise<DiscoveredCamera[]>
    operation: (
        camera: string,
        name: string,
        input?: OperationInput,
    ) => Promise<OperationReply>
    benchmark?: (camera: string) => Promise<unknown>
}
Show CameraClient fields
discover() => Promise<DiscoveredCamera[]>

Camera.discover(): the attached cameras, without opening one.

See DiscoveredCamera.

operationfunction

Runs one public Camera operation on the host's camera with this identity.

See OperationInput, OperationReply.

benchmark?(camera: string) => Promise<unknown>

The deep benchmark workflow, runBenchmark, where the host offers it.

CameraProvider

Platform hosts supply the connected Camera and physical services, never a second MCP-owned session. The runtime runs every operation through Camera itself, so hosts keep no vendor tables.

interface CameraProvider {
    discover: () => Promise<DiscoveredCamera[]>
    camera: (camera: string) => Camera | Promise<Camera>
    assertAllowed: (
        camera: string,
        operation: string,
    ) => void | Promise<void>
    saveFile?: (
        camera: string,
        file: OperationFile,
    ) => Promise<string>
    benchmark?: (camera: string) => Promise<unknown>
}
Show CameraProvider fields
discover() => Promise<DiscoveredCamera[]>
camera(camera: string) => Camera | Promise<Camera>

The Camera the host holds for this identity, already connected or ready for connect.

See Camera.

assertAllowed(camera: string, operation: string) => void | Promise<void>

Throws (for example HardwareBusyError) when this operation may not run now.

saveFile?(camera: string, file: OperationFile) => Promise<string>

Keeps a returned file where the client can read it; the path is returned in the reply.

See OperationFile.

benchmark?(camera: string) => Promise<unknown>

OperationReply

An operation's result as it crosses a process: JSON, with any bytes the host saved by path.

interface OperationReply {
    result: unknown
    files: {
        role: OperationFile['role']
        name: string
        mimeType: string
        bytes: number
        path?: string
    }[]
    images?: { mimeType: string; base64: string }[]
}
Show OperationReply fields
resultunknown
filesobject

The files the operation returned, without their bytes; path where the host saved one.

See OperationFile.

images?{ mimeType: string; base64: string }[]

Image files inline (live-view frames and previews), for clients that show pictures.

OperationFile

A file an operation returned: a live-view frame, a preview, a photo's or a download's bytes.

interface OperationFile {
  role: 'photo'
    | 'frame'
    | 'overlay'
    | 'preview'
    | 'download'
    name: string
    mimeType: string
    data: Uint8Array
}
Show OperationFile fields
role'photo' | 'frame' | 'overlay' | 'preview' | 'download'
namestring

A name to save it under.

mimeTypestring
dataUint8Array

OperationInput

One call's inputs by parameter name, as an MCP client or the command line gave them.

type OperationInput = Readonly<Record<string, unknown>>

SurfaceOperation

One public Camera operation with its MCP tool and CLI command names, as surfaceOperations() lists it.

interface SurfaceOperation extends CameraOperationDescription {
    mcpTool: string
    cliCommand: string
    immediate: boolean
    readOnly: boolean
    name: string
    static?: boolean
    summary: string
    parameters: readonly OperationParameter[]
}
Show SurfaceOperation fields
mcpToolstring

camera_take_photo.

cliCommandstring

darkgrade camera take-photo (darkgrade cameras for discover).

immediateboolean

Stopping never waits behind other camera work, so these run as soon as they are asked for.

readOnlyboolean

Reads without changing the camera.

namestring

The library's method name (takePhoto); discover is the static Camera.discover.

static?boolean
summarystring

The first sentence of the method's doc comment.

parametersreadonly OperationParameter[]

OwnershipStore

The store a HardwareCoordinator keeps its leases in, shared by every process that might open the same camera. You implement it.

interface OwnershipStore {
    claimHardwareResource: (
        resource: string,
        owner: string,
        purpose: string,
        lifetimeMilliseconds: number,
    ) => boolean
    heartbeatHardwareOwner: (
        owner: string,
        lifetimeMilliseconds: number,
    ) => unknown
    releaseHardwareOwner: (owner: string) => unknown
    hardwareOwners: () => unknown[]
}
Show OwnershipStore fields
claimHardwareResourcefunction
heartbeatHardwareOwner(owner: string, lifetimeMilliseconds: number) => unknown
releaseHardwareOwner(owner: string) => unknown
hardwareOwners() => unknown[]

Other types

⌘I