convexity-api-client 0.4.0.dev146__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.
- convexity_api_client/__init__.py +8 -0
- convexity_api_client/api/__init__.py +1 -0
- convexity_api_client/api/default/__init__.py +1 -0
- convexity_api_client/api/default/get_openapi_schema_openapi_schema_get.py +85 -0
- convexity_api_client/api/default/health_check_health_get.py +85 -0
- convexity_api_client/api/notebook/__init__.py +1 -0
- convexity_api_client/api/notebook/delete_session_api_notebook_session_session_id_delete.py +169 -0
- convexity_api_client/api/notebook/execute_cell_api_notebook_session_session_id_execute_post.py +202 -0
- convexity_api_client/api/notebook/get_or_create_session_api_notebook_session_get_or_create_post.py +174 -0
- convexity_api_client/api/notebook/list_sessions_api_notebook_session_list_get.py +134 -0
- convexity_api_client/api/notebook/reset_session_api_notebook_session_session_id_reset_post.py +177 -0
- convexity_api_client/api/profile/__init__.py +1 -0
- convexity_api_client/api/profile/get_or_create_profile_profile_get_or_create_user_id_get.py +171 -0
- convexity_api_client/api/profile/get_profile_profile_get_user_id_get.py +171 -0
- convexity_api_client/api/profile/update_profile_profile_update_user_id_post.py +192 -0
- convexity_api_client/api/v1/__init__.py +1 -0
- convexity_api_client/api/v1/add_member_v1_organizations_organization_id_members_post.py +190 -0
- convexity_api_client/api/v1/batch_delete_runs_v1_run_batch_delete.py +174 -0
- convexity_api_client/api/v1/cancel_run_v1_run_cancel_run_id_post.py +169 -0
- convexity_api_client/api/v1/check_workspace_exists_v1_workspace_workspaces_exists_post.py +172 -0
- convexity_api_client/api/v1/cleanup_stale_runs_v1_run_cleanup_post.py +132 -0
- convexity_api_client/api/v1/create_and_start_run_v1_run_create_and_start_post.py +174 -0
- convexity_api_client/api/v1/create_api_connection_v1_connections_api_post.py +194 -0
- convexity_api_client/api/v1/create_api_key_v1_api_keys_post.py +214 -0
- convexity_api_client/api/v1/create_chat_session_v1_chat_sessions_post.py +194 -0
- convexity_api_client/api/v1/create_checkout_session_v1_token_purchase_checkout_post.py +85 -0
- convexity_api_client/api/v1/create_dashboard_v1_dashboards_post.py +194 -0
- convexity_api_client/api/v1/create_database_connection_v1_connections_database_post.py +194 -0
- convexity_api_client/api/v1/create_databricks_connection_v1_connections_databricks_post.py +194 -0
- convexity_api_client/api/v1/create_dataset_v1_datasets_post.py +194 -0
- convexity_api_client/api/v1/create_file_connection_v1_connections_file_post.py +194 -0
- convexity_api_client/api/v1/create_organization_v1_organizations_post.py +174 -0
- convexity_api_client/api/v1/create_project_v1_projects_post.py +174 -0
- convexity_api_client/api/v1/create_run_v1_run_create_post.py +174 -0
- convexity_api_client/api/v1/create_s3_connection_v1_connections_s3_post.py +194 -0
- convexity_api_client/api/v1/create_share_v1_dashboards_dashboard_id_share_post.py +198 -0
- convexity_api_client/api/v1/create_task_v1_tasks_post.py +194 -0
- convexity_api_client/api/v1/create_webhook_connection_v1_connections_webhook_post.py +194 -0
- convexity_api_client/api/v1/create_workspace_v1_workspace_workspaces_create_post.py +172 -0
- convexity_api_client/api/v1/delete_chat_session_v1_chat_sessions_session_id_delete.py +188 -0
- convexity_api_client/api/v1/delete_connection_v1_connections_connection_id_delete.py +215 -0
- convexity_api_client/api/v1/delete_dashboard_v1_dashboards_dashboard_id_delete.py +167 -0
- convexity_api_client/api/v1/delete_dataset_v1_datasets_dataset_id_delete.py +167 -0
- convexity_api_client/api/v1/delete_organization_v1_organizations_organization_id_delete.py +167 -0
- convexity_api_client/api/v1/delete_project_v1_projects_project_id_delete.py +167 -0
- convexity_api_client/api/v1/delete_run_v1_run_delete_run_id_delete.py +169 -0
- convexity_api_client/api/v1/delete_task_v1_tasks_task_id_delete.py +167 -0
- convexity_api_client/api/v1/delete_workspace_file_v1_workspace_workspaces_files_delete_delete.py +174 -0
- convexity_api_client/api/v1/delete_workspace_v1_workspace_workspaces_delete_delete.py +172 -0
- convexity_api_client/api/v1/exchange_share_token_v1_public_auth_token_post.py +289 -0
- convexity_api_client/api/v1/get_api_key_usage_v1_api_keys_key_id_usage_get.py +190 -0
- convexity_api_client/api/v1/get_api_key_v1_api_keys_key_id_get.py +190 -0
- convexity_api_client/api/v1/get_chat_session_v1_chat_sessions_session_id_get.py +190 -0
- convexity_api_client/api/v1/get_connection_v1_connections_connection_id_get.py +303 -0
- convexity_api_client/api/v1/get_connections_openapi_schema_v1_connections_openapi_get.py +218 -0
- convexity_api_client/api/v1/get_daily_usage_v1_token_usage_daily_get.py +172 -0
- convexity_api_client/api/v1/get_dashboard_v1_dashboards_dashboard_id_get.py +169 -0
- convexity_api_client/api/v1/get_databricks_table_schema_v1_connections_databricks_connection_id_tables_table_name_schema_get.py +183 -0
- convexity_api_client/api/v1/get_datalake_task_v1_datalake_tasks_task_id_get.py +198 -0
- convexity_api_client/api/v1/get_dataset_v1_datasets_dataset_id_get.py +169 -0
- convexity_api_client/api/v1/get_or_create_datalake_connection_info_v1_datalake_connection_get.py +238 -0
- convexity_api_client/api/v1/get_organization_by_slug_v1_organizations_slug_slug_get.py +169 -0
- convexity_api_client/api/v1/get_organization_v1_organizations_organization_id_get.py +169 -0
- convexity_api_client/api/v1/get_project_by_slug_v1_organizations_organization_id_projects_slug_slug_get.py +183 -0
- convexity_api_client/api/v1/get_project_v1_projects_project_id_get.py +169 -0
- convexity_api_client/api/v1/get_public_dashboard_v1_public_dashboards_token_get.py +243 -0
- convexity_api_client/api/v1/get_purchase_history_v1_token_purchase_history_get.py +85 -0
- convexity_api_client/api/v1/get_refresh_task_status_v1_datasets_dataset_id_refresh_task_id_get.py +183 -0
- convexity_api_client/api/v1/get_run_stats_v1_run_stats_get.py +132 -0
- convexity_api_client/api/v1/get_run_status_v1_run_status_run_id_get.py +169 -0
- convexity_api_client/api/v1/get_s3_object_content_v1_connections_s3_connection_id_objects_content_get.py +190 -0
- convexity_api_client/api/v1/get_share_v1_dashboards_dashboard_id_share_get.py +173 -0
- convexity_api_client/api/v1/get_table_schema_v1_connections_connection_id_tables_table_name_schema_get.py +183 -0
- convexity_api_client/api/v1/get_task_v1_tasks_task_id_get.py +169 -0
- convexity_api_client/api/v1/get_token_balance_v1_token_balance_get.py +85 -0
- convexity_api_client/api/v1/get_token_packages_v1_token_packages_get.py +85 -0
- convexity_api_client/api/v1/get_usage_summary_v1_token_usage_summary_get.py +85 -0
- convexity_api_client/api/v1/get_workspace_file_info_v1_workspace_workspaces_files_info_post.py +174 -0
- convexity_api_client/api/v1/get_workspace_file_url_v1_workspace_workspaces_files_url_post.py +174 -0
- convexity_api_client/api/v1/health_check_v1_health_get.py +85 -0
- convexity_api_client/api/v1/infer_api_schema_v1_connections_api_connection_id_schema_get.py +169 -0
- convexity_api_client/api/v1/infer_file_schema_v1_connections_file_connection_id_schema_get.py +169 -0
- convexity_api_client/api/v1/list_api_keys_v1_api_keys_get.py +189 -0
- convexity_api_client/api/v1/list_chat_sessions_v1_chat_sessions_get.py +189 -0
- convexity_api_client/api/v1/list_connections_v1_connections_get.py +174 -0
- convexity_api_client/api/v1/list_dashboards_v1_dashboards_get.py +174 -0
- convexity_api_client/api/v1/list_databricks_tables_v1_connections_databricks_connection_id_tables_get.py +169 -0
- convexity_api_client/api/v1/list_datalake_tasks_v1_datalake_tasks_get.py +268 -0
- convexity_api_client/api/v1/list_datasets_v1_datasets_get.py +174 -0
- convexity_api_client/api/v1/list_members_v1_organizations_organization_id_members_get.py +169 -0
- convexity_api_client/api/v1/list_objects_v1_connections_connection_id_objects_get.py +210 -0
- convexity_api_client/api/v1/list_organization_projects_v1_organizations_organization_id_projects_get.py +169 -0
- convexity_api_client/api/v1/list_organizations_v1_organizations_get.py +136 -0
- convexity_api_client/api/v1/list_refresh_tasks_v1_datasets_dataset_id_refresh_history_get.py +213 -0
- convexity_api_client/api/v1/list_tables_v1_connections_connection_id_tables_get.py +169 -0
- convexity_api_client/api/v1/list_tasks_v1_tasks_get.py +197 -0
- convexity_api_client/api/v1/list_user_projects_v1_projects_get.py +132 -0
- convexity_api_client/api/v1/list_workspace_files_v1_workspace_workspaces_files_list_post.py +174 -0
- convexity_api_client/api/v1/preview_api_data_v1_connections_api_connection_id_preview_get.py +190 -0
- convexity_api_client/api/v1/preview_database_data_v1_connections_database_connection_id_preview_get.py +205 -0
- convexity_api_client/api/v1/preview_databricks_data_v1_connections_databricks_connection_id_preview_get.py +205 -0
- convexity_api_client/api/v1/preview_file_data_v1_connections_file_connection_id_preview_get.py +190 -0
- convexity_api_client/api/v1/proxy_claude_messages_v1_claude_messages_post.py +89 -0
- convexity_api_client/api/v1/read_workspace_file_v1_workspace_workspaces_files_read_post.py +174 -0
- convexity_api_client/api/v1/refresh_dataset_async_v1_datasets_dataset_id_refresh_async_post.py +181 -0
- convexity_api_client/api/v1/regenerate_share_token_v1_dashboards_dashboard_id_share_regenerate_post.py +177 -0
- convexity_api_client/api/v1/remove_member_v1_organizations_organization_id_members_member_user_id_delete.py +181 -0
- convexity_api_client/api/v1/restart_run_v1_run_restart_run_id_post.py +169 -0
- convexity_api_client/api/v1/revoke_api_key_v1_api_keys_key_id_delete.py +188 -0
- convexity_api_client/api/v1/revoke_share_v1_dashboards_dashboard_id_share_delete.py +171 -0
- convexity_api_client/api/v1/run_databricks_sql_query_v1_connections_databricks_connection_id_query_post.py +194 -0
- convexity_api_client/api/v1/run_sql_query_v1_connections_database_connection_id_query_post.py +194 -0
- convexity_api_client/api/v1/save_workspace_file_v1_workspace_workspaces_files_save_post.py +174 -0
- convexity_api_client/api/v1/start_run_v1_run_start_run_id_post.py +169 -0
- convexity_api_client/api/v1/stripe_webhook_v1_token_webhook_stripe_post.py +85 -0
- convexity_api_client/api/v1/test_database_connection_v1_connections_database_test_post.py +194 -0
- convexity_api_client/api/v1/test_databricks_connection_v1_connections_databricks_test_post.py +194 -0
- convexity_api_client/api/v1/transfer_ownership_v1_organizations_organization_id_transfer_ownership_new_owner_id_post.py +181 -0
- convexity_api_client/api/v1/update_api_connection_v1_connections_api_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/update_api_key_v1_api_keys_key_id_patch.py +210 -0
- convexity_api_client/api/v1/update_chat_session_v1_chat_sessions_session_id_patch.py +210 -0
- convexity_api_client/api/v1/update_connection_v1_connections_connection_id_patch.py +339 -0
- convexity_api_client/api/v1/update_dashboard_v1_dashboards_dashboard_id_patch.py +190 -0
- convexity_api_client/api/v1/update_database_connection_v1_connections_database_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/update_databricks_connection_v1_connections_databricks_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/update_dataset_v1_datasets_dataset_id_patch.py +190 -0
- convexity_api_client/api/v1/update_file_connection_v1_connections_file_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/update_file_description_v1_workspace_workspaces_files_description_patch.py +174 -0
- convexity_api_client/api/v1/update_member_role_v1_organizations_organization_id_members_member_user_id_patch.py +204 -0
- convexity_api_client/api/v1/update_organization_v1_organizations_organization_id_patch.py +190 -0
- convexity_api_client/api/v1/update_project_v1_projects_project_id_patch.py +190 -0
- convexity_api_client/api/v1/update_s3_connection_v1_connections_s3_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/update_share_v1_dashboards_dashboard_id_share_put.py +194 -0
- convexity_api_client/api/v1/update_task_v1_tasks_task_id_patch.py +190 -0
- convexity_api_client/api/v1/update_webhook_connection_v1_connections_webhook_connection_id_patch.py +190 -0
- convexity_api_client/api/v1/vacuum_datalake_v1_datalake_vacuum_post.py +221 -0
- convexity_api_client/api/v1/verify_api_connection_v1_connections_api_connection_id_verify_post.py +169 -0
- convexity_api_client/api/v1/verify_database_connection_v1_connections_database_connection_id_verify_post.py +169 -0
- convexity_api_client/api/v1/verify_databricks_connection_v1_connections_databricks_connection_id_verify_post.py +169 -0
- convexity_api_client/api/v1/verify_file_connection_v1_connections_file_connection_id_verify_post.py +169 -0
- convexity_api_client/api/v1/verify_s3_connection_v1_connections_s3_connection_id_verify_post.py +169 -0
- convexity_api_client/api/v1/verify_webhook_connection_v1_connections_webhook_connection_id_verify_post.py +169 -0
- convexity_api_client/client.py +268 -0
- convexity_api_client/errors.py +16 -0
- convexity_api_client/models/__init__.py +629 -0
- convexity_api_client/models/add_organization_member_request.py +81 -0
- convexity_api_client/models/api_connection.py +420 -0
- convexity_api_client/models/api_connection_headers_type_0.py +47 -0
- convexity_api_client/models/api_dataset_config.py +205 -0
- convexity_api_client/models/api_dataset_config_body_type_0.py +47 -0
- convexity_api_client/models/api_dataset_config_headers_type_0.py +47 -0
- convexity_api_client/models/api_dataset_config_method.py +9 -0
- convexity_api_client/models/api_dataset_config_parameters_type_0.py +60 -0
- convexity_api_client/models/api_key_list_response.py +84 -0
- convexity_api_client/models/api_key_permission.py +10 -0
- convexity_api_client/models/api_key_response.py +256 -0
- convexity_api_client/models/api_key_status.py +10 -0
- convexity_api_client/models/api_key_usage_log.py +204 -0
- convexity_api_client/models/api_key_usage_stats.py +127 -0
- convexity_api_client/models/api_key_usage_stats_top_endpoints_item.py +47 -0
- convexity_api_client/models/area_chart_config.py +836 -0
- convexity_api_client/models/area_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/area_chart_config_label_position_type_0.py +11 -0
- convexity_api_client/models/area_chart_config_legend_orientation_type_0.py +9 -0
- convexity_api_client/models/area_chart_config_legend_position_type_0.py +11 -0
- convexity_api_client/models/area_chart_config_orientation_type_0.py +9 -0
- convexity_api_client/models/area_chart_config_series_styles_type_0.py +60 -0
- convexity_api_client/models/auth_type.py +11 -0
- convexity_api_client/models/axis_label_config.py +186 -0
- convexity_api_client/models/axis_label_config_format_type_0.py +10 -0
- convexity_api_client/models/bar_chart_config.py +856 -0
- convexity_api_client/models/bar_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/bar_chart_config_label_position_type_0.py +11 -0
- convexity_api_client/models/bar_chart_config_legend_orientation_type_0.py +9 -0
- convexity_api_client/models/bar_chart_config_legend_position_type_0.py +11 -0
- convexity_api_client/models/bar_chart_config_orientation_type_0.py +9 -0
- convexity_api_client/models/bar_chart_config_series_styles_type_0.py +60 -0
- convexity_api_client/models/batch_delete_runs_request.py +62 -0
- convexity_api_client/models/batch_delete_runs_response.py +94 -0
- convexity_api_client/models/cancel_run_response.py +70 -0
- convexity_api_client/models/cell_execution_status.py +11 -0
- convexity_api_client/models/cell_type.py +9 -0
- convexity_api_client/models/chart_config.py +417 -0
- convexity_api_client/models/chart_field.py +239 -0
- convexity_api_client/models/chart_field_line_style_type_0.py +10 -0
- convexity_api_client/models/chart_field_line_type_type_0.py +12 -0
- convexity_api_client/models/chart_field_transform_type_0.py +18 -0
- convexity_api_client/models/chart_filter.py +350 -0
- convexity_api_client/models/chart_filter_aggregation_function_type_0.py +12 -0
- convexity_api_client/models/chart_filter_applies_to_type_0.py +9 -0
- convexity_api_client/models/chart_filter_config.py +136 -0
- convexity_api_client/models/chart_filter_config_match_mode_type_0.py +11 -0
- convexity_api_client/models/chart_filter_config_operator_type_0.py +12 -0
- convexity_api_client/models/chart_filter_filtertype.py +14 -0
- convexity_api_client/models/chart_filter_logic_operator_type_0.py +9 -0
- convexity_api_client/models/chart_filter_value_type_5.py +47 -0
- convexity_api_client/models/chat_session.py +164 -0
- convexity_api_client/models/chat_session_create.py +122 -0
- convexity_api_client/models/chat_session_create_chat_state_type_0.py +47 -0
- convexity_api_client/models/chat_session_list_response.py +76 -0
- convexity_api_client/models/chat_session_response.py +132 -0
- convexity_api_client/models/chat_session_response_chatstate.py +47 -0
- convexity_api_client/models/chat_session_summary.py +110 -0
- convexity_api_client/models/chat_session_update.py +112 -0
- convexity_api_client/models/chat_session_update_chat_state_type_0.py +47 -0
- convexity_api_client/models/cleanup_runs_response.py +78 -0
- convexity_api_client/models/column.py +184 -0
- convexity_api_client/models/column_aggregation_type_0.py +12 -0
- convexity_api_client/models/column_role.py +9 -0
- convexity_api_client/models/column_semantic_type_type_0.py +10 -0
- convexity_api_client/models/column_type.py +12 -0
- convexity_api_client/models/connection_dto.py +322 -0
- convexity_api_client/models/connection_list_response.py +164 -0
- convexity_api_client/models/connection_status.py +11 -0
- convexity_api_client/models/connection_type.py +13 -0
- convexity_api_client/models/create_api_connection_request.py +266 -0
- convexity_api_client/models/create_api_connection_request_headers_type_0.py +47 -0
- convexity_api_client/models/create_api_key_request.py +184 -0
- convexity_api_client/models/create_api_key_response.py +137 -0
- convexity_api_client/models/create_dashboard_request.py +463 -0
- convexity_api_client/models/create_database_connection_request.py +239 -0
- convexity_api_client/models/create_databricks_connection_request.py +166 -0
- convexity_api_client/models/create_dataset_request.py +264 -0
- convexity_api_client/models/create_file_connection_request.py +118 -0
- convexity_api_client/models/create_organization_request.py +112 -0
- convexity_api_client/models/create_project_request.py +100 -0
- convexity_api_client/models/create_run_request.py +208 -0
- convexity_api_client/models/create_run_request_parameter_input_type_0.py +47 -0
- convexity_api_client/models/create_run_request_parameter_type_0.py +47 -0
- convexity_api_client/models/create_run_response.py +92 -0
- convexity_api_client/models/create_s3_connection_request.py +175 -0
- convexity_api_client/models/create_share_request.py +135 -0
- convexity_api_client/models/create_task_request.py +101 -0
- convexity_api_client/models/create_webhook_connection_request.py +150 -0
- convexity_api_client/models/create_workspace_request.py +61 -0
- convexity_api_client/models/csv_dataset_config.py +236 -0
- convexity_api_client/models/csv_dataset_config_sourcetype.py +10 -0
- convexity_api_client/models/dashboard.py +340 -0
- convexity_api_client/models/dashboard_chart_widget.py +193 -0
- convexity_api_client/models/dashboard_dataset.py +169 -0
- convexity_api_client/models/dashboard_date_filter_widget.py +272 -0
- convexity_api_client/models/dashboard_date_range_filter_widget.py +290 -0
- convexity_api_client/models/dashboard_definition.py +603 -0
- convexity_api_client/models/dashboard_definition_filter_values_type_0.py +47 -0
- convexity_api_client/models/dashboard_definition_filters_type_0_item.py +47 -0
- convexity_api_client/models/dashboard_e_chart_widget.py +215 -0
- convexity_api_client/models/dashboard_layout.py +100 -0
- convexity_api_client/models/dashboard_list_response.py +76 -0
- convexity_api_client/models/dashboard_multi_select_filter_widget.py +363 -0
- convexity_api_client/models/dashboard_number_filter_widget.py +310 -0
- convexity_api_client/models/dashboard_number_filter_widget_operator.py +12 -0
- convexity_api_client/models/dashboard_number_range_filter_widget.py +310 -0
- convexity_api_client/models/dashboard_s3_object_widget.py +195 -0
- convexity_api_client/models/dashboard_select_filter_widget.py +337 -0
- convexity_api_client/models/dashboard_share.py +264 -0
- convexity_api_client/models/dashboard_share_response.py +221 -0
- convexity_api_client/models/dashboard_sql_chart_widget.py +326 -0
- convexity_api_client/models/dashboard_table_widget.py +429 -0
- convexity_api_client/models/dashboard_table_widget_column_widths_type_0.py +47 -0
- convexity_api_client/models/dashboard_table_widget_default_sort_direction_type_0.py +9 -0
- convexity_api_client/models/dashboard_task_widget.py +175 -0
- convexity_api_client/models/dashboard_text_filter_widget.py +299 -0
- convexity_api_client/models/dashboard_text_filter_widget_matchmode.py +11 -0
- convexity_api_client/models/dashboard_text_widget.py +279 -0
- convexity_api_client/models/dashboard_text_widget_padding_type_0.py +11 -0
- convexity_api_client/models/dashboard_text_widget_text_align_type_0.py +10 -0
- convexity_api_client/models/database_connection.py +423 -0
- convexity_api_client/models/database_type.py +9 -0
- convexity_api_client/models/databricks_connection.py +349 -0
- convexity_api_client/models/datalake_connection_info.py +302 -0
- convexity_api_client/models/datalake_connection_info_backendtype.py +10 -0
- convexity_api_client/models/datalake_connection_response.py +132 -0
- convexity_api_client/models/dataset.py +464 -0
- convexity_api_client/models/dataset_config.py +257 -0
- convexity_api_client/models/dataset_definition.py +372 -0
- convexity_api_client/models/dataset_list_response.py +80 -0
- convexity_api_client/models/dataset_parameter.py +102 -0
- convexity_api_client/models/dataset_parameter_type.py +11 -0
- convexity_api_client/models/dataset_snapshot.py +192 -0
- convexity_api_client/models/dataset_type.py +13 -0
- convexity_api_client/models/date_range_value.py +70 -0
- convexity_api_client/models/delete_connection_v1_connections_connection_id_delete_response_delete_connection_v1_connections_connection_id_delete.py +49 -0
- convexity_api_client/models/delete_file_request.py +69 -0
- convexity_api_client/models/delete_file_response.py +77 -0
- convexity_api_client/models/delete_run_response.py +70 -0
- convexity_api_client/models/delete_session_response.py +70 -0
- convexity_api_client/models/delete_workspace_request.py +61 -0
- convexity_api_client/models/derived_dataset_config.py +91 -0
- convexity_api_client/models/derived_dataset_config_transformations_item.py +47 -0
- convexity_api_client/models/execute_cell_request.py +73 -0
- convexity_api_client/models/field_type.py +15 -0
- convexity_api_client/models/file_connection.py +257 -0
- convexity_api_client/models/file_format.py +11 -0
- convexity_api_client/models/file_info_request.py +69 -0
- convexity_api_client/models/file_info_response.py +75 -0
- convexity_api_client/models/filter_option.py +76 -0
- convexity_api_client/models/forecasting.py +316 -0
- convexity_api_client/models/formulation.py +336 -0
- convexity_api_client/models/get_file_url_request.py +80 -0
- convexity_api_client/models/get_file_url_response.py +85 -0
- convexity_api_client/models/get_or_create_session_request.py +62 -0
- convexity_api_client/models/get_or_create_session_response.py +86 -0
- convexity_api_client/models/http_method.py +9 -0
- convexity_api_client/models/http_validation_error.py +79 -0
- convexity_api_client/models/json_dataset_config.py +170 -0
- convexity_api_client/models/json_dataset_config_sourcetype.py +10 -0
- convexity_api_client/models/kpi_chart_config.py +529 -0
- convexity_api_client/models/kpi_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/kpi_chart_config_font_weight_type_0.py +11 -0
- convexity_api_client/models/kpi_chart_config_text_align_type_0.py +10 -0
- convexity_api_client/models/kpi_chart_config_trend_direction_type_0.py +9 -0
- convexity_api_client/models/kpi_chart_config_value_format_type_0.py +10 -0
- convexity_api_client/models/layout_item.py +147 -0
- convexity_api_client/models/line_chart_config.py +899 -0
- convexity_api_client/models/line_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/line_chart_config_label_position_type_0.py +11 -0
- convexity_api_client/models/line_chart_config_legend_orientation_type_0.py +9 -0
- convexity_api_client/models/line_chart_config_legend_position_type_0.py +11 -0
- convexity_api_client/models/line_chart_config_line_type_type_0.py +12 -0
- convexity_api_client/models/line_chart_config_orientation_type_0.py +9 -0
- convexity_api_client/models/line_chart_config_series_styles_type_0.py +60 -0
- convexity_api_client/models/list_files_request.py +72 -0
- convexity_api_client/models/list_files_response.py +83 -0
- convexity_api_client/models/list_sessions_response.py +76 -0
- convexity_api_client/models/notebook_cell.py +203 -0
- convexity_api_client/models/notebook_cell_error.py +78 -0
- convexity_api_client/models/notebook_cell_metadata_type_0.py +47 -0
- convexity_api_client/models/notebook_cell_output.py +151 -0
- convexity_api_client/models/notebook_cell_output_item.py +196 -0
- convexity_api_client/models/notebook_cell_output_item_data_type_0.py +47 -0
- convexity_api_client/models/notebook_cell_output_item_metadata_type_0.py +47 -0
- convexity_api_client/models/notebook_document.py +107 -0
- convexity_api_client/models/notebook_document_metadata.py +47 -0
- convexity_api_client/models/number_range_value.py +70 -0
- convexity_api_client/models/object_list_response.py +75 -0
- convexity_api_client/models/object_type_def.py +193 -0
- convexity_api_client/models/object_type_def_checksum_algorithm_item.py +12 -0
- convexity_api_client/models/object_type_def_checksumtype.py +9 -0
- convexity_api_client/models/object_type_def_storageclass.py +20 -0
- convexity_api_client/models/organization.py +224 -0
- convexity_api_client/models/organization_list_response.py +84 -0
- convexity_api_client/models/organization_member.py +178 -0
- convexity_api_client/models/organization_member_list_response.py +84 -0
- convexity_api_client/models/organization_member_response.py +159 -0
- convexity_api_client/models/organization_response.py +209 -0
- convexity_api_client/models/organization_role.py +11 -0
- convexity_api_client/models/output_type.py +11 -0
- convexity_api_client/models/owner_type_def.py +70 -0
- convexity_api_client/models/pie_chart_config.py +510 -0
- convexity_api_client/models/pie_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/pie_chart_config_label_position_type_0.py +9 -0
- convexity_api_client/models/pie_chart_config_legend_orientation_type_0.py +9 -0
- convexity_api_client/models/pie_chart_config_legend_position_type_0.py +11 -0
- convexity_api_client/models/pie_chart_config_rose_type_type_0.py +9 -0
- convexity_api_client/models/preview_response.py +75 -0
- convexity_api_client/models/preview_response_data_item.py +47 -0
- convexity_api_client/models/preview_type.py +14 -0
- convexity_api_client/models/profile.py +609 -0
- convexity_api_client/models/project.py +410 -0
- convexity_api_client/models/project_api_key.py +468 -0
- convexity_api_client/models/project_list_response.py +84 -0
- convexity_api_client/models/project_response.py +146 -0
- convexity_api_client/models/public_dashboard_response.py +507 -0
- convexity_api_client/models/public_dashboard_response_filters_type_0_item.py +47 -0
- convexity_api_client/models/read_file_request.py +100 -0
- convexity_api_client/models/read_file_response.py +77 -0
- convexity_api_client/models/refresh_mode.py +10 -0
- convexity_api_client/models/refresh_task.py +221 -0
- convexity_api_client/models/refresh_task_list_response.py +109 -0
- convexity_api_client/models/refresh_task_status.py +11 -0
- convexity_api_client/models/reset_session_response.py +70 -0
- convexity_api_client/models/restart_run_response.py +78 -0
- convexity_api_client/models/restore_status_type_def.py +79 -0
- convexity_api_client/models/run.py +407 -0
- convexity_api_client/models/run_stats_response.py +126 -0
- convexity_api_client/models/s3_connection.py +313 -0
- convexity_api_client/models/s3_object_content.py +185 -0
- convexity_api_client/models/save_file_request.py +97 -0
- convexity_api_client/models/save_file_response.py +77 -0
- convexity_api_client/models/scatter_chart_config.py +838 -0
- convexity_api_client/models/scatter_chart_config_chart_padding_type_1.py +47 -0
- convexity_api_client/models/scatter_chart_config_label_position_type_0.py +11 -0
- convexity_api_client/models/scatter_chart_config_legend_orientation_type_0.py +9 -0
- convexity_api_client/models/scatter_chart_config_legend_position_type_0.py +11 -0
- convexity_api_client/models/scatter_chart_config_orientation_type_0.py +9 -0
- convexity_api_client/models/scatter_chart_config_series_styles_type_0.py +60 -0
- convexity_api_client/models/scatter_chart_config_symbol_type_0.py +11 -0
- convexity_api_client/models/schema_field.py +102 -0
- convexity_api_client/models/schema_response.py +75 -0
- convexity_api_client/models/series_style.py +155 -0
- convexity_api_client/models/series_style_line_style_type_0.py +10 -0
- convexity_api_client/models/session_info.py +94 -0
- convexity_api_client/models/share_token_exchange_request.py +62 -0
- convexity_api_client/models/spreadsheet_preview.py +87 -0
- convexity_api_client/models/sql_dataset.py +103 -0
- convexity_api_client/models/sql_dataset_config.py +155 -0
- convexity_api_client/models/sql_dataset_config_parameters_type_0.py +60 -0
- convexity_api_client/models/sql_dataset_rows_item.py +47 -0
- convexity_api_client/models/sql_query_request.py +73 -0
- convexity_api_client/models/sql_query_response.py +135 -0
- convexity_api_client/models/sql_query_response_rows_item.py +47 -0
- convexity_api_client/models/start_run_response.py +70 -0
- convexity_api_client/models/static_dataset_config.py +80 -0
- convexity_api_client/models/static_dataset_config_data_item.py +47 -0
- convexity_api_client/models/table_info.py +109 -0
- convexity_api_client/models/table_list_response.py +61 -0
- convexity_api_client/models/task_connection.py +173 -0
- convexity_api_client/models/task_dto.py +315 -0
- convexity_api_client/models/task_list_response.py +76 -0
- convexity_api_client/models/task_model.py +452 -0
- convexity_api_client/models/task_model_parameter_schema_type_0.py +47 -0
- convexity_api_client/models/task_scenario.py +15 -0
- convexity_api_client/models/token_balance.py +144 -0
- convexity_api_client/models/token_package.py +272 -0
- convexity_api_client/models/token_purchase.py +279 -0
- convexity_api_client/models/token_response.py +107 -0
- convexity_api_client/models/token_usage.py +228 -0
- convexity_api_client/models/tooltip_config.py +119 -0
- convexity_api_client/models/tooltip_series_config.py +196 -0
- convexity_api_client/models/tooltip_series_config_format_type_0.py +10 -0
- convexity_api_client/models/update_api_connection_request.py +291 -0
- convexity_api_client/models/update_api_connection_request_headers_type_0.py +47 -0
- convexity_api_client/models/update_api_key_request.py +145 -0
- convexity_api_client/models/update_connection_request.py +94 -0
- convexity_api_client/models/update_dashboard_request.py +485 -0
- convexity_api_client/models/update_database_connection_request.py +253 -0
- convexity_api_client/models/update_databricks_connection_request.py +193 -0
- convexity_api_client/models/update_dataset_request.py +295 -0
- convexity_api_client/models/update_file_connection_request.py +133 -0
- convexity_api_client/models/update_file_description_request.py +77 -0
- convexity_api_client/models/update_file_description_response.py +85 -0
- convexity_api_client/models/update_organization_member_request.py +64 -0
- convexity_api_client/models/update_organization_request.py +134 -0
- convexity_api_client/models/update_profile_request.py +114 -0
- convexity_api_client/models/update_project_request.py +114 -0
- convexity_api_client/models/update_s3_connection_request.py +213 -0
- convexity_api_client/models/update_share_request.py +197 -0
- convexity_api_client/models/update_task_request.py +359 -0
- convexity_api_client/models/update_task_request_parameter_schema_type_0.py +47 -0
- convexity_api_client/models/update_webhook_connection_request.py +153 -0
- convexity_api_client/models/validation_error.py +90 -0
- convexity_api_client/models/verify_result.py +69 -0
- convexity_api_client/models/visual_encoding_config.py +237 -0
- convexity_api_client/models/visual_encoding_config_color_map_type_0.py +47 -0
- convexity_api_client/models/visual_encoding_config_colorby.py +10 -0
- convexity_api_client/models/visual_encoding_config_style_map_type_0.py +60 -0
- convexity_api_client/models/visual_encoding_config_style_map_type_0_additional_property.py +10 -0
- convexity_api_client/models/visual_encoding_config_style_palette_type_0_item.py +10 -0
- convexity_api_client/models/visual_encoding_config_styleby.py +10 -0
- convexity_api_client/models/webhook_connection.py +288 -0
- convexity_api_client/models/worker_task_response.py +201 -0
- convexity_api_client/models/worker_task_status.py +12 -0
- convexity_api_client/models/worker_task_type.py +11 -0
- convexity_api_client/models/workspace_exists_request.py +61 -0
- convexity_api_client/models/workspace_file.py +102 -0
- convexity_api_client/py.typed +1 -0
- convexity_api_client/types.py +54 -0
- convexity_api_client-0.4.0.dev146.dist-info/METADATA +133 -0
- convexity_api_client-0.4.0.dev146.dist-info/RECORD +460 -0
- convexity_api_client-0.4.0.dev146.dist-info/WHEEL +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
12
|
+
|
|
13
|
+
_kwargs: dict[str, Any] = {
|
|
14
|
+
"method": "get",
|
|
15
|
+
"url": "/openapi-schema",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return _kwargs
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Any | None:
|
|
22
|
+
if response.status_code == 200:
|
|
23
|
+
return None
|
|
24
|
+
|
|
25
|
+
if client.raise_on_unexpected_status:
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
else:
|
|
28
|
+
return None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any]:
|
|
32
|
+
return Response(
|
|
33
|
+
status_code=HTTPStatus(response.status_code),
|
|
34
|
+
content=response.content,
|
|
35
|
+
headers=response.headers,
|
|
36
|
+
parsed=_parse_response(client=client, response=response),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def sync_detailed(
|
|
41
|
+
*,
|
|
42
|
+
client: AuthenticatedClient | Client,
|
|
43
|
+
) -> Response[Any]:
|
|
44
|
+
"""Get Openapi Schema
|
|
45
|
+
|
|
46
|
+
Generate and return the OpenAPI schema for all app routes
|
|
47
|
+
|
|
48
|
+
Raises:
|
|
49
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
50
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
Response[Any]
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
kwargs = _get_kwargs()
|
|
57
|
+
|
|
58
|
+
response = client.get_httpx_client().request(
|
|
59
|
+
**kwargs,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return _build_response(client=client, response=response)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def asyncio_detailed(
|
|
66
|
+
*,
|
|
67
|
+
client: AuthenticatedClient | Client,
|
|
68
|
+
) -> Response[Any]:
|
|
69
|
+
"""Get Openapi Schema
|
|
70
|
+
|
|
71
|
+
Generate and return the OpenAPI schema for all app routes
|
|
72
|
+
|
|
73
|
+
Raises:
|
|
74
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
75
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
Response[Any]
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
kwargs = _get_kwargs()
|
|
82
|
+
|
|
83
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
12
|
+
|
|
13
|
+
_kwargs: dict[str, Any] = {
|
|
14
|
+
"method": "get",
|
|
15
|
+
"url": "/health",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return _kwargs
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Any | None:
|
|
22
|
+
if response.status_code == 200:
|
|
23
|
+
return None
|
|
24
|
+
|
|
25
|
+
if client.raise_on_unexpected_status:
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
else:
|
|
28
|
+
return None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any]:
|
|
32
|
+
return Response(
|
|
33
|
+
status_code=HTTPStatus(response.status_code),
|
|
34
|
+
content=response.content,
|
|
35
|
+
headers=response.headers,
|
|
36
|
+
parsed=_parse_response(client=client, response=response),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def sync_detailed(
|
|
41
|
+
*,
|
|
42
|
+
client: AuthenticatedClient | Client,
|
|
43
|
+
) -> Response[Any]:
|
|
44
|
+
"""Health Check
|
|
45
|
+
|
|
46
|
+
Health check endpoint for monitoring
|
|
47
|
+
|
|
48
|
+
Raises:
|
|
49
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
50
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
Response[Any]
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
kwargs = _get_kwargs()
|
|
57
|
+
|
|
58
|
+
response = client.get_httpx_client().request(
|
|
59
|
+
**kwargs,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return _build_response(client=client, response=response)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
async def asyncio_detailed(
|
|
66
|
+
*,
|
|
67
|
+
client: AuthenticatedClient | Client,
|
|
68
|
+
) -> Response[Any]:
|
|
69
|
+
"""Health Check
|
|
70
|
+
|
|
71
|
+
Health check endpoint for monitoring
|
|
72
|
+
|
|
73
|
+
Raises:
|
|
74
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
75
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
Response[Any]
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
kwargs = _get_kwargs()
|
|
82
|
+
|
|
83
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.delete_session_response import DeleteSessionResponse
|
|
10
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
session_id: str,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
|
|
18
|
+
_kwargs: dict[str, Any] = {
|
|
19
|
+
"method": "delete",
|
|
20
|
+
"url": "/api/notebook/session/{session_id}".format(
|
|
21
|
+
session_id=quote(str(session_id), safe=""),
|
|
22
|
+
),
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return _kwargs
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _parse_response(
|
|
29
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
30
|
+
) -> DeleteSessionResponse | HTTPValidationError | None:
|
|
31
|
+
if response.status_code == 200:
|
|
32
|
+
response_200 = DeleteSessionResponse.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_200
|
|
35
|
+
|
|
36
|
+
if response.status_code == 422:
|
|
37
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_422
|
|
40
|
+
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(
|
|
48
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
49
|
+
) -> Response[DeleteSessionResponse | HTTPValidationError]:
|
|
50
|
+
return Response(
|
|
51
|
+
status_code=HTTPStatus(response.status_code),
|
|
52
|
+
content=response.content,
|
|
53
|
+
headers=response.headers,
|
|
54
|
+
parsed=_parse_response(client=client, response=response),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def sync_detailed(
|
|
59
|
+
session_id: str,
|
|
60
|
+
*,
|
|
61
|
+
client: AuthenticatedClient | Client,
|
|
62
|
+
) -> Response[DeleteSessionResponse | HTTPValidationError]:
|
|
63
|
+
"""Delete Session
|
|
64
|
+
|
|
65
|
+
Delete a notebook session.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
session_id (str):
|
|
69
|
+
|
|
70
|
+
Raises:
|
|
71
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
72
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
Response[DeleteSessionResponse | HTTPValidationError]
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
kwargs = _get_kwargs(
|
|
79
|
+
session_id=session_id,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = client.get_httpx_client().request(
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync(
|
|
90
|
+
session_id: str,
|
|
91
|
+
*,
|
|
92
|
+
client: AuthenticatedClient | Client,
|
|
93
|
+
) -> DeleteSessionResponse | HTTPValidationError | None:
|
|
94
|
+
"""Delete Session
|
|
95
|
+
|
|
96
|
+
Delete a notebook session.
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
session_id (str):
|
|
100
|
+
|
|
101
|
+
Raises:
|
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
DeleteSessionResponse | HTTPValidationError
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
return sync_detailed(
|
|
110
|
+
session_id=session_id,
|
|
111
|
+
client=client,
|
|
112
|
+
).parsed
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
async def asyncio_detailed(
|
|
116
|
+
session_id: str,
|
|
117
|
+
*,
|
|
118
|
+
client: AuthenticatedClient | Client,
|
|
119
|
+
) -> Response[DeleteSessionResponse | HTTPValidationError]:
|
|
120
|
+
"""Delete Session
|
|
121
|
+
|
|
122
|
+
Delete a notebook session.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
session_id (str):
|
|
126
|
+
|
|
127
|
+
Raises:
|
|
128
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
129
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
130
|
+
|
|
131
|
+
Returns:
|
|
132
|
+
Response[DeleteSessionResponse | HTTPValidationError]
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
kwargs = _get_kwargs(
|
|
136
|
+
session_id=session_id,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
140
|
+
|
|
141
|
+
return _build_response(client=client, response=response)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
async def asyncio(
|
|
145
|
+
session_id: str,
|
|
146
|
+
*,
|
|
147
|
+
client: AuthenticatedClient | Client,
|
|
148
|
+
) -> DeleteSessionResponse | HTTPValidationError | None:
|
|
149
|
+
"""Delete Session
|
|
150
|
+
|
|
151
|
+
Delete a notebook session.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
session_id (str):
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
158
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
DeleteSessionResponse | HTTPValidationError
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
await asyncio_detailed(
|
|
166
|
+
session_id=session_id,
|
|
167
|
+
client=client,
|
|
168
|
+
)
|
|
169
|
+
).parsed
|
convexity_api_client/api/notebook/execute_cell_api_notebook_session_session_id_execute_post.py
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.execute_cell_request import ExecuteCellRequest
|
|
10
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
+
from ...models.notebook_cell_output import NotebookCellOutput
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
session_id: str,
|
|
17
|
+
*,
|
|
18
|
+
body: ExecuteCellRequest,
|
|
19
|
+
) -> dict[str, Any]:
|
|
20
|
+
headers: dict[str, Any] = {}
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/api/notebook/session/{session_id}/execute".format(
|
|
25
|
+
session_id=quote(str(session_id), safe=""),
|
|
26
|
+
),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_kwargs["json"] = body.to_dict()
|
|
30
|
+
|
|
31
|
+
headers["Content-Type"] = "application/json"
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
39
|
+
) -> HTTPValidationError | NotebookCellOutput | None:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = NotebookCellOutput.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
|
|
45
|
+
if response.status_code == 422:
|
|
46
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_422
|
|
49
|
+
|
|
50
|
+
if client.raise_on_unexpected_status:
|
|
51
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
52
|
+
else:
|
|
53
|
+
return None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _build_response(
|
|
57
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
58
|
+
) -> Response[HTTPValidationError | NotebookCellOutput]:
|
|
59
|
+
return Response(
|
|
60
|
+
status_code=HTTPStatus(response.status_code),
|
|
61
|
+
content=response.content,
|
|
62
|
+
headers=response.headers,
|
|
63
|
+
parsed=_parse_response(client=client, response=response),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def sync_detailed(
|
|
68
|
+
session_id: str,
|
|
69
|
+
*,
|
|
70
|
+
client: AuthenticatedClient | Client,
|
|
71
|
+
body: ExecuteCellRequest,
|
|
72
|
+
) -> Response[HTTPValidationError | NotebookCellOutput]:
|
|
73
|
+
"""Execute Cell
|
|
74
|
+
|
|
75
|
+
Execute code in a notebook session.
|
|
76
|
+
|
|
77
|
+
The code runs in the session's namespace, so variables from previous
|
|
78
|
+
executions are available.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
session_id (str):
|
|
82
|
+
body (ExecuteCellRequest): Request to execute code in a session.
|
|
83
|
+
|
|
84
|
+
Raises:
|
|
85
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
86
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
Response[HTTPValidationError | NotebookCellOutput]
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
kwargs = _get_kwargs(
|
|
93
|
+
session_id=session_id,
|
|
94
|
+
body=body,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
response = client.get_httpx_client().request(
|
|
98
|
+
**kwargs,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
return _build_response(client=client, response=response)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def sync(
|
|
105
|
+
session_id: str,
|
|
106
|
+
*,
|
|
107
|
+
client: AuthenticatedClient | Client,
|
|
108
|
+
body: ExecuteCellRequest,
|
|
109
|
+
) -> HTTPValidationError | NotebookCellOutput | None:
|
|
110
|
+
"""Execute Cell
|
|
111
|
+
|
|
112
|
+
Execute code in a notebook session.
|
|
113
|
+
|
|
114
|
+
The code runs in the session's namespace, so variables from previous
|
|
115
|
+
executions are available.
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
session_id (str):
|
|
119
|
+
body (ExecuteCellRequest): Request to execute code in a session.
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
HTTPValidationError | NotebookCellOutput
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
return sync_detailed(
|
|
130
|
+
session_id=session_id,
|
|
131
|
+
client=client,
|
|
132
|
+
body=body,
|
|
133
|
+
).parsed
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio_detailed(
|
|
137
|
+
session_id: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient | Client,
|
|
140
|
+
body: ExecuteCellRequest,
|
|
141
|
+
) -> Response[HTTPValidationError | NotebookCellOutput]:
|
|
142
|
+
"""Execute Cell
|
|
143
|
+
|
|
144
|
+
Execute code in a notebook session.
|
|
145
|
+
|
|
146
|
+
The code runs in the session's namespace, so variables from previous
|
|
147
|
+
executions are available.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
session_id (str):
|
|
151
|
+
body (ExecuteCellRequest): Request to execute code in a session.
|
|
152
|
+
|
|
153
|
+
Raises:
|
|
154
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
155
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
156
|
+
|
|
157
|
+
Returns:
|
|
158
|
+
Response[HTTPValidationError | NotebookCellOutput]
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
kwargs = _get_kwargs(
|
|
162
|
+
session_id=session_id,
|
|
163
|
+
body=body,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
167
|
+
|
|
168
|
+
return _build_response(client=client, response=response)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
async def asyncio(
|
|
172
|
+
session_id: str,
|
|
173
|
+
*,
|
|
174
|
+
client: AuthenticatedClient | Client,
|
|
175
|
+
body: ExecuteCellRequest,
|
|
176
|
+
) -> HTTPValidationError | NotebookCellOutput | None:
|
|
177
|
+
"""Execute Cell
|
|
178
|
+
|
|
179
|
+
Execute code in a notebook session.
|
|
180
|
+
|
|
181
|
+
The code runs in the session's namespace, so variables from previous
|
|
182
|
+
executions are available.
|
|
183
|
+
|
|
184
|
+
Args:
|
|
185
|
+
session_id (str):
|
|
186
|
+
body (ExecuteCellRequest): Request to execute code in a session.
|
|
187
|
+
|
|
188
|
+
Raises:
|
|
189
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
190
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
191
|
+
|
|
192
|
+
Returns:
|
|
193
|
+
HTTPValidationError | NotebookCellOutput
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
return (
|
|
197
|
+
await asyncio_detailed(
|
|
198
|
+
session_id=session_id,
|
|
199
|
+
client=client,
|
|
200
|
+
body=body,
|
|
201
|
+
)
|
|
202
|
+
).parsed
|