@sealant/sdk-next 0.40.0-next.933 → 0.40.0-next.935

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/README.md CHANGED
@@ -47,9 +47,10 @@ await run.record.replay();
47
47
  ## Choose a runtime
48
48
 
49
49
  `workspaces.create({ repository, harness, runtime: "docker" })` requires Docker. The same option
50
- accepts `boat`, `k8s`, `k3s`, `cloudflare` or `microvm`. An unavailable or unsupported choice is
51
- refused rather than replaced with another runtime. Omit `runtime` to keep the deployment's default.
52
- The choice applies to this new workspace; it does not move an existing workspace.
50
+ accepts `boat`, `k8s`, `k3s`, `cloudflare`, `microvm` or `host-vm` (each workspace in its own VM on
51
+ the deployment's Linux KVM host). An unavailable or unsupported choice is refused rather than
52
+ replaced with another runtime. Omit `runtime` to keep the deployment's default. The choice applies
53
+ to this new workspace; it does not move an existing workspace.
53
54
 
54
55
  Boat still requires the operator's admission settings, a supported image and a capture source.
55
56
  Selecting it through the SDK grants no admission. The SDK returns the control plane's refusal in
@@ -308,6 +309,73 @@ Not covered, and worth saying plainly: a process that _deliberately_ writes a se
308
309
  the repository or to a mount is producing ordinary workspace state, and the redactor masks captured
309
310
  I/O, not files.
310
311
 
312
+ ## Network policy and brokered secrets
313
+
314
+ A network policy says what a workspace may reach. `standard` is the public internet without private,
315
+ metadata and host addresses; `restricted` is only the hosts, mirrors and resources it lists. A
316
+ brokered secret is one the workspace uses without ever holding it:
317
+
318
+ ```ts
319
+ const workspace = await sealant.workspaces.create({
320
+ repository: "github.com/acme/billing-service",
321
+ harness: codex(),
322
+ networkPolicy: {
323
+ mode: "restricted",
324
+ policyHash: "sha256:…", // your hash of this policy
325
+ allowHosts: [{ host: "api.github.com" }, { host: "registry.npmjs.org" }],
326
+ },
327
+ brokeredSecrets: [
328
+ {
329
+ secretId: "sec_github_1",
330
+ name: "GITHUB_AUTH",
331
+ placeholder: "sealant-github-placeholder",
332
+ secretRef: "github",
333
+ headerName: "Authorization",
334
+ bindHosts: ["api.github.com"],
335
+ },
336
+ ],
337
+ brokeredSecretValues: { github: "Bearer ghp_…" },
338
+ });
339
+ ```
340
+
341
+ - **The workspace only sees the placeholder.** It reads `sealant-github-placeholder` from
342
+ `GITHUB_AUTH`. When it sends the placeholder in `Authorization` over HTTPS to `api.github.com`,
343
+ the workspace's egress proxy puts the real value in its place. Sent anywhere else, the placeholder
344
+ is worthless.
345
+ - **Values are sealed, never shown.** `brokeredSecretValues` (keyed by `secretRef`) is sealed when
346
+ the control plane receives it and handed only to the egress proxy, again after every restart. It
347
+ is never in the spec, the workspace's environment or any read.
348
+ - **Never less than asked.** A runtime that cannot enforce the policy refuses the create (`422`,
349
+ `runtime-requirement-unsupported`); `workspaces.runtimes()` says what each runtime enforces under
350
+ `networkPolicy`. Docker runs a `restricted` workspace, or one with any brokered secret, behind an
351
+ egress proxy of its own. `restricted` together with Docker inside the workspace needs
352
+ `runtime: "host-vm"`, and so does `requireVmIsolation` (Boat and MicroVM also give each workspace
353
+ its own VM).
354
+ - **Checked before anything is sent**, with the control plane's rules and words (exported as
355
+ `networkPolicyProblems`, `brokeredSecretsProblems` and `brokeredSecretValuesProblems`): exact host
356
+ names only, never a wildcard; one header name per secret, never one that frames or routes the
357
+ request (`Host`, `Content-Length`, `Proxy-Authorization`…); a value for every secret. A refusal
358
+ has code `invalid_network_policy` and never quotes a value.
359
+
360
+ Change the policy on a live workspace, take access away, and read what holds now:
361
+
362
+ ```ts
363
+ const applied = await workspace.applyNetworkPolicy({
364
+ networkPolicy,
365
+ brokeredSecrets,
366
+ brokeredSecretValues,
367
+ });
368
+ await workspace.revokeAccess({ secretIds: ["sec_github_1"] });
369
+ const current = await workspace.networkPolicy(); // policy, secrets (no values), revocations, proxy
370
+ ```
371
+
372
+ Each change answers its `enforcement`: `enforced` (the proxy confirmed it; for a revocation, after
373
+ closing every matching stream), `pending` (stored, the proxy not reached yet; sealant keeps sending
374
+ it, and stops a proxy that misses a revocation), or `next-start` (stored; no proxy runs now, so it
375
+ applies when the workspace next starts). A revocation is durable and always wins: it survives
376
+ restarts and every later policy, so a revoked secret id stays revoked. To grant a secret again, list
377
+ it under a new `secretId`.
378
+
311
379
  ## Capture-sourced workspaces
