Skip to content

Variable: SystemChannelSchemas

Makaio Framework


Makaio Framework / bus-core / SystemChannelSchemas

const SystemChannelSchemas: object

Defined in: ../../../packages/bus-core/src/channel/system-namespace.ts:13

Schema for the system.channel.open handshake request.

This is the only public-bus subject the channel system introduces. The handshake includes a capability token that acts as a bearer credential. Public keys are not secret, but the token grants channel access and should only travel over trusted transports. Callers should prefer transports: [] for same-process channels.

channel.open: object

request: ZodObject<{ clientPubKey: ZodString; endpoint: ZodString; token: ZodString; transports: ZodArray<ZodString>; }, $strip>

response: ZodObject<{ channelId: ZodString; endpointPubKey: ZodString; }, $strip>