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,174 @@
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 ...models.get_or_create_session_request import GetOrCreateSessionRequest
9
+ from ...models.get_or_create_session_response import GetOrCreateSessionResponse
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: GetOrCreateSessionRequest,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/api/notebook/session/get-or-create",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: AuthenticatedClient | Client, response: httpx.Response
35
+ ) -> GetOrCreateSessionResponse | HTTPValidationError | None:
36
+ if response.status_code == 200:
37
+ response_200 = GetOrCreateSessionResponse.from_dict(response.json())
38
+
39
+ return response_200
40
+
41
+ if response.status_code == 422:
42
+ response_422 = HTTPValidationError.from_dict(response.json())
43
+
44
+ return response_422
45
+
46
+ if client.raise_on_unexpected_status:
47
+ raise errors.UnexpectedStatus(response.status_code, response.content)
48
+ else:
49
+ return None
50
+
51
+
52
+ def _build_response(
53
+ *, client: AuthenticatedClient | Client, response: httpx.Response
54
+ ) -> Response[GetOrCreateSessionResponse | HTTPValidationError]:
55
+ return Response(
56
+ status_code=HTTPStatus(response.status_code),
57
+ content=response.content,
58
+ headers=response.headers,
59
+ parsed=_parse_response(client=client, response=response),
60
+ )
61
+
62
+
63
+ def sync_detailed(
64
+ *,
65
+ client: AuthenticatedClient | Client,
66
+ body: GetOrCreateSessionRequest,
67
+ ) -> Response[GetOrCreateSessionResponse | HTTPValidationError]:
68
+ """Get Or Create Session
69
+
70
+ Get an existing notebook session for the model or create a new one.
71
+
72
+ Args:
73
+ body (GetOrCreateSessionRequest): Request to obtain a notebook session.
74
+
75
+ Raises:
76
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
77
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
78
+
79
+ Returns:
80
+ Response[GetOrCreateSessionResponse | HTTPValidationError]
81
+ """
82
+
83
+ kwargs = _get_kwargs(
84
+ body=body,
85
+ )
86
+
87
+ response = client.get_httpx_client().request(
88
+ **kwargs,
89
+ )
90
+
91
+ return _build_response(client=client, response=response)
92
+
93
+
94
+ def sync(
95
+ *,
96
+ client: AuthenticatedClient | Client,
97
+ body: GetOrCreateSessionRequest,
98
+ ) -> GetOrCreateSessionResponse | HTTPValidationError | None:
99
+ """Get Or Create Session
100
+
101
+ Get an existing notebook session for the model or create a new one.
102
+
103
+ Args:
104
+ body (GetOrCreateSessionRequest): Request to obtain a notebook session.
105
+
106
+ Raises:
107
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
109
+
110
+ Returns:
111
+ GetOrCreateSessionResponse | HTTPValidationError
112
+ """
113
+
114
+ return sync_detailed(
115
+ client=client,
116
+ body=body,
117
+ ).parsed
118
+
119
+
120
+ async def asyncio_detailed(
121
+ *,
122
+ client: AuthenticatedClient | Client,
123
+ body: GetOrCreateSessionRequest,
124
+ ) -> Response[GetOrCreateSessionResponse | HTTPValidationError]:
125
+ """Get Or Create Session
126
+
127
+ Get an existing notebook session for the model or create a new one.
128
+
129
+ Args:
130
+ body (GetOrCreateSessionRequest): Request to obtain a notebook session.
131
+
132
+ Raises:
133
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
134
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
135
+
136
+ Returns:
137
+ Response[GetOrCreateSessionResponse | HTTPValidationError]
138
+ """
139
+
140
+ kwargs = _get_kwargs(
141
+ body=body,
142
+ )
143
+
144
+ response = await client.get_async_httpx_client().request(**kwargs)
145
+
146
+ return _build_response(client=client, response=response)
147
+
148
+
149
+ async def asyncio(
150
+ *,
151
+ client: AuthenticatedClient | Client,
152
+ body: GetOrCreateSessionRequest,
153
+ ) -> GetOrCreateSessionResponse | HTTPValidationError | None:
154
+ """Get Or Create Session
155
+
156
+ Get an existing notebook session for the model or create a new one.
157
+
158
+ Args:
159
+ body (GetOrCreateSessionRequest): Request to obtain a notebook session.
160
+
161
+ Raises:
162
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
163
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
164
+
165
+ Returns:
166
+ GetOrCreateSessionResponse | HTTPValidationError
167
+ """
168
+
169
+ return (
170
+ await asyncio_detailed(
171
+ client=client,
172
+ body=body,
173
+ )
174
+ ).parsed
@@ -0,0 +1,134 @@
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 ...models.list_sessions_response import ListSessionsResponse
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs() -> dict[str, Any]:
13
+
14
+ _kwargs: dict[str, Any] = {
15
+ "method": "get",
16
+ "url": "/api/notebook/session/list",
17
+ }
18
+
19
+ return _kwargs
20
+
21
+
22
+ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> ListSessionsResponse | None:
23
+ if response.status_code == 200:
24
+ response_200 = ListSessionsResponse.from_dict(response.json())
25
+
26
+ return response_200
27
+
28
+ if client.raise_on_unexpected_status:
29
+ raise errors.UnexpectedStatus(response.status_code, response.content)
30
+ else:
31
+ return None
32
+
33
+
34
+ def _build_response(
35
+ *, client: AuthenticatedClient | Client, response: httpx.Response
36
+ ) -> Response[ListSessionsResponse]:
37
+ return Response(
38
+ status_code=HTTPStatus(response.status_code),
39
+ content=response.content,
40
+ headers=response.headers,
41
+ parsed=_parse_response(client=client, response=response),
42
+ )
43
+
44
+
45
+ def sync_detailed(
46
+ *,
47
+ client: AuthenticatedClient | Client,
48
+ ) -> Response[ListSessionsResponse]:
49
+ """List Sessions
50
+
51
+ List all sessions for the current user.
52
+
53
+ Raises:
54
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
55
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
56
+
57
+ Returns:
58
+ Response[ListSessionsResponse]
59
+ """
60
+
61
+ kwargs = _get_kwargs()
62
+
63
+ response = client.get_httpx_client().request(
64
+ **kwargs,
65
+ )
66
+
67
+ return _build_response(client=client, response=response)
68
+
69
+
70
+ def sync(
71
+ *,
72
+ client: AuthenticatedClient | Client,
73
+ ) -> ListSessionsResponse | None:
74
+ """List Sessions
75
+
76
+ List all sessions for the current user.
77
+
78
+ Raises:
79
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
80
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
81
+
82
+ Returns:
83
+ ListSessionsResponse
84
+ """
85
+
86
+ return sync_detailed(
87
+ client=client,
88
+ ).parsed
89
+
90
+
91
+ async def asyncio_detailed(
92
+ *,
93
+ client: AuthenticatedClient | Client,
94
+ ) -> Response[ListSessionsResponse]:
95
+ """List Sessions
96
+
97
+ List all sessions for the current user.
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ Response[ListSessionsResponse]
105
+ """
106
+
107
+ kwargs = _get_kwargs()
108
+
109
+ response = await client.get_async_httpx_client().request(**kwargs)
110
+
111
+ return _build_response(client=client, response=response)
112
+
113
+
114
+ async def asyncio(
115
+ *,
116
+ client: AuthenticatedClient | Client,
117
+ ) -> ListSessionsResponse | None:
118
+ """List Sessions
119
+
120
+ List all sessions for the current user.
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ ListSessionsResponse
128
+ """
129
+
130
+ return (
131
+ await asyncio_detailed(
132
+ client=client,
133
+ )
134
+ ).parsed
@@ -0,0 +1,177 @@
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.http_validation_error import HTTPValidationError
10
+ from ...models.reset_session_response import ResetSessionResponse
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": "post",
20
+ "url": "/api/notebook/session/{session_id}/reset".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
+ ) -> HTTPValidationError | ResetSessionResponse | None:
31
+ if response.status_code == 200:
32
+ response_200 = ResetSessionResponse.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[HTTPValidationError | ResetSessionResponse]:
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[HTTPValidationError | ResetSessionResponse]:
63
+ """Reset Session
64
+
65
+ Reset a notebook session.
66
+
67
+ Clears all variables from the namespace while keeping the session alive.
68
+
69
+ Args:
70
+ session_id (str):
71
+
72
+ Raises:
73
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
75
+
76
+ Returns:
77
+ Response[HTTPValidationError | ResetSessionResponse]
78
+ """
79
+
80
+ kwargs = _get_kwargs(
81
+ session_id=session_id,
82
+ )
83
+
84
+ response = client.get_httpx_client().request(
85
+ **kwargs,
86
+ )
87
+
88
+ return _build_response(client=client, response=response)
89
+
90
+
91
+ def sync(
92
+ session_id: str,
93
+ *,
94
+ client: AuthenticatedClient | Client,
95
+ ) -> HTTPValidationError | ResetSessionResponse | None:
96
+ """Reset Session
97
+
98
+ Reset a notebook session.
99
+
100
+ Clears all variables from the namespace while keeping the session alive.
101
+
102
+ Args:
103
+ session_id (str):
104
+
105
+ Raises:
106
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
107
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
108
+
109
+ Returns:
110
+ HTTPValidationError | ResetSessionResponse
111
+ """
112
+
113
+ return sync_detailed(
114
+ session_id=session_id,
115
+ client=client,
116
+ ).parsed
117
+
118
+
119
+ async def asyncio_detailed(
120
+ session_id: str,
121
+ *,
122
+ client: AuthenticatedClient | Client,
123
+ ) -> Response[HTTPValidationError | ResetSessionResponse]:
124
+ """Reset Session
125
+
126
+ Reset a notebook session.
127
+
128
+ Clears all variables from the namespace while keeping the session alive.
129
+
130
+ Args:
131
+ session_id (str):
132
+
133
+ Raises:
134
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
136
+
137
+ Returns:
138
+ Response[HTTPValidationError | ResetSessionResponse]
139
+ """
140
+
141
+ kwargs = _get_kwargs(
142
+ session_id=session_id,
143
+ )
144
+
145
+ response = await client.get_async_httpx_client().request(**kwargs)
146
+
147
+ return _build_response(client=client, response=response)
148
+
149
+
150
+ async def asyncio(
151
+ session_id: str,
152
+ *,
153
+ client: AuthenticatedClient | Client,
154
+ ) -> HTTPValidationError | ResetSessionResponse | None:
155
+ """Reset Session
156
+
157
+ Reset a notebook session.
158
+
159
+ Clears all variables from the namespace while keeping the session alive.
160
+
161
+ Args:
162
+ session_id (str):
163
+
164
+ Raises:
165
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
166
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
167
+
168
+ Returns:
169
+ HTTPValidationError | ResetSessionResponse
170
+ """
171
+
172
+ return (
173
+ await asyncio_detailed(
174
+ session_id=session_id,
175
+ client=client,
176
+ )
177
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,171 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ user_id: str,
15
+ ) -> dict[str, Any]:
16
+
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": "/profile/get_or_create/{user_id}".format(
20
+ user_id=quote(str(user_id), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | HTTPValidationError | None:
30
+ if response.status_code == 200:
31
+ response_200 = response.json()
32
+ return response_200
33
+
34
+ if response.status_code == 404:
35
+ response_404 = cast(Any, None)
36
+ return response_404
37
+
38
+ if response.status_code == 422:
39
+ response_422 = HTTPValidationError.from_dict(response.json())
40
+
41
+ return response_422
42
+
43
+ if client.raise_on_unexpected_status:
44
+ raise errors.UnexpectedStatus(response.status_code, response.content)
45
+ else:
46
+ return None
47
+
48
+
49
+ def _build_response(
50
+ *, client: AuthenticatedClient | Client, response: httpx.Response
51
+ ) -> Response[Any | HTTPValidationError]:
52
+ return Response(
53
+ status_code=HTTPStatus(response.status_code),
54
+ content=response.content,
55
+ headers=response.headers,
56
+ parsed=_parse_response(client=client, response=response),
57
+ )
58
+
59
+
60
+ def sync_detailed(
61
+ user_id: str,
62
+ *,
63
+ client: AuthenticatedClient | Client,
64
+ ) -> Response[Any | HTTPValidationError]:
65
+ """Get Or Create Profile
66
+
67
+ Retrieve or create a user profile.
68
+
69
+ Args:
70
+ user_id (str):
71
+
72
+ Raises:
73
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
75
+
76
+ Returns:
77
+ Response[Any | HTTPValidationError]
78
+ """
79
+
80
+ kwargs = _get_kwargs(
81
+ user_id=user_id,
82
+ )
83
+
84
+ response = client.get_httpx_client().request(
85
+ **kwargs,
86
+ )
87
+
88
+ return _build_response(client=client, response=response)
89
+
90
+
91
+ def sync(
92
+ user_id: str,
93
+ *,
94
+ client: AuthenticatedClient | Client,
95
+ ) -> Any | HTTPValidationError | None:
96
+ """Get Or Create Profile
97
+
98
+ Retrieve or create a user profile.
99
+
100
+ Args:
101
+ user_id (str):
102
+
103
+ Raises:
104
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
106
+
107
+ Returns:
108
+ Any | HTTPValidationError
109
+ """
110
+
111
+ return sync_detailed(
112
+ user_id=user_id,
113
+ client=client,
114
+ ).parsed
115
+
116
+
117
+ async def asyncio_detailed(
118
+ user_id: str,
119
+ *,
120
+ client: AuthenticatedClient | Client,
121
+ ) -> Response[Any | HTTPValidationError]:
122
+ """Get Or Create Profile
123
+
124
+ Retrieve or create a user profile.
125
+
126
+ Args:
127
+ user_id (str):
128
+
129
+ Raises:
130
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
132
+
133
+ Returns:
134
+ Response[Any | HTTPValidationError]
135
+ """
136
+
137
+ kwargs = _get_kwargs(
138
+ user_id=user_id,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ user_id: str,
148
+ *,
149
+ client: AuthenticatedClient | Client,
150
+ ) -> Any | HTTPValidationError | None:
151
+ """Get Or Create Profile
152
+
153
+ Retrieve or create a user profile.
154
+
155
+ Args:
156
+ user_id (str):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Any | HTTPValidationError
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ user_id=user_id,
169
+ client=client,
170
+ )
171
+ ).parsed