@aerol-ai/aerolvm-sdk 0.2.2 → 0.2.3

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.
@@ -439,6 +439,7 @@ function toApiLifecycle(lifecycle) {
439
439
  destroy_if_idle_for: lifecycle.destroyIfIdleFor,
440
440
  stop_at_age: lifecycle.stopAtAge,
441
441
  destroy_at_age: lifecycle.destroyAtAge,
442
+ serverless: lifecycle.serverless,
442
443
  };
443
444
  }
444
445
  function toApiFailover(failover) {
@@ -614,6 +615,9 @@ function fromApiLifecycle(lifecycle) {
614
615
  if (lifecycle?.destroy_at_age !== undefined) {
615
616
  result.destroyAtAge = lifecycle.destroy_at_age;
616
617
  }
618
+ if (lifecycle?.serverless) {
619
+ result.serverless = true;
620
+ }
617
621
  return result;
618
622
  }
619
623
  function fromApiFailover(failover) {
package/dist/types.d.ts CHANGED
@@ -73,6 +73,13 @@ export interface Lifecycle {
73
73
  stopAtAge?: number;
74
74
  /** Duration in integer nanoseconds. */
75
75
  destroyAtAge?: number;
76
+ /**
77
+ * Opt the sandbox into HTTP wake-on-request: auto-stop when idle,
78
+ * resume on the next inbound HTTP request. Requires `stopIfIdleFor`
79
+ * to be set explicitly — the server rejects `serverless: true`
80
+ * without an idle window. TCP and TLS exposures stay always-on.
81
+ */
82
+ serverless?: boolean;
76
83
  }
77
84
  export type UpdateLifecycleOptions = Lifecycle;
78
85
  export type FailoverPolicy = "none" | "recreate";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerol-ai/aerolvm-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",