UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

31 lines (30 loc) 1.21 kB
import type * as Vercel from "#compiled/@vercel/sandbox/index.js"; /** * Firewall network policy applied to a live sandbox session. * * eve-owned alias of the provider network-policy shape. Use it to restrict * egress (`"deny-all"`, an allow-list) or to broker credentials onto * outgoing requests. A per-domain `transform` injects headers at the * firewall so secrets never enter the sandbox process: * * ```ts * const sandbox = await ctx.getSandbox(); * await sandbox.setNetworkPolicy({ * allow: { * "github.com": [{ transform: [{ headers: { authorization: "Basic ..." } }] }], * "*": [], * }, * }); * ``` * * The Docker provider honors only the coarse `"allow-all"` and * `"deny-all"` policies; the just-bash provider rejects `setNetworkPolicy` * entirely (its network policy is fixed at sandbox creation and it runs * no binaries to govern). */ export type SandboxNetworkPolicy = Vercel.NetworkPolicy; /** Initial network configuration shared by network-capable sandbox providers. */ export interface SandboxNetworkOptions { readonly networkPolicy?: SandboxNetworkPolicy; } export declare function isSandboxNetworkPolicy(value: unknown): value is SandboxNetworkPolicy;