@aerol-ai/aerolvm-sdk 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ export { Sandbox } from "./Sandbox.js";
3
3
  export { Image } from "./Image.js";
4
4
  export type { MicroVMConfig } from "./MicroVM.js";
5
5
  export type { RetryConfig } from "./internal/client.js";
6
- export type { AddCustomDomainOptions, BinaryLike, BuildImageOptions, BuildImagePushOptions, BuildImageResult, CloneGeneration, CreateOptions, CreateSessionOptions, CreateTemplateOptions, CreateWasmModuleOptions, CustomDomain, CustomDomainDNSRecords, CustomDomainStatus, DNSRecord, DNSRecordType, ExecRequest, ExecResult, ExecExitInfo, ExposedPort, ExposePortOptions, ExposeProtocol, ExposeResult, Failover, FailoverPolicy, HealthStatus, IngressTarget, IngressTargetSource, Lifecycle, MountSpec, MountSpecRedacted, MountType, RegisterSnapshotOptions, RegistryAuth, ResizeOptions, Sandbox as SandboxData, SandboxSnapshot, SandboxStatus, Session, SessionAttachHandle, SessionAttachOptions, SessionStatus, Template, TemplatePushState, TemplateStatus, WasmModule, WasmModuleStatus, PushWasmModuleOptions, PushWasmModuleResult, UpdateLifecycleOptions, } from "./types.js";
6
+ export type { AddCustomDomainOptions, BinaryLike, BuildImageOptions, BuildImagePushOptions, BuildImageResult, CloneGeneration, CreateOptions, CreateSessionOptions, CreateTemplateOptions, CreateWasmModuleOptions, CustomDomain, CustomDomainDNSRecords, CustomDomainStatus, DNSRecord, DNSRecordType, ExecRequest, ExecResult, ExecExitInfo, ExposedPort, ExposePortOptions, ExposeProtocol, ExposeResult, Failover, FailoverPolicy, HealthStatus, IngressTarget, IngressTargetSource, Lifecycle, MountSpec, MountSpecRedacted, MountType, PlatformVolumeMount, RegisterSnapshotOptions, RegistryAuth, ResizeOptions, Sandbox as SandboxData, SandboxSnapshot, SandboxStatus, Session, SessionAttachHandle, SessionAttachOptions, SessionStatus, Template, TemplatePushState, TemplateStatus, WasmModule, WasmModuleStatus, PushWasmModuleOptions, PushWasmModuleResult, UpdateLifecycleOptions, } from "./types.js";
@@ -619,6 +619,7 @@ function toApiCreateOptions(options) {
619
619
  registry: options.registry,
620
620
  container_command: options.containerCommand,
621
621
  mounts: options.mounts?.map(toApiMountSpec),
622
+ platform_volumes: options.platformVolumes?.map(toApiPlatformVolumeMount),
622
623
  lifecycle: options.lifecycle ? toApiLifecycle(options.lifecycle) : undefined,
623
624
  failover: options.failover ? toApiFailover(options.failover) : undefined,
624
625
  runtime: options.runtime,
@@ -856,6 +857,13 @@ function toApiMountSpec(mount) {
856
857
  read_only: mount.readOnly,
857
858
  };
858
859
  }
860
+ function toApiPlatformVolumeMount(volume) {
861
+ return {
862
+ name: volume.name,
863
+ path: volume.path,
864
+ read_only: volume.readOnly,
865
+ };
866
+ }
859
867
  function fromApiMountSpecRedacted(mount) {
860
868
  return {
861
869
  type: mount.type,
package/dist/types.d.ts CHANGED
@@ -65,6 +65,20 @@ export interface MountSpecRedacted {
65
65
  readOnly: boolean;
66
66
  hasCredentials: boolean;
67
67
  }
68
+ /**
69
+ * A named, operator-backed persistent volume to attach by name. The operator
70
+ * configures the shared backend (S3/NFS); you never supply storage coordinates
71
+ * or credentials. Persists across the sandbox lifecycle and can be re-attached
72
+ * by name from another sandbox.
73
+ */
74
+ export interface PlatformVolumeMount {
75
+ /** Volume name, scoped to your tenant. */
76
+ name: string;
77
+ /** Absolute path to mount it at inside the sandbox. */
78
+ path: string;
79
+ /** Mount read-only. Defaults to read-write. */
80
+ readOnly?: boolean;
81
+ }
68
82
  export interface Lifecycle {
69
83
  /** Duration in integer nanoseconds. */
70
84
  stopIfIdleFor?: number;
@@ -179,6 +193,12 @@ export interface CreateOptions {
179
193
  registry?: RegistryAuth;
180
194
  containerCommand?: string[];
181
195
  mounts?: MountSpec[];
196
+ /**
197
+ * Named, operator-backed persistent volumes to attach by name. Requires the
198
+ * operator to have enabled platform volumes; otherwise the create is rejected
199
+ * with 412. Only supported on the docker/gvisor runtimes.
200
+ */
201
+ platformVolumes?: PlatformVolumeMount[];
182
202
  lifecycle?: Lifecycle;
183
203
  failover?: Failover;
184
204
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerol-ai/aerolvm-sdk",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",