312
380
 
313
381
  A `capture` source (sealantd ADR-0015) mounts nothing and clones nothing. The workspace daemon
package/dist/client.js CHANGED
@@ -164,8 +164,9 @@ export class Sealant {
164
164
  const answered = await this.#runtime.run(listWorkspaceRuntimesOp());
165
165
  return {
166
166
  default: answered.default,
167
- runtimes: answered.runtimes.map((support) => ({
167
+ runtimes: answered.runtimes.map(({ networkPolicy, ...support }) => ({
168
168
  ...support,
169
+ ...(networkPolicy === undefined ? {} : { networkPolicy }),
169
170
  screen: support.screen.supported
170
171
  ? { supported: true, architectures: [...support.screen.architectures] }
171
172
  : support.screen,
@@ -3629,6 +3629,53 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
3629
3629
  readonly createdAt: import("effect/Schema").String;
3630
3630
  readonly updatedAt: import("effect/Schema").String;
3631
3631
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceForbiddenError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceConflictError | typeof import("@sealant/api-contracts").WorkspaceBadGatewayError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
3632
+ readonly applyWorkspaceNetworkPolicy: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"applyWorkspaceNetworkPolicy", "PUT", "/v1/workspaces/:workspaceId/network-policy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3633
+ readonly workspaceId: import("effect/Schema").String;
3634
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3635
+ readonly ownerUserId: import("effect/Schema").String;
3636
+ readonly networkPolicy: import("effect/Schema").Struct<{
3637
+ readonly mode: import("effect/Schema").Literals<readonly ["standard", "restricted"]>;
3638
+ readonly policyHash: import("effect/Schema").String;
3639
+ readonly sourcePolicyId: import("effect/Schema").optional<import("effect/Schema").String>;
3640
+ readonly sourcePolicyRevision: import("effect/Schema").optional<import("effect/Schema").Int>;
3641
+ readonly requireVmIsolation: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3642
+ readonly allowHosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3643
+ readonly host: import("effect/Schema").String;
3644
+ readonly ports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Int>>;
3645
+ readonly inspectTls: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3646
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3647
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3648
+ }>>>;
3649
+ readonly allowMirrors: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3650
+ readonly name: import("effect/Schema").Literals<readonly ["npm", "docker"]>;
3651
+ readonly host: import("effect/Schema").String;
3652
+ readonly port: import("effect/Schema").Int;
3653
+ }>>>;
3654
+ readonly allowResources: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3655
+ readonly name: import("effect/Schema").String;
3656
+ readonly host: import("effect/Schema").String;
3657
+ readonly port: import("effect/Schema").Int;
3658
+ readonly guestIp: import("effect/Schema").String;
3659
+ }>>>;
3660
+ }>;
3661
+ readonly brokeredSecrets: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3662
+ readonly secretId: import("effect/Schema").String;
3663
+ readonly name: import("effect/Schema").String;
3664
+ readonly placeholder: import("effect/Schema").String;
3665
+ readonly secretRef: import("effect/Schema").String;
3666
+ readonly headerName: import("effect/Schema").String;
3667
+ readonly bindHosts: import("effect/Schema").$Array<import("effect/Schema").String>;
3668
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3669
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3670
+ }>>>;
3671
+ readonly brokeredSecretValues: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
3672
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3673
+ readonly workspaceId: import("effect/Schema").String;
3674
+ readonly policyHash: import("effect/Schema").String;
3675
+ readonly revocationWatermark: import("effect/Schema").Int;
3676
+ readonly enforcement: import("effect/Schema").Literals<readonly ["enforced", "pending", "next-start"]>;
3677
+ readonly closed: import("effect/Schema").optional<import("effect/Schema").Int>;
3678
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
3632
3679
  readonly bindWorkspace: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"bindWorkspace", "POST", "/v1/workspaces/:workspaceId/bind", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3633
3680
  readonly workspaceId: import("effect/Schema").String;
3634
3681
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -3689,6 +3736,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
3689
3736
  readonly spec: import("effect/Schema").Unknown;
3690
3737
  readonly secretEnv: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
3691
3738
  readonly captureToken: import("effect/Schema").optional<import("effect/Schema").String>;
3739
+ readonly brokeredSecretValues: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
3692
3740
  readonly ttlSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
3693
3741
  readonly idempotencyKey: import("effect/Schema").optional<import("effect/Schema").String>;
3694
3742
  readonly launchId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3704,7 +3752,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
3704
3752
  readonly tag: import("effect/Schema").String;
3705
3753
  readonly runId: import("effect/Schema").optional<import("effect/Schema").String>;
3706
3754
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
3707
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
3755
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
3708
3756
  readonly resourceId: import("effect/Schema").String;
3709
3757
  readonly reference: import("effect/Schema").String;
3710
3758
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -3868,7 +3916,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
3868
3916
  readonly repository: import("effect/Schema").optional<import("effect/Schema").String>;
3869
3917
  readonly tag: import("effect/Schema").optional<import("effect/Schema").String>;
3870
3918
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
3871
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
3919
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
3872
3920
  readonly resourceId: import("effect/Schema").String;
3873
3921
  readonly reference: import("effect/Schema").String;
3874
3922
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -4081,6 +4129,60 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4081
4129
  readonly runId: import("effect/Schema").optional<import("effect/Schema").String>;
4082
4130
  readonly launchId: import("effect/Schema").optional<import("effect/Schema").String>;
4083
4131
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4132
+ readonly getWorkspaceNetworkPolicy: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getWorkspaceNetworkPolicy", "GET", "/v1/workspaces/:workspaceId/network-policy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4133
+ readonly workspaceId: import("effect/Schema").String;
4134
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4135
+ readonly ownerUserId: import("effect/Schema").String;
4136
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4137
+ readonly workspaceId: import("effect/Schema").String;
4138
+ readonly networkPolicy: import("effect/Schema").optional<import("effect/Schema").Struct<{
4139
+ readonly mode: import("effect/Schema").Literals<readonly ["standard", "restricted"]>;
4140
+ readonly policyHash: import("effect/Schema").String;
4141
+ readonly sourcePolicyId: import("effect/Schema").optional<import("effect/Schema").String>;
4142
+ readonly sourcePolicyRevision: import("effect/Schema").optional<import("effect/Schema").Int>;
4143
+ readonly requireVmIsolation: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4144
+ readonly allowHosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4145
+ readonly host: import("effect/Schema").String;
4146
+ readonly ports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Int>>;
4147
+ readonly inspectTls: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4148
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4149
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4150
+ }>>>;
4151
+ readonly allowMirrors: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4152
+ readonly name: import("effect/Schema").Literals<readonly ["npm", "docker"]>;
4153
+ readonly host: import("effect/Schema").String;
4154
+ readonly port: import("effect/Schema").Int;
4155
+ }>>>;
4156
+ readonly allowResources: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4157
+ readonly name: import("effect/Schema").String;
4158
+ readonly host: import("effect/Schema").String;
4159
+ readonly port: import("effect/Schema").Int;
4160
+ readonly guestIp: import("effect/Schema").String;
4161
+ }>>>;
4162
+ }>>;
4163
+ readonly brokeredSecrets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4164
+ readonly secretId: import("effect/Schema").String;
4165
+ readonly name: import("effect/Schema").String;
4166
+ readonly placeholder: import("effect/Schema").String;
4167
+ readonly secretRef: import("effect/Schema").String;
4168
+ readonly headerName: import("effect/Schema").String;
4169
+ readonly bindHosts: import("effect/Schema").$Array<import("effect/Schema").String>;
4170
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4171
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4172
+ }>>;
4173
+ readonly revocationWatermark: import("effect/Schema").Int;
4174
+ readonly revocations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4175
+ readonly revocationWatermark: import("effect/Schema").Int;
4176
+ readonly kind: import("effect/Schema").Literals<readonly ["secret", "host", "all"]>;
4177
+ readonly target: import("effect/Schema").optional<import("effect/Schema").String>;
4178
+ readonly revokedAt: import("effect/Schema").String;
4179
+ }>>;
4180
+ readonly proxy: import("effect/Schema").optional<import("effect/Schema").Struct<{
4181
+ readonly runId: import("effect/Schema").String;
4182
+ readonly confirmedPolicyHash: import("effect/Schema").optional<import("effect/Schema").String>;
4183
+ readonly confirmedRevocationWatermark: import("effect/Schema").optional<import("effect/Schema").Int>;
4184
+ }>>;
4185
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4084
4186
  readonly getWorkspaceSshTarget: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getWorkspaceSshTarget", "GET", "/v1/workspaces/:workspaceId/ssh-target", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4085
