import type { IsoTime, NodeIdDTO } from './common.js'; /** `POST /v1/nodes/{id}/subscriptions` body — {id} subscribes to `target`. */ export interface SubscribeRequest { target: NodeIdDTO; /** active = wake the subscriber on emit; passive = accumulate, no wake. */ active?: boolean; } /** A subscription as seen from one endpoint. */ export interface SubscriptionDTO { /** The node id at the other end of the edge. */ node_id: NodeIdDTO; active: boolean; created: IsoTime; }