Kinetica TypeScript API
The TypeScript API is published to npm as @kinetica/gpudb-api:
Type declarations for every request and response ship with the package and are picked up automatically; no separate @types package is needed.
Each endpoint is available in two forms, both returning a Promise and both accepting an optional callback:
- positional parameters, e.g.
admin_add_host(host_address, options) - a single request object, e.g.
admin_add_host_request( host_address, options )
The request and response shapes are listed under Request Types and Response Types.
The same package serves Node.js and browser applications; see the Node.js and JavaScript API references for the specifics of each. The source is on GitHub.