athena-intelligence 0.1.262__tar.gz → 0.1.263__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of athena-intelligence might be problematic. Click here for more details.

Files changed (154) hide show
  1. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/__init__.py +6 -0
  4. athena_intelligence-0.1.263/src/athena/assets/client.py +519 -0
  5. athena_intelligence-0.1.263/src/athena/assets/raw_client.py +757 -0
  6. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/client_wrapper.py +2 -2
  7. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/__init__.py +6 -0
  8. athena_intelligence-0.1.263/src/athena/types/create_project_response_out.py +46 -0
  9. athena_intelligence-0.1.263/src/athena/types/edit_project_response_out.py +46 -0
  10. athena_intelligence-0.1.262/src/athena/assets/client.py +0 -223
  11. athena_intelligence-0.1.262/src/athena/assets/raw_client.py +0 -310
  12. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/README.md +0 -0
  13. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/__init__.py +0 -0
  14. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/client.py +0 -0
  15. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/drive/__init__.py +0 -0
  16. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/drive/client.py +0 -0
  17. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/drive/raw_client.py +0 -0
  18. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/general/__init__.py +0 -0
  19. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/general/client.py +0 -0
  20. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/general/raw_client.py +0 -0
  21. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/raw_client.py +0 -0
  22. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/research/__init__.py +0 -0
  23. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/research/client.py +0 -0
  24. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/research/raw_client.py +0 -0
  25. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/sql/__init__.py +0 -0
  26. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/sql/client.py +0 -0
  27. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/agents/sql/raw_client.py +0 -0
  28. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/aop/__init__.py +0 -0
  29. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/aop/client.py +0 -0
  30. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/aop/raw_client.py +0 -0
  31. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/assets/__init__.py +0 -0
  32. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/base_client.py +0 -0
  33. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/client.py +0 -0
  34. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/__init__.py +0 -0
  35. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/api_error.py +0 -0
  36. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/datetime_utils.py +0 -0
  37. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/file.py +0 -0
  38. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/force_multipart.py +0 -0
  39. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/http_client.py +0 -0
  40. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/http_response.py +0 -0
  41. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/jsonable_encoder.py +0 -0
  42. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/pydantic_utilities.py +0 -0
  43. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/query_encoder.py +0 -0
  44. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/remove_none_from_dict.py +0 -0
  45. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/request_options.py +0 -0
  46. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/core/serialization.py +0 -0
  47. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/environment.py +0 -0
  48. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/__init__.py +0 -0
  49. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/bad_request_error.py +0 -0
  50. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/content_too_large_error.py +0 -0
  51. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/internal_server_error.py +0 -0
  52. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/not_found_error.py +0 -0
  53. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/unauthorized_error.py +0 -0
  54. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/unprocessable_entity_error.py +0 -0
  55. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/errors/unsupported_media_type_error.py +0 -0
  56. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/py.typed +0 -0
  57. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/query/__init__.py +0 -0
  58. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/query/client.py +0 -0
  59. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/query/raw_client.py +0 -0
  60. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/query/types/__init__.py +0 -0
  61. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/query/types/query_execute_request_database_asset_ids.py +0 -0
  62. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/threads/__init__.py +0 -0
  63. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/threads/client.py +0 -0
  64. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/threads/raw_client.py +0 -0
  65. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/__init__.py +0 -0
  66. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/calendar/__init__.py +0 -0
  67. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/calendar/client.py +0 -0
  68. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/calendar/raw_client.py +0 -0
  69. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/client.py +0 -0
  70. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/email/__init__.py +0 -0
  71. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/email/client.py +0 -0
  72. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/email/raw_client.py +0 -0
  73. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/raw_client.py +0 -0
  74. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/sheets/__init__.py +0 -0
  75. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/sheets/client.py +0 -0
  76. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/sheets/raw_client.py +0 -0
  77. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/sheets/types/__init__.py +0 -0
  78. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/sheets/types/update_sheet_range_request_values_item_item.py +0 -0
  79. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/structured_data_extractor/__init__.py +0 -0
  80. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/structured_data_extractor/client.py +0 -0
  81. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/structured_data_extractor/raw_client.py +0 -0
  82. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/tasks/__init__.py +0 -0
  83. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/tasks/client.py +0 -0
  84. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/tasks/raw_client.py +0 -0
  85. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/types/__init__.py +0 -0
  86. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
  87. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/aop_async_execute_response_out.py +0 -0
  88. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/aop_execute_request_in.py +0 -0
  89. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/aop_execute_response_out.py +0 -0
  90. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/asset_content_request_out.py +0 -0
  91. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/asset_node.py +0 -0
  92. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/asset_screenshot_response_out.py +0 -0
  93. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/backgroundcolor.py +0 -0
  94. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/border_model.py +0 -0
  95. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/border_style.py +0 -0
  96. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/borders_model.py +0 -0
  97. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/cell_format.py +0 -0
  98. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/cell_format_horizontal_alignment.py +0 -0
  99. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/cell_format_vertical_alignment.py +0 -0
  100. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/chunk.py +0 -0
  101. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/chunk_content_item.py +0 -0
  102. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/chunk_result.py +0 -0
  103. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/chunk_result_chunk_id.py +0 -0
  104. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/color.py +0 -0
  105. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/content.py +0 -0
  106. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/conversation_asset_info.py +0 -0
  107. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/conversation_message.py +0 -0
  108. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/conversation_result.py +0 -0
  109. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/create_new_sheet_tab_response.py +0 -0
  110. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/custom_agent_response.py +0 -0
  111. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/data_frame_request_out.py +0 -0
  112. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
  113. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
  114. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/data_frame_request_out_index_item.py +0 -0
  115. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/data_frame_unknown_format_error.py +0 -0
  116. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/dimension_properties.py +0 -0
  117. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/document_chunk.py +0 -0
  118. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/drive_agent_response.py +0 -0
  119. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/file_chunk_request_out.py +0 -0
  120. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/file_too_large_error.py +0 -0
  121. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/folder_response.py +0 -0
  122. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_config.py +0 -0
  123. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_config_enabled_tools_item.py +0 -0
  124. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_request.py +0 -0
  125. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_response.py +0 -0
  126. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_response_message.py +0 -0
  127. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/general_agent_response_message_kwargs.py +0 -0
  128. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/get_table_response.py +0 -0
  129. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/grid_range.py +0 -0
  130. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/id.py +0 -0
  131. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/image_url_content.py +0 -0
  132. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/input_message.py +0 -0
  133. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/input_message_content_item.py +0 -0
  134. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/number_format_model.py +0 -0
  135. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/number_format_type.py +0 -0
  136. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/paginated_assets_out.py +0 -0
  137. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/prompt_message.py +0 -0
  138. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/public_asset_out.py +0 -0
  139. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/research_agent_response.py +0 -0
  140. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/save_asset_request_out.py +0 -0
  141. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/sheet.py +0 -0
  142. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/sheet_operation_response.py +0 -0
  143. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/sql_agent_response.py +0 -0
  144. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/structured_data_extractor_response.py +0 -0
  145. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/tabcolor.py +0 -0
  146. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/table_row_data.py +0 -0
  147. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/text_content.py +0 -0
  148. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/text_format_model.py +0 -0
  149. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/textrotation.py +0 -0
  150. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/theme_color.py +0 -0
  151. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/thread_status_response_out.py +0 -0
  152. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/type.py +0 -0
  153. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/types/wrap_strategy.py +0 -0
  154. {athena_intelligence-0.1.262 → athena_intelligence-0.1.263}/src/athena/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.262
