Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"group": "build"
},
{
"label": "Generate Client",
"label": "Generate SDK",
"type": "shell",
"command": "just generate-client ${input:apiUrl}",
"command": "just generate-sdk ${input:apiUrl}",
"problemMatcher": [],
"group": "build"
},
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete

# Generate Client from localhost API
generate-client url="http://localhost:8000/openapi.json":
# Generate SDK from localhost API
generate-sdk url="http://localhost:8000/openapi.json":
@echo "🚀 Generating Client from {{url}}..."
rm -rf generated
openapi-python-client generate --url {{url}} --output-path generated --config robosystems_client/sdk-config.yaml
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "robosystems-client"
version = "0.1.10"
version = "0.1.11"
description = "Python Client for RoboSystems financial graph database API"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
32 changes: 16 additions & 16 deletions robosystems_client/api/agent/query_financial_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def sync_detailed(
- Fallback to status polling endpoint if SSE unavailable

**Credit Consumption:**
- Variable based on complexity: 3-60 credits
- Simple queries: 3-15 credits
- Complex analysis: 15-60 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
- AI operations consume credits based on actual token usage
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
- Credits are consumed after operation completes based on actual usage

The agent automatically determines query complexity or you can force extended analysis.

Expand Down Expand Up @@ -224,10 +224,10 @@ def sync(
- Fallback to status polling endpoint if SSE unavailable

**Credit Consumption:**
- Variable based on complexity: 3-60 credits
- Simple queries: 3-15 credits
- Complex analysis: 15-60 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
- AI operations consume credits based on actual token usage
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
- Credits are consumed after operation completes based on actual usage

The agent automatically determines query complexity or you can force extended analysis.

Expand Down Expand Up @@ -306,10 +306,10 @@ async def asyncio_detailed(
- Fallback to status polling endpoint if SSE unavailable

**Credit Consumption:**
- Variable based on complexity: 3-60 credits
- Simple queries: 3-15 credits
- Complex analysis: 15-60 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
- AI operations consume credits based on actual token usage
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
- Credits are consumed after operation completes based on actual usage

The agent automatically determines query complexity or you can force extended analysis.

Expand Down Expand Up @@ -391,10 +391,10 @@ async def asyncio(
- Fallback to status polling endpoint if SSE unavailable

**Credit Consumption:**
- Variable based on complexity: 3-60 credits
- Simple queries: 3-15 credits
- Complex analysis: 15-60 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
- AI operations consume credits based on actual token usage
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
- Credits are consumed after operation completes based on actual usage

The agent automatically determines query complexity or you can force extended analysis.

Expand Down
4 changes: 0 additions & 4 deletions robosystems_client/api/backup/create_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def _parse_response(
response_400 = ErrorResponse.from_dict(response.json())

return response_400
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down
3 changes: 0 additions & 3 deletions robosystems_client/api/backup/export_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ def _parse_response(
if response.status_code == 200:
response_200 = response.json()
return response_200
if response.status_code == 402:
response_402 = cast(Any, None)
return response_402
if response.status_code == 403:
response_403 = cast(Any, None)
return response_403
Expand Down
2 changes: 1 addition & 1 deletion robosystems_client/api/backup/get_backup_download_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _get_kwargs(

_kwargs: dict[str, Any] = {
"method": "get",
"url": f"/v1/{graph_id}/backup/{backup_id}/download-url",
"url": f"/v1/{graph_id}/backup/{backup_id}/download",
"params": params,
"cookies": cookies,
}
Expand Down
4 changes: 0 additions & 4 deletions robosystems_client/api/backup/restore_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def _parse_response(
response_400 = ErrorResponse.from_dict(response.json())

return response_400
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down
28 changes: 8 additions & 20 deletions robosystems_client/api/connections/create_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def _parse_response(
response_400 = ErrorResponse.from_dict(response.json())

return response_400
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down Expand Up @@ -118,10 +114,8 @@ def sync_detailed(
- User completes bank authentication
- Exchange public token for access

Credit consumption:
- Base cost: 5.0 credits
- Multiplied by graph tier
- Additional credits consumed during data sync
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): Graph database identifier
Expand Down Expand Up @@ -180,10 +174,8 @@ def sync(
- User completes bank authentication
- Exchange public token for access

Credit consumption:
- Base cost: 5.0 credits
- Multiplied by graph tier
- Additional credits consumed during data sync
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): Graph database identifier
Expand Down Expand Up @@ -237,10 +229,8 @@ async def asyncio_detailed(
- User completes bank authentication
- Exchange public token for access

Credit consumption:
- Base cost: 5.0 credits
- Multiplied by graph tier
- Additional credits consumed during data sync
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): Graph database identifier
Expand Down Expand Up @@ -297,10 +287,8 @@ async def asyncio(
- User completes bank authentication
- Exchange public token for access

Credit consumption:
- Base cost: 5.0 credits
- Multiplied by graph tier
- Additional credits consumed during data sync
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): Graph database identifier
Expand Down
24 changes: 8 additions & 16 deletions robosystems_client/api/connections/delete_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ def _parse_response(
response_200 = SuccessResponse.from_dict(response.json())

return response_200
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down Expand Up @@ -98,9 +94,8 @@ def sync_detailed(
- Performs provider-specific cleanup
- Revokes stored credentials

Credit consumption:
- Base cost: 2.0 credits
- Multiplied by graph tier
Note:
This operation is FREE - no credit consumption required.

Only users with admin role can delete connections.

Expand Down Expand Up @@ -150,9 +145,8 @@ def sync(
- Performs provider-specific cleanup
- Revokes stored credentials

Credit consumption:
- Base cost: 2.0 credits
- Multiplied by graph tier
Note:
This operation is FREE - no credit consumption required.

Only users with admin role can delete connections.

Expand Down Expand Up @@ -197,9 +191,8 @@ async def asyncio_detailed(
- Performs provider-specific cleanup
- Revokes stored credentials

Credit consumption:
- Base cost: 2.0 credits
- Multiplied by graph tier
Note:
This operation is FREE - no credit consumption required.

Only users with admin role can delete connections.

Expand Down Expand Up @@ -247,9 +240,8 @@ async def asyncio(
- Performs provider-specific cleanup
- Revokes stored credentials

Credit consumption:
- Base cost: 2.0 credits
- Multiplied by graph tier
Note:
This operation is FREE - no credit consumption required.

Only users with admin role can delete connections.

Expand Down
28 changes: 8 additions & 20 deletions robosystems_client/api/connections/sync_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ def _parse_response(
response_200 = SyncConnectionResponseSyncconnection.from_dict(response.json())

return response_200
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down Expand Up @@ -125,10 +121,8 @@ def sync_detailed(
- Updates account balances
- Categorizes new transactions

Credit consumption:
- Base cost: 20.0 credits
- Multiplied by graph tier
- Additional credits may be consumed during processing
Note:
This operation is FREE - no credit consumption required.

Returns a task ID for monitoring sync progress.

Expand Down Expand Up @@ -195,10 +189,8 @@ def sync(
- Updates account balances
- Categorizes new transactions

Credit consumption:
- Base cost: 20.0 credits
- Multiplied by graph tier
- Additional credits may be consumed during processing
Note:
This operation is FREE - no credit consumption required.

Returns a task ID for monitoring sync progress.

Expand Down Expand Up @@ -260,10 +252,8 @@ async def asyncio_detailed(
- Updates account balances
- Categorizes new transactions

Credit consumption:
- Base cost: 20.0 credits
- Multiplied by graph tier
- Additional credits may be consumed during processing
Note:
This operation is FREE - no credit consumption required.

Returns a task ID for monitoring sync progress.

Expand Down Expand Up @@ -328,10 +318,8 @@ async def asyncio(
- Updates account balances
- Categorizes new transactions

Credit consumption:
- Base cost: 20.0 credits
- Multiplied by graph tier
- Additional credits may be consumed during processing
Note:
This operation is FREE - no credit consumption required.

Returns a task ID for monitoring sync progress.

Expand Down
2 changes: 1 addition & 1 deletion robosystems_client/api/create/get_available_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v1/create/graph/available-extensions",
"url": "/v1/create/graph/extensions",
}

return _kwargs
Expand Down
24 changes: 8 additions & 16 deletions robosystems_client/api/graph_analytics/get_graph_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ def _parse_response(
response_200 = GraphMetricsResponse.from_dict(response.json())

return response_200
if response.status_code == 402:
response_402 = ErrorResponse.from_dict(response.json())

return response_402
if response.status_code == 403:
response_403 = ErrorResponse.from_dict(response.json())

Expand Down Expand Up @@ -103,9 +99,8 @@ def sync_detailed(
- Capacity planning
- Performance optimization

Credit consumption:
- Base cost: 15.0 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): The graph ID to get metrics for
Expand Down Expand Up @@ -157,9 +152,8 @@ def sync(
- Capacity planning
- Performance optimization

Credit consumption:
- Base cost: 15.0 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): The graph ID to get metrics for
Expand Down Expand Up @@ -206,9 +200,8 @@ async def asyncio_detailed(
- Capacity planning
- Performance optimization

Credit consumption:
- Base cost: 15.0 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): The graph ID to get metrics for
Expand Down Expand Up @@ -258,9 +251,8 @@ async def asyncio(
- Capacity planning
- Performance optimization

Credit consumption:
- Base cost: 15.0 credits
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
Note:
This operation is FREE - no credit consumption required.

Args:
graph_id (str): The graph ID to get metrics for
Expand Down
Loading