BSB Node.js Type Definitions
    Preparing search index...

    Interface ReturnableEventSchema

    Schema definition for a returnable event with input/output validation. Type-branded to ensure returnable events are only used in appropriate categories. Uses BSBType for cross-language support instead of Zod schemas.

    interface ReturnableEventSchema {
        input: BSBType;
        output: BSBType;
        description?: string;
        defaultTimeout?: number;
        __brand: "returnable";
    }
    Index

    Properties

    input: BSBType

    Schema for event input parameters (as a single object)

    output: BSBType

    Schema for event output/return value

    description?: string

    Optional description of what this event does

    defaultTimeout?: number

    Default timeout in seconds for returnable event calls

    __brand: "returnable"

    Type brand for compile-time category validation