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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-B8kFWVLi.cjs';
2
- export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as SnapshotWaitCondition, Z as StdinMode, _ as createSandboxImage, $ as dockerfileContent } from './sandbox-image-B8kFWVLi.cjs';
1
+ import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as ListArchivedSandboxesOptions, q as ListArchivedSandboxesResponse, A as ArchivedSandboxInfo, r as SandboxPortAccess, s as SnapshotOptions, t as CreateSnapshotResponse, u as SnapshotAndWaitOptions, v as CreatePoolOptions, w as CreateSandboxPoolResponse, x as SandboxPoolInfo, y as UpdatePoolOptions } from './sandbox-image-BepgJl5u.cjs';
2
+ export { z as CheckpointType, B as ContainerResourcesInfo, E as ContainerState, F as CreateSandboxImageOptions, G as DirectoryEntry, I as DockerfileBuildPlan, J as DockerfileInstruction, K as Image, M as ImageBuildOperation, N as ImageBuildOperationType, N as ImageBuildOperationTypeValue, Q as ImageOptions, T as NetworkConfig, V as OutputMode, W as PoolContainerInfo, X as ProcessStatus, Y as SandboxImageSource, Z as SnapshotStatus, _ as SnapshotType, $ as SnapshotWaitCondition, a0 as StdinMode, a1 as createSandboxImage, a2 as dockerfileContent } from './sandbox-image-BepgJl5u.cjs';
3
3
 
4
4
  /**
5
5
  * The return value of every SDK operation. Carries the W3C `trace_id` so callers
@@ -364,6 +364,15 @@ declare class SandboxClient {
364
364
  get(sandboxId: string): Promise<Traced<SandboxInfo>>;
365
365
  /** List all sandboxes in the namespace. */
366
366
  list(): Promise<Traced<SandboxInfo[]>>;
367
+ /**
368
+ * List archived (terminated) sandboxes in the namespace.
369
+ *
370
+ * Archived sandboxes are terminated sandboxes parked in the server's
371
+ * archived sandboxes store until the server-configured TTL expires.
372
+ */
373
+ listArchived(options?: ListArchivedSandboxesOptions): Promise<Traced<ListArchivedSandboxesResponse>>;
374
+ /** Get a single archived sandbox by id. */
375
+ getArchived(sandboxId: string): Promise<Traced<ArchivedSandboxInfo>>;
367
376
  /** Update sandbox properties such as name, exposed ports, and proxy auth settings. */
368
377
  update(sandboxId: string, options: UpdateSandboxOptions): Promise<Traced<SandboxInfo>>;
369
378
  /** Get the current proxy port settings for a sandbox. */
@@ -710,4 +719,4 @@ declare class RequestExecutionError extends Error {
710
719
  constructor(message: string, functionName?: string);
711
720
  }
712
721
 
