This library supports Node.js >=16
yarn add @contextual-io/native-object-client
npm install @contextual-io/native-object-client
This client will require a configuration provider to be registered at some point before a call:
import { registerNativeObjectConfigProvider } from "@contextual-io/native-object-client"
registerNativeObjectConfigProvider(async () => ({
host: "https://native-object.{YOUR_TENANT}.my.contextual.io",
organizationId: "{OPTIONAL_YOUR_ORGANIZATION_ID}",
bearerToken: "{VALID_JWT}",
}))
The documentation is accessible here.