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,6 +1,8 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import datetime
|
|
2
4
|
from collections.abc import Mapping
|
|
3
|
-
from typing import TYPE_CHECKING, Any, TypeVar,
|
|
5
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
4
6
|
|
|
5
7
|
from attrs import define as _attrs_define
|
|
6
8
|
from attrs import field as _attrs_field
|
|
@@ -28,27 +30,27 @@ class AgentResponse:
|
|
|
28
30
|
content (str): The agent's response content
|
|
29
31
|
agent_used (str): The agent type that handled the request
|
|
30
32
|
mode_used (AgentMode): Agent execution modes.
|
|
31
|
-
metadata (
|
|
32
|
-
tokens_used (
|
|
33
|
-
confidence_score (
|
|
34
|
-
operation_id (
|
|
35
|
-
is_partial (
|
|
36
|
-
error_details (
|
|
37
|
-
execution_time (
|
|
38
|
-
timestamp (
|
|
33
|
+
metadata (AgentResponseMetadataType0 | None | Unset): Response metadata including routing info
|
|
34
|
+
tokens_used (AgentResponseTokensUsedType0 | None | Unset): Token usage statistics
|
|
35
|
+
confidence_score (float | None | Unset): Confidence score of the response (0.0-1.0 scale)
|
|
36
|
+
operation_id (None | str | Unset): Operation ID for SSE monitoring
|
|
37
|
+
is_partial (bool | Unset): Whether this is a partial response Default: False.
|
|
38
|
+
error_details (AgentResponseErrorDetailsType0 | None | Unset): Error details if any
|
|
39
|
+
execution_time (float | None | Unset): Execution time in seconds
|
|
40
|
+
timestamp (datetime.datetime | Unset): Response timestamp
|
|
39
41
|
"""
|
|
40
42
|
|
|
41
43
|
content: str
|
|
42
44
|
agent_used: str
|
|
43
45
|
mode_used: AgentMode
|
|
44
|
-
metadata:
|
|
45
|
-
tokens_used:
|
|
46
|
-
confidence_score:
|
|
47
|
-
operation_id:
|
|
48
|
-
is_partial:
|
|
49
|
-
error_details:
|
|
50
|
-
execution_time:
|
|
51
|
-
timestamp:
|
|
46
|
+
metadata: AgentResponseMetadataType0 | None | Unset = UNSET
|
|
47
|
+
tokens_used: AgentResponseTokensUsedType0 | None | Unset = UNSET
|
|
48
|
+
confidence_score: float | None | Unset = UNSET
|
|
49
|
+
operation_id: None | str | Unset = UNSET
|
|
50
|
+
is_partial: bool | Unset = False
|
|
51
|
+
error_details: AgentResponseErrorDetailsType0 | None | Unset = UNSET
|
|
52
|
+
execution_time: float | None | Unset = UNSET
|
|
53
|
+
timestamp: datetime.datetime | Unset = UNSET
|
|
52
54
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
53
55
|
|
|
54
56
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -64,7 +66,7 @@ class AgentResponse:
|
|
|
64
66
|
|
|
65
67
|
mode_used = self.mode_used.value
|
|
66
68
|
|
|
67
|
-
metadata:
|
|
69
|
+
metadata: dict[str, Any] | None | Unset
|
|
68
70
|
if isinstance(self.metadata, Unset):
|
|
69
71
|
metadata = UNSET
|
|
70
72
|
elif isinstance(self.metadata, AgentResponseMetadataType0):
|
|
@@ -72,7 +74,7 @@ class AgentResponse:
|
|
|
72
74
|
else:
|
|
73
75
|
metadata = self.metadata
|
|
74
76
|
|
|
75
|
-
tokens_used:
|
|
77
|
+
tokens_used: dict[str, Any] | None | Unset
|
|
76
78
|
if isinstance(self.tokens_used, Unset):
|
|
77
79
|
tokens_used = UNSET
|
|
78
80
|
elif isinstance(self.tokens_used, AgentResponseTokensUsedType0):
|
|
@@ -80,13 +82,13 @@ class AgentResponse:
|
|
|
80
82
|
else:
|
|
81
83
|
tokens_used = self.tokens_used
|
|
82
84
|
|
|
83
|
-
confidence_score:
|
|
85
|
+
confidence_score: float | None | Unset
|
|
84
86
|
if isinstance(self.confidence_score, Unset):
|
|
85
87
|
confidence_score = UNSET
|
|
86
88
|
else:
|
|
87
89
|
confidence_score = self.confidence_score
|
|
88
90
|
|
|
89
|
-
operation_id:
|
|
91
|
+
operation_id: None | str | Unset
|
|
90
92
|
if isinstance(self.operation_id, Unset):
|
|
91
93
|
operation_id = UNSET
|
|
92
94
|
else:
|
|
@@ -94,7 +96,7 @@ class AgentResponse:
|
|
|
94
96
|
|
|
95
97
|
is_partial = self.is_partial
|
|
96
98
|
|
|
97
|
-
error_details:
|
|
99
|
+
error_details: dict[str, Any] | None | Unset
|
|
98
100
|
if isinstance(self.error_details, Unset):
|
|
99
101
|
error_details = UNSET
|
|
100
102
|
elif isinstance(self.error_details, AgentResponseErrorDetailsType0):
|
|
@@ -102,13 +104,13 @@ class AgentResponse:
|
|
|
102
104
|
else:
|
|
103
105
|
error_details = self.error_details
|
|
104
106
|
|
|
105
|
-
execution_time:
|
|
107
|
+
execution_time: float | None | Unset
|
|
106
108
|
if isinstance(self.execution_time, Unset):
|
|
107
109
|
execution_time = UNSET
|
|
108
110
|
else:
|
|
109
111
|
execution_time = self.execution_time
|
|
110
112
|
|
|
111
|
-
timestamp:
|
|
113
|
+
timestamp: str | Unset = UNSET
|
|
112
114
|
if not isinstance(self.timestamp, Unset):
|
|
113
115
|
timestamp = self.timestamp.isoformat()
|
|
114
116
|
|
|
@@ -155,9 +157,7 @@ class AgentResponse:
|
|
|
155
157
|
|
|
156
158
|
mode_used = AgentMode(d.pop("mode_used"))
|
|
157
159
|
|
|
158
|
-
def _parse_metadata(
|
|
159
|
-
data: object,
|
|
160
|
-
) -> Union["AgentResponseMetadataType0", None, Unset]:
|
|
160
|
+
def _parse_metadata(data: object) -> AgentResponseMetadataType0 | None | Unset:
|
|
161
161
|
if data is None:
|
|
162
162
|
return data
|
|
163
163
|
if isinstance(data, Unset):
|
|
@@ -168,15 +168,13 @@ class AgentResponse:
|
|
|
168
168
|
metadata_type_0 = AgentResponseMetadataType0.from_dict(data)
|
|
169
169
|
|
|
170
170
|
return metadata_type_0
|
|
171
|
-
except
|
|
171
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
172
172
|
pass
|
|
173
|
-
return cast(
|
|
173
|
+
return cast(AgentResponseMetadataType0 | None | Unset, data)
|
|
174
174
|
|
|
175
175
|
metadata = _parse_metadata(d.pop("metadata", UNSET))
|
|
176
176
|
|
|
177
|
-
def _parse_tokens_used(
|
|
178
|
-
data: object,
|
|
179
|
-
) -> Union["AgentResponseTokensUsedType0", None, Unset]:
|
|
177
|
+
def _parse_tokens_used(data: object) -> AgentResponseTokensUsedType0 | None | Unset:
|
|
180
178
|
if data is None:
|
|
181
179
|
return data
|
|
182
180
|
if isinstance(data, Unset):
|
|
@@ -187,27 +185,27 @@ class AgentResponse:
|
|
|
187
185
|
tokens_used_type_0 = AgentResponseTokensUsedType0.from_dict(data)
|
|
188
186
|
|
|
189
187
|
return tokens_used_type_0
|
|
190
|
-
except
|
|
188
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
191
189
|
pass
|
|
192
|
-
return cast(
|
|
190
|
+
return cast(AgentResponseTokensUsedType0 | None | Unset, data)
|
|
193
191
|
|
|
194
192
|
tokens_used = _parse_tokens_used(d.pop("tokens_used", UNSET))
|
|
195
193
|
|
|
196
|
-
def _parse_confidence_score(data: object) ->
|
|
194
|
+
def _parse_confidence_score(data: object) -> float | None | Unset:
|
|
197
195
|
if data is None:
|
|
198
196
|
return data
|
|
199
197
|
if isinstance(data, Unset):
|
|
200
198
|
return data
|
|
201
|
-
return cast(
|
|
199
|
+
return cast(float | None | Unset, data)
|
|
202
200
|
|
|
203
201
|
confidence_score = _parse_confidence_score(d.pop("confidence_score", UNSET))
|
|
204
202
|
|
|
205
|
-
def _parse_operation_id(data: object) ->
|
|
203
|
+
def _parse_operation_id(data: object) -> None | str | Unset:
|
|
206
204
|
if data is None:
|
|
207
205
|
return data
|
|
208
206
|
if isinstance(data, Unset):
|
|
209
207
|
return data
|
|
210
|
-
return cast(
|
|
208
|
+
return cast(None | str | Unset, data)
|
|
211
209
|
|
|
212
210
|
operation_id = _parse_operation_id(d.pop("operation_id", UNSET))
|
|
213
211
|
|
|
@@ -215,7 +213,7 @@ class AgentResponse:
|
|
|
215
213
|
|
|
216
214
|
def _parse_error_details(
|
|
217
215
|
data: object,
|
|
218
|
-
) ->
|
|
216
|
+
) -> AgentResponseErrorDetailsType0 | None | Unset:
|
|
219
217
|
if data is None:
|
|
220
218
|
return data
|
|
221
219
|
if isinstance(data, Unset):
|
|
@@ -226,23 +224,23 @@ class AgentResponse:
|
|
|
226
224
|
error_details_type_0 = AgentResponseErrorDetailsType0.from_dict(data)
|
|
227
225
|
|
|
228
226
|
return error_details_type_0
|
|
229
|
-
except
|
|
227
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
230
228
|
pass
|
|
231
|
-
return cast(
|
|
229
|
+
return cast(AgentResponseErrorDetailsType0 | None | Unset, data)
|
|
232
230
|
|
|
233
231
|
error_details = _parse_error_details(d.pop("error_details", UNSET))
|
|
234
232
|
|
|
235
|
-
def _parse_execution_time(data: object) ->
|
|
233
|
+
def _parse_execution_time(data: object) -> float | None | Unset:
|
|
236
234
|
if data is None:
|
|
237
235
|
return data
|
|
238
236
|
if isinstance(data, Unset):
|
|
239
237
|
return data
|
|
240
|
-
return cast(
|
|
238
|
+
return cast(float | None | Unset, data)
|
|
241
239
|
|
|
242
240
|
execution_time = _parse_execution_time(d.pop("execution_time", UNSET))
|
|
243
241
|
|
|
244
242
|
_timestamp = d.pop("timestamp", UNSET)
|
|
245
|
-
timestamp:
|
|
243
|
+
timestamp: datetime.datetime | Unset
|
|
246
244
|
if isinstance(_timestamp, Unset):
|
|
247
245
|
timestamp = UNSET
|
|
248
246
|
else:
|
|
@@ -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
|
|
@@ -19,9 +21,9 @@ class APIKeyInfo:
|
|
|
19
21
|
prefix (str): API key prefix for identification
|
|
20
22
|
is_active (bool): Whether the key is active
|
|
21
23
|
created_at (str): Creation timestamp
|
|
22
|
-
description (
|
|
23
|
-
last_used_at (
|
|
24
|
-
expires_at (
|
|
24
|
+
description (None | str | Unset): API key description
|
|
25
|
+
last_used_at (None | str | Unset): Last used timestamp
|
|
26
|
+
expires_at (None | str | Unset): Expiration timestamp
|
|
25
27
|
"""
|
|
26
28
|
|
|
27
29
|
id: str
|
|
@@ -29,9 +31,9 @@ class APIKeyInfo:
|
|
|
29
31
|
prefix: str
|
|
30
32
|
is_active: bool
|
|
31
33
|
created_at: str
|
|
32
|
-
description:
|
|
33
|
-
last_used_at:
|
|
34
|
-
expires_at:
|
|
34
|
+
description: None | str | Unset = UNSET
|
|
35
|
+
last_used_at: None | str | Unset = UNSET
|
|
36
|
+
expires_at: None | str | Unset = UNSET
|
|
35
37
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
36
38
|
|
|
37
39
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -45,19 +47,19 @@ class APIKeyInfo:
|
|
|
45
47
|
|
|
46
48
|
created_at = self.created_at
|
|
47
49
|
|
|
48
|
-
description:
|
|
50
|
+
description: None | str | Unset
|
|
49
51
|
if isinstance(self.description, Unset):
|
|
50
52
|
description = UNSET
|
|
51
53
|
else:
|
|
52
54
|
description = self.description
|
|
53
55
|
|
|
54
|
-
last_used_at:
|
|
56
|
+
last_used_at: None | str | Unset
|
|
55
57
|
if isinstance(self.last_used_at, Unset):
|
|
56
58
|
last_used_at = UNSET
|
|
57
59
|
else:
|
|
58
60
|
last_used_at = self.last_used_at
|
|
59
61
|
|
|
60
|
-
expires_at:
|
|
62
|
+
expires_at: None | str | Unset
|
|
61
63
|
if isinstance(self.expires_at, Unset):
|
|
62
64
|
expires_at = UNSET
|
|
63
65
|
else:
|
|
@@ -96,30 +98,30 @@ class APIKeyInfo:
|
|
|
96
98
|
|
|
97
99
|
created_at = d.pop("created_at")
|
|
98
100
|
|
|
99
|
-
def _parse_description(data: object) ->
|
|
101
|
+
def _parse_description(data: object) -> None | str | Unset:
|
|
100
102
|
if data is None:
|
|
101
103
|
return data
|
|
102
104
|
if isinstance(data, Unset):
|
|
103
105
|
return data
|
|
104
|
-
return cast(
|
|
106
|
+
return cast(None | str | Unset, data)
|
|
105
107
|
|
|
106
108
|
description = _parse_description(d.pop("description", UNSET))
|
|
107
109
|
|
|
108
|
-
def _parse_last_used_at(data: object) ->
|
|
110
|
+
def _parse_last_used_at(data: object) -> None | str | Unset:
|
|
109
111
|
if data is None:
|
|
110
112
|
return data
|
|
111
113
|
if isinstance(data, Unset):
|
|
112
114
|
return data
|
|
113
|
-
return cast(
|
|
115
|
+
return cast(None | str | Unset, data)
|
|
114
116
|
|
|
115
117
|
last_used_at = _parse_last_used_at(d.pop("last_used_at", UNSET))
|
|
116
118
|
|
|
117
|
-
def _parse_expires_at(data: object) ->
|
|
119
|
+
def _parse_expires_at(data: object) -> None | str | Unset:
|
|
118
120
|
if data is None:
|
|
119
121
|
return data
|
|
120
122
|
if isinstance(data, Unset):
|
|
121
123
|
return data
|
|
122
|
-
return cast(
|
|
124
|
+
return cast(None | str | Unset, data)
|
|
123
125
|
|
|
124
126
|
expires_at = _parse_expires_at(d.pop("expires_at", UNSET))
|
|
125
127
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
4
|
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
5
|
|
|
@@ -16,10 +18,10 @@ class APIKeysResponse:
|
|
|
16
18
|
"""Response model for listing API keys.
|
|
17
19
|
|
|
18
20
|
Attributes:
|
|
19
|
-
api_keys (list[
|
|
21
|
+
api_keys (list[APIKeyInfo]): List of user's API keys
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
|
-
api_keys: list[
|
|
24
|
+
api_keys: list[APIKeyInfo]
|
|
23
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
26
|
|
|
25
27
|
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
|
|
@@ -21,19 +23,19 @@ class AuthResponse:
|
|
|
21
23
|
Attributes:
|
|
22
24
|
user (AuthResponseUser): User information
|
|
23
25
|
message (str): Success message
|
|
24
|
-
org (
|
|
25
|
-
|
|
26
|
-
token (
|
|
27
|
-
expires_in (
|
|
28
|
-
refresh_threshold (
|
|
26
|
+
org (AuthResponseOrgType0 | None | Unset): Organization information (personal org created automatically on
|
|
27
|
+
registration)
|
|
28
|
+
token (None | str | Unset): JWT authentication token (optional for cookie-based auth)
|
|
29
|
+
expires_in (int | None | Unset): Token expiry time in seconds from now
|
|
30
|
+
refresh_threshold (int | None | Unset): Recommended refresh threshold in seconds before expiry
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
|
-
user:
|
|
33
|
+
user: AuthResponseUser
|
|
32
34
|
message: str
|
|
33
|
-
org:
|
|
34
|
-
token:
|
|
35
|
-
expires_in:
|
|
36
|
-
refresh_threshold:
|
|
35
|
+
org: AuthResponseOrgType0 | None | Unset = UNSET
|
|
36
|
+
token: None | str | Unset = UNSET
|
|
37
|
+
expires_in: int | None | Unset = UNSET
|
|
38
|
+
refresh_threshold: int | None | Unset = UNSET
|
|
37
39
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
40
|
|
|
39
41
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -43,7 +45,7 @@ class AuthResponse:
|
|
|
43
45
|
|
|
44
46
|
message = self.message
|
|
45
47
|
|
|
46
|
-
org:
|
|
48
|
+
org: dict[str, Any] | None | Unset
|
|
47
49
|
if isinstance(self.org, Unset):
|
|
48
50
|
org = UNSET
|
|
49
51
|
elif isinstance(self.org, AuthResponseOrgType0):
|
|
@@ -51,19 +53,19 @@ class AuthResponse:
|
|
|
51
53
|
else:
|
|
52
54
|
org = self.org
|
|
53
55
|
|
|
54
|
-
token:
|
|
56
|
+
token: None | str | Unset
|
|
55
57
|
if isinstance(self.token, Unset):
|
|
56
58
|
token = UNSET
|
|
57
59
|
else:
|
|
58
60
|
token = self.token
|
|
59
61
|
|
|
60
|
-
expires_in:
|
|
62
|
+
expires_in: int | None | Unset
|
|
61
63
|
if isinstance(self.expires_in, Unset):
|
|
62
64
|
expires_in = UNSET
|
|
63
65
|
else:
|
|
64
66
|
expires_in = self.expires_in
|
|
65
67
|
|
|
66
|
-
refresh_threshold:
|
|
68
|
+
refresh_threshold: int | None | Unset
|
|
67
69
|
if isinstance(self.refresh_threshold, Unset):
|
|
68
70
|
refresh_threshold = UNSET
|
|
69
71
|
else:
|
|
@@ -98,7 +100,7 @@ class AuthResponse:
|
|
|
98
100
|
|
|
99
101
|
message = d.pop("message")
|
|
100
102
|
|
|
101
|
-
def _parse_org(data: object) ->
|
|
103
|
+
def _parse_org(data: object) -> AuthResponseOrgType0 | None | Unset:
|
|
102
104
|
if data is None:
|
|
103
105
|
return data
|
|
104
106
|
if isinstance(data, Unset):
|
|
@@ -109,36 +111,36 @@ class AuthResponse:
|
|
|
109
111
|
org_type_0 = AuthResponseOrgType0.from_dict(data)
|
|
110
112
|
|
|
111
113
|
return org_type_0
|
|
112
|
-
except
|
|
114
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
113
115
|
pass
|
|
114
|
-
return cast(
|
|
116
|
+
return cast(AuthResponseOrgType0 | None | Unset, data)
|
|
115
117
|
|
|
116
118
|
org = _parse_org(d.pop("org", UNSET))
|
|
117
119
|
|
|
118
|
-
def _parse_token(data: object) ->
|
|
120
|
+
def _parse_token(data: object) -> None | str | Unset:
|
|
119
121
|
if data is None:
|
|
120
122
|
return data
|
|
121
123
|
if isinstance(data, Unset):
|
|
122
124
|
return data
|
|
123
|
-
return cast(
|
|
125
|
+
return cast(None | str | Unset, data)
|
|
124
126
|
|
|
125
127
|
token = _parse_token(d.pop("token", UNSET))
|
|
126
128
|
|
|
127
|
-
def _parse_expires_in(data: object) ->
|
|
129
|
+
def _parse_expires_in(data: object) -> int | None | Unset:
|
|
128
130
|
if data is None:
|
|
129
131
|
return data
|
|
130
132
|
if isinstance(data, Unset):
|
|
131
133
|
return data
|
|
132
|
-
return cast(
|
|
134
|
+
return cast(int | None | Unset, data)
|
|
133
135
|
|
|
134
136
|
expires_in = _parse_expires_in(d.pop("expires_in", UNSET))
|
|
135
137
|
|
|
136
|
-
def _parse_refresh_threshold(data: object) ->
|
|
138
|
+
def _parse_refresh_threshold(data: object) -> int | None | Unset:
|
|
137
139
|
if data is None:
|
|
138
140
|
return data
|
|
139
141
|
if isinstance(data, Unset):
|
|
140
142
|
return data
|
|
141
|
-
return cast(
|
|
143
|
+
return cast(int | None | Unset, data)
|
|
142
144
|
|
|
143
145
|
refresh_threshold = _parse_refresh_threshold(d.pop("refresh_threshold", UNSET))
|
|
144
146
|
|
|
@@ -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
|
|
@@ -15,12 +17,12 @@ class AvailableExtension:
|
|
|
15
17
|
Attributes:
|
|
16
18
|
name (str):
|
|
17
19
|
description (str):
|
|
18
|
-
enabled (
|
|
20
|
+
enabled (bool | Unset): Default: False.
|
|
19
21
|
"""
|
|
20
22
|
|
|
21
23
|
name: str
|
|
22
24
|
description: str
|
|
23
|
-
enabled:
|
|
25
|
+
enabled: bool | Unset = False
|
|
24
26
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
27
|
|
|
26
28
|
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,10 +17,10 @@ T = TypeVar("T", bound="AvailableExtensionsResponse")
|
|
|
15
17
|
class AvailableExtensionsResponse:
|
|
16
18
|
"""
|
|
17
19
|
Attributes:
|
|
18
|
-
extensions (list[
|
|
20
|
+
extensions (list[AvailableExtension]):
|
|
19
21
|
"""
|
|
20
22
|
|
|
21
|
-
extensions: list[
|
|
23
|
+
extensions: list[AvailableExtension]
|
|
22
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
25
|
|
|
24
26
|
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
|
|
|
@@ -16,10 +18,10 @@ class AvailableGraphTiersResponse:
|
|
|
16
18
|
"""Response containing available graph tiers.
|
|
17
19
|
|
|
18
20
|
Attributes:
|
|
19
|
-
tiers (list[
|
|
21
|
+
tiers (list[GraphTierInfo]): List of available tiers
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
|
-
tiers: list[
|
|
24
|
+
tiers: list[GraphTierInfo]
|
|
23
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
26
|
|
|
25
27
|
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 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,21 +16,21 @@ class BackupCreateRequest:
|
|
|
14
16
|
"""Request model for creating a backup.
|
|
15
17
|
|
|
16
18
|
Attributes:
|
|
17
|
-
backup_format (
|
|
19
|
+
backup_format (str | Unset): Backup format - only 'full_dump' is supported (complete .kuzu database file)
|
|
18
20
|
Default: 'full_dump'.
|
|
19
|
-
backup_type (
|
|
20
|
-
retention_days (
|
|
21
|
-
compression (
|
|
22
|
-
encryption (
|
|
23
|
-
schedule (
|
|
21
|
+
backup_type (str | Unset): Backup type - only 'full' is supported Default: 'full'.
|
|
22
|
+
retention_days (int | Unset): Retention period in days Default: 90.
|
|
23
|
+
compression (bool | Unset): Enable compression (always enabled for optimal storage) Default: True.
|
|
24
|
+
encryption (bool | Unset): Enable encryption (encrypted backups cannot be downloaded) Default: False.
|
|
25
|
+
schedule (None | str | Unset): Optional cron schedule for automated backups
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
|
-
backup_format:
|
|
27
|
-
backup_type:
|
|
28
|
-
retention_days:
|
|
29
|
-
compression:
|
|
30
|
-
encryption:
|
|
31
|
-
schedule:
|
|
28
|
+
backup_format: str | Unset = "full_dump"
|
|
29
|
+
backup_type: str | Unset = "full"
|
|
30
|
+
retention_days: int | Unset = 90
|
|
31
|
+
compression: bool | Unset = True
|
|
32
|
+
encryption: bool | Unset = False
|
|
33
|
+
schedule: None | str | Unset = UNSET
|
|
32
34
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
33
35
|
|
|
34
36
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -42,7 +44,7 @@ class BackupCreateRequest:
|
|
|
42
44
|
|
|
43
45
|
encryption = self.encryption
|
|
44
46
|
|
|
45
|
-
schedule:
|
|
47
|
+
schedule: None | str | Unset
|
|
46
48
|
if isinstance(self.schedule, Unset):
|
|
47
49
|
schedule = UNSET
|
|
48
50
|
else:
|
|
@@ -79,12 +81,12 @@ class BackupCreateRequest:
|
|
|
79
81
|
|
|
80
82
|
encryption = d.pop("encryption", UNSET)
|
|
81
83
|
|
|
82
|
-
def _parse_schedule(data: object) ->
|
|
84
|
+
def _parse_schedule(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
|
schedule = _parse_schedule(d.pop("schedule", UNSET))
|
|
90
92
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
4
|
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
5
|
|
|
@@ -16,12 +18,12 @@ class BackupListResponse:
|
|
|
16
18
|
"""Response model for backup list.
|
|
17
19
|
|
|
18
20
|
Attributes:
|
|
19
|
-
backups (list[
|
|
21
|
+
backups (list[BackupResponse]):
|
|
20
22
|
total_count (int):
|
|
21
23
|
graph_id (str):
|
|
22
24
|
"""
|
|
23
25
|
|
|
24
|
-
backups: list[
|
|
26
|
+
backups: list[BackupResponse]
|
|
25
27
|
total_count: int
|
|
26
28
|
graph_id: str
|
|
27
29
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|