Skip to content

Commit f6682ad

Browse files
Update client for API v1.0.0-beta.11
Auto-generated from devgraph@fbb5c08b796a6bfd33a744339a1198458516b6ff Spec URL: https://github.com/arctir/devgraph-api/tree/v1.0.0-beta.11
1 parent 4033e7a commit f6682ad

5 files changed

Lines changed: 27 additions & 18 deletions

File tree

devgraph_client/api/entities/create_entity_definition.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def sync_detailed(
7171
) -> Response[Any | EntityDefinitionResponse | HTTPValidationError]:
7272
"""Create Entity Definition
7373
74+
Create a new entity definition with schema and storage configuration
75+
7476
Args:
7577
body (EntityDefinitionSpec):
7678
@@ -100,6 +102,8 @@ def sync(
100102
) -> Any | EntityDefinitionResponse | HTTPValidationError | None:
101103
"""Create Entity Definition
102104
105+
Create a new entity definition with schema and storage configuration
106+
103107
Args:
104108
body (EntityDefinitionSpec):
105109
@@ -124,6 +128,8 @@ async def asyncio_detailed(
124128
) -> Response[Any | EntityDefinitionResponse | HTTPValidationError]:
125129
"""Create Entity Definition
126130
131+
Create a new entity definition with schema and storage configuration
132+
127133
Args:
128134
body (EntityDefinitionSpec):
129135
@@ -151,6 +157,8 @@ async def asyncio(
151157
) -> Any | EntityDefinitionResponse | HTTPValidationError | None:
152158
"""Create Entity Definition
153159
160+
Create a new entity definition with schema and storage configuration
161+
154162
Args:
155163
body (EntityDefinitionSpec):
156164

devgraph_client/api/entities/delete_entity_definition.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def sync_detailed(
7171
) -> Response[Any | HTTPValidationError]:
7272
"""Delete an entity definition
7373
74-
Deletes an entity definition and all its versions. Requires 'delete:entitydefinitions' permission.
74+
Soft deletes an entity definition, all its versions, and optionally marks associated entities as
75+
orphans
7576
7677
Args:
7778
definition_id (UUID):
@@ -106,7 +107,8 @@ def sync(
106107
) -> Any | HTTPValidationError | None:
107108
"""Delete an entity definition
108109
109-
Deletes an entity definition and all its versions. Requires 'delete:entitydefinitions' permission.
110+
Soft deletes an entity definition, all its versions, and optionally marks associated entities as
111+
orphans
110112
111113
Args:
112114
definition_id (UUID):
@@ -136,7 +138,8 @@ async def asyncio_detailed(
136138
) -> Response[Any | HTTPValidationError]:
137139
"""Delete an entity definition
138140
139-
Deletes an entity definition and all its versions. Requires 'delete:entitydefinitions' permission.
141+
Soft deletes an entity definition, all its versions, and optionally marks associated entities as
142+
orphans
140143
141144
Args:
142145
definition_id (UUID):
@@ -169,7 +172,8 @@ async def asyncio(
169172
) -> Any | HTTPValidationError | None:
170173
"""Delete an entity definition
171174
172-
Deletes an entity definition and all its versions. Requires 'delete:entitydefinitions' permission.
175+
Soft deletes an entity definition, all its versions, and optionally marks associated entities as
176+
orphans
173177
174178
Args:
175179
definition_id (UUID):

devgraph_client/api/entities/get_entity_definitions.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def sync_detailed(
5858
) -> Response[Any | list[EntityDefinitionResponse]]:
5959
"""Retrieve all entity definitions with their versions
6060
61-
Fetches a list of all entity definitions and their associated versions from the database. Requires
62-
'list:entitydefinitions' permission.
61+
Fetches a list of all entity definitions with versions, ordered by group and kind
6362
6463
Raises:
6564
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -84,8 +83,7 @@ def sync(
8483
) -> Any | list[EntityDefinitionResponse] | None:
8584
"""Retrieve all entity definitions with their versions
8685
87-
Fetches a list of all entity definitions and their associated versions from the database. Requires
88-
'list:entitydefinitions' permission.
86+
Fetches a list of all entity definitions with versions, ordered by group and kind
8987
9088
Raises:
9189
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -106,8 +104,7 @@ async def asyncio_detailed(
106104
) -> Response[Any | list[EntityDefinitionResponse]]:
107105
"""Retrieve all entity definitions with their versions
108106
109-
Fetches a list of all entity definitions and their associated versions from the database. Requires
110-
'list:entitydefinitions' permission.
107+
Fetches a list of all entity definitions with versions, ordered by group and kind
111108
112109
Raises:
113110
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -130,8 +127,7 @@ async def asyncio(
130127
) -> Any | list[EntityDefinitionResponse] | None:
131128
"""Retrieve all entity definitions with their versions
132129
133-
Fetches a list of all entity definitions and their associated versions from the database. Requires
134-
'list:entitydefinitions' permission.
130+
Fetches a list of all entity definitions with versions, ordered by group and kind
135131
136132
Raises:
137133
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

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.8"
3+
version = "1.0.0-beta.11"
44
description = "A client library for accessing Devgraph AI API"
55
authors = []
66
readme = "README.md"

specs/openapi.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ 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.8
5+
version: 1.0.0-beta.11
66
paths:
77
/api/v1/entities/definitions:
88
get:
99
tags:
1010
- entities
1111
summary: Retrieve all entity definitions with their versions
12-
description: Fetches a list of all entity definitions and their associated versions
13-
from the database. Requires 'list:entitydefinitions' permission.
12+
description: Fetches a list of all entity definitions with versions, ordered
13+
by group and kind
1414
operationId: get_entity_definitions
1515
responses:
1616
'200':
@@ -30,6 +30,7 @@ paths:
3030
tags:
3131
- entities
3232
summary: Create Entity Definition
33+
description: Create a new entity definition with schema and storage configuration
3334
operationId: create_entity_definition
3435
requestBody:
3536
content:
@@ -59,8 +60,8 @@ paths:
5960
tags:
6061
- entities
6162
summary: Delete an entity definition
62-
description: Deletes an entity definition and all its versions. Requires 'delete:entitydefinitions'
63-
permission.
63+
description: Soft deletes an entity definition, all its versions, and optionally
64+
marks associated entities as orphans
6465
operationId: delete_entity_definition
6566
security:
6667
- OAuth2PasswordBearer: []

0 commit comments

Comments
 (0)