busabase-sdk 0.1.0 → 0.9.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 +2 -2
- package/dist/index.d.ts +4557 -1164
- package/dist/index.js +581 -215
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -36,13 +36,13 @@ Every constructor field is optional and falls back to an environment variable:
|
|
|
36
36
|
| --------- | -------------------- | -------------------------- |
|
|
37
37
|
| `baseUrl` | `BUSABASE_BASE_URL` | `https://busabase.com` |
|
|
38
38
|
| `apiKey` | `BUSABASE_API_KEY` | — (none; local is open) |
|
|
39
|
-
| `spaceId` | `BUSABASE_SPACE_ID` |
|
|
39
|
+
| `spaceId` | `BUSABASE_SPACE_ID` | no header; multi-space Cloud calls require one |
|
|
40
40
|
|
|
41
41
|
`baseUrl` accepts either the server root (`http://host`) or the full API path (`http://host/api/v1`) — the `/api/v1` suffix is normalized away.
|
|
42
42
|
|
|
43
43
|
## Two entry points
|
|
44
44
|
|
|
45
|
-
**`Busabase` class** — an ergonomic wrapper with namespaced methods (`bb.bases`, `bb.records`, `bb.changeRequests`, `bb.nodes`, `bb.views`, `bb.skills`, `bb.docs`, `bb.folders`, `bb.comments`, `bb.auditEvents`, `bb.
|
|
45
|
+
**`Busabase` class** — an ergonomic wrapper with namespaced methods (`bb.bases`, `bb.records`, `bb.changeRequests`, `bb.nodes`, `bb.views`, `bb.assets`, `bb.skills`, `bb.docs`, `bb.folders`, `bb.comments`, `bb.auditEvents`, `bb.agent`, `bb.agentTasks`, `bb.search()`, `bb.health()`, `bb.me()`). Drop to `bb.client` for the raw oRPC client (e.g. `bb.client.system.meta()`).
|
|
46
46
|
|
|
47
47
|
**`createBusabaseClient(config?)`** — returns the raw, fully-typed [oRPC](https://orpc.unnoq.com) client directly, if you'd rather not wrap it in a class:
|
|
48
48
|
|