athena-intelligence 0.1.212__tar.gz → 0.1.214__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 (132) hide show
  1. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/client_wrapper.py +2 -2
  4. athena_intelligence-0.1.214/src/athena/tools/__init__.py +17 -0
  5. athena_intelligence-0.1.214/src/athena/tools/sheets/__init__.py +7 -0
  6. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/sheets/client.py +23 -20
  7. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/sheets/raw_client.py +32 -18
  8. athena_intelligence-0.1.214/src/athena/tools/sheets/types/__init__.py +7 -0
  9. athena_intelligence-0.1.214/src/athena/tools/sheets/types/insert_table_row_request_row_data_item_value.py +5 -0
  10. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/get_table_response.py +7 -2
  11. athena_intelligence-0.1.212/src/athena/tools/__init__.py +0 -8
  12. athena_intelligence-0.1.212/src/athena/tools/tasks/__init__.py +0 -4
  13. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/README.md +0 -0
  14. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/__init__.py +0 -0
  15. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/__init__.py +0 -0
  16. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/client.py +0 -0
  17. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/drive/__init__.py +0 -0
  18. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/drive/client.py +0 -0
  19. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/drive/raw_client.py +0 -0
  20. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/general/__init__.py +0 -0
  21. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/general/client.py +0 -0
  22. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/general/raw_client.py +0 -0
  23. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/raw_client.py +0 -0
  24. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/research/__init__.py +0 -0
  25. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/research/client.py +0 -0
  26. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/research/raw_client.py +0 -0
  27. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/sql/__init__.py +0 -0
  28. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/sql/client.py +0 -0
  29. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/agents/sql/raw_client.py +0 -0
  30. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/aop/__init__.py +0 -0
  31. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/aop/client.py +0 -0
  32. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/aop/raw_client.py +0 -0
  33. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/assets/__init__.py +0 -0
  34. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/assets/client.py +0 -0
  35. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/assets/raw_client.py +0 -0
  36. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/base_client.py +0 -0
  37. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/client.py +0 -0
  38. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/__init__.py +0 -0
  39. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/api_error.py +0 -0
  40. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/datetime_utils.py +0 -0
  41. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/file.py +0 -0
  42. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/force_multipart.py +0 -0
  43. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/http_client.py +0 -0
  44. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/http_response.py +0 -0
  45. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/jsonable_encoder.py +0 -0
  46. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/pydantic_utilities.py +0 -0
  47. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/query_encoder.py +0 -0
  48. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/remove_none_from_dict.py +0 -0
  49. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/request_options.py +0 -0
  50. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/core/serialization.py +0 -0
  51. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/environment.py +0 -0
  52. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/__init__.py +0 -0
  53. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/bad_request_error.py +0 -0
  54. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/content_too_large_error.py +0 -0
  55. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/internal_server_error.py +0 -0
  56. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/not_found_error.py +0 -0
  57. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/unauthorized_error.py +0 -0
  58. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/unprocessable_entity_error.py +0 -0
  59. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/errors/unsupported_media_type_error.py +0 -0
  60. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/py.typed +0 -0
  61. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/query/__init__.py +0 -0
  62. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/query/client.py +0 -0
  63. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/query/raw_client.py +0 -0
  64. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/query/types/__init__.py +0 -0
  65. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/query/types/query_execute_request_database_asset_ids.py +0 -0
  66. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/threads/__init__.py +0 -0
  67. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/threads/client.py +0 -0
  68. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/threads/raw_client.py +0 -0
  69. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/calendar/__init__.py +0 -0
  70. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/calendar/client.py +0 -0
  71. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/calendar/raw_client.py +0 -0
  72. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/client.py +0 -0
  73. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/email/__init__.py +0 -0
  74. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/email/client.py +0 -0
  75. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/email/raw_client.py +0 -0
  76. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/raw_client.py +0 -0
  77. {athena_intelligence-0.1.212/src/athena/tools/sheets → athena_intelligence-0.1.214/src/athena/tools/structured_data_extractor}/__init__.py +0 -0
  78. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/structured_data_extractor/client.py +0 -0
  79. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/structured_data_extractor/raw_client.py +0 -0
  80. {athena_intelligence-0.1.212/src/athena/tools/structured_data_extractor → athena_intelligence-0.1.214/src/athena/tools/tasks}/__init__.py +0 -0
  81. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/tasks/client.py +0 -0
  82. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/tasks/raw_client.py +0 -0
  83. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/types/__init__.py +0 -0
  84. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
  85. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/__init__.py +0 -0
  86. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/aop_async_execute_response_out.py +0 -0
  87. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/aop_execute_request_in.py +0 -0
  88. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/aop_execute_response_out.py +0 -0
  89. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/asset_content_request_out.py +0 -0
  90. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/asset_node.py +0 -0
  91. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/asset_not_found_error.py +0 -0
  92. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/asset_screenshot_response_out.py +0 -0
  93. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/chunk.py +0 -0
  94. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/chunk_content_item.py +0 -0
  95. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/chunk_result.py +0 -0
  96. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/chunk_result_chunk_id.py +0 -0
  97. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/content.py +0 -0
  98. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/conversation_asset_info.py +0 -0
  99. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/create_new_sheet_tab_response.py +0 -0
  100. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/custom_agent_response.py +0 -0
  101. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/data_frame_request_out.py +0 -0
  102. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
  103. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
  104. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/data_frame_request_out_index_item.py +0 -0
  105. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/data_frame_unknown_format_error.py +0 -0
  106. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/document_chunk.py +0 -0
  107. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/drive_agent_response.py +0 -0
  108. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/file_chunk_request_out.py +0 -0
  109. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/file_too_large_error.py +0 -0
  110. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/folder_response.py +0 -0
  111. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_config.py +0 -0
  112. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_config_enabled_tools_item.py +0 -0
  113. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_request.py +0 -0
  114. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_response.py +0 -0
  115. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_response_message.py +0 -0
  116. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/general_agent_response_message_kwargs.py +0 -0
  117. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/id.py +0 -0
  118. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/image_url_content.py +0 -0
  119. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/input_message.py +0 -0
  120. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/input_message_content_item.py +0 -0
  121. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/paginated_assets_out.py +0 -0
  122. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/prompt_message.py +0 -0
  123. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/public_asset_out.py +0 -0
  124. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/research_agent_response.py +0 -0
  125. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/save_asset_request_out.py +0 -0
  126. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/sheet_operation_response.py +0 -0
  127. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/sql_agent_response.py +0 -0
  128. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/structured_data_extractor_response.py +0 -0
  129. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/text_content.py +0 -0
  130. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/thread_status_response_out.py +0 -0
  131. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/src/athena/types/type.py +0 -0
  132. {athena_intelligence-0.1.212 → athena_intelligence-0.1.214}/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.212
