InputAPI
Defined in: namespaces-core-plugins.ts:685
Inbound mirror of fn-97 (fn-98): external messages → IngressPipeline → parsed intents → handlers. Promise methods route through the fn-89 Invoker; read-shaped denials are timing-padded (50ms ± 10%).
fn-98
Properties
Section titled “Properties”channels
Section titled “channels”channels:
object
Defined in: namespaces-core-plugins.ts:705
Channel contributor sub-bridge.
register()
Section titled “register()”register(
definition,handlers):Promise<AnyJSONValue>
Registers a channel definition + handlers. [input.channel.register]
Parameters
Section titled “Parameters”definition
Section titled “definition”handlers
Section titled “handlers”Returns
Section titled “Returns”Promise<AnyJSONValue>
unregisterChannel()
Section titled “unregisterChannel()”unregisterChannel(
channelDefId):Promise<AnyJSONValue>
Unregisters a channel definition. [input.channel.register]
QUIRK: named unregisterChannel (mirrors the fn-97 unbindChannel
JSExport selector-clash pattern).
Parameters
Section titled “Parameters”channelDefId
Section titled “channelDefId”string
Returns
Section titled “Returns”Promise<AnyJSONValue>
parsers
Section titled “parsers”parsers:
object
Defined in: namespaces-core-plugins.ts:716
Parser contributor sub-bridge.
register()
Section titled “register()”register(
parserId,parseFn):Promise<AnyJSONValue>
Registers a parser. [input.parser.register]
Parameters
Section titled “Parameters”parserId
Section titled “parserId”string
parseFn
Section titled “parseFn”(message) => AnyJSONValue | Promise<AnyJSONValue>
Returns
Section titled “Returns”Promise<AnyJSONValue>
unregister()
Section titled “unregister()”unregister(
parserId):Promise<AnyJSONValue>
Unregisters a parser. [input.parser.register]
Parameters
Section titled “Parameters”parserId
Section titled “parserId”string
Returns
Section titled “Returns”Promise<AnyJSONValue>
intents
Section titled “intents”intents:
object
Defined in: namespaces-core-plugins.ts:723
Intent contributor sub-bridge.
register()
Section titled “register()”register(
intentId,handler):Promise<AnyJSONValue>
Registers an intent handler. [input.intent.register]
Parameters
Section titled “Parameters”intentId
Section titled “intentId”string
handler
Section titled “handler”(intent) => void | Promise<void>
Returns
Section titled “Returns”Promise<AnyJSONValue>
unregister()
Section titled “unregister()”unregister(
intentId):Promise<AnyJSONValue>
Unregisters an intent. [input.intent.register]
Parameters
Section titled “Parameters”intentId
Section titled “intentId”string
Returns
Section titled “Returns”Promise<AnyJSONValue>
auth:
object
Defined in: namespaces-core-plugins.ts:730
Auth-strategy contributor sub-bridge.
register()
Section titled “register()”register(
authId,strategy):Promise<AnyJSONValue>
Registers an auth strategy. [input.auth.register]
Parameters
Section titled “Parameters”authId
Section titled “authId”string
strategy
Section titled “strategy”Returns
Section titled “Returns”Promise<AnyJSONValue>
unregister()
Section titled “unregister()”unregister(
authId):Promise<AnyJSONValue>
Unregisters an auth strategy. [input.auth.register]
Parameters
Section titled “Parameters”authId
Section titled “authId”string
Returns
Section titled “Returns”Promise<AnyJSONValue>
Methods
Section titled “Methods”onMessage()
Section titled “onMessage()”onMessage(
channelId,handler):SubscriptionHandle
Defined in: namespaces-core-plugins.ts:687
Subscribes to inbound messages on an own channel (SYNC handle). [input.subscribe.messages]
Parameters
Section titled “Parameters”channelId
Section titled “channelId”string
handler
Section titled “handler”(message) => void
Returns
Section titled “Returns”onIntent()
Section titled “onIntent()”onIntent(
intentId,handler):SubscriptionHandle
Defined in: namespaces-core-plugins.ts:689
Subscribes to own-registered intents (SYNC handle). [input.subscribe.intents]
Parameters
Section titled “Parameters”intentId
Section titled “intentId”string
handler
Section titled “handler”(intent) => void
Returns
Section titled “Returns”onNotificationReply()
Section titled “onNotificationReply()”onNotificationReply(
handler):SubscriptionHandle
Defined in: namespaces-core-plugins.ts:691
Subscribes to notification replies (SYNC handle). [input.subscribe.messages]
Parameters
Section titled “Parameters”handler
Section titled “handler”(reply) => void
Returns
Section titled “Returns”recent()
Section titled “recent()”recent(
channelId,filter?):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:693
Recent messages (hard ceiling 1000 with truncated flag). [input.subscribe.messages]
Parameters
Section titled “Parameters”channelId
Section titled “channelId”string
filter?
Section titled “filter?”Returns
Section titled “Returns”Promise<AnyJSONValue>
reply()
Section titled “reply()”reply(
handle,body,attachments?):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:695
Replies to an inbound message. [input.reply]
Parameters
Section titled “Parameters”handle
Section titled “handle”attachments?
Section titled “attachments?”BlobRef[]
Returns
Section titled “Returns”Promise<AnyJSONValue>
replyToNotification()
Section titled “replyToNotification()”replyToNotification(
correlationId,body,attachments?):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:697
Replies correlated to an outbound notification. [input.reply]
Parameters
Section titled “Parameters”correlationId
Section titled “correlationId”string
attachments?
Section titled “attachments?”BlobRef[]
Returns
Section titled “Returns”Promise<AnyJSONValue>
listChannels()
Section titled “listChannels()”listChannels():
Promise<AnyJSONValue[]>
Defined in: namespaces-core-plugins.ts:699
Lists visible channels. [input.subscribe.messages]
Returns
Section titled “Returns”Promise<AnyJSONValue[]>
recordOutboundForReplyMap()
Section titled “recordOutboundForReplyMap()”recordOutboundForReplyMap(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:701
Seeds the reply map for free-form correlation. [input.reply]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<AnyJSONValue>
deliverIngress()
Section titled “deliverIngress()”deliverIngress(
params):Promise<AnyJSONValue>
Defined in: namespaces-core-plugins.ts:703
Delivers ingress for an owned channel. [input.channel.register]
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<AnyJSONValue>