@bitfab/sdk 0.64.25 → 0.64.27

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.
Files changed (34) hide show
  1. package/dist/{chunk-R7SJXFMB.js → chunk-AXFICSPS.js} +4 -4
  2. package/dist/{chunk-OMWPLB5R.js → chunk-DWQ36HBO.js} +2 -2
  3. package/dist/{chunk-OMWPLB5R.js.map → chunk-DWQ36HBO.js.map} +1 -1
  4. package/dist/{chunk-ULKKTYOL.js → chunk-FOAYPDCS.js} +2 -2
  5. package/dist/{chunk-DY52FEEM.js → chunk-HTRMFABJ.js} +2 -2
  6. package/dist/{chunk-DY52FEEM.js.map → chunk-HTRMFABJ.js.map} +1 -1
  7. package/dist/{chunk-EFGQRVMT.js → chunk-MROIROUR.js} +2 -2
  8. package/dist/{chunk-JNVDKPFL.js → chunk-OYTAKT5B.js} +27 -6
  9. package/dist/chunk-OYTAKT5B.js.map +1 -0
  10. package/dist/{http-GDTWWWYY.js → http-2ZLYPJ27.js} +2 -2
  11. package/dist/{http-QXJJB2F5.js → http-DUDJA3SE.js} +2 -2
  12. package/dist/index.cjs +23 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +24 -2
  15. package/dist/index.d.ts +24 -2
  16. package/dist/index.js +3 -3
  17. package/dist/node.cjs +23 -1
  18. package/dist/node.cjs.map +1 -1
  19. package/dist/node.d.cts +1 -1
  20. package/dist/node.d.ts +1 -1
  21. package/dist/node.js +3 -3
  22. package/dist/{replay-DC3PID7Q.js → replay-2S663YTX.js} +3 -3
  23. package/dist/{replay-VXQGVZXM.js → replay-JYRJ443I.js} +3 -3
  24. package/dist/replayCli.js +3 -3
  25. package/dist/seedCli.js +3 -3
  26. package/package.json +1 -1
  27. package/dist/chunk-JNVDKPFL.js.map +0 -1
  28. /package/dist/{chunk-R7SJXFMB.js.map → chunk-AXFICSPS.js.map} +0 -0
  29. /package/dist/{chunk-ULKKTYOL.js.map → chunk-FOAYPDCS.js.map} +0 -0
  30. /package/dist/{chunk-EFGQRVMT.js.map → chunk-MROIROUR.js.map} +0 -0
  31. /package/dist/{http-GDTWWWYY.js.map → http-2ZLYPJ27.js.map} +0 -0
  32. /package/dist/{http-QXJJB2F5.js.map → http-DUDJA3SE.js.map} +0 -0
  33. /package/dist/{replay-DC3PID7Q.js.map → replay-2S663YTX.js.map} +0 -0
  34. /package/dist/{replay-VXQGVZXM.js.map → replay-JYRJ443I.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-DY52FEEM.js";
11
+ } from "./chunk-HTRMFABJ.js";
12
12
  import "./chunk-MT36GJMW.js";
13
13
  export {
14
14
  BitfabError,
@@ -21,4 +21,4 @@ export {
21
21
  parseRetryAfterMs,
22
22
  serializePayloadBody
23
23
  };
24
- //# sourceMappingURL=http-GDTWWWYY.js.map
24
+ //# sourceMappingURL=http-2ZLYPJ27.js.map
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-OMWPLB5R.js";
11
+ } from "./chunk-DWQ36HBO.js";
12
12
  export {
13
13
  BitfabError,
14
14
  HttpClient,
@@ -20,4 +20,4 @@ export {
20
20
  parseRetryAfterMs,
21
21
  serializePayloadBody
22
22
  };
23
- //# sourceMappingURL=http-QXJJB2F5.js.map
23
+ //# sourceMappingURL=http-DUDJA3SE.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.25";
45
+ __version__ = "0.64.27";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -6804,6 +6804,7 @@ function currentCommitRef() {
6804
6804
  init_constants();
6805
6805
 
6806
6806
  // src/datasets.ts
6807
+ init_errors();
6807
6808
  var DEFAULT_RERUN_TIMEOUT_MS = 9e4;
6808
6809
  var RERUN_POLL_INTERVAL_MS = 1e3;
6809
6810
  var TERMINAL_RERUN_STATUSES = /* @__PURE__ */ new Set([
@@ -6860,6 +6861,27 @@ var DatasetsClient = class {
6860
6861
  ...params.description === void 0 ? {} : { description: params.description }
6861
6862
  });
6862
6863
  }
6864
+ /**
6865
+ * Rename a dataset or change its description in place. The dataset keeps its
6866
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
6867
+ * 400 `BitfabError` when the new name is already used by another dataset on
6868
+ * the same trace function, and a 404 when the dataset is not in this
6869
+ * organization.
6870
+ */
6871
+ async update(datasetId, params) {
6872
+ if (params.name === void 0 && params.description === void 0) {
6873
+ throw new BitfabError("Provide name and/or description to update.");
6874
+ }
6875
+ const response = await this.httpClient.request(
6876
+ datasetPath(datasetId),
6877
+ {
6878
+ ...params.name === void 0 ? {} : { name: params.name },
6879
+ ...params.description === void 0 ? {} : { description: params.description }
6880
+ },
6881
+ { method: "PATCH" }
6882
+ );
6883
+ return response.dataset;
6884
+ }
6863
6885
  /**
6864
6886
  * List datasets, scoped to one trace function when `traceFunctionKey` is
6865
6887
  * given and organization-wide otherwise. Fetches all pages automatically.