4187
  readonly workspaceId: import("effect/Schema").String;
4086
4188
  }>>, never, never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -4092,7 +4194,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4092
4194
  readonly workspaceId: import("effect/Schema").String;
4093
4195
  readonly attemptId: import("effect/Schema").String;
4094
4196
  readonly runtime: import("effect/Schema").Struct<{
4095
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
4197
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
4096
4198
  readonly resourceId: import("effect/Schema").String;
4097
4199
  readonly reference: import("effect/Schema").String;
4098
4200
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped"]>;
@@ -4190,7 +4292,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4190
4292
  readonly triggerType: import("effect/Schema").Literals<readonly ["manual", "schedule", "api", "retry"]>;
4191
4293
  readonly triggerRef: import("effect/Schema").optional<import("effect/Schema").String>;
4192
4294
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
4193
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
4295
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
4194
4296
  readonly resourceId: import("effect/Schema").String;
4195
4297
  readonly reference: import("effect/Schema").String;
4196
4298
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -4357,9 +4459,9 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4357
4459
  }>>;
4358
4460
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4359
4461
  readonly listWorkspaceRuntimes: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listWorkspaceRuntimes", "GET", "/v1/workspaces/runtimes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4360
- readonly default: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
4462
+ readonly default: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
4361
4463
  readonly runtimes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4362
