Skip to content

Commit 2be86e0

Browse files
committed
Update API documentation and enhance file management features
## Summary This commit updates the API documentation for various endpoints and enhances file management functionalities, improving clarity and usability. ## Key Changes - Revised example requests and responses in the `create_graph`, `get_available_extensions`, `get_graphs`, and `select_graph` endpoints to reflect updated entity names and descriptions. - Enhanced documentation for file management operations, including `delete_file`, `get_file_info`, `get_upload_url`, and `update_file_status`, to provide clearer usage instructions and examples. - Improved the handling of file statuses and upload processes, ensuring better validation and error reporting. ## Testing Notes - Verify that the updated documentation accurately reflects the API behavior. - Test file management operations to ensure they function as expected with the new documentation. ## Infrastructure Considerations The documentation updates and enhancements to file management features will improve developer experience and reduce confusion during API integration.
1 parent c988828 commit 2be86e0

17 files changed

Lines changed: 1850 additions & 2399 deletions

‎robosystems_client/api/graphs/create_graph.py‎

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ def sync_detailed(
108108
109109
Args:
110110
body (CreateGraphRequest): Request model for creating a new graph. Example:
111-
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
112-
'instance_tier': 'kuzu-standard', 'metadata': {'description': 'Main production graph',
113-
'graph_name': 'Production System', 'schema_extensions': ['roboledger']}, 'tags':
114-
['production', 'finance']}.
111+
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Consulting LLC', 'uri':
112+
'https://acmeconsulting.com'}, 'instance_tier': 'kuzu-standard', 'metadata':
113+
{'description': 'Professional consulting services with full accounting integration',
114+
'graph_name': 'Acme Consulting LLC', 'schema_extensions': ['roboledger']}, 'tags':
115+
['consulting', 'professional-services']}.
115116
116117
Raises:
117118
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -182,10 +183,11 @@ def sync(
182183
183184
Args:
184185
body (CreateGraphRequest): Request model for creating a new graph. Example:
185-
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
186-
'instance_tier': 'kuzu-standard', 'metadata': {'description': 'Main production graph',
187-
'graph_name': 'Production System', 'schema_extensions': ['roboledger']}, 'tags':
188-
['production', 'finance']}.
186+
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Consulting LLC', 'uri':
187+
'https://acmeconsulting.com'}, 'instance_tier': 'kuzu-standard', 'metadata':
188+
{'description': 'Professional consulting services with full accounting integration',
189+
'graph_name': 'Acme Consulting LLC', 'schema_extensions': ['roboledger']}, 'tags':
190+
['consulting', 'professional-services']}.
189191
190192
Raises:
191193
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -251,10 +253,11 @@ async def asyncio_detailed(
251253
252254
Args:
253255
body (CreateGraphRequest): Request model for creating a new graph. Example:
254-
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
255-
'instance_tier': 'kuzu-standard', 'metadata': {'description': 'Main production graph',
256-
'graph_name': 'Production System', 'schema_extensions': ['roboledger']}, 'tags':
257-
['production', 'finance']}.
256+
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Consulting LLC', 'uri':
257+
'https://acmeconsulting.com'}, 'instance_tier': 'kuzu-standard', 'metadata':
258+
{'description': 'Professional consulting services with full accounting integration',
259+
'graph_name': 'Acme Consulting LLC', 'schema_extensions': ['roboledger']}, 'tags':
260+
['consulting', 'professional-services']}.
258261
259262
Raises:
260263
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -323,10 +326,11 @@ async def asyncio(
323326
324327
Args:
325328
body (CreateGraphRequest): Request model for creating a new graph. Example:
326-
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Corp', 'uri': 'https://acme.com'},
327-
'instance_tier': 'kuzu-standard', 'metadata': {'description': 'Main production graph',
328-
'graph_name': 'Production System', 'schema_extensions': ['roboledger']}, 'tags':
329-
['production', 'finance']}.
329+
{'initial_entity': {'cik': '0001234567', 'name': 'Acme Consulting LLC', 'uri':
330+
'https://acmeconsulting.com'}, 'instance_tier': 'kuzu-standard', 'metadata':
331+
{'description': 'Professional consulting services with full accounting integration',
332+
'graph_name': 'Acme Consulting LLC', 'schema_extensions': ['roboledger']}, 'tags':
333+
['consulting', 'professional-services']}.
330334
331335
Raises:
332336
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

