@tensorlakeai/tensorlake 0.5.153 → 0.5.156
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/applications/index.cjs +260 -71
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.d.cts +3 -3
- package/dist/applications/index.d.ts +3 -3
- package/dist/applications/index.js +260 -71
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.js +2 -2
- package/dist/index.cjs +344 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -38
- package/dist/index.d.ts +95 -38
- package/dist/index.js +339 -106
- package/dist/index.js.map +1 -1
- package/dist/{remote-B3vn4tt1.d.cts → remote-CEs4GFGP.d.cts} +1 -1
- package/dist/{remote-DqBUuciu.d.ts → remote-DYBXCTNC.d.ts} +1 -1
- package/dist/{sandbox-image-BMiFlzAs.d.cts → sandbox-image-C2GTVnx3.d.cts} +99 -52
- package/dist/{sandbox-image-BMiFlzAs.d.ts → sandbox-image-C2GTVnx3.d.ts} +99 -52
- package/dist/sandbox-image.cjs +248 -61
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.d.cts +1 -1
- package/dist/sandbox-image.d.ts +1 -1
- package/dist/sandbox-image.js +248 -61
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +7 -7
- package/runtime/function-executor/manifest.json +5 -5
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- 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 +5 -5
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-
|
|
3
|
-
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-
|
|
1
|
+
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-C2GTVnx3.cjs';
|
|
2
|
+
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-C2GTVnx3.cjs';
|
|
3
|
+
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-CEs4GFGP.cjs';
|
|
4
4
|
|
|
5
5
|
/** An SDK result paired with its server-side W3C trace ID. */
|
|
6
6
|
type Traced<T> = T & {
|
|
@@ -181,7 +181,8 @@ declare enum SnapshotStatus {
|
|
|
181
181
|
COMPLETED = "completed",
|
|
182
182
|
FAILED = "failed",
|
|
183
183
|
DELETING = "deleting",
|
|
184
|
-
REPLICATING = "replicating"
|
|
184
|
+
REPLICATING = "replicating",
|
|
185
|
+
UNKNOWN = "unknown"
|
|
185
186
|
}
|
|
186
187
|
/**
|
|
187
188
|
* Snapshot type for sandbox snapshot creation.
|
|
@@ -528,6 +529,8 @@ interface ListArchivedSandboxesResponse {
|
|
|
528
529
|
interface CreateSnapshotResponse {
|
|
529
530
|
snapshotId: string;
|
|
530
531
|
status: SnapshotStatus;
|
|
532
|
+
/** Original response, populated when decoded by the SDK. */
|
|
533
|
+
raw?: Record<string, unknown>;
|
|
531
534
|
}
|
|
532
535
|
interface SnapshotInfo {
|
|
533
536
|
snapshotId: string;
|
|
@@ -535,6 +538,8 @@ interface SnapshotInfo {
|
|
|
535
538
|
sandboxId: string;
|
|
536
539
|
baseImage: string;
|
|
537
540
|
status: SnapshotStatus;
|
|
541
|
+
/** Original response, populated when decoded by the SDK. */
|
|
542
|
+
raw?: Record<string, unknown>;
|
|
538
543
|
snapshotType?: SnapshotType;
|
|
539
544
|
error?: string;
|
|
540
545
|
snapshotUri?: string;
|
|
@@ -1688,19 +1693,21 @@ declare class CloudClient {
|
|
|
1688
1693
|
upsertApplication(manifest: ApplicationManifest, codeZip: BinaryPayload, upgradeRunningRequests?: boolean): Promise<void>;
|
|
1689
1694
|
deleteApplication(applicationName: string): Promise<void>;
|
|
1690
1695
|
/**
|
|
1691
|
-
* Delete a registered sandbox image by name or id through the
|
|
1692
|
-
* catalog, with this client's credentials: an `image_` id or a name
|
|
1693
|
-
*
|
|
1694
|
-
* name registered only in the
|
|
1696
|
+
* Delete a registered CAS or legacy sandbox image by name or id through the
|
|
1697
|
+
* merged catalog, with this client's credentials: an `image_` id or a name
|
|
1698
|
+
* the CAS image registry knows deletes a CAS image, a `sandbox_template_` id
|
|
1699
|
+
* or a name registered only in the legacy image registry deletes a legacy
|
|
1700
|
+
* image.
|
|
1701
|
+
* A name is deleted from both the CAS and the legacy image registries.
|
|
1695
1702
|
* Rejects when neither catalog knows the reference. The same semantics
|
|
1696
1703
|
* and accepted differences as the module-level `deleteSandboxImage`.
|
|
1697
1704
|
*/
|
|
1698
1705
|
deleteSandboxImage(imageName: string): Promise<void>;
|
|
1699
1706
|
/**
|
|
1700
|
-
* Look up a registered sandbox image by name or id through
|
|
1701
|
-
* catalog, with this client's credentials. Returns the image in
|
|
1702
|
-
* sandbox-template shape, or `null` when neither the
|
|
1703
|
-
*
|
|
1707
|
+
* Look up a registered CAS or legacy sandbox image by name or id through
|
|
1708
|
+
* the merged catalog, with this client's credentials. Returns the image in
|
|
1709
|
+
* the sandbox-template shape, or `null` when neither the CAS nor the legacy
|
|
1710
|
+
* image registry knows the reference. An explicit organization/project
|
|
1704
1711
|
* scope (the client's, or the call's override) addresses that project's
|
|
1705
1712
|
* routes directly, as before; without one the key's own scope applies.
|
|
1706
1713
|
*/
|
|
@@ -2036,22 +2043,26 @@ declare class RepositoryClient {
|
|
|
2036
2043
|
}
|
|
2037
2044
|
|
|
2038
2045
|
/**
|
|
2039
|
-
*
|
|
2046
|
+
* Build operations for CAS sandbox images.
|
|
2040
2047
|
*
|
|
2041
|
-
* A CAS (content-addressed streaming) image is built or imported by
|
|
2042
|
-
*
|
|
2048
|
+
* A CAS (content-addressed streaming) image is built or imported by a *build
|
|
2049
|
+
* operation*. This module exposes that operation directly:
|
|
2043
2050
|
* {@link startImageBuild} / {@link startImageImport} admit a build (and upload
|
|
2044
2051
|
* and seal its context) and return an {@link ImageBuildHandle} without
|
|
2045
2052
|
* waiting; {@link getImageBuild} looks a build up by id; the handle's
|
|
2046
2053
|
* `refresh`, `wait` and `cancel` read, wait for and cancel it.
|
|
2047
2054
|
*
|
|
2048
|
-
* **CAS only.** Everything here addresses
|
|
2049
|
-
* (`createSandboxImage`
|
|
2050
|
-
* snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2055
|
+
* **CAS images only.** Everything here addresses a CAS image build. Legacy
|
|
2056
|
+
* images (`createSandboxImage` with `cas: false`, `sandbox_template_` ids,
|
|
2057
|
+
* `.tlsnap` snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2051
2058
|
* reference passed as a build id is refused locally, before any request, and
|
|
2052
2059
|
* the legacy functions in `sandbox-image.ts` keep their own requests,
|
|
2053
2060
|
* results, errors and interruption behavior.
|
|
2054
2061
|
*
|
|
2062
|
+
* Response enum fields map unfamiliar wire values to `UNKNOWN`. `raw` is
|
|
2063
|
+
* diagnostic only and excluded from equality, hashing, and SDK serialization
|
|
2064
|
+
* (`JSON.stringify`). Events retain their original wire strings.
|
|
2065
|
+
*
|
|
2055
2066
|
* **Build ids are the immutable record.** An image name and its `image_` id
|
|
2056
2067
|
* name the *current* image; a rebuild replaces what they point at. A build id
|
|
2057
2068
|
* and its result never change, so `wait` returns this build's own result even
|
|
@@ -2070,30 +2081,77 @@ declare class RepositoryClient {
|
|
|
2070
2081
|
* {@link ImageBuildTimeoutError} and leaves the build running. Abandoning a
|
|
2071
2082
|
* promise, losing the process or dropping a handle never cancels the build.
|
|
2072
2083
|
*/
|
|
2084
|
+
declare enum ImageBuildStatus {
|
|
2085
|
+
PENDING = "pending",
|
|
2086
|
+
RUNNING = "running",
|
|
2087
|
+
SUCCEEDED = "succeeded",
|
|
2088
|
+
FAILED = "failed",
|
|
2089
|
+
CANCELLED = "cancelled",
|
|
2090
|
+
UNKNOWN = "unknown"
|
|
2091
|
+
}
|
|
2092
|
+
declare enum ImageBuildPhase {
|
|
2093
|
+
AWAITING_CONTEXT = "awaiting_context",
|
|
2094
|
+
STARTING_BUILDER = "starting_builder",
|
|
2095
|
+
EXECUTING = "executing",
|
|
2096
|
+
SNAPSHOTTING = "snapshotting",
|
|
2097
|
+
PUBLISHING = "publishing",
|
|
2098
|
+
FINISHED = "finished",
|
|
2099
|
+
UNKNOWN = "unknown"
|
|
2100
|
+
}
|
|
2101
|
+
declare enum ImageBuildKind {
|
|
2102
|
+
DOCKERFILE = "dockerfile",
|
|
2103
|
+
IMPORT = "import",
|
|
2104
|
+
DIRECT = "direct",
|
|
2105
|
+
UNKNOWN = "unknown"
|
|
2106
|
+
}
|
|
2107
|
+
declare enum ImageBuildCancellationOutcome {
|
|
2108
|
+
CANCELLED = "cancelled",
|
|
2109
|
+
ALREADY_CANCELLED = "already_cancelled",
|
|
2110
|
+
ALREADY_COMPLETED = "already_completed",
|
|
2111
|
+
ALREADY_FAILED = "already_failed",
|
|
2112
|
+
NOT_ADMITTED = "not_admitted",
|
|
2113
|
+
UNCONFIRMED = "unconfirmed",
|
|
2114
|
+
UNKNOWN = "unknown"
|
|
2115
|
+
}
|
|
2116
|
+
declare enum ImageBuildErrorCode {
|
|
2117
|
+
USAGE = "usage",
|
|
2118
|
+
AUTH = "auth",
|
|
2119
|
+
NOT_FOUND = "not_found",
|
|
2120
|
+
IMAGE_BUILD_IN_PROGRESS = "image_build_in_progress",
|
|
2121
|
+
CLIENT_REQUEST_ID_MISMATCH = "client_request_id_mismatch",
|
|
2122
|
+
FAILED = "failed",
|
|
2123
|
+
CANCELLED = "cancelled",
|
|
2124
|
+
TIMEOUT = "timeout",
|
|
2125
|
+
INTERRUPTED = "interrupted",
|
|
2126
|
+
SERVICE = "service",
|
|
2127
|
+
INTERNAL = "internal",
|
|
2128
|
+
UNKNOWN = "unknown"
|
|
2129
|
+
}
|
|
2073
2130
|
/** Structured payload the native binding attaches to image-build failures. */
|
|
2074
2131
|
interface ImageBuildErrorDetails {
|
|
2075
|
-
code:
|
|
2132
|
+
code: ImageBuildErrorCode;
|
|
2076
2133
|
message: string;
|
|
2077
2134
|
buildId?: string | null;
|
|
2078
2135
|
clientRequestId?: string | null;
|
|
2079
2136
|
imageName?: string | null;
|
|
2080
2137
|
activeBuildId?: string | null;
|
|
2081
|
-
activeKind?:
|
|
2082
|
-
activeStatus?:
|
|
2138
|
+
activeKind?: ImageBuildKind | null;
|
|
2139
|
+
activeStatus?: ImageBuildStatus | null;
|
|
2083
2140
|
error?: string | null;
|
|
2084
|
-
info?:
|
|
2085
|
-
outcome?:
|
|
2141
|
+
info?: ImageBuildInfo | null;
|
|
2142
|
+
outcome?: ImageBuildCancellationOutcome | null;
|
|
2086
2143
|
confirmed?: boolean | null;
|
|
2087
2144
|
result?: Record<string, unknown> | null;
|
|
2088
2145
|
waitedSecs?: number | null;
|
|
2089
2146
|
status?: number | null;
|
|
2090
2147
|
}
|
|
2091
|
-
/**
|
|
2148
|
+
/** A CAS image build operation failed. `code` is stable. */
|
|
2092
2149
|
declare class ImageBuildError extends Error {
|
|
2093
|
-
readonly code:
|
|
2150
|
+
readonly code: ImageBuildErrorCode;
|
|
2094
2151
|
readonly buildId?: string;
|
|
2095
2152
|
readonly clientRequestId?: string;
|
|
2096
2153
|
readonly details: ImageBuildErrorDetails;
|
|
2154
|
+
readonly raw: Readonly<Record<string, unknown>>;
|
|
2097
2155
|
constructor(details: ImageBuildErrorDetails);
|
|
2098
2156
|
}
|
|
2099
2157
|
/**
|
|
@@ -2111,8 +2169,8 @@ declare class ImageBuildNotFoundError extends ImageBuildError {
|
|
|
2111
2169
|
declare class ImageBuildInProgressError extends ImageBuildError {
|
|
2112
2170
|
readonly imageName?: string;
|
|
2113
2171
|
readonly activeBuildId?: string;
|
|
2114
|
-
readonly activeKind?:
|
|
2115
|
-
readonly activeStatus?:
|
|
2172
|
+
readonly activeKind?: ImageBuildKind;
|
|
2173
|
+
readonly activeStatus?: ImageBuildStatus;
|
|
2116
2174
|
constructor(details: ImageBuildErrorDetails);
|
|
2117
2175
|
}
|
|
2118
2176
|
/** The service reports the build failed; `error` is its message. */
|
|
@@ -2137,29 +2195,27 @@ declare class ImageBuildTimeoutError extends ImageBuildError {
|
|
|
2137
2195
|
* not to publish. `not_admitted` is an observation, not a cancellation.
|
|
2138
2196
|
*/
|
|
2139
2197
|
declare class ImageBuildInterruptedError extends ImageBuildError {
|
|
2140
|
-
readonly outcome:
|
|
2198
|
+
readonly outcome: ImageBuildCancellationOutcome;
|
|
2141
2199
|
readonly confirmed: boolean;
|
|
2142
2200
|
readonly result?: Record<string, unknown>;
|
|
2143
2201
|
constructor(details: ImageBuildErrorDetails);
|
|
2144
2202
|
}
|
|
2145
|
-
type ImageBuildStatus = "pending" | "running" | "succeeded" | "failed" | "cancelled" | string;
|
|
2146
|
-
type ImageBuildPhase = "awaiting_context" | "starting_builder" | "executing" | "snapshotting" | "publishing" | "finished" | string;
|
|
2147
2203
|
/**
|
|
2148
|
-
* The published image of a succeeded build, in the sandbox-template
|
|
2149
|
-
* the merged catalog answers (derived by the core from the
|
|
2150
|
-
* trimmed record): one image representation for
|
|
2151
|
-
* `listSandboxImages` and build results.
|
|
2204
|
+
* The published CAS image of a succeeded build, in the sandbox-template
|
|
2205
|
+
* shape the merged catalog answers (derived by the core from the CAS image
|
|
2206
|
+
* registry's trimmed record): one image representation for
|
|
2207
|
+
* `findSandboxImageByName`, `listSandboxImages` and build results.
|
|
2152
2208
|
*/
|
|
2153
2209
|
type ImageBuildResult = SandboxTemplate;
|
|
2154
2210
|
/**
|
|
2155
|
-
* One build or import as the
|
|
2211
|
+
* One CAS image build or import as the service reports it (the twelve-field
|
|
2156
2212
|
* `BuildInfo`; the service exposes no cleanup state, phase deadline,
|
|
2157
2213
|
* content digest or upload capability on a build).
|
|
2158
2214
|
*/
|
|
2159
2215
|
interface ImageBuildInfo {
|
|
2160
2216
|
buildId: string;
|
|
2161
2217
|
clientRequestId?: string | null;
|
|
2162
|
-
kind
|
|
2218
|
+
kind?: ImageBuildKind | null;
|
|
2163
2219
|
name?: string | null;
|
|
2164
2220
|
status: ImageBuildStatus;
|
|
2165
2221
|
phase?: ImageBuildPhase | null;
|
|
@@ -2180,10 +2236,11 @@ interface ImageBuildInfo {
|
|
|
2180
2236
|
* request id: not a cancellation and no promise about a delayed admission).
|
|
2181
2237
|
*/
|
|
2182
2238
|
interface CancelImageBuildOutcome {
|
|
2183
|
-
outcome:
|
|
2239
|
+
outcome: ImageBuildCancellationOutcome;
|
|
2184
2240
|
build: ImageBuildInfo | null;
|
|
2185
2241
|
/** Whether the build is known not to publish. */
|
|
2186
2242
|
confirmed: boolean;
|
|
2243
|
+
raw: Record<string, unknown>;
|
|
2187
2244
|
}
|
|
2188
2245
|
interface ImageBuildEvent {
|
|
2189
2246
|
type: string;
|
|
@@ -2752,4 +2809,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2752
2809
|
constructor(message: string, functionName?: string);
|
|
2753
2810
|
}
|
|
2754
2811
|
|
|
2755
|
-
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, ImageBuildCancelledError, ImageBuildError, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildNotFoundError,
|
|
2812
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-
|
|
3
|
-
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-
|
|
1
|
+
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-C2GTVnx3.js';
|
|
2
|
+
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-C2GTVnx3.js';
|
|
3
|
+
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-DYBXCTNC.js';
|
|
4
4
|
|
|
5
5
|
/** An SDK result paired with its server-side W3C trace ID. */
|
|
6
6
|
type Traced<T> = T & {
|
|
@@ -181,7 +181,8 @@ declare enum SnapshotStatus {
|
|
|
181
181
|
COMPLETED = "completed",
|
|
182
182
|
FAILED = "failed",
|
|
183
183
|
DELETING = "deleting",
|
|
184
|
-
REPLICATING = "replicating"
|
|
184
|
+
REPLICATING = "replicating",
|
|
185
|
+
UNKNOWN = "unknown"
|
|
185
186
|
}
|
|
186
187
|
/**
|
|
187
188
|
* Snapshot type for sandbox snapshot creation.
|
|
@@ -528,6 +529,8 @@ interface ListArchivedSandboxesResponse {
|
|
|
528
529
|
interface CreateSnapshotResponse {
|
|
529
530
|
snapshotId: string;
|
|
530
531
|
status: SnapshotStatus;
|
|
532
|
+
/** Original response, populated when decoded by the SDK. */
|
|
533
|
+
raw?: Record<string, unknown>;
|
|
531
534
|
}
|
|
532
535
|
interface SnapshotInfo {
|
|
533
536
|
snapshotId: string;
|
|
@@ -535,6 +538,8 @@ interface SnapshotInfo {
|
|
|
535
538
|
sandboxId: string;
|
|
536
539
|
baseImage: string;
|
|
537
540
|
status: SnapshotStatus;
|
|
541
|
+
/** Original response, populated when decoded by the SDK. */
|
|
542
|
+
raw?: Record<string, unknown>;
|
|
538
543
|
snapshotType?: SnapshotType;
|
|
539
544
|
error?: string;
|
|
540
545
|
snapshotUri?: string;
|
|
@@ -1688,19 +1693,21 @@ declare class CloudClient {
|
|
|
1688
1693
|
upsertApplication(manifest: ApplicationManifest, codeZip: BinaryPayload, upgradeRunningRequests?: boolean): Promise<void>;
|
|
1689
1694
|
deleteApplication(applicationName: string): Promise<void>;
|
|
1690
1695
|
/**
|
|
1691
|
-
* Delete a registered sandbox image by name or id through the
|
|
1692
|
-
* catalog, with this client's credentials: an `image_` id or a name
|
|
1693
|
-
*
|
|
1694
|
-
* name registered only in the
|
|
1696
|
+
* Delete a registered CAS or legacy sandbox image by name or id through the
|
|
1697
|
+
* merged catalog, with this client's credentials: an `image_` id or a name
|
|
1698
|
+
* the CAS image registry knows deletes a CAS image, a `sandbox_template_` id
|
|
1699
|
+
* or a name registered only in the legacy image registry deletes a legacy
|
|
1700
|
+
* image.
|
|
1701
|
+
* A name is deleted from both the CAS and the legacy image registries.
|
|
1695
1702
|
* Rejects when neither catalog knows the reference. The same semantics
|
|
1696
1703
|
* and accepted differences as the module-level `deleteSandboxImage`.
|
|
1697
1704
|
*/
|
|
1698
1705
|
deleteSandboxImage(imageName: string): Promise<void>;
|
|
1699
1706
|
/**
|
|
1700
|
-
* Look up a registered sandbox image by name or id through
|
|
1701
|
-
* catalog, with this client's credentials. Returns the image in
|
|
1702
|
-
* sandbox-template shape, or `null` when neither the
|
|
1703
|
-
*
|
|
1707
|
+
* Look up a registered CAS or legacy sandbox image by name or id through
|
|
1708
|
+
* the merged catalog, with this client's credentials. Returns the image in
|
|
1709
|
+
* the sandbox-template shape, or `null` when neither the CAS nor the legacy
|
|
1710
|
+
* image registry knows the reference. An explicit organization/project
|
|
1704
1711
|
* scope (the client's, or the call's override) addresses that project's
|
|
1705
1712
|
* routes directly, as before; without one the key's own scope applies.
|
|
1706
1713
|
*/
|
|
@@ -2036,22 +2043,26 @@ declare class RepositoryClient {
|
|
|
2036
2043
|
}
|
|
2037
2044
|
|
|
2038
2045
|
/**
|
|
2039
|
-
*
|
|
2046
|
+
* Build operations for CAS sandbox images.
|
|
2040
2047
|
*
|
|
2041
|
-
* A CAS (content-addressed streaming) image is built or imported by
|
|
2042
|
-
*
|
|
2048
|
+
* A CAS (content-addressed streaming) image is built or imported by a *build
|
|
2049
|
+
* operation*. This module exposes that operation directly:
|
|
2043
2050
|
* {@link startImageBuild} / {@link startImageImport} admit a build (and upload
|
|
2044
2051
|
* and seal its context) and return an {@link ImageBuildHandle} without
|
|
2045
2052
|
* waiting; {@link getImageBuild} looks a build up by id; the handle's
|
|
2046
2053
|
* `refresh`, `wait` and `cancel` read, wait for and cancel it.
|
|
2047
2054
|
*
|
|
2048
|
-
* **CAS only.** Everything here addresses
|
|
2049
|
-
* (`createSandboxImage`
|
|
2050
|
-
* snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2055
|
+
* **CAS images only.** Everything here addresses a CAS image build. Legacy
|
|
2056
|
+
* images (`createSandboxImage` with `cas: false`, `sandbox_template_` ids,
|
|
2057
|
+
* `.tlsnap` snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2051
2058
|
* reference passed as a build id is refused locally, before any request, and
|
|
2052
2059
|
* the legacy functions in `sandbox-image.ts` keep their own requests,
|
|
2053
2060
|
* results, errors and interruption behavior.
|
|
2054
2061
|
*
|
|
2062
|
+
* Response enum fields map unfamiliar wire values to `UNKNOWN`. `raw` is
|
|
2063
|
+
* diagnostic only and excluded from equality, hashing, and SDK serialization
|
|
2064
|
+
* (`JSON.stringify`). Events retain their original wire strings.
|
|
2065
|
+
*
|
|
2055
2066
|
* **Build ids are the immutable record.** An image name and its `image_` id
|
|
2056
2067
|
* name the *current* image; a rebuild replaces what they point at. A build id
|
|
2057
2068
|
* and its result never change, so `wait` returns this build's own result even
|
|
@@ -2070,30 +2081,77 @@ declare class RepositoryClient {
|
|
|
2070
2081
|
* {@link ImageBuildTimeoutError} and leaves the build running. Abandoning a
|
|
2071
2082
|
* promise, losing the process or dropping a handle never cancels the build.
|
|
2072
2083
|
*/
|
|
2084
|
+
declare enum ImageBuildStatus {
|
|
2085
|
+
PENDING = "pending",
|
|
2086
|
+
RUNNING = "running",
|
|
2087
|
+
SUCCEEDED = "succeeded",
|
|
2088
|
+
FAILED = "failed",
|
|
2089
|
+
CANCELLED = "cancelled",
|
|
2090
|
+
UNKNOWN = "unknown"
|
|
2091
|
+
}
|
|
2092
|
+
declare enum ImageBuildPhase {
|
|
2093
|
+
AWAITING_CONTEXT = "awaiting_context",
|
|
2094
|
+
STARTING_BUILDER = "starting_builder",
|
|
2095
|
+
EXECUTING = "executing",
|
|
2096
|
+
SNAPSHOTTING = "snapshotting",
|
|
2097
|
+
PUBLISHING = "publishing",
|
|
2098
|
+
FINISHED = "finished",
|
|
2099
|
+
UNKNOWN = "unknown"
|
|
2100
|
+
}
|
|
2101
|
+
declare enum ImageBuildKind {
|
|
2102
|
+
DOCKERFILE = "dockerfile",
|
|
2103
|
+
IMPORT = "import",
|
|
2104
|
+
DIRECT = "direct",
|
|
2105
|
+
UNKNOWN = "unknown"
|
|
2106
|
+
}
|
|
2107
|
+
declare enum ImageBuildCancellationOutcome {
|
|
2108
|
+
CANCELLED = "cancelled",
|
|
2109
|
+
ALREADY_CANCELLED = "already_cancelled",
|
|
2110
|
+
ALREADY_COMPLETED = "already_completed",
|
|
2111
|
+
ALREADY_FAILED = "already_failed",
|
|
2112
|
+
NOT_ADMITTED = "not_admitted",
|
|
2113
|
+
UNCONFIRMED = "unconfirmed",
|
|
2114
|
+
UNKNOWN = "unknown"
|
|
2115
|
+
}
|
|
2116
|
+
declare enum ImageBuildErrorCode {
|
|
2117
|
+
USAGE = "usage",
|
|
2118
|
+
AUTH = "auth",
|
|
2119
|
+
NOT_FOUND = "not_found",
|
|
2120
|
+
IMAGE_BUILD_IN_PROGRESS = "image_build_in_progress",
|
|
2121
|
+
CLIENT_REQUEST_ID_MISMATCH = "client_request_id_mismatch",
|
|
2122
|
+
FAILED = "failed",
|
|
2123
|
+
CANCELLED = "cancelled",
|
|
2124
|
+
TIMEOUT = "timeout",
|
|
2125
|
+
INTERRUPTED = "interrupted",
|
|
2126
|
+
SERVICE = "service",
|
|
2127
|
+
INTERNAL = "internal",
|
|
2128
|
+
UNKNOWN = "unknown"
|
|
2129
|
+
}
|
|
2073
2130
|
/** Structured payload the native binding attaches to image-build failures. */
|
|
2074
2131
|
interface ImageBuildErrorDetails {
|
|
2075
|
-
code:
|
|
2132
|
+
code: ImageBuildErrorCode;
|
|
2076
2133
|
message: string;
|
|
2077
2134
|
buildId?: string | null;
|
|
2078
2135
|
clientRequestId?: string | null;
|
|
2079
2136
|
imageName?: string | null;
|
|
2080
2137
|
activeBuildId?: string | null;
|
|
2081
|
-
activeKind?:
|
|
2082
|
-
activeStatus?:
|
|
2138
|
+
activeKind?: ImageBuildKind | null;
|
|
2139
|
+
activeStatus?: ImageBuildStatus | null;
|
|
2083
2140
|
error?: string | null;
|
|
2084
|
-
info?:
|
|
2085
|
-
outcome?:
|
|
2141
|
+
info?: ImageBuildInfo | null;
|
|
2142
|
+
outcome?: ImageBuildCancellationOutcome | null;
|
|
2086
2143
|
confirmed?: boolean | null;
|
|
2087
2144
|
result?: Record<string, unknown> | null;
|
|
2088
2145
|
waitedSecs?: number | null;
|
|
2089
2146
|
status?: number | null;
|
|
2090
2147
|
}
|
|
2091
|
-
/**
|
|
2148
|
+
/** A CAS image build operation failed. `code` is stable. */
|
|
2092
2149
|
declare class ImageBuildError extends Error {
|
|
2093
|
-
readonly code:
|
|
2150
|
+
readonly code: ImageBuildErrorCode;
|
|
2094
2151
|
readonly buildId?: string;
|
|
2095
2152
|
readonly clientRequestId?: string;
|
|
2096
2153
|
readonly details: ImageBuildErrorDetails;
|
|
2154
|
+
readonly raw: Readonly<Record<string, unknown>>;
|
|
2097
2155
|
constructor(details: ImageBuildErrorDetails);
|
|
2098
2156
|
}
|
|
2099
2157
|
/**
|
|
@@ -2111,8 +2169,8 @@ declare class ImageBuildNotFoundError extends ImageBuildError {
|
|
|
2111
2169
|
declare class ImageBuildInProgressError extends ImageBuildError {
|
|
2112
2170
|
readonly imageName?: string;
|
|
2113
2171
|
readonly activeBuildId?: string;
|
|
2114
|
-
readonly activeKind?:
|
|
2115
|
-
readonly activeStatus?:
|
|
2172
|
+
readonly activeKind?: ImageBuildKind;
|
|
2173
|
+
readonly activeStatus?: ImageBuildStatus;
|
|
2116
2174
|
constructor(details: ImageBuildErrorDetails);
|
|
2117
2175
|
}
|
|
2118
2176
|
/** The service reports the build failed; `error` is its message. */
|
|
@@ -2137,29 +2195,27 @@ declare class ImageBuildTimeoutError extends ImageBuildError {
|
|
|
2137
2195
|
* not to publish. `not_admitted` is an observation, not a cancellation.
|
|
2138
2196
|
*/
|
|
2139
2197
|
declare class ImageBuildInterruptedError extends ImageBuildError {
|
|
2140
|
-
readonly outcome:
|
|
2198
|
+
readonly outcome: ImageBuildCancellationOutcome;
|
|
2141
2199
|
readonly confirmed: boolean;
|
|
2142
2200
|
readonly result?: Record<string, unknown>;
|
|
2143
2201
|
constructor(details: ImageBuildErrorDetails);
|
|
2144
2202
|
}
|
|
2145
|
-
type ImageBuildStatus = "pending" | "running" | "succeeded" | "failed" | "cancelled" | string;
|
|
2146
|
-
type ImageBuildPhase = "awaiting_context" | "starting_builder" | "executing" | "snapshotting" | "publishing" | "finished" | string;
|
|
2147
2203
|
/**
|
|
2148
|
-
* The published image of a succeeded build, in the sandbox-template
|
|
2149
|
-
* the merged catalog answers (derived by the core from the
|
|
2150
|
-
* trimmed record): one image representation for
|
|
2151
|
-
* `listSandboxImages` and build results.
|
|
2204
|
+
* The published CAS image of a succeeded build, in the sandbox-template
|
|
2205
|
+
* shape the merged catalog answers (derived by the core from the CAS image
|
|
2206
|
+
* registry's trimmed record): one image representation for
|
|
2207
|
+
* `findSandboxImageByName`, `listSandboxImages` and build results.
|
|
2152
2208
|
*/
|
|
2153
2209
|
type ImageBuildResult = SandboxTemplate;
|
|
2154
2210
|
/**
|
|
2155
|
-
* One build or import as the
|
|
2211
|
+
* One CAS image build or import as the service reports it (the twelve-field
|
|
2156
2212
|
* `BuildInfo`; the service exposes no cleanup state, phase deadline,
|
|
2157
2213
|
* content digest or upload capability on a build).
|
|
2158
2214
|
*/
|
|
2159
2215
|
interface ImageBuildInfo {
|
|
2160
2216
|
buildId: string;
|
|
2161
2217
|
clientRequestId?: string | null;
|
|
2162
|
-
kind
|
|
2218
|
+
kind?: ImageBuildKind | null;
|
|
2163
2219
|
name?: string | null;
|
|
2164
2220
|
status: ImageBuildStatus;
|
|
2165
2221
|
phase?: ImageBuildPhase | null;
|
|
@@ -2180,10 +2236,11 @@ interface ImageBuildInfo {
|
|
|
2180
2236
|
* request id: not a cancellation and no promise about a delayed admission).
|
|
2181
2237
|
*/
|
|
2182
2238
|
interface CancelImageBuildOutcome {
|
|
2183
|
-
outcome:
|
|
2239
|
+
outcome: ImageBuildCancellationOutcome;
|
|
2184
2240
|
build: ImageBuildInfo | null;
|
|
2185
2241
|
/** Whether the build is known not to publish. */
|
|
2186
2242
|
confirmed: boolean;
|
|
2243
|
+
raw: Record<string, unknown>;
|
|
2187
2244
|
}
|
|
2188
2245
|
interface ImageBuildEvent {
|
|
2189
2246
|
type: string;
|
|
@@ -2752,4 +2809,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2752
2809
|
constructor(message: string, functionName?: string);
|
|
2753
2810
|
}
|
|
2754
2811
|
|
|
2755
|
-
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, ImageBuildCancelledError, ImageBuildError, type ImageBuildErrorDetails, type ImageBuildEvent, ImageBuildFailedError, ImageBuildHandle, ImageBuildInProgressError, type ImageBuildInfo, ImageBuildInterruptedError, ImageBuildNotFoundError,
|
|
2812
|
+
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 };
|