Skip to content

Commit 81075fa

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent e9b4ae4 commit 81075fa

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6561,6 +6561,8 @@ components:
65616561
example:
65626562
type: 'container_auto'
65636563
properties:
6564+
network_policy:
6565+
$ref: '#/components/schemas/ContainerNetworkPolicy'
65646566
type:
65656567
enum:
65666568
- 'container_auto'
@@ -6642,6 +6644,46 @@ components:
66426644
- 'last_id'
66436645
- 'has_more'
66446646
type: 'object'
6647+
ContainerNetworkPolicy:
6648+
anyOf:
6649+
- properties:
6650+
type:
6651+
description: 'No outbound internet access.'
6652+
enum:
6653+
- 'disabled'
6654+
type: 'string'
6655+
required:
6656+
- 'type'
6657+
type: 'object'
6658+
- properties:
6659+
allowed_domains:
6660+
description: 'Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).'
6661+
example:
6662+
- 'pypi.org'
6663+
- 'files.pythonhosted.org'
6664+
items:
6665+
maxLength: 253
6666+
minLength: 1
6667+
pattern: '^[a-z0-9*]([a-z0-9*-]{0,61}[a-z0-9*])?(\.[a-z0-9*]([a-z0-9*-]{0,61}[a-z0-9*])?)*$'
6668+
type: 'string'
6669+
maxItems: 50
6670+
minItems: 1
6671+
type: 'array'
6672+
type:
6673+
description: 'Outbound access restricted to the listed domains.'
6674+
enum:
6675+
- 'allowlist'
6676+
type: 'string'
6677+
required:
6678+
- 'type'
6679+
- 'allowed_domains'
6680+
type: 'object'
6681+
description: 'Network egress policy for the container. "disabled" blocks all outbound internet; "allowlist" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to "disabled" (no outbound internet). For unrestricted egress, use an allowlist of ["*"].'
6682+
example:
6683+
allowed_domains:
6684+
- 'pypi.org'
6685+
- 'files.pythonhosted.org'
6686+
type: 'allowlist'
66456687
ContainerReferenceEnvironment:
66466688
description: 'Reference to a container by its canonical id — a previously returned container_id or a fresh name to create a persistent container.'
66476689
example:
@@ -6655,6 +6697,8 @@ components:
66556697
minLength: 1
66566698
pattern: '^[\w-]+$'
66576699
type: 'string'
6700+
network_policy:
6701+
$ref: '#/components/schemas/ContainerNetworkPolicy'
66586702
type:
66596703
enum:
66606704
- 'container_reference'

0 commit comments

Comments
 (0)