/** * routes/push.ts * * Attaches the `push.*` gateway-method handlers to the descriptors declared in * ../method-catalog-push.ts. Same mechanism fleet.* uses: * `catalog.register(descriptor, handler)`, reached over real HTTP through the * generic `/api/control-plane/methods/{id}/invoke` endpoint, no new REST route * in the external daemon-sdk package, no router change. * * Every write is scoped to the authenticated principal (the operator identity * the invoke layer resolved), so one operator can neither read, delete, nor * test another operator's registered devices. */ import type { GatewayMethodCatalog } from '../method-catalog.js'; import type { PushService } from '../../push/index.js'; /** The narrow slice of PushService these verbs need. */ export type PushGatewayService = Pick; /** * Attach the `push.*` handlers to their already-cataloged descriptors. Call * once, at RuntimeServices construction time, after the PushService exists. A * missing descriptor (contract/registration drift) is a silent no-op rather * than a throw, construction must never fail because one wire verb failed to * register; the operator-contract gates catch a real drift. */ export declare function registerPushGatewayMethods(catalog: GatewayMethodCatalog, service: PushGatewayService): void; //# sourceMappingURL=push.d.ts.map