tensorlake 0.5.11 → 0.5.13

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.
@@ -1 +1 @@
1
- export { a0 as BuildContext, A as CreateSandboxImageOptions, E as DockerfileBuildPlan, F as DockerfileInstruction, V as SandboxImageSource, _ as createSandboxImage, a1 as defaultRegisteredName, a2 as loadDockerfilePlan, a3 as loadImagePlan, a4 as logicalDockerfileLines, a5 as registerImage, a6 as runCreateSandboxImageCli } from './sandbox-image-B8kFWVLi.cjs';
1
+ export { a3 as BuildContext, F as CreateSandboxImageOptions, I as DockerfileBuildPlan, J as DockerfileInstruction, Y as SandboxImageSource, a1 as createSandboxImage, a4 as defaultRegisteredName, a5 as loadDockerfilePlan, a6 as loadImagePlan, a7 as logicalDockerfileLines, a8 as registerImage, a9 as runCreateSandboxImageCli } from './sandbox-image-BepgJl5u.cjs';
@@ -1 +1 @@
1
- export { a0 as BuildContext, A as CreateSandboxImageOptions, E as DockerfileBuildPlan, F as DockerfileInstruction, V as SandboxImageSource, _ as createSandboxImage, a1 as defaultRegisteredName, a2 as loadDockerfilePlan, a3 as loadImagePlan, a4 as logicalDockerfileLines, a5 as registerImage, a6 as runCreateSandboxImageCli } from './sandbox-image-B8kFWVLi.js';
1
+ export { a3 as BuildContext, F as CreateSandboxImageOptions, I as DockerfileBuildPlan, J as DockerfileInstruction, Y as SandboxImageSource, a1 as createSandboxImage, a4 as defaultRegisteredName, a5 as loadDockerfilePlan, a6 as loadImagePlan, a7 as logicalDockerfileLines, a8 as registerImage, a9 as runCreateSandboxImageCli } from './sandbox-image-BepgJl5u.js';
@@ -61,7 +61,7 @@ var SDK_VERSION, API_URL, API_KEY, NAMESPACE, SANDBOX_PROXY_URL, DEFAULT_HTTP_TI
61
61
  var init_defaults = __esm({
62
62
  "src/defaults.ts"() {
63
63
  "use strict";
64
- SDK_VERSION = "0.5.11";
64
+ SDK_VERSION = "0.5.13";
65
65
  API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
66
66
  API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
67
67
  NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
@@ -3893,6 +3893,46 @@ var init_client = __esm({
3893
3893
  );
3894
3894
  return Object.assign(sandboxes, { traceId: raw.traceId });
3895
3895
  }
3896
+ /**
3897
+ * List archived (terminated) sandboxes in the namespace.
3898
+ *
3899
+ * Archived sandboxes are terminated sandboxes parked in the server's
3900
+ * archived sandboxes store until the server-configured TTL expires.
3901
+ */
3902
+ async listArchived(options) {
3903
+ const query = [];
3904
+ if (options?.limit != null) {
3905
+ query.push(`limit=${encodeURIComponent(String(options.limit))}`);
3906
+ }
3907
+ if (options?.cursor != null) {
3908
+ query.push(`cursor=${encodeURIComponent(options.cursor)}`);
3909
+ }
3910
+ if (options?.direction != null) {
3911
+ query.push(`direction=${encodeURIComponent(options.direction)}`);
3912
+ }
3913
+ const suffix = query.length ? `?${query.join("&")}` : "";
3914
+ const raw = await this.http.requestJson("GET", this.path(`archived-sandboxes${suffix}`));
3915
+ const sandboxes = (raw.sandboxes ?? []).map(
3916
+ (s) => fromSnakeKeys(s, "sandboxId")
3917
+ );
3918
+ const response = {
3919
+ sandboxes,
3920
+ prevCursor: raw.prev_cursor,
3921
+ nextCursor: raw.next_cursor
3922
+ };
3923
+ return Object.assign(response, { traceId: raw.traceId });
3924
+ }
3925
+ /** Get a single archived sandbox by id. */
3926
+ async getArchived(sandboxId) {
3927
+ const raw = await this.http.requestJson(
3928
+ "GET",
3929
+ this.path(`archived-sandboxes/${encodeURIComponent(sandboxId)}`)
3930
+ );
3931
+ return Object.assign(
3932
+ fromSnakeKeys(raw, "sandboxId"),
3933
+ { traceId: raw.traceId }
3934
+ );
3935
+ }
3896
3936
  /** Update sandbox properties such as name, exposed ports, and proxy auth settings. */
3897
3937
  async update(sandboxId, options) {
3898
3938
  const body = {};