Skip to content

Manifest: method reference ​

Methods you can use in your application. A void promise confirms command submission; device data and rejections arrive through events. Operations returning boolean or arrays wait for their specific results.

requestLogsEvent ​

ts
public async requestLogsEvent({ previous }: { previous: boolean }): Promise<void>;

Request logs events.

requestLogs ​

ts
public async requestLogs(): Promise<string[]>;

Request logs and return them as an array of strings. This method will handle the fetching of logs in batches if necessary.

requestLogsByDate ​

ts
public async requestLogsByDate({ since, until }: { since: Date; until: Date }): Promise<void>;

Request logs by date range.

requestForSendingManifest ​

ts
public async requestForSendingManifest({ fileSizeBytes, crc }: { fileSizeBytes: number; crc: string }): Promise<void>;

Request to Start Sending Manifest.

sendManifestDataBlock ​

ts
public async sendManifestDataBlock({ prevBlockId, dataBlock }: { prevBlockId: number; dataBlock: Buffer }): Promise<void>;

Send a block of manifest data.

Advanced internal integration reference

Use the methods above in your application. These hooks are reserved for low-level integrations.

_cancelPendingOperations ​

ts
public _cancelPendingOperations(error: Error): void;

Internal lifecycle hook: reject an unfinished log read and release its polling timer.

serialMessage ​

ts
public serialMessage(parsed: VisionResponse): void;

Explicit protocol, typed events, isolated transport.