@kb-labs/studio-data-client 0.6.0 → 2.6.0

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.js CHANGED
@@ -14,6 +14,10 @@ var KBError = class extends Error {
14
14
  this.cause = cause;
15
15
  this.name = "KBError";
16
16
  }
17
+ code;
18
+ message;
19
+ status;
20
+ cause;
17
21
  };
18
22
  var errorCodes = {
19
23
  NETWORK_ERROR: "NETWORK_ERROR",
@@ -322,6 +326,7 @@ var HttpSystemSource = class {
322
326
  constructor(client) {
323
327
  this.client = client;
324
328
  }
329
+ client;
325
330
  async getHealth() {
326
331
  const snapshot = await this.client.fetch("/observability/health");
327
332
  const degraded = snapshot.status === "degraded" || snapshot.state === "partial_observability";
@@ -417,6 +422,7 @@ var HttpWorkflowSource = class {
417
422
  constructor(client) {
418
423
  this.client = client;
419
424
  }
425
+ client;
420
426
  async listRuns(filters) {
421
427
  const query = buildQuery(filters);
422
428
  return this.client.fetch(`/plugins/workflow/runs${query}`);
@@ -604,6 +610,7 @@ var HttpCacheSource = class {
604
610
  constructor(client) {
605
611
  this.client = client;
606
612
  }
613
+ client;
607
614
  async invalidateCache() {
608
615
  return this.client.fetch("/cache/invalidate", {
609
616
  method: "POST"
@@ -841,6 +848,7 @@ var HttpObservabilitySource = class {
841
848
  constructor(client) {
842
849
  this.client = client;
843
850
  }
851
+ client;
844
852
  async getStateBrokerStats() {
845
853
  try {
846
854
  return await this.client.fetch(
@@ -1247,6 +1255,7 @@ var HttpAnalyticsSource = class {
1247
1255
  constructor(client) {
1248
1256
  this.client = client;
1249
1257
  }
1258
+ client;
1250
1259
  async getEvents(query) {
1251
1260
  const params = new URLSearchParams();
1252
1261
  if (query?.type) {
@@ -1301,6 +1310,7 @@ var HttpAdaptersSource = class {
1301
1310
  constructor(client) {
1302
1311
  this.client = client;
1303
1312
  }
1313
+ client;
1304
1314
  /**
1305
1315
  * Build query string from date range options
1306
1316
  */
@@ -1377,6 +1387,7 @@ var HttpPlatformSource = class {
1377
1387
  constructor(client) {
1378
1388
  this.client = client;
1379
1389
  }
1390
+ client;
1380
1391
  /**
1381
1392
  * Get platform configuration
1382
1393
  */
@@ -1390,6 +1401,7 @@ var HttpPluginsSource = class {
1390
1401
  constructor(client) {
1391
1402
  this.client = client;
1392
1403
  }
1404
+ client;
1393
1405
  async getPlugins() {
1394
1406
  return this.client.fetch("/plugins/registry");
1395
1407
  }