@bitfab/sdk 0.57.3 → 0.57.5

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-2AGUF44U.js";
9
+ } from "./chunk-2ZPZUOD6.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-BYK75ZPU.js.map
19
+ //# sourceMappingURL=http-MKYC373Q.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-S2EBISN2.js";
9
+ } from "./chunk-NK25R6UX.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-B2AUW7SJ.js.map
20
+ //# sourceMappingURL=http-N62YN7QQ.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.57.3";
45
+ __version__ = "0.57.5";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -4382,6 +4382,7 @@ __export(index_exports, {
4382
4382
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4383
4383
  ReplayError: () => ReplayError,
4384
4384
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4385
+ TraceAssertionsClient: () => TraceAssertionsClient,
4385
4386
  TracesClient: () => TracesClient,
4386
4387
  __version__: () => __version__,
4387
4388
  defineReplayRegistry: () => defineReplayRegistry,
@@ -7740,9 +7741,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
7740
7741
  function traceAssertionsPath(traceId, suffix = "") {
7741
7742
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
7742
7743
  }
7744
+ function assertionEvidencePath(assertionId) {
7745
+ return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
7746
+ }
7747
+ var TraceAssertionsClient = class {
7748
+ constructor(httpClient) {
7749
+ this.httpClient = httpClient;
7750
+ }
7751
+ /** Suggest evidence for an assertion, enriched with its span context. */
7752
+ async getAssertionEvidence(assertionId) {
7753
+ const response = await this.httpClient.get(assertionEvidencePath(assertionId));
7754
+ return response.evidence;
7755
+ }
7756
+ };
7743
7757
  var TracesClient = class {
7744
7758
  constructor(httpClient) {
7745
7759
  this.httpClient = httpClient;
7760
+ this.assertions = new TraceAssertionsClient(httpClient);
7746
7761
  }
7747
7762
  async search(params) {
7748
7763
  return this.httpClient.request(SEARCH_PATH, params);
@@ -10996,6 +11011,7 @@ function resolveTraceFunctionKey(registration) {
10996
11011
  NO_MOCK_OVERRIDE,
10997
11012
  ReplayError,
10998
11013
  SUPPORTED_PROVIDERS,
11014
+ TraceAssertionsClient,
10999
11015
  TracesClient,
11000
11016
  __version__,
11001
11017
  defineReplayRegistry,