bitfab 0.57.4 → 0.57.6

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.
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-DAXBPYIY.js";
9
+ } from "./chunk-UTBA3ASY.js";
10
10
  import "./chunk-VCRFFCLY.js";
11
11
  export {
12
12
  BitfabError,
@@ -17,4 +17,4 @@ export {
17
17
  parseRetryAfterMs,
18
18
  serializePayloadBody
19
19
  };
20
- //# sourceMappingURL=http-K2YSJIIQ.js.map
20
+ //# sourceMappingURL=http-EYKH2EPD.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-KYLLSZLE.js";
9
+ } from "./chunk-EC7EZXDV.js";
10
10
  export {
11
11
  BitfabError,
12
12
  HttpClient,
@@ -16,4 +16,4 @@ export {
16
16
  parseRetryAfterMs,
17
17
  serializePayloadBody
18
18
  };
19
- //# sourceMappingURL=http-OV5C6DVP.js.map
19
+ //# sourceMappingURL=http-U3V6WNLO.js.map
package/dist/index.cjs CHANGED
@@ -51,7 +51,7 @@ var __version__, __packageName__;
51
51
  var init_version_generated = __esm({
52
52
  "src/version.generated.ts"() {
53
53
  "use strict";
54
- __version__ = "0.57.4";
54
+ __version__ = "0.57.6";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -5987,7 +5987,9 @@ init_http();
5987
5987
  // src/labels.ts
5988
5988
  var LABELS_PATH = "/api/sdk/traces/labels";
5989
5989
  var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
5990
- var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
5990
+ function labelEvidencePath(traceId, assertionId) {
5991
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
5992
+ }
5991
5993
  var LabelsClient = class {
5992
5994
  constructor(httpClient) {
5993
5995
  this.httpClient = httpClient;
@@ -6036,15 +6038,9 @@ var LabelsClient = class {
6036
6038
  );
6037
6039
  return response.labels;
6038
6040
  }
6039
- /** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
6040
- async getLabelEvidence(traceId, assertionId) {
6041
- const query = new URLSearchParams({ traceId });
6042
- if (assertionId !== void 0) {
6043
- query.set("assertionId", assertionId);
6044
- }
6045
- const response = await this.httpClient.get(
6046
- `${LABEL_EVIDENCE_PATH}?${query.toString()}`
6047
- );
6041
+ /** Generate suggested evidence for an assertion on an original or replay trace. */
6042
+ async generateLabelEvidence(traceId, assertionId) {
6043
+ const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
6048
6044
  return response.evidence;
6049
6045
  }
6050
6046
  };