bitfab 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-FV22KNCA.js → chunk-A3BOXSQY.js} +2 -2
  2. package/dist/{chunk-FV22KNCA.js.map → chunk-A3BOXSQY.js.map} +1 -1
  3. package/dist/{chunk-3ZHBUX5F.js → chunk-CJRTXQ2W.js} +2 -2
  4. package/dist/{chunk-LH2XCO5O.js → chunk-FKTXL2GZ.js} +2 -2
  5. package/dist/{chunk-LH2XCO5O.js.map → chunk-FKTXL2GZ.js.map} +1 -1
  6. package/dist/{chunk-OMHL3TGQ.js → chunk-IVRZ7SCM.js} +2 -2
  7. package/dist/{chunk-6BEZVQ4J.js → chunk-LURRKFWC.js} +4 -4
  8. package/dist/{chunk-OXUBTMJI.js → chunk-ZHLRO2UG.js} +27 -6
  9. package/dist/chunk-ZHLRO2UG.js.map +1 -0
  10. package/dist/{http-YF5A553N.js → http-EO7TNOR3.js} +2 -2
  11. package/dist/{http-LOU7AQMR.js → http-N5AVQDKY.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-4KK4GJJ3.js → replay-D75EK727.js} +3 -3
  23. package/dist/{replay-V2JLZIZH.js → replay-WBXXBPW2.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-OXUBTMJI.js.map +0 -1
  28. /package/dist/{chunk-3ZHBUX5F.js.map → chunk-CJRTXQ2W.js.map} +0 -0
  29. /package/dist/{chunk-OMHL3TGQ.js.map → chunk-IVRZ7SCM.js.map} +0 -0
  30. /package/dist/{chunk-6BEZVQ4J.js.map → chunk-LURRKFWC.js.map} +0 -0
  31. /package/dist/{http-LOU7AQMR.js.map → http-EO7TNOR3.js.map} +0 -0
  32. /package/dist/{http-YF5A553N.js.map → http-N5AVQDKY.js.map} +0 -0
  33. /package/dist/{replay-4KK4GJJ3.js.map → replay-D75EK727.js.map} +0 -0
  34. /package/dist/{replay-V2JLZIZH.js.map → replay-WBXXBPW2.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-FV22KNCA.js";
11
+ } from "./chunk-A3BOXSQY.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-YF5A553N.js.map
24
+ //# sourceMappingURL=http-EO7TNOR3.js.map
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-LH2XCO5O.js";
11
+ } from "./chunk-FKTXL2GZ.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-LOU7AQMR.js.map
23
+ //# sourceMappingURL=http-N5AVQDKY.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.25";
54
+ __version__ = "0.64.27";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -6813,6 +6813,7 @@ function currentCommitRef() {
6813
6813
  init_constants();
6814
6814
 
6815
6815
  // src/datasets.ts
6816
+ init_errors();
6816
6817
  var DEFAULT_RERUN_TIMEOUT_MS = 9e4;
6817
6818
  var RERUN_POLL_INTERVAL_MS = 1e3;
6818
6819
  var TERMINAL_RERUN_STATUSES = /* @__PURE__ */ new Set([
@@ -6869,6 +6870,27 @@ var DatasetsClient = class {
6869
6870
  ...params.description === void 0 ? {} : { description: params.description }
6870
6871
  });
6871
6872
  }
6873
+ /**
6874
+ * Rename a dataset or change its description in place. The dataset keeps its
6875
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
6876
+ * 400 `BitfabError` when the new name is already used by another dataset on
6877
+ * the same trace function, and a 404 when the dataset is not in this
6878
+ * organization.
6879
+ */
6880
+ async update(datasetId, params) {
6881
+ if (params.name === void 0 && params.description === void 0) {
6882
+ throw new BitfabError("Provide name and/or description to update.");
6883
+ }
6884
+ const response = await this.httpClient.request(
6885
+ datasetPath(datasetId),
6886
+ {
6887
+ ...params.name === void 0 ? {} : { name: params.name },
6888
+ ...params.description === void 0 ? {} : { description: params.description }
6889
+ },
6890
+ { method: "PATCH" }
6891
+ );
6892
+ return response.dataset;
6893
+ }
6872
6894
  /**
6873
6895
  * List datasets, scoped to one trace function when `traceFunctionKey` is
6874
6896
  * given and organization-wide otherwise. Fetches all pages automatically.