@topolo/sdk 0.2.7 → 0.2.8

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/dist/index.d.cts CHANGED
@@ -1305,6 +1305,7 @@ interface TopoloWidgetBase {
1305
1305
  snapshot?: TopoloWidgetSnapshotMetadata;
1306
1306
  }
1307
1307
  interface TopoloWidgetMetric {
1308
+ key?: string;
1308
1309
  label: string;
1309
1310
  value: string | number;
1310
1311
  change?: number;
package/dist/index.d.ts CHANGED
@@ -1305,6 +1305,7 @@ interface TopoloWidgetBase {
1305
1305
  snapshot?: TopoloWidgetSnapshotMetadata;
1306
1306
  }
1307
1307
  interface TopoloWidgetMetric {
1308
+ key?: string;
1308
1309
  label: string;
1309
1310
  value: string | number;
1310
1311
  change?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topolo/sdk",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Typed client SDK for the Topolo platform. Used by TopoloCli, TopoloMCP, and third-party agents.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,7 +21,7 @@ describe("Topolo widget contract", () => {
21
21
  widgets: [
22
22
  {
23
23
  type: "stats",
24
- stats: [{ label: "Files", value: 12 }],
24
+ stats: [{ key: "files", label: "Files", value: 12 }],
25
25
  },
26
26
  ],
27
27
  });
@@ -34,7 +34,7 @@ describe("Topolo widget contract", () => {
34
34
  serviceName: "Bytes",
35
35
  lastUpdated: "2026-04-25T00:00:00.000Z",
36
36
  type: "stats",
37
- stats: [{ label: "Files", value: 12 }],
37
+ stats: [{ key: "files", label: "Files", value: 12 }],
38
38
  },
39
39
  ],
40
40
  });
package/src/widgets.ts CHANGED
@@ -18,6 +18,7 @@ export interface TopoloWidgetBase {
18
18
  }
19
19
 
20
20
  export interface TopoloWidgetMetric {
21
+ key?: string;
21
22
  label: string;
22
23
  value: string | number;
23
24
  change?: number;