robosystems-client 0.2.14__py3-none-any.whl → 0.2.16__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/api/agent/auto_select_agent.py +51 -27
- robosystems_client/api/agent/batch_process_queries.py +13 -13
- robosystems_client/api/agent/execute_specific_agent.py +23 -27
- robosystems_client/api/agent/get_agent_metadata.py +13 -13
- robosystems_client/api/agent/list_agents.py +23 -23
- robosystems_client/api/agent/recommend_agent.py +13 -13
- robosystems_client/api/auth/check_password_strength.py +17 -17
- robosystems_client/api/auth/complete_sso_auth.py +17 -17
- robosystems_client/api/auth/forgot_password.py +17 -23
- robosystems_client/api/auth/generate_sso_token.py +26 -26
- robosystems_client/api/auth/get_captcha_config.py +6 -6
- robosystems_client/api/auth/get_current_auth_user.py +17 -17
- robosystems_client/api/auth/get_password_policy.py +10 -10
- robosystems_client/api/auth/login_user.py +17 -17
- robosystems_client/api/auth/logout_user.py +10 -10
- robosystems_client/api/auth/refresh_auth_session.py +17 -17
- robosystems_client/api/auth/register_user.py +17 -17
- robosystems_client/api/auth/resend_verification_email.py +17 -29
- robosystems_client/api/auth/reset_password.py +17 -17
- robosystems_client/api/auth/sso_token_exchange.py +17 -17
- robosystems_client/api/auth/validate_reset_token.py +17 -17
- robosystems_client/api/auth/verify_email.py +17 -17
- robosystems_client/api/backup/create_backup.py +13 -13
- robosystems_client/api/backup/get_backup_download_url.py +22 -22
- robosystems_client/api/backup/get_backup_stats.py +13 -13
- robosystems_client/api/backup/list_backups.py +31 -31
- robosystems_client/api/backup/restore_backup.py +13 -13
- robosystems_client/api/billing/cancel_org_subscription.py +13 -13
- robosystems_client/api/billing/create_checkout_session.py +13 -13
- robosystems_client/api/billing/create_portal_session.py +13 -13
- robosystems_client/api/billing/get_checkout_status.py +13 -13
- robosystems_client/api/billing/get_org_billing_customer.py +13 -13
- robosystems_client/api/billing/get_org_subscription.py +13 -13
- robosystems_client/api/billing/get_org_upcoming_invoice.py +16 -16
- robosystems_client/api/billing/list_org_invoices.py +22 -22
- robosystems_client/api/billing/list_org_subscriptions.py +13 -13
- robosystems_client/api/connections/create_connection.py +13 -13
- robosystems_client/api/connections/create_link_token.py +13 -13
- robosystems_client/api/connections/delete_connection.py +13 -13
- robosystems_client/api/connections/exchange_link_token.py +13 -13
- robosystems_client/api/connections/get_connection.py +13 -13
- robosystems_client/api/connections/get_connection_options.py +13 -13
- robosystems_client/api/connections/init_o_auth.py +13 -13
- robosystems_client/api/connections/list_connections.py +33 -33
- robosystems_client/api/connections/oauth_callback.py +13 -13
- robosystems_client/api/connections/sync_connection.py +13 -19
- robosystems_client/api/credits_/check_credit_balance.py +38 -45
- robosystems_client/api/credits_/check_storage_limits.py +13 -13
- robosystems_client/api/credits_/get_credit_summary.py +13 -13
- robosystems_client/api/credits_/get_storage_usage.py +28 -28
- robosystems_client/api/credits_/list_credit_transactions.py +71 -71
- robosystems_client/api/files/__init__.py +1 -0
- robosystems_client/api/files/create_file_upload.py +311 -0
- robosystems_client/api/files/delete_file.py +354 -0
- robosystems_client/api/files/get_file.py +329 -0
- robosystems_client/api/files/list_files.py +346 -0
- robosystems_client/api/files/update_file.py +320 -0
- robosystems_client/api/graph_health/get_database_health.py +41 -13
- robosystems_client/api/graph_info/get_database_info.py +41 -13
- robosystems_client/api/graph_limits/get_graph_limits.py +17 -17
- robosystems_client/api/graphs/create_graph.py +13 -13
- robosystems_client/api/graphs/get_available_extensions.py +13 -13
- robosystems_client/api/graphs/get_available_graph_tiers.py +22 -22
- robosystems_client/api/graphs/get_graphs.py +13 -13
- robosystems_client/api/graphs/select_graph.py +13 -13
- robosystems_client/api/materialization/__init__.py +1 -0
- robosystems_client/api/materialization/get_materialization_status.py +272 -0
- robosystems_client/api/materialization/materialize_graph.py +416 -0
- robosystems_client/api/mcp/call_mcp_tool.py +60 -32
- robosystems_client/api/mcp/list_mcp_tools.py +41 -13
- robosystems_client/api/operations/cancel_operation.py +13 -13
- robosystems_client/api/operations/get_operation_status.py +13 -25
- robosystems_client/api/operations/stream_operation_events.py +41 -41
- robosystems_client/api/org/create_org.py +13 -13
- robosystems_client/api/org/get_org.py +13 -13
- robosystems_client/api/org/list_org_graphs.py +13 -13
- robosystems_client/api/org/list_user_orgs.py +6 -6
- robosystems_client/api/org/update_org.py +13 -13
- robosystems_client/api/org_members/invite_org_member.py +13 -13
- robosystems_client/api/org_members/list_org_members.py +13 -13
- robosystems_client/api/org_members/remove_org_member.py +13 -13
- robosystems_client/api/org_members/update_org_member_role.py +13 -13
- robosystems_client/api/org_usage/get_org_limits.py +13 -13
- robosystems_client/api/org_usage/get_org_usage.py +22 -22
- robosystems_client/api/query/execute_cypher_query.py +98 -62
- robosystems_client/api/schema/export_graph_schema.py +35 -35
- robosystems_client/api/schema/get_graph_schema.py +45 -13
- robosystems_client/api/schema/validate_schema.py +41 -13
- robosystems_client/api/service_offerings/get_service_offerings.py +17 -17
- robosystems_client/api/status/get_service_status.py +10 -10
- robosystems_client/api/subgraphs/create_subgraph.py +84 -24
- robosystems_client/api/subgraphs/delete_subgraph.py +51 -27
- robosystems_client/api/subgraphs/get_subgraph_info.py +47 -27
- robosystems_client/api/subgraphs/get_subgraph_quota.py +13 -13
- robosystems_client/api/subgraphs/list_subgraphs.py +13 -13
- robosystems_client/api/subscriptions/create_repository_subscription.py +13 -13
- robosystems_client/api/subscriptions/get_graph_subscription.py +13 -13
- robosystems_client/api/subscriptions/upgrade_subscription.py +13 -13
- robosystems_client/api/tables/list_tables.py +13 -13
- robosystems_client/api/tables/query_tables.py +37 -13
- robosystems_client/api/usage/get_graph_metrics.py +13 -13
- robosystems_client/api/usage/get_graph_usage_analytics.py +66 -66
- robosystems_client/api/user/create_user_api_key.py +13 -13
- robosystems_client/api/user/get_current_user.py +6 -6
- robosystems_client/api/user/list_user_api_keys.py +6 -6
- robosystems_client/api/user/revoke_user_api_key.py +13 -13
- robosystems_client/api/user/update_user.py +13 -13
- robosystems_client/api/user/update_user_api_key.py +13 -13
- robosystems_client/api/user/update_user_password.py +13 -13
- robosystems_client/api/views/__init__.py +1 -0
- robosystems_client/api/views/create_view.py +245 -0
- robosystems_client/api/views/save_view.py +299 -0
- robosystems_client/client.py +13 -13
- robosystems_client/extensions/__init__.py +39 -0
- robosystems_client/extensions/element_mapping_client.py +585 -0
- robosystems_client/extensions/subgraph_workspace_client.py +744 -0
- robosystems_client/extensions/table_ingest_client.py +24 -23
- robosystems_client/extensions/view_builder_client.py +617 -0
- robosystems_client/models/__init__.py +34 -10
- robosystems_client/models/account_info.py +2 -0
- robosystems_client/models/agent_list_response.py +3 -1
- robosystems_client/models/agent_list_response_agents.py +5 -3
- robosystems_client/models/agent_list_response_agents_additional_property.py +2 -0
- robosystems_client/models/agent_message.py +9 -7
- robosystems_client/models/agent_metadata_response.py +11 -9
- robosystems_client/models/agent_recommendation.py +8 -6
- robosystems_client/models/agent_recommendation_request.py +9 -7
- robosystems_client/models/agent_recommendation_request_context_type_0.py +2 -0
- robosystems_client/models/agent_recommendation_response.py +4 -2
- robosystems_client/models/agent_request.py +41 -40
- robosystems_client/models/agent_request_context_type_0.py +2 -0
- robosystems_client/models/agent_response.py +42 -44
- robosystems_client/models/agent_response_error_details_type_0.py +2 -0
- robosystems_client/models/agent_response_metadata_type_0.py +2 -0
- robosystems_client/models/agent_response_tokens_used_type_0.py +2 -0
- robosystems_client/models/api_key_info.py +18 -16
- robosystems_client/models/api_keys_response.py +4 -2
- robosystems_client/models/auth_response.py +26 -24
- robosystems_client/models/auth_response_org_type_0.py +2 -0
- robosystems_client/models/auth_response_user.py +2 -0
- robosystems_client/models/available_extension.py +5 -3
- robosystems_client/models/available_extensions_response.py +4 -2
- robosystems_client/models/available_graph_tiers_response.py +4 -2
- robosystems_client/models/backup_create_request.py +18 -16
- robosystems_client/models/backup_download_url_response.py +2 -0
- robosystems_client/models/backup_limits.py +2 -0
- robosystems_client/models/backup_list_response.py +4 -2
- robosystems_client/models/backup_response.py +13 -11
- robosystems_client/models/backup_restore_request.py +7 -6
- robosystems_client/models/backup_stats_response.py +9 -7
- robosystems_client/models/backup_stats_response_backup_formats.py +2 -0
- robosystems_client/models/batch_agent_request.py +7 -5
- robosystems_client/models/batch_agent_response.py +4 -2
- robosystems_client/models/billing_customer.py +10 -8
- robosystems_client/models/cancel_operation_response_canceloperation.py +2 -0
- robosystems_client/models/check_credit_balance_response_checkcreditbalance.py +2 -0
- robosystems_client/models/checkout_response.py +22 -20
- robosystems_client/models/checkout_status_response.py +19 -17
- robosystems_client/models/connection_options_response.py +4 -2
- robosystems_client/models/connection_provider_info.py +26 -24
- robosystems_client/models/connection_response.py +14 -12
- robosystems_client/models/connection_response_metadata.py +2 -0
- robosystems_client/models/copy_operation_limits.py +2 -0
- robosystems_client/models/create_api_key_request.py +13 -11
- robosystems_client/models/create_api_key_response.py +3 -1
- robosystems_client/models/create_checkout_request.py +3 -1
- robosystems_client/models/create_checkout_request_resource_config.py +2 -0
- robosystems_client/models/create_connection_request.py +21 -21
- robosystems_client/models/create_graph_request.py +25 -25
- robosystems_client/models/create_org_request.py +7 -5
- robosystems_client/models/create_repository_subscription_request.py +2 -0
- robosystems_client/models/create_subgraph_request.py +30 -19
- robosystems_client/models/create_subgraph_request_metadata_type_0.py +2 -0
- robosystems_client/models/create_view_request.py +141 -0
- robosystems_client/models/credit_limits.py +2 -0
- robosystems_client/models/credit_summary.py +3 -1
- robosystems_client/models/credit_summary_operation_breakdown.py +2 -0
- robosystems_client/models/credit_summary_response.py +8 -6
- robosystems_client/models/custom_schema_definition.py +39 -33
- robosystems_client/models/custom_schema_definition_metadata.py +2 -0
- robosystems_client/models/custom_schema_definition_nodes_item.py +2 -0
- robosystems_client/models/custom_schema_definition_relationships_item.py +2 -0
- robosystems_client/models/cypher_query_request.py +15 -13
- robosystems_client/models/cypher_query_request_parameters_type_0.py +2 -0
- robosystems_client/models/database_health_response.py +21 -19
- robosystems_client/models/database_info_response.py +13 -11
- robosystems_client/models/delete_file_response.py +54 -1
- robosystems_client/models/delete_subgraph_request.py +12 -10
- robosystems_client/models/delete_subgraph_response.py +13 -11
- robosystems_client/models/detailed_transactions_response.py +6 -4
- robosystems_client/models/detailed_transactions_response_date_range.py +2 -0
- robosystems_client/models/detailed_transactions_response_summary.py +5 -3
- robosystems_client/models/email_verification_request.py +2 -0
- robosystems_client/models/enhanced_credit_transaction_response.py +24 -22
- robosystems_client/models/enhanced_credit_transaction_response_metadata.py +2 -0
- robosystems_client/models/enhanced_file_status_layers.py +83 -0
- robosystems_client/models/error_response.py +19 -17
- robosystems_client/models/exchange_token_request.py +9 -7
- robosystems_client/models/exchange_token_request_metadata_type_0.py +2 -0
- robosystems_client/models/execute_cypher_query_response_200.py +25 -21
- robosystems_client/models/execute_cypher_query_response_200_data_item.py +2 -0
- robosystems_client/models/fact_detail.py +109 -0
- robosystems_client/models/file_info.py +18 -16
- robosystems_client/models/file_layer_status.py +123 -0
- robosystems_client/models/file_status_update.py +14 -0
- robosystems_client/models/file_upload_request.py +25 -3
- robosystems_client/models/file_upload_response.py +2 -0
- robosystems_client/models/forgot_password_request.py +2 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +2 -0
- robosystems_client/models/get_current_auth_user_response_getcurrentauthuser.py +2 -0
- robosystems_client/models/get_file_info_response.py +62 -21
- robosystems_client/models/get_operation_status_response_getoperationstatus.py +2 -0
- robosystems_client/models/get_storage_usage_response_getstorageusage.py +2 -0
- robosystems_client/models/graph_info.py +10 -8
- robosystems_client/models/graph_limits_response.py +14 -12
- robosystems_client/models/graph_metadata.py +14 -12
- robosystems_client/models/graph_metrics_response.py +17 -15
- robosystems_client/models/graph_metrics_response_estimated_size.py +2 -0
- robosystems_client/models/graph_metrics_response_health_status.py +2 -0
- robosystems_client/models/graph_metrics_response_node_counts.py +2 -0
- robosystems_client/models/graph_metrics_response_relationship_counts.py +2 -0
- robosystems_client/models/graph_subscription_response.py +28 -26
- robosystems_client/models/graph_subscription_tier.py +15 -13
- robosystems_client/models/graph_subscriptions.py +5 -3
- robosystems_client/models/graph_tier_backup.py +2 -0
- robosystems_client/models/graph_tier_copy_operations.py +2 -0
- robosystems_client/models/graph_tier_info.py +15 -13
- robosystems_client/models/graph_tier_instance.py +2 -0
- robosystems_client/models/graph_tier_limits.py +10 -8
- robosystems_client/models/graph_usage_response.py +32 -30
- robosystems_client/models/graph_usage_response_recent_events_item.py +2 -0
- robosystems_client/models/health_status.py +9 -7
- robosystems_client/models/health_status_details_type_0.py +2 -0
- robosystems_client/models/http_validation_error.py +12 -8
- robosystems_client/models/initial_entity_data.py +38 -36
- robosystems_client/models/invite_member_request.py +9 -7
- robosystems_client/models/invoice.py +35 -33
- robosystems_client/models/invoice_line_item.py +13 -11
- robosystems_client/models/invoices_response.py +4 -2
- robosystems_client/models/link_token_request.py +21 -23
- robosystems_client/models/link_token_request_options_type_0.py +2 -0
- robosystems_client/models/list_org_graphs_response_200_item.py +2 -0
- robosystems_client/models/list_subgraphs_response.py +15 -13
- robosystems_client/models/list_table_files_response.py +27 -11
- robosystems_client/models/login_request.py +2 -0
- robosystems_client/models/logout_user_response_logoutuser.py +2 -0
- robosystems_client/models/{bulk_ingest_request.py → materialize_request.py} +25 -15
- robosystems_client/models/materialize_response.py +131 -0
- robosystems_client/models/materialize_status_response.py +172 -0
- robosystems_client/models/mcp_tool_call.py +7 -5
- robosystems_client/models/mcp_tool_call_arguments.py +2 -0
- robosystems_client/models/mcp_tools_response.py +4 -2
- robosystems_client/models/mcp_tools_response_tools_item.py +2 -0
- robosystems_client/models/o_auth_callback_request.py +18 -16
- robosystems_client/models/o_auth_init_request.py +14 -12
- robosystems_client/models/o_auth_init_request_additional_params_type_0.py +2 -0
- robosystems_client/models/o_auth_init_response.py +2 -0
- robosystems_client/models/offering_repository_plan.py +9 -7
- robosystems_client/models/offering_repository_plan_rate_limits_type_0.py +8 -8
- robosystems_client/models/operation_costs.py +4 -2
- robosystems_client/models/operation_costs_ai_operations.py +2 -0
- robosystems_client/models/operation_costs_token_pricing.py +5 -3
- robosystems_client/models/org_detail_response.py +13 -11
- robosystems_client/models/org_detail_response_graphs_item.py +2 -0
- robosystems_client/models/org_detail_response_limits_type_0.py +2 -0
- robosystems_client/models/org_detail_response_members_item.py +2 -0
- robosystems_client/models/org_limits_response.py +3 -1
- robosystems_client/models/org_limits_response_current_usage.py +2 -0
- robosystems_client/models/org_list_response.py +4 -2
- robosystems_client/models/org_member_list_response.py +4 -2
- robosystems_client/models/org_member_response.py +2 -0
- robosystems_client/models/org_response.py +2 -0
- robosystems_client/models/org_usage_response.py +7 -5
- robosystems_client/models/org_usage_response_daily_trend_item.py +2 -0
- robosystems_client/models/org_usage_response_graph_details_item.py +2 -0
- robosystems_client/models/org_usage_summary.py +18 -16
- robosystems_client/models/password_check_request.py +8 -6
- robosystems_client/models/password_check_response.py +3 -1
- robosystems_client/models/password_check_response_character_types.py +2 -0
- robosystems_client/models/password_policy_response.py +3 -1
- robosystems_client/models/password_policy_response_policy.py +2 -0
- robosystems_client/models/payment_method.py +23 -21
- robosystems_client/models/performance_insights.py +5 -3
- robosystems_client/models/performance_insights_operation_stats.py +2 -0
- robosystems_client/models/performance_insights_slow_queries_item.py +2 -0
- robosystems_client/models/plaid_connection_config.py +30 -30
- robosystems_client/models/plaid_connection_config_accounts_type_0_item.py +2 -0
- robosystems_client/models/plaid_connection_config_institution_type_0.py +2 -0
- robosystems_client/models/portal_session_response.py +2 -0
- robosystems_client/models/query_limits.py +2 -0
- robosystems_client/models/quick_books_connection_config.py +13 -11
- robosystems_client/models/rate_limits.py +2 -0
- robosystems_client/models/register_request.py +8 -6
- robosystems_client/models/repository_info.py +4 -2
- robosystems_client/models/repository_subscriptions.py +4 -2
- robosystems_client/models/resend_verification_email_response_resendverificationemail.py +2 -0
- robosystems_client/models/reset_password_request.py +2 -0
- robosystems_client/models/reset_password_validate_response.py +8 -6
- robosystems_client/models/save_view_request.py +138 -0
- robosystems_client/models/save_view_response.py +181 -0
- robosystems_client/models/schema_export_response.py +16 -14
- robosystems_client/models/schema_export_response_data_stats_type_0.py +2 -0
- robosystems_client/models/schema_export_response_schema_definition_type_0.py +2 -0
- robosystems_client/models/schema_info_response.py +3 -1
- robosystems_client/models/schema_info_response_schema.py +2 -0
- robosystems_client/models/schema_validation_request.py +18 -17
- robosystems_client/models/schema_validation_request_schema_definition_type_0.py +2 -0
- robosystems_client/models/schema_validation_response.py +28 -33
- robosystems_client/models/schema_validation_response_compatibility_type_0.py +2 -0
- robosystems_client/models/schema_validation_response_stats_type_0.py +2 -0
- robosystems_client/models/sec_connection_config.py +8 -6
- robosystems_client/models/selection_criteria.py +19 -17
- robosystems_client/models/service_offering_summary.py +2 -0
- robosystems_client/models/service_offerings_response.py +6 -4
- robosystems_client/models/sso_complete_request.py +2 -0
- robosystems_client/models/sso_exchange_request.py +8 -6
- robosystems_client/models/sso_exchange_response.py +2 -0
- robosystems_client/models/sso_token_response.py +2 -0
- robosystems_client/models/storage_info.py +4 -2
- robosystems_client/models/storage_info_included_per_tier.py +2 -0
- robosystems_client/models/storage_info_overage_pricing.py +2 -0
- robosystems_client/models/storage_limit_response.py +9 -7
- robosystems_client/models/storage_limits.py +8 -6
- robosystems_client/models/storage_summary.py +2 -0
- robosystems_client/models/structure_detail.py +85 -0
- robosystems_client/models/subgraph_quota_response.py +23 -21
- robosystems_client/models/subgraph_response.py +35 -35
- robosystems_client/models/subgraph_response_metadata_type_0.py +2 -0
- robosystems_client/models/subgraph_summary.py +14 -12
- robosystems_client/models/success_response.py +11 -9
- robosystems_client/models/success_response_data_type_0.py +2 -0
- robosystems_client/models/sync_connection_request.py +11 -9
- robosystems_client/models/sync_connection_request_sync_options_type_0.py +2 -0
- robosystems_client/models/sync_connection_response_syncconnection.py +2 -0
- robosystems_client/models/table_info.py +12 -10
- robosystems_client/models/table_list_response.py +4 -2
- robosystems_client/models/table_query_request.py +9 -7
- robosystems_client/models/table_query_response.py +2 -0
- robosystems_client/models/token_pricing.py +2 -0
- robosystems_client/models/transaction_summary_response.py +13 -11
- robosystems_client/models/upcoming_invoice.py +10 -8
- robosystems_client/models/update_api_key_request.py +13 -11
- robosystems_client/models/{update_file_status_response_updatefilestatus.py → update_file_response_updatefile.py} +7 -5
- robosystems_client/models/update_member_role_request.py +2 -0
- robosystems_client/models/update_org_request.py +14 -12
- robosystems_client/models/update_password_request.py +2 -0
- robosystems_client/models/update_user_request.py +13 -11
- robosystems_client/models/upgrade_subscription_request.py +2 -0
- robosystems_client/models/user_graphs_response.py +10 -8
- robosystems_client/models/user_response.py +22 -18
- robosystems_client/models/validation_error.py +8 -6
- robosystems_client/models/view_axis_config.py +276 -0
- robosystems_client/models/view_axis_config_element_labels_type_0.py +46 -0
- robosystems_client/models/view_axis_config_member_labels_type_0.py +46 -0
- robosystems_client/models/view_config.py +127 -0
- robosystems_client/models/view_source.py +144 -0
- robosystems_client/models/view_source_type.py +9 -0
- robosystems_client/types.py +9 -9
- {robosystems_client-0.2.14.dist-info → robosystems_client-0.2.16.dist-info}/METADATA +1 -1
- robosystems_client-0.2.16.dist-info/RECORD +418 -0
- robosystems_client/api/tables/delete_file.py +0 -317
- robosystems_client/api/tables/get_file_info.py +0 -249
- robosystems_client/api/tables/get_upload_url.py +0 -352
- robosystems_client/api/tables/ingest_tables.py +0 -428
- robosystems_client/api/tables/list_table_files.py +0 -329
- robosystems_client/api/tables/update_file_status.py +0 -395
- robosystems_client/models/bulk_ingest_response.py +0 -137
- robosystems_client/models/table_ingest_result.py +0 -107
- robosystems_client-0.2.14.dist-info/RECORD +0 -396
- {robosystems_client-0.2.14.dist-info → robosystems_client-0.2.16.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.14.dist-info → robosystems_client-0.2.16.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar,
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -24,9 +26,9 @@ class ListSubgraphsResponse:
|
|
|
24
26
|
subgraphs_enabled (bool): Whether subgraphs are enabled for this tier (requires Kuzu Large/XLarge or Neo4j
|
|
25
27
|
Enterprise XLarge)
|
|
26
28
|
subgraph_count (int): Total number of subgraphs
|
|
27
|
-
subgraphs (list[
|
|
28
|
-
max_subgraphs (
|
|
29
|
-
total_size_mb (
|
|
29
|
+
subgraphs (list[SubgraphSummary]): List of subgraphs
|
|
30
|
+
max_subgraphs (int | None | Unset): Maximum allowed subgraphs for this tier (None = unlimited)
|
|
31
|
+
total_size_mb (float | None | Unset): Combined size of all subgraphs in megabytes
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
parent_graph_id: str
|
|
@@ -34,9 +36,9 @@ class ListSubgraphsResponse:
|
|
|
34
36
|
parent_graph_tier: str
|
|
35
37
|
subgraphs_enabled: bool
|
|
36
38
|
subgraph_count: int
|
|
37
|
-
subgraphs: list[
|
|
38
|
-
max_subgraphs:
|
|
39
|
-
total_size_mb:
|
|
39
|
+
subgraphs: list[SubgraphSummary]
|
|
40
|
+
max_subgraphs: int | None | Unset = UNSET
|
|
41
|
+
total_size_mb: float | None | Unset = UNSET
|
|
40
42
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
43
|
|
|
42
44
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -55,13 +57,13 @@ class ListSubgraphsResponse:
|
|
|
55
57
|
subgraphs_item = subgraphs_item_data.to_dict()
|
|
56
58
|
subgraphs.append(subgraphs_item)
|
|
57
59
|
|
|
58
|
-
max_subgraphs:
|
|
60
|
+
max_subgraphs: int | None | Unset
|
|
59
61
|
if isinstance(self.max_subgraphs, Unset):
|
|
60
62
|
max_subgraphs = UNSET
|
|
61
63
|
else:
|
|
62
64
|
max_subgraphs = self.max_subgraphs
|
|
63
65
|
|
|
64
|
-
total_size_mb:
|
|
66
|
+
total_size_mb: float | None | Unset
|
|
65
67
|
if isinstance(self.total_size_mb, Unset):
|
|
66
68
|
total_size_mb = UNSET
|
|
67
69
|
else:
|
|
@@ -108,21 +110,21 @@ class ListSubgraphsResponse:
|
|
|
108
110
|
|
|
109
111
|
subgraphs.append(subgraphs_item)
|
|
110
112
|
|
|
111
|
-
def _parse_max_subgraphs(data: object) ->
|
|
113
|
+
def _parse_max_subgraphs(data: object) -> int | None | Unset:
|
|
112
114
|
if data is None:
|
|
113
115
|
return data
|
|
114
116
|
if isinstance(data, Unset):
|
|
115
117
|
return data
|
|
116
|
-
return cast(
|
|
118
|
+
return cast(int | None | Unset, data)
|
|
117
119
|
|
|
118
120
|
max_subgraphs = _parse_max_subgraphs(d.pop("max_subgraphs", UNSET))
|
|
119
121
|
|
|
120
|
-
def _parse_total_size_mb(data: object) ->
|
|
122
|
+
def _parse_total_size_mb(data: object) -> float | None | Unset:
|
|
121
123
|
if data is None:
|
|
122
124
|
return data
|
|
123
125
|
if isinstance(data, Unset):
|
|
124
126
|
return data
|
|
125
|
-
return cast(
|
|
127
|
+
return cast(float | None | Unset, data)
|
|
126
128
|
|
|
127
129
|
total_size_mb = _parse_total_size_mb(d.pop("total_size_mb", UNSET))
|
|
128
130
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
6
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
7
11
|
if TYPE_CHECKING:
|
|
8
12
|
from ..models.file_info import FileInfo
|
|
9
13
|
|
|
@@ -16,24 +20,22 @@ class ListTableFilesResponse:
|
|
|
16
20
|
"""
|
|
17
21
|
Attributes:
|
|
18
22
|
graph_id (str): Graph database identifier
|
|
19
|
-
|
|
20
|
-
files (list['FileInfo']): List of files in the table
|
|
23
|
+
files (list[FileInfo]): List of files in the table
|
|
21
24
|
total_files (int): Total number of files
|
|
22
25
|
total_size_bytes (int): Total size of all files in bytes
|
|
26
|
+
table_name (None | str | Unset): Table name (null if listing all files in graph)
|
|
23
27
|
"""
|
|
24
28
|
|
|
25
29
|
graph_id: str
|
|
26
|
-
|
|
27
|
-
files: list["FileInfo"]
|
|
30
|
+
files: list[FileInfo]
|
|
28
31
|
total_files: int
|
|
29
32
|
total_size_bytes: int
|
|
33
|
+
table_name: None | str | Unset = UNSET
|
|
30
34
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
35
|
|
|
32
36
|
def to_dict(self) -> dict[str, Any]:
|
|
33
37
|
graph_id = self.graph_id
|
|
34
38
|
|
|
35
|
-
table_name = self.table_name
|
|
36
|
-
|
|
37
39
|
files = []
|
|
38
40
|
for files_item_data in self.files:
|
|
39
41
|
files_item = files_item_data.to_dict()
|
|
@@ -43,17 +45,24 @@ class ListTableFilesResponse:
|
|
|
43
45
|
|
|
44
46
|
total_size_bytes = self.total_size_bytes
|
|
45
47
|
|
|
48
|
+
table_name: None | str | Unset
|
|
49
|
+
if isinstance(self.table_name, Unset):
|
|
50
|
+
table_name = UNSET
|
|
51
|
+
else:
|
|
52
|
+
table_name = self.table_name
|
|
53
|
+
|
|
46
54
|
field_dict: dict[str, Any] = {}
|
|
47
55
|
field_dict.update(self.additional_properties)
|
|
48
56
|
field_dict.update(
|
|
49
57
|
{
|
|
50
58
|
"graph_id": graph_id,
|
|
51
|
-
"table_name": table_name,
|
|
52
59
|
"files": files,
|
|
53
60
|
"total_files": total_files,
|
|
54
61
|
"total_size_bytes": total_size_bytes,
|
|
55
62
|
}
|
|
56
63
|
)
|
|
64
|
+
if table_name is not UNSET:
|
|
65
|
+
field_dict["table_name"] = table_name
|
|
57
66
|
|
|
58
67
|
return field_dict
|
|
59
68
|
|
|
@@ -64,8 +73,6 @@ class ListTableFilesResponse:
|
|
|
64
73
|
d = dict(src_dict)
|
|
65
74
|
graph_id = d.pop("graph_id")
|
|
66
75
|
|
|
67
|
-
table_name = d.pop("table_name")
|
|
68
|
-
|
|
69
76
|
files = []
|
|
70
77
|
_files = d.pop("files")
|
|
71
78
|
for files_item_data in _files:
|
|
@@ -77,12 +84,21 @@ class ListTableFilesResponse:
|
|
|
77
84
|
|
|
78
85
|
total_size_bytes = d.pop("total_size_bytes")
|
|
79
86
|
|
|
87
|
+
def _parse_table_name(data: object) -> None | str | Unset:
|
|
88
|
+
if data is None:
|
|
89
|
+
return data
|
|
90
|
+
if isinstance(data, Unset):
|
|
91
|
+
return data
|
|
92
|
+
return cast(None | str | Unset, data)
|
|
93
|
+
|
|
94
|
+
table_name = _parse_table_name(d.pop("table_name", UNSET))
|
|
95
|
+
|
|
80
96
|
list_table_files_response = cls(
|
|
81
97
|
graph_id=graph_id,
|
|
82
|
-
table_name=table_name,
|
|
83
98
|
files=files,
|
|
84
99
|
total_files=total_files,
|
|
85
100
|
total_size_bytes=total_size_bytes,
|
|
101
|
+
table_name=table_name,
|
|
86
102
|
)
|
|
87
103
|
|
|
88
104
|
list_table_files_response.additional_properties = d
|
|
@@ -1,50 +1,60 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
4
|
+
from typing import Any, TypeVar
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
|
|
6
8
|
from ..types import UNSET, Unset
|
|
7
9
|
|
|
8
|
-
T = TypeVar("T", bound="
|
|
10
|
+
T = TypeVar("T", bound="MaterializeRequest")
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
@_attrs_define
|
|
12
|
-
class
|
|
14
|
+
class MaterializeRequest:
|
|
13
15
|
"""
|
|
14
16
|
Attributes:
|
|
15
|
-
|
|
16
|
-
rebuild (
|
|
17
|
-
|
|
17
|
+
force (bool | Unset): Force materialization even if graph is not stale Default: False.
|
|
18
|
+
rebuild (bool | Unset): Delete and recreate graph database before materialization Default: False.
|
|
19
|
+
ignore_errors (bool | Unset): Continue ingestion on row errors Default: True.
|
|
18
20
|
"""
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
rebuild:
|
|
22
|
+
force: bool | Unset = False
|
|
23
|
+
rebuild: bool | Unset = False
|
|
24
|
+
ignore_errors: bool | Unset = True
|
|
22
25
|
|
|
23
26
|
def to_dict(self) -> dict[str, Any]:
|
|
24
|
-
|
|
27
|
+
force = self.force
|
|
25
28
|
|
|
26
29
|
rebuild = self.rebuild
|
|
27
30
|
|
|
31
|
+
ignore_errors = self.ignore_errors
|
|
32
|
+
|
|
28
33
|
field_dict: dict[str, Any] = {}
|
|
29
34
|
|
|
30
35
|
field_dict.update({})
|
|
31
|
-
if
|
|
32
|
-
field_dict["
|
|
36
|
+
if force is not UNSET:
|
|
37
|
+
field_dict["force"] = force
|
|
33
38
|
if rebuild is not UNSET:
|
|
34
39
|
field_dict["rebuild"] = rebuild
|
|
40
|
+
if ignore_errors is not UNSET:
|
|
41
|
+
field_dict["ignore_errors"] = ignore_errors
|
|
35
42
|
|
|
36
43
|
return field_dict
|
|
37
44
|
|
|
38
45
|
@classmethod
|
|
39
46
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
40
47
|
d = dict(src_dict)
|
|
41
|
-
|
|
48
|
+
force = d.pop("force", UNSET)
|
|
42
49
|
|
|
43
50
|
rebuild = d.pop("rebuild", UNSET)
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
ignore_errors = d.pop("ignore_errors", UNSET)
|
|
53
|
+
|
|
54
|
+
materialize_request = cls(
|
|
55
|
+
force=force,
|
|
47
56
|
rebuild=rebuild,
|
|
57
|
+
ignore_errors=ignore_errors,
|
|
48
58
|
)
|
|
49
59
|
|
|
50
|
-
return
|
|
60
|
+
return materialize_request
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="MaterializeResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class MaterializeResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
status (str): Materialization status
|
|
19
|
+
graph_id (str): Graph database identifier
|
|
20
|
+
was_stale (bool): Whether graph was stale before materialization
|
|
21
|
+
tables_materialized (list[str]): List of tables successfully materialized
|
|
22
|
+
total_rows (int): Total rows materialized across all tables
|
|
23
|
+
execution_time_ms (float): Total materialization time
|
|
24
|
+
message (str): Human-readable status message
|
|
25
|
+
stale_reason (None | str | Unset): Reason graph was stale
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
status: str
|
|
29
|
+
graph_id: str
|
|
30
|
+
was_stale: bool
|
|
31
|
+
tables_materialized: list[str]
|
|
32
|
+
total_rows: int
|
|
33
|
+
execution_time_ms: float
|
|
34
|
+
message: str
|
|
35
|
+
stale_reason: None | str | Unset = UNSET
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
status = self.status
|
|
40
|
+
|
|
41
|
+
graph_id = self.graph_id
|
|
42
|
+
|
|
43
|
+
was_stale = self.was_stale
|
|
44
|
+
|
|
45
|
+
tables_materialized = self.tables_materialized
|
|
46
|
+
|
|
47
|
+
total_rows = self.total_rows
|
|
48
|
+
|
|
49
|
+
execution_time_ms = self.execution_time_ms
|
|
50
|
+
|
|
51
|
+
message = self.message
|
|
52
|
+
|
|
53
|
+
stale_reason: None | str | Unset
|
|
54
|
+
if isinstance(self.stale_reason, Unset):
|
|
55
|
+
stale_reason = UNSET
|
|
56
|
+
else:
|
|
57
|
+
stale_reason = self.stale_reason
|
|
58
|
+
|
|
59
|
+
field_dict: dict[str, Any] = {}
|
|
60
|
+
field_dict.update(self.additional_properties)
|
|
61
|
+
field_dict.update(
|
|
62
|
+
{
|
|
63
|
+
"status": status,
|
|
64
|
+
"graph_id": graph_id,
|
|
65
|
+
"was_stale": was_stale,
|
|
66
|
+
"tables_materialized": tables_materialized,
|
|
67
|
+
"total_rows": total_rows,
|
|
68
|
+
"execution_time_ms": execution_time_ms,
|
|
69
|
+
"message": message,
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
if stale_reason is not UNSET:
|
|
73
|
+
field_dict["stale_reason"] = stale_reason
|
|
74
|
+
|
|
75
|
+
return field_dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
|
+
d = dict(src_dict)
|
|
80
|
+
status = d.pop("status")
|
|
81
|
+
|
|
82
|
+
graph_id = d.pop("graph_id")
|
|
83
|
+
|
|
84
|
+
was_stale = d.pop("was_stale")
|
|
85
|
+
|
|
86
|
+
tables_materialized = cast(list[str], d.pop("tables_materialized"))
|
|
87
|
+
|
|
88
|
+
total_rows = d.pop("total_rows")
|
|
89
|
+
|
|
90
|
+
execution_time_ms = d.pop("execution_time_ms")
|
|
91
|
+
|
|
92
|
+
message = d.pop("message")
|
|
93
|
+
|
|
94
|
+
def _parse_stale_reason(data: object) -> None | str | Unset:
|
|
95
|
+
if data is None:
|
|
96
|
+
return data
|
|
97
|
+
if isinstance(data, Unset):
|
|
98
|
+
return data
|
|
99
|
+
return cast(None | str | Unset, data)
|
|
100
|
+
|
|
101
|
+
stale_reason = _parse_stale_reason(d.pop("stale_reason", UNSET))
|
|
102
|
+
|
|
103
|
+
materialize_response = cls(
|
|
104
|
+
status=status,
|
|
105
|
+
graph_id=graph_id,
|
|
106
|
+
was_stale=was_stale,
|
|
107
|
+
tables_materialized=tables_materialized,
|
|
108
|
+
total_rows=total_rows,
|
|
109
|
+
execution_time_ms=execution_time_ms,
|
|
110
|
+
message=message,
|
|
111
|
+
stale_reason=stale_reason,
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
materialize_response.additional_properties = d
|
|
115
|
+
return materialize_response
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def additional_keys(self) -> list[str]:
|
|
119
|
+
return list(self.additional_properties.keys())
|
|
120
|
+
|
|
121
|
+
def __getitem__(self, key: str) -> Any:
|
|
122
|
+
return self.additional_properties[key]
|
|
123
|
+
|
|
124
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
125
|
+
self.additional_properties[key] = value
|
|
126
|
+
|
|
127
|
+
def __delitem__(self, key: str) -> None:
|
|
128
|
+
del self.additional_properties[key]
|
|
129
|
+
|
|
130
|
+
def __contains__(self, key: str) -> bool:
|
|
131
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="MaterializeStatusResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class MaterializeStatusResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
graph_id (str): Graph database identifier
|
|
19
|
+
is_stale (bool): Whether graph is currently stale
|
|
20
|
+
message (str): Human-readable status summary
|
|
21
|
+
stale_reason (None | str | Unset): Reason for staleness if applicable
|
|
22
|
+
stale_since (None | str | Unset): When graph became stale (ISO timestamp)
|
|
23
|
+
last_materialized_at (None | str | Unset): When graph was last materialized (ISO timestamp)
|
|
24
|
+
materialization_count (int | Unset): Total number of materializations performed Default: 0.
|
|
25
|
+
hours_since_materialization (float | None | Unset): Hours since last materialization
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
graph_id: str
|
|
29
|
+
is_stale: bool
|
|
30
|
+
message: str
|
|
31
|
+
stale_reason: None | str | Unset = UNSET
|
|
32
|
+
stale_since: None | str | Unset = UNSET
|
|
33
|
+
last_materialized_at: None | str | Unset = UNSET
|
|
34
|
+
materialization_count: int | Unset = 0
|
|
35
|
+
hours_since_materialization: float | None | Unset = UNSET
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
graph_id = self.graph_id
|
|
40
|
+
|
|
41
|
+
is_stale = self.is_stale
|
|
42
|
+
|
|
43
|
+
message = self.message
|
|
44
|
+
|
|
45
|
+
stale_reason: None | str | Unset
|
|
46
|
+
if isinstance(self.stale_reason, Unset):
|
|
47
|
+
stale_reason = UNSET
|
|
48
|
+
else:
|
|
49
|
+
stale_reason = self.stale_reason
|
|
50
|
+
|
|
51
|
+
stale_since: None | str | Unset
|
|
52
|
+
if isinstance(self.stale_since, Unset):
|
|
53
|
+
stale_since = UNSET
|
|
54
|
+
else:
|
|
55
|
+
stale_since = self.stale_since
|
|
56
|
+
|
|
57
|
+
last_materialized_at: None | str | Unset
|
|
58
|
+
if isinstance(self.last_materialized_at, Unset):
|
|
59
|
+
last_materialized_at = UNSET
|
|
60
|
+
else:
|
|
61
|
+
last_materialized_at = self.last_materialized_at
|
|
62
|
+
|
|
63
|
+
materialization_count = self.materialization_count
|
|
64
|
+
|
|
65
|
+
hours_since_materialization: float | None | Unset
|
|
66
|
+
if isinstance(self.hours_since_materialization, Unset):
|
|
67
|
+
hours_since_materialization = UNSET
|
|
68
|
+
else:
|
|
69
|
+
hours_since_materialization = self.hours_since_materialization
|
|
70
|
+
|
|
71
|
+
field_dict: dict[str, Any] = {}
|
|
72
|
+
field_dict.update(self.additional_properties)
|
|
73
|
+
field_dict.update(
|
|
74
|
+
{
|
|
75
|
+
"graph_id": graph_id,
|
|
76
|
+
"is_stale": is_stale,
|
|
77
|
+
"message": message,
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
if stale_reason is not UNSET:
|
|
81
|
+
field_dict["stale_reason"] = stale_reason
|
|
82
|
+
if stale_since is not UNSET:
|
|
83
|
+
field_dict["stale_since"] = stale_since
|
|
84
|
+
if last_materialized_at is not UNSET:
|
|
85
|
+
field_dict["last_materialized_at"] = last_materialized_at
|
|
86
|
+
if materialization_count is not UNSET:
|
|
87
|
+
field_dict["materialization_count"] = materialization_count
|
|
88
|
+
if hours_since_materialization is not UNSET:
|
|
89
|
+
field_dict["hours_since_materialization"] = hours_since_materialization
|
|
90
|
+
|
|
91
|
+
return field_dict
|
|
92
|
+
|
|
93
|
+
@classmethod
|
|
94
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
95
|
+
d = dict(src_dict)
|
|
96
|
+
graph_id = d.pop("graph_id")
|
|
97
|
+
|
|
98
|
+
is_stale = d.pop("is_stale")
|
|
99
|
+
|
|
100
|
+
message = d.pop("message")
|
|
101
|
+
|
|
102
|
+
def _parse_stale_reason(data: object) -> None | str | Unset:
|
|
103
|
+
if data is None:
|
|
104
|
+
return data
|
|
105
|
+
if isinstance(data, Unset):
|
|
106
|
+
return data
|
|
107
|
+
return cast(None | str | Unset, data)
|
|
108
|
+
|
|
109
|
+
stale_reason = _parse_stale_reason(d.pop("stale_reason", UNSET))
|
|
110
|
+
|
|
111
|
+
def _parse_stale_since(data: object) -> None | str | Unset:
|
|
112
|
+
if data is None:
|
|
113
|
+
return data
|
|
114
|
+
if isinstance(data, Unset):
|
|
115
|
+
return data
|
|
116
|
+
return cast(None | str | Unset, data)
|
|
117
|
+
|
|
118
|
+
stale_since = _parse_stale_since(d.pop("stale_since", UNSET))
|
|
119
|
+
|
|
120
|
+
def _parse_last_materialized_at(data: object) -> None | str | Unset:
|
|
121
|
+
if data is None:
|
|
122
|
+
return data
|
|
123
|
+
if isinstance(data, Unset):
|
|
124
|
+
return data
|
|
125
|
+
return cast(None | str | Unset, data)
|
|
126
|
+
|
|
127
|
+
last_materialized_at = _parse_last_materialized_at(
|
|
128
|
+
d.pop("last_materialized_at", UNSET)
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
materialization_count = d.pop("materialization_count", UNSET)
|
|
132
|
+
|
|
133
|
+
def _parse_hours_since_materialization(data: object) -> float | None | Unset:
|
|
134
|
+
if data is None:
|
|
135
|
+
return data
|
|
136
|
+
if isinstance(data, Unset):
|
|
137
|
+
return data
|
|
138
|
+
return cast(float | None | Unset, data)
|
|
139
|
+
|
|
140
|
+
hours_since_materialization = _parse_hours_since_materialization(
|
|
141
|
+
d.pop("hours_since_materialization", UNSET)
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
materialize_status_response = cls(
|
|
145
|
+
graph_id=graph_id,
|
|
146
|
+
is_stale=is_stale,
|
|
147
|
+
message=message,
|
|
148
|
+
stale_reason=stale_reason,
|
|
149
|
+
stale_since=stale_since,
|
|
150
|
+
last_materialized_at=last_materialized_at,
|
|
151
|
+
materialization_count=materialization_count,
|
|
152
|
+
hours_since_materialization=hours_since_materialization,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
materialize_status_response.additional_properties = d
|
|
156
|
+
return materialize_status_response
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def additional_keys(self) -> list[str]:
|
|
160
|
+
return list(self.additional_properties.keys())
|
|
161
|
+
|
|
162
|
+
def __getitem__(self, key: str) -> Any:
|
|
163
|
+
return self.additional_properties[key]
|
|
164
|
+
|
|
165
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
166
|
+
self.additional_properties[key] = value
|
|
167
|
+
|
|
168
|
+
def __delitem__(self, key: str) -> None:
|
|
169
|
+
del self.additional_properties[key]
|
|
170
|
+
|
|
171
|
+
def __contains__(self, key: str) -> bool:
|
|
172
|
+
return key in self.additional_properties
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -19,17 +21,17 @@ class MCPToolCall:
|
|
|
19
21
|
|
|
20
22
|
Attributes:
|
|
21
23
|
name (str): Name of the MCP tool to execute
|
|
22
|
-
arguments (
|
|
24
|
+
arguments (MCPToolCallArguments | Unset): Arguments to pass to the tool
|
|
23
25
|
"""
|
|
24
26
|
|
|
25
27
|
name: str
|
|
26
|
-
arguments:
|
|
28
|
+
arguments: MCPToolCallArguments | Unset = UNSET
|
|
27
29
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
30
|
|
|
29
31
|
def to_dict(self) -> dict[str, Any]:
|
|
30
32
|
name = self.name
|
|
31
33
|
|
|
32
|
-
arguments:
|
|
34
|
+
arguments: dict[str, Any] | Unset = UNSET
|
|
33
35
|
if not isinstance(self.arguments, Unset):
|
|
34
36
|
arguments = self.arguments.to_dict()
|
|
35
37
|
|
|
@@ -53,7 +55,7 @@ class MCPToolCall:
|
|
|
53
55
|
name = d.pop("name")
|
|
54
56
|
|
|
55
57
|
_arguments = d.pop("arguments", UNSET)
|
|
56
|
-
arguments:
|
|
58
|
+
arguments: MCPToolCallArguments | Unset
|
|
57
59
|
if isinstance(_arguments, Unset):
|
|
58
60
|
arguments = UNSET
|
|
59
61
|
else:
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
4
|
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
5
|
|
|
@@ -16,10 +18,10 @@ class MCPToolsResponse:
|
|
|
16
18
|
"""Response model for MCP tools listing.
|
|
17
19
|
|
|
18
20
|
Attributes:
|
|
19
|
-
tools (list[
|
|
21
|
+
tools (list[MCPToolsResponseToolsItem]): List of available MCP tools with their schemas
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
|
-
tools: list[
|
|
24
|
+
tools: list[MCPToolsResponseToolsItem]
|
|
23
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
26
|
|
|
25
27
|
def to_dict(self) -> dict[str, Any]:
|