morta 1.0.0__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 (392) hide show
  1. morta/__init__.py +90 -0
  2. morta/_base_client.py +1985 -0
  3. morta/_client.py +455 -0
  4. morta/_compat.py +219 -0
  5. morta/_constants.py +14 -0
  6. morta/_exceptions.py +108 -0
  7. morta/_files.py +123 -0
  8. morta/_models.py +805 -0
  9. morta/_qs.py +150 -0
  10. morta/_resource.py +43 -0
  11. morta/_response.py +830 -0
  12. morta/_streaming.py +333 -0
  13. morta/_types.py +219 -0
  14. morta/_utils/__init__.py +57 -0
  15. morta/_utils/_logs.py +25 -0
  16. morta/_utils/_proxy.py +65 -0
  17. morta/_utils/_reflection.py +42 -0
  18. morta/_utils/_resources_proxy.py +24 -0
  19. morta/_utils/_streams.py +12 -0
  20. morta/_utils/_sync.py +86 -0
  21. morta/_utils/_transform.py +447 -0
  22. morta/_utils/_typing.py +151 -0
  23. morta/_utils/_utils.py +422 -0
  24. morta/_version.py +4 -0
  25. morta/lib/.keep +4 -0
  26. morta/py.typed +0 -0
  27. morta/resources/__init__.py +117 -0
  28. morta/resources/comment_thread/__init__.py +33 -0
  29. morta/resources/comment_thread/comment.py +372 -0
  30. morta/resources/comment_thread/comment_thread.py +768 -0
  31. morta/resources/document/__init__.py +47 -0
  32. morta/resources/document/document.py +1535 -0
  33. morta/resources/document/duplicate.py +290 -0
  34. morta/resources/document/section/__init__.py +33 -0
  35. morta/resources/document/section/response.py +744 -0
  36. morta/resources/document/section/section.py +822 -0
  37. morta/resources/hub/__init__.py +61 -0
  38. morta/resources/hub/ai_answer.py +191 -0
  39. morta/resources/hub/hub.py +3317 -0
  40. morta/resources/hub/invite.py +475 -0
  41. morta/resources/hub/secrets.py +450 -0
  42. morta/resources/integrations.py +328 -0
  43. morta/resources/notifications.py +598 -0
  44. morta/resources/permissions.py +794 -0
  45. morta/resources/table/__init__.py +89 -0
  46. morta/resources/table/column.py +1019 -0
  47. morta/resources/table/join.py +399 -0
  48. morta/resources/table/row.py +553 -0
  49. morta/resources/table/sync.py +691 -0
  50. morta/resources/table/table.py +2158 -0
  51. morta/resources/table/views/__init__.py +47 -0
  52. morta/resources/table/views/columns.py +1013 -0
  53. morta/resources/table/views/rows.py +611 -0
  54. morta/resources/table/views/views.py +1623 -0
  55. morta/resources/user/__init__.py +61 -0
  56. morta/resources/user/apikey.py +380 -0
  57. morta/resources/user/hubs.py +423 -0
  58. morta/resources/user/tags.py +357 -0
  59. morta/resources/user/user.py +1358 -0
  60. morta/types/__init__.py +204 -0
  61. morta/types/access_policy.py +57 -0
  62. morta/types/action.py +25 -0
  63. morta/types/answer.py +29 -0
  64. morta/types/base_request_context_param.py +20 -0
  65. morta/types/comment_thread/__init__.py +11 -0
  66. morta/types/comment_thread/comment_create_params.py +16 -0
  67. morta/types/comment_thread/comment_create_response.py +27 -0
  68. morta/types/comment_thread/comment_delete_response.py +27 -0
  69. morta/types/comment_thread/comment_model.py +27 -0
  70. morta/types/comment_thread/comment_thread.py +33 -0
  71. morta/types/comment_thread/comment_update_params.py +18 -0
  72. morta/types/comment_thread/comment_update_response.py +27 -0
  73. morta/types/comment_thread_create_params.py +22 -0
  74. morta/types/comment_thread_create_response.py +27 -0
  75. morta/types/comment_thread_delete_response.py +27 -0
  76. morta/types/comment_thread_get_stats_params.py +18 -0
  77. morta/types/comment_thread_get_stats_response.py +23 -0
  78. morta/types/comment_thread_list_params.py +21 -0
  79. morta/types/comment_thread_list_response.py +14 -0
  80. morta/types/comment_thread_reopen_response.py +27 -0
  81. morta/types/comment_thread_resolve_response.py +27 -0
  82. morta/types/comment_thread_retrieve_response.py +14 -0
  83. morta/types/create_notification_schema_header_param.py +13 -0
  84. morta/types/document/__init__.py +19 -0
  85. morta/types/document/create_document_section_param.py +26 -0
  86. morta/types/document/document.py +15 -0
  87. morta/types/document/duplicate_duplicate_params.py +21 -0
  88. morta/types/document/duplicate_global_params.py +19 -0
  89. morta/types/document/duplicate_global_response.py +24 -0
  90. morta/types/document/section/__init__.py +14 -0
  91. morta/types/document/section/document_response.py +41 -0
  92. morta/types/document/section/response_create_params.py +18 -0
  93. morta/types/document/section/response_create_response.py +14 -0
  94. morta/types/document/section/response_delete_response.py +24 -0
  95. morta/types/document/section/response_reset_response.py +24 -0
  96. morta/types/document/section/response_restore_response.py +14 -0
  97. morta/types/document/section/response_submit_params.py +19 -0
  98. morta/types/document/section/response_submit_response.py +24 -0
  99. morta/types/document/section/response_update_params.py +29 -0
  100. morta/types/document/section/response_update_response.py +47 -0
  101. morta/types/document/section_create_params.py +27 -0
  102. morta/types/document/section_create_response.py +24 -0
  103. morta/types/document/section_delete_response.py +24 -0
  104. morta/types/document/section_duplicate_async_response.py +13 -0
  105. morta/types/document/section_duplicate_response.py +24 -0
  106. morta/types/document/section_restore_response.py +24 -0
  107. morta/types/document/section_retrieve_params.py +14 -0
  108. morta/types/document/section_retrieve_response.py +24 -0
  109. morta/types/document/section_update_params.py +33 -0
  110. morta/types/document/section_update_response.py +24 -0
  111. morta/types/document_create_multiple_sections_params.py +17 -0
  112. morta/types/document_create_multiple_sections_response.py +20 -0
  113. morta/types/document_create_params.py +20 -0
  114. morta/types/document_create_response.py +27 -0
  115. morta/types/document_create_sections_params.py +17 -0
  116. morta/types/document_create_sections_response.py +24 -0
  117. morta/types/document_delete_response.py +24 -0
  118. morta/types/document_export_params.py +18 -0
  119. morta/types/document_get_deleted_sections_params.py +12 -0
  120. morta/types/document_get_deleted_sections_response.py +12 -0
  121. morta/types/document_get_duplicated_children_response.py +26 -0
  122. morta/types/document_restore_response.py +24 -0
  123. morta/types/document_retrieve_params.py +12 -0
  124. morta/types/document_retrieve_response.py +24 -0
  125. morta/types/document_section_1.py +51 -0
  126. morta/types/document_sync_template_response.py +14 -0
  127. morta/types/document_update_multiple_sections_params.py +39 -0
  128. morta/types/document_update_multiple_sections_response.py +24 -0
  129. morta/types/document_update_params.py +39 -0
  130. morta/types/document_update_response.py +14 -0
  131. morta/types/document_update_section_order_params.py +25 -0
  132. morta/types/document_update_section_order_response.py +24 -0
  133. morta/types/document_update_views_permissions_params.py +12 -0
  134. morta/types/document_update_views_permissions_response.py +11 -0
  135. morta/types/draftjs.py +51 -0
  136. morta/types/draftjs_param.py +54 -0
  137. morta/types/event.py +46 -0
  138. morta/types/hub/__init__.py +20 -0
  139. morta/types/hub/ai_answer_vote_params.py +15 -0
  140. morta/types/hub/ai_answer_vote_response.py +13 -0
  141. morta/types/hub/hub_secret.py +22 -0
  142. morta/types/hub/invite_create_params.py +18 -0
  143. morta/types/hub/invite_create_response.py +13 -0
  144. morta/types/hub/invite_delete_response.py +13 -0
  145. morta/types/hub/invite_resend_response.py +13 -0
  146. morta/types/hub/invite_update_params.py +18 -0
  147. morta/types/hub/invite_update_response.py +14 -0
  148. morta/types/hub/invited_member.py +26 -0
  149. morta/types/hub/secret_create_params.py +13 -0
  150. morta/types/hub/secret_create_response.py +14 -0
  151. morta/types/hub/secret_delete_response.py +13 -0
  152. morta/types/hub/secret_list_response.py +14 -0
  153. morta/types/hub/secret_update_params.py +15 -0
  154. morta/types/hub/secret_update_response.py +14 -0
  155. morta/types/hub_ai_search_params.py +15 -0
  156. morta/types/hub_ai_search_response.py +14 -0
  157. morta/types/hub_change_user_role_params.py +13 -0
  158. morta/types/hub_change_user_role_response.py +14 -0
  159. morta/types/hub_create_heading_styling_response.py +14 -0
  160. morta/types/hub_create_knowledge_base_params.py +20 -0
  161. morta/types/hub_create_params.py +11 -0
  162. morta/types/hub_create_response.py +14 -0
  163. morta/types/hub_delete_response.py +13 -0
  164. morta/types/hub_delete_top_heading_styling_response.py +14 -0
  165. morta/types/hub_duplicate_params.py +18 -0
  166. morta/types/hub_get_ai_answers_response.py +35 -0
  167. morta/types/hub_get_deleted_documents_response.py +14 -0
  168. morta/types/hub_get_deleted_tables_response.py +14 -0
  169. morta/types/hub_get_documents_response.py +14 -0
  170. morta/types/hub_get_duplicated_children_response.py +26 -0
  171. morta/types/hub_get_invited_members_response.py +14 -0
  172. morta/types/hub_get_members_response.py +44 -0
  173. morta/types/hub_get_notifications_response.py +14 -0
  174. morta/types/hub_get_resources_params.py +26 -0
  175. morta/types/hub_get_resources_response.py +69 -0
  176. morta/types/hub_get_sent_notifications_params.py +19 -0
  177. morta/types/hub_get_sent_notifications_response.py +50 -0
  178. morta/types/hub_get_tables_response.py +14 -0
  179. morta/types/hub_get_tags_response.py +37 -0
  180. morta/types/hub_get_variables_response.py +37 -0
  181. morta/types/hub_invite_multiple_users_params.py +18 -0
  182. morta/types/hub_invite_multiple_users_response.py +13 -0
  183. morta/types/hub_permanently_delete_response.py +13 -0
  184. morta/types/hub_remove_user_response.py +14 -0
  185. morta/types/hub_restore_response.py +13 -0
  186. morta/types/hub_retrieve_response.py +35 -0
  187. morta/types/hub_search_resources_params.py +15 -0
  188. morta/types/hub_search_resources_response.py +14 -0
  189. morta/types/hub_update_heading_styling_params.py +30 -0
  190. morta/types/hub_update_heading_styling_response.py +14 -0
  191. morta/types/hub_update_params.py +73 -0
  192. morta/types/hub_update_response.py +14 -0
  193. morta/types/hub_upload_template_params.py +13 -0
  194. morta/types/hub_upload_template_response.py +14 -0
  195. morta/types/integration_create_passthrough_download_params.py +32 -0
  196. morta/types/integration_create_passthrough_params.py +32 -0
  197. morta/types/integration_create_passthrough_response.py +25 -0
  198. morta/types/morta_document.py +59 -0
  199. morta/types/morta_document_section.py +51 -0
  200. morta/types/notification.py +33 -0
  201. morta/types/notification_create_params.py +33 -0
  202. morta/types/notification_create_response.py +14 -0
  203. morta/types/notification_delete_response.py +13 -0
  204. morta/types/notification_list_event_types_response.py +13 -0
  205. morta/types/notification_list_events_params.py +34 -0
  206. morta/types/notification_list_events_response.py +14 -0
  207. morta/types/notification_update_params.py +33 -0
  208. morta/types/notification_update_response.py +14 -0
  209. morta/types/permission_create_all_params.py +28 -0
  210. morta/types/permission_create_all_response.py +14 -0
  211. morta/types/permission_create_params.py +28 -0
  212. morta/types/permission_create_response.py +14 -0
  213. morta/types/permission_retrieve_params.py +18 -0
  214. morta/types/permission_retrieve_response.py +14 -0
  215. morta/types/permission_retrieve_tag_params.py +12 -0
  216. morta/types/permission_retrieve_tag_response.py +14 -0
  217. morta/types/permission_update_params.py +15 -0
  218. morta/types/permission_update_response.py +14 -0
  219. morta/types/project.py +15 -0
  220. morta/types/simple_document.py +54 -0
  221. morta/types/simple_hub.py +120 -0
  222. morta/types/summary_user.py +21 -0
  223. morta/types/table/__init__.py +76 -0
  224. morta/types/table/chart.py +54 -0
  225. morta/types/table/chart_param.py +55 -0
  226. morta/types/table/colour.py +47 -0
  227. morta/types/table/colour_param.py +52 -0
  228. morta/types/table/column_check_views_response.py +14 -0
  229. morta/types/table/column_create_params.py +112 -0
  230. morta/types/table/column_create_response.py +14 -0
  231. morta/types/table/column_delete_response.py +13 -0
  232. morta/types/table/column_get_distinct_values_params.py +18 -0
  233. morta/types/table/column_get_distinct_values_response.py +13 -0
  234. morta/types/table/column_restore_response.py +14 -0
  235. morta/types/table/column_update_params.py +114 -0
  236. morta/types/table/column_update_response.py +14 -0
  237. morta/types/table/filter.py +45 -0
  238. morta/types/table/filter_param.py +50 -0
  239. morta/types/table/group.py +17 -0
  240. morta/types/table/group_param.py +17 -0
  241. morta/types/table/join_create_params.py +24 -0
  242. morta/types/table/join_create_response.py +14 -0
  243. morta/types/table/join_delete_response.py +13 -0
  244. morta/types/table/join_update_params.py +26 -0
  245. morta/types/table/join_update_response.py +14 -0
  246. morta/types/table/row_add_params.py +17 -0
  247. morta/types/table/row_add_response.py +23 -0
  248. morta/types/table/row_get_rows_params.py +40 -0
  249. morta/types/table/row_get_rows_response.py +33 -0
  250. morta/types/table/row_update_params.py +27 -0
  251. morta/types/table/row_update_response.py +23 -0
  252. morta/types/table/row_upsert_params.py +20 -0
  253. morta/types/table/row_upsert_response.py +23 -0
  254. morta/types/table/select_options_lookup.py +35 -0
  255. morta/types/table/select_options_lookup_param.py +36 -0
  256. morta/types/table/sort.py +17 -0
  257. morta/types/table/sort_param.py +17 -0
  258. morta/types/table/sync_delete_integration_response.py +13 -0
  259. morta/types/table/sync_get_sync_info_response.py +80 -0
  260. morta/types/table/sync_retry_integration_sync_response.py +13 -0
  261. morta/types/table/sync_sync_with_integration_params.py +56 -0
  262. morta/types/table/sync_sync_with_integration_response.py +13 -0
  263. morta/types/table/sync_update_params.py +56 -0
  264. morta/types/table/sync_update_response.py +13 -0
  265. morta/types/table/table.py +113 -0
  266. morta/types/table/table_column.py +110 -0
  267. morta/types/table/table_column_alter.py +18 -0
  268. morta/types/table/table_column_alter_param.py +17 -0
  269. morta/types/table/table_column_join.py +15 -0
  270. morta/types/table/table_column_join_param.py +15 -0
  271. morta/types/table/table_column_param.py +108 -0
  272. morta/types/table/table_row_action_param.py +19 -0
  273. morta/types/table/table_view.py +60 -0
  274. morta/types/table/view_create_params.py +93 -0
  275. morta/types/table/view_create_response.py +14 -0
  276. morta/types/table/view_delete_response.py +13 -0
  277. morta/types/table/view_download_csv_params.py +18 -0
  278. morta/types/table/view_download_csv_response.py +7 -0
  279. morta/types/table/view_duplicate_default_params.py +17 -0
  280. morta/types/table/view_duplicate_default_response.py +14 -0
  281. morta/types/table/view_duplicate_response.py +14 -0
  282. morta/types/table/view_list_params.py +12 -0
  283. morta/types/table/view_list_response.py +14 -0
  284. morta/types/table/view_preview_row_params.py +17 -0
  285. morta/types/table/view_preview_row_response.py +23 -0
  286. morta/types/table/view_retrieve_params.py +12 -0
  287. morta/types/table/view_retrieve_response.py +81 -0
  288. morta/types/table/view_set_default_response.py +14 -0
  289. morta/types/table/view_stats_params.py +21 -0
  290. morta/types/table/view_stats_response.py +14 -0
  291. morta/types/table/view_stream_rows_params.py +24 -0
  292. morta/types/table/view_update_cells_params.py +27 -0
  293. morta/types/table/view_update_cells_response.py +23 -0
  294. morta/types/table/view_update_params.py +63 -0
  295. morta/types/table/view_update_response.py +14 -0
  296. morta/types/table/views/__init__.py +24 -0
  297. morta/types/table/views/column_add_params.py +130 -0
  298. morta/types/table/views/column_add_response.py +14 -0
  299. morta/types/table/views/column_ai_formula_helper_params.py +13 -0
  300. morta/types/table/views/column_ai_formula_helper_response.py +17 -0
  301. morta/types/table/views/column_distinct_params.py +18 -0
  302. morta/types/table/views/column_distinct_response.py +13 -0
  303. morta/types/table/views/column_formula_info_response.py +17 -0
  304. morta/types/table/views/column_update_params.py +132 -0
  305. morta/types/table/views/column_update_response.py +14 -0
  306. morta/types/table/views/row_add_params.py +17 -0
  307. morta/types/table/views/row_add_response.py +23 -0
  308. morta/types/table/views/row_delete_response.py +13 -0
  309. morta/types/table/views/row_list_params.py +38 -0
  310. morta/types/table/views/row_list_response.py +31 -0
  311. morta/types/table/views/row_update_params.py +27 -0
  312. morta/types/table/views/row_update_response.py +23 -0
  313. morta/types/table/views/row_upsert_params.py +20 -0
  314. morta/types/table/views/row_upsert_response.py +23 -0
  315. morta/types/table/views/table_view_column.py +128 -0
  316. morta/types/table/views/update_table_view_column_param.py +129 -0
  317. morta/types/table1.py +17 -0
  318. morta/types/table3.py +15 -0
  319. morta/types/table_check_usage_response.py +24 -0
  320. morta/types/table_column_with_aggregation.py +23 -0
  321. morta/types/table_create_index_params.py +18 -0
  322. morta/types/table_create_index_response.py +14 -0
  323. morta/types/table_create_params.py +42 -0
  324. morta/types/table_create_response.py +14 -0
  325. morta/types/table_delete_response.py +13 -0
  326. morta/types/table_delete_rows_response.py +13 -0
  327. morta/types/table_download_csv_params.py +15 -0
  328. morta/types/table_download_csv_response.py +7 -0
  329. morta/types/table_duplicate_params.py +21 -0
  330. morta/types/table_duplicate_response.py +13 -0
  331. morta/types/table_get_duplicated_children_response.py +26 -0
  332. morta/types/table_get_file_params.py +15 -0
  333. morta/types/table_get_statistics_params.py +16 -0
  334. morta/types/table_get_statistics_response.py +14 -0
  335. morta/types/table_join.py +25 -0
  336. morta/types/table_join_imported_columns.py +15 -0
  337. morta/types/table_join_imported_columns_param.py +15 -0
  338. morta/types/table_list_columns_response.py +14 -0
  339. morta/types/table_list_joins_response.py +14 -0
  340. morta/types/table_restore_response.py +14 -0
  341. morta/types/table_retrieve_params.py +43 -0
  342. morta/types/table_retrieve_response.py +25 -0
  343. morta/types/table_stream_rows_params.py +21 -0
  344. morta/types/table_truncate_response.py +13 -0
  345. morta/types/table_update_cells_params.py +27 -0
  346. morta/types/table_update_cells_response.py +13 -0
  347. morta/types/table_update_params.py +51 -0
  348. morta/types/table_update_response.py +14 -0
  349. morta/types/trigger.py +15 -0
  350. morta/types/user/__init__.py +23 -0
  351. morta/types/user/api_key.py +27 -0
  352. morta/types/user/apikey_create_params.py +22 -0
  353. morta/types/user/apikey_create_response.py +14 -0
  354. morta/types/user/apikey_delete_response.py +14 -0
  355. morta/types/user/apikey_update_params.py +22 -0
  356. morta/types/user/apikey_update_response.py +14 -0
  357. morta/types/user/home_hub.py +38 -0
  358. morta/types/user/hub_list_favourites_response.py +30 -0
  359. morta/types/user/hub_list_response.py +15 -0
  360. morta/types/user/hub_list_tags_response.py +15 -0
  361. morta/types/user/hub_toggle_favourite_response.py +30 -0
  362. morta/types/user/hub_toggle_pin_response.py +33 -0
  363. morta/types/user/tag.py +21 -0
  364. morta/types/user/tag_add_params.py +13 -0
  365. morta/types/user/tag_add_response.py +15 -0
  366. morta/types/user/tag_bulk_apply_params.py +18 -0
  367. morta/types/user/tag_bulk_apply_response.py +15 -0
  368. morta/types/user/tag_delete_response.py +13 -0
  369. morta/types/user/user.py +106 -0
  370. morta/types/user_create_params.py +32 -0
  371. morta/types/user_create_response.py +24 -0
  372. morta/types/user_hub.py +13 -0
  373. morta/types/user_list_achievements_response.py +24 -0
  374. morta/types/user_list_contributions_response.py +15 -0
  375. morta/types/user_list_owner_hubs_response.py +15 -0
  376. morta/types/user_list_pinned_hubs_response.py +33 -0
  377. morta/types/user_list_public_contributions_response.py +15 -0
  378. morta/types/user_list_public_hubs_response.py +15 -0
  379. morta/types/user_list_templates_response.py +20 -0
  380. morta/types/user_retrieve_by_public_id_response.py +25 -0
  381. morta/types/user_retrieve_me_response.py +25 -0
  382. morta/types/user_retrieve_response.py +25 -0
  383. morta/types/user_search_params.py +21 -0
  384. morta/types/user_search_response.py +15 -0
  385. morta/types/user_update_account_params.py +32 -0
  386. morta/types/user_update_account_response.py +140 -0
  387. morta/types/user_update_profile_params.py +34 -0
  388. morta/types/user_update_profile_response.py +24 -0
  389. morta-1.0.0.dist-info/METADATA +432 -0
  390. morta-1.0.0.dist-info/RECORD +392 -0
  391. morta-1.0.0.dist-info/WHEEL +4 -0
  392. morta-1.0.0.dist-info/licenses/LICENSE +201 -0