- readonly runtime: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
4464
+ readonly runtime: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
4363
4465
  readonly os: import("effect/Schema").Struct<{
4364
4466
  readonly ubuntu: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4365
4467
  readonly supported: import("effect/Schema").Literal<true>;
@@ -4447,6 +4549,32 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4447
4549
  readonly charged: import("effect/Schema").Boolean;
4448
4550
  readonly message: import("effect/Schema").String;
4449
4551
  }>;
4552
+ readonly networkPolicy: import("effect/Schema").optional<import("effect/Schema").Struct<{
4553
+ readonly vmIsolation: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4554
+ readonly supported: import("effect/Schema").Literal<true>;
4555
+ }>, import("effect/Schema").Struct<{
4556
+ readonly supported: import("effect/Schema").Literal<false>;
4557
+ readonly message: import("effect/Schema").String;
4558
+ }>]>;
4559
+ readonly restricted: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4560
+ readonly supported: import("effect/Schema").Literal<true>;
4561
+ }>, import("effect/Schema").Struct<{
4562
+ readonly supported: import("effect/Schema").Literal<false>;
4563
+ readonly message: import("effect/Schema").String;
4564
+ }>]>;
4565
+ readonly restrictedWithDocker: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4566
+ readonly supported: import("effect/Schema").Literal<true>;
4567
+ }>, import("effect/Schema").Struct<{
4568
+ readonly supported: import("effect/Schema").Literal<false>;
4569
+ readonly message: import("effect/Schema").String;
4570
+ }>]>;
4571
+ readonly brokeredSecrets: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4572
+ readonly supported: import("effect/Schema").Literal<true>;
4573
+ }>, import("effect/Schema").Struct<{
4574
+ readonly supported: import("effect/Schema").Literal<false>;
4575
+ readonly message: import("effect/Schema").String;
4576
+ }>]>;
4577
+ }>>;
4450
4578
  }>>;
