robosystems-client 0.2.15__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 +23 -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 +13 -13
- robosystems_client/api/graph_info/get_database_info.py +13 -13
- robosystems_client/api/graph_limits/get_graph_limits.py +13 -13
- 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 +32 -32
- robosystems_client/api/mcp/list_mcp_tools.py +13 -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 +74 -62
- robosystems_client/api/schema/export_graph_schema.py +35 -35
- robosystems_client/api/schema/get_graph_schema.py +13 -13
- robosystems_client/api/schema/validate_schema.py +13 -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 +64 -28
- robosystems_client/api/subgraphs/delete_subgraph.py +13 -13
- robosystems_client/api/subgraphs/get_subgraph_info.py +13 -13
- 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 +13 -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.15.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 -380
- robosystems_client/api/tables/ingest_tables.py +0 -456
- 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.15.dist-info/RECORD +0 -396
- {robosystems_client-0.2.15.dist-info → robosystems_client-0.2.16.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.15.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
|
|
@@ -25,8 +27,8 @@ class ConnectionResponse:
|
|
|
25
27
|
status (str): Connection status
|
|
26
28
|
created_at (str): Creation timestamp
|
|
27
29
|
metadata (ConnectionResponseMetadata): Provider-specific metadata
|
|
28
|
-
updated_at (
|
|
29
|
-
last_sync (
|
|
30
|
+
updated_at (None | str | Unset): Last update timestamp
|
|
31
|
+
last_sync (None | str | Unset): Last sync timestamp
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
connection_id: str
|
|
@@ -34,9 +36,9 @@ class ConnectionResponse:
|
|
|
34
36
|
entity_id: str
|
|
35
37
|
status: str
|
|
36
38
|
created_at: str
|
|
37
|
-
metadata:
|
|
38
|
-
updated_at:
|
|
39
|
-
last_sync:
|
|
39
|
+
metadata: ConnectionResponseMetadata
|
|
40
|
+
updated_at: None | str | Unset = UNSET
|
|
41
|
+
last_sync: None | str | 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]:
|
|
@@ -52,13 +54,13 @@ class ConnectionResponse:
|
|
|
52
54
|
|
|
53
55
|
metadata = self.metadata.to_dict()
|
|
54
56
|
|
|
55
|
-
updated_at:
|
|
57
|
+
updated_at: None | str | Unset
|
|
56
58
|
if isinstance(self.updated_at, Unset):
|
|
57
59
|
updated_at = UNSET
|
|
58
60
|
else:
|
|
59
61
|
updated_at = self.updated_at
|
|
60
62
|
|
|
61
|
-
last_sync:
|
|
63
|
+
last_sync: None | str | Unset
|
|
62
64
|
if isinstance(self.last_sync, Unset):
|
|
63
65
|
last_sync = UNSET
|
|
64
66
|
else:
|
|
@@ -100,21 +102,21 @@ class ConnectionResponse:
|
|
|
100
102
|
|
|
101
103
|
metadata = ConnectionResponseMetadata.from_dict(d.pop("metadata"))
|
|
102
104
|
|
|
103
|
-
def _parse_updated_at(data: object) ->
|
|
105
|
+
def _parse_updated_at(data: object) -> None | str | Unset:
|
|
104
106
|
if data is None:
|
|
105
107
|
return data
|
|
106
108
|
if isinstance(data, Unset):
|
|
107
109
|
return data
|
|
108
|
-
return cast(
|
|
110
|
+
return cast(None | str | Unset, data)
|
|
109
111
|
|
|
110
112
|
updated_at = _parse_updated_at(d.pop("updated_at", UNSET))
|
|
111
113
|
|
|
112
|
-
def _parse_last_sync(data: object) ->
|
|
114
|
+
def _parse_last_sync(data: object) -> None | str | Unset:
|
|
113
115
|
if data is None:
|
|
114
116
|
return data
|
|
115
117
|
if isinstance(data, Unset):
|
|
116
118
|
return data
|
|
117
|
-
return cast(
|
|
119
|
+
return cast(None | str | Unset, data)
|
|
118
120
|
|
|
119
121
|
last_sync = _parse_last_sync(d.pop("last_sync", UNSET))
|
|
120
122
|
|
|
@@ -1,5 +1,7 @@
|
|
|
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, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -15,25 +17,25 @@ class CreateAPIKeyRequest:
|
|
|
15
17
|
|
|
16
18
|
Attributes:
|
|
17
19
|
name (str): Name for the API key
|
|
18
|
-
description (
|
|
19
|
-
expires_at (
|
|
20
|
+
description (None | str | Unset): Optional description
|
|
21
|
+
expires_at (None | str | Unset): Optional expiration date in ISO format (e.g. 2024-12-31T23:59:59Z)
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
24
|
name: str
|
|
23
|
-
description:
|
|
24
|
-
expires_at:
|
|
25
|
+
description: None | str | Unset = UNSET
|
|
26
|
+
expires_at: None | str | Unset = UNSET
|
|
25
27
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
28
|
|
|
27
29
|
def to_dict(self) -> dict[str, Any]:
|
|
28
30
|
name = self.name
|
|
29
31
|
|
|
30
|
-
description:
|
|
32
|
+
description: None | str | Unset
|
|
31
33
|
if isinstance(self.description, Unset):
|
|
32
34
|
description = UNSET
|
|
33
35
|
else:
|
|
34
36
|
description = self.description
|
|
35
37
|
|
|
36
|
-
expires_at:
|
|
38
|
+
expires_at: None | str | Unset
|
|
37
39
|
if isinstance(self.expires_at, Unset):
|
|
38
40
|
expires_at = UNSET
|
|
39
41
|
else:
|
|
@@ -58,21 +60,21 @@ class CreateAPIKeyRequest:
|
|
|
58
60
|
d = dict(src_dict)
|
|
59
61
|
name = d.pop("name")
|
|
60
62
|
|
|
61
|
-
def _parse_description(data: object) ->
|
|
63
|
+
def _parse_description(data: object) -> None | str | Unset:
|
|
62
64
|
if data is None:
|
|
63
65
|
return data
|
|
64
66
|
if isinstance(data, Unset):
|
|
65
67
|
return data
|
|
66
|
-
return cast(
|
|
68
|
+
return cast(None | str | Unset, data)
|
|
67
69
|
|
|
68
70
|
description = _parse_description(d.pop("description", UNSET))
|
|
69
71
|
|
|
70
|
-
def _parse_expires_at(data: object) ->
|
|
72
|
+
def _parse_expires_at(data: object) -> None | str | Unset:
|
|
71
73
|
if data is None:
|
|
72
74
|
return data
|
|
73
75
|
if isinstance(data, Unset):
|
|
74
76
|
return data
|
|
75
|
-
return cast(
|
|
77
|
+
return cast(None | str | Unset, data)
|
|
76
78
|
|
|
77
79
|
expires_at = _parse_expires_at(d.pop("expires_at", UNSET))
|
|
78
80
|
|
|
@@ -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
|
|
|
@@ -20,7 +22,7 @@ class CreateAPIKeyResponse:
|
|
|
20
22
|
key (str): The actual API key (only shown once)
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
|
-
api_key:
|
|
25
|
+
api_key: APIKeyInfo
|
|
24
26
|
key: str
|
|
25
27
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
28
|
|
|
@@ -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
|
|
|
@@ -26,7 +28,7 @@ class CreateCheckoutRequest:
|
|
|
26
28
|
|
|
27
29
|
plan_name: str
|
|
28
30
|
resource_type: str
|
|
29
|
-
resource_config:
|
|
31
|
+
resource_config: CreateCheckoutRequestResourceConfig
|
|
30
32
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
33
|
|
|
32
34
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -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
|
|
@@ -23,16 +25,16 @@ class CreateConnectionRequest:
|
|
|
23
25
|
Attributes:
|
|
24
26
|
provider (CreateConnectionRequestProvider): Connection provider type
|
|
25
27
|
entity_id (str): Entity identifier
|
|
26
|
-
sec_config (
|
|
27
|
-
quickbooks_config (
|
|
28
|
-
plaid_config (
|
|
28
|
+
sec_config (None | SECConnectionConfig | Unset):
|
|
29
|
+
quickbooks_config (None | QuickBooksConnectionConfig | Unset):
|
|
30
|
+
plaid_config (None | PlaidConnectionConfig | Unset):
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
33
|
provider: CreateConnectionRequestProvider
|
|
32
34
|
entity_id: str
|
|
33
|
-
sec_config:
|
|
34
|
-
quickbooks_config:
|
|
35
|
-
plaid_config:
|
|
35
|
+
sec_config: None | SECConnectionConfig | Unset = UNSET
|
|
36
|
+
quickbooks_config: None | QuickBooksConnectionConfig | Unset = UNSET
|
|
37
|
+
plaid_config: None | PlaidConnectionConfig | Unset = UNSET
|
|
36
38
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
39
|
|
|
38
40
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -44,7 +46,7 @@ class CreateConnectionRequest:
|
|
|
44
46
|
|
|
45
47
|
entity_id = self.entity_id
|
|
46
48
|
|
|
47
|
-
sec_config:
|
|
49
|
+
sec_config: dict[str, Any] | None | Unset
|
|
48
50
|
if isinstance(self.sec_config, Unset):
|
|
49
51
|
sec_config = UNSET
|
|
50
52
|
elif isinstance(self.sec_config, SECConnectionConfig):
|
|
@@ -52,7 +54,7 @@ class CreateConnectionRequest:
|
|
|
52
54
|
else:
|
|
53
55
|
sec_config = self.sec_config
|
|
54
56
|
|
|
55
|
-
quickbooks_config:
|
|
57
|
+
quickbooks_config: dict[str, Any] | None | Unset
|
|
56
58
|
if isinstance(self.quickbooks_config, Unset):
|
|
57
59
|
quickbooks_config = UNSET
|
|
58
60
|
elif isinstance(self.quickbooks_config, QuickBooksConnectionConfig):
|
|
@@ -60,7 +62,7 @@ class CreateConnectionRequest:
|
|
|
60
62
|
else:
|
|
61
63
|
quickbooks_config = self.quickbooks_config
|
|
62
64
|
|
|
63
|
-
plaid_config:
|
|
65
|
+
plaid_config: dict[str, Any] | None | Unset
|
|
64
66
|
if isinstance(self.plaid_config, Unset):
|
|
65
67
|
plaid_config = UNSET
|
|
66
68
|
elif isinstance(self.plaid_config, PlaidConnectionConfig):
|
|
@@ -96,7 +98,7 @@ class CreateConnectionRequest:
|
|
|
96
98
|
|
|
97
99
|
entity_id = d.pop("entity_id")
|
|
98
100
|
|
|
99
|
-
def _parse_sec_config(data: object) ->
|
|
101
|
+
def _parse_sec_config(data: object) -> None | SECConnectionConfig | Unset:
|
|
100
102
|
if data is None:
|
|
101
103
|
return data
|
|
102
104
|
if isinstance(data, Unset):
|
|
@@ -107,15 +109,15 @@ class CreateConnectionRequest:
|
|
|
107
109
|
sec_config_type_0 = SECConnectionConfig.from_dict(data)
|
|
108
110
|
|
|
109
111
|
return sec_config_type_0
|
|
110
|
-
except
|
|
112
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
111
113
|
pass
|
|
112
|
-
return cast(
|
|
114
|
+
return cast(None | SECConnectionConfig | Unset, data)
|
|
113
115
|
|
|
114
116
|
sec_config = _parse_sec_config(d.pop("sec_config", UNSET))
|
|
115
117
|
|
|
116
118
|
def _parse_quickbooks_config(
|
|
117
119
|
data: object,
|
|
118
|
-
) ->
|
|
120
|
+
) -> None | QuickBooksConnectionConfig | Unset:
|
|
119
121
|
if data is None:
|
|
120
122
|
return data
|
|
121
123
|
if isinstance(data, Unset):
|
|
@@ -126,15 +128,13 @@ class CreateConnectionRequest:
|
|
|
126
128
|
quickbooks_config_type_0 = QuickBooksConnectionConfig.from_dict(data)
|
|
127
129
|
|
|
128
130
|
return quickbooks_config_type_0
|
|
129
|
-
except
|
|
131
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
130
132
|
pass
|
|
131
|
-
return cast(
|
|
133
|
+
return cast(None | QuickBooksConnectionConfig | Unset, data)
|
|
132
134
|
|
|
133
135
|
quickbooks_config = _parse_quickbooks_config(d.pop("quickbooks_config", UNSET))
|
|
134
136
|
|
|
135
|
-
def _parse_plaid_config(
|
|
136
|
-
data: object,
|
|
137
|
-
) -> Union["PlaidConnectionConfig", None, Unset]:
|
|
137
|
+
def _parse_plaid_config(data: object) -> None | PlaidConnectionConfig | Unset:
|
|
138
138
|
if data is None:
|
|
139
139
|
return data
|
|
140
140
|
if isinstance(data, Unset):
|
|
@@ -145,9 +145,9 @@ class CreateConnectionRequest:
|
|
|
145
145
|
plaid_config_type_0 = PlaidConnectionConfig.from_dict(data)
|
|
146
146
|
|
|
147
147
|
return plaid_config_type_0
|
|
148
|
-
except
|
|
148
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
149
149
|
pass
|
|
150
|
-
return cast(
|
|
150
|
+
return cast(None | PlaidConnectionConfig | Unset, data)
|
|
151
151
|
|
|
152
152
|
plaid_config = _parse_plaid_config(d.pop("plaid_config", UNSET))
|
|
153
153
|
|
|
@@ -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
|
|
@@ -25,24 +27,24 @@ class CreateGraphRequest:
|
|
|
25
27
|
|
|
26
28
|
Attributes:
|
|
27
29
|
metadata (GraphMetadata): Metadata for graph creation.
|
|
28
|
-
instance_tier (
|
|
30
|
+
instance_tier (str | Unset): Instance tier: kuzu-standard, kuzu-large, kuzu-xlarge, neo4j-community-large,
|
|
29
31
|
neo4j-enterprise-xlarge Default: 'kuzu-standard'.
|
|
30
|
-
custom_schema (
|
|
31
|
-
|
|
32
|
-
initial_entity (
|
|
33
|
-
|
|
34
|
-
create_entity (
|
|
32
|
+
custom_schema (CustomSchemaDefinition | None | Unset): Custom schema definition to apply. If provided, creates a
|
|
33
|
+
generic custom graph. If omitted, creates an entity graph using schema_extensions.
|
|
34
|
+
initial_entity (InitialEntityData | None | Unset): Optional initial entity to create in the graph. If provided
|
|
35
|
+
with entity graph, populates the first entity node.
|
|
36
|
+
create_entity (bool | Unset): Whether to create the entity node and upload initial data. Only applies when
|
|
35
37
|
initial_entity is provided. Set to False to create graph without populating entity data (useful for file-based
|
|
36
38
|
ingestion workflows). Default: True.
|
|
37
|
-
tags (
|
|
39
|
+
tags (list[str] | Unset): Optional tags for organization
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
|
-
metadata:
|
|
41
|
-
instance_tier:
|
|
42
|
-
custom_schema:
|
|
43
|
-
initial_entity:
|
|
44
|
-
create_entity:
|
|
45
|
-
tags:
|
|
42
|
+
metadata: GraphMetadata
|
|
43
|
+
instance_tier: str | Unset = "kuzu-standard"
|
|
44
|
+
custom_schema: CustomSchemaDefinition | None | Unset = UNSET
|
|
45
|
+
initial_entity: InitialEntityData | None | Unset = UNSET
|
|
46
|
+
create_entity: bool | Unset = True
|
|
47
|
+
tags: list[str] | Unset = UNSET
|
|
46
48
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
47
49
|
|
|
48
50
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -53,7 +55,7 @@ class CreateGraphRequest:
|
|
|
53
55
|
|
|
54
56
|
instance_tier = self.instance_tier
|
|
55
57
|
|
|
56
|
-
custom_schema:
|
|
58
|
+
custom_schema: dict[str, Any] | None | Unset
|
|
57
59
|
if isinstance(self.custom_schema, Unset):
|
|
58
60
|
custom_schema = UNSET
|
|
59
61
|
elif isinstance(self.custom_schema, CustomSchemaDefinition):
|
|
@@ -61,7 +63,7 @@ class CreateGraphRequest:
|
|
|
61
63
|
else:
|
|
62
64
|
custom_schema = self.custom_schema
|
|
63
65
|
|
|
64
|
-
initial_entity:
|
|
66
|
+
initial_entity: dict[str, Any] | None | Unset
|
|
65
67
|
if isinstance(self.initial_entity, Unset):
|
|
66
68
|
initial_entity = UNSET
|
|
67
69
|
elif isinstance(self.initial_entity, InitialEntityData):
|
|
@@ -71,7 +73,7 @@ class CreateGraphRequest:
|
|
|
71
73
|
|
|
72
74
|
create_entity = self.create_entity
|
|
73
75
|
|
|
74
|
-
tags:
|
|
76
|
+
tags: list[str] | Unset = UNSET
|
|
75
77
|
if not isinstance(self.tags, Unset):
|
|
76
78
|
tags = self.tags
|
|
77
79
|
|
|
@@ -106,9 +108,7 @@ class CreateGraphRequest:
|
|
|
106
108
|
|
|
107
109
|
instance_tier = d.pop("instance_tier", UNSET)
|
|
108
110
|
|
|
109
|
-
def _parse_custom_schema(
|
|
110
|
-
data: object,
|
|
111
|
-
) -> Union["CustomSchemaDefinition", None, Unset]:
|
|
111
|
+
def _parse_custom_schema(data: object) -> CustomSchemaDefinition | None | Unset:
|
|
112
112
|
if data is None:
|
|
113
113
|
return data
|
|
114
114
|
if isinstance(data, Unset):
|
|
@@ -119,13 +119,13 @@ class CreateGraphRequest:
|
|
|
119
119
|
custom_schema_type_0 = CustomSchemaDefinition.from_dict(data)
|
|
120
120
|
|
|
121
121
|
return custom_schema_type_0
|
|
122
|
-
except
|
|
122
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
123
123
|
pass
|
|
124
|
-
return cast(
|
|
124
|
+
return cast(CustomSchemaDefinition | None | Unset, data)
|
|
125
125
|
|
|
126
126
|
custom_schema = _parse_custom_schema(d.pop("custom_schema", UNSET))
|
|
127
127
|
|
|
128
|
-
def _parse_initial_entity(data: object) ->
|
|
128
|
+
def _parse_initial_entity(data: object) -> InitialEntityData | None | Unset:
|
|
129
129
|
if data is None:
|
|
130
130
|
return data
|
|
131
131
|
if isinstance(data, Unset):
|
|
@@ -136,9 +136,9 @@ class CreateGraphRequest:
|
|
|
136
136
|
initial_entity_type_0 = InitialEntityData.from_dict(data)
|
|
137
137
|
|
|
138
138
|
return initial_entity_type_0
|
|
139
|
-
except
|
|
139
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
140
140
|
pass
|
|
141
|
-
return cast(
|
|
141
|
+
return cast(InitialEntityData | None | Unset, data)
|
|
142
142
|
|
|
143
143
|
initial_entity = _parse_initial_entity(d.pop("initial_entity", UNSET))
|
|
144
144
|
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
from attrs import field as _attrs_field
|
|
@@ -16,17 +18,17 @@ class CreateOrgRequest:
|
|
|
16
18
|
|
|
17
19
|
Attributes:
|
|
18
20
|
name (str):
|
|
19
|
-
org_type (
|
|
21
|
+
org_type (OrgType | Unset):
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
24
|
name: str
|
|
23
|
-
org_type:
|
|
25
|
+
org_type: OrgType | Unset = UNSET
|
|
24
26
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
27
|
|
|
26
28
|
def to_dict(self) -> dict[str, Any]:
|
|
27
29
|
name = self.name
|
|
28
30
|
|
|
29
|
-
org_type:
|
|
31
|
+
org_type: str | Unset = UNSET
|
|
30
32
|
if not isinstance(self.org_type, Unset):
|
|
31
33
|
org_type = self.org_type.value
|
|
32
34
|
|
|
@@ -48,7 +50,7 @@ class CreateOrgRequest:
|
|
|
48
50
|
name = d.pop("name")
|
|
49
51
|
|
|
50
52
|
_org_type = d.pop("org_type", UNSET)
|
|
51
|
-
org_type:
|
|
53
|
+
org_type: OrgType | Unset
|
|
52
54
|
if isinstance(_org_type, Unset):
|
|
53
55
|
org_type = UNSET
|
|
54
56
|
else:
|
|
@@ -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
|
|
@@ -23,18 +25,20 @@ class CreateSubgraphRequest:
|
|
|
23
25
|
Attributes:
|
|
24
26
|
name (str): Alphanumeric name for the subgraph (e.g., dev, staging, prod1)
|
|
25
27
|
display_name (str): Human-readable display name for the subgraph
|
|
26
|
-
description (
|
|
27
|
-
schema_extensions (
|
|
28
|
-
subgraph_type (
|
|
29
|
-
metadata (
|
|
28
|
+
description (None | str | Unset): Optional description of the subgraph's purpose
|
|
29
|
+
schema_extensions (list[str] | Unset): Schema extensions to include (inherits from parent by default)
|
|
30
|
+
subgraph_type (SubgraphType | Unset): Types of subgraphs.
|
|
31
|
+
metadata (CreateSubgraphRequestMetadataType0 | None | Unset): Additional metadata for the subgraph
|
|
32
|
+
fork_parent (bool | Unset): If true, copy all data from parent graph to create a 'fork' Default: False.
|
|
30
33
|
"""
|
|
31
34
|
|
|
32
35
|
name: str
|
|
33
36
|
display_name: str
|
|
34
|
-
description:
|
|
35
|
-
schema_extensions:
|
|
36
|
-
subgraph_type:
|
|
37
|
-
metadata:
|
|
37
|
+
description: None | str | Unset = UNSET
|
|
38
|
+
schema_extensions: list[str] | Unset = UNSET
|
|
39
|
+
subgraph_type: SubgraphType | Unset = UNSET
|
|
40
|
+
metadata: CreateSubgraphRequestMetadataType0 | None | Unset = UNSET
|
|
41
|
+
fork_parent: bool | Unset = False
|
|
38
42
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
43
|
|
|
40
44
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -46,21 +50,21 @@ class CreateSubgraphRequest:
|
|
|
46
50
|
|
|
47
51
|
display_name = self.display_name
|
|
48
52
|
|
|
49
|
-
description:
|
|
53
|
+
description: None | str | Unset
|
|
50
54
|
if isinstance(self.description, Unset):
|
|
51
55
|
description = UNSET
|
|
52
56
|
else:
|
|
53
57
|
description = self.description
|
|
54
58
|
|
|
55
|
-
schema_extensions:
|
|
59
|
+
schema_extensions: list[str] | Unset = UNSET
|
|
56
60
|
if not isinstance(self.schema_extensions, Unset):
|
|
57
61
|
schema_extensions = self.schema_extensions
|
|
58
62
|
|
|
59
|
-
subgraph_type:
|
|
63
|
+
subgraph_type: str | Unset = UNSET
|
|
60
64
|
if not isinstance(self.subgraph_type, Unset):
|
|
61
65
|
subgraph_type = self.subgraph_type.value
|
|
62
66
|
|
|
63
|
-
metadata:
|
|
67
|
+
metadata: dict[str, Any] | None | Unset
|
|
64
68
|
if isinstance(self.metadata, Unset):
|
|
65
69
|
metadata = UNSET
|
|
66
70
|
elif isinstance(self.metadata, CreateSubgraphRequestMetadataType0):
|
|
@@ -68,6 +72,8 @@ class CreateSubgraphRequest:
|
|
|
68
72
|
else:
|
|
69
73
|
metadata = self.metadata
|
|
70
74
|
|
|
75
|
+
fork_parent = self.fork_parent
|
|
76
|
+
|
|
71
77
|
field_dict: dict[str, Any] = {}
|
|
72
78
|
field_dict.update(self.additional_properties)
|
|
73
79
|
field_dict.update(
|
|
@@ -84,6 +90,8 @@ class CreateSubgraphRequest:
|
|
|
84
90
|
field_dict["subgraph_type"] = subgraph_type
|
|
85
91
|
if metadata is not UNSET:
|
|
86
92
|
field_dict["metadata"] = metadata
|
|
93
|
+
if fork_parent is not UNSET:
|
|
94
|
+
field_dict["fork_parent"] = fork_parent
|
|
87
95
|
|
|
88
96
|
return field_dict
|
|
89
97
|
|
|
@@ -98,19 +106,19 @@ class CreateSubgraphRequest:
|
|
|
98
106
|
|
|
99
107
|
display_name = d.pop("display_name")
|
|
100
108
|
|
|
101
|
-
def _parse_description(data: object) ->
|
|
109
|
+
def _parse_description(data: object) -> None | str | Unset:
|
|
102
110
|
if data is None:
|
|
103
111
|
return data
|
|
104
112
|
if isinstance(data, Unset):
|
|
105
113
|
return data
|
|
106
|
-
return cast(
|
|
114
|
+
return cast(None | str | Unset, data)
|
|
107
115
|
|
|
108
116
|
description = _parse_description(d.pop("description", UNSET))
|
|
109
117
|
|
|
110
118
|
schema_extensions = cast(list[str], d.pop("schema_extensions", UNSET))
|
|
111
119
|
|
|
112
120
|
_subgraph_type = d.pop("subgraph_type", UNSET)
|
|
113
|
-
subgraph_type:
|
|
121
|
+
subgraph_type: SubgraphType | Unset
|
|
114
122
|
if isinstance(_subgraph_type, Unset):
|
|
115
123
|
subgraph_type = UNSET
|
|
116
124
|
else:
|
|
@@ -118,7 +126,7 @@ class CreateSubgraphRequest:
|
|
|
118
126
|
|
|
119
127
|
def _parse_metadata(
|
|
120
128
|
data: object,
|
|
121
|
-
) ->
|
|
129
|
+
) -> CreateSubgraphRequestMetadataType0 | None | Unset:
|
|
122
130
|
if data is None:
|
|
123
131
|
return data
|
|
124
132
|
if isinstance(data, Unset):
|
|
@@ -129,12 +137,14 @@ class CreateSubgraphRequest:
|
|
|
129
137
|
metadata_type_0 = CreateSubgraphRequestMetadataType0.from_dict(data)
|
|
130
138
|
|
|
131
139
|
return metadata_type_0
|
|
132
|
-
except
|
|
140
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
133
141
|
pass
|
|
134
|
-
return cast(
|
|
142
|
+
return cast(CreateSubgraphRequestMetadataType0 | None | Unset, data)
|
|
135
143
|
|
|
136
144
|
metadata = _parse_metadata(d.pop("metadata", UNSET))
|
|
137
145
|
|
|
146
|
+
fork_parent = d.pop("fork_parent", UNSET)
|
|
147
|
+
|
|
138
148
|
create_subgraph_request = cls(
|
|
139
149
|
name=name,
|
|
140
150
|
display_name=display_name,
|
|
@@ -142,6 +152,7 @@ class CreateSubgraphRequest:
|
|
|
142
152
|
schema_extensions=schema_extensions,
|
|
143
153
|
subgraph_type=subgraph_type,
|
|
144
154
|
metadata=metadata,
|
|
155
|
+
fork_parent=fork_parent,
|
|
145
156
|
)
|
|
146
157
|
|
|
147
158
|
create_subgraph_request.additional_properties = d
|