morta/__init__.py ADDED
@@ -0,0 +1,90 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import typing as _t
4
+
5
+ from . import types
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
7
+ from ._utils import file_from_path
8
+ from ._client import Morta, Client, Stream, Timeout, Transport, AsyncMorta, AsyncClient, AsyncStream, RequestOptions
9
+ from ._models import BaseModel
10
+ from ._version import __title__, __version__
11
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
12
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
13
+ from ._exceptions import (
14
+ APIError,
15
+ MortaError,
16
+ ConflictError,
17
+ NotFoundError,
18
+ APIStatusError,
19
+ RateLimitError,
20
+ APITimeoutError,
21
+ BadRequestError,
22
+ APIConnectionError,
23
+ AuthenticationError,
24
+ InternalServerError,
25
+ PermissionDeniedError,
26
+ UnprocessableEntityError,
27
+ APIResponseValidationError,
28
+ )
29
+ from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
30
+ from ._utils._logs import setup_logging as _setup_logging
31
+
32
+ __all__ = [
33
+ "types",
34
+ "__version__",
35
+ "__title__",
36
+ "NoneType",
37
+ "Transport",
38
+ "ProxiesTypes",
39
+ "NotGiven",
40
+ "NOT_GIVEN",
41
+ "Omit",
42
+ "MortaError",
43
+ "APIError",
44
+ "APIStatusError",
45
+ "APITimeoutError",
46
+ "APIConnectionError",
47
+ "APIResponseValidationError",
48
+ "BadRequestError",
49
+ "AuthenticationError",
50
+ "PermissionDeniedError",
51
+ "NotFoundError",
52
+ "ConflictError",
53
+ "UnprocessableEntityError",
54
+ "RateLimitError",
55
+ "InternalServerError",
56
+ "Timeout",
57
+ "RequestOptions",
58
+ "Client",
59
+ "AsyncClient",
60
+ "Stream",
61
+ "AsyncStream",
62
+ "Morta",
63
+ "AsyncMorta",
64
+ "file_from_path",
65
+ "BaseModel",
66
+ "DEFAULT_TIMEOUT",
67
+ "DEFAULT_MAX_RETRIES",
68
+ "DEFAULT_CONNECTION_LIMITS",
69
+ "DefaultHttpxClient",
70
+ "DefaultAsyncHttpxClient",
71
+ "DefaultAioHttpClient",
72
+ ]
73
+
74
+ if not _t.TYPE_CHECKING:
75
+ from ._utils._resources_proxy import resources as resources
76
+
77
+ _setup_logging()
78
+
79
+ # Update the __module__ attribute for exported symbols so that
80
+ # error messages point to this module instead of the module
81
+ # it was originally defined in, e.g.
82
+ # morta._exceptions.NotFoundError -> morta.NotFoundError
83
+ __locals = locals()
84
+ for __name in __all__:
85
+ if not __name.startswith("__"):
86
+ try:
87
+ __locals[__name].__module__ = "morta"
88
+ except (TypeError, AttributeError):
89
+ # Some of our exported symbols are builtins which we can't set attributes for.
90
+ pass