robosystems-client 0.1.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of robosystems-client might be problematic. Click here for more details.
- robosystems_client/__init__.py +14 -0
- robosystems_client/api/__init__.py +1 -0
- robosystems_client/api/agent/__init__.py +1 -0
- robosystems_client/api/agent/query_financial_agent.py +423 -0
- robosystems_client/api/auth/__init__.py +1 -0
- robosystems_client/api/auth/check_password_strength.py +172 -0
- robosystems_client/api/auth/complete_sso_auth.py +177 -0
- robosystems_client/api/auth/generate_sso_token.py +174 -0
- robosystems_client/api/auth/get_captcha_config.py +87 -0
- robosystems_client/api/auth/get_current_auth_user.py +220 -0
- robosystems_client/api/auth/get_password_policy.py +134 -0
- robosystems_client/api/auth/login_user.py +181 -0
- robosystems_client/api/auth/logout_user.py +169 -0
- robosystems_client/api/auth/refresh_session.py +174 -0
- robosystems_client/api/auth/register_user.py +189 -0
- robosystems_client/api/auth/sso_login.py +177 -0
- robosystems_client/api/auth/sso_token_exchange.py +181 -0
- robosystems_client/api/backup/__init__.py +1 -0
- robosystems_client/api/backup/create_backup.py +401 -0
- robosystems_client/api/backup/export_backup.py +225 -0
- robosystems_client/api/backup/get_backup_download_url.py +258 -0
- robosystems_client/api/backup/get_backup_stats.py +182 -0
- robosystems_client/api/backup/kuzu_backup_health.py +202 -0
- robosystems_client/api/backup/list_backups.py +217 -0
- robosystems_client/api/backup/restore_backup.py +401 -0
- robosystems_client/api/billing/__init__.py +1 -0
- robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +198 -0
- robosystems_client/api/billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py +210 -0
- robosystems_client/api/billing/get_current_graph_bill.py +285 -0
- robosystems_client/api/billing/get_graph_billing_history.py +329 -0
- robosystems_client/api/billing/get_graph_monthly_bill.py +315 -0
- robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +198 -0
- robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +198 -0
- robosystems_client/api/billing/get_graph_usage_details.py +350 -0
- robosystems_client/api/billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py +216 -0
- robosystems_client/api/connections/__init__.py +1 -0
- robosystems_client/api/connections/create_connection.py +327 -0
- robosystems_client/api/connections/create_link_token.py +281 -0
- robosystems_client/api/connections/delete_connection.py +278 -0
- robosystems_client/api/connections/exchange_link_token.py +301 -0
- robosystems_client/api/connections/get_connection.py +262 -0
- robosystems_client/api/connections/get_connection_options.py +285 -0
- robosystems_client/api/connections/init_o_auth.py +230 -0
- robosystems_client/api/connections/list_connections.py +314 -0
- robosystems_client/api/connections/oauth_callback.py +318 -0
- robosystems_client/api/connections/sync_connection.py +362 -0
- robosystems_client/api/create/__init__.py +1 -0
- robosystems_client/api/create/create_graph.py +375 -0
- robosystems_client/api/create/get_available_extensions.py +134 -0
- robosystems_client/api/credits_/__init__.py +1 -0
- robosystems_client/api/credits_/check_credit_balance.py +299 -0
- robosystems_client/api/credits_/check_storage_limits.py +249 -0
- robosystems_client/api/credits_/get_credit_summary.py +245 -0
- robosystems_client/api/credits_/get_storage_usage.py +279 -0
- robosystems_client/api/credits_/list_credit_transactions.py +392 -0
- robosystems_client/api/graph_analytics/__init__.py +1 -0
- robosystems_client/api/graph_analytics/get_graph_metrics.py +285 -0
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +329 -0
- robosystems_client/api/graph_status/__init__.py +1 -0
- robosystems_client/api/graph_status/get_database_health.py +273 -0
- robosystems_client/api/graph_status/get_database_info.py +277 -0
- robosystems_client/api/mcp/__init__.py +1 -0
- robosystems_client/api/mcp/call_mcp_tool.py +432 -0
- robosystems_client/api/mcp/list_mcp_tools.py +265 -0
- robosystems_client/api/operations/__init__.py +1 -0
- robosystems_client/api/operations/cancel_operation.py +246 -0
- robosystems_client/api/operations/get_operation_status.py +273 -0
- robosystems_client/api/operations/stream_operation_events.py +415 -0
- robosystems_client/api/query/__init__.py +1 -0
- robosystems_client/api/query/execute_cypher_query.py +482 -0
- robosystems_client/api/schema/__init__.py +1 -0
- robosystems_client/api/schema/export_graph_schema.py +239 -0
- robosystems_client/api/schema/get_graph_schema_info.py +277 -0
- robosystems_client/api/schema/list_schema_extensions.py +216 -0
- robosystems_client/api/schema/validate_schema.py +326 -0
- robosystems_client/api/service_offerings/__init__.py +1 -0
- robosystems_client/api/service_offerings/get_service_offerings.py +197 -0
- robosystems_client/api/status/__init__.py +1 -0
- robosystems_client/api/status/get_mcp_health.py +136 -0
- robosystems_client/api/status/get_service_status.py +134 -0
- robosystems_client/api/user/__init__.py +1 -0
- robosystems_client/api/user/create_user_api_key.py +205 -0
- robosystems_client/api/user/get_all_credit_summaries.py +256 -0
- robosystems_client/api/user/get_current_user.py +187 -0
- robosystems_client/api/user/get_user_graphs.py +187 -0
- robosystems_client/api/user/list_user_api_keys.py +187 -0
- robosystems_client/api/user/revoke_user_api_key.py +209 -0
- robosystems_client/api/user/select_user_graph.py +213 -0
- robosystems_client/api/user/update_user.py +205 -0
- robosystems_client/api/user/update_user_api_key.py +218 -0
- robosystems_client/api/user/update_user_password.py +218 -0
- robosystems_client/api/user_analytics/__init__.py +1 -0
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +222 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +187 -0
- robosystems_client/api/user_limits/__init__.py +1 -0
- robosystems_client/api/user_limits/get_user_limits.py +190 -0
- robosystems_client/api/user_limits/get_user_usage.py +187 -0
- robosystems_client/api/user_subscriptions/__init__.py +1 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +209 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +206 -0
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +193 -0
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +213 -0
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +214 -0
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +228 -0
- robosystems_client/client.py +278 -0
- robosystems_client/errors.py +16 -0
- robosystems_client/extensions/README.md +611 -0
- robosystems_client/extensions/__init__.py +108 -0
- robosystems_client/extensions/auth_integration.py +210 -0
- robosystems_client/extensions/extensions.py +170 -0
- robosystems_client/extensions/operation_client.py +368 -0
- robosystems_client/extensions/query_client.py +375 -0
- robosystems_client/extensions/sse_client.py +520 -0
- robosystems_client/extensions/tests/__init__.py +1 -0
- robosystems_client/extensions/tests/test_integration.py +490 -0
- robosystems_client/extensions/tests/test_unit.py +560 -0
- robosystems_client/extensions/utils.py +526 -0
- robosystems_client/models/__init__.py +379 -0
- robosystems_client/models/account_info.py +79 -0
- robosystems_client/models/add_on_credit_info.py +119 -0
- robosystems_client/models/agent_message.py +68 -0
- robosystems_client/models/agent_request.py +132 -0
- robosystems_client/models/agent_request_context_type_0.py +44 -0
- robosystems_client/models/agent_response.py +132 -0
- robosystems_client/models/agent_response_metadata_type_0.py +44 -0
- robosystems_client/models/api_key_info.py +134 -0
- robosystems_client/models/api_keys_response.py +74 -0
- robosystems_client/models/auth_response.py +82 -0
- robosystems_client/models/auth_response_user.py +44 -0
- robosystems_client/models/available_extension.py +78 -0
- robosystems_client/models/available_extensions_response.py +73 -0
- robosystems_client/models/backup_create_request.py +117 -0
- robosystems_client/models/backup_export_request.py +72 -0
- robosystems_client/models/backup_list_response.py +90 -0
- robosystems_client/models/backup_response.py +200 -0
- robosystems_client/models/backup_restore_request.py +81 -0
- robosystems_client/models/backup_stats_response.py +156 -0
- robosystems_client/models/backup_stats_response_backup_formats.py +44 -0
- robosystems_client/models/cancel_operation_response_canceloperation.py +44 -0
- robosystems_client/models/cancellation_response.py +76 -0
- robosystems_client/models/check_credit_balance_response_checkcreditbalance.py +44 -0
- robosystems_client/models/connection_options_response.py +82 -0
- robosystems_client/models/connection_provider_info.py +203 -0
- robosystems_client/models/connection_provider_info_auth_type.py +11 -0
- robosystems_client/models/connection_provider_info_provider.py +10 -0
- robosystems_client/models/connection_response.py +149 -0
- robosystems_client/models/connection_response_metadata.py +44 -0
- robosystems_client/models/connection_response_provider.py +10 -0
- robosystems_client/models/create_api_key_request.py +82 -0
- robosystems_client/models/create_api_key_response.py +74 -0
- robosystems_client/models/create_connection_request.py +179 -0
- robosystems_client/models/create_connection_request_provider.py +10 -0
- robosystems_client/models/create_graph_request.py +183 -0
- robosystems_client/models/credit_check_request.py +82 -0
- robosystems_client/models/credit_summary.py +128 -0
- robosystems_client/models/credit_summary_response.py +140 -0
- robosystems_client/models/credits_summary_response.py +122 -0
- robosystems_client/models/credits_summary_response_credits_by_addon_item.py +44 -0
- robosystems_client/models/custom_schema_definition.py +194 -0
- robosystems_client/models/custom_schema_definition_metadata.py +49 -0
- robosystems_client/models/custom_schema_definition_nodes_item.py +44 -0
- robosystems_client/models/custom_schema_definition_relationships_item.py +44 -0
- robosystems_client/models/cypher_query_request.py +128 -0
- robosystems_client/models/cypher_query_request_parameters_type_0.py +44 -0
- robosystems_client/models/database_health_response.py +181 -0
- robosystems_client/models/database_info_response.py +191 -0
- robosystems_client/models/detailed_transactions_response.py +124 -0
- robosystems_client/models/detailed_transactions_response_date_range.py +44 -0
- robosystems_client/models/detailed_transactions_response_summary.py +59 -0
- robosystems_client/models/enhanced_credit_transaction_response.py +192 -0
- robosystems_client/models/enhanced_credit_transaction_response_metadata.py +44 -0
- robosystems_client/models/error_response.py +145 -0
- robosystems_client/models/exchange_token_request.py +116 -0
- robosystems_client/models/exchange_token_request_metadata_type_0.py +44 -0
- robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +44 -0
- robosystems_client/models/get_backup_download_url_response_getbackupdownloadurl.py +44 -0
- robosystems_client/models/get_current_auth_user_response_getcurrentauthuser.py +44 -0
- robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +44 -0
- robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +44 -0
- robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +44 -0
- robosystems_client/models/get_graph_schema_info_response_getgraphschemainfo.py +44 -0
- robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +44 -0
- robosystems_client/models/get_mcp_health_response_getmcphealth.py +44 -0
- robosystems_client/models/get_operation_status_response_getoperationstatus.py +44 -0
- robosystems_client/models/get_storage_usage_response_getstorageusage.py +44 -0
- robosystems_client/models/graph_info.py +92 -0
- robosystems_client/models/graph_metadata.py +105 -0
- robosystems_client/models/graph_metrics_response.py +188 -0
- robosystems_client/models/graph_metrics_response_estimated_size.py +44 -0
- robosystems_client/models/graph_metrics_response_health_status.py +44 -0
- robosystems_client/models/graph_metrics_response_node_counts.py +44 -0
- robosystems_client/models/graph_metrics_response_relationship_counts.py +44 -0
- robosystems_client/models/graph_usage_response.py +116 -0
- robosystems_client/models/graph_usage_response_query_statistics.py +44 -0
- robosystems_client/models/graph_usage_response_recent_activity.py +44 -0
- robosystems_client/models/graph_usage_response_storage_usage.py +44 -0
- robosystems_client/models/health_status.py +110 -0
- robosystems_client/models/health_status_details_type_0.py +44 -0
- robosystems_client/models/http_validation_error.py +75 -0
- robosystems_client/models/initial_entity_data.py +212 -0
- robosystems_client/models/kuzu_backup_health_response_kuzubackuphealth.py +44 -0
- robosystems_client/models/link_token_request.py +174 -0
- robosystems_client/models/link_token_request_options_type_0.py +44 -0
- robosystems_client/models/link_token_request_provider_type_0.py +10 -0
- robosystems_client/models/list_connections_provider_type_0.py +10 -0
- robosystems_client/models/list_schema_extensions_response_listschemaextensions.py +44 -0
- robosystems_client/models/login_request.py +68 -0
- robosystems_client/models/logout_user_response_logoutuser.py +44 -0
- robosystems_client/models/mcp_tool_call.py +84 -0
- robosystems_client/models/mcp_tool_call_arguments.py +44 -0
- robosystems_client/models/mcp_tools_response.py +74 -0
- robosystems_client/models/mcp_tools_response_tools_item.py +44 -0
- robosystems_client/models/o_auth_callback_request.py +130 -0
- robosystems_client/models/o_auth_init_request.py +128 -0
- robosystems_client/models/o_auth_init_request_additional_params_type_0.py +44 -0
- robosystems_client/models/o_auth_init_response.py +78 -0
- robosystems_client/models/password_check_request.py +82 -0
- robosystems_client/models/password_check_response.py +112 -0
- robosystems_client/models/password_check_response_character_types.py +44 -0
- robosystems_client/models/password_policy_response.py +66 -0
- robosystems_client/models/password_policy_response_policy.py +44 -0
- robosystems_client/models/plaid_connection_config.py +209 -0
- robosystems_client/models/plaid_connection_config_accounts_type_0_item.py +44 -0
- robosystems_client/models/plaid_connection_config_institution_type_0.py +44 -0
- robosystems_client/models/quick_books_connection_config.py +92 -0
- robosystems_client/models/register_request.py +98 -0
- robosystems_client/models/repository_credits_response.py +101 -0
- robosystems_client/models/repository_plan.py +10 -0
- robosystems_client/models/repository_type.py +10 -0
- robosystems_client/models/response_mode.py +11 -0
- robosystems_client/models/schema_export_response.py +163 -0
- robosystems_client/models/schema_export_response_data_stats_type_0.py +44 -0
- robosystems_client/models/schema_export_response_schema_definition_type_0.py +44 -0
- robosystems_client/models/schema_validation_request.py +142 -0
- robosystems_client/models/schema_validation_request_schema_definition_type_0.py +44 -0
- robosystems_client/models/schema_validation_response.py +227 -0
- robosystems_client/models/schema_validation_response_compatibility_type_0.py +44 -0
- robosystems_client/models/schema_validation_response_stats_type_0.py +44 -0
- robosystems_client/models/sec_connection_config.py +82 -0
- robosystems_client/models/sso_complete_request.py +60 -0
- robosystems_client/models/sso_exchange_request.py +90 -0
- robosystems_client/models/sso_exchange_response.py +78 -0
- robosystems_client/models/sso_login_request.py +60 -0
- robosystems_client/models/sso_token_response.py +78 -0
- robosystems_client/models/storage_limit_response.py +149 -0
- robosystems_client/models/subscription_info.py +180 -0
- robosystems_client/models/subscription_info_metadata.py +44 -0
- robosystems_client/models/subscription_request.py +89 -0
- robosystems_client/models/subscription_response.py +82 -0
- robosystems_client/models/success_response.py +112 -0
- robosystems_client/models/success_response_data_type_0.py +44 -0
- robosystems_client/models/sync_connection_request.py +106 -0
- robosystems_client/models/sync_connection_request_sync_options_type_0.py +44 -0
- robosystems_client/models/sync_connection_response_syncconnection.py +44 -0
- robosystems_client/models/tier_upgrade_request.py +62 -0
- robosystems_client/models/transaction_summary_response.py +126 -0
- robosystems_client/models/update_api_key_request.py +92 -0
- robosystems_client/models/update_password_request.py +76 -0
- robosystems_client/models/update_user_request.py +92 -0
- robosystems_client/models/upgrade_subscription_request.py +82 -0
- robosystems_client/models/user_analytics_response.py +132 -0
- robosystems_client/models/user_analytics_response_api_usage.py +44 -0
- robosystems_client/models/user_analytics_response_graph_usage.py +44 -0
- robosystems_client/models/user_analytics_response_limits.py +44 -0
- robosystems_client/models/user_analytics_response_recent_activity_item.py +44 -0
- robosystems_client/models/user_analytics_response_user_info.py +44 -0
- robosystems_client/models/user_graph_summary.py +134 -0
- robosystems_client/models/user_graphs_response.py +96 -0
- robosystems_client/models/user_limits_response.py +95 -0
- robosystems_client/models/user_response.py +132 -0
- robosystems_client/models/user_subscriptions_response.py +90 -0
- robosystems_client/models/user_usage_response.py +90 -0
- robosystems_client/models/user_usage_response_graphs.py +44 -0
- robosystems_client/models/user_usage_summary_response.py +130 -0
- robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +44 -0
- robosystems_client/models/validation_error.py +88 -0
- robosystems_client/py.typed +1 -0
- robosystems_client/sdk-config.yaml +5 -0
- robosystems_client/types.py +54 -0
- robosystems_client-0.1.9.dist-info/METADATA +302 -0
- robosystems_client-0.1.9.dist-info/RECORD +282 -0
- robosystems_client-0.1.9.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
graph_id: str,
|
|
14
|
+
*,
|
|
15
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
if not isinstance(authorization, Unset):
|
|
20
|
+
headers["authorization"] = authorization
|
|
21
|
+
|
|
22
|
+
cookies = {}
|
|
23
|
+
if auth_token is not UNSET:
|
|
24
|
+
cookies["auth-token"] = auth_token
|
|
25
|
+
|
|
26
|
+
_kwargs: dict[str, Any] = {
|
|
27
|
+
"method": "get",
|
|
28
|
+
"url": f"/v1/{graph_id}/billing/available-plans",
|
|
29
|
+
"cookies": cookies,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_kwargs["headers"] = headers
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
39
|
+
if response.status_code == 200:
|
|
40
|
+
response_200 = response.json()
|
|
41
|
+
return response_200
|
|
42
|
+
if response.status_code == 422:
|
|
43
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_422
|
|
46
|
+
if client.raise_on_unexpected_status:
|
|
47
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
48
|
+
else:
|
|
49
|
+
return None
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _build_response(
|
|
53
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
54
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
55
|
+
return Response(
|
|
56
|
+
status_code=HTTPStatus(response.status_code),
|
|
57
|
+
content=response.content,
|
|
58
|
+
headers=response.headers,
|
|
59
|
+
parsed=_parse_response(client=client, response=response),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def sync_detailed(
|
|
64
|
+
graph_id: str,
|
|
65
|
+
*,
|
|
66
|
+
client: AuthenticatedClient,
|
|
67
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
70
|
+
"""Get Available Subscription Plans
|
|
71
|
+
|
|
72
|
+
Get available subscription plans for upgrade.
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
graph_id (str): Graph database ID
|
|
76
|
+
authorization (Union[None, Unset, str]):
|
|
77
|
+
auth_token (Union[None, Unset, str]):
|
|
78
|
+
|
|
79
|
+
Raises:
|
|
80
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
81
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
Response[Union[Any, HTTPValidationError]]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
kwargs = _get_kwargs(
|
|
88
|
+
graph_id=graph_id,
|
|
89
|
+
authorization=authorization,
|
|
90
|
+
auth_token=auth_token,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
response = client.get_httpx_client().request(
|
|
94
|
+
**kwargs,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
return _build_response(client=client, response=response)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def sync(
|
|
101
|
+
graph_id: str,
|
|
102
|
+
*,
|
|
103
|
+
client: AuthenticatedClient,
|
|
104
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
105
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
106
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
107
|
+
"""Get Available Subscription Plans
|
|
108
|
+
|
|
109
|
+
Get available subscription plans for upgrade.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
graph_id (str): Graph database ID
|
|
113
|
+
authorization (Union[None, Unset, str]):
|
|
114
|
+
auth_token (Union[None, Unset, str]):
|
|
115
|
+
|
|
116
|
+
Raises:
|
|
117
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
Union[Any, HTTPValidationError]
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
return sync_detailed(
|
|
125
|
+
graph_id=graph_id,
|
|
126
|
+
client=client,
|
|
127
|
+
authorization=authorization,
|
|
128
|
+
auth_token=auth_token,
|
|
129
|
+
).parsed
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
async def asyncio_detailed(
|
|
133
|
+
graph_id: str,
|
|
134
|
+
*,
|
|
135
|
+
client: AuthenticatedClient,
|
|
136
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
137
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
138
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
139
|
+
"""Get Available Subscription Plans
|
|
140
|
+
|
|
141
|
+
Get available subscription plans for upgrade.
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
graph_id (str): Graph database ID
|
|
145
|
+
authorization (Union[None, Unset, str]):
|
|
146
|
+
auth_token (Union[None, Unset, str]):
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Response[Union[Any, HTTPValidationError]]
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
kwargs = _get_kwargs(
|
|
157
|
+
graph_id=graph_id,
|
|
158
|
+
authorization=authorization,
|
|
159
|
+
auth_token=auth_token,
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
163
|
+
|
|
164
|
+
return _build_response(client=client, response=response)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
async def asyncio(
|
|
168
|
+
graph_id: str,
|
|
169
|
+
*,
|
|
170
|
+
client: AuthenticatedClient,
|
|
171
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
172
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
173
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
174
|
+
"""Get Available Subscription Plans
|
|
175
|
+
|
|
176
|
+
Get available subscription plans for upgrade.
|
|
177
|
+
|
|
178
|
+
Args:
|
|
179
|
+
graph_id (str): Graph database ID
|
|
180
|
+
authorization (Union[None, Unset, str]):
|
|
181
|
+
auth_token (Union[None, Unset, str]):
|
|
182
|
+
|
|
183
|
+
Raises:
|
|
184
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
185
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
Union[Any, HTTPValidationError]
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
return (
|
|
192
|
+
await asyncio_detailed(
|
|
193
|
+
graph_id=graph_id,
|
|
194
|
+
client=client,
|
|
195
|
+
authorization=authorization,
|
|
196
|
+
auth_token=auth_token,
|
|
197
|
+
)
|
|
198
|
+
).parsed
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
graph_id: str,
|
|
14
|
+
*,
|
|
15
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
16
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
if not isinstance(authorization, Unset):
|
|
20
|
+
headers["authorization"] = authorization
|
|
21
|
+
|
|
22
|
+
cookies = {}
|
|
23
|
+
if auth_token is not UNSET:
|
|
24
|
+
cookies["auth-token"] = auth_token
|
|
25
|
+
|
|
26
|
+
_kwargs: dict[str, Any] = {
|
|
27
|
+
"method": "get",
|
|
28
|
+
"url": f"/v1/{graph_id}/billing/credits",
|
|
29
|
+
"cookies": cookies,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_kwargs["headers"] = headers
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
39
|
+
if response.status_code == 200:
|
|
40
|
+
response_200 = response.json()
|
|
41
|
+
return response_200
|
|
42
|
+
if response.status_code == 422:
|
|
43
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_422
|
|
46
|
+
if client.raise_on_unexpected_status:
|
|
47
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
48
|
+
else:
|
|
49
|
+
return None
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _build_response(
|
|
53
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
54
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
55
|
+
return Response(
|
|
56
|
+
status_code=HTTPStatus(response.status_code),
|
|
57
|
+
content=response.content,
|
|
58
|
+
headers=response.headers,
|
|
59
|
+
parsed=_parse_response(client=client, response=response),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def sync_detailed(
|
|
64
|
+
graph_id: str,
|
|
65
|
+
*,
|
|
66
|
+
client: AuthenticatedClient,
|
|
67
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
68
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
69
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
70
|
+
"""Get Credit Billing Info
|
|
71
|
+
|
|
72
|
+
Get credit-based billing information for a specific graph.
|
|
73
|
+
|
|
74
|
+
This endpoint provides comprehensive credit usage and billing information
|
|
75
|
+
without consuming credits (for billing transparency).
|
|
76
|
+
|
|
77
|
+
Args:
|
|
78
|
+
graph_id (str): Graph database ID
|
|
79
|
+
authorization (Union[None, Unset, str]):
|
|
80
|
+
auth_token (Union[None, Unset, str]):
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
Response[Union[Any, HTTPValidationError]]
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
kwargs = _get_kwargs(
|
|
91
|
+
graph_id=graph_id,
|
|
92
|
+
authorization=authorization,
|
|
93
|
+
auth_token=auth_token,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
response = client.get_httpx_client().request(
|
|
97
|
+
**kwargs,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
return _build_response(client=client, response=response)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def sync(
|
|
104
|
+
graph_id: str,
|
|
105
|
+
*,
|
|
106
|
+
client: AuthenticatedClient,
|
|
107
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
108
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
109
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
110
|
+
"""Get Credit Billing Info
|
|
111
|
+
|
|
112
|
+
Get credit-based billing information for a specific graph.
|
|
113
|
+
|
|
114
|
+
This endpoint provides comprehensive credit usage and billing information
|
|
115
|
+
without consuming credits (for billing transparency).
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
graph_id (str): Graph database ID
|
|
119
|
+
authorization (Union[None, Unset, str]):
|
|
120
|
+
auth_token (Union[None, Unset, str]):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
Union[Any, HTTPValidationError]
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
return sync_detailed(
|
|
131
|
+
graph_id=graph_id,
|
|
132
|
+
client=client,
|
|
133
|
+
authorization=authorization,
|
|
134
|
+
auth_token=auth_token,
|
|
135
|
+
).parsed
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
async def asyncio_detailed(
|
|
139
|
+
graph_id: str,
|
|
140
|
+
*,
|
|
141
|
+
client: AuthenticatedClient,
|
|
142
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
143
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
144
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
145
|
+
"""Get Credit Billing Info
|
|
146
|
+
|
|
147
|
+
Get credit-based billing information for a specific graph.
|
|
148
|
+
|
|
149
|
+
This endpoint provides comprehensive credit usage and billing information
|
|
150
|
+
without consuming credits (for billing transparency).
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
graph_id (str): Graph database ID
|
|
154
|
+
authorization (Union[None, Unset, str]):
|
|
155
|
+
auth_token (Union[None, Unset, str]):
|
|
156
|
+
|
|
157
|
+
Raises:
|
|
158
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
159
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Response[Union[Any, HTTPValidationError]]
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
kwargs = _get_kwargs(
|
|
166
|
+
graph_id=graph_id,
|
|
167
|
+
authorization=authorization,
|
|
168
|
+
auth_token=auth_token,
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
172
|
+
|
|
173
|
+
return _build_response(client=client, response=response)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
async def asyncio(
|
|
177
|
+
graph_id: str,
|
|
178
|
+
*,
|
|
179
|
+
client: AuthenticatedClient,
|
|
180
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
181
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
182
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
183
|
+
"""Get Credit Billing Info
|
|
184
|
+
|
|
185
|
+
Get credit-based billing information for a specific graph.
|
|
186
|
+
|
|
187
|
+
This endpoint provides comprehensive credit usage and billing information
|
|
188
|
+
without consuming credits (for billing transparency).
|
|
189
|
+
|
|
190
|
+
Args:
|
|
191
|
+
graph_id (str): Graph database ID
|
|
192
|
+
authorization (Union[None, Unset, str]):
|
|
193
|
+
auth_token (Union[None, Unset, str]):
|
|
194
|
+
|
|
195
|
+
Raises:
|
|
196
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
197
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
198
|
+
|
|
199
|
+
Returns:
|
|
200
|
+
Union[Any, HTTPValidationError]
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
return (
|
|
204
|
+
await asyncio_detailed(
|
|
205
|
+
graph_id=graph_id,
|
|
206
|
+
client=client,
|
|
207
|
+
authorization=authorization,
|
|
208
|
+
auth_token=auth_token,
|
|
209
|
+
)
|
|
210
|
+
).parsed
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error_response import ErrorResponse
|
|
9
|
+
from ...models.get_current_graph_bill_response_getcurrentgraphbill import (
|
|
10
|
+
GetCurrentGraphBillResponseGetcurrentgraphbill,
|
|
11
|
+
)
|
|
12
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
graph_id: str,
|
|
18
|
+
*,
|
|
19
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
20
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
headers: dict[str, Any] = {}
|
|
23
|
+
if not isinstance(authorization, Unset):
|
|
24
|
+
headers["authorization"] = authorization
|
|
25
|
+
|
|
26
|
+
cookies = {}
|
|
27
|
+
if auth_token is not UNSET:
|
|
28
|
+
cookies["auth-token"] = auth_token
|
|
29
|
+
|
|
30
|
+
_kwargs: dict[str, Any] = {
|
|
31
|
+
"method": "get",
|
|
32
|
+
"url": f"/v1/{graph_id}/billing/current",
|
|
33
|
+
"cookies": cookies,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_kwargs["headers"] = headers
|
|
37
|
+
return _kwargs
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _parse_response(
|
|
41
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
+
) -> Optional[
|
|
43
|
+
Union[
|
|
44
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
45
|
+
]
|
|
46
|
+
]:
|
|
47
|
+
if response.status_code == 200:
|
|
48
|
+
response_200 = GetCurrentGraphBillResponseGetcurrentgraphbill.from_dict(
|
|
49
|
+
response.json()
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
return response_200
|
|
53
|
+
if response.status_code == 403:
|
|
54
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_403
|
|
57
|
+
if response.status_code == 404:
|
|
58
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_404
|
|
61
|
+
if response.status_code == 500:
|
|
62
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_500
|
|
65
|
+
if response.status_code == 422:
|
|
66
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
67
|
+
|
|
68
|
+
return response_422
|
|
69
|
+
if client.raise_on_unexpected_status:
|
|
70
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
71
|
+
else:
|
|
72
|
+
return None
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def _build_response(
|
|
76
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
77
|
+
) -> Response[
|
|
78
|
+
Union[
|
|
79
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
80
|
+
]
|
|
81
|
+
]:
|
|
82
|
+
return Response(
|
|
83
|
+
status_code=HTTPStatus(response.status_code),
|
|
84
|
+
content=response.content,
|
|
85
|
+
headers=response.headers,
|
|
86
|
+
parsed=_parse_response(client=client, response=response),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def sync_detailed(
|
|
91
|
+
graph_id: str,
|
|
92
|
+
*,
|
|
93
|
+
client: AuthenticatedClient,
|
|
94
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
95
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
96
|
+
) -> Response[
|
|
97
|
+
Union[
|
|
98
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
99
|
+
]
|
|
100
|
+
]:
|
|
101
|
+
"""Get Current Bill
|
|
102
|
+
|
|
103
|
+
Get current month's billing details for the graph.
|
|
104
|
+
|
|
105
|
+
Returns comprehensive billing information including:
|
|
106
|
+
- **Credit Usage**: Consumed vs. allocated credits
|
|
107
|
+
- **Storage Charges**: Current storage usage and costs
|
|
108
|
+
- **Subscription Tier**: Current plan and features
|
|
109
|
+
- **Pro-rated Charges**: If plan changed mid-month
|
|
110
|
+
- **Estimated Total**: Current charges to date
|
|
111
|
+
|
|
112
|
+
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
113
|
+
|
|
114
|
+
ℹ️ No credits are consumed for viewing billing information.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
graph_id (str): Graph database identifier
|
|
118
|
+
authorization (Union[None, Unset, str]):
|
|
119
|
+
auth_token (Union[None, Unset, str]):
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Response[Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
kwargs = _get_kwargs(
|
|
130
|
+
graph_id=graph_id,
|
|
131
|
+
authorization=authorization,
|
|
132
|
+
auth_token=auth_token,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
response = client.get_httpx_client().request(
|
|
136
|
+
**kwargs,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
return _build_response(client=client, response=response)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def sync(
|
|
143
|
+
graph_id: str,
|
|
144
|
+
*,
|
|
145
|
+
client: AuthenticatedClient,
|
|
146
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
147
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
148
|
+
) -> Optional[
|
|
149
|
+
Union[
|
|
150
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
151
|
+
]
|
|
152
|
+
]:
|
|
153
|
+
"""Get Current Bill
|
|
154
|
+
|
|
155
|
+
Get current month's billing details for the graph.
|
|
156
|
+
|
|
157
|
+
Returns comprehensive billing information including:
|
|
158
|
+
- **Credit Usage**: Consumed vs. allocated credits
|
|
159
|
+
- **Storage Charges**: Current storage usage and costs
|
|
160
|
+
- **Subscription Tier**: Current plan and features
|
|
161
|
+
- **Pro-rated Charges**: If plan changed mid-month
|
|
162
|
+
- **Estimated Total**: Current charges to date
|
|
163
|
+
|
|
164
|
+
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
165
|
+
|
|
166
|
+
ℹ️ No credits are consumed for viewing billing information.
|
|
167
|
+
|
|
168
|
+
Args:
|
|
169
|
+
graph_id (str): Graph database identifier
|
|
170
|
+
authorization (Union[None, Unset, str]):
|
|
171
|
+
auth_token (Union[None, Unset, str]):
|
|
172
|
+
|
|
173
|
+
Raises:
|
|
174
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
175
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
176
|
+
|
|
177
|
+
Returns:
|
|
178
|
+
Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
return sync_detailed(
|
|
182
|
+
graph_id=graph_id,
|
|
183
|
+
client=client,
|
|
184
|
+
authorization=authorization,
|
|
185
|
+
auth_token=auth_token,
|
|
186
|
+
).parsed
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
async def asyncio_detailed(
|
|
190
|
+
graph_id: str,
|
|
191
|
+
*,
|
|
192
|
+
client: AuthenticatedClient,
|
|
193
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
194
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
195
|
+
) -> Response[
|
|
196
|
+
Union[
|
|
197
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
198
|
+
]
|
|
199
|
+
]:
|
|
200
|
+
"""Get Current Bill
|
|
201
|
+
|
|
202
|
+
Get current month's billing details for the graph.
|
|
203
|
+
|
|
204
|
+
Returns comprehensive billing information including:
|
|
205
|
+
- **Credit Usage**: Consumed vs. allocated credits
|
|
206
|
+
- **Storage Charges**: Current storage usage and costs
|
|
207
|
+
- **Subscription Tier**: Current plan and features
|
|
208
|
+
- **Pro-rated Charges**: If plan changed mid-month
|
|
209
|
+
- **Estimated Total**: Current charges to date
|
|
210
|
+
|
|
211
|
+
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
212
|
+
|
|
213
|
+
ℹ️ No credits are consumed for viewing billing information.
|
|
214
|
+
|
|
215
|
+
Args:
|
|
216
|
+
graph_id (str): Graph database identifier
|
|
217
|
+
authorization (Union[None, Unset, str]):
|
|
218
|
+
auth_token (Union[None, Unset, str]):
|
|
219
|
+
|
|
220
|
+
Raises:
|
|
221
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
222
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
223
|
+
|
|
224
|
+
Returns:
|
|
225
|
+
Response[Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]]
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
kwargs = _get_kwargs(
|
|
229
|
+
graph_id=graph_id,
|
|
230
|
+
authorization=authorization,
|
|
231
|
+
auth_token=auth_token,
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
235
|
+
|
|
236
|
+
return _build_response(client=client, response=response)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
async def asyncio(
|
|
240
|
+
graph_id: str,
|
|
241
|
+
*,
|
|
242
|
+
client: AuthenticatedClient,
|
|
243
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
244
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
245
|
+
) -> Optional[
|
|
246
|
+
Union[
|
|
247
|
+
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
248
|
+
]
|
|
249
|
+
]:
|
|
250
|
+
"""Get Current Bill
|
|
251
|
+
|
|
252
|
+
Get current month's billing details for the graph.
|
|
253
|
+
|
|
254
|
+
Returns comprehensive billing information including:
|
|
255
|
+
- **Credit Usage**: Consumed vs. allocated credits
|
|
256
|
+
- **Storage Charges**: Current storage usage and costs
|
|
257
|
+
- **Subscription Tier**: Current plan and features
|
|
258
|
+
- **Pro-rated Charges**: If plan changed mid-month
|
|
259
|
+
- **Estimated Total**: Current charges to date
|
|
260
|
+
|
|
261
|
+
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
262
|
+
|
|
263
|
+
ℹ️ No credits are consumed for viewing billing information.
|
|
264
|
+
|
|
265
|
+
Args:
|
|
266
|
+
graph_id (str): Graph database identifier
|
|
267
|
+
authorization (Union[None, Unset, str]):
|
|
268
|
+
auth_token (Union[None, Unset, str]):
|
|
269
|
+
|
|
270
|
+
Raises:
|
|
271
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
272
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
273
|
+
|
|
274
|
+
Returns:
|
|
275
|
+
Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
return (
|
|
279
|
+
await asyncio_detailed(
|
|
280
|
+
graph_id=graph_id,
|
|
281
|
+
client=client,
|
|
282
|
+
authorization=authorization,
|
|
283
|
+
auth_token=auth_token,
|
|
284
|
+
)
|
|
285
|
+
).parsed
|