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