Skip to content

Commit aa2644d

Browse files
Update client for API v1.0.0-beta.27
Auto-generated from devgraph@9702f718acdf6fa571228fada9b90583c8f7f8d9 Spec URL: https://github.com/arctir/devgraph-api/tree/v1.0.0-beta.27
1 parent 0cbd4d2 commit aa2644d

6 files changed

Lines changed: 67 additions & 28 deletions

File tree

devgraph_client/api/renderers/get_renderer_allowlist_api_v1_renderers_allowlist_get.py

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@ def _build_response(
4848

4949
def sync_detailed(
5050
*,
51-
client: AuthenticatedClient | Client,
51+
client: AuthenticatedClient,
5252
) -> Response[list[RendererManifest]]:
5353
"""Get Renderer Allowlist
5454
5555
Get the list of allowed renderer domains.
5656
57-
In production, this could be loaded from:
58-
- Database
59-
- Environment variables
60-
- External config service
57+
Returns static allowlist plus dynamically loaded domains from
58+
MCP endpoints with allow_renderers enabled.
6159
6260
Raises:
6361
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -78,16 +76,14 @@ def sync_detailed(
7876

7977
def sync(
8078
*,
81-
client: AuthenticatedClient | Client,
79+
client: AuthenticatedClient,
8280
) -> list[RendererManifest] | None:
8381
"""Get Renderer Allowlist
8482
8583
Get the list of allowed renderer domains.
8684
87-
In production, this could be loaded from:
88-
- Database
89-
- Environment variables
90-
- External config service
85+
Returns static allowlist plus dynamically loaded domains from
86+
MCP endpoints with allow_renderers enabled.
9187
9288
Raises:
9389
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -104,16 +100,14 @@ def sync(
104100

105101
async def asyncio_detailed(
106102
*,
107-
client: AuthenticatedClient | Client,
103+
client: AuthenticatedClient,
108104
) -> Response[list[RendererManifest]]:
109105
"""Get Renderer Allowlist
110106
111107
Get the list of allowed renderer domains.
112108
113-
In production, this could be loaded from:
114-
- Database
115-
- Environment variables
116-
- External config service
109+
Returns static allowlist plus dynamically loaded domains from
110+
MCP endpoints with allow_renderers enabled.
117111
118112
Raises:
119113
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -132,16 +126,14 @@ async def asyncio_detailed(
132126

133127
async def asyncio(
134128
*,
135-
client: AuthenticatedClient | Client,
129+
client: AuthenticatedClient,
136130
) -> list[RendererManifest] | None:
137131
"""Get Renderer Allowlist
138132
139133
Get the list of allowed renderer domains.
140134
141-
In production, this could be loaded from:
142-
- Database
143-
- Environment variables
144-
- External config service
135+
Returns static allowlist plus dynamically loaded domains from
136+
MCP endpoints with allow_renderers enabled.
145137
146138
Raises:
147139
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

devgraph_client/models/mcp_endpoint_create.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class MCPEndpointCreate:
3131
active (bool | Unset): Default: True.
3232
allowed_tools (list[str] | None | Unset):
3333
denied_tools (list[str] | None | Unset):
34+
allow_renderers (bool | Unset): Default: False.
3435
"""
3536

3637
name: str
@@ -44,6 +45,7 @@ class MCPEndpointCreate:
4445
active: bool | Unset = True
4546
allowed_tools: list[str] | None | Unset = UNSET
4647
denied_tools: list[str] | None | Unset = UNSET
48+
allow_renderers: bool | Unset = False
4749
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
4850

4951
def to_dict(self) -> dict[str, Any]:
@@ -95,6 +97,8 @@ def to_dict(self) -> dict[str, Any]:
9597
else:
9698
denied_tools = self.denied_tools
9799

100+
allow_renderers = self.allow_renderers
101+
98102
field_dict: dict[str, Any] = {}
99103
field_dict.update(self.additional_properties)
100104
field_dict.update(
@@ -121,6 +125,8 @@ def to_dict(self) -> dict[str, Any]:
121125
field_dict["allowed_tools"] = allowed_tools
122126
if denied_tools is not UNSET:
123127
field_dict["denied_tools"] = denied_tools
128+
if allow_renderers is not UNSET:
129+
field_dict["allow_renderers"] = allow_renderers
124130

125131
return field_dict
126132

@@ -208,6 +214,8 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
208214

209215
denied_tools = _parse_denied_tools(d.pop("denied_tools", UNSET))
210216

217+
allow_renderers = d.pop("allow_renderers", UNSET)
218+
211219
mcp_endpoint_create = cls(
212220
name=name,
213221
url=url,
@@ -220,6 +228,7 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
220228
active=active,
221229
allowed_tools=allowed_tools,
222230
denied_tools=denied_tools,
231+
allow_renderers=allow_renderers,
223232
)
224233

225234
mcp_endpoint_create.additional_properties = d

devgraph_client/models/mcp_endpoint_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class MCPEndpointResponse:
3232
active (bool | Unset): Default: True.
3333
allowed_tools (list[str] | None | Unset):
3434
denied_tools (list[str] | None | Unset):
35+
allow_renderers (bool | Unset): Default: False.
3536
"""
3637

3738
id: UUID
@@ -46,6 +47,7 @@ class MCPEndpointResponse:
4647
active: bool | Unset = True
4748
allowed_tools: list[str] | None | Unset = UNSET
4849
denied_tools: list[str] | None | Unset = UNSET
50+
allow_renderers: bool | Unset = False
4951
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
5052

5153
def to_dict(self) -> dict[str, Any]:
@@ -99,6 +101,8 @@ def to_dict(self) -> dict[str, Any]:
99101
else:
100102
denied_tools = self.denied_tools
101103

104+
allow_renderers = self.allow_renderers
105+
102106
field_dict: dict[str, Any] = {}
103107
field_dict.update(self.additional_properties)
104108
field_dict.update(
@@ -126,6 +130,8 @@ def to_dict(self) -> dict[str, Any]:
126130
field_dict["allowed_tools"] = allowed_tools
127131
if denied_tools is not UNSET:
128132
field_dict["denied_tools"] = denied_tools
133+
if allow_renderers is not UNSET:
134+
field_dict["allow_renderers"] = allow_renderers
129135

130136
return field_dict
131137

@@ -215,6 +221,8 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
215221

216222
denied_tools = _parse_denied_tools(d.pop("denied_tools", UNSET))
217223

224+
allow_renderers = d.pop("allow_renderers", UNSET)
225+
218226
mcp_endpoint_response = cls(
219227
id=id,
220228
name=name,
@@ -228,6 +236,7 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
228236
active=active,
229237
allowed_tools=allowed_tools,
230238
denied_tools=denied_tools,
239+
allow_renderers=allow_renderers,
231240
)
232241

233242
mcp_endpoint_response.additional_properties = d

devgraph_client/models/mcp_endpoint_update.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class MCPEndpointUpdate:
3131
active (bool | None | Unset):
3232
allowed_tools (list[str] | None | Unset):
3333
denied_tools (list[str] | None | Unset):
34+
allow_renderers (bool | None | Unset):
3435
"""
3536

3637
name: None | str | Unset = UNSET
@@ -44,6 +45,7 @@ class MCPEndpointUpdate:
4445
active: bool | None | Unset = UNSET
4546
allowed_tools: list[str] | None | Unset = UNSET
4647
denied_tools: list[str] | None | Unset = UNSET
48+
allow_renderers: bool | None | Unset = UNSET
4749
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
4850

4951
def to_dict(self) -> dict[str, Any]:
@@ -125,6 +127,12 @@ def to_dict(self) -> dict[str, Any]:
125127
else:
126128
denied_tools = self.denied_tools
127129

130+
allow_renderers: bool | None | Unset
131+
if isinstance(self.allow_renderers, Unset):
132+
allow_renderers = UNSET
133+
else:
134+
allow_renderers = self.allow_renderers
135+
128136
field_dict: dict[str, Any] = {}
129137
field_dict.update(self.additional_properties)
130138
field_dict.update({})
@@ -150,6 +158,8 @@ def to_dict(self) -> dict[str, Any]:
150158
field_dict["allowed_tools"] = allowed_tools
151159
if denied_tools is not UNSET:
152160
field_dict["denied_tools"] = denied_tools
161+
if allow_renderers is not UNSET:
162+
field_dict["allow_renderers"] = allow_renderers
153163

154164
return field_dict
155165

@@ -290,6 +300,15 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
290300

291301
denied_tools = _parse_denied_tools(d.pop("denied_tools", UNSET))
292302

303+
def _parse_allow_renderers(data: object) -> bool | None | Unset:
304+
if data is None:
305+
return data
306+
if isinstance(data, Unset):
307+
return data
308+
return cast(bool | None | Unset, data)
309+
310+
allow_renderers = _parse_allow_renderers(d.pop("allow_renderers", UNSET))
311+
293312
mcp_endpoint_update = cls(
294313
name=name,
295314
url=url,
@@ -302,6 +321,7 @@ def _parse_denied_tools(data: object) -> list[str] | None | Unset:
302321
active=active,
303322
allowed_tools=allowed_tools,
304323
denied_tools=denied_tools,
324+
allow_renderers=allow_renderers,
305325
)
306326

307327
mcp_endpoint_update.additional_properties = d

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "devgraph-client"
3-
version = "1.0.0-beta.25"
3+
version = "1.0.0-beta.27"
44
description = "A client library for accessing Devgraph AI API"
55
authors = []
66
readme = "README.md"

specs/openapi.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.1.0
22
info:
33
title: Devgraph AI API
44
description: The Devgraph AI ontology engine and entity management API
5-
version: 1.0.0-beta.25
5+
version: 1.0.0-beta.27
66
paths:
77
/api/v1/entities/definitions:
88
get:
@@ -2332,13 +2332,9 @@ paths:
23322332
description: 'Get the list of allowed renderer domains.
23332333
23342334
2335-
In production, this could be loaded from:
2335+
Returns static allowlist plus dynamically loaded domains from
23362336
2337-
- Database
2338-
2339-
- Environment variables
2340-
2341-
- External config service'
2337+
MCP endpoints with allow_renderers enabled.'
23422338
operationId: get_renderer_allowlist_api_v1_renderers_allowlist_get
23432339
responses:
23442340
'200':
@@ -2351,6 +2347,8 @@ paths:
23512347
type: array
23522348
title: Response Get Renderer Allowlist Api V1 Renderers Allowlist
23532349
Get
2350+
security:
2351+
- OAuth2PasswordBearer: []
23542352
/api/v1/subscriptions:
23552353
get:
23562354
tags:
@@ -4688,6 +4686,10 @@ components:
46884686
type: string
46894687
type: array
46904688
nullable: true
4689+
allow_renderers:
4690+
type: boolean
4691+
title: Allow Renderers
4692+
default: false
46914693
type: object
46924694
required:
46934695
- name
@@ -4744,6 +4746,10 @@ components:
47444746
type: string
47454747
type: array
47464748
nullable: true
4749+
allow_renderers:
4750+
type: boolean
4751+
title: Allow Renderers
4752+
default: false
47474753
type: object
47484754
required:
47494755
- id
@@ -4792,6 +4798,9 @@ components:
47924798
type: string
47934799
type: array
47944800
nullable: true
4801+
allow_renderers:
4802+
type: boolean
4803+
nullable: true
47954804
type: object
47964805
title: MCPEndpointUpdate
47974806
MCPToolEntityAssociationCreate:

0 commit comments

Comments
 (0)