@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.
- package/dist/{chunk-2AGUF44U.js → chunk-2ZPZUOD6.js} +2 -2
- package/dist/{chunk-2AGUF44U.js.map → chunk-2ZPZUOD6.js.map} +1 -1
- package/dist/{chunk-BJUKVV7A.js → chunk-4R5G55MG.js} +21 -6
- package/dist/{chunk-BJUKVV7A.js.map → chunk-4R5G55MG.js.map} +1 -1
- package/dist/{chunk-NWVOGLM3.js → chunk-7KY75E3I.js} +3 -3
- package/dist/{chunk-CP3KI734.js → chunk-AMILC6CQ.js} +2 -2
- package/dist/{chunk-S2EBISN2.js → chunk-NK25R6UX.js} +2 -2
- package/dist/{chunk-S2EBISN2.js.map → chunk-NK25R6UX.js.map} +1 -1
- package/dist/{http-BYK75ZPU.js → http-MKYC373Q.js} +2 -2
- package/dist/{http-B2AUW7SJ.js → http-N62YN7QQ.js} +2 -2
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +5 -3
- package/dist/node.cjs +17 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +5 -3
- package/dist/node.js.map +1 -1
- package/dist/{replay-ZUTOLGTT.js → replay-4IVG6F7L.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-NWVOGLM3.js.map → chunk-7KY75E3I.js.map} +0 -0
- /package/dist/{chunk-CP3KI734.js.map → chunk-AMILC6CQ.js.map} +0 -0
- /package/dist/{http-B2AUW7SJ.js.map → http-MKYC373Q.js.map} +0 -0
- /package/dist/{http-BYK75ZPU.js.map → http-N62YN7QQ.js.map} +0 -0
- /package/dist/{replay-ZUTOLGTT.js.map → replay-4IVG6F7L.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
19
|
+
//# sourceMappingURL=http-MKYC373Q.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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,
|