@bitfab/sdk 0.64.15 → 0.64.16

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.
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-Z4DIFZTO.js";
10
+ } from "./chunk-PAWBCEI7.js";
11
11
  import "./chunk-MT36GJMW.js";
12
12
  export {
13
13
  BitfabError,
@@ -19,4 +19,4 @@ export {
19
19
  parseRetryAfterMs,
20
20
  serializePayloadBody
21
21
  };
22
- //# sourceMappingURL=http-IQ2AC36B.js.map
22
+ //# sourceMappingURL=http-LV7OUBKA.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-KVGRTCIE.js";
10
+ } from "./chunk-I4TFQZCW.js";
11
11
  export {
12
12
  BitfabError,
13
13
  HttpClient,
@@ -18,4 +18,4 @@ export {
18
18
  parseRetryAfterMs,
19
19
  serializePayloadBody
20
20
  };
21
- //# sourceMappingURL=http-36VJ3FFM.js.map
21
+ //# sourceMappingURL=http-QQ6VVHUZ.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.64.15";
45
+ __version__ = "0.64.16";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -8929,6 +8929,9 @@ function draftsInGenerationOrder(assertions, assertionIds) {
8929
8929
  function traceAssertionsPath(traceId, suffix = "") {
8930
8930
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
8931
8931
  }
8932
+ function traceScenarioPath(traceId) {
8933
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/scenario`;
8934
+ }
8932
8935
  var TracesClient = class {
8933
8936
  constructor(httpClient) {
8934
8937
  this.httpClient = httpClient;
@@ -8992,6 +8995,22 @@ var TracesClient = class {
8992
8995
  );
8993
8996
  return response.archived;
8994
8997
  }
8998
+ async getScenario(traceId) {
8999
+ const response = await this.httpClient.get(
9000
+ traceScenarioPath(traceId)
9001
+ );
9002
+ return response.scenario;
9003
+ }
9004
+ async saveScenario({
9005
+ traceId,
9006
+ ...edit
9007
+ }) {
9008
+ const response = await this.httpClient.request(
9009
+ traceScenarioPath(traceId),
9010
+ edit
9011
+ );
9012
+ return response.scenario;
9013
+ }
8995
9014
  };
8996
9015
 
8997
9016
  // src/tracing.ts