@solarisdk/core 0.4.0 → 0.4.1
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/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -234,6 +234,14 @@ export interface CreateSandboxOptions {
|
|
|
234
234
|
* The mount appears at the given absolute `path` inside the guest.
|
|
235
235
|
*/
|
|
236
236
|
volumes?: VolumeAttachment[];
|
|
237
|
+
/**
|
|
238
|
+
* Run commands, code and file operations as this user (created at first boot with passwordless sudo if the image has
|
|
239
|
+
* no such user); a per-call `user` overrides it. Default: root. Not available on `isolation: "shared"`. The create
|
|
240
|
+
* response echoes `user` when the gateway honoured it; an older gateway ignores it or answers 400.
|
|
241
|
+
*/
|
|
242
|
+
user?: string;
|
|
243
|
+
/** Default working directory (absolute). Default: the user's home. Same availability as {@link user}. */
|
|
244
|
+
cwd?: string;
|
|
237
245
|
}
|
|
238
246
|
/** One attach-at-create instruction: a persistent volume + its guest path. */
|
|
239
247
|
export interface VolumeAttachment {
|
|
@@ -288,6 +296,8 @@ export interface CreateSandboxRequest {
|
|
|
288
296
|
record?: boolean;
|
|
289
297
|
lifecycle?: SandboxLifecycle;
|
|
290
298
|
volumes?: VolumeAttachment[];
|
|
299
|
+
user?: string;
|
|
300
|
+
cwd?: string;
|
|
291
301
|
}
|
|
292
302
|
/** `201` response from `POST /sandboxes`. */
|
|
293
303
|
export interface CreateSandboxResponse {
|
|
@@ -303,6 +313,9 @@ export interface CreateSandboxResponse {
|
|
|
303
313
|
* `RecordingRequiresDesktop`) — it has no display to capture.
|
|
304
314
|
*/
|
|
305
315
|
recordingUrl?: string;
|
|
316
|
+
/** The default user and working directory, echoed when the gateway honoured `user` / `cwd` on create. */
|
|
317
|
+
user?: string;
|
|
318
|
+
cwd?: string;
|
|
306
319
|
}
|
|
307
320
|
/** `GET /sandboxes/:id` response. */
|
|
308
321
|
export interface SandboxView {
|
|
@@ -374,6 +387,8 @@ export interface ListSnapshotsOptions {
|
|
|
374
387
|
limit?: number;
|
|
375
388
|
/** Take a previous page's `nextCursor` to get the page after it. */
|
|
376
389
|
cursor?: string;
|
|
390
|
+
/** Only snapshots taken from this sandbox. */
|
|
391
|
+
sandboxId?: string;
|
|
377
392
|
}
|
|
378
393
|
/** `GET /snapshots` response: newest snapshots first, paged with an opaque cursor. */
|
|
379
394
|
export interface ListSnapshotsResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solarisdk/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Shared runtime for the Solari SDK \u2014 transport, session handles, images, templates, and types used by @solarisdk/desktop and @solarisdk/sandbox.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|