@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
  replayContextReady,
9
9
  runWithReplayContext,
10
10
  unrefTimer
11
- } from "./chunk-DY52FEEM.js";
11
+ } from "./chunk-HTRMFABJ.js";
12
12
  import {
13
13
  runWithCaptureSuppressed,
14
14
  warnOnce,
@@ -2050,4 +2050,4 @@ export {
2050
2050
  warnJudgeAssertionsDeprecated,
2051
2051
  replay
2052
2052
  };
2053
- //# sourceMappingURL=chunk-EFGQRVMT.js.map
2053
+ //# sourceMappingURL=chunk-MROIROUR.js.map
@@ -17,7 +17,7 @@ import {
17
17
  serializeValue,
18
18
  toJsonSafe,
19
19
  toJsonSafeReport
20
- } from "./chunk-EFGQRVMT.js";
20
+ } from "./chunk-MROIROUR.js";
21
21
  import {
22
22
  BitfabError,
23
23
  CONTENT_OFF_KEY,
@@ -37,7 +37,7 @@ import {
37
37
  readEnv,
38
38
  recordCallerTraceMetadata,
39
39
  retireTraceMetadata
40
- } from "./chunk-DY52FEEM.js";
40
+ } from "./chunk-HTRMFABJ.js";
41
41
  import {
42
42
  __privateAdd,
43
43
  __privateGet,
@@ -1332,6 +1332,27 @@ var DatasetsClient = class {
1332
1332
  ...params.description === void 0 ? {} : { description: params.description }
1333
1333
  });
1334
1334
  }
1335
+ /**
1336
+ * Rename a dataset or change its description in place. The dataset keeps its
1337
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
1338
+ * 400 `BitfabError` when the new name is already used by another dataset on
1339
+ * the same trace function, and a 404 when the dataset is not in this
1340
+ * organization.
1341
+ */
1342
+ async update(datasetId, params) {
1343
+ if (params.name === void 0 && params.description === void 0) {
1344
+ throw new BitfabError("Provide name and/or description to update.");
1345
+ }
1346
+ const response = await this.httpClient.request(
1347
+ datasetPath(datasetId),
1348
+ {
1349
+ ...params.name === void 0 ? {} : { name: params.name },
1350
+ ...params.description === void 0 ? {} : { description: params.description }
1351
+ },
1352
+ { method: "PATCH" }
1353
+ );
1354
+ return response.dataset;
1355
+ }
1335
1356
  /**
1336
1357
  * List datasets, scoped to one trace function when `traceFunctionKey` is
1337
1358
  * given and organization-wide otherwise. Fetches all pages automatically.
@@ -6346,7 +6367,7 @@ var Bitfab = class {
6346
6367
  await runWithSeedContext({ traceId }, async () => target(...args));
6347
6368
  } finally {
6348
6369
  try {
6349
- const { flushTraces: flushTraces2 } = await import("./http-GDTWWWYY.js");
6370
+ const { flushTraces: flushTraces2 } = await import("./http-2ZLYPJ27.js");
6350
6371
  await flushTraces2(3e4);
6351
6372
  } finally {
6352
6373
  unrecorded = activeTraceStates.delete(traceId);
@@ -6405,7 +6426,7 @@ var Bitfab = class {
6405
6426
  `Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
6406
6427
  );
6407
6428
  }
6408
- const { replay: doReplay } = await import("./replay-VXQGVZXM.js");
6429
+ const { replay: doReplay } = await import("./replay-JYRJ443I.js");
6409
6430
  return doReplay(
6410
6431
  this.httpClient,
6411
6432
  this.serviceUrl,
@@ -6751,7 +6772,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
6751
6772
  sessionId: seedCase.sessionId
6752
6773
  })
6753
6774
  );
6754
- const { flushTraces: flushTraces2 } = await import("./http-GDTWWWYY.js");
6775
+ const { flushTraces: flushTraces2 } = await import("./http-2ZLYPJ27.js");
6755
6776
  await flushTraces2(3e4);
6756
6777
  return { pipeline, traceFunctionKey, traceIds };
6757
6778
  }
@@ -6797,4 +6818,4 @@ export {
6797
6818
  reseedFromRegistry,
6798
6819
  seedFromRegistry
6799
6820
  };
6800
- //# sourceMappingURL=chunk-JNVDKPFL.js.map
6821
+ //# sourceMappingURL=chunk-OYTAKT5B.js.map