713
- export { APIClient, type ApiKeyIntrospection, type ApplicationBuildContext, type ApplicationBuildImageResult, type ApplicationBuildResponse, type ApplicationManifest, type ApplicationSummary, type BinaryPayload, type BuildInfo, type BuildLogEntry, CheckpointOptions, CloudClient, type CloudClientOptions, CommandResult, type ConnectDesktopOptions, ConnectOptions, CreateAndConnectOptions, type CreateApplicationBuildImageRequest, type CreateApplicationBuildRequest, CreatePoolOptions, type CreatePtyOptions, CreatePtySessionOptions, CreateSandboxOptions, CreateSandboxPoolResponse, CreateSandboxResponse, CreateSnapshotResponse, type CreateTunnelOptions, DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, HealthResponse, ListDirectoryResponse, type MouseButton, type NewSecret, OutputEvent, OutputResponse, PoolInUseError, PoolNotFoundError, ProcessInfo, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, PtySessionInfo, RemoteAPIError, type RequestErrorInfo, RequestExecutionError, RequestFailedError, type RequestInput, type RequestMetadata, RequestNotFinishedError, type RequestOutput, RunOptions, Sandbox, SandboxClient, SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, SandboxInfo, SandboxNotFoundError, SandboxOptions, SandboxPoolInfo, SandboxPortAccess, SandboxStatus, type Secret, type SecretsList, type SecretsPagination, SendSignalResponse, SnapshotAndWaitOptions, SnapshotInfo, SnapshotOptions, type StartImageBuildRequest, StartProcessOptions, SuspendResumeOptions, TcpTunnel, type TunnelAddress, UpdatePoolOptions, type UpsertSecretResponse };
722
+ export { APIClient, type ApiKeyIntrospection, type ApplicationBuildContext, type ApplicationBuildImageResult, type ApplicationBuildResponse, type ApplicationManifest, type ApplicationSummary, ArchivedSandboxInfo, type BinaryPayload, type BuildInfo, type BuildLogEntry, CheckpointOptions, CloudClient, type CloudClientOptions, CommandResult, type ConnectDesktopOptions, ConnectOptions, CreateAndConnectOptions, type CreateApplicationBuildImageRequest, type CreateApplicationBuildRequest, CreatePoolOptions, type CreatePtyOptions, CreatePtySessionOptions, CreateSandboxOptions, CreateSandboxPoolResponse, CreateSandboxResponse, CreateSnapshotResponse, type CreateTunnelOptions, DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, HealthResponse, ListArchivedSandboxesOptions, ListArchivedSandboxesResponse, ListDirectoryResponse, type MouseButton, type NewSecret, OutputEvent, OutputResponse, PoolInUseError, PoolNotFoundError, ProcessInfo, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, PtySessionInfo, RemoteAPIError, type RequestErrorInfo, RequestExecutionError, RequestFailedError, type RequestInput, type RequestMetadata, RequestNotFinishedError, type RequestOutput, RunOptions, Sandbox, SandboxClient, SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, SandboxInfo, SandboxNotFoundError, SandboxOptions, SandboxPoolInfo, SandboxPortAccess, SandboxStatus, type Secret, type SecretsList, type SecretsPagination, SendSignalResponse, SnapshotAndWaitOptions, SnapshotInfo, SnapshotOptions, type StartImageBuildRequest, StartProcessOptions, SuspendResumeOptions, TcpTunnel, type TunnelAddress, UpdatePoolOptions, type UpsertSecretResponse };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-B8kFWVLi.js';
2
- export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as SnapshotWaitCondition, Z as StdinMode, _ as createSandboxImage, $ as dockerfileContent } from './sandbox-image-B8kFWVLi.js';
1
+ import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as ListArchivedSandboxesOptions, q as ListArchivedSandboxesResponse, A as ArchivedSandboxInfo, r as SandboxPortAccess, s as SnapshotOptions, t as CreateSnapshotResponse, u as SnapshotAndWaitOptions, v as CreatePoolOptions, w as CreateSandboxPoolResponse, x as SandboxPoolInfo, y as UpdatePoolOptions } from './sandbox-image-BepgJl5u.js';
2
+ export { z as CheckpointType, B as ContainerResourcesInfo, E as ContainerState, F as CreateSandboxImageOptions, G as DirectoryEntry, I as DockerfileBuildPlan, J as DockerfileInstruction, K as Image, M as ImageBuildOperation, N as ImageBuildOperationType, N as ImageBuildOperationTypeValue, Q as ImageOptions, T as NetworkConfig, V as OutputMode, W as PoolContainerInfo, X as ProcessStatus, Y as SandboxImageSource, Z as SnapshotStatus, _ as SnapshotType, $ as SnapshotWaitCondition, a0 as StdinMode, a1 as createSandboxImage, a2 as dockerfileContent } from './sandbox-image-BepgJl5u.js';
3
3
 
4
4
  /**
5
5
  * The return value of every SDK operation. Carries the W3C `trace_id` so callers
@@ -364,6 +364,15 @@ declare class SandboxClient {
364
364
  get(sandboxId: string): Promise<Traced<SandboxInfo>>;
365
365
  /** List all sandboxes in the namespace. */
366
366
  list(): Promise<Traced<SandboxInfo[]>>;
367
+ /**
368
+ * List archived (terminated) sandboxes in the namespace.
369
+ *
370
+ * Archived sandboxes are terminated sandboxes parked in the server's
371
+ * archived sandboxes store until the server-configured TTL expires.
372
+ */
373
+ listArchived(options?: ListArchivedSandboxesOptions): Promise<Traced<ListArchivedSandboxesResponse>>;
374
+ /** Get a single archived sandbox by id. */
375
+ getArchived(sandboxId: string): Promise<Traced<ArchivedSandboxInfo>>;
367
376
  /** Update sandbox properties such as name, exposed ports, and proxy auth settings. */
368
377
  update(sandboxId: string, options: UpdateSandboxOptions): Promise<Traced<SandboxInfo>>;
369
378
  /** Get the current proxy port settings for a sandbox. */
@@ -710,4 +719,4 @@ declare class RequestExecutionError extends Error {
710
719
  constructor(message: string, functionName?: string);
711
720
  }
712
721
 