4451
4579
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4452
4580
  readonly listWorkspaces: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listWorkspaces", "GET", "/v1/workspaces/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -4464,7 +4592,7 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4464
4592
  readonly repository: import("effect/Schema").optional<import("effect/Schema").String>;
4465
4593
  readonly tag: import("effect/Schema").optional<import("effect/Schema").String>;
4466
4594
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
4467
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
4595
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
4468
4596
  readonly resourceId: import("effect/Schema").String;
4469
4597
  readonly reference: import("effect/Schema").String;
4470
4598
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -4758,6 +4886,19 @@ declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect
4758
4886
  readonly runId: import("effect/Schema").String;
4759
4887
  readonly status: import("effect/Schema").Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
4760
4888
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BudgetExceededError | typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeEnvReferencesUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceDockerServiceUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceConflictError | typeof import("@sealant/api-contracts").WorkspaceBadGatewayError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4889
+ readonly revokeWorkspaceAccess: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"revokeWorkspaceAccess", "POST", "/v1/workspaces/:workspaceId/network-policy/revocations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4890
+ readonly workspaceId: import("effect/Schema").String;
4891
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4892
+ readonly ownerUserId: import("effect/Schema").String;
4893
+ readonly secretIds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4894
+ readonly hosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4895
+ readonly all: import("effect/Schema").optional<import("effect/Schema").Boolean>;
4896
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4897
+ readonly workspaceId: import("effect/Schema").String;
4898
+ readonly revocationWatermark: import("effect/Schema").Int;
4899
+ readonly enforcement: import("effect/Schema").Literals<readonly ["enforced", "pending", "next-start"]>;
4900
+ readonly closed: import("effect/Schema").optional<import("effect/Schema").Int>;
4901
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
4761
4902
  readonly stopWorkspace: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"stopWorkspace", "POST", "/v1/workspaces/:workspaceId/stop", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4762
4903
  readonly workspaceId: import("effect/Schema").String;
4763
4904
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -8413,6 +8554,53 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8413
8554
  readonly createdAt: import("effect/Schema").String;
8414
8555
  readonly updatedAt: import("effect/Schema").String;
8415
8556
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceForbiddenError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceConflictError | typeof import("@sealant/api-contracts").WorkspaceBadGatewayError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
8557
+ readonly applyWorkspaceNetworkPolicy: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"applyWorkspaceNetworkPolicy", "PUT", "/v1/workspaces/:workspaceId/network-policy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
8558
+ readonly workspaceId: import("effect/Schema").String;
8559
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
8560
+ readonly ownerUserId: import("effect/Schema").String;
8561
+ readonly networkPolicy: import("effect/Schema").Struct<{
8562
+ readonly mode: import("effect/Schema").Literals<readonly ["standard", "restricted"]>;
8563
+ readonly policyHash: import("effect/Schema").String;
8564
+ readonly sourcePolicyId: import("effect/Schema").optional<import("effect/Schema").String>;
8565
+ readonly sourcePolicyRevision: import("effect/Schema").optional<import("effect/Schema").Int>;
8566
+ readonly requireVmIsolation: import("effect/Schema").optional<import("effect/Schema").Boolean>;
8567
+ readonly allowHosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
8568
+ readonly host: import("effect/Schema").String;
8569
+ readonly ports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Int>>;
8570
+ readonly inspectTls: import("effect/Schema").optional<import("effect/Schema").Boolean>;
8571
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
8572
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
8573
+ }>>>;
8574
+ readonly allowMirrors: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
8575
+ readonly name: import("effect/Schema").Literals<readonly ["npm", "docker"]>;
8576
+ readonly host: import("effect/Schema").String;
8577
+ readonly port: import("effect/Schema").Int;
8578
+ }>>>;
8579
+ readonly allowResources: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
8580
+ readonly name: import("effect/Schema").String;
8581
+ readonly host: import("effect/Schema").String;
8582
+ readonly port: import("effect/Schema").Int;
8583
+ readonly guestIp: import("effect/Schema").String;
8584
+ }>>>;
8585
+ }>;
8586
+ readonly brokeredSecrets: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
8587
+ readonly secretId: import("effect/Schema").String;
8588
+ readonly name: import("effect/Schema").String;
8589
+ readonly placeholder: import("effect/Schema").String;
8590
+ readonly secretRef: import("effect/Schema").String;
8591
+ readonly headerName: import("effect/Schema").String;
8592
+ readonly bindHosts: import("effect/Schema").$Array<import("effect/Schema").String>;
8593
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
8594
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
8595
+ }>>>;
8596
+ readonly brokeredSecretValues: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
8597
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
8598
+ readonly workspaceId: import("effect/Schema").String;
8599
+ readonly policyHash: import("effect/Schema").String;
8600
+ readonly revocationWatermark: import("effect/Schema").Int;
8601
+ readonly enforcement: import("effect/Schema").Literals<readonly ["enforced", "pending", "next-start"]>;
8602
+ readonly closed: import("effect/Schema").optional<import("effect/Schema").Int>;
8603
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
8416
8604
  readonly bindWorkspace: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"bindWorkspace", "POST", "/v1/workspaces/:workspaceId/bind", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
