bothy-sdk
    Preparing search index...

    Class InboxEntry

    One stored event; immutable. inspect, String and JSON.stringify show neither the token nor the envelope (SEC-LOG-2).

    Implements

    Index

    Constructors

    Properties

    deliveries: number

    How often the event was delivered.

    envelope: Readonly<Record<string, unknown>>

    The envelope as received, without invocation_token.

    eventId: string

    The envelope id.

    runId: string | undefined

    The run the event belongs to, when it has one.

    seq: number | undefined

    The envelope seq; undefined for an ephemeral event.

    state: EntryState

    The entry's state.

    token: Secret | undefined

    The newest invocation token of the event.

    tokenIat: number | undefined

    iat of token.

    tokenJti: string | undefined

    jti of token.

    type: string

    The event type, for example agent.invocation.

    Methods

    • Returns the members without token and envelope, for logs and JSON.stringify.

      Returns Record<string, unknown>

    • Returns InboxEntry(<event id>, <state>).

      Returns string