Skip to content

ProtocolStage

import type { ProtocolStage } from '@kairo-js/router'

A union type identifying which stage of the inter-addon API pipeline a ProtocolError occurred in.

typescript
type ProtocolStage = 'ApiCall' | 'ApiInvoke' | 'ApiResult' | 'ApiHandlerResponse'

Values

ValueDirectionDescription
'ApiCall'caller → kairoThe caller sent an API call message.
'ApiInvoke'kairo → targetKairo sent an invoke to the handler addon.
'ApiHandlerResponse'target → kairoThe handler addon sent its response to kairo.
'ApiResult'kairo → callerKairo delivered the final result to the caller.

Released under the MIT License.