@enclave-run/sdk 0.2.0 → 0.3.0

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.mts CHANGED
@@ -2834,8 +2834,6 @@ interface components {
2834
2834
  network?: components["schemas"]["SandboxNetworkConfig"];
2835
2835
  /** @description Optional region code for sandbox placement. When omitted, Enclave automatically selects a placement region. */
2836
2836
  region?: string;
2837
- /** @description Secure all system communication with sandbox */
2838
- secure?: boolean;
2839
2837
  /** @description Identifier of the required template */
2840
2838
  templateID: string;
2841
2839
  /**
@@ -7283,12 +7281,6 @@ interface SandboxOpts extends ConnectionOpts {
7283
7281
  * @default 300_000 // 5 minutes
7284
7282
  */
7285
7283
  timeoutMs?: number;
7286
- /**
7287
- * Secure all traffic coming to the sandbox controller with auth token
7288
- *
7289
- * @default true
7290
- */
7291
- secure?: boolean;
7292
7284
  /**
7293
7285
  * Allow sandbox to access the internet. If set to `False`, it works the same as setting network `denyOut` to `[0.0.0.0/0]`.
7294
7286
  *
package/dist/index.d.ts CHANGED
@@ -2834,8 +2834,6 @@ interface components {
2834
2834
  network?: components["schemas"]["SandboxNetworkConfig"];
2835
2835
  /** @description Optional region code for sandbox placement. When omitted, Enclave automatically selects a placement region. */
2836
2836
  region?: string;
2837
- /** @description Secure all system communication with sandbox */
2838
- secure?: boolean;
2839
2837
  /** @description Identifier of the required template */
2840
2838
  templateID: string;
2841
2839
  /**
@@ -7283,12 +7281,6 @@ interface SandboxOpts extends ConnectionOpts {
7283
7281
  * @default 300_000 // 5 minutes
7284
7282
  */
7285
7283
  timeoutMs?: number;
7286
- /**
7287
- * Secure all traffic coming to the sandbox controller with auth token
7288
- *
7289
- * @default true
7290
- */
7291
- secure?: boolean;
7292
7284
  /**
7293
7285
  * Allow sandbox to access the internet. If set to `False`, it works the same as setting network `denyOut` to `[0.0.0.0/0]`.
7294
7286
  *
package/dist/index.js CHANGED
@@ -128,7 +128,7 @@ var import_openapi_fetch = __toESM(require("openapi-fetch"));
128
128
  var import_platform2 = __toESM(require("platform"));
129
129
 
130
130
  // package.json
131
- var version = "0.2.0";
131
+ var version = "0.3.0";
132
132
 
133
133
  // src/utils.ts
134
134
  var import_platform = __toESM(require("platform"));
@@ -3429,7 +3429,7 @@ var SandboxApi = class {
3429
3429
  return true;
3430
3430
  }
3431
3431
  static async createSandbox(template, timeoutMs, opts) {
3432
- var _a3, _b, _c;
3432
+ var _a3, _b;
3433
3433
  const config = ConnectionConfig.forSandbox(opts);
3434
3434
  const client = new ApiClient(config);
3435
3435
  const idempotencyKey = (_a3 = opts == null ? void 0 : opts.idempotencyKey) != null ? _a3 : crypto.randomUUID();
@@ -3448,8 +3448,7 @@ var SandboxApi = class {
3448
3448
  mcp: opts == null ? void 0 : opts.mcp,
3449
3449
  envVars: opts == null ? void 0 : opts.envs,
3450
3450
  timeout: timeoutToSeconds(timeoutMs),
3451
- secure: (_b = opts == null ? void 0 : opts.secure) != null ? _b : true,
3452
- allow_internet_access: (_c = opts == null ? void 0 : opts.allowInternetAccess) != null ? _c : true,
3451
+ allow_internet_access: (_b = opts == null ? void 0 : opts.allowInternetAccess) != null ? _b : true,
3453
3452
  network: opts == null ? void 0 : opts.network,
3454
3453
  autoPause: pauseOnTimeout
3455
3454
  }, pauseOnTimeout ? { autoResume: { policy: lifecycle.autoResume ? "any" : "off" } } : {}), config.region ? { region: config.region } : {});