Member Junction
    Preparing search index...
    BridgeHandler: (args: unknown) => Promise<unknown> | unknown

    A host-side bridge handler function. Registered per-execution via CodeExecutionService.execute({ bridgeHandlers, ... }) and invoked when sandboxed code calls __bridgeCall(name, args). The handler receives the args (already JSON-round-tripped, so primitives + plain objects only) and returns any JSON-serializable value; it may also throw, in which case the sandbox's await __bridgeCall(...) rejects with the error's message.

    The handler runs in the host process, not the sandbox. It has full access to MJ's services, DB, and filesystem — so higher layers (RuntimeActionBridge in @memberjunction/action-runtime) are responsible for enforcing per-Runtime-action permission scopes before each call reaches this point.

    Type Declaration

      • (args: unknown): Promise<unknown> | unknown
      • Parameters

        • args: unknown

        Returns Promise<unknown> | unknown