8417
8605
  readonly workspaceId: import("effect/Schema").String;
8418
8606
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -8473,6 +8661,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8473
8661
  readonly spec: import("effect/Schema").Unknown;
8474
8662
  readonly secretEnv: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
8475
8663
  readonly captureToken: import("effect/Schema").optional<import("effect/Schema").String>;
8664
+ readonly brokeredSecretValues: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
8476
8665
  readonly ttlSeconds: import("effect/Schema").optional<import("effect/Schema").Int>;
8477
8666
  readonly idempotencyKey: import("effect/Schema").optional<import("effect/Schema").String>;
8478
8667
  readonly launchId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -8488,7 +8677,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8488
8677
  readonly tag: import("effect/Schema").String;
8489
8678
  readonly runId: import("effect/Schema").optional<import("effect/Schema").String>;
8490
8679
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
8491
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
8680
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
8492
8681
  readonly resourceId: import("effect/Schema").String;
8493
8682
  readonly reference: import("effect/Schema").String;
8494
8683
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -8652,7 +8841,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8652
8841
  readonly repository: import("effect/Schema").optional<import("effect/Schema").String>;
8653
8842
  readonly tag: import("effect/Schema").optional<import("effect/Schema").String>;
8654
8843
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
8655
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
8844
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
8656
8845
  readonly resourceId: import("effect/Schema").String;
8657
8846
  readonly reference: import("effect/Schema").String;
8658
8847
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -8865,6 +9054,60 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8865
9054
  readonly runId: import("effect/Schema").optional<import("effect/Schema").String>;
8866
9055
  readonly launchId: import("effect/Schema").optional<import("effect/Schema").String>;