713
- export { APIClient, type ApiKeyIntrospection, type ApplicationBuildContext, type ApplicationBuildImageResult, type ApplicationBuildResponse, type ApplicationManifest, type ApplicationSummary, type BinaryPayload, type BuildInfo, type BuildLogEntry, CheckpointOptions, CloudClient, type CloudClientOptions, CommandResult, type ConnectDesktopOptions, ConnectOptions, CreateAndConnectOptions, type CreateApplicationBuildImageRequest, type CreateApplicationBuildRequest, CreatePoolOptions, type CreatePtyOptions, CreatePtySessionOptions, CreateSandboxOptions, CreateSandboxPoolResponse, CreateSandboxResponse, CreateSnapshotResponse, type CreateTunnelOptions, DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, HealthResponse, ListDirectoryResponse, type MouseButton, type NewSecret, OutputEvent, OutputResponse, PoolInUseError, PoolNotFoundError, ProcessInfo, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, PtySessionInfo, RemoteAPIError, type RequestErrorInfo, RequestExecutionError, RequestFailedError, type RequestInput, type RequestMetadata, RequestNotFinishedError, type RequestOutput, RunOptions, Sandbox, SandboxClient, SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, SandboxInfo, SandboxNotFoundError, SandboxOptions, SandboxPoolInfo, SandboxPortAccess, SandboxStatus, type Secret, type SecretsList, type SecretsPagination, SendSignalResponse, SnapshotAndWaitOptions, SnapshotInfo, SnapshotOptions, type StartImageBuildRequest, StartProcessOptions, SuspendResumeOptions, TcpTunnel, type TunnelAddress, UpdatePoolOptions, type UpsertSecretResponse };
722
+ export { APIClient, type ApiKeyIntrospection, type ApplicationBuildContext, type ApplicationBuildImageResult, type ApplicationBuildResponse, type ApplicationManifest, type ApplicationSummary, ArchivedSandboxInfo, type BinaryPayload, type BuildInfo, type BuildLogEntry, CheckpointOptions, CloudClient, type CloudClientOptions, CommandResult, type ConnectDesktopOptions, ConnectOptions, CreateAndConnectOptions, type CreateApplicationBuildImageRequest, type CreateApplicationBuildRequest, CreatePoolOptions, type CreatePtyOptions, CreatePtySessionOptions, CreateSandboxOptions, CreateSandboxPoolResponse, CreateSandboxResponse, CreateSnapshotResponse, type CreateTunnelOptions, DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, HealthResponse, ListArchivedSandboxesOptions, ListArchivedSandboxesResponse, ListDirectoryResponse, type MouseButton, type NewSecret, OutputEvent, OutputResponse, PoolInUseError, PoolNotFoundError, ProcessInfo, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, PtySessionInfo, RemoteAPIError, type RequestErrorInfo, RequestExecutionError, RequestFailedError, type RequestInput, type RequestMetadata, RequestNotFinishedError, type RequestOutput, RunOptions, Sandbox, SandboxClient, SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, SandboxInfo, SandboxNotFoundError, SandboxOptions, SandboxPoolInfo, SandboxPortAccess, SandboxStatus, type Secret, type SecretsList, type SecretsPagination, SendSignalResponse, SnapshotAndWaitOptions, SnapshotInfo, SnapshotOptions, type StartImageBuildRequest, StartProcessOptions, SuspendResumeOptions, TcpTunnel, type TunnelAddress, UpdatePoolOptions, type UpsertSecretResponse };
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var SDK_VERSION, API_URL, API_KEY, NAMESPACE, SANDBOX_PROXY_URL, DEFAULT_HTTP_TI
13
13
  var init_defaults = __esm({
14
14
  "src/defaults.ts"() {
15
15
  "use strict";
16
- SDK_VERSION = "0.5.11";
16
+ SDK_VERSION = "0.5.13";
17
17
  API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
18
18
  API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
19
19
  NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
@@ -3955,6 +3955,46 @@ var init_client = __esm({
3955
3955
  );
3956
3956
  return Object.assign(sandboxes, { traceId: raw.traceId });
3957
3957
  }
3958
+ /**
3959
+ * List archived (terminated) sandboxes in the namespace.
3960
+ *
3961
+ * Archived sandboxes are terminated sandboxes parked in the server's
3962
+ * archived sandboxes store until the server-configured TTL expires.
3963
+ */
3964
+ async listArchived(options) {
3965
+ const query = [];
3966
+ if (options?.limit != null) {
3967
+ query.push(`limit=${encodeURIComponent(String(options.limit))}`);
3968
+ }
3969
+ if (options?.cursor != null) {
3970
+ query.push(`cursor=${encodeURIComponent(options.cursor)}`);
3971
+ }
3972
+ if (options?.direction != null) {
3973
+ query.push(`direction=${encodeURIComponent(options.direction)}`);
3974
+ }
3975
+ const suffix = query.length ? `?${query.join("&")}` : "";
3976
+ const raw = await this.http.requestJson("GET", this.path(`archived-sandboxes${suffix}`));
3977
+ const sandboxes = (raw.sandboxes ?? []).map(
3978
+ (s) => fromSnakeKeys(s, "sandboxId")
3979
+ );
3980
+ const response = {
3981
+ sandboxes,
3982
+ prevCursor: raw.prev_cursor,
3983
+ nextCursor: raw.next_cursor
3984
+ };
3985
+ return Object.assign(response, { traceId: raw.traceId });
3986
+ }
3987
+ /** Get a single archived sandbox by id. */
3988
+ async getArchived(sandboxId) {
3989
+ const raw = await this.http.requestJson(
3990
+ "GET",
3991
+ this.path(`archived-sandboxes/${encodeURIComponent(sandboxId)}`)
3992
+ );
3993
+ return Object.assign(
3994
+ fromSnakeKeys(raw, "sandboxId"),
3995
+ { traceId: raw.traceId }
3996
+ );
3997
+ }
3958
3998
  /** Update sandbox properties such as name, exposed ports, and proxy auth settings. */
3959
3999
  async update(sandboxId, options) {
3960
4000
  const body = {};