@nimba/api-client 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +11 -1
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @nimba/api-client
2
+
3
+ The typed SDK over the [Nimba](https://github.com/db-lyon/nimba) HTTP API. Every Nimba client — CLI, web, anything else — talks to the Nimba server through this package and never imports the engine, the bridge, or the tasks directly.
4
+
5
+ > Part of **Nimba**, modern Salesforce DevOps orchestration in TypeScript.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @nimba/api-client
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { NimbaApiClient } from '@nimba/api-client';
17
+
18
+ const nimba = new NimbaApiClient({
19
+ baseUrl: 'http://localhost:3000',
20
+ token: process.env.NIMBA_TOKEN, // when auth is enabled
21
+ });
22
+
23
+ const flows = await nimba.listFlows();
24
+ const result = await nimba.runFlow('dev_org', 'dev'); // (flowName, orgAlias, params?)
25
+ ```
26
+
27
+ ## What it is
28
+
29
+ A small, dependency-light client that mirrors the Nimba server's flow/task operations with full TypeScript types (`FlowSummary`, `FlowInfo`, `FlowRunResponse`, …). It has **no dependency on the server-internal half of the monorepo** — that boundary is the point: clients cross to the engine only over HTTP.
30
+
31
+ ## Requirements
32
+
33
+ - Node.js >= 22.19
34
+
35
+ ## Links
36
+
37
+ - [Nimba on GitHub](https://github.com/db-lyon/nimba)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimba/api-client",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,6 +13,16 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
+ "engines": {
17
+ "node": ">=22.19.0"
18
+ },
19
+ "description": "Typed SDK over the Nimba HTTP API.",
20
+ "homepage": "https://github.com/db-lyon/nimba/tree/main/packages/api-client#readme",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/db-lyon/nimba.git",
24
+ "directory": "packages/api-client"
25
+ },
16
26
  "scripts": {
17
27
  "build": "tsc -b",
18
28
  "typecheck": "tsc -b --noEmit",