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.
Files changed (460) hide show
  1. convexity_api_client/__init__.py +8 -0
  2. convexity_api_client/api/__init__.py +1 -0
  3. convexity_api_client/api/default/__init__.py +1 -0
  4. convexity_api_client/api/default/get_openapi_schema_openapi_schema_get.py +85 -0
  5. convexity_api_client/api/default/health_check_health_get.py +85 -0
  6. convexity_api_client/api/notebook/__init__.py +1 -0
  7. convexity_api_client/api/notebook/delete_session_api_notebook_session_session_id_delete.py +169 -0
  8. convexity_api_client/api/notebook/execute_cell_api_notebook_session_session_id_execute_post.py +202 -0
  9. convexity_api_client/api/notebook/get_or_create_session_api_notebook_session_get_or_create_post.py +174 -0
  10. convexity_api_client/api/notebook/list_sessions_api_notebook_session_list_get.py +134 -0
  11. convexity_api_client/api/notebook/reset_session_api_notebook_session_session_id_reset_post.py +177 -0
  12. convexity_api_client/api/profile/__init__.py +1 -0
  13. convexity_api_client/api/profile/get_or_create_profile_profile_get_or_create_user_id_get.py +171 -0
  14. convexity_api_client/api/profile/get_profile_profile_get_user_id_get.py +171 -0
  15. convexity_api_client/api/profile/update_profile_profile_update_user_id_post.py +192 -0
  16. convexity_api_client/api/v1/__init__.py +1 -0
  17. convexity_api_client/api/v1/add_member_v1_organizations_organization_id_members_post.py +190 -0
  18. convexity_api_client/api/v1/batch_delete_runs_v1_run_batch_delete.py +174 -0
  19. convexity_api_client/api/v1/cancel_run_v1_run_cancel_run_id_post.py +169 -0
  20. convexity_api_client/api/v1/check_workspace_exists_v1_workspace_workspaces_exists_post.py +172 -0
  21. convexity_api_client/api/v1/cleanup_stale_runs_v1_run_cleanup_post.py +132 -0
  22. convexity_api_client/api/v1/create_and_start_run_v1_run_create_and_start_post.py +174 -0
  23. convexity_api_client/api/v1/create_api_connection_v1_connections_api_post.py +194 -0
  24. convexity_api_client/api/v1/create_api_key_v1_api_keys_post.py +214 -0
  25. convexity_api_client/api/v1/create_chat_session_v1_chat_sessions_post.py +194 -0
  26. convexity_api_client/api/v1/create_checkout_session_v1_token_purchase_checkout_post.py +85 -0
  27. convexity_api_client/api/v1/create_dashboard_v1_dashboards_post.py +194 -0
  28. convexity_api_client/api/v1/create_database_connection_v1_connections_database_post.py +194 -0
  29. convexity_api_client/api/v1/create_databricks_connection_v1_connections_databricks_post.py +194 -0
  30. convexity_api_client/api/v1/create_dataset_v1_datasets_post.py +194 -0
  31. convexity_api_client/api/v1/create_file_connection_v1_connections_file_post.py +194 -0
  32. convexity_api_client/api/v1/create_organization_v1_organizations_post.py +174 -0
  33. convexity_api_client/api/v1/create_project_v1_projects_post.py +174 -0
  34. convexity_api_client/api/v1/create_run_v1_run_create_post.py +174 -0
  35. convexity_api_client/api/v1/create_s3_connection_v1_connections_s3_post.py +194 -0
  36. convexity_api_client/api/v1/create_share_v1_dashboards_dashboard_id_share_post.py +198 -0
  37. convexity_api_client/api/v1/create_task_v1_tasks_post.py +194 -0
  38. convexity_api_client/api/v1/create_webhook_connection_v1_connections_webhook_post.py +194 -0
  39. convexity_api_client/api/v1/create_workspace_v1_workspace_workspaces_create_post.py +172 -0
  40. convexity_api_client/api/v1/delete_chat_session_v1_chat_sessions_session_id_delete.py +188 -0
  41. convexity_api_client/api/v1/delete_connection_v1_connections_connection_id_delete.py +215 -0
  42. convexity_api_client/api/v1/delete_dashboard_v1_dashboards_dashboard_id_delete.py +167 -0
  43. convexity_api_client/api/v1/delete_dataset_v1_datasets_dataset_id_delete.py +167 -0
  44. convexity_api_client/api/v1/delete_organization_v1_organizations_organization_id_delete.py +167 -0
  45. convexity_api_client/api/v1/delete_project_v1_projects_project_id_delete.py +167 -0
  46. convexity_api_client/api/v1/delete_run_v1_run_delete_run_id_delete.py +169 -0
  47. convexity_api_client/api/v1/delete_task_v1_tasks_task_id_delete.py +167 -0
  48. convexity_api_client/api/v1/delete_workspace_file_v1_workspace_workspaces_files_delete_delete.py +174 -0
  49. convexity_api_client/api/v1/delete_workspace_v1_workspace_workspaces_delete_delete.py +172 -0
  50. convexity_api_client/api/v1/exchange_share_token_v1_public_auth_token_post.py +289 -0
  51. convexity_api_client/api/v1/get_api_key_usage_v1_api_keys_key_id_usage_get.py +190 -0
  52. convexity_api_client/api/v1/get_api_key_v1_api_keys_key_id_get.py +190 -0
  53. convexity_api_client/api/v1/get_chat_session_v1_chat_sessions_session_id_get.py +190 -0
  54. convexity_api_client/api/v1/get_connection_v1_connections_connection_id_get.py +303 -0
  55. convexity_api_client/api/v1/get_connections_openapi_schema_v1_connections_openapi_get.py +218 -0
  56. convexity_api_client/api/v1/get_daily_usage_v1_token_usage_daily_get.py +172 -0
  57. convexity_api_client/api/v1/get_dashboard_v1_dashboards_dashboard_id_get.py +169 -0
  58. convexity_api_client/api/v1/get_databricks_table_schema_v1_connections_databricks_connection_id_tables_table_name_schema_get.py +183 -0
  59. convexity_api_client/api/v1/get_datalake_task_v1_datalake_tasks_task_id_get.py +198 -0
  60. convexity_api_client/api/v1/get_dataset_v1_datasets_dataset_id_get.py +169 -0
  61. convexity_api_client/api/v1/get_or_create_datalake_connection_info_v1_datalake_connection_get.py +238 -0
  62. convexity_api_client/api/v1/get_organization_by_slug_v1_organizations_slug_slug_get.py +169 -0
  63. convexity_api_client/api/v1/get_organization_v1_organizations_organization_id_get.py +169 -0
  64. convexity_api_client/api/v1/get_project_by_slug_v1_organizations_organization_id_projects_slug_slug_get.py +183 -0
  65. convexity_api_client/api/v1/get_project_v1_projects_project_id_get.py +169 -0
  66. convexity_api_client/api/v1/get_public_dashboard_v1_public_dashboards_token_get.py +243 -0
  67. convexity_api_client/api/v1/get_purchase_history_v1_token_purchase_history_get.py +85 -0
  68. convexity_api_client/api/v1/get_refresh_task_status_v1_datasets_dataset_id_refresh_task_id_get.py +183 -0
  69. convexity_api_client/api/v1/get_run_stats_v1_run_stats_get.py +132 -0
  70. convexity_api_client/api/v1/get_run_status_v1_run_status_run_id_get.py +169 -0
  71. convexity_api_client/api/v1/get_s3_object_content_v1_connections_s3_connection_id_objects_content_get.py +190 -0
  72. convexity_api_client/api/v1/get_share_v1_dashboards_dashboard_id_share_get.py +173 -0
  73. convexity_api_client/api/v1/get_table_schema_v1_connections_connection_id_tables_table_name_schema_get.py +183 -0
  74. convexity_api_client/api/v1/get_task_v1_tasks_task_id_get.py +169 -0
  75. convexity_api_client/api/v1/get_token_balance_v1_token_balance_get.py +85 -0
  76. convexity_api_client/api/v1/get_token_packages_v1_token_packages_get.py +85 -0
  77. convexity_api_client/api/v1/get_usage_summary_v1_token_usage_summary_get.py +85 -0
  78. convexity_api_client/api/v1/get_workspace_file_info_v1_workspace_workspaces_files_info_post.py +174 -0
  79. convexity_api_client/api/v1/get_workspace_file_url_v1_workspace_workspaces_files_url_post.py +174 -0
  80. convexity_api_client/api/v1/health_check_v1_health_get.py +85 -0
  81. convexity_api_client/api/v1/infer_api_schema_v1_connections_api_connection_id_schema_get.py +169 -0
  82. convexity_api_client/api/v1/infer_file_schema_v1_connections_file_connection_id_schema_get.py +169 -0
  83. convexity_api_client/api/v1/list_api_keys_v1_api_keys_get.py +189 -0
  84. convexity_api_client/api/v1/list_chat_sessions_v1_chat_sessions_get.py +189 -0
  85. convexity_api_client/api/v1/list_connections_v1_connections_get.py +174 -0
  86. convexity_api_client/api/v1/list_dashboards_v1_dashboards_get.py +174 -0
  87. convexity_api_client/api/v1/list_databricks_tables_v1_connections_databricks_connection_id_tables_get.py +169 -0
  88. convexity_api_client/api/v1/list_datalake_tasks_v1_datalake_tasks_get.py +268 -0
  89. convexity_api_client/api/v1/list_datasets_v1_datasets_get.py +174 -0
  90. convexity_api_client/api/v1/list_members_v1_organizations_organization_id_members_get.py +169 -0
  91. convexity_api_client/api/v1/list_objects_v1_connections_connection_id_objects_get.py +210 -0
  92. convexity_api_client/api/v1/list_organization_projects_v1_organizations_organization_id_projects_get.py +169 -0
  93. convexity_api_client/api/v1/list_organizations_v1_organizations_get.py +136 -0
  94. convexity_api_client/api/v1/list_refresh_tasks_v1_datasets_dataset_id_refresh_history_get.py +213 -0
  95. convexity_api_client/api/v1/list_tables_v1_connections_connection_id_tables_get.py +169 -0
  96. convexity_api_client/api/v1/list_tasks_v1_tasks_get.py +197 -0
  97. convexity_api_client/api/v1/list_user_projects_v1_projects_get.py +132 -0
  98. convexity_api_client/api/v1/list_workspace_files_v1_workspace_workspaces_files_list_post.py +174 -0
  99. convexity_api_client/api/v1/preview_api_data_v1_connections_api_connection_id_preview_get.py +190 -0
  100. convexity_api_client/api/v1/preview_database_data_v1_connections_database_connection_id_preview_get.py +205 -0
  101. convexity_api_client/api/v1/preview_databricks_data_v1_connections_databricks_connection_id_preview_get.py +205 -0
  102. convexity_api_client/api/v1/preview_file_data_v1_connections_file_connection_id_preview_get.py +190 -0
  103. convexity_api_client/api/v1/proxy_claude_messages_v1_claude_messages_post.py +89 -0
  104. convexity_api_client/api/v1/read_workspace_file_v1_workspace_workspaces_files_read_post.py +174 -0
  105. convexity_api_client/api/v1/refresh_dataset_async_v1_datasets_dataset_id_refresh_async_post.py +181 -0
  106. convexity_api_client/api/v1/regenerate_share_token_v1_dashboards_dashboard_id_share_regenerate_post.py +177 -0
  107. convexity_api_client/api/v1/remove_member_v1_organizations_organization_id_members_member_user_id_delete.py +181 -0
  108. convexity_api_client/api/v1/restart_run_v1_run_restart_run_id_post.py +169 -0
  109. convexity_api_client/api/v1/revoke_api_key_v1_api_keys_key_id_delete.py +188 -0
  110. convexity_api_client/api/v1/revoke_share_v1_dashboards_dashboard_id_share_delete.py +171 -0
  111. convexity_api_client/api/v1/run_databricks_sql_query_v1_connections_databricks_connection_id_query_post.py +194 -0
  112. convexity_api_client/api/v1/run_sql_query_v1_connections_database_connection_id_query_post.py +194 -0
  113. convexity_api_client/api/v1/save_workspace_file_v1_workspace_workspaces_files_save_post.py +174 -0
  114. convexity_api_client/api/v1/start_run_v1_run_start_run_id_post.py +169 -0
  115. convexity_api_client/api/v1/stripe_webhook_v1_token_webhook_stripe_post.py +85 -0
  116. convexity_api_client/api/v1/test_database_connection_v1_connections_database_test_post.py +194 -0
  117. convexity_api_client/api/v1/test_databricks_connection_v1_connections_databricks_test_post.py +194 -0
  118. convexity_api_client/api/v1/transfer_ownership_v1_organizations_organization_id_transfer_ownership_new_owner_id_post.py +181 -0
  119. convexity_api_client/api/v1/update_api_connection_v1_connections_api_connection_id_patch.py +190 -0
  120. convexity_api_client/api/v1/update_api_key_v1_api_keys_key_id_patch.py +210 -0
  121. convexity_api_client/api/v1/update_chat_session_v1_chat_sessions_session_id_patch.py +210 -0
  122. convexity_api_client/api/v1/update_connection_v1_connections_connection_id_patch.py +339 -0
  123. convexity_api_client/api/v1/update_dashboard_v1_dashboards_dashboard_id_patch.py +190 -0
  124. convexity_api_client/api/v1/update_database_connection_v1_connections_database_connection_id_patch.py +190 -0
  125. convexity_api_client/api/v1/update_databricks_connection_v1_connections_databricks_connection_id_patch.py +190 -0
  126. convexity_api_client/api/v1/update_dataset_v1_datasets_dataset_id_patch.py +190 -0
  127. convexity_api_client/api/v1/update_file_connection_v1_connections_file_connection_id_patch.py +190 -0
  128. convexity_api_client/api/v1/update_file_description_v1_workspace_workspaces_files_description_patch.py +174 -0
  129. convexity_api_client/api/v1/update_member_role_v1_organizations_organization_id_members_member_user_id_patch.py +204 -0
  130. convexity_api_client/api/v1/update_organization_v1_organizations_organization_id_patch.py +190 -0
  131. convexity_api_client/api/v1/update_project_v1_projects_project_id_patch.py +190 -0
  132. convexity_api_client/api/v1/update_s3_connection_v1_connections_s3_connection_id_patch.py +190 -0
  133. convexity_api_client/api/v1/update_share_v1_dashboards_dashboard_id_share_put.py +194 -0
  134. convexity_api_client/api/v1/update_task_v1_tasks_task_id_patch.py +190 -0
  135. convexity_api_client/api/v1/update_webhook_connection_v1_connections_webhook_connection_id_patch.py +190 -0
  136. convexity_api_client/api/v1/vacuum_datalake_v1_datalake_vacuum_post.py +221 -0
  137. convexity_api_client/api/v1/verify_api_connection_v1_connections_api_connection_id_verify_post.py +169 -0
  138. convexity_api_client/api/v1/verify_database_connection_v1_connections_database_connection_id_verify_post.py +169 -0
  139. convexity_api_client/api/v1/verify_databricks_connection_v1_connections_databricks_connection_id_verify_post.py +169 -0
  140. convexity_api_client/api/v1/verify_file_connection_v1_connections_file_connection_id_verify_post.py +169 -0
  141. convexity_api_client/api/v1/verify_s3_connection_v1_connections_s3_connection_id_verify_post.py +169 -0
  142. convexity_api_client/api/v1/verify_webhook_connection_v1_connections_webhook_connection_id_verify_post.py +169 -0
  143. convexity_api_client/client.py +268 -0
  144. convexity_api_client/errors.py +16 -0
  145. convexity_api_client/models/__init__.py +629 -0
  146. convexity_api_client/models/add_organization_member_request.py +81 -0
  147. convexity_api_client/models/api_connection.py +420 -0
  148. convexity_api_client/models/api_connection_headers_type_0.py +47 -0
  149. convexity_api_client/models/api_dataset_config.py +205 -0
  150. convexity_api_client/models/api_dataset_config_body_type_0.py +47 -0
  151. convexity_api_client/models/api_dataset_config_headers_type_0.py +47 -0
  152. convexity_api_client/models/api_dataset_config_method.py +9 -0
  153. convexity_api_client/models/api_dataset_config_parameters_type_0.py +60 -0
  154. convexity_api_client/models/api_key_list_response.py +84 -0
  155. convexity_api_client/models/api_key_permission.py +10 -0
  156. convexity_api_client/models/api_key_response.py +256 -0
  157. convexity_api_client/models/api_key_status.py +10 -0
  158. convexity_api_client/models/api_key_usage_log.py +204 -0
  159. convexity_api_client/models/api_key_usage_stats.py +127 -0
  160. convexity_api_client/models/api_key_usage_stats_top_endpoints_item.py +47 -0
  161. convexity_api_client/models/area_chart_config.py +836 -0
  162. convexity_api_client/models/area_chart_config_chart_padding_type_1.py +47 -0
  163. convexity_api_client/models/area_chart_config_label_position_type_0.py +11 -0
  164. convexity_api_client/models/area_chart_config_legend_orientation_type_0.py +9 -0
  165. convexity_api_client/models/area_chart_config_legend_position_type_0.py +11 -0
  166. convexity_api_client/models/area_chart_config_orientation_type_0.py +9 -0
  167. convexity_api_client/models/area_chart_config_series_styles_type_0.py +60 -0
  168. convexity_api_client/models/auth_type.py +11 -0
  169. convexity_api_client/models/axis_label_config.py +186 -0
  170. convexity_api_client/models/axis_label_config_format_type_0.py +10 -0
  171. convexity_api_client/models/bar_chart_config.py +856 -0
  172. convexity_api_client/models/bar_chart_config_chart_padding_type_1.py +47 -0
  173. convexity_api_client/models/bar_chart_config_label_position_type_0.py +11 -0
  174. convexity_api_client/models/bar_chart_config_legend_orientation_type_0.py +9 -0
  175. convexity_api_client/models/bar_chart_config_legend_position_type_0.py +11 -0
  176. convexity_api_client/models/bar_chart_config_orientation_type_0.py +9 -0
  177. convexity_api_client/models/bar_chart_config_series_styles_type_0.py +60 -0
  178. convexity_api_client/models/batch_delete_runs_request.py +62 -0
  179. convexity_api_client/models/batch_delete_runs_response.py +94 -0
  180. convexity_api_client/models/cancel_run_response.py +70 -0
  181. convexity_api_client/models/cell_execution_status.py +11 -0
  182. convexity_api_client/models/cell_type.py +9 -0
  183. convexity_api_client/models/chart_config.py +417 -0
  184. convexity_api_client/models/chart_field.py +239 -0
  185. convexity_api_client/models/chart_field_line_style_type_0.py +10 -0
  186. convexity_api_client/models/chart_field_line_type_type_0.py +12 -0
  187. convexity_api_client/models/chart_field_transform_type_0.py +18 -0
  188. convexity_api_client/models/chart_filter.py +350 -0
  189. convexity_api_client/models/chart_filter_aggregation_function_type_0.py +12 -0
  190. convexity_api_client/models/chart_filter_applies_to_type_0.py +9 -0
  191. convexity_api_client/models/chart_filter_config.py +136 -0
  192. convexity_api_client/models/chart_filter_config_match_mode_type_0.py +11 -0
  193. convexity_api_client/models/chart_filter_config_operator_type_0.py +12 -0
  194. convexity_api_client/models/chart_filter_filtertype.py +14 -0
  195. convexity_api_client/models/chart_filter_logic_operator_type_0.py +9 -0
  196. convexity_api_client/models/chart_filter_value_type_5.py +47 -0
  197. convexity_api_client/models/chat_session.py +164 -0
  198. convexity_api_client/models/chat_session_create.py +122 -0
  199. convexity_api_client/models/chat_session_create_chat_state_type_0.py +47 -0
  200. convexity_api_client/models/chat_session_list_response.py +76 -0
  201. convexity_api_client/models/chat_session_response.py +132 -0
  202. convexity_api_client/models/chat_session_response_chatstate.py +47 -0
  203. convexity_api_client/models/chat_session_summary.py +110 -0
  204. convexity_api_client/models/chat_session_update.py +112 -0
  205. convexity_api_client/models/chat_session_update_chat_state_type_0.py +47 -0
  206. convexity_api_client/models/cleanup_runs_response.py +78 -0
  207. convexity_api_client/models/column.py +184 -0
  208. convexity_api_client/models/column_aggregation_type_0.py +12 -0
  209. convexity_api_client/models/column_role.py +9 -0
  210. convexity_api_client/models/column_semantic_type_type_0.py +10 -0
  211. convexity_api_client/models/column_type.py +12 -0
  212. convexity_api_client/models/connection_dto.py +322 -0
  213. convexity_api_client/models/connection_list_response.py +164 -0
  214. convexity_api_client/models/connection_status.py +11 -0
  215. convexity_api_client/models/connection_type.py +13 -0
  216. convexity_api_client/models/create_api_connection_request.py +266 -0
  217. convexity_api_client/models/create_api_connection_request_headers_type_0.py +47 -0
  218. convexity_api_client/models/create_api_key_request.py +184 -0
  219. convexity_api_client/models/create_api_key_response.py +137 -0
  220. convexity_api_client/models/create_dashboard_request.py +463 -0
  221. convexity_api_client/models/create_database_connection_request.py +239 -0
  222. convexity_api_client/models/create_databricks_connection_request.py +166 -0
  223. convexity_api_client/models/create_dataset_request.py +264 -0
  224. convexity_api_client/models/create_file_connection_request.py +118 -0
  225. convexity_api_client/models/create_organization_request.py +112 -0
  226. convexity_api_client/models/create_project_request.py +100 -0
  227. convexity_api_client/models/create_run_request.py +208 -0
  228. convexity_api_client/models/create_run_request_parameter_input_type_0.py +47 -0
  229. convexity_api_client/models/create_run_request_parameter_type_0.py +47 -0
  230. convexity_api_client/models/create_run_response.py +92 -0
  231. convexity_api_client/models/create_s3_connection_request.py +175 -0
  232. convexity_api_client/models/create_share_request.py +135 -0
  233. convexity_api_client/models/create_task_request.py +101 -0
  234. convexity_api_client/models/create_webhook_connection_request.py +150 -0
  235. convexity_api_client/models/create_workspace_request.py +61 -0
  236. convexity_api_client/models/csv_dataset_config.py +236 -0
  237. convexity_api_client/models/csv_dataset_config_sourcetype.py +10 -0
  238. convexity_api_client/models/dashboard.py +340 -0
  239. convexity_api_client/models/dashboard_chart_widget.py +193 -0
  240. convexity_api_client/models/dashboard_dataset.py +169 -0
  241. convexity_api_client/models/dashboard_date_filter_widget.py +272 -0
  242. convexity_api_client/models/dashboard_date_range_filter_widget.py +290 -0
  243. convexity_api_client/models/dashboard_definition.py +603 -0
  244. convexity_api_client/models/dashboard_definition_filter_values_type_0.py +47 -0
  245. convexity_api_client/models/dashboard_definition_filters_type_0_item.py +47 -0
  246. convexity_api_client/models/dashboard_e_chart_widget.py +215 -0
  247. convexity_api_client/models/dashboard_layout.py +100 -0
  248. convexity_api_client/models/dashboard_list_response.py +76 -0
  249. convexity_api_client/models/dashboard_multi_select_filter_widget.py +363 -0
  250. convexity_api_client/models/dashboard_number_filter_widget.py +310 -0
  251. convexity_api_client/models/dashboard_number_filter_widget_operator.py +12 -0
  252. convexity_api_client/models/dashboard_number_range_filter_widget.py +310 -0
  253. convexity_api_client/models/dashboard_s3_object_widget.py +195 -0
  254. convexity_api_client/models/dashboard_select_filter_widget.py +337 -0
  255. convexity_api_client/models/dashboard_share.py +264 -0
  256. convexity_api_client/models/dashboard_share_response.py +221 -0
  257. convexity_api_client/models/dashboard_sql_chart_widget.py +326 -0
  258. convexity_api_client/models/dashboard_table_widget.py +429 -0
  259. convexity_api_client/models/dashboard_table_widget_column_widths_type_0.py +47 -0
  260. convexity_api_client/models/dashboard_table_widget_default_sort_direction_type_0.py +9 -0
  261. convexity_api_client/models/dashboard_task_widget.py +175 -0
  262. convexity_api_client/models/dashboard_text_filter_widget.py +299 -0
  263. convexity_api_client/models/dashboard_text_filter_widget_matchmode.py +11 -0
  264. convexity_api_client/models/dashboard_text_widget.py +279 -0
  265. convexity_api_client/models/dashboard_text_widget_padding_type_0.py +11 -0
  266. convexity_api_client/models/dashboard_text_widget_text_align_type_0.py +10 -0
  267. convexity_api_client/models/database_connection.py +423 -0
  268. convexity_api_client/models/database_type.py +9 -0
  269. convexity_api_client/models/databricks_connection.py +349 -0
  270. convexity_api_client/models/datalake_connection_info.py +302 -0
  271. convexity_api_client/models/datalake_connection_info_backendtype.py +10 -0
  272. convexity_api_client/models/datalake_connection_response.py +132 -0
  273. convexity_api_client/models/dataset.py +464 -0
  274. convexity_api_client/models/dataset_config.py +257 -0
  275. convexity_api_client/models/dataset_definition.py +372 -0
  276. convexity_api_client/models/dataset_list_response.py +80 -0
  277. convexity_api_client/models/dataset_parameter.py +102 -0
  278. convexity_api_client/models/dataset_parameter_type.py +11 -0
  279. convexity_api_client/models/dataset_snapshot.py +192 -0
  280. convexity_api_client/models/dataset_type.py +13 -0
  281. convexity_api_client/models/date_range_value.py +70 -0
  282. convexity_api_client/models/delete_connection_v1_connections_connection_id_delete_response_delete_connection_v1_connections_connection_id_delete.py +49 -0
  283. convexity_api_client/models/delete_file_request.py +69 -0
  284. convexity_api_client/models/delete_file_response.py +77 -0
  285. convexity_api_client/models/delete_run_response.py +70 -0
  286. convexity_api_client/models/delete_session_response.py +70 -0
  287. convexity_api_client/models/delete_workspace_request.py +61 -0
  288. convexity_api_client/models/derived_dataset_config.py +91 -0
  289. convexity_api_client/models/derived_dataset_config_transformations_item.py +47 -0
  290. convexity_api_client/models/execute_cell_request.py +73 -0
  291. convexity_api_client/models/field_type.py +15 -0
  292. convexity_api_client/models/file_connection.py +257 -0
  293. convexity_api_client/models/file_format.py +11 -0
  294. convexity_api_client/models/file_info_request.py +69 -0
  295. convexity_api_client/models/file_info_response.py +75 -0
  296. convexity_api_client/models/filter_option.py +76 -0
  297. convexity_api_client/models/forecasting.py +316 -0
  298. convexity_api_client/models/formulation.py +336 -0
  299. convexity_api_client/models/get_file_url_request.py +80 -0
  300. convexity_api_client/models/get_file_url_response.py +85 -0
  301. convexity_api_client/models/get_or_create_session_request.py +62 -0
  302. convexity_api_client/models/get_or_create_session_response.py +86 -0
  303. convexity_api_client/models/http_method.py +9 -0
  304. convexity_api_client/models/http_validation_error.py +79 -0
  305. convexity_api_client/models/json_dataset_config.py +170 -0
  306. convexity_api_client/models/json_dataset_config_sourcetype.py +10 -0
  307. convexity_api_client/models/kpi_chart_config.py +529 -0
  308. convexity_api_client/models/kpi_chart_config_chart_padding_type_1.py +47 -0
  309. convexity_api_client/models/kpi_chart_config_font_weight_type_0.py +11 -0
  310. convexity_api_client/models/kpi_chart_config_text_align_type_0.py +10 -0
  311. convexity_api_client/models/kpi_chart_config_trend_direction_type_0.py +9 -0
  312. convexity_api_client/models/kpi_chart_config_value_format_type_0.py +10 -0
  313. convexity_api_client/models/layout_item.py +147 -0
  314. convexity_api_client/models/line_chart_config.py +899 -0
  315. convexity_api_client/models/line_chart_config_chart_padding_type_1.py +47 -0
  316. convexity_api_client/models/line_chart_config_label_position_type_0.py +11 -0
  317. convexity_api_client/models/line_chart_config_legend_orientation_type_0.py +9 -0
  318. convexity_api_client/models/line_chart_config_legend_position_type_0.py +11 -0
  319. convexity_api_client/models/line_chart_config_line_type_type_0.py +12 -0
  320. convexity_api_client/models/line_chart_config_orientation_type_0.py +9 -0
  321. convexity_api_client/models/line_chart_config_series_styles_type_0.py +60 -0
  322. convexity_api_client/models/list_files_request.py +72 -0
  323. convexity_api_client/models/list_files_response.py +83 -0
  324. convexity_api_client/models/list_sessions_response.py +76 -0
  325. convexity_api_client/models/notebook_cell.py +203 -0
  326. convexity_api_client/models/notebook_cell_error.py +78 -0
  327. convexity_api_client/models/notebook_cell_metadata_type_0.py +47 -0
  328. convexity_api_client/models/notebook_cell_output.py +151 -0
  329. convexity_api_client/models/notebook_cell_output_item.py +196 -0
  330. convexity_api_client/models/notebook_cell_output_item_data_type_0.py +47 -0
  331. convexity_api_client/models/notebook_cell_output_item_metadata_type_0.py +47 -0
  332. convexity_api_client/models/notebook_document.py +107 -0
  333. convexity_api_client/models/notebook_document_metadata.py +47 -0
  334. convexity_api_client/models/number_range_value.py +70 -0
  335. convexity_api_client/models/object_list_response.py +75 -0
  336. convexity_api_client/models/object_type_def.py +193 -0
  337. convexity_api_client/models/object_type_def_checksum_algorithm_item.py +12 -0
  338. convexity_api_client/models/object_type_def_checksumtype.py +9 -0
  339. convexity_api_client/models/object_type_def_storageclass.py +20 -0
  340. convexity_api_client/models/organization.py +224 -0
  341. convexity_api_client/models/organization_list_response.py +84 -0
  342. convexity_api_client/models/organization_member.py +178 -0
  343. convexity_api_client/models/organization_member_list_response.py +84 -0
  344. convexity_api_client/models/organization_member_response.py +159 -0
  345. convexity_api_client/models/organization_response.py +209 -0
  346. convexity_api_client/models/organization_role.py +11 -0
  347. convexity_api_client/models/output_type.py +11 -0
  348. convexity_api_client/models/owner_type_def.py +70 -0
  349. convexity_api_client/models/pie_chart_config.py +510 -0
  350. convexity_api_client/models/pie_chart_config_chart_padding_type_1.py +47 -0
  351. convexity_api_client/models/pie_chart_config_label_position_type_0.py +9 -0
  352. convexity_api_client/models/pie_chart_config_legend_orientation_type_0.py +9 -0
  353. convexity_api_client/models/pie_chart_config_legend_position_type_0.py +11 -0
  354. convexity_api_client/models/pie_chart_config_rose_type_type_0.py +9 -0
  355. convexity_api_client/models/preview_response.py +75 -0
  356. convexity_api_client/models/preview_response_data_item.py +47 -0
  357. convexity_api_client/models/preview_type.py +14 -0
  358. convexity_api_client/models/profile.py +609 -0
  359. convexity_api_client/models/project.py +410 -0
  360. convexity_api_client/models/project_api_key.py +468 -0
  361. convexity_api_client/models/project_list_response.py +84 -0
  362. convexity_api_client/models/project_response.py +146 -0
  363. convexity_api_client/models/public_dashboard_response.py +507 -0
  364. convexity_api_client/models/public_dashboard_response_filters_type_0_item.py +47 -0
  365. convexity_api_client/models/read_file_request.py +100 -0
  366. convexity_api_client/models/read_file_response.py +77 -0
  367. convexity_api_client/models/refresh_mode.py +10 -0
  368. convexity_api_client/models/refresh_task.py +221 -0
  369. convexity_api_client/models/refresh_task_list_response.py +109 -0
  370. convexity_api_client/models/refresh_task_status.py +11 -0
  371. convexity_api_client/models/reset_session_response.py +70 -0
  372. convexity_api_client/models/restart_run_response.py +78 -0
  373. convexity_api_client/models/restore_status_type_def.py +79 -0
  374. convexity_api_client/models/run.py +407 -0
  375. convexity_api_client/models/run_stats_response.py +126 -0
  376. convexity_api_client/models/s3_connection.py +313 -0
  377. convexity_api_client/models/s3_object_content.py +185 -0
  378. convexity_api_client/models/save_file_request.py +97 -0
  379. convexity_api_client/models/save_file_response.py +77 -0
  380. convexity_api_client/models/scatter_chart_config.py +838 -0
  381. convexity_api_client/models/scatter_chart_config_chart_padding_type_1.py +47 -0
  382. convexity_api_client/models/scatter_chart_config_label_position_type_0.py +11 -0
  383. convexity_api_client/models/scatter_chart_config_legend_orientation_type_0.py +9 -0
  384. convexity_api_client/models/scatter_chart_config_legend_position_type_0.py +11 -0
  385. convexity_api_client/models/scatter_chart_config_orientation_type_0.py +9 -0
  386. convexity_api_client/models/scatter_chart_config_series_styles_type_0.py +60 -0
  387. convexity_api_client/models/scatter_chart_config_symbol_type_0.py +11 -0
  388. convexity_api_client/models/schema_field.py +102 -0
  389. convexity_api_client/models/schema_response.py +75 -0
  390. convexity_api_client/models/series_style.py +155 -0
  391. convexity_api_client/models/series_style_line_style_type_0.py +10 -0
  392. convexity_api_client/models/session_info.py +94 -0
  393. convexity_api_client/models/share_token_exchange_request.py +62 -0
  394. convexity_api_client/models/spreadsheet_preview.py +87 -0
  395. convexity_api_client/models/sql_dataset.py +103 -0
  396. convexity_api_client/models/sql_dataset_config.py +155 -0
  397. convexity_api_client/models/sql_dataset_config_parameters_type_0.py +60 -0
  398. convexity_api_client/models/sql_dataset_rows_item.py +47 -0
  399. convexity_api_client/models/sql_query_request.py +73 -0
  400. convexity_api_client/models/sql_query_response.py +135 -0
  401. convexity_api_client/models/sql_query_response_rows_item.py +47 -0
  402. convexity_api_client/models/start_run_response.py +70 -0
  403. convexity_api_client/models/static_dataset_config.py +80 -0
  404. convexity_api_client/models/static_dataset_config_data_item.py +47 -0
  405. convexity_api_client/models/table_info.py +109 -0
  406. convexity_api_client/models/table_list_response.py +61 -0
  407. convexity_api_client/models/task_connection.py +173 -0
  408. convexity_api_client/models/task_dto.py +315 -0
  409. convexity_api_client/models/task_list_response.py +76 -0
  410. convexity_api_client/models/task_model.py +452 -0
  411. convexity_api_client/models/task_model_parameter_schema_type_0.py +47 -0
  412. convexity_api_client/models/task_scenario.py +15 -0
  413. convexity_api_client/models/token_balance.py +144 -0
  414. convexity_api_client/models/token_package.py +272 -0
  415. convexity_api_client/models/token_purchase.py +279 -0
  416. convexity_api_client/models/token_response.py +107 -0
  417. convexity_api_client/models/token_usage.py +228 -0
  418. convexity_api_client/models/tooltip_config.py +119 -0
  419. convexity_api_client/models/tooltip_series_config.py +196 -0
  420. convexity_api_client/models/tooltip_series_config_format_type_0.py +10 -0
  421. convexity_api_client/models/update_api_connection_request.py +291 -0
  422. convexity_api_client/models/update_api_connection_request_headers_type_0.py +47 -0
  423. convexity_api_client/models/update_api_key_request.py +145 -0
  424. convexity_api_client/models/update_connection_request.py +94 -0
  425. convexity_api_client/models/update_dashboard_request.py +485 -0
  426. convexity_api_client/models/update_database_connection_request.py +253 -0
  427. convexity_api_client/models/update_databricks_connection_request.py +193 -0
  428. convexity_api_client/models/update_dataset_request.py +295 -0
  429. convexity_api_client/models/update_file_connection_request.py +133 -0
  430. convexity_api_client/models/update_file_description_request.py +77 -0
  431. convexity_api_client/models/update_file_description_response.py +85 -0
  432. convexity_api_client/models/update_organization_member_request.py +64 -0
  433. convexity_api_client/models/update_organization_request.py +134 -0
  434. convexity_api_client/models/update_profile_request.py +114 -0
  435. convexity_api_client/models/update_project_request.py +114 -0
  436. convexity_api_client/models/update_s3_connection_request.py +213 -0
  437. convexity_api_client/models/update_share_request.py +197 -0
  438. convexity_api_client/models/update_task_request.py +359 -0
  439. convexity_api_client/models/update_task_request_parameter_schema_type_0.py +47 -0
  440. convexity_api_client/models/update_webhook_connection_request.py +153 -0
  441. convexity_api_client/models/validation_error.py +90 -0
  442. convexity_api_client/models/verify_result.py +69 -0
  443. convexity_api_client/models/visual_encoding_config.py +237 -0
  444. convexity_api_client/models/visual_encoding_config_color_map_type_0.py +47 -0
  445. convexity_api_client/models/visual_encoding_config_colorby.py +10 -0
  446. convexity_api_client/models/visual_encoding_config_style_map_type_0.py +60 -0
  447. convexity_api_client/models/visual_encoding_config_style_map_type_0_additional_property.py +10 -0
  448. convexity_api_client/models/visual_encoding_config_style_palette_type_0_item.py +10 -0
  449. convexity_api_client/models/visual_encoding_config_styleby.py +10 -0
  450. convexity_api_client/models/webhook_connection.py +288 -0
  451. convexity_api_client/models/worker_task_response.py +201 -0
  452. convexity_api_client/models/worker_task_status.py +12 -0
  453. convexity_api_client/models/worker_task_type.py +11 -0
  454. convexity_api_client/models/workspace_exists_request.py +61 -0
  455. convexity_api_client/models/workspace_file.py +102 -0
  456. convexity_api_client/py.typed +1 -0
  457. convexity_api_client/types.py +54 -0
  458. convexity_api_client-0.4.0.dev146.dist-info/METADATA +133 -0
  459. convexity_api_client-0.4.0.dev146.dist-info/RECORD +460 -0
  460. convexity_api_client-0.4.0.dev146.dist-info/WHEEL +4 -0
@@ -0,0 +1,8 @@
1
+ """A client library for accessing Convexity API"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -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
@@ -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