Skip to content

summarizeClientDiagnostics

function summarizeClientDiagnostics(client: TransferClient): ClientDiagnostics;

Defined in: src/diagnostics/index.ts:40

Returns a redaction-safe snapshot of the providers registered with a client.

Use this when rendering a setup screen, generating a support bundle, or asserting in tests that the expected provider factories were registered.

ParameterTypeDescription
clientTransferClientTransfer client to inspect.

ClientDiagnostics

Provider id and capability snapshot tuples.

import { summarizeClientDiagnostics } from "@zero-transfer/sdk";
for (const { id, capabilities } of summarizeClientDiagnostics(client).providers) {
console.log(`${id}: streaming=${capabilities.readStream} resume=${capabilities.resumeDownload}`);
}