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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | TransferClient | Transfer client to inspect. |
Returns
Section titled “Returns”Provider id and capability snapshot tuples.
Example
Section titled “Example”import { summarizeClientDiagnostics } from "@zero-transfer/sdk";
for (const { id, capabilities } of summarizeClientDiagnostics(client).providers) { console.log(`${id}: streaming=${capabilities.readStream} resume=${capabilities.resumeDownload}`);}