bitfab 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-6HYQU37D.js";
10
+ } from "./chunk-P25SQKJ6.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-YE3AJM6H.js.map
21
+ //# sourceMappingURL=http-DJ43OYFJ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-Y4EBZJKB.js";
10
+ } from "./chunk-ZBLESJIO.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-FC3EJJEW.js.map
22
+ //# sourceMappingURL=http-UOFKNAXL.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.64.15";
54
+ __version__ = "0.64.16";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -8938,6 +8938,9 @@ function draftsInGenerationOrder(assertions, assertionIds) {
8938
8938
  function traceAssertionsPath(traceId, suffix = "") {
8939
8939
  return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
8940
8940
  }
8941
+ function traceScenarioPath(traceId) {
8942
+ return `/api/sdk/traces/${encodeURIComponent(traceId)}/scenario`;
8943
+ }
8941
8944
  var TracesClient = class {
8942
8945
  constructor(httpClient) {
8943
8946
  this.httpClient = httpClient;
@@ -9001,6 +9004,22 @@ var TracesClient = class {
9001
9004
  );
9002
9005
  return response.archived;
9003
9006
  }
9007
+ async getScenario(traceId) {
9008
+ const response = await this.httpClient.get(
9009
+ traceScenarioPath(traceId)
9010
+ );
9011
+ return response.scenario;
9012
+ }
9013
+ async saveScenario({
9014
+ traceId,
9015
+ ...edit
9016
+ }) {
9017
+ const response = await this.httpClient.request(
9018
+ traceScenarioPath(traceId),
9019
+ edit
9020
+ );
9021
+ return response.scenario;
9022
+ }
9004
9023
  };
9005
9024
 
9006
9025
  // src/tracing.ts