@@ -88,6 +88,12 @@ export interface NetworkPolicyCreateParameters {
8888 */
8989 name : string ;
9090
91+ /**
92+ * (Optional) If true, allows devbox egress to the AI credential gateway for
93+ * credential proxying. Defaults to false.
94+ */
95+ allow_ai_gateway ?: boolean | null ;
96+
9197 /**
9298 * (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
9399 * to false.
@@ -101,6 +107,12 @@ export interface NetworkPolicyCreateParameters {
101107 */
102108 allow_devbox_to_devbox ?: boolean | null ;
103109
110+ /**
111+ * (Optional) If true, allows devbox egress to the MCP hub for MCP server access.
112+ * Defaults to false.
113+ */
114+ allow_mcp_gateway ?: boolean | null ;
115+
104116 /**
105117 * (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
106118 * '*.npmjs.org'].
@@ -138,6 +150,11 @@ export interface NetworkPolicyListView {
138150 * Parameters for updating an existing NetworkPolicy. All fields are optional.
139151 */
140152export interface NetworkPolicyUpdateParameters {
153+ /**
154+ * If true, allows devbox egress to the AI credential gateway.
155+ */
156+ allow_ai_gateway ?: boolean | null ;
157+
141158 /**
142159 * If true, all egress traffic is allowed (ALLOW_ALL policy).
143160 */
@@ -148,6 +165,11 @@ export interface NetworkPolicyUpdateParameters {
148165 */
149166 allow_devbox_to_devbox ?: boolean | null ;
150167
168+ /**
169+ * If true, allows devbox egress to the MCP hub.
170+ */
171+ allow_mcp_gateway ?: boolean | null ;
172+
151173 /**
152174 * Updated DNS-based allow list with wildcard support. Examples: ['github.com',
153175 * '*.npmjs.org'].
@@ -206,6 +228,12 @@ export namespace NetworkPolicyView {
206228 * The egress rules for this policy.
207229 */
208230 export interface Egress {
231+ /**
232+ * If true, allows devbox egress to the AI credential gateway for credential
233+ * proxying.
234+ */
235+ allow_ai_gateway : boolean ;
236+
209237 /**
210238 * If true, all egress traffic is allowed and other fields are ignored. Used for
211239 * ALLOW_ALL policies.
@@ -217,6 +245,11 @@ export namespace NetworkPolicyView {
217245 */
218246 allow_devbox_to_devbox : boolean ;
219247
248+ /**
249+ * If true, allows devbox egress to the MCP hub for MCP server access.
250+ */
251+ allow_mcp_gateway : boolean ;
252+
220253 /**
221254 * DNS-based allow list with wildcard support. Examples: ['github.com',
222255 * '*.npmjs.org', 'api.openai.com']. Empty list with allow_all=false means no
@@ -233,6 +266,12 @@ export interface NetworkPolicyCreateParams {
233266 */
234267 name : string ;
235268
269+ /**
270+ * (Optional) If true, allows devbox egress to the AI credential gateway for
271+ * credential proxying. Defaults to false.
272+ */
273+ allow_ai_gateway ?: boolean | null ;
274+
236275 /**
237276 * (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
238277 * to false.
@@ -246,6 +285,12 @@ export interface NetworkPolicyCreateParams {
246285 */
247286 allow_devbox_to_devbox ?: boolean | null ;
248287
288+ /**
289+ * (Optional) If true, allows devbox egress to the MCP hub for MCP server access.
290+ * Defaults to false.
291+ */
292+ allow_mcp_gateway ?: boolean | null ;
293+
249294 /**
250295 * (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
251296 * '*.npmjs.org'].
@@ -259,6 +304,11 @@ export interface NetworkPolicyCreateParams {
259304}
260305
261306export interface NetworkPolicyUpdateParams {
307+ /**
308+ * If true, allows devbox egress to the AI credential gateway.
309+ */
310+ allow_ai_gateway ?: boolean | null ;
311+
262312 /**
263313 * If true, all egress traffic is allowed (ALLOW_ALL policy).
264314 */
@@ -269,6 +319,11 @@ export interface NetworkPolicyUpdateParams {
269319 */
270320 allow_devbox_to_devbox ?: boolean | null ;
271321
322+ /**
323+ * If true, allows devbox egress to the MCP hub.
324+ */
325+ allow_mcp_gateway ?: boolean | null ;
326+
272327 /**
273328 * Updated DNS-based allow list with wildcard support. Examples: ['github.com',
274329 * '*.npmjs.org'].
0 commit comments