@deployagram/api
v1.0.0
Published
Types for Deployagram logs, Kafka bodies, test runs and the DiagramLogger interface. Types only; no runtime dependencies.
Readme
@deployagram/api
TypeScript types for Deployagram: a recorded Log, its Logs list, a KafkaBody, the test-run
shapes, and the DiagramLogger interface.
These match the Java deployagram-api module, so the JSON exchanged with the Collector has the
same shape. The package has no runtime code and no runtime dependencies.
npm install @deployagram/apiimport type { Log, DiagramLogger } from '@deployagram/api';
const entry: Log = {
timestamp: '2026-11-07T16:00:00.000000Z',
protocol: 'HTTP',
source: 'EmailClient',
target: 'Emailer',
message: 'POST /Emailer/email',
body: '{"email":"[email protected]"}',
};A KafkaBody carries keys and values as Base64 text, matching the Java JSON.