3
+ Version: 0.1.263
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ name = "athena-intelligence"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "athena-intelligence"
6
- version = "0.1.262"
6
+ version = "0.1.263"
7
7
  description = "Athena Intelligence Python Library"
8
8
  readme = "README.md"
9
9
  authors = []
@@ -32,6 +32,7 @@ if typing.TYPE_CHECKING:
32
32
  ConversationMessage,
33
33
  ConversationResult,
34
34
  CreateNewSheetTabResponse,
35
+ CreateProjectResponseOut,
35
36
  CustomAgentResponse,
36
37
  DataFrameRequestOut,
37
38
  DataFrameRequestOutColumnsItem,
@@ -41,6 +42,7 @@ if typing.TYPE_CHECKING:
41
42
  DimensionProperties,
42
43
  DocumentChunk,
43
44
  DriveAgentResponse,
45
+ EditProjectResponseOut,
44
46
  FileChunkRequestOut,
45
47
  FileTooLargeError,
46
48
  FolderResponse,
@@ -125,6 +127,7 @@ _dynamic_imports: typing.Dict[str, str] = {
125
127
  "ConversationMessage": ".types",
126
128
  "ConversationResult": ".types",
127
129
  "CreateNewSheetTabResponse": ".types",
130
+ "CreateProjectResponseOut": ".types",
128
131
  "CustomAgentResponse": ".types",
129
132
  "DataFrameRequestOut": ".types",
130
133
  "DataFrameRequestOutColumnsItem": ".types",
@@ -134,6 +137,7 @@ _dynamic_imports: typing.Dict[str, str] = {
134
137
  "DimensionProperties": ".types",
135
138
  "DocumentChunk": ".types",
136
139
  "DriveAgentResponse": ".types",
140
+ "EditProjectResponseOut": ".types",
137
141
  "FileChunkRequestOut": ".types",
138
142
  "FileTooLargeError": ".types",
139
143
  "FolderResponse": ".types",
@@ -240,6 +244,7 @@ __all__ = [
240
244
  "ConversationMessage",
241
245
  "ConversationResult",
242
246
  "CreateNewSheetTabResponse",
247
+ "CreateProjectResponseOut",
243
248
  "CustomAgentResponse",
244
249
  "DataFrameRequestOut",
245
250
  "DataFrameRequestOutColumnsItem",
@@ -249,6 +254,7 @@ __all__ = [
249
254
  "DimensionProperties",
250
255
  "DocumentChunk",
251
256
  "DriveAgentResponse",
257
+ "EditProjectResponseOut",
252
258
  "FileChunkRequestOut",
253
259
  "FileTooLargeError",
254
260
  "FolderResponse",
@@ -0,0 +1,519 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
6
+ from ..core.request_options import RequestOptions
7
+ from ..types.create_project_response_out import CreateProjectResponseOut
8
+ from ..types.edit_project_response_out import EditProjectResponseOut
9
+ from ..types.paginated_assets_out import PaginatedAssetsOut
10
+ from ..types.public_asset_out import PublicAssetOut
11
+ from .raw_client import AsyncRawAssetsClient, RawAssetsClient
12
+
13
+ # this is used as the default value for optional parameters
14
+ OMIT = typing.cast(typing.Any, ...)
15
+
16
+
17
+ class AssetsClient:
18
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
19
+ self._raw_client = RawAssetsClient(client_wrapper=client_wrapper)
20
+
21
+ @property
22
+ def with_raw_response(self) -> RawAssetsClient:
23
+ """
24
+ Retrieves a raw implementation of this client that returns raw responses.
25
+
26
+ Returns
27
+ -------
28
+ RawAssetsClient
29
+ """
30
+ return self._raw_client
31
+
32
+ def list(
33
+ self,
34
+ *,
35
+ limit: typing.Optional[int] = None,
36
+ offset: typing.Optional[int] = None,
37
+ filters: typing.Optional[str] = None,
38
+ sort: typing.Optional[str] = None,
39
+ request_options: typing.Optional[RequestOptions] = None,
40
+ ) -> PaginatedAssetsOut:
41
+ """
42
+ Retrieve a paginated list of assets with optional filtering and sorting. Assets include documents, presentations, spreadsheets, images, videos, and other file types managed by Athena Intelligence.
43
+
44
+ Parameters
45
+ ----------
46
+ limit : typing.Optional[int]
47
+ Maximum number of assets to return per page (1-500)
48
+
49
+ offset : typing.Optional[int]
50
+ Number of assets to skip for pagination
51
+
52
+ filters : typing.Optional[str]
53
+ JSON string of filter criteria. Supports: created_by_id, created_by_email, tags, created_after/before, updated_after/before, title_substring, is_archived, is_hidden, athena_metadata, media_type, athena_converted_type, athena_original_type, summary_ready, summary_status
54
+
55
+ sort : typing.Optional[str]
56
+ JSON string of sort criteria: [{"field": "updated_at", "direction": "desc"}]. Supported fields: created_by_id, created_by_email, created_at, updated_at, is_archived, is_hidden, summary_ready, summary_status
57
+
58
+ request_options : typing.Optional[RequestOptions]
59
+ Request-specific configuration.
60
+
61
+ Returns
62
+ -------
63
+ PaginatedAssetsOut
64
+ Successfully retrieved paginated list of assets
65
+
66
+ Examples
67
+ --------
68
+ from athena import Athena
69
+
70
+ client = Athena(
71
+ api_key="YOUR_API_KEY",
72
+ )
73
+ client.assets.list(
74
+ limit=1,
75
+ offset=1,
76
+ filters="filters",
77
+ sort="sort",
78
+ )
79
+ """
80
+ _response = self._raw_client.list(
81
+ limit=limit, offset=offset, filters=filters, sort=sort, request_options=request_options
82
+ )
83
+ return _response.data
84
+
85
+ def create_project(
86
+ self,
87
+ *,
88
+ title: str,
89
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
90
+ description: typing.Optional[str] = OMIT,
91
+ parent_folder_id: typing.Optional[str] = OMIT,
92
+ project_type: typing.Optional[str] = OMIT,
93
+ request_options: typing.Optional[RequestOptions] = None,
94
+ ) -> CreateProjectResponseOut:
95
+ """
96
+ Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
97
+
98
+ Parameters
99
+ ----------
100
+ title : str
101
+ The project title
102
+
103
+ custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
104
+ A flexible dictionary for storing custom metadata
105
+
106
+ description : typing.Optional[str]
107
+ Optional project description
108
+
109
+ parent_folder_id : typing.Optional[str]
110
+ Optional parent folder ID
111
+
112
+ project_type : typing.Optional[str]
113
+ User-defined project type (e.g., 'candidate', 'user', 'company')
114
+
115
+ request_options : typing.Optional[RequestOptions]
116
+ Request-specific configuration.
117
+
118
+ Returns
119
+ -------
120
+ CreateProjectResponseOut
121
+ Project created successfully
122
+
123
+ Examples
124
+ --------
125
+ from athena import Athena
126
+
127
+ client = Athena(
128
+ api_key="YOUR_API_KEY",
129
+ )
130
+ client.assets.create_project(
131
+ custom_metadata={
132
+ "email": "john.doe@example.com",
133
+ "phone": "+1-555-0123",
134
+ "source": "linkedin",
135
+ "status": "active",
136
+ },
137
+ description="Candidate profile for senior software engineer position",
138
+ parent_folder_id="asset_folder_123",
139
+ project_type="candidate",
140
+ title="John Doe - Software Engineer",
141
+ )
142
+ """
143
+ _response = self._raw_client.create_project(
144
+ title=title,
145
+ custom_metadata=custom_metadata,
146
+ description=description,
147
+ parent_folder_id=parent_folder_id,
148
+ project_type=project_type,
149
+ request_options=request_options,
150
+ )
151
+ return _response.data
152
+
153
+ def edit_project(
154
+ self,
155
+ *,
156
+ asset_id: str,
157
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
158
+ description: typing.Optional[str] = OMIT,
159
+ parent_folder_id: typing.Optional[str] = OMIT,
160
+ project_type: typing.Optional[str] = OMIT,
161
+ title: typing.Optional[str] = OMIT,
162
+ request_options: typing.Optional[RequestOptions] = None,
163
+ ) -> EditProjectResponseOut:
164
+ """
165
+ Edit an existing project's metadata. All fields are optional - only provided fields will be updated. Custom metadata is merged with existing metadata (new keys added, existing keys updated).
166
+
167
+ Parameters
168
+ ----------
169
+ asset_id : str
170
+ The ID of the project to edit
171
+
172
+ custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
173
+ Custom metadata to merge with existing metadata (optional). New keys are added, existing keys are updated.
174
+
175
+ description : typing.Optional[str]
176
+ New project description (optional)
177
+
178
+ parent_folder_id : typing.Optional[str]
179
+ New parent folder ID (optional)
180
+
181
+ project_type : typing.Optional[str]
182
+ New project type (optional, e.g., 'candidate', 'user', 'company')
183
+
184
+ title : typing.Optional[str]
185
+ New project title (optional)
186
+
187
+ request_options : typing.Optional[RequestOptions]
188
+ Request-specific configuration.
189
+
190
+ Returns
191
+ -------
192
+ EditProjectResponseOut
193
+ Project edited successfully
194
+
195
+ Examples
196
+ --------
197
+ from athena import Athena
198
+
199
+ client = Athena(
200
+ api_key="YOUR_API_KEY",
201
+ )
202
+ client.assets.edit_project(
203
+ asset_id="asset_project_abc123",
204
+ custom_metadata={"interview_date": "2024-03-15", "status": "interviewed"},
205
+ description="Updated candidate profile",
206
+ project_type="candidate",
207
+ title="Jane Smith - Senior Engineer",
208
+ )
209
+ """
210
+ _response = self._raw_client.edit_project(
211
+ asset_id=asset_id,
212
+ custom_metadata=custom_metadata,
213
+ description=description,
214
+ parent_folder_id=parent_folder_id,
215
+ project_type=project_type,
216
+ title=title,
217
+ request_options=request_options,
218
+ )
219
+ return _response.data
220
+
221
+ def get(self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> PublicAssetOut:
222
+ """
223
+ Retrieve a single asset by its ID. Returns comprehensive metadata including creation info, tags, timestamps, media type, and AI-generated summary.
224
+
225
+ Parameters
226
+ ----------
227
+ asset_id : str
228
+
229
+ request_options : typing.Optional[RequestOptions]
230
+ Request-specific configuration.
231
+
232
+ Returns
233
+ -------
234
+ PublicAssetOut
235
+ Successfully retrieved asset
236
+
237
+ Examples
238
+ --------
239
+ from athena import Athena
240
+
241
+ client = Athena(
242
+ api_key="YOUR_API_KEY",
243
+ )
244
+ client.assets.get(
245
+ asset_id="asset_id",
246
+ )
247
+ """
248
+ _response = self._raw_client.get(asset_id, request_options=request_options)
249
+ return _response.data
250
+
251
+
252
+ class AsyncAssetsClient:
253
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
254
+ self._raw_client = AsyncRawAssetsClient(client_wrapper=client_wrapper)
255
+
256
+ @property
257
+ def with_raw_response(self) -> AsyncRawAssetsClient:
258
+ """
259
+ Retrieves a raw implementation of this client that returns raw responses.
260
+
261
+ Returns
262
+ -------
263
+ AsyncRawAssetsClient
264
+ """
265
+ return self._raw_client
266
+
267
+ async def list(
268
+ self,
269
+ *,
270
+ limit: typing.Optional[int] = None,
271
+ offset: typing.Optional[int] = None,
272
+ filters: typing.Optional[str] = None,
273
+ sort: typing.Optional[str] = None,
274
+ request_options: typing.Optional[RequestOptions] = None,
275
+ ) -> PaginatedAssetsOut:
276
+ """
277
+ Retrieve a paginated list of assets with optional filtering and sorting. Assets include documents, presentations, spreadsheets, images, videos, and other file types managed by Athena Intelligence.
278
+
279
+ Parameters
280
+ ----------
281
+ limit : typing.Optional[int]
282
+ Maximum number of assets to return per page (1-500)
283
+
284
+ offset : typing.Optional[int]
285
+ Number of assets to skip for pagination
286
+
287
+ filters : typing.Optional[str]
288
+ JSON string of filter criteria. Supports: created_by_id, created_by_email, tags, created_after/before, updated_after/before, title_substring, is_archived, is_hidden, athena_metadata, media_type, athena_converted_type, athena_original_type, summary_ready, summary_status
289
+
290
+ sort : typing.Optional[str]
291
+ JSON string of sort criteria: [{"field": "updated_at", "direction": "desc"}]. Supported fields: created_by_id, created_by_email, created_at, updated_at, is_archived, is_hidden, summary_ready, summary_status
292
+
293
+ request_options : typing.Optional[RequestOptions]
294
+ Request-specific configuration.
295
+
296
+ Returns
297
+ -------
298
+ PaginatedAssetsOut
299
+ Successfully retrieved paginated list of assets
300
+
301
+ Examples
302
+ --------
303
+ import asyncio
304
+
305
+ from athena import AsyncAthena
306
+
307
+ client = AsyncAthena(
308
+ api_key="YOUR_API_KEY",
309
+ )
310
+
311
+
312
+ async def main() -> None:
313
+ await client.assets.list(
314
+ limit=1,
315
+ offset=1,
316
+ filters="filters",
317
+ sort="sort",
318
+ )
319
+
320
+
321
+ asyncio.run(main())
322
+ """
323
+ _response = await self._raw_client.list(
324
+ limit=limit, offset=offset, filters=filters, sort=sort, request_options=request_options
325
+ )
326
+ return _response.data
327
+
328
+ async def create_project(
329
+ self,
330
+ *,
331
+ title: str,
332
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
333
+ description: typing.Optional[str] = OMIT,
334
+ parent_folder_id: typing.Optional[str] = OMIT,
335
+ project_type: typing.Optional[str] = OMIT,
336
+ request_options: typing.Optional[RequestOptions] = None,
337
+ ) -> CreateProjectResponseOut:
338
+ """
339
+ Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
340
+
341
+ Parameters
342
+ ----------
343
+ title : str
344
+ The project title
345
+
346
+ custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
347
+ A flexible dictionary for storing custom metadata
348
+
349
+ description : typing.Optional[str]
350
+ Optional project description
351
+
352
+ parent_folder_id : typing.Optional[str]
353
+ Optional parent folder ID
354
+
355
+ project_type : typing.Optional[str]
356
+ User-defined project type (e.g., 'candidate', 'user', 'company')
357
+
358
+ request_options : typing.Optional[RequestOptions]
359
+ Request-specific configuration.
360
+
361
+ Returns
362
+ -------
363
+ CreateProjectResponseOut
364
+ Project created successfully
365
+
366
+ Examples
367
+ --------
368
+ import asyncio
369
+
370
+ from athena import AsyncAthena
371
+
372
+ client = AsyncAthena(
373
+ api_key="YOUR_API_KEY",
374
+ )
375
+
376
+
377
+ async def main() -> None:
378
+ await client.assets.create_project(
379
+ custom_metadata={
380
+ "email": "john.doe@example.com",
381
+ "phone": "+1-555-0123",
382
+ "source": "linkedin",
383
+ "status": "active",
384
+ },
385
+ description="Candidate profile for senior software engineer position",
386
+ parent_folder_id="asset_folder_123",
387
+ project_type="candidate",
388
+ title="John Doe - Software Engineer",
389
+ )
390
+
391
+
392
+ asyncio.run(main())
393
+ """
394
+ _response = await self._raw_client.create_project(
395
+ title=title,
396
+ custom_metadata=custom_metadata,
397
+ description=description,
398
+ parent_folder_id=parent_folder_id,
399
+ project_type=project_type,
400
+ request_options=request_options,
401
+ )
402
+ return _response.data
403
+
404
+ async def edit_project(
405
+ self,
406
+ *,
407
+ asset_id: str,
408
+ custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
409
+ description: typing.Optional[str] = OMIT,
410
+ parent_folder_id: typing.Optional[str] = OMIT,
411
+ project_type: typing.Optional[str] = OMIT,
412
+ title: typing.Optional[str] = OMIT,
413
+ request_options: typing.Optional[RequestOptions] = None,
414
+ ) -> EditProjectResponseOut:
415
+ """
416
+ Edit an existing project's metadata. All fields are optional - only provided fields will be updated. Custom metadata is merged with existing metadata (new keys added, existing keys updated).
417
+
418
+ Parameters
419
+ ----------
420
+ asset_id : str
421
+ The ID of the project to edit
422
+
423
+ custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
424
+ Custom metadata to merge with existing metadata (optional). New keys are added, existing keys are updated.
425
+
426
+ description : typing.Optional[str]
427
+ New project description (optional)
428
+
429
+ parent_folder_id : typing.Optional[str]
430
+ New parent folder ID (optional)
431
+
432
+ project_type : typing.Optional[str]
433
+ New project type (optional, e.g., 'candidate', 'user', 'company')
434
+
435
+ title : typing.Optional[str]
436
+ New project title (optional)
437
+
438
+ request_options : typing.Optional[RequestOptions]
439
+ Request-specific configuration.
440
+
441
+ Returns
442
+ -------
443
+ EditProjectResponseOut
444
+ Project edited successfully
445
+
446
+ Examples
447
+ --------
448
+ import asyncio
449
+
450
+ from athena import AsyncAthena
451
+
452
+ client = AsyncAthena(
453
+ api_key="YOUR_API_KEY",
454
+ )
455
+
456
+
457
+ async def main() -> None:
458
+ await client.assets.edit_project(
459
+ asset_id="asset_project_abc123",
460
+ custom_metadata={
461
+ "interview_date": "2024-03-15",
462
+ "status": "interviewed",
463
+ },
464
+ description="Updated candidate profile",
465
+ project_type="candidate",
466
+ title="Jane Smith - Senior Engineer",
467
+ )
468
+
469
+
470
+ asyncio.run(main())
471
+ """
472
+ _response = await self._raw_client.edit_project(
473
+ asset_id=asset_id,
474
+ custom_metadata=custom_metadata,
475
+ description=description,
476
+ parent_folder_id=parent_folder_id,
477
+ project_type=project_type,
478
+ title=title,
479
+ request_options=request_options,
480
+ )
481
+ return _response.data
482
+
483
+ async def get(self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> PublicAssetOut:
484
+ """
485
+ Retrieve a single asset by its ID. Returns comprehensive metadata including creation info, tags, timestamps, media type, and AI-generated summary.
486
+
487
+ Parameters
488
+ ----------
489
+ asset_id : str
490
+
491
+ request_options : typing.Optional[RequestOptions]
492
+ Request-specific configuration.
493
+
494
+ Returns
495
+ -------
496
+ PublicAssetOut
497
+ Successfully retrieved asset
498
+
499
+ Examples
500
+ --------
501
+ import asyncio
502
+
503
+ from athena import AsyncAthena
504
+
505
+ client = AsyncAthena(
506
+ api_key="YOUR_API_KEY",
507
+ )
508
+
509
+
510
+ async def main() -> None:
511
+ await client.assets.get(
512
+ asset_id="asset_id",
513
+ )
514
+
515
+
516
+ asyncio.run(main())
517
+ """
518
+ _response = await self._raw_client.get(asset_id, request_options=request_options)
519
+ return _response.data