11from http import HTTPStatus
2- from typing import Any , Optional , Union
2+ from typing import Any , Optional , Union , cast
33
44import httpx
55
@@ -20,12 +20,16 @@ def _get_kwargs() -> dict[str, Any]:
2020
2121def _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
3539def _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(
4650def 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(
71103def 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(
92152async 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(
115203async 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