bitfab 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-B7G7QH2S.js";
9
+ } from "./chunk-255I4PN4.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-JVWNLQ4C.js.map
20
+ //# sourceMappingURL=http-CHXMOVLK.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-2EFN2SVP.js";
9
+ } from "./chunk-WYNN6NY2.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-UMQCF7G7.js.map
19
+ //# sourceMappingURL=http-FQ76VRFF.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.3";
54
+ __version__ = "0.57.5";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -4391,6 +4391,7 @@ __export(index_exports, {
4391
4391
  NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
4392
4392
  ReplayError: () => ReplayError,
4393
4393
  SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
4394
+ TraceAssertionsClient: () => TraceAssertionsClient,
4394
4395
  TracesClient: () => TracesClient,
4395
4396
  __version__: () => __version__,
4396
4397
  defineReplayRegistry: () => defineReplayRegistry,
@@ -7749,9 +7750,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
7749
7750
  function traceAssertionsPath(traceId, suffix = "") {
7750
7751
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
7751
7752
  }
7753
+ function assertionEvidencePath(assertionId) {
7754
+ return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
7755
+ }
7756
+ var TraceAssertionsClient = class {
7757
+ constructor(httpClient) {
7758
+ this.httpClient = httpClient;
7759
+ }
7760
+ /** Suggest evidence for an assertion, enriched with its span context. */
7761
+ async getAssertionEvidence(assertionId) {
7762
+ const response = await this.httpClient.get(assertionEvidencePath(assertionId));
7763
+ return response.evidence;
7764
+ }
7765
+ };
7752
7766
  var TracesClient = class {
7753
7767
  constructor(httpClient) {
7754
7768
  this.httpClient = httpClient;
7769
+ this.assertions = new TraceAssertionsClient(httpClient);
7755
7770
  }
7756
7771
  async search(params) {
7757
7772
  return this.httpClient.request(SEARCH_PATH, params);
@@ -11005,6 +11020,7 @@ function resolveTraceFunctionKey(registration) {
11005
11020
  NO_MOCK_OVERRIDE,
11006
11021
  ReplayError,
11007
11022
  SUPPORTED_PROVIDERS,
11023
+ TraceAssertionsClient,
11008
11024
  TracesClient,
11009
11025
  __version__,
11010
11026
  defineReplayRegistry,