@tensorlakeai/tensorlake 0.5.158 → 0.5.160
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/README.md +25 -0
- package/dist/applications/index.cjs +12 -2
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.js +12 -2
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +1 -1
- package/dist/function-agent/main.cjs.map +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-agent/main.js.map +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.cjs.map +1 -1
- package/dist/function-executor/main.js +2 -2
- package/dist/function-executor/main.js.map +1 -1
- package/dist/index.cjs +131 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -1
- package/dist/index.d.ts +164 -1
- package/dist/index.js +130 -29
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/runtime/function-executor/manifest.json +7 -7
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
- package/runtime/function-executor/package/npm-shrinkwrap.json +2 -2
- package/runtime/function-executor/package/package.json +1 -1
- package/runtime/typescript-function-runner/manifest.json +7 -7
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +1 -1
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
- package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +26 -26
- package/runtime/typescript-function-runner/package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -86,6 +86,8 @@ interface NativeSandboxClient {
|
|
|
86
86
|
deleteSandbox(sandboxId: string): Promise<string>;
|
|
87
87
|
suspendSandbox(sandboxId: string): Promise<string>;
|
|
88
88
|
resumeSandbox(sandboxId: string): Promise<string>;
|
|
89
|
+
suspendSandboxAndWait(sandboxId: string, waitSec: number): Promise<boolean>;
|
|
90
|
+
resumeSandboxAndWait(sandboxId: string, waitSec: number): Promise<boolean>;
|
|
89
91
|
attachFileSystem(sandboxId: string, fileSystemId: string, mountPath: string, readOnly?: boolean | null, prefetch?: boolean | null, snapshotId?: string | null, owner?: string | null): Promise<TracedJson>;
|
|
90
92
|
detachFileSystem(sandboxId: string, mountPath: string): Promise<TracedJson>;
|
|
91
93
|
createSnapshot(sandboxId: string, snapshotType?: string | null): Promise<TracedJson>;
|
|
@@ -308,6 +310,8 @@ interface ClaimSandboxOptions {
|
|
|
308
310
|
fileSystems?: FileSystemMount[];
|
|
309
311
|
}
|
|
310
312
|
interface CreateSandboxOptions {
|
|
313
|
+
/** Allow proxy traffic to wake a suspended sandbox (default true). False requires a named sandbox. */
|
|
314
|
+
autoResume?: boolean;
|
|
311
315
|
/** Optional sandbox image name. GPU sandboxes require a CAS image; when omitted with a GPU request, Tensorlake uses the server's configured GPU default. */
|
|
312
316
|
image?: string;
|
|
313
317
|
/** CPU count. Defaults to 1 for fresh creates; snapshot restores inherit it when omitted. */
|
|
@@ -328,6 +332,10 @@ interface CreateSandboxOptions {
|
|
|
328
332
|
allowOut?: string[];
|
|
329
333
|
denyOut?: string[];
|
|
330
334
|
snapshotId?: string;
|
|
335
|
+
/** Whether exposed user ports are reachable without Tensorlake auth. Defaults to false for fresh creates; snapshot restores inherit it when omitted. */
|
|
336
|
+
allowUnauthenticatedAccess?: boolean;
|
|
337
|
+
/** User ports routable through the sandbox proxy. Port 9501 is reserved. Snapshot restores inherit ports when omitted; [] clears them. Does not enable unauthenticated access. */
|
|
338
|
+
exposedPorts?: number[];
|
|
331
339
|
/** Optional name for the sandbox. Named sandboxes support suspend/resume. When absent the sandbox is ephemeral. */
|
|
332
340
|
name?: string;
|
|
333
341
|
/** File systems to mount on fresh creation or warm-pool claim, each at its own absolute, unique guest mount path. */
|
|
@@ -377,6 +385,8 @@ interface SandboxResourceResizeInfo {
|
|
|
377
385
|
}
|
|
378
386
|
/** Wait options apply only to resource updates and are ignored for other properties. */
|
|
379
387
|
interface UpdateSandboxOptions extends ResourceResizeWaitOptions {
|
|
388
|
+
/** Change wake-on-traffic policy without waking or suspending the sandbox. Omit to keep it unchanged; false requires a named sandbox. Cannot be combined with resource resizing. */
|
|
389
|
+
autoResume?: boolean;
|
|
380
390
|
/** Whole live vCPU target; omitted retains the current allocation. */
|
|
381
391
|
cpus?: number;
|
|
382
392
|
/** Memory target in MiB, with the same units as create; never rounded by the SDK. */
|
|
@@ -472,6 +482,8 @@ interface CopySandboxResponse {
|
|
|
472
482
|
sandboxes: CopiedSandboxResponse[];
|
|
473
483
|
}
|
|
474
484
|
interface SandboxInfo {
|
|
485
|
+
/** Whether proxy traffic may wake this sandbox; defaults to true on older servers. */
|
|
486
|
+
autoResume: boolean;
|
|
475
487
|
/**
|
|
476
488
|
* The runtime the server chose for this sandbox: `firecracker`,
|
|
477
489
|
* `cloud-hypervisor` or `gvisor`. Informational only; it is never sent and
|
|
@@ -1581,6 +1593,10 @@ declare class SandboxClient {
|
|
|
1581
1593
|
* cannot. By default blocks until the sandbox is fully `Suspended`. Pass
|
|
1582
1594
|
* `{ wait: false }` to return immediately after the request is sent
|
|
1583
1595
|
* (fire-and-return); the server processes the suspend asynchronously.
|
|
1596
|
+
*
|
|
1597
|
+
* The server answers as soon as the suspend completes. When its wait runs
|
|
1598
|
+
* out first, or the server does not support waiting, the rest of `timeout`
|
|
1599
|
+
* is spent polling every `pollInterval` seconds.
|
|
1584
1600
|
*/
|
|
1585
1601
|
suspend(sandboxId: string, options?: SuspendResumeOptions): Promise<void>;
|
|
1586
1602
|
/**
|
|
@@ -1589,8 +1605,18 @@ declare class SandboxClient {
|
|
|
1589
1605
|
* By default blocks until the sandbox is `Running` and routable. Pass
|
|
1590
1606
|
* `{ wait: false }` to return immediately after the request is sent
|
|
1591
1607
|
* (fire-and-return); the server processes the resume asynchronously.
|
|
1608
|
+
*
|
|
1609
|
+
* The server answers as soon as the sandbox runs. When its wait runs out
|
|
1610
|
+
* first, or the server does not support waiting, the rest of `timeout` is
|
|
1611
|
+
* spent polling every `pollInterval` seconds.
|
|
1592
1612
|
*/
|
|
1593
1613
|
resume(sandboxId: string, options?: SuspendResumeOptions): Promise<void>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Send a suspend or resume. With `wait`, the server waits for `target` and
|
|
1616
|
+
* answers whether it was reached; when its wait runs out first, the rest of
|
|
1617
|
+
* the timeout is spent polling.
|
|
1618
|
+
*/
|
|
1619
|
+
private changeLifecycle;
|
|
1594
1620
|
/**
|
|
1595
1621
|
* Attach a registered file system to a running sandbox at `mountPath`.
|
|
1596
1622
|
*
|
|
@@ -2052,6 +2078,141 @@ declare class RepositoryClient {
|
|
|
2052
2078
|
private tracedJson;
|
|
2053
2079
|
}
|
|
2054
2080
|
|
|
2081
|
+
/** How far back to read instead of the current billing period. */
|
|
2082
|
+
type UsageLookback = "1d" | "7d" | "30d";
|
|
2083
|
+
interface UsageClientOptions {
|
|
2084
|
+
/** Tensorlake API key. Defaults to `TENSORLAKE_API_KEY`. */
|
|
2085
|
+
apiKey?: string;
|
|
2086
|
+
/** Organization to read. Defaults to `TENSORLAKE_ORGANIZATION_ID`. */
|
|
2087
|
+
organizationId?: string;
|
|
2088
|
+
/** Cloud API URL. Defaults to `TENSORLAKE_API_URL`. */
|
|
2089
|
+
apiUrl?: string;
|
|
2090
|
+
}
|
|
2091
|
+
interface UsageReadOptions {
|
|
2092
|
+
/** Read the last `1d`, `7d` or `30d` instead of the current billing period. */
|
|
2093
|
+
last?: UsageLookback;
|
|
2094
|
+
}
|
|
2095
|
+
/** Metered usage, excluding subscription fees and tax. */
|
|
2096
|
+
interface UsageCharge {
|
|
2097
|
+
currency: string;
|
|
2098
|
+
amountMinor: string;
|
|
2099
|
+
resources: {
|
|
2100
|
+
cpuAmountMinor: string;
|
|
2101
|
+
memoryAmountMinor: string;
|
|
2102
|
+
sandboxStorageAmountMinor: string;
|
|
2103
|
+
snapshotStorageAmountMinor: string;
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
/** Plan allowance consumption, valued at the overage rate. */
|
|
2107
|
+
interface IncludedUsage {
|
|
2108
|
+
currency: string;
|
|
2109
|
+
includedAmountMinor: string;
|
|
2110
|
+
periodUsedAmountMinor: string;
|
|
2111
|
+
rangeUsageAmountMinor: string;
|
|
2112
|
+
periodStart: string;
|
|
2113
|
+
periodEnd: string;
|
|
2114
|
+
}
|
|
2115
|
+
/** Organization usage totals for a window. */
|
|
2116
|
+
interface UsageSummary {
|
|
2117
|
+
windowStart: string;
|
|
2118
|
+
windowEnd: string;
|
|
2119
|
+
computeUnits: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* `null` when the organization has no metered price, and on plans with
|
|
2122
|
+
* included usage (Pro, Enterprise) when the window is not inside the current
|
|
2123
|
+
* billing period. Use `usageValue` then.
|
|
2124
|
+
*/
|
|
2125
|
+
usageCharge: UsageCharge | null;
|
|
2126
|
+
includedUsage: IncludedUsage | null;
|
|
2127
|
+
/**
|
|
2128
|
+
* Usage valued at the plan's overage rate, before included usage. Set for
|
|
2129
|
+
* every window on plans with included usage, `null` otherwise.
|
|
2130
|
+
*/
|
|
2131
|
+
usageValue: UsageCharge | null;
|
|
2132
|
+
runningSandboxes: number;
|
|
2133
|
+
projects: Array<{
|
|
2134
|
+
projectId: string;
|
|
2135
|
+
projectName: string;
|
|
2136
|
+
computeUnits: string;
|
|
2137
|
+
}>;
|
|
2138
|
+
}
|
|
2139
|
+
interface ResourceUsage {
|
|
2140
|
+
quantity: string;
|
|
2141
|
+
/** `vCPU-hour`, `GiB-hour` or `GiB`. */
|
|
2142
|
+
unit: string;
|
|
2143
|
+
attributedAmountMinor: string | null;
|
|
2144
|
+
usageValueAmountMinor: string | null;
|
|
2145
|
+
}
|
|
2146
|
+
/** Usage of one sandbox and its share of the organization's usage charge. */
|
|
2147
|
+
interface SandboxUsage {
|
|
2148
|
+
sandboxId: string;
|
|
2149
|
+
/** `null` for usage whose project no longer exists. */
|
|
2150
|
+
project: {
|
|
2151
|
+
projectId: string;
|
|
2152
|
+
projectName: string;
|
|
2153
|
+
} | null;
|
|
2154
|
+
attributedAmountMinor: string | null;
|
|
2155
|
+
usageValueAmountMinor: string | null;
|
|
2156
|
+
resources: {
|
|
2157
|
+
cpu: ResourceUsage;
|
|
2158
|
+
memory: ResourceUsage;
|
|
2159
|
+
sandboxStorage: ResourceUsage;
|
|
2160
|
+
snapshotStorage: ResourceUsage;
|
|
2161
|
+
networkEgress: ResourceUsage;
|
|
2162
|
+
};
|
|
2163
|
+
}
|
|
2164
|
+
/** A share of the organization's pooled usage charge. */
|
|
2165
|
+
interface AttributedUsageCharge {
|
|
2166
|
+
currency: string;
|
|
2167
|
+
amountMinor: string;
|
|
2168
|
+
/** `invoice` for a finalized invoice, `current_price_estimate` otherwise. */
|
|
2169
|
+
basis: "invoice" | "current_price_estimate" | "unknown";
|
|
2170
|
+
}
|
|
2171
|
+
/** Every sandbox of a window with its usage and attributed charge. */
|
|
2172
|
+
interface SandboxUsageExport {
|
|
2173
|
+
windowStart: string;
|
|
2174
|
+
windowEnd: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* The organization's usage charge; the sandboxes' attributed amounts add up
|
|
2177
|
+
* to it exactly. `null` when the organization has no metered price, and on
|
|
2178
|
+
* plans with included usage when the window is not inside the current
|
|
2179
|
+
* billing period.
|
|
2180
|
+
*/
|
|
2181
|
+
attributedUsageCharge: AttributedUsageCharge | null;
|
|
2182
|
+
includedUsage: IncludedUsage | null;
|
|
2183
|
+
/**
|
|
2184
|
+
* The organization's usage at the plan's overage rate; the sandboxes' usage
|
|
2185
|
+
* values add up to it exactly. Set for every window on plans with included
|
|
2186
|
+
* usage.
|
|
2187
|
+
*/
|
|
2188
|
+
attributedUsageValue: {
|
|
2189
|
+
currency: string;
|
|
2190
|
+
amountMinor: string;
|
|
2191
|
+
} | null;
|
|
2192
|
+
sandboxes: SandboxUsage[];
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Read an organization's sandbox usage and cost.
|
|
2196
|
+
*
|
|
2197
|
+
* Every read covers the current billing period, or the last `1d`, `7d` or
|
|
2198
|
+
* `30d` when `last` is set. Requests, windows and response parsing are done
|
|
2199
|
+
* by the Rust SDK, the same as for Python and the CLI.
|
|
2200
|
+
*/
|
|
2201
|
+
declare class UsageClient {
|
|
2202
|
+
private readonly native;
|
|
2203
|
+
constructor(options?: UsageClientOptions);
|
|
2204
|
+
close(): void;
|
|
2205
|
+
/** Organization usage totals for the window. */
|
|
2206
|
+
summary(options?: UsageReadOptions): Promise<UsageSummary>;
|
|
2207
|
+
/**
|
|
2208
|
+
* Usage and attributed cost of every sandbox that ran in the window.
|
|
2209
|
+
*
|
|
2210
|
+
* The server computes the attribution once and returns every sandbox in one
|
|
2211
|
+
* response.
|
|
2212
|
+
*/
|
|
2213
|
+
sandboxes(options?: UsageReadOptions): Promise<SandboxUsageExport>;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2055
2216
|
/**
|
|
2056
2217
|
* Build operations for CAS sandbox images.
|
|
2057
2218
|
*
|
|
@@ -2798,6 +2959,8 @@ declare class RemoteAPIError extends SandboxError {
|
|
|
2798
2959
|
readonly statusCode: number;
|
|
2799
2960
|
/** Original response body, retained for compatibility and diagnostics. */
|
|
2800
2961
|
readonly responseMessage: string;
|
|
2962
|
+
/** Machine-readable API error code, including proxy policy failures. */
|
|
2963
|
+
readonly code?: string;
|
|
2801
2964
|
readonly sandboxId?: string;
|
|
2802
2965
|
/** Server reason, including unknown future reasons. */
|
|
2803
2966
|
readonly reason?: string;
|
|
@@ -2819,4 +2982,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2819
2982
|
constructor(message: string, functionName?: string);
|
|
2820
2983
|
}
|
|
2821
2984
|
|
|
2822
|
-
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CancelImageBuildOutcome, type CancelImageBuildSelector, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, CommandExitReason, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, Image, ImageBuildCancellationOutcome, ImageBuildCancelledError, ImageBuildError, ImageBuildErrorCode, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildKind, ImageBuildNotFoundError, ImageBuildPhase, type ImageBuildResult, ImageBuildStatus, ImageBuildTimeoutError, type ImageBuildWaitOptions, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, PendingSandbox, type PendingSandboxRecord, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, type ReadyOptions, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, ResizeErrorReason, ResizeStatus, type ResourceResizeWaitOptions, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, SandboxPending, SandboxPendingReason, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxResizeError, type SandboxResourceResizeInfo, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, type StartImageBuildOptions, StartImageBuildRequest, type StartImageImportOptions, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TERMINATION_REASON_CANCELLED, TERMINATION_REASON_NO_CAPACITY, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, type UpdateSandboxOptions, UpsertSecretResponse, cancelImageBuild, createFileSystem, deleteFileSystem, getImageBuild, isSandboxPending, listFileSystems, sandboxUrlFromIngressEndpoint, startImageBuild, startImageImport, waitImageBuild };
|
|
2985
|
+
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, type AttributedUsageCharge, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CancelImageBuildOutcome, type CancelImageBuildSelector, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, CommandExitReason, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, Image, ImageBuildCancellationOutcome, ImageBuildCancelledError, ImageBuildError, ImageBuildErrorCode, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildKind, ImageBuildNotFoundError, ImageBuildPhase, type ImageBuildResult, ImageBuildStatus, ImageBuildTimeoutError, type ImageBuildWaitOptions, type IncludedUsage, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, PendingSandbox, type PendingSandboxRecord, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, type ReadyOptions, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, ResizeErrorReason, ResizeStatus, type ResourceResizeWaitOptions, type ResourceUsage, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, SandboxPending, SandboxPendingReason, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxResizeError, type SandboxResourceResizeInfo, SandboxStatus, SandboxTemplate, type SandboxUsage, type SandboxUsageExport, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, type StartImageBuildOptions, StartImageBuildRequest, type StartImageImportOptions, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TERMINATION_REASON_CANCELLED, TERMINATION_REASON_NO_CAPACITY, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, type UpdateSandboxOptions, UpsertSecretResponse, type UsageCharge, UsageClient, type UsageClientOptions, type UsageLookback, type UsageReadOptions, type UsageSummary, cancelImageBuild, createFileSystem, deleteFileSystem, getImageBuild, isSandboxPending, listFileSystems, sandboxUrlFromIngressEndpoint, startImageBuild, startImageImport, waitImageBuild };
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ interface NativeSandboxClient {
|
|
|
86
86
|
deleteSandbox(sandboxId: string): Promise<string>;
|
|
87
87
|
suspendSandbox(sandboxId: string): Promise<string>;
|
|
88
88
|
resumeSandbox(sandboxId: string): Promise<string>;
|
|
89
|
+
suspendSandboxAndWait(sandboxId: string, waitSec: number): Promise<boolean>;
|
|
90
|
+
resumeSandboxAndWait(sandboxId: string, waitSec: number): Promise<boolean>;
|
|
89
91
|
attachFileSystem(sandboxId: string, fileSystemId: string, mountPath: string, readOnly?: boolean | null, prefetch?: boolean | null, snapshotId?: string | null, owner?: string | null): Promise<TracedJson>;
|
|
90
92
|
detachFileSystem(sandboxId: string, mountPath: string): Promise<TracedJson>;
|
|
91
93
|
createSnapshot(sandboxId: string, snapshotType?: string | null): Promise<TracedJson>;
|
|
@@ -308,6 +310,8 @@ interface ClaimSandboxOptions {
|
|
|
308
310
|
fileSystems?: FileSystemMount[];
|
|
309
311
|
}
|
|
310
312
|
interface CreateSandboxOptions {
|
|
313
|
+
/** Allow proxy traffic to wake a suspended sandbox (default true). False requires a named sandbox. */
|
|
314
|
+
autoResume?: boolean;
|
|
311
315
|
/** Optional sandbox image name. GPU sandboxes require a CAS image; when omitted with a GPU request, Tensorlake uses the server's configured GPU default. */
|
|
312
316
|
image?: string;
|
|
313
317
|
/** CPU count. Defaults to 1 for fresh creates; snapshot restores inherit it when omitted. */
|
|
@@ -328,6 +332,10 @@ interface CreateSandboxOptions {
|
|
|
328
332
|
allowOut?: string[];
|
|
329
333
|
denyOut?: string[];
|
|
330
334
|
snapshotId?: string;
|
|
335
|
+
/** Whether exposed user ports are reachable without Tensorlake auth. Defaults to false for fresh creates; snapshot restores inherit it when omitted. */
|
|
336
|
+
allowUnauthenticatedAccess?: boolean;
|
|
337
|
+
/** User ports routable through the sandbox proxy. Port 9501 is reserved. Snapshot restores inherit ports when omitted; [] clears them. Does not enable unauthenticated access. */
|
|
338
|
+
exposedPorts?: number[];
|
|
331
339
|
/** Optional name for the sandbox. Named sandboxes support suspend/resume. When absent the sandbox is ephemeral. */
|
|
332
340
|
name?: string;
|
|
333
341
|
/** File systems to mount on fresh creation or warm-pool claim, each at its own absolute, unique guest mount path. */
|
|
@@ -377,6 +385,8 @@ interface SandboxResourceResizeInfo {
|
|
|
377
385
|
}
|
|
378
386
|
/** Wait options apply only to resource updates and are ignored for other properties. */
|
|
379
387
|
interface UpdateSandboxOptions extends ResourceResizeWaitOptions {
|
|
388
|
+
/** Change wake-on-traffic policy without waking or suspending the sandbox. Omit to keep it unchanged; false requires a named sandbox. Cannot be combined with resource resizing. */
|
|
389
|
+
autoResume?: boolean;
|
|
380
390
|
/** Whole live vCPU target; omitted retains the current allocation. */
|
|
381
391
|
cpus?: number;
|
|
382
392
|
/** Memory target in MiB, with the same units as create; never rounded by the SDK. */
|
|
@@ -472,6 +482,8 @@ interface CopySandboxResponse {
|
|
|
472
482
|
sandboxes: CopiedSandboxResponse[];
|
|
473
483
|
}
|
|
474
484
|
interface SandboxInfo {
|
|
485
|
+
/** Whether proxy traffic may wake this sandbox; defaults to true on older servers. */
|
|
486
|
+
autoResume: boolean;
|
|
475
487
|
/**
|
|
476
488
|
* The runtime the server chose for this sandbox: `firecracker`,
|
|
477
489
|
* `cloud-hypervisor` or `gvisor`. Informational only; it is never sent and
|
|
@@ -1581,6 +1593,10 @@ declare class SandboxClient {
|
|
|
1581
1593
|
* cannot. By default blocks until the sandbox is fully `Suspended`. Pass
|
|
1582
1594
|
* `{ wait: false }` to return immediately after the request is sent
|
|
1583
1595
|
* (fire-and-return); the server processes the suspend asynchronously.
|
|
1596
|
+
*
|
|
1597
|
+
* The server answers as soon as the suspend completes. When its wait runs
|
|
1598
|
+
* out first, or the server does not support waiting, the rest of `timeout`
|
|
1599
|
+
* is spent polling every `pollInterval` seconds.
|
|
1584
1600
|
*/
|
|
1585
1601
|
suspend(sandboxId: string, options?: SuspendResumeOptions): Promise<void>;
|
|
1586
1602
|
/**
|
|
@@ -1589,8 +1605,18 @@ declare class SandboxClient {
|
|
|
1589
1605
|
* By default blocks until the sandbox is `Running` and routable. Pass
|
|
1590
1606
|
* `{ wait: false }` to return immediately after the request is sent
|
|
1591
1607
|
* (fire-and-return); the server processes the resume asynchronously.
|
|
1608
|
+
*
|
|
1609
|
+
* The server answers as soon as the sandbox runs. When its wait runs out
|
|
1610
|
+
* first, or the server does not support waiting, the rest of `timeout` is
|
|
1611
|
+
* spent polling every `pollInterval` seconds.
|
|
1592
1612
|
*/
|
|
1593
1613
|
resume(sandboxId: string, options?: SuspendResumeOptions): Promise<void>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Send a suspend or resume. With `wait`, the server waits for `target` and
|
|
1616
|
+
* answers whether it was reached; when its wait runs out first, the rest of
|
|
1617
|
+
* the timeout is spent polling.
|
|
1618
|
+
*/
|
|
1619
|
+
private changeLifecycle;
|
|
1594
1620
|
/**
|
|
1595
1621
|
* Attach a registered file system to a running sandbox at `mountPath`.
|
|
1596
1622
|
*
|
|
@@ -2052,6 +2078,141 @@ declare class RepositoryClient {
|
|
|
2052
2078
|
private tracedJson;
|
|
2053
2079
|
}
|
|
2054
2080
|
|
|
2081
|
+
/** How far back to read instead of the current billing period. */
|
|
2082
|
+
type UsageLookback = "1d" | "7d" | "30d";
|
|
2083
|
+
interface UsageClientOptions {
|
|
2084
|
+
/** Tensorlake API key. Defaults to `TENSORLAKE_API_KEY`. */
|
|
2085
|
+
apiKey?: string;
|
|
2086
|
+
/** Organization to read. Defaults to `TENSORLAKE_ORGANIZATION_ID`. */
|
|
2087
|
+
organizationId?: string;
|
|
2088
|
+
/** Cloud API URL. Defaults to `TENSORLAKE_API_URL`. */
|
|
2089
|
+
apiUrl?: string;
|
|
2090
|
+
}
|
|
2091
|
+
interface UsageReadOptions {
|
|
2092
|
+
/** Read the last `1d`, `7d` or `30d` instead of the current billing period. */
|
|
2093
|
+
last?: UsageLookback;
|
|
2094
|
+
}
|
|
2095
|
+
/** Metered usage, excluding subscription fees and tax. */
|
|
2096
|
+
interface UsageCharge {
|
|
2097
|
+
currency: string;
|
|
2098
|
+
amountMinor: string;
|
|
2099
|
+
resources: {
|
|
2100
|
+
cpuAmountMinor: string;
|
|
2101
|
+
memoryAmountMinor: string;
|
|
2102
|
+
sandboxStorageAmountMinor: string;
|
|
2103
|
+
snapshotStorageAmountMinor: string;
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
/** Plan allowance consumption, valued at the overage rate. */
|
|
2107
|
+
interface IncludedUsage {
|
|
2108
|
+
currency: string;
|
|
2109
|
+
includedAmountMinor: string;
|
|
2110
|
+
periodUsedAmountMinor: string;
|
|
2111
|
+
rangeUsageAmountMinor: string;
|
|
2112
|
+
periodStart: string;
|
|
2113
|
+
periodEnd: string;
|
|
2114
|
+
}
|
|
2115
|
+
/** Organization usage totals for a window. */
|
|
2116
|
+
interface UsageSummary {
|
|
2117
|
+
windowStart: string;
|
|
2118
|
+
windowEnd: string;
|
|
2119
|
+
computeUnits: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* `null` when the organization has no metered price, and on plans with
|
|
2122
|
+
* included usage (Pro, Enterprise) when the window is not inside the current
|
|
2123
|
+
* billing period. Use `usageValue` then.
|
|
2124
|
+
*/
|
|
2125
|
+
usageCharge: UsageCharge | null;
|
|
2126
|
+
includedUsage: IncludedUsage | null;
|
|
2127
|
+
/**
|
|
2128
|
+
* Usage valued at the plan's overage rate, before included usage. Set for
|
|
2129
|
+
* every window on plans with included usage, `null` otherwise.
|
|
2130
|
+
*/
|
|
2131
|
+
usageValue: UsageCharge | null;
|
|
2132
|
+
runningSandboxes: number;
|
|
2133
|
+
projects: Array<{
|
|
2134
|
+
projectId: string;
|
|
2135
|
+
projectName: string;
|
|
2136
|
+
computeUnits: string;
|
|
2137
|
+
}>;
|
|
2138
|
+
}
|
|
2139
|
+
interface ResourceUsage {
|
|
2140
|
+
quantity: string;
|
|
2141
|
+
/** `vCPU-hour`, `GiB-hour` or `GiB`. */
|
|
2142
|
+
unit: string;
|
|
2143
|
+
attributedAmountMinor: string | null;
|
|
2144
|
+
usageValueAmountMinor: string | null;
|
|
2145
|
+
}
|
|
2146
|
+
/** Usage of one sandbox and its share of the organization's usage charge. */
|
|
2147
|
+
interface SandboxUsage {
|
|
2148
|
+
sandboxId: string;
|
|
2149
|
+
/** `null` for usage whose project no longer exists. */
|
|
2150
|
+
project: {
|
|
2151
|
+
projectId: string;
|
|
2152
|
+
projectName: string;
|
|
2153
|
+
} | null;
|
|
2154
|
+
attributedAmountMinor: string | null;
|
|
2155
|
+
usageValueAmountMinor: string | null;
|
|
2156
|
+
resources: {
|
|
2157
|
+
cpu: ResourceUsage;
|
|
2158
|
+
memory: ResourceUsage;
|
|
2159
|
+
sandboxStorage: ResourceUsage;
|
|
2160
|
+
snapshotStorage: ResourceUsage;
|
|
2161
|
+
networkEgress: ResourceUsage;
|
|
2162
|
+
};
|
|
2163
|
+
}
|
|
2164
|
+
/** A share of the organization's pooled usage charge. */
|
|
2165
|
+
interface AttributedUsageCharge {
|
|
2166
|
+
currency: string;
|
|
2167
|
+
amountMinor: string;
|
|
2168
|
+
/** `invoice` for a finalized invoice, `current_price_estimate` otherwise. */
|
|
2169
|
+
basis: "invoice" | "current_price_estimate" | "unknown";
|
|
2170
|
+
}
|
|
2171
|
+
/** Every sandbox of a window with its usage and attributed charge. */
|
|
2172
|
+
interface SandboxUsageExport {
|
|
2173
|
+
windowStart: string;
|
|
2174
|
+
windowEnd: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* The organization's usage charge; the sandboxes' attributed amounts add up
|
|
2177
|
+
* to it exactly. `null` when the organization has no metered price, and on
|
|
2178
|
+
* plans with included usage when the window is not inside the current
|
|
2179
|
+
* billing period.
|
|
2180
|
+
*/
|
|
2181
|
+
attributedUsageCharge: AttributedUsageCharge | null;
|
|
2182
|
+
includedUsage: IncludedUsage | null;
|
|
2183
|
+
/**
|
|
2184
|
+
* The organization's usage at the plan's overage rate; the sandboxes' usage
|
|
2185
|
+
* values add up to it exactly. Set for every window on plans with included
|
|
2186
|
+
* usage.
|
|
2187
|
+
*/
|
|
2188
|
+
attributedUsageValue: {
|
|
2189
|
+
currency: string;
|
|
2190
|
+
amountMinor: string;
|
|
2191
|
+
} | null;
|
|
2192
|
+
sandboxes: SandboxUsage[];
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Read an organization's sandbox usage and cost.
|
|
2196
|
+
*
|
|
2197
|
+
* Every read covers the current billing period, or the last `1d`, `7d` or
|
|
2198
|
+
* `30d` when `last` is set. Requests, windows and response parsing are done
|
|
2199
|
+
* by the Rust SDK, the same as for Python and the CLI.
|
|
2200
|
+
*/
|
|
2201
|
+
declare class UsageClient {
|
|
2202
|
+
private readonly native;
|
|
2203
|
+
constructor(options?: UsageClientOptions);
|
|
2204
|
+
close(): void;
|
|
2205
|
+
/** Organization usage totals for the window. */
|
|
2206
|
+
summary(options?: UsageReadOptions): Promise<UsageSummary>;
|
|
2207
|
+
/**
|
|
2208
|
+
* Usage and attributed cost of every sandbox that ran in the window.
|
|
2209
|
+
*
|
|
2210
|
+
* The server computes the attribution once and returns every sandbox in one
|
|
2211
|
+
* response.
|
|
2212
|
+
*/
|
|
2213
|
+
sandboxes(options?: UsageReadOptions): Promise<SandboxUsageExport>;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2055
2216
|
/**
|
|
2056
2217
|
* Build operations for CAS sandbox images.
|
|
2057
2218
|
*
|
|
@@ -2798,6 +2959,8 @@ declare class RemoteAPIError extends SandboxError {
|
|
|
2798
2959
|
readonly statusCode: number;
|
|
2799
2960
|
/** Original response body, retained for compatibility and diagnostics. */
|
|
2800
2961
|
readonly responseMessage: string;
|
|
2962
|
+
/** Machine-readable API error code, including proxy policy failures. */
|
|
2963
|
+
readonly code?: string;
|
|
2801
2964
|
readonly sandboxId?: string;
|
|
2802
2965
|
/** Server reason, including unknown future reasons. */
|
|
2803
2966
|
readonly reason?: string;
|
|
@@ -2819,4 +2982,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2819
2982
|
constructor(message: string, functionName?: string);
|
|
2820
2983
|
}
|
|
2821
2984
|
|
|
2822
|
-
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CancelImageBuildOutcome, type CancelImageBuildSelector, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, CommandExitReason, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, Image, ImageBuildCancellationOutcome, ImageBuildCancelledError, ImageBuildError, ImageBuildErrorCode, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildKind, ImageBuildNotFoundError, ImageBuildPhase, type ImageBuildResult, ImageBuildStatus, ImageBuildTimeoutError, type ImageBuildWaitOptions, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, PendingSandbox, type PendingSandboxRecord, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, type ReadyOptions, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, ResizeErrorReason, ResizeStatus, type ResourceResizeWaitOptions, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, SandboxPending, SandboxPendingReason, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxResizeError, type SandboxResourceResizeInfo, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, type StartImageBuildOptions, StartImageBuildRequest, type StartImageImportOptions, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TERMINATION_REASON_CANCELLED, TERMINATION_REASON_NO_CAPACITY, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, type UpdateSandboxOptions, UpsertSecretResponse, cancelImageBuild, createFileSystem, deleteFileSystem, getImageBuild, isSandboxPending, listFileSystems, sandboxUrlFromIngressEndpoint, startImageBuild, startImageImport, waitImageBuild };
|
|
2985
|
+
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, type AttributedUsageCharge, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CancelImageBuildOutcome, type CancelImageBuildSelector, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, CommandExitReason, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, Image, ImageBuildCancellationOutcome, ImageBuildCancelledError, ImageBuildError, ImageBuildErrorCode, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildKind, ImageBuildNotFoundError, ImageBuildPhase, type ImageBuildResult, ImageBuildStatus, ImageBuildTimeoutError, type ImageBuildWaitOptions, type IncludedUsage, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, PendingSandbox, type PendingSandboxRecord, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, type ReadyOptions, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, ResizeErrorReason, ResizeStatus, type ResourceResizeWaitOptions, type ResourceUsage, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, SandboxPending, SandboxPendingReason, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxResizeError, type SandboxResourceResizeInfo, SandboxStatus, SandboxTemplate, type SandboxUsage, type SandboxUsageExport, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, type StartImageBuildOptions, StartImageBuildRequest, type StartImageImportOptions, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TERMINATION_REASON_CANCELLED, TERMINATION_REASON_NO_CAPACITY, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, type UpdateSandboxOptions, UpsertSecretResponse, type UsageCharge, UsageClient, type UsageClientOptions, type UsageLookback, type UsageReadOptions, type UsageSummary, cancelImageBuild, createFileSystem, deleteFileSystem, getImageBuild, isSandboxPending, listFileSystems, sandboxUrlFromIngressEndpoint, startImageBuild, startImageImport, waitImageBuild };
|