3
+ Version: 0.1.214
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.212"
6
+ version = "0.1.214"
7
7
  description = "Athena Intelligence Python Library"
8
8
  readme = "README.md"
9
9
  authors = []
@@ -22,10 +22,10 @@ class BaseClientWrapper:
22
22
 
23
23
  def get_headers(self) -> typing.Dict[str, str]:
24
24
  headers: typing.Dict[str, str] = {
25
- "User-Agent": "athena-intelligence/0.1.212",
25
+ "User-Agent": "athena-intelligence/0.1.214",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "athena-intelligence",
28
- "X-Fern-SDK-Version": "0.1.212",
28
+ "X-Fern-SDK-Version": "0.1.214",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["X-API-KEY"] = self.api_key
@@ -0,0 +1,17 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import ToolsDataFrameRequestColumnsItem
6
+ from . import calendar, email, sheets, structured_data_extractor, tasks
7
+ from .sheets import InsertTableRowRequestRowDataItemValue
8
+
9
+ __all__ = [
10
+ "InsertTableRowRequestRowDataItemValue",
11
+ "ToolsDataFrameRequestColumnsItem",
12
+ "calendar",
13
+ "email",
14
+ "sheets",
15
+ "structured_data_extractor",
16
+ "tasks",
17
+ ]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import InsertTableRowRequestRowDataItemValue
6
+
7
+ __all__ = ["InsertTableRowRequestRowDataItemValue"]
@@ -8,6 +8,7 @@ from ...types.create_new_sheet_tab_response import CreateNewSheetTabResponse
8
8
  from ...types.get_table_response import GetTableResponse
9
9
  from ...types.sheet_operation_response import SheetOperationResponse
10
10
  from .raw_client import AsyncRawSheetsClient, RawSheetsClient
11
+ from .types.insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
11
12
 
12
13
  # this is used as the default value for optional parameters
13
14
  OMIT = typing.cast(typing.Any, ...)
@@ -884,7 +885,7 @@ class SheetsClient:
884
885
  )
