@stablebaseline/sdk 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # @stablebaseline/sdk
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@stablebaseline/sdk?color=orange)](https://www.npmjs.com/package/@stablebaseline/sdk)
4
- [![Tools](https://img.shields.io/badge/MCP%20tools-163-orange)](https://stablebaseline.io/docs/mcp/tools)
4
+ [![Tools](https://img.shields.io/badge/MCP%20tools-184-orange)](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. 163 tools across 16 categories.
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. 184 tools across 19 categories.
7
7
 
8
8
  ## Install
9
9
 
@@ -52,7 +52,7 @@ Both go in the `Authorization: Bearer <...>` header.
52
52
 
53
53
  ## Tool catalogue
54
54
 
55
- 163 tools across 16 categories. The full list lives at [stablebaseline.io/docs/mcp/tools](https://stablebaseline.io/docs/mcp/tools). Highlights:
55
+ 184 tools across 19 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
  |---|---|
package/dist/index.cjs CHANGED
@@ -49,7 +49,7 @@ var StableBaseline = class {
49
49
  authHeader;
50
50
  signal;
51
51
  /**
52
- * Strongly-typed dispatch surface. Every entry is one of the 163 MCP tools.
52
+ * Strongly-typed dispatch surface. Every entry is one of the 184 MCP tools.
53
53
  *
54
54
  * const orgs = await sb.tools.listOrganisations({});
55
55
  * const doc = await sb.tools.createDocument({ folderId, title, cdmd });
package/dist/index.d.cts CHANGED
@@ -874,7 +874,7 @@ interface paths {
874
874
  put?: never;
875
875
  /**
876
876
  * getWhiteboardImage
877
- * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable PNG (default) attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), format:'svg' for vector markup instead of a raster, or background to set the canvas colour. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
877
+ * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable image attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), region:{x,y,width,height} to capture an exact scene-coordinate window (e.g. the user's viewport), theme:'light' for the fastest single-variant render, format:'svg' for vector markup, or background to set the canvas colour. Unchanged boards return instantly from a content-keyed cache. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
878
878
  */
879
879
  post: operations["getWhiteboardImage"];
880
880
  delete?: never;
@@ -7694,6 +7694,22 @@ interface operations {
7694
7694
  elementIds?: string[];
7695
7695
  /** @description Canvas background colour (default white), e.g. '#ffffff' or 'transparent'. */
7696
7696
  background?: string;
7697
+ /** @description Capture only this scene-coordinate window instead of the whole board — e.g. the user's current viewport, or the neighbourhood you are editing. The output is cropped to the exact rectangle. */
7698
+ region?: {
7699
+ /** @description Window left edge (scene coordinates). */
7700
+ x: number;
7701
+ /** @description Window top edge (scene coordinates). */
7702
+ y: number;
7703
+ /** @description Window width (> 0). */
7704
+ width: number;
7705
+ /** @description Window height (> 0). */
7706
+ height: number;
7707
+ };
7708
+ /**
7709
+ * @description Which theme variant(s) to render. 'light' is fastest and right for inspecting your own edits; 'both' (default) also produces the dark variant used by the chat widget.
7710
+ * @enum {string}
7711
+ */
7712
+ theme?: "light" | "dark" | "both";
7697
7713
  };
7698
7714
  };
7699
7715
  };
@@ -20202,7 +20218,7 @@ declare class StableBaseline {
20202
20218
  private authHeader;
20203
20219
  private signal?;
20204
20220
  /**
20205
- * Strongly-typed dispatch surface. Every entry is one of the 163 MCP tools.
20221
+ * Strongly-typed dispatch surface. Every entry is one of the 184 MCP tools.
20206
20222
  *
20207
20223
  * const orgs = await sb.tools.listOrganisations({});
20208
20224
  * const doc = await sb.tools.createDocument({ folderId, title, cdmd });
package/dist/index.d.ts CHANGED
@@ -874,7 +874,7 @@ interface paths {
874
874
  put?: never;
875
875
  /**
876
876
  * getWhiteboardImage
877
- * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable PNG (default) attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), format:'svg' for vector markup instead of a raster, or background to set the canvas colour. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
877
+ * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable image attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), region:{x,y,width,height} to capture an exact scene-coordinate window (e.g. the user's viewport), theme:'light' for the fastest single-variant render, format:'svg' for vector markup, or background to set the canvas colour. Unchanged boards return instantly from a content-keyed cache. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
878
878
  */
879
879
  post: operations["getWhiteboardImage"];
880
880
  delete?: never;
@@ -7694,6 +7694,22 @@ interface operations {
7694
7694
  elementIds?: string[];
7695
7695
  /** @description Canvas background colour (default white), e.g. '#ffffff' or 'transparent'. */
7696
7696
  background?: string;
7697
+ /** @description Capture only this scene-coordinate window instead of the whole board — e.g. the user's current viewport, or the neighbourhood you are editing. The output is cropped to the exact rectangle. */
7698
+ region?: {
7699
+ /** @description Window left edge (scene coordinates). */
7700
+ x: number;
7701
+ /** @description Window top edge (scene coordinates). */
7702
+ y: number;
7703
+ /** @description Window width (> 0). */
7704
+ width: number;
7705
+ /** @description Window height (> 0). */
7706
+ height: number;
7707
+ };
7708
+ /**
7709
+ * @description Which theme variant(s) to render. 'light' is fastest and right for inspecting your own edits; 'both' (default) also produces the dark variant used by the chat widget.
7710
+ * @enum {string}
7711
+ */
7712
+ theme?: "light" | "dark" | "both";
7697
7713
  };
7698
7714
  };
7699
7715
  };
@@ -20202,7 +20218,7 @@ declare class StableBaseline {
20202
20218
  private authHeader;
20203
20219
  private signal?;
20204
20220
  /**
20205
- * Strongly-typed dispatch surface. Every entry is one of the 163 MCP tools.
20221
+ * Strongly-typed dispatch surface. Every entry is one of the 184 MCP tools.
20206
20222
  *
20207
20223
  * const orgs = await sb.tools.listOrganisations({});
20208
20224
  * const doc = await sb.tools.createDocument({ folderId, title, cdmd });
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var StableBaseline = class {
23
23
  authHeader;
24
24
  signal;
25
25
  /**
26
- * Strongly-typed dispatch surface. Every entry is one of the 163 MCP tools.
26
+ * Strongly-typed dispatch surface. Every entry is one of the 184 MCP tools.
27
27
  *
28
28
  * const orgs = await sb.tools.listOrganisations({});
29
29
  * const doc = await sb.tools.createDocument({ folderId, title, cdmd });
package/openapi.json CHANGED
@@ -5417,7 +5417,7 @@
5417
5417
  "/tools/getWhiteboardImage": {
5418
5418
  "post": {
5419
5419
  "summary": "getWhiteboardImage",
5420
- "description": "Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable PNG (default) attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), format:'svg' for vector markup instead of a raster, or background to set the canvas colour. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.",
5420
+ "description": "Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable image attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), region:{x,y,width,height} to capture an exact scene-coordinate window (e.g. the user's viewport), theme:'light' for the fastest single-variant render, format:'svg' for vector markup, or background to set the canvas colour. Unchanged boards return instantly from a content-keyed cache. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.",
5421
5421
  "operationId": "getWhiteboardImage",
5422
5422
  "tags": [
5423
5423
  "whiteboards"
@@ -5451,6 +5451,43 @@
5451
5451
  "background": {
5452
5452
  "type": "string",
5453
5453
  "description": "Canvas background colour (default white), e.g. '#ffffff' or 'transparent'."
5454
+ },
5455
+ "region": {
5456
+ "type": "object",
5457
+ "description": "Capture only this scene-coordinate window instead of the whole board — e.g. the user's current viewport, or the neighbourhood you are editing. The output is cropped to the exact rectangle.",
5458
+ "properties": {
5459
+ "x": {
5460
+ "type": "number",
5461
+ "description": "Window left edge (scene coordinates)."
5462
+ },
5463
+ "y": {
5464
+ "type": "number",
5465
+ "description": "Window top edge (scene coordinates)."
5466
+ },
5467
+ "width": {
5468
+ "type": "number",
5469
+ "description": "Window width (> 0)."
5470
+ },
5471
+ "height": {
5472
+ "type": "number",
5473
+ "description": "Window height (> 0)."
5474
+ }
5475
+ },
5476
+ "required": [
5477
+ "x",
5478
+ "y",
5479
+ "width",
5480
+ "height"
5481
+ ]
5482
+ },
5483
+ "theme": {
5484
+ "type": "string",
5485
+ "enum": [
5486
+ "light",
5487
+ "dark",
5488
+ "both"
5489
+ ],
5490
+ "description": "Which theme variant(s) to render. 'light' is fastest and right for inspecting your own edits; 'both' (default) also produces the dark variant used by the chat widget."
5454
5491
  }
5455
5492
  },
5456
5493
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stablebaseline/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript SDK for the Stable Baseline REST API. End-to-end agent-managed company brain — docs, diagrams, plans, and a self-learning Knowledge Graph. 184 tools across 19 categories.",
5
5
  "homepage": "https://stablebaseline.io",
6
6
  "repository": {
package/src/client.ts CHANGED
@@ -93,7 +93,7 @@ export class StableBaseline {
93
93
  private signal?: AbortSignal;
94
94
 
95
95
  /**
96
- * Strongly-typed dispatch surface. Every entry is one of the 163 MCP tools.
96
+ * Strongly-typed dispatch surface. Every entry is one of the 184 MCP tools.
97
97
  *
98
98
  * const orgs = await sb.tools.listOrganisations({});
99
99
  * const doc = await sb.tools.createDocument({ folderId, title, cdmd });
package/src/index.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // cdmd: "# ...",
11
11
  // });
12
12
  //
13
- // All 163 MCP tools are reachable from `sb.tools.<toolName>(input)`. Types
13
+ // All 184 MCP tools are reachable from `sb.tools.<toolName>(input)`. Types
14
14
  // are generated from the live OpenAPI spec (`openapi.json` in this package).
15
15
 
16
16
  export { StableBaseline } from "./client.js";
@@ -875,7 +875,7 @@ export interface paths {
875
875
  put?: never;
876
876
  /**
877
877
  * getWhiteboardImage
878
- * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable PNG (default) attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), format:'svg' for vector markup instead of a raster, or background to set the canvas colour. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
878
+ * @description Render a whiteboard to an IMAGE so you can SEE it and confirm your edits look right, then iterate — like taking a screenshot. Returns the rendered board as a viewable image attached to the result. Pass elementIds to render only specific shapes (e.g. to inspect one section/slide), region:{x,y,width,height} to capture an exact scene-coordinate window (e.g. the user's viewport), theme:'light' for the fastest single-variant render, format:'svg' for vector markup, or background to set the canvas colour. Unchanged boards return instantly from a content-keyed cache. Call this after addWhiteboardElements/updateWhiteboardScene to check layout, overlaps, labels and alignment before continuing.
879
879
  */
880
880
  post: operations["getWhiteboardImage"];
881
881
  delete?: never;
@@ -7695,6 +7695,22 @@ export interface operations {
7695
7695
  elementIds?: string[];
7696
7696
  /** @description Canvas background colour (default white), e.g. '#ffffff' or 'transparent'. */
7697
7697
  background?: string;
7698
+ /** @description Capture only this scene-coordinate window instead of the whole board — e.g. the user's current viewport, or the neighbourhood you are editing. The output is cropped to the exact rectangle. */
7699
+ region?: {
7700
+ /** @description Window left edge (scene coordinates). */
7701
+ x: number;
7702
+ /** @description Window top edge (scene coordinates). */
7703
+ y: number;
7704
+ /** @description Window width (> 0). */
7705
+ width: number;
7706
+ /** @description Window height (> 0). */
7707
+ height: number;
7708
+ };
7709
+ /**
7710
+ * @description Which theme variant(s) to render. 'light' is fastest and right for inspecting your own edits; 'both' (default) also produces the dark variant used by the chat widget.
7711
+ * @enum {string}
7712
+ */
7713
+ theme?: "light" | "dark" | "both";
7698
7714
  };
7699
7715
  };
7700
7716
  };