8867
9056
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
9057
+ readonly getWorkspaceNetworkPolicy: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getWorkspaceNetworkPolicy", "GET", "/v1/workspaces/:workspaceId/network-policy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
9058
+ readonly workspaceId: import("effect/Schema").String;
9059
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
9060
+ readonly ownerUserId: import("effect/Schema").String;
9061
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
9062
+ readonly workspaceId: import("effect/Schema").String;
9063
+ readonly networkPolicy: import("effect/Schema").optional<import("effect/Schema").Struct<{
9064
+ readonly mode: import("effect/Schema").Literals<readonly ["standard", "restricted"]>;
9065
+ readonly policyHash: import("effect/Schema").String;
9066
+ readonly sourcePolicyId: import("effect/Schema").optional<import("effect/Schema").String>;
9067
+ readonly sourcePolicyRevision: import("effect/Schema").optional<import("effect/Schema").Int>;
9068
+ readonly requireVmIsolation: import("effect/Schema").optional<import("effect/Schema").Boolean>;
9069
+ readonly allowHosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
9070
+ readonly host: import("effect/Schema").String;
9071
+ readonly ports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Int>>;
9072
+ readonly inspectTls: import("effect/Schema").optional<import("effect/Schema").Boolean>;
9073
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9074
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9075
+ }>>>;
9076
+ readonly allowMirrors: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
9077
+ readonly name: import("effect/Schema").Literals<readonly ["npm", "docker"]>;
9078
+ readonly host: import("effect/Schema").String;
9079
+ readonly port: import("effect/Schema").Int;
9080
+ }>>>;
9081
+ readonly allowResources: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
9082
+ readonly name: import("effect/Schema").String;
9083
+ readonly host: import("effect/Schema").String;
9084
+ readonly port: import("effect/Schema").Int;
9085
+ readonly guestIp: import("effect/Schema").String;
9086
+ }>>>;
9087
+ }>>;
9088
+ readonly brokeredSecrets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
9089
+ readonly secretId: import("effect/Schema").String;
9090
+ readonly name: import("effect/Schema").String;
9091
+ readonly placeholder: import("effect/Schema").String;
9092
+ readonly secretRef: import("effect/Schema").String;
9093
+ readonly headerName: import("effect/Schema").String;
9094
+ readonly bindHosts: import("effect/Schema").$Array<import("effect/Schema").String>;
9095
+ readonly methods: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9096
+ readonly pathPrefixes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9097
+ }>>;
9098
+ readonly revocationWatermark: import("effect/Schema").Int;
9099
+ readonly revocations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
9100
+ readonly revocationWatermark: import("effect/Schema").Int;
9101
+ readonly kind: import("effect/Schema").Literals<readonly ["secret", "host", "all"]>;
9102
+ readonly target: import("effect/Schema").optional<import("effect/Schema").String>;
9103
+ readonly revokedAt: import("effect/Schema").String;
9104
+ }>>;
9105
+ readonly proxy: import("effect/Schema").optional<import("effect/Schema").Struct<{
9106
+ readonly runId: import("effect/Schema").String;
9107
+ readonly confirmedPolicyHash: import("effect/Schema").optional<import("effect/Schema").String>;
9108
+ readonly confirmedRevocationWatermark: import("effect/Schema").optional<import("effect/Schema").Int>;
9109
+ }>>;
9110
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
8868
9111
  readonly getWorkspaceSshTarget: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getWorkspaceSshTarget", "GET", "/v1/workspaces/:workspaceId/ssh-target", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
8869
9112
  readonly workspaceId: import("effect/Schema").String;
8870
9113
  }>>, never, never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -8876,7 +9119,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8876
9119
  readonly workspaceId: import("effect/Schema").String;
8877
9120
  readonly attemptId: import("effect/Schema").String;
8878
9121
  readonly runtime: import("effect/Schema").Struct<{
8879
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
9122
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
8880
9123
  readonly resourceId: import("effect/Schema").String;
8881
9124
  readonly reference: import("effect/Schema").String;
8882
9125
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped"]>;
@@ -8974,7 +9217,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
8974
9217
  readonly triggerType: import("effect/Schema").Literals<readonly ["manual", "schedule", "api", "retry"]>;
8975
9218
  readonly triggerRef: import("effect/Schema").optional<import("effect/Schema").String>;
8976
9219
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
8977
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
9220
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
8978
9221
  readonly resourceId: import("effect/Schema").String;
8979
9222
  readonly reference: import("effect/Schema").String;
8980
9223
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -9141,9 +9384,9 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
9141
9384
  }>>;
9142
9385
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
9143
9386
  readonly listWorkspaceRuntimes: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listWorkspaceRuntimes", "GET", "/v1/workspaces/runtimes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
9144
- readonly default: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
9387
+ readonly default: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
9145
9388
  readonly runtimes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
9146
- readonly runtime: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
9389
+ readonly runtime: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
9147
9390
  readonly os: import("effect/Schema").Struct<{
9148
9391
  readonly ubuntu: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9149
9392
  readonly supported: import("effect/Schema").Literal<true>;
@@ -9231,6 +9474,32 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
9231
9474
  readonly charged: import("effect/Schema").Boolean;
9232
9475
  readonly message: import("effect/Schema").String;
9233
9476
  }>;
