Official Node.js SDK for BRX
brx-node
package is the official Node.js SDK for interacting with the BRX platform. It provides a simple and intuitive interface for creating, managing, and executing BRKs.
BRX
class is the main entry point for interacting with the BRX platform.
accessToken
(required): Your BRX API keyoptions
(optional): Configuration options
use_brx_key
(default: true
): Whether to use the BRX API key for authenticationverbose
(default: false
): Enable verbose loggingsend_local
(default: false
): Use local API endpoint (for development)force_client
(default: false
): Force client-side WebSocketsilent
(default: false
): Disable welcome messagebrxID
(required): The ID of the BRK to fetchquery
(required): The BRK to executecallback
(optional): A callback function that will be called for each resultmodifyRequest
(required): The BRK creation requestmodifyRequest
(required): The BRK update requestmodifyRequest
(required): The BRK deletion requestmodifyRequest
(required): The BRK clone requestrun
instead.
query
(required): The BRK or query stream request to executecallback
(optional): A callback function that will be called for each resultcreate
, update
, delete
, or clone
instead.
modifyRequest
(required): The BRK modification requestBRK
class represents a BRK (BRX Knowledge Representation) that can be executed.
BRKSchema
(optional): The BRK schemaBRXClient
(optional): The BRX client to use for executioncallback
(optional): A callback function that will be called for each resultverbose
(optional): Enable verbose loggingprocessType
property in the processParams
object.
Map
objects for certain properties. When serializing these objects to JSON, you need to use the mapReplacer
function.
Map
properties, you need to use the mapReviver
function.