@stablebaseline/sdk 0.5.1 → 0.5.3
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.
- package/README.md +6 -6
- package/dist/index.d.cts +278 -45
- package/dist/index.d.ts +278 -45
- package/openapi.json +623 -93
- package/package.json +2 -2
- package/src/types.generated.ts +278 -45
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @stablebaseline/sdk
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@stablebaseline/sdk)
|
|
4
|
-
[](https://stablebaseline.io/docs/mcp/tools)
|
|
5
5
|
|
|
6
|
-
TypeScript SDK for the **[Stable Baseline](https://stablebaseline.io) REST API** — the simplest, most complete, end-to-end agent-managed company brain. Living docs, 40+ visual diagrams, plans, and a self-learning Knowledge Graph.
|
|
6
|
+
TypeScript SDK for the **[Stable Baseline](https://stablebaseline.io) REST API** — the simplest, most complete, end-to-end agent-managed company brain. Living docs, 40+ visual diagrams, plans, and a self-learning Knowledge Graph. 196 tools across 18 categories.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
@@ -16,7 +16,7 @@ npm install @stablebaseline/sdk
|
|
|
16
16
|
```ts
|
|
17
17
|
import { StableBaseline } from "@stablebaseline/sdk";
|
|
18
18
|
|
|
19
|
-
// Mint an API key at https://app.stablebaseline.io/settings/mcp-
|
|
19
|
+
// Mint an API key at https://app.stablebaseline.io/settings/mcp-setup
|
|
20
20
|
const sb = new StableBaseline({ apiKey: process.env.SB_API_KEY! });
|
|
21
21
|
|
|
22
22
|
const orgs = await sb.tools.listOrganisations({});
|
|
@@ -41,10 +41,10 @@ console.log(search.entities);
|
|
|
41
41
|
Two equivalent paths:
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
|
-
// API key (mint at app.stablebaseline.io/settings/mcp-
|
|
44
|
+
// API key (mint at app.stablebaseline.io/settings/mcp-setup, prefix sta_)
|
|
45
45
|
new StableBaseline({ apiKey: "sta_..." });
|
|
46
46
|
|
|
47
|
-
// OAuth 2.1 access token (interactive flow against api.stablebaseline.io/oauth/token)
|
|
47
|
+
// OAuth 2.1 access token (interactive flow against api.stablebaseline.io/functions/v1/cloud-serve/oauth/token)
|
|
48
48
|
new StableBaseline({ accessToken: "..." });
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ Both go in the `Authorization: Bearer <...>` header.
|
|
|
52
52
|
|
|
53
53
|
## Tool catalogue
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
196 tools across 18 categories. The full list lives at [stablebaseline.io/docs/mcp/tools](https://stablebaseline.io/docs/mcp/tools). Highlights:
|
|
56
56
|
|
|
57
57
|
| Category | Sample tools |
|
|
58
58
|
|---|---|
|