885
886
  return _response.data
886
887
 
887
- def get_table_rows(
888
+ def get_table(
888
889
  self,
889
890
  *,
890
891
  asset_id: str,
@@ -921,12 +922,12 @@ class SheetsClient:
921
922
  client = Athena(
922
923
  api_key="YOUR_API_KEY",
923
924
  )
924
- client.tools.sheets.get_table_rows(
925
+ client.tools.sheets.get_table(
925
926
  asset_id="asset_id",
926
927
  table_name="table_name",
927
928
  )
928
929
  """
929
- _response = self._raw_client.get_table_rows(
930
+ _response = self._raw_client.get_table(
930
931
  asset_id=asset_id, table_name=table_name, table_id=table_id, request_options=request_options
931
932
  )
932
933
  return _response.data
@@ -935,9 +936,9 @@ class SheetsClient:
935
936
  self,
936
937
  *,
937
938
  asset_id: str,
938
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
939
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
940
+ table_name: str,
939
941
  table_id: typing.Optional[str] = OMIT,
940
- table_name: typing.Optional[str] = OMIT,
941
942
  request_options: typing.Optional[RequestOptions] = None,
942
943
  ) -> SheetOperationResponse:
943
944
  """
@@ -948,15 +949,15 @@ class SheetsClient:
948
949
  asset_id : str
949
950
  The ID of the spreadsheet asset
950
951
 
951
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
952
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
952
953
  Array of row objects where keys are column names and values are cell values
953
954
 
955
+ table_name : str
956
+ Table name to insert row into
957
+
954
958
  table_id : typing.Optional[str]
955
959
  Table ID to insert row into
956
960
 
957
- table_name : typing.Optional[str]
958
- Table name to insert row into
959
-
960
961
  request_options : typing.Optional[RequestOptions]
961
962
  Request-specific configuration.
962
963
 
@@ -975,13 +976,14 @@ class SheetsClient:
975
976
  client.tools.sheets.insert_table_row(
976
977
  asset_id="asset_id",
977
978
  row_data=[{}],
979
+ table_name="table_name",
978
980
  )
979
981
  """
980
982
  _response = self._raw_client.insert_table_row(
981
983
  asset_id=asset_id,
982
984
  row_data=row_data,
983
- table_id=table_id,
984
985
  table_name=table_name,
986
+ table_id=table_id,
985
987
  request_options=request_options,
986
988
  )
987
989
  return _response.data
@@ -2050,7 +2052,7 @@ class AsyncSheetsClient:
2050
2052
  )
2051
2053
  return _response.data
2052
2054
 
2053
- async def get_table_rows(
2055
+ async def get_table(
2054
2056
  self,
2055
2057
  *,
2056
2058
  asset_id: str,
@@ -2092,7 +2094,7 @@ class AsyncSheetsClient:
2092
2094
 
2093
2095
 
2094
2096
  async def main() -> None:
2095
- await client.tools.sheets.get_table_rows(
2097
+ await client.tools.sheets.get_table(
2096
2098
  asset_id="asset_id",
2097
2099
  table_name="table_name",
2098
2100
  )
@@ -2100,7 +2102,7 @@ class AsyncSheetsClient:
2100
2102
 
2101
2103
  asyncio.run(main())
2102
2104
  """
2103
- _response = await self._raw_client.get_table_rows(
2105
+ _response = await self._raw_client.get_table(
2104
2106
  asset_id=asset_id, table_name=table_name, table_id=table_id, request_options=request_options
2105
2107
  )
2106
2108
  return _response.data
@@ -2109,9 +2111,9 @@ class AsyncSheetsClient:
2109
2111
  self,
2110
2112
  *,
2111
2113
  asset_id: str,
2112
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2114
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
2115
+ table_name: str,
2113
2116
  table_id: typing.Optional[str] = OMIT,
2114
- table_name: typing.Optional[str] = OMIT,
2115
2117
  request_options: typing.Optional[RequestOptions] = None,
2116
2118
  ) -> SheetOperationResponse:
2117
2119
  """
@@ -2122,15 +2124,15 @@ class AsyncSheetsClient:
2122
2124
  asset_id : str
2123
2125
  The ID of the spreadsheet asset
2124
2126
 
2125
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2127
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
2126
2128
  Array of row objects where keys are column names and values are cell values
2127
2129
 
2130
+ table_name : str
2131
+ Table name to insert row into
2132
+
2128
2133
  table_id : typing.Optional[str]
2129
2134
  Table ID to insert row into
2130
2135
 
2131
- table_name : typing.Optional[str]
2132
- Table name to insert row into
2133
-
2134
2136
  request_options : typing.Optional[RequestOptions]
2135
2137
  Request-specific configuration.
2136
2138
 
@@ -2154,6 +2156,7 @@ class AsyncSheetsClient:
2154
2156
  await client.tools.sheets.insert_table_row(
2155
2157
  asset_id="asset_id",
2156
2158
  row_data=[{}],
2159
+ table_name="table_name",
2157
2160
  )
2158
2161
 
2159
2162
 
@@ -2162,8 +2165,8 @@ class AsyncSheetsClient:
2162
2165
  _response = await self._raw_client.insert_table_row(
2163
2166
  asset_id=asset_id,
2164
2167
  row_data=row_data,
2165
- table_id=table_id,
2166
2168
  table_name=table_name,
2169
+ table_id=table_id,
2167
2170
  request_options=request_options,
2168
2171
  )
2169
2172
  return _response.data
@@ -8,10 +8,12 @@ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8
8
  from ...core.http_response import AsyncHttpResponse, HttpResponse
9
9
  from ...core.pydantic_utilities import parse_obj_as
10
10
  from ...core.request_options import RequestOptions
11
+ from ...core.serialization import convert_and_respect_annotation_metadata
11
12
  from ...errors.unprocessable_entity_error import UnprocessableEntityError
12
13
  from ...types.create_new_sheet_tab_response import CreateNewSheetTabResponse
13
14
  from ...types.get_table_response import GetTableResponse
14
15
  from ...types.sheet_operation_response import SheetOperationResponse
16
+ from .types.insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
15
17
 
16
18
  # this is used as the default value for optional parameters
17
19
  OMIT = typing.cast(typing.Any, ...)
@@ -1141,7 +1143,7 @@ class RawSheetsClient:
1141
1143
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
1142
1144
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
1143
1145
 
1144
- def get_table_rows(
1146
+ def get_table(
1145
1147
  self,
1146
1148
  *,
1147
1149
  asset_id: str,
@@ -1172,7 +1174,7 @@ class RawSheetsClient:
1172
1174
  Successful Response
1173
1175
  """
1174
1176
  _response = self._client_wrapper.httpx_client.request(
1175
- "api/v0/tools/sheets/table/get_rows",
1177
+ "api/v0/tools/sheets/table/get",
1176
1178
  method="POST",
1177
1179
  json={
1178
1180
  "asset_id": asset_id,
@@ -1215,9 +1217,9 @@ class RawSheetsClient:
1215
1217
  self,
1216
1218
  *,
1217
1219
  asset_id: str,
1218
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
1220
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
1221
+ table_name: str,
1219
1222
  table_id: typing.Optional[str] = OMIT,
1220
- table_name: typing.Optional[str] = OMIT,
1221
1223
  request_options: typing.Optional[RequestOptions] = None,
1222
1224
  ) -> HttpResponse[SheetOperationResponse]:
1223
1225
  """
@@ -1228,15 +1230,15 @@ class RawSheetsClient:
1228
1230
  asset_id : str
1229
1231
  The ID of the spreadsheet asset
1230
1232
 
1231
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
1233
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
1232
1234
  Array of row objects where keys are column names and values are cell values
1233
1235
 
1236
+ table_name : str
1237
+ Table name to insert row into
1238
+
1234
1239
  table_id : typing.Optional[str]
1235
1240
  Table ID to insert row into
1236
1241
 
1237
- table_name : typing.Optional[str]
1238
- Table name to insert row into
1239
-
1240
1242
  request_options : typing.Optional[RequestOptions]
1241
1243
  Request-specific configuration.
1242
1244
 
@@ -1250,7 +1252,13 @@ class RawSheetsClient:
1250
1252
  method="POST",
1251
1253
  json={
1252
1254
  "asset_id": asset_id,
1253
- "row_data": row_data,
1255
+ "row_data": convert_and_respect_annotation_metadata(
1256
+ object_=row_data,
1257
+ annotation=typing.Sequence[
1258
+ typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
1259
+ ],
1260
+ direction="write",
1261
+ ),
1254
1262
  "table_id": table_id,
1255
1263
  "table_name": table_name,
1256
1264
  },
@@ -2506,7 +2514,7 @@ class AsyncRawSheetsClient:
2506
2514
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
2507
2515
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
2508
2516
 
2509
- async def get_table_rows(
2517
+ async def get_table(
2510
2518
  self,
2511
2519
  *,
2512
2520
  asset_id: str,
@@ -2537,7 +2545,7 @@ class AsyncRawSheetsClient:
2537
2545
  Successful Response
2538
2546
  """
2539
2547
  _response = await self._client_wrapper.httpx_client.request(
2540
- "api/v0/tools/sheets/table/get_rows",
2548
+ "api/v0/tools/sheets/table/get",
2541
2549
  method="POST",
2542
2550
  json={
2543
2551
  "asset_id": asset_id,
@@ -2580,9 +2588,9 @@ class AsyncRawSheetsClient:
2580
2588
  self,
2581
2589
  *,
2582
2590
  asset_id: str,
2583
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2591
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
2592
+ table_name: str,
2584
2593
  table_id: typing.Optional[str] = OMIT,
2585
- table_name: typing.Optional[str] = OMIT,
2586
2594
  request_options: typing.Optional[RequestOptions] = None,
2587
2595
  ) -> AsyncHttpResponse[SheetOperationResponse]:
2588
2596
  """
@@ -2593,15 +2601,15 @@ class AsyncRawSheetsClient:
2593
2601
  asset_id : str
2594
2602
  The ID of the spreadsheet asset
2595
2603
 
2596
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2604
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
2597
2605
  Array of row objects where keys are column names and values are cell values
2598
2606
 
2607
+ table_name : str
2608
+ Table name to insert row into
2609
+
2599
2610
  table_id : typing.Optional[str]
2600
2611
  Table ID to insert row into
2601
2612
 
2602
- table_name : typing.Optional[str]
2603
- Table name to insert row into
2604
-
2605
2613
  request_options : typing.Optional[RequestOptions]
2606
2614
  Request-specific configuration.
2607
2615
 
@@ -2615,7 +2623,13 @@ class AsyncRawSheetsClient:
2615
2623
  method="POST",
2616
2624
  json={
2617
2625
  "asset_id": asset_id,
2618
- "row_data": row_data,
2626
+ "row_data": convert_and_respect_annotation_metadata(
2627
+ object_=row_data,
2628
+ annotation=typing.Sequence[
2629
+ typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
2630
+ ],
2631
+ direction="write",
2632
+ ),
2619
2633
  "table_id": table_id,
2620
2634
  "table_name": table_name,
2621
2635
  },
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
6
+
7
+ __all__ = ["InsertTableRowRequestRowDataItemValue"]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ InsertTableRowRequestRowDataItemValue = typing.Union[str, int, float, bool]
@@ -12,9 +12,9 @@ class GetTableResponse(UniversalBaseModel):
12
12
  The ID of the spreadsheet asset
13
13
  """
14
14
 
15
- data: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
15
+ columns: typing.List[typing.Dict[str, str]] = pydantic.Field()
16
16
  """
17
- Array of row objects with column names as keys
17
+ Array of column objects with name and other metadata
18
18
  """
19
19
 
20
20
  message: str = pydantic.Field()
@@ -22,6 +22,11 @@ class GetTableResponse(UniversalBaseModel):
22
22
  Success message or error description
23
23
  """
24
24
 
25
+ rows: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
26
+ """
27
+ Array of row objects with column names as keys
28
+ """
29
+
25
30
  success: bool = pydantic.Field()
26
31
  """
27
32
  Whether the operation was successful
@@ -1,8 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- # isort: skip_file
4
-
5
- from .types import ToolsDataFrameRequestColumnsItem
6
- from . import calendar, email, sheets, structured_data_extractor, tasks
7
-
8
- __all__ = ["ToolsDataFrameRequestColumnsItem", "calendar", "email", "sheets", "structured_data_extractor", "tasks"]
@@ -1,4 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- # isort: skip_file
4
-