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,9 +1,13 @@
|
|
|
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
|
|
6
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
7
11
|
T = TypeVar("T", bound="DeleteFileResponse")
|
|
8
12
|
|
|
9
13
|
|
|
@@ -15,12 +19,18 @@ class DeleteFileResponse:
|
|
|
15
19
|
file_id (str): Deleted file ID
|
|
16
20
|
file_name (str): Deleted file name
|
|
17
21
|
message (str): Operation message
|
|
22
|
+
cascade_deleted (bool | Unset): Whether cascade deletion was performed Default: False.
|
|
23
|
+
tables_affected (list[str] | None | Unset): Tables from which file data was deleted (if cascade=true)
|
|
24
|
+
graph_marked_stale (bool | Unset): Whether graph was marked as stale Default: False.
|
|
18
25
|
"""
|
|
19
26
|
|
|
20
27
|
status: str
|
|
21
28
|
file_id: str
|
|
22
29
|
file_name: str
|
|
23
30
|
message: str
|
|
31
|
+
cascade_deleted: bool | Unset = False
|
|
32
|
+
tables_affected: list[str] | None | Unset = UNSET
|
|
33
|
+
graph_marked_stale: bool | Unset = False
|
|
24
34
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
35
|
|
|
26
36
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -32,6 +42,19 @@ class DeleteFileResponse:
|
|
|
32
42
|
|
|
33
43
|
message = self.message
|
|
34
44
|
|
|
45
|
+
cascade_deleted = self.cascade_deleted
|
|
46
|
+
|
|
47
|
+
tables_affected: list[str] | None | Unset
|
|
48
|
+
if isinstance(self.tables_affected, Unset):
|
|
49
|
+
tables_affected = UNSET
|
|
50
|
+
elif isinstance(self.tables_affected, list):
|
|
51
|
+
tables_affected = self.tables_affected
|
|
52
|
+
|
|
53
|
+
else:
|
|
54
|
+
tables_affected = self.tables_affected
|
|
55
|
+
|
|
56
|
+
graph_marked_stale = self.graph_marked_stale
|
|
57
|
+
|
|
35
58
|
field_dict: dict[str, Any] = {}
|
|
36
59
|
field_dict.update(self.additional_properties)
|
|
37
60
|
field_dict.update(
|
|
@@ -42,6 +65,12 @@ class DeleteFileResponse:
|
|
|
42
65
|
"message": message,
|
|
43
66
|
}
|
|
44
67
|
)
|
|
68
|
+
if cascade_deleted is not UNSET:
|
|
69
|
+
field_dict["cascade_deleted"] = cascade_deleted
|
|
70
|
+
if tables_affected is not UNSET:
|
|
71
|
+
field_dict["tables_affected"] = tables_affected
|
|
72
|
+
if graph_marked_stale is not UNSET:
|
|
73
|
+
field_dict["graph_marked_stale"] = graph_marked_stale
|
|
45
74
|
|
|
46
75
|
return field_dict
|
|
47
76
|
|
|
@@ -56,11 +85,35 @@ class DeleteFileResponse:
|
|
|
56
85
|
|
|
57
86
|
message = d.pop("message")
|
|
58
87
|
|
|
88
|
+
cascade_deleted = d.pop("cascade_deleted", UNSET)
|
|
89
|
+
|
|
90
|
+
def _parse_tables_affected(data: object) -> list[str] | None | Unset:
|
|
91
|
+
if data is None:
|
|
92
|
+
return data
|
|
93
|
+
if isinstance(data, Unset):
|
|
94
|
+
return data
|
|
95
|
+
try:
|
|
96
|
+
if not isinstance(data, list):
|
|
97
|
+
raise TypeError()
|
|
98
|
+
tables_affected_type_0 = cast(list[str], data)
|
|
99
|
+
|
|
100
|
+
return tables_affected_type_0
|
|
101
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
102
|
+
pass
|
|
103
|
+
return cast(list[str] | None | Unset, data)
|
|
104
|
+
|
|
105
|
+
tables_affected = _parse_tables_affected(d.pop("tables_affected", UNSET))
|
|
106
|
+
|
|
107
|
+
graph_marked_stale = d.pop("graph_marked_stale", UNSET)
|
|
108
|
+
|
|
59
109
|
delete_file_response = cls(
|
|
60
110
|
status=status,
|
|
61
111
|
file_id=file_id,
|
|
62
112
|
file_name=file_name,
|
|
63
113
|
message=message,
|
|
114
|
+
cascade_deleted=cascade_deleted,
|
|
115
|
+
tables_affected=tables_affected,
|
|
116
|
+
graph_marked_stale=graph_marked_stale,
|
|
64
117
|
)
|
|
65
118
|
|
|
66
119
|
delete_file_response.additional_properties = d
|
|
@@ -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
|
|
@@ -14,14 +16,14 @@ class DeleteSubgraphRequest:
|
|
|
14
16
|
"""Request model for deleting a subgraph.
|
|
15
17
|
|
|
16
18
|
Attributes:
|
|
17
|
-
force (
|
|
18
|
-
backup_first (
|
|
19
|
-
backup_location (
|
|
19
|
+
force (bool | Unset): Force deletion even if subgraph contains data Default: False.
|
|
20
|
+
backup_first (bool | Unset): Create a backup before deletion Default: True.
|
|
21
|
+
backup_location (None | str | Unset): S3 location for backup (uses default if not specified)
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
|
-
force:
|
|
23
|
-
backup_first:
|
|
24
|
-
backup_location:
|
|
24
|
+
force: bool | Unset = False
|
|
25
|
+
backup_first: bool | Unset = True
|
|
26
|
+
backup_location: 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]:
|
|
@@ -29,7 +31,7 @@ class DeleteSubgraphRequest:
|
|
|
29
31
|
|
|
30
32
|
backup_first = self.backup_first
|
|
31
33
|
|
|
32
|
-
backup_location:
|
|
34
|
+
backup_location: None | str | Unset
|
|
33
35
|
if isinstance(self.backup_location, Unset):
|
|
34
36
|
backup_location = UNSET
|
|
35
37
|
else:
|
|
@@ -54,12 +56,12 @@ class DeleteSubgraphRequest:
|
|
|
54
56
|
|
|
55
57
|
backup_first = d.pop("backup_first", UNSET)
|
|
56
58
|
|
|
57
|
-
def _parse_backup_location(data: object) ->
|
|
59
|
+
def _parse_backup_location(data: object) -> None | str | Unset:
|
|
58
60
|
if data is None:
|
|
59
61
|
return data
|
|
60
62
|
if isinstance(data, Unset):
|
|
61
63
|
return data
|
|
62
|
-
return cast(
|
|
64
|
+
return cast(None | str | Unset, data)
|
|
63
65
|
|
|
64
66
|
backup_location = _parse_backup_location(d.pop("backup_location", UNSET))
|
|
65
67
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import datetime
|
|
2
4
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar,
|
|
5
|
+
from typing import Any, TypeVar, cast
|
|
4
6
|
|
|
5
7
|
from attrs import define as _attrs_define
|
|
6
8
|
from attrs import field as _attrs_field
|
|
@@ -19,15 +21,15 @@ class DeleteSubgraphResponse:
|
|
|
19
21
|
graph_id (str): Deleted subgraph identifier
|
|
20
22
|
status (str): Deletion status
|
|
21
23
|
deleted_at (datetime.datetime): When deletion occurred
|
|
22
|
-
backup_location (
|
|
23
|
-
message (
|
|
24
|
+
backup_location (None | str | Unset): Location of backup if created
|
|
25
|
+
message (None | str | Unset): Additional information about the deletion
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
graph_id: str
|
|
27
29
|
status: str
|
|
28
30
|
deleted_at: datetime.datetime
|
|
29
|
-
backup_location:
|
|
30
|
-
message:
|
|
31
|
+
backup_location: None | str | Unset = UNSET
|
|
32
|
+
message: None | str | Unset = UNSET
|
|
31
33
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
34
|
|
|
33
35
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -37,13 +39,13 @@ class DeleteSubgraphResponse:
|
|
|
37
39
|
|
|
38
40
|
deleted_at = self.deleted_at.isoformat()
|
|
39
41
|
|
|
40
|
-
backup_location:
|
|
42
|
+
backup_location: None | str | Unset
|
|
41
43
|
if isinstance(self.backup_location, Unset):
|
|
42
44
|
backup_location = UNSET
|
|
43
45
|
else:
|
|
44
46
|
backup_location = self.backup_location
|
|
45
47
|
|
|
46
|
-
message:
|
|
48
|
+
message: None | str | Unset
|
|
47
49
|
if isinstance(self.message, Unset):
|
|
48
50
|
message = UNSET
|
|
49
51
|
else:
|
|
@@ -74,21 +76,21 @@ class DeleteSubgraphResponse:
|
|
|
74
76
|
|
|
75
77
|
deleted_at = isoparse(d.pop("deleted_at"))
|
|
76
78
|
|
|
77
|
-
def _parse_backup_location(data: object) ->
|
|
79
|
+
def _parse_backup_location(data: object) -> None | str | Unset:
|
|
78
80
|
if data is None:
|
|
79
81
|
return data
|
|
80
82
|
if isinstance(data, Unset):
|
|
81
83
|
return data
|
|
82
|
-
return cast(
|
|
84
|
+
return cast(None | str | Unset, data)
|
|
83
85
|
|
|
84
86
|
backup_location = _parse_backup_location(d.pop("backup_location", UNSET))
|
|
85
87
|
|
|
86
|
-
def _parse_message(data: object) ->
|
|
88
|
+
def _parse_message(data: object) -> None | str | Unset:
|
|
87
89
|
if data is None:
|
|
88
90
|
return data
|
|
89
91
|
if isinstance(data, Unset):
|
|
90
92
|
return data
|
|
91
|
-
return cast(
|
|
93
|
+
return cast(None | str | Unset, data)
|
|
92
94
|
|
|
93
95
|
message = _parse_message(d.pop("message", UNSET))
|
|
94
96
|
|
|
@@ -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
|
|
|
@@ -24,18 +26,18 @@ class DetailedTransactionsResponse:
|
|
|
24
26
|
"""Detailed response for transaction queries.
|
|
25
27
|
|
|
26
28
|
Attributes:
|
|
27
|
-
transactions (list[
|
|
29
|
+
transactions (list[EnhancedCreditTransactionResponse]):
|
|
28
30
|
summary (DetailedTransactionsResponseSummary):
|
|
29
31
|
total_count (int):
|
|
30
32
|
filtered_count (int):
|
|
31
33
|
date_range (DetailedTransactionsResponseDateRange):
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
|
-
transactions: list[
|
|
35
|
-
summary:
|
|
36
|
+
transactions: list[EnhancedCreditTransactionResponse]
|
|
37
|
+
summary: DetailedTransactionsResponseSummary
|
|
36
38
|
total_count: int
|
|
37
39
|
filtered_count: int
|
|
38
|
-
date_range:
|
|
40
|
+
date_range: DetailedTransactionsResponseDateRange
|
|
39
41
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
42
|
|
|
41
43
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -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
|
|
|
@@ -15,7 +17,7 @@ T = TypeVar("T", bound="DetailedTransactionsResponseSummary")
|
|
|
15
17
|
class DetailedTransactionsResponseSummary:
|
|
16
18
|
""" """
|
|
17
19
|
|
|
18
|
-
additional_properties: dict[str,
|
|
20
|
+
additional_properties: dict[str, TransactionSummaryResponse] = _attrs_field(
|
|
19
21
|
init=False, factory=dict
|
|
20
22
|
)
|
|
21
23
|
|
|
@@ -46,10 +48,10 @@ class DetailedTransactionsResponseSummary:
|
|
|
46
48
|
def additional_keys(self) -> list[str]:
|
|
47
49
|
return list(self.additional_properties.keys())
|
|
48
50
|
|
|
49
|
-
def __getitem__(self, key: str) ->
|
|
51
|
+
def __getitem__(self, key: str) -> TransactionSummaryResponse:
|
|
50
52
|
return self.additional_properties[key]
|
|
51
53
|
|
|
52
|
-
def __setitem__(self, key: str, value:
|
|
54
|
+
def __setitem__(self, key: str, value: TransactionSummaryResponse) -> None:
|
|
53
55
|
self.additional_properties[key] = value
|
|
54
56
|
|
|
55
57
|
def __delitem__(self, key: str) -> None:
|
|
@@ -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
|
|
@@ -26,22 +28,22 @@ class EnhancedCreditTransactionResponse:
|
|
|
26
28
|
description (str):
|
|
27
29
|
metadata (EnhancedCreditTransactionResponseMetadata):
|
|
28
30
|
created_at (str):
|
|
29
|
-
operation_id (
|
|
30
|
-
idempotency_key (
|
|
31
|
-
request_id (
|
|
32
|
-
user_id (
|
|
31
|
+
operation_id (None | str | Unset):
|
|
32
|
+
idempotency_key (None | str | Unset):
|
|
33
|
+
request_id (None | str | Unset):
|
|
34
|
+
user_id (None | str | Unset):
|
|
33
35
|
"""
|
|
34
36
|
|
|
35
37
|
id: str
|
|
36
38
|
type_: str
|
|
37
39
|
amount: float
|
|
38
40
|
description: str
|
|
39
|
-
metadata:
|
|
41
|
+
metadata: EnhancedCreditTransactionResponseMetadata
|
|
40
42
|
created_at: str
|
|
41
|
-
operation_id:
|
|
42
|
-
idempotency_key:
|
|
43
|
-
request_id:
|
|
44
|
-
user_id:
|
|
43
|
+
operation_id: None | str | Unset = UNSET
|
|
44
|
+
idempotency_key: None | str | Unset = UNSET
|
|
45
|
+
request_id: None | str | Unset = UNSET
|
|
46
|
+
user_id: None | str | Unset = UNSET
|
|
45
47
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
46
48
|
|
|
47
49
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -57,25 +59,25 @@ class EnhancedCreditTransactionResponse:
|
|
|
57
59
|
|
|
58
60
|
created_at = self.created_at
|
|
59
61
|
|
|
60
|
-
operation_id:
|
|
62
|
+
operation_id: None | str | Unset
|
|
61
63
|
if isinstance(self.operation_id, Unset):
|
|
62
64
|
operation_id = UNSET
|
|
63
65
|
else:
|
|
64
66
|
operation_id = self.operation_id
|
|
65
67
|
|
|
66
|
-
idempotency_key:
|
|
68
|
+
idempotency_key: None | str | Unset
|
|
67
69
|
if isinstance(self.idempotency_key, Unset):
|
|
68
70
|
idempotency_key = UNSET
|
|
69
71
|
else:
|
|
70
72
|
idempotency_key = self.idempotency_key
|
|
71
73
|
|
|
72
|
-
request_id:
|
|
74
|
+
request_id: None | str | Unset
|
|
73
75
|
if isinstance(self.request_id, Unset):
|
|
74
76
|
request_id = UNSET
|
|
75
77
|
else:
|
|
76
78
|
request_id = self.request_id
|
|
77
79
|
|
|
78
|
-
user_id:
|
|
80
|
+
user_id: None | str | Unset
|
|
79
81
|
if isinstance(self.user_id, Unset):
|
|
80
82
|
user_id = UNSET
|
|
81
83
|
else:
|
|
@@ -123,39 +125,39 @@ class EnhancedCreditTransactionResponse:
|
|
|
123
125
|
|
|
124
126
|
created_at = d.pop("created_at")
|
|
125
127
|
|
|
126
|
-
def _parse_operation_id(data: object) ->
|
|
128
|
+
def _parse_operation_id(data: object) -> None | str | Unset:
|
|
127
129
|
if data is None:
|
|
128
130
|
return data
|
|
129
131
|
if isinstance(data, Unset):
|
|
130
132
|
return data
|
|
131
|
-
return cast(
|
|
133
|
+
return cast(None | str | Unset, data)
|
|
132
134
|
|
|
133
135
|
operation_id = _parse_operation_id(d.pop("operation_id", UNSET))
|
|
134
136
|
|
|
135
|
-
def _parse_idempotency_key(data: object) ->
|
|
137
|
+
def _parse_idempotency_key(data: object) -> None | str | Unset:
|
|
136
138
|
if data is None:
|
|
137
139
|
return data
|
|
138
140
|
if isinstance(data, Unset):
|
|
139
141
|
return data
|
|
140
|
-
return cast(
|
|
142
|
+
return cast(None | str | Unset, data)
|
|
141
143
|
|
|
142
144
|
idempotency_key = _parse_idempotency_key(d.pop("idempotency_key", UNSET))
|
|
143
145
|
|
|
144
|
-
def _parse_request_id(data: object) ->
|
|
146
|
+
def _parse_request_id(data: object) -> None | str | Unset:
|
|
145
147
|
if data is None:
|
|
146
148
|
return data
|
|
147
149
|
if isinstance(data, Unset):
|
|
148
150
|
return data
|
|
149
|
-
return cast(
|
|
151
|
+
return cast(None | str | Unset, data)
|
|
150
152
|
|
|
151
153
|
request_id = _parse_request_id(d.pop("request_id", UNSET))
|
|
152
154
|
|
|
153
|
-
def _parse_user_id(data: object) ->
|
|
155
|
+
def _parse_user_id(data: object) -> None | str | Unset:
|
|
154
156
|
if data is None:
|
|
155
157
|
return data
|
|
156
158
|
if isinstance(data, Unset):
|
|
157
159
|
return data
|
|
158
|
-
return cast(
|
|
160
|
+
return cast(None | str | Unset, data)
|
|
159
161
|
|
|
160
162
|
user_id = _parse_user_id(d.pop("user_id", UNSET))
|
|
161
163
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.file_layer_status import FileLayerStatus
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="EnhancedFileStatusLayers")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class EnhancedFileStatusLayers:
|
|
18
|
+
"""
|
|
19
|
+
Attributes:
|
|
20
|
+
s3 (FileLayerStatus):
|
|
21
|
+
duckdb (FileLayerStatus):
|
|
22
|
+
graph (FileLayerStatus):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
s3: FileLayerStatus
|
|
26
|
+
duckdb: FileLayerStatus
|
|
27
|
+
graph: FileLayerStatus
|
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
|
31
|
+
s3 = self.s3.to_dict()
|
|
32
|
+
|
|
33
|
+
duckdb = self.duckdb.to_dict()
|
|
34
|
+
|
|
35
|
+
graph = self.graph.to_dict()
|
|
36
|
+
|
|
37
|
+
field_dict: dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update(
|
|
40
|
+
{
|
|
41
|
+
"s3": s3,
|
|
42
|
+
"duckdb": duckdb,
|
|
43
|
+
"graph": graph,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
51
|
+
from ..models.file_layer_status import FileLayerStatus
|
|
52
|
+
|
|
53
|
+
d = dict(src_dict)
|
|
54
|
+
s3 = FileLayerStatus.from_dict(d.pop("s3"))
|
|
55
|
+
|
|
56
|
+
duckdb = FileLayerStatus.from_dict(d.pop("duckdb"))
|
|
57
|
+
|
|
58
|
+
graph = FileLayerStatus.from_dict(d.pop("graph"))
|
|
59
|
+
|
|
60
|
+
enhanced_file_status_layers = cls(
|
|
61
|
+
s3=s3,
|
|
62
|
+
duckdb=duckdb,
|
|
63
|
+
graph=graph,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
enhanced_file_status_layers.additional_properties = d
|
|
67
|
+
return enhanced_file_status_layers
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def additional_keys(self) -> list[str]:
|
|
71
|
+
return list(self.additional_properties.keys())
|
|
72
|
+
|
|
73
|
+
def __getitem__(self, key: str) -> Any:
|
|
74
|
+
return self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
77
|
+
self.additional_properties[key] = value
|
|
78
|
+
|
|
79
|
+
def __delitem__(self, key: str) -> None:
|
|
80
|
+
del self.additional_properties[key]
|
|
81
|
+
|
|
82
|
+
def __contains__(self, key: str) -> bool:
|
|
83
|
+
return key in self.additional_properties
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import datetime
|
|
2
4
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar,
|
|
5
|
+
from typing import Any, TypeVar, cast
|
|
4
6
|
|
|
5
7
|
from attrs import define as _attrs_define
|
|
6
8
|
from attrs import field as _attrs_field
|
|
@@ -24,33 +26,33 @@ class ErrorResponse:
|
|
|
24
26
|
|
|
25
27
|
Attributes:
|
|
26
28
|
detail (str): Human-readable error message explaining what went wrong
|
|
27
|
-
code (
|
|
28
|
-
request_id (
|
|
29
|
-
timestamp (
|
|
29
|
+
code (None | str | Unset): Machine-readable error code for programmatic handling
|
|
30
|
+
request_id (None | str | Unset): Unique request ID for tracking and debugging
|
|
31
|
+
timestamp (datetime.datetime | None | Unset): Timestamp when the error occurred
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
detail: str
|
|
33
|
-
code:
|
|
34
|
-
request_id:
|
|
35
|
-
timestamp:
|
|
35
|
+
code: None | str | Unset = UNSET
|
|
36
|
+
request_id: None | str | Unset = UNSET
|
|
37
|
+
timestamp: datetime.datetime | None | 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]:
|
|
39
41
|
detail = self.detail
|
|
40
42
|
|
|
41
|
-
code:
|
|
43
|
+
code: None | str | Unset
|
|
42
44
|
if isinstance(self.code, Unset):
|
|
43
45
|
code = UNSET
|
|
44
46
|
else:
|
|
45
47
|
code = self.code
|
|
46
48
|
|
|
47
|
-
request_id:
|
|
49
|
+
request_id: None | str | Unset
|
|
48
50
|
if isinstance(self.request_id, Unset):
|
|
49
51
|
request_id = UNSET
|
|
50
52
|
else:
|
|
51
53
|
request_id = self.request_id
|
|
52
54
|
|
|
53
|
-
timestamp:
|
|
55
|
+
timestamp: None | str | Unset
|
|
54
56
|
if isinstance(self.timestamp, Unset):
|
|
55
57
|
timestamp = UNSET
|
|
56
58
|
elif isinstance(self.timestamp, datetime.datetime):
|
|
@@ -79,25 +81,25 @@ class ErrorResponse:
|
|
|
79
81
|
d = dict(src_dict)
|
|
80
82
|
detail = d.pop("detail")
|
|
81
83
|
|
|
82
|
-
def _parse_code(data: object) ->
|
|
84
|
+
def _parse_code(data: object) -> None | str | Unset:
|
|
83
85
|
if data is None:
|
|
84
86
|
return data
|
|
85
87
|
if isinstance(data, Unset):
|
|
86
88
|
return data
|
|
87
|
-
return cast(
|
|
89
|
+
return cast(None | str | Unset, data)
|
|
88
90
|
|
|
89
91
|
code = _parse_code(d.pop("code", UNSET))
|
|
90
92
|
|
|
91
|
-
def _parse_request_id(data: object) ->
|
|
93
|
+
def _parse_request_id(data: object) -> None | str | Unset:
|
|
92
94
|
if data is None:
|
|
93
95
|
return data
|
|
94
96
|
if isinstance(data, Unset):
|
|
95
97
|
return data
|
|
96
|
-
return cast(
|
|
98
|
+
return cast(None | str | Unset, data)
|
|
97
99
|
|
|
98
100
|
request_id = _parse_request_id(d.pop("request_id", UNSET))
|
|
99
101
|
|
|
100
|
-
def _parse_timestamp(data: object) ->
|
|
102
|
+
def _parse_timestamp(data: object) -> datetime.datetime | None | Unset:
|
|
101
103
|
if data is None:
|
|
102
104
|
return data
|
|
103
105
|
if isinstance(data, Unset):
|
|
@@ -108,9 +110,9 @@ class ErrorResponse:
|
|
|
108
110
|
timestamp_type_0 = isoparse(data)
|
|
109
111
|
|
|
110
112
|
return timestamp_type_0
|
|
111
|
-
except
|
|
113
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
112
114
|
pass
|
|
113
|
-
return cast(
|
|
115
|
+
return cast(datetime.datetime | None | Unset, data)
|
|
114
116
|
|
|
115
117
|
timestamp = _parse_timestamp(d.pop("timestamp", UNSET))
|
|
116
118
|
|
|
@@ -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
|
|
@@ -22,12 +24,12 @@ class ExchangeTokenRequest:
|
|
|
22
24
|
Attributes:
|
|
23
25
|
connection_id (str): Connection ID to update
|
|
24
26
|
public_token (str): Temporary token from embedded auth
|
|
25
|
-
metadata (
|
|
27
|
+
metadata (ExchangeTokenRequestMetadataType0 | None | Unset): Provider-specific metadata
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
30
|
connection_id: str
|
|
29
31
|
public_token: str
|
|
30
|
-
metadata:
|
|
32
|
+
metadata: ExchangeTokenRequestMetadataType0 | None | Unset = UNSET
|
|
31
33
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
34
|
|
|
33
35
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -39,7 +41,7 @@ class ExchangeTokenRequest:
|
|
|
39
41
|
|
|
40
42
|
public_token = self.public_token
|
|
41
43
|
|
|
42
|
-
metadata:
|
|
44
|
+
metadata: dict[str, Any] | None | Unset
|
|
43
45
|
if isinstance(self.metadata, Unset):
|
|
44
46
|
metadata = UNSET
|
|
45
47
|
elif isinstance(self.metadata, ExchangeTokenRequestMetadataType0):
|
|
@@ -73,7 +75,7 @@ class ExchangeTokenRequest:
|
|
|
73
75
|
|
|
74
76
|
def _parse_metadata(
|
|
75
77
|
data: object,
|
|
76
|
-
) ->
|
|
78
|
+
) -> ExchangeTokenRequestMetadataType0 | None | Unset:
|
|
77
79
|
if data is None:
|
|
78
80
|
return data
|
|
79
81
|
if isinstance(data, Unset):
|
|
@@ -84,9 +86,9 @@ class ExchangeTokenRequest:
|
|
|
84
86
|
metadata_type_0 = ExchangeTokenRequestMetadataType0.from_dict(data)
|
|
85
87
|
|
|
86
88
|
return metadata_type_0
|
|
87
|
-
except
|
|
89
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
88
90
|
pass
|
|
89
|
-
return cast(
|
|
91
|
+
return cast(ExchangeTokenRequestMetadataType0 | None | Unset, data)
|
|
90
92
|
|
|
91
93
|
metadata = _parse_metadata(d.pop("metadata", UNSET))
|
|
92
94
|
|