‎robosystems_client/api/graphs/get_available_extensions.py‎

Lines changed: 131 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Optional, Union
2+
from typing import Any, Optional, Union, cast
33

44
import httpx
55

@@ -20,12 +20,16 @@ def _get_kwargs() -> dict[str, Any]:
2020

2121
def _parse_response(
2222
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
23-
) -> Optional[AvailableExtensionsResponse]:
23+
) -> Optional[Union[Any, AvailableExtensionsResponse]]:
2424
if response.status_code == 200:
2525
response_200 = AvailableExtensionsResponse.from_dict(response.json())
2626

2727
return response_200
2828

29+
if response.status_code == 500:
30+
response_500 = cast(Any, None)
31+
return response_500
32+
2933
if client.raise_on_unexpected_status:
3034
raise errors.UnexpectedStatus(response.status_code, response.content)
3135
else:
@@ -34,7 +38,7 @@ def _parse_response(
3438

3539
def _build_response(
3640
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
37-
) -> Response[AvailableExtensionsResponse]:
41+
) -> Response[Union[Any, AvailableExtensionsResponse]]:
3842
return Response(
3943
status_code=HTTPStatus(response.status_code),
4044
content=response.content,
@@ -46,17 +50,45 @@ def _build_response(
4650
def sync_detailed(
4751
*,
4852
client: AuthenticatedClient,
49-
) -> Response[AvailableExtensionsResponse]:
53+
) -> Response[Union[Any, AvailableExtensionsResponse]]:
5054
"""Get Available Schema Extensions
5155
52-
List all available schema extensions for graph creation
56+
List all available schema extensions for graph creation.
57+
58+
Schema extensions provide pre-built industry-specific data models that extend
59+
the base graph schema with specialized nodes, relationships, and properties.
60+
61+
**Available Extensions:**
62+
- **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial
63+
statements
64+
- **RoboInvestor**: Investment portfolio management and tracking
65+
- **RoboSCM**: Supply chain management and logistics
66+
- **RoboFO**: Front office operations and CRM
67+
- **RoboHRM**: Human resources management
68+
- **RoboEPM**: Enterprise performance management
69+
- **RoboReport**: Business intelligence and reporting
70+
71+
**Extension Information:**
72+
Each extension includes:
73+
- Display name and description
74+
- Node and relationship counts
75+
- Context-aware capabilities (e.g., SEC repositories get different features than entity graphs)
76+
77+
**Use Cases:**
78+
- Browse available extensions before creating a graph
79+
- Understand extension capabilities and data models
80+
- Plan graph schema based on business requirements
81+
- Combine multiple extensions for comprehensive data modeling
82+
83+
**Note:**
84+
Extension listing is included - no credit consumption required.
5385
5486
Raises:
5587
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
5688
httpx.TimeoutException: If the request takes longer than Client.timeout.
5789
5890
Returns:
59-
Response[AvailableExtensionsResponse]
91+
Response[Union[Any, AvailableExtensionsResponse]]
6092
"""
6193

6294
kwargs = _get_kwargs()
@@ -71,17 +103,45 @@ def sync_detailed(
71103
def sync(
72104
*,
73105
client: AuthenticatedClient,
74-
) -> Optional[AvailableExtensionsResponse]:
106+
) -> Optional[Union[Any, AvailableExtensionsResponse]]:
75107
"""Get Available Schema Extensions
76108
77-
List all available schema extensions for graph creation
109+
List all available schema extensions for graph creation.
110+
111+
Schema extensions provide pre-built industry-specific data models that extend
112+
the base graph schema with specialized nodes, relationships, and properties.
113+
114+
**Available Extensions:**
115+
- **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial
116+
statements
117+
- **RoboInvestor**: Investment portfolio management and tracking
118+
- **RoboSCM**: Supply chain management and logistics
119+
- **RoboFO**: Front office operations and CRM
120+
- **RoboHRM**: Human resources management
121+
- **RoboEPM**: Enterprise performance management
122+
- **RoboReport**: Business intelligence and reporting
123+
124+
**Extension Information:**
125+
Each extension includes:
126+
- Display name and description
127+
- Node and relationship counts
128+
- Context-aware capabilities (e.g., SEC repositories get different features than entity graphs)
129+
130+
**Use Cases:**
131+
- Browse available extensions before creating a graph
132+
- Understand extension capabilities and data models
133+
- Plan graph schema based on business requirements
134+
- Combine multiple extensions for comprehensive data modeling
135+
136+
**Note:**
137+
Extension listing is included - no credit consumption required.
78138
79139
Raises:
80140
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
81141
httpx.TimeoutException: If the request takes longer than Client.timeout.
82142
83143
Returns:
84-
AvailableExtensionsResponse
144+
Union[Any, AvailableExtensionsResponse]
85145
"""
86146

87147
return sync_detailed(
@@ -92,17 +152,45 @@ def sync(
92152
async def asyncio_detailed(
93153
*,
94154
client: AuthenticatedClient,
95-
) -> Response[AvailableExtensionsResponse]:
155+
) -> Response[Union[Any, AvailableExtensionsResponse]]:
96156
"""Get Available Schema Extensions
97157
98-
List all available schema extensions for graph creation
158+
List all available schema extensions for graph creation.
159+
160+
Schema extensions provide pre-built industry-specific data models that extend
161+
the base graph schema with specialized nodes, relationships, and properties.
162+
163+
**Available Extensions:**
164+
- **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial
165+
statements
166+
- **RoboInvestor**: Investment portfolio management and tracking
167+
- **RoboSCM**: Supply chain management and logistics
168+
- **RoboFO**: Front office operations and CRM
169+
- **RoboHRM**: Human resources management
170+
- **RoboEPM**: Enterprise performance management
171+
- **RoboReport**: Business intelligence and reporting
172+
173+
**Extension Information:**
174+
Each extension includes:
175+
- Display name and description
176+
- Node and relationship counts
177+
- Context-aware capabilities (e.g., SEC repositories get different features than entity graphs)
178+
179+
**Use Cases:**
180+
- Browse available extensions before creating a graph
181+
- Understand extension capabilities and data models
182+
- Plan graph schema based on business requirements
183+
- Combine multiple extensions for comprehensive data modeling
184+
185+
**Note:**
186+
Extension listing is included - no credit consumption required.
99187
100188
Raises:
101189
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102190
httpx.TimeoutException: If the request takes longer than Client.timeout.
103191
104192
Returns:
105-
Response[AvailableExtensionsResponse]
193+
Response[Union[Any, AvailableExtensionsResponse]]
106194
"""
107195

108196
kwargs = _get_kwargs()
@@ -115,17 +203,45 @@ async def asyncio_detailed(
115203
async def asyncio(
116204
*,
117205
client: AuthenticatedClient,
118-
) -> Optional[AvailableExtensionsResponse]:
206+
) -> Optional[Union[Any, AvailableExtensionsResponse]]:
119207
"""Get Available Schema Extensions
120208
121-
List all available schema extensions for graph creation
209+
List all available schema extensions for graph creation.
210+
211+
Schema extensions provide pre-built industry-specific data models that extend
212+
the base graph schema with specialized nodes, relationships, and properties.
213+
214+
**Available Extensions:**
215+
- **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial
216+
statements
217+
- **RoboInvestor**: Investment portfolio management and tracking
218+
- **RoboSCM**: Supply chain management and logistics
219+
- **RoboFO**: Front office operations and CRM
220+
- **RoboHRM**: Human resources management
221+
- **RoboEPM**: Enterprise performance management
222+
- **RoboReport**: Business intelligence and reporting
223+
224+
**Extension Information:**
225+
Each extension includes:
226+
- Display name and description
227+
- Node and relationship counts
228+
- Context-aware capabilities (e.g., SEC repositories get different features than entity graphs)
229+
230+
**Use Cases:**
231+
- Browse available extensions before creating a graph
232+
- Understand extension capabilities and data models
233+
- Plan graph schema based on business requirements
234+
- Combine multiple extensions for comprehensive data modeling
235+
236+
**Note:**
237+
Extension listing is included - no credit consumption required.
122238
123239
Raises:
124240
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
125241
httpx.TimeoutException: If the request takes longer than Client.timeout.
126242
127243
Returns:
128-
AvailableExtensionsResponse
244+
Union[Any, AvailableExtensionsResponse]
129245
"""
130246

131247
return (

0 commit comments

Comments
 (0)