9477
+ readonly networkPolicy: import("effect/Schema").optional<import("effect/Schema").Struct<{
9478
+ readonly vmIsolation: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9479
+ readonly supported: import("effect/Schema").Literal<true>;
9480
+ }>, import("effect/Schema").Struct<{
9481
+ readonly supported: import("effect/Schema").Literal<false>;
9482
+ readonly message: import("effect/Schema").String;
9483
+ }>]>;
9484
+ readonly restricted: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9485
+ readonly supported: import("effect/Schema").Literal<true>;
9486
+ }>, import("effect/Schema").Struct<{
9487
+ readonly supported: import("effect/Schema").Literal<false>;
9488
+ readonly message: import("effect/Schema").String;
9489
+ }>]>;
9490
+ readonly restrictedWithDocker: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9491
+ readonly supported: import("effect/Schema").Literal<true>;
9492
+ }>, import("effect/Schema").Struct<{
9493
+ readonly supported: import("effect/Schema").Literal<false>;
9494
+ readonly message: import("effect/Schema").String;
9495
+ }>]>;
9496
+ readonly brokeredSecrets: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9497
+ readonly supported: import("effect/Schema").Literal<true>;
9498
+ }>, import("effect/Schema").Struct<{
9499
+ readonly supported: import("effect/Schema").Literal<false>;
9500
+ readonly message: import("effect/Schema").String;
9501
+ }>]>;
9502
+ }>>;
9234
9503
  }>>;
9235
9504
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
9236
9505
  readonly listWorkspaces: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listWorkspaces", "GET", "/v1/workspaces/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
@@ -9248,7 +9517,7 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
9248
9517
  readonly repository: import("effect/Schema").optional<import("effect/Schema").String>;
9249
9518
  readonly tag: import("effect/Schema").optional<import("effect/Schema").String>;
9250
9519
  readonly runtime: import("effect/Schema").optional<import("effect/Schema").Struct<{
9251
- readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat"]>;
9520
+ readonly adapter: import("effect/Schema").Literals<readonly ["docker", "k8s", "k3s", "cloudflare", "microvm", "boat", "host-vm"]>;
9252
9521
  readonly resourceId: import("effect/Schema").String;
9253
9522
  readonly reference: import("effect/Schema").String;
9254
9523
  readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "ready", "failed", "stopped", "retained"]>;
@@ -9542,6 +9811,19 @@ declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@se
9542
9811
  readonly runId: import("effect/Schema").String;
9543
9812
  readonly status: import("effect/Schema").Literals<readonly ["queued", "running", "ready", "failed", "cancelled", "stopped", "retained"]>;
9544
9813
  }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").BudgetExceededError | typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeEnvReferencesUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceDockerServiceUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceConflictError | typeof import("@sealant/api-contracts").WorkspaceBadGatewayError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
9814
+ readonly revokeWorkspaceAccess: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"revokeWorkspaceAccess", "POST", "/v1/workspaces/:workspaceId/network-policy/revocations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
9815
+ readonly workspaceId: import("effect/Schema").String;
9816
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
9817
+ readonly ownerUserId: import("effect/Schema").String;
9818
+ readonly secretIds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9819
+ readonly hosts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
9820
+ readonly all: import("effect/Schema").optional<import("effect/Schema").Boolean>;
9821
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
9822
+ readonly workspaceId: import("effect/Schema").String;
9823
+ readonly revocationWatermark: import("effect/Schema").Int;
9824
+ readonly enforcement: import("effect/Schema").Literals<readonly ["enforced", "pending", "next-start"]>;
9825
+ readonly closed: import("effect/Schema").optional<import("effect/Schema").Int>;
9826
+ }>>, import("effect/Schema").toCodecJson<typeof import("@sealant/api-contracts").WorkspaceBadRequestError | typeof import("@sealant/api-contracts").WorkspaceRuntimeRequirementUnsupportedError | typeof import("@sealant/api-contracts").WorkspaceNotFoundError | typeof import("@sealant/api-contracts").WorkspaceServiceUnavailableError | typeof import("@sealant/api-contracts").WorkspaceInternalServerError>, import("@sealant/api-contracts").RequestBudget | import("@sealant/api-contracts").RequestRefusal, never>, never, never>;
9545
9827
  readonly stopWorkspace: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"stopWorkspace", "POST", "/v1/workspaces/:workspaceId/stop", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
9546
9828
  readonly workspaceId: import("effect/Schema").String;
9547
9829
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{