@athenaintel/sdk 4.3.307

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (899) hide show
  1. package/README.md +592 -0
  2. package/dist/cjs/BaseClient.d.ts +27 -0
  3. package/dist/cjs/BaseClient.js +3 -0
  4. package/dist/cjs/Client.d.ts +32 -0
  5. package/dist/cjs/Client.js +87 -0
  6. package/dist/cjs/api/errors/BadRequestError.d.ts +5 -0
  7. package/dist/cjs/api/errors/BadRequestError.js +50 -0
  8. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +6 -0
  9. package/dist/cjs/api/errors/ContentTooLargeError.js +50 -0
  10. package/dist/cjs/api/errors/ForbiddenError.d.ts +5 -0
  11. package/dist/cjs/api/errors/ForbiddenError.js +50 -0
  12. package/dist/cjs/api/errors/InternalServerError.d.ts +5 -0
  13. package/dist/cjs/api/errors/InternalServerError.js +50 -0
  14. package/dist/cjs/api/errors/NotFoundError.d.ts +5 -0
  15. package/dist/cjs/api/errors/NotFoundError.js +50 -0
  16. package/dist/cjs/api/errors/NotImplementedError.d.ts +5 -0
  17. package/dist/cjs/api/errors/NotImplementedError.js +50 -0
  18. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +5 -0
  19. package/dist/cjs/api/errors/ServiceUnavailableError.js +50 -0
  20. package/dist/cjs/api/errors/UnauthorizedError.d.ts +5 -0
  21. package/dist/cjs/api/errors/UnauthorizedError.js +50 -0
  22. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +5 -0
  23. package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
  24. package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +6 -0
  25. package/dist/cjs/api/errors/UnsupportedMediaTypeError.js +50 -0
  26. package/dist/cjs/api/errors/index.d.ts +10 -0
  27. package/dist/cjs/api/errors/index.js +26 -0
  28. package/dist/cjs/api/index.d.ts +3 -0
  29. package/dist/cjs/api/index.js +19 -0
  30. package/dist/cjs/api/resources/agents/client/Client.d.ts +53 -0
  31. package/dist/cjs/api/resources/agents/client/Client.js +162 -0
  32. package/dist/cjs/api/resources/agents/client/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/agents/client/index.js +17 -0
  34. package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.d.ts +17 -0
  35. package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.js +3 -0
  36. package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/agents/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/agents/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/agents/index.js +18 -0
  40. package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +34 -0
  41. package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +135 -0
  42. package/dist/cjs/api/resources/agents/resources/drive/client/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/agents/resources/drive/client/index.js +17 -0
  44. package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.ts +17 -0
  45. package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.js +3 -0
  46. package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/agents/resources/drive/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/agents/resources/drive/index.js +17 -0
  50. package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +80 -0
  51. package/dist/cjs/api/resources/agents/resources/general/client/Client.js +285 -0
  52. package/dist/cjs/api/resources/agents/resources/general/client/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/agents/resources/general/client/index.js +2 -0
  54. package/dist/cjs/api/resources/agents/resources/general/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/agents/resources/general/index.js +17 -0
  56. package/dist/cjs/api/resources/agents/resources/index.d.ts +7 -0
  57. package/dist/cjs/api/resources/agents/resources/index.js +46 -0
  58. package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +34 -0
  59. package/dist/cjs/api/resources/agents/resources/research/client/Client.js +135 -0
  60. package/dist/cjs/api/resources/agents/resources/research/client/index.d.ts +2 -0
  61. package/dist/cjs/api/resources/agents/resources/research/client/index.js +17 -0
  62. package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.ts +17 -0
  63. package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.js +3 -0
  64. package/dist/cjs/api/resources/agents/resources/research/client/requests/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/agents/resources/research/client/requests/index.js +2 -0
  66. package/dist/cjs/api/resources/agents/resources/research/index.d.ts +1 -0
  67. package/dist/cjs/api/resources/agents/resources/research/index.js +17 -0
  68. package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +34 -0
  69. package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +132 -0
  70. package/dist/cjs/api/resources/agents/resources/sql/client/index.d.ts +2 -0
  71. package/dist/cjs/api/resources/agents/resources/sql/client/index.js +17 -0
  72. package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.ts +17 -0
  73. package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.js +3 -0
  74. package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.d.ts +1 -0
  75. package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.js +2 -0
  76. package/dist/cjs/api/resources/agents/resources/sql/index.d.ts +1 -0
  77. package/dist/cjs/api/resources/agents/resources/sql/index.js +17 -0
  78. package/dist/cjs/api/resources/aop/client/Client.d.ts +60 -0
  79. package/dist/cjs/api/resources/aop/client/Client.js +229 -0
  80. package/dist/cjs/api/resources/aop/client/index.d.ts +1 -0
  81. package/dist/cjs/api/resources/aop/client/index.js +2 -0
  82. package/dist/cjs/api/resources/aop/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/aop/index.js +17 -0
  84. package/dist/cjs/api/resources/assets/client/Client.d.ts +94 -0
  85. package/dist/cjs/api/resources/assets/client/Client.js +368 -0
  86. package/dist/cjs/api/resources/assets/client/index.d.ts +2 -0
  87. package/dist/cjs/api/resources/assets/client/index.js +17 -0
  88. package/dist/cjs/api/resources/assets/client/requests/AssetsListRequest.d.ts +19 -0
  89. package/dist/cjs/api/resources/assets/client/requests/AssetsListRequest.js +3 -0
  90. package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +17 -0
  91. package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.js +3 -0
  92. package/dist/cjs/api/resources/assets/client/requests/CreateProjectRequestIn.d.ts +33 -0
  93. package/dist/cjs/api/resources/assets/client/requests/CreateProjectRequestIn.js +3 -0
  94. package/dist/cjs/api/resources/assets/client/requests/index.d.ts +3 -0
  95. package/dist/cjs/api/resources/assets/client/requests/index.js +2 -0
  96. package/dist/cjs/api/resources/assets/index.d.ts +1 -0
  97. package/dist/cjs/api/resources/assets/index.js +17 -0
  98. package/dist/cjs/api/resources/databases/client/Client.d.ts +166 -0
  99. package/dist/cjs/api/resources/databases/client/Client.js +592 -0
  100. package/dist/cjs/api/resources/databases/client/index.d.ts +2 -0
  101. package/dist/cjs/api/resources/databases/client/index.js +17 -0
  102. package/dist/cjs/api/resources/databases/client/requests/DatabasesSelectRequest.d.ts +19 -0
  103. package/dist/cjs/api/resources/databases/client/requests/DatabasesSelectRequest.js +3 -0
  104. package/dist/cjs/api/resources/databases/client/requests/InsertDataRequest.d.ts +22 -0
  105. package/dist/cjs/api/resources/databases/client/requests/InsertDataRequest.js +3 -0
  106. package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.d.ts +16 -0
  107. package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.js +3 -0
  108. package/dist/cjs/api/resources/databases/client/requests/index.d.ts +3 -0
  109. package/dist/cjs/api/resources/databases/client/requests/index.js +2 -0
  110. package/dist/cjs/api/resources/databases/index.d.ts +1 -0
  111. package/dist/cjs/api/resources/databases/index.js +17 -0
  112. package/dist/cjs/api/resources/index.d.ts +14 -0
  113. package/dist/cjs/api/resources/index.js +53 -0
  114. package/dist/cjs/api/resources/query/client/Client.d.ts +49 -0
  115. package/dist/cjs/api/resources/query/client/Client.js +213 -0
  116. package/dist/cjs/api/resources/query/client/index.d.ts +2 -0
  117. package/dist/cjs/api/resources/query/client/index.js +17 -0
  118. package/dist/cjs/api/resources/query/client/requests/QueryExecuteRequest.d.ts +14 -0
  119. package/dist/cjs/api/resources/query/client/requests/QueryExecuteRequest.js +3 -0
  120. package/dist/cjs/api/resources/query/client/requests/QueryExecuteSnippetRequest.d.ts +9 -0
  121. package/dist/cjs/api/resources/query/client/requests/QueryExecuteSnippetRequest.js +3 -0
  122. package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
  123. package/dist/cjs/api/resources/query/client/requests/index.js +2 -0
  124. package/dist/cjs/api/resources/query/index.d.ts +2 -0
  125. package/dist/cjs/api/resources/query/index.js +18 -0
  126. package/dist/cjs/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.d.ts +4 -0
  127. package/dist/cjs/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.js +3 -0
  128. package/dist/cjs/api/resources/query/types/index.d.ts +1 -0
  129. package/dist/cjs/api/resources/query/types/index.js +17 -0
  130. package/dist/cjs/api/resources/threads/client/Client.d.ts +30 -0
  131. package/dist/cjs/api/resources/threads/client/Client.js +134 -0
  132. package/dist/cjs/api/resources/threads/client/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/threads/client/index.js +2 -0
  134. package/dist/cjs/api/resources/threads/index.d.ts +1 -0
  135. package/dist/cjs/api/resources/threads/index.js +17 -0
  136. package/dist/cjs/api/resources/tools/client/Client.d.ts +151 -0
  137. package/dist/cjs/api/resources/tools/client/Client.js +643 -0
  138. package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
  139. package/dist/cjs/api/resources/tools/client/index.js +17 -0
  140. package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +13 -0
  141. package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.js +3 -0
  142. package/dist/cjs/api/resources/tools/client/requests/FileChunkRequestIn.d.ts +10 -0
  143. package/dist/cjs/api/resources/tools/client/requests/FileChunkRequestIn.js +3 -0
  144. package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.d.ts +22 -0
  145. package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.js +3 -0
  146. package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetContentRequest.d.ts +9 -0
  147. package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetContentRequest.js +3 -0
  148. package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.ts +11 -0
  149. package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.js +3 -0
  150. package/dist/cjs/api/resources/tools/client/requests/ToolsListContentsRequest.d.ts +13 -0
  151. package/dist/cjs/api/resources/tools/client/requests/ToolsListContentsRequest.js +3 -0
  152. package/dist/cjs/api/resources/tools/client/requests/ToolsRawDataRequest.d.ts +9 -0
  153. package/dist/cjs/api/resources/tools/client/requests/ToolsRawDataRequest.js +3 -0
  154. package/dist/cjs/api/resources/tools/client/requests/index.d.ts +7 -0
  155. package/dist/cjs/api/resources/tools/client/requests/index.js +2 -0
  156. package/dist/cjs/api/resources/tools/index.d.ts +3 -0
  157. package/dist/cjs/api/resources/tools/index.js +19 -0
  158. package/dist/cjs/api/resources/tools/resources/calendar/client/Client.d.ts +33 -0
  159. package/dist/cjs/api/resources/tools/resources/calendar/client/Client.js +164 -0
  160. package/dist/cjs/api/resources/tools/resources/calendar/client/index.d.ts +1 -0
  161. package/dist/cjs/api/resources/tools/resources/calendar/client/index.js +2 -0
  162. package/dist/cjs/api/resources/tools/resources/calendar/index.d.ts +1 -0
  163. package/dist/cjs/api/resources/tools/resources/calendar/index.js +17 -0
  164. package/dist/cjs/api/resources/tools/resources/email/client/Client.d.ts +43 -0
  165. package/dist/cjs/api/resources/tools/resources/email/client/Client.js +215 -0
  166. package/dist/cjs/api/resources/tools/resources/email/client/index.d.ts +1 -0
  167. package/dist/cjs/api/resources/tools/resources/email/client/index.js +2 -0
  168. package/dist/cjs/api/resources/tools/resources/email/index.d.ts +1 -0
  169. package/dist/cjs/api/resources/tools/resources/email/index.js +17 -0
  170. package/dist/cjs/api/resources/tools/resources/index.d.ts +8 -0
  171. package/dist/cjs/api/resources/tools/resources/index.js +47 -0
  172. package/dist/cjs/api/resources/tools/resources/sheets/client/Client.d.ts +324 -0
  173. package/dist/cjs/api/resources/tools/resources/sheets/client/Client.js +1254 -0
  174. package/dist/cjs/api/resources/tools/resources/sheets/client/index.d.ts +2 -0
  175. package/dist/cjs/api/resources/tools/resources/sheets/client/index.js +17 -0
  176. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.d.ts +24 -0
  177. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.js +3 -0
  178. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.d.ts +24 -0
  179. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.js +3 -0
  180. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.ts +20 -0
  181. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.js +3 -0
  182. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.d.ts +30 -0
  183. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.js +3 -0
  184. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.d.ts +24 -0
  185. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.js +3 -0
  186. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.d.ts +15 -0
  187. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.js +3 -0
  188. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.d.ts +18 -0
  189. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.js +3 -0
  190. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.ts +14 -0
  191. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.js +3 -0
  192. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.d.ts +28 -0
  193. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.js +3 -0
  194. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.ts +15 -0
  195. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/GetTableRequest.js +3 -0
  196. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.d.ts +15 -0
  197. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.js +3 -0
  198. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.d.ts +17 -0
  199. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.js +3 -0
  200. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.d.ts +21 -0
  201. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.js +3 -0
  202. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.ts +21 -0
  203. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.js +3 -0
  204. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.ts +21 -0
  205. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.js +3 -0
  206. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.ts +30 -0
  207. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.js +3 -0
  208. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.d.ts +30 -0
  209. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.js +3 -0
  210. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/index.d.ts +17 -0
  211. package/dist/cjs/api/resources/tools/resources/sheets/client/requests/index.js +2 -0
  212. package/dist/cjs/api/resources/tools/resources/sheets/index.d.ts +1 -0
  213. package/dist/cjs/api/resources/tools/resources/sheets/index.js +17 -0
  214. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.d.ts +80 -0
  215. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.js +181 -0
  216. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/index.d.ts +2 -0
  217. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/index.js +17 -0
  218. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.ts +50 -0
  219. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.js +3 -0
  220. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.ts +1 -0
  221. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.js +2 -0
  222. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/index.d.ts +1 -0
  223. package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/index.js +17 -0
  224. package/dist/cjs/api/resources/tools/resources/tasks/client/Client.d.ts +31 -0
  225. package/dist/cjs/api/resources/tools/resources/tasks/client/Client.js +129 -0
  226. package/dist/cjs/api/resources/tools/resources/tasks/client/index.d.ts +2 -0
  227. package/dist/cjs/api/resources/tools/resources/tasks/client/index.js +17 -0
  228. package/dist/cjs/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.d.ts +22 -0
  229. package/dist/cjs/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.js +12 -0
  230. package/dist/cjs/api/resources/tools/resources/tasks/client/requests/index.d.ts +1 -0
  231. package/dist/cjs/api/resources/tools/resources/tasks/client/requests/index.js +2 -0
  232. package/dist/cjs/api/resources/tools/resources/tasks/index.d.ts +1 -0
  233. package/dist/cjs/api/resources/tools/resources/tasks/index.js +17 -0
  234. package/dist/cjs/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.ts +1 -0
  235. package/dist/cjs/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.js +3 -0
  236. package/dist/cjs/api/resources/tools/types/index.d.ts +1 -0
  237. package/dist/cjs/api/resources/tools/types/index.js +17 -0
  238. package/dist/cjs/api/types/AopAsyncExecuteResponseOut.d.ts +25 -0
  239. package/dist/cjs/api/types/AopAsyncExecuteResponseOut.js +3 -0
  240. package/dist/cjs/api/types/AopExecuteRequestIn.d.ts +9 -0
  241. package/dist/cjs/api/types/AopExecuteRequestIn.js +3 -0
  242. package/dist/cjs/api/types/AopExecuteResponseOut.d.ts +28 -0
  243. package/dist/cjs/api/types/AopExecuteResponseOut.js +3 -0
  244. package/dist/cjs/api/types/AssetContentRequestOut.d.ts +7 -0
  245. package/dist/cjs/api/types/AssetContentRequestOut.js +3 -0
  246. package/dist/cjs/api/types/AssetNode.d.ts +11 -0
  247. package/dist/cjs/api/types/AssetNode.js +3 -0
  248. package/dist/cjs/api/types/AssetScreenshotResponseOut.d.ts +13 -0
  249. package/dist/cjs/api/types/AssetScreenshotResponseOut.js +3 -0
  250. package/dist/cjs/api/types/BorderModel.d.ts +9 -0
  251. package/dist/cjs/api/types/BorderModel.js +3 -0
  252. package/dist/cjs/api/types/BorderStyle.d.ts +9 -0
  253. package/dist/cjs/api/types/BorderStyle.js +12 -0
  254. package/dist/cjs/api/types/BordersModel.d.ts +30 -0
  255. package/dist/cjs/api/types/BordersModel.js +3 -0
  256. package/dist/cjs/api/types/CellFormat.d.ts +30 -0
  257. package/dist/cjs/api/types/CellFormat.js +17 -0
  258. package/dist/cjs/api/types/Chunk.d.ts +9 -0
  259. package/dist/cjs/api/types/Chunk.js +3 -0
  260. package/dist/cjs/api/types/ChunkContentItem.d.ts +10 -0
  261. package/dist/cjs/api/types/ChunkContentItem.js +3 -0
  262. package/dist/cjs/api/types/ChunkResult.d.ts +10 -0
  263. package/dist/cjs/api/types/ChunkResult.js +3 -0
  264. package/dist/cjs/api/types/ConversationAssetInfo.d.ts +42 -0
  265. package/dist/cjs/api/types/ConversationAssetInfo.js +3 -0
  266. package/dist/cjs/api/types/ConversationMessage.d.ts +17 -0
  267. package/dist/cjs/api/types/ConversationMessage.js +3 -0
  268. package/dist/cjs/api/types/ConversationResult.d.ts +24 -0
  269. package/dist/cjs/api/types/ConversationResult.js +3 -0
  270. package/dist/cjs/api/types/CreatableAssetType.d.ts +7 -0
  271. package/dist/cjs/api/types/CreatableAssetType.js +10 -0
  272. package/dist/cjs/api/types/CreateAssetResponseOut.d.ts +15 -0
  273. package/dist/cjs/api/types/CreateAssetResponseOut.js +3 -0
  274. package/dist/cjs/api/types/CreateNewSheetTabResponse.d.ts +10 -0
  275. package/dist/cjs/api/types/CreateNewSheetTabResponse.js +3 -0
  276. package/dist/cjs/api/types/CreateProjectResponseOut.d.ts +17 -0
  277. package/dist/cjs/api/types/CreateProjectResponseOut.js +3 -0
  278. package/dist/cjs/api/types/CustomAgentResponse.d.ts +4 -0
  279. package/dist/cjs/api/types/CustomAgentResponse.js +3 -0
  280. package/dist/cjs/api/types/DataFrameRequestOut.d.ts +22 -0
  281. package/dist/cjs/api/types/DataFrameRequestOut.js +3 -0
  282. package/dist/cjs/api/types/DataFrameUnknownFormatError.d.ts +5 -0
  283. package/dist/cjs/api/types/DataFrameUnknownFormatError.js +3 -0
  284. package/dist/cjs/api/types/DatabaseColumnInfo.d.ts +15 -0
  285. package/dist/cjs/api/types/DatabaseColumnInfo.js +3 -0
  286. package/dist/cjs/api/types/DatabaseDataResponse.d.ts +7 -0
  287. package/dist/cjs/api/types/DatabaseDataResponse.js +3 -0
  288. package/dist/cjs/api/types/DatabaseMutationResponse.d.ts +7 -0
  289. package/dist/cjs/api/types/DatabaseMutationResponse.js +3 -0
  290. package/dist/cjs/api/types/DatabaseTableInfo.d.ts +11 -0
  291. package/dist/cjs/api/types/DatabaseTableInfo.js +3 -0
  292. package/dist/cjs/api/types/DatabaseTableSchemaResponse.d.ts +12 -0
  293. package/dist/cjs/api/types/DatabaseTableSchemaResponse.js +3 -0
  294. package/dist/cjs/api/types/DatabaseTablesResponse.d.ts +8 -0
  295. package/dist/cjs/api/types/DatabaseTablesResponse.js +3 -0
  296. package/dist/cjs/api/types/DeleteDataRequest.d.ts +7 -0
  297. package/dist/cjs/api/types/DeleteDataRequest.js +3 -0
  298. package/dist/cjs/api/types/DimensionProperties.d.ts +13 -0
  299. package/dist/cjs/api/types/DimensionProperties.js +3 -0
  300. package/dist/cjs/api/types/DriveAgentResponse.d.ts +4 -0
  301. package/dist/cjs/api/types/DriveAgentResponse.js +3 -0
  302. package/dist/cjs/api/types/FileTooLargeError.d.ts +3 -0
  303. package/dist/cjs/api/types/FileTooLargeError.js +3 -0
  304. package/dist/cjs/api/types/FolderResponse.d.ts +8 -0
  305. package/dist/cjs/api/types/FolderResponse.js +3 -0
  306. package/dist/cjs/api/types/GeneralAgentConfig.d.ts +15 -0
  307. package/dist/cjs/api/types/GeneralAgentConfig.js +3 -0
  308. package/dist/cjs/api/types/GeneralAgentRequest.d.ts +13 -0
  309. package/dist/cjs/api/types/GeneralAgentRequest.js +3 -0
  310. package/dist/cjs/api/types/GeneralAgentResponse.d.ts +7 -0
  311. package/dist/cjs/api/types/GeneralAgentResponse.js +3 -0
  312. package/dist/cjs/api/types/GeneralAgentResponseMessage.d.ts +43 -0
  313. package/dist/cjs/api/types/GeneralAgentResponseMessage.js +3 -0
  314. package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.d.ts +31 -0
  315. package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.js +3 -0
  316. package/dist/cjs/api/types/GetTableResponse.d.ts +12 -0
  317. package/dist/cjs/api/types/GetTableResponse.js +3 -0
  318. package/dist/cjs/api/types/GridRange.d.ts +10 -0
  319. package/dist/cjs/api/types/GridRange.js +3 -0
  320. package/dist/cjs/api/types/ImageUrlContent.d.ts +6 -0
  321. package/dist/cjs/api/types/ImageUrlContent.js +3 -0
  322. package/dist/cjs/api/types/InputMessage.d.ts +17 -0
  323. package/dist/cjs/api/types/InputMessage.js +3 -0
  324. package/dist/cjs/api/types/InputMessageContentItem.d.ts +10 -0
  325. package/dist/cjs/api/types/InputMessageContentItem.js +3 -0
  326. package/dist/cjs/api/types/NumberFormatModel.d.ts +7 -0
  327. package/dist/cjs/api/types/NumberFormatModel.js +3 -0
  328. package/dist/cjs/api/types/NumberFormatType.d.ts +15 -0
  329. package/dist/cjs/api/types/NumberFormatType.js +18 -0
  330. package/dist/cjs/api/types/PaginatedAssetsOut.d.ts +18 -0
  331. package/dist/cjs/api/types/PaginatedAssetsOut.js +3 -0
  332. package/dist/cjs/api/types/PromptMessage.d.ts +14 -0
  333. package/dist/cjs/api/types/PromptMessage.js +11 -0
  334. package/dist/cjs/api/types/PublicAssetOut.d.ts +35 -0
  335. package/dist/cjs/api/types/PublicAssetOut.js +3 -0
  336. package/dist/cjs/api/types/ResearchAgentResponse.d.ts +4 -0
  337. package/dist/cjs/api/types/ResearchAgentResponse.js +3 -0
  338. package/dist/cjs/api/types/RunTaskResponse.d.ts +15 -0
  339. package/dist/cjs/api/types/RunTaskResponse.js +3 -0
  340. package/dist/cjs/api/types/SaveAssetRequestOut.d.ts +6 -0
  341. package/dist/cjs/api/types/SaveAssetRequestOut.js +3 -0
  342. package/dist/cjs/api/types/Sheet.d.ts +26 -0
  343. package/dist/cjs/api/types/Sheet.js +3 -0
  344. package/dist/cjs/api/types/SheetOperationResponse.d.ts +8 -0
  345. package/dist/cjs/api/types/SheetOperationResponse.js +3 -0
  346. package/dist/cjs/api/types/SqlAgentResponse.d.ts +6 -0
  347. package/dist/cjs/api/types/SqlAgentResponse.js +3 -0
  348. package/dist/cjs/api/types/StructuredDataExtractorResponse.d.ts +10 -0
  349. package/dist/cjs/api/types/StructuredDataExtractorResponse.js +3 -0
  350. package/dist/cjs/api/types/TableRowData.d.ts +4 -0
  351. package/dist/cjs/api/types/TableRowData.js +3 -0
  352. package/dist/cjs/api/types/TextContent.d.ts +6 -0
  353. package/dist/cjs/api/types/TextContent.js +3 -0
  354. package/dist/cjs/api/types/TextFormatModel.d.ts +13 -0
  355. package/dist/cjs/api/types/TextFormatModel.js +3 -0
  356. package/dist/cjs/api/types/ThemeColor.d.ts +4 -0
  357. package/dist/cjs/api/types/ThemeColor.js +3 -0
  358. package/dist/cjs/api/types/ThreadStatusResponseOut.d.ts +18 -0
  359. package/dist/cjs/api/types/ThreadStatusResponseOut.js +3 -0
  360. package/dist/cjs/api/types/WrapStrategy.d.ts +6 -0
  361. package/dist/cjs/api/types/WrapStrategy.js +9 -0
  362. package/dist/cjs/api/types/index.d.ts +62 -0
  363. package/dist/cjs/api/types/index.js +78 -0
  364. package/dist/cjs/core/exports.d.ts +1 -0
  365. package/dist/cjs/core/exports.js +17 -0
  366. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  367. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  368. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
  369. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  370. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  371. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  372. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  373. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  374. package/dist/cjs/core/fetcher/Fetcher.d.ts +42 -0
  375. package/dist/cjs/core/fetcher/Fetcher.js +121 -0
  376. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  377. package/dist/cjs/core/fetcher/Headers.js +84 -0
  378. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  379. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  380. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  381. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  382. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
  383. package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
  384. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  385. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  386. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  387. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  388. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  389. package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
  390. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  391. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  392. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  393. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  394. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  395. package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
  396. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  397. package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
  398. package/dist/cjs/core/fetcher/index.d.ts +11 -0
  399. package/dist/cjs/core/fetcher/index.js +17 -0
  400. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  401. package/dist/cjs/core/fetcher/makeRequest.js +42 -0
  402. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  403. package/dist/cjs/core/fetcher/requestWithRetries.js +76 -0
  404. package/dist/cjs/core/fetcher/signals.d.ts +11 -0
  405. package/dist/cjs/core/fetcher/signals.js +36 -0
  406. package/dist/cjs/core/file/exports.d.ts +1 -0
  407. package/dist/cjs/core/file/exports.js +2 -0
  408. package/dist/cjs/core/file/file.d.ts +5 -0
  409. package/dist/cjs/core/file/file.js +203 -0
  410. package/dist/cjs/core/file/index.d.ts +2 -0
  411. package/dist/cjs/core/file/index.js +18 -0
  412. package/dist/cjs/core/file/types.d.ts +66 -0
  413. package/dist/cjs/core/file/types.js +2 -0
  414. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  415. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +208 -0
  416. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  417. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  418. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  419. package/dist/cjs/core/form-data-utils/index.js +20 -0
  420. package/dist/cjs/core/headers.d.ts +2 -0
  421. package/dist/cjs/core/headers.js +29 -0
  422. package/dist/cjs/core/index.d.ts +5 -0
  423. package/dist/cjs/core/index.js +44 -0
  424. package/dist/cjs/core/json.d.ts +15 -0
  425. package/dist/cjs/core/json.js +24 -0
  426. package/dist/cjs/core/runtime/index.d.ts +1 -0
  427. package/dist/cjs/core/runtime/index.js +5 -0
  428. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  429. package/dist/cjs/core/runtime/runtime.js +102 -0
  430. package/dist/cjs/core/url/index.d.ts +2 -0
  431. package/dist/cjs/core/url/index.js +7 -0
  432. package/dist/cjs/core/url/join.d.ts +1 -0
  433. package/dist/cjs/core/url/join.js +69 -0
  434. package/dist/cjs/core/url/qs.d.ts +6 -0
  435. package/dist/cjs/core/url/qs.js +64 -0
  436. package/dist/cjs/environments.d.ts +4 -0
  437. package/dist/cjs/environments.js +7 -0
  438. package/dist/cjs/errors/AthenaIntelligenceError.d.ts +12 -0
  439. package/dist/cjs/errors/AthenaIntelligenceError.js +28 -0
  440. package/dist/cjs/errors/AthenaIntelligenceTimeoutError.d.ts +3 -0
  441. package/dist/cjs/errors/AthenaIntelligenceTimeoutError.js +11 -0
  442. package/dist/cjs/errors/index.d.ts +2 -0
  443. package/dist/cjs/errors/index.js +7 -0
  444. package/dist/cjs/exports.d.ts +1 -0
  445. package/dist/cjs/exports.js +17 -0
  446. package/dist/cjs/index.d.ts +6 -0
  447. package/dist/cjs/index.js +48 -0
  448. package/dist/cjs/version.d.ts +1 -0
  449. package/dist/cjs/version.js +4 -0
  450. package/dist/esm/BaseClient.d.mts +27 -0
  451. package/dist/esm/BaseClient.mjs +3 -0
  452. package/dist/esm/Client.d.mts +32 -0
  453. package/dist/esm/Client.mjs +51 -0
  454. package/dist/esm/api/errors/BadRequestError.d.mts +5 -0
  455. package/dist/esm/api/errors/BadRequestError.mjs +14 -0
  456. package/dist/esm/api/errors/ContentTooLargeError.d.mts +6 -0
  457. package/dist/esm/api/errors/ContentTooLargeError.mjs +15 -0
  458. package/dist/esm/api/errors/ForbiddenError.d.mts +5 -0
  459. package/dist/esm/api/errors/ForbiddenError.mjs +14 -0
  460. package/dist/esm/api/errors/InternalServerError.d.mts +5 -0
  461. package/dist/esm/api/errors/InternalServerError.mjs +14 -0
  462. package/dist/esm/api/errors/NotFoundError.d.mts +5 -0
  463. package/dist/esm/api/errors/NotFoundError.mjs +14 -0
  464. package/dist/esm/api/errors/NotImplementedError.d.mts +5 -0
  465. package/dist/esm/api/errors/NotImplementedError.mjs +14 -0
  466. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +5 -0
  467. package/dist/esm/api/errors/ServiceUnavailableError.mjs +14 -0
  468. package/dist/esm/api/errors/UnauthorizedError.d.mts +5 -0
  469. package/dist/esm/api/errors/UnauthorizedError.mjs +14 -0
  470. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +5 -0
  471. package/dist/esm/api/errors/UnprocessableEntityError.mjs +14 -0
  472. package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +6 -0
  473. package/dist/esm/api/errors/UnsupportedMediaTypeError.mjs +15 -0
  474. package/dist/esm/api/errors/index.d.mts +10 -0
  475. package/dist/esm/api/errors/index.mjs +10 -0
  476. package/dist/esm/api/index.d.mts +3 -0
  477. package/dist/esm/api/index.mjs +3 -0
  478. package/dist/esm/api/resources/agents/client/Client.d.mts +53 -0
  479. package/dist/esm/api/resources/agents/client/Client.mjs +125 -0
  480. package/dist/esm/api/resources/agents/client/index.d.mts +2 -0
  481. package/dist/esm/api/resources/agents/client/index.mjs +2 -0
  482. package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.d.mts +17 -0
  483. package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.mjs +2 -0
  484. package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -0
  485. package/dist/esm/api/resources/agents/client/requests/index.mjs +1 -0
  486. package/dist/esm/api/resources/agents/index.d.mts +2 -0
  487. package/dist/esm/api/resources/agents/index.mjs +2 -0
  488. package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +34 -0
  489. package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +98 -0
  490. package/dist/esm/api/resources/agents/resources/drive/client/index.d.mts +2 -0
  491. package/dist/esm/api/resources/agents/resources/drive/client/index.mjs +2 -0
  492. package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.mts +17 -0
  493. package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.mjs +2 -0
  494. package/dist/esm/api/resources/agents/resources/drive/client/requests/index.d.mts +1 -0
  495. package/dist/esm/api/resources/agents/resources/drive/client/requests/index.mjs +1 -0
  496. package/dist/esm/api/resources/agents/resources/drive/index.d.mts +1 -0
  497. package/dist/esm/api/resources/agents/resources/drive/index.mjs +1 -0
  498. package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +80 -0
  499. package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +248 -0
  500. package/dist/esm/api/resources/agents/resources/general/client/index.d.mts +1 -0
  501. package/dist/esm/api/resources/agents/resources/general/client/index.mjs +1 -0
  502. package/dist/esm/api/resources/agents/resources/general/index.d.mts +1 -0
  503. package/dist/esm/api/resources/agents/resources/general/index.mjs +1 -0
  504. package/dist/esm/api/resources/agents/resources/index.d.mts +7 -0
  505. package/dist/esm/api/resources/agents/resources/index.mjs +7 -0
  506. package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +34 -0
  507. package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +98 -0
  508. package/dist/esm/api/resources/agents/resources/research/client/index.d.mts +2 -0
  509. package/dist/esm/api/resources/agents/resources/research/client/index.mjs +2 -0
  510. package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.mts +17 -0
  511. package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.mjs +2 -0
  512. package/dist/esm/api/resources/agents/resources/research/client/requests/index.d.mts +1 -0
  513. package/dist/esm/api/resources/agents/resources/research/client/requests/index.mjs +1 -0
  514. package/dist/esm/api/resources/agents/resources/research/index.d.mts +1 -0
  515. package/dist/esm/api/resources/agents/resources/research/index.mjs +1 -0
  516. package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +34 -0
  517. package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +95 -0
  518. package/dist/esm/api/resources/agents/resources/sql/client/index.d.mts +2 -0
  519. package/dist/esm/api/resources/agents/resources/sql/client/index.mjs +2 -0
  520. package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.mts +17 -0
  521. package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.mjs +2 -0
  522. package/dist/esm/api/resources/agents/resources/sql/client/requests/index.d.mts +1 -0
  523. package/dist/esm/api/resources/agents/resources/sql/client/requests/index.mjs +1 -0
  524. package/dist/esm/api/resources/agents/resources/sql/index.d.mts +1 -0
  525. package/dist/esm/api/resources/agents/resources/sql/index.mjs +1 -0
  526. package/dist/esm/api/resources/aop/client/Client.d.mts +60 -0
  527. package/dist/esm/api/resources/aop/client/Client.mjs +192 -0
  528. package/dist/esm/api/resources/aop/client/index.d.mts +1 -0
  529. package/dist/esm/api/resources/aop/client/index.mjs +1 -0
  530. package/dist/esm/api/resources/aop/index.d.mts +1 -0
  531. package/dist/esm/api/resources/aop/index.mjs +1 -0
  532. package/dist/esm/api/resources/assets/client/Client.d.mts +94 -0
  533. package/dist/esm/api/resources/assets/client/Client.mjs +331 -0
  534. package/dist/esm/api/resources/assets/client/index.d.mts +2 -0
  535. package/dist/esm/api/resources/assets/client/index.mjs +2 -0
  536. package/dist/esm/api/resources/assets/client/requests/AssetsListRequest.d.mts +19 -0
  537. package/dist/esm/api/resources/assets/client/requests/AssetsListRequest.mjs +2 -0
  538. package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +17 -0
  539. package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.mjs +2 -0
  540. package/dist/esm/api/resources/assets/client/requests/CreateProjectRequestIn.d.mts +33 -0
  541. package/dist/esm/api/resources/assets/client/requests/CreateProjectRequestIn.mjs +2 -0
  542. package/dist/esm/api/resources/assets/client/requests/index.d.mts +3 -0
  543. package/dist/esm/api/resources/assets/client/requests/index.mjs +3 -0
  544. package/dist/esm/api/resources/assets/index.d.mts +1 -0
  545. package/dist/esm/api/resources/assets/index.mjs +1 -0
  546. package/dist/esm/api/resources/databases/client/Client.d.mts +166 -0
  547. package/dist/esm/api/resources/databases/client/Client.mjs +555 -0
  548. package/dist/esm/api/resources/databases/client/index.d.mts +2 -0
  549. package/dist/esm/api/resources/databases/client/index.mjs +2 -0
  550. package/dist/esm/api/resources/databases/client/requests/DatabasesSelectRequest.d.mts +19 -0
  551. package/dist/esm/api/resources/databases/client/requests/DatabasesSelectRequest.mjs +2 -0
  552. package/dist/esm/api/resources/databases/client/requests/InsertDataRequest.d.mts +22 -0
  553. package/dist/esm/api/resources/databases/client/requests/InsertDataRequest.mjs +2 -0
  554. package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.d.mts +16 -0
  555. package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.mjs +2 -0
  556. package/dist/esm/api/resources/databases/client/requests/index.d.mts +3 -0
  557. package/dist/esm/api/resources/databases/client/requests/index.mjs +3 -0
  558. package/dist/esm/api/resources/databases/index.d.mts +1 -0
  559. package/dist/esm/api/resources/databases/index.mjs +1 -0
  560. package/dist/esm/api/resources/index.d.mts +14 -0
  561. package/dist/esm/api/resources/index.mjs +14 -0
  562. package/dist/esm/api/resources/query/client/Client.d.mts +49 -0
  563. package/dist/esm/api/resources/query/client/Client.mjs +176 -0
  564. package/dist/esm/api/resources/query/client/index.d.mts +2 -0
  565. package/dist/esm/api/resources/query/client/index.mjs +2 -0
  566. package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.d.mts +14 -0
  567. package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.mjs +2 -0
  568. package/dist/esm/api/resources/query/client/requests/QueryExecuteSnippetRequest.d.mts +9 -0
  569. package/dist/esm/api/resources/query/client/requests/QueryExecuteSnippetRequest.mjs +2 -0
  570. package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
  571. package/dist/esm/api/resources/query/client/requests/index.mjs +2 -0
  572. package/dist/esm/api/resources/query/index.d.mts +2 -0
  573. package/dist/esm/api/resources/query/index.mjs +2 -0
  574. package/dist/esm/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.d.mts +4 -0
  575. package/dist/esm/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.mjs +2 -0
  576. package/dist/esm/api/resources/query/types/index.d.mts +1 -0
  577. package/dist/esm/api/resources/query/types/index.mjs +1 -0
  578. package/dist/esm/api/resources/threads/client/Client.d.mts +30 -0
  579. package/dist/esm/api/resources/threads/client/Client.mjs +97 -0
  580. package/dist/esm/api/resources/threads/client/index.d.mts +1 -0
  581. package/dist/esm/api/resources/threads/client/index.mjs +1 -0
  582. package/dist/esm/api/resources/threads/index.d.mts +1 -0
  583. package/dist/esm/api/resources/threads/index.mjs +1 -0
  584. package/dist/esm/api/resources/tools/client/Client.d.mts +151 -0
  585. package/dist/esm/api/resources/tools/client/Client.mjs +607 -0
  586. package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
  587. package/dist/esm/api/resources/tools/client/index.mjs +2 -0
  588. package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +13 -0
  589. package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.mjs +3 -0
  590. package/dist/esm/api/resources/tools/client/requests/FileChunkRequestIn.d.mts +10 -0
  591. package/dist/esm/api/resources/tools/client/requests/FileChunkRequestIn.mjs +2 -0
  592. package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.d.mts +22 -0
  593. package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.mjs +2 -0
  594. package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetContentRequest.d.mts +9 -0
  595. package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetContentRequest.mjs +2 -0
  596. package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.mts +11 -0
  597. package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.mjs +2 -0
  598. package/dist/esm/api/resources/tools/client/requests/ToolsListContentsRequest.d.mts +13 -0
  599. package/dist/esm/api/resources/tools/client/requests/ToolsListContentsRequest.mjs +2 -0
  600. package/dist/esm/api/resources/tools/client/requests/ToolsRawDataRequest.d.mts +9 -0
  601. package/dist/esm/api/resources/tools/client/requests/ToolsRawDataRequest.mjs +2 -0
  602. package/dist/esm/api/resources/tools/client/requests/index.d.mts +7 -0
  603. package/dist/esm/api/resources/tools/client/requests/index.mjs +7 -0
  604. package/dist/esm/api/resources/tools/index.d.mts +3 -0
  605. package/dist/esm/api/resources/tools/index.mjs +3 -0
  606. package/dist/esm/api/resources/tools/resources/calendar/client/Client.d.mts +33 -0
  607. package/dist/esm/api/resources/tools/resources/calendar/client/Client.mjs +127 -0
  608. package/dist/esm/api/resources/tools/resources/calendar/client/index.d.mts +1 -0
  609. package/dist/esm/api/resources/tools/resources/calendar/client/index.mjs +1 -0
  610. package/dist/esm/api/resources/tools/resources/calendar/index.d.mts +1 -0
  611. package/dist/esm/api/resources/tools/resources/calendar/index.mjs +1 -0
  612. package/dist/esm/api/resources/tools/resources/email/client/Client.d.mts +43 -0
  613. package/dist/esm/api/resources/tools/resources/email/client/Client.mjs +178 -0
  614. package/dist/esm/api/resources/tools/resources/email/client/index.d.mts +1 -0
  615. package/dist/esm/api/resources/tools/resources/email/client/index.mjs +1 -0
  616. package/dist/esm/api/resources/tools/resources/email/index.d.mts +1 -0
  617. package/dist/esm/api/resources/tools/resources/email/index.mjs +1 -0
  618. package/dist/esm/api/resources/tools/resources/index.d.mts +8 -0
  619. package/dist/esm/api/resources/tools/resources/index.mjs +8 -0
  620. package/dist/esm/api/resources/tools/resources/sheets/client/Client.d.mts +324 -0
  621. package/dist/esm/api/resources/tools/resources/sheets/client/Client.mjs +1217 -0
  622. package/dist/esm/api/resources/tools/resources/sheets/client/index.d.mts +2 -0
  623. package/dist/esm/api/resources/tools/resources/sheets/client/index.mjs +2 -0
  624. package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.d.mts +24 -0
  625. package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.mjs +2 -0
  626. package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.d.mts +24 -0
  627. package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.mjs +2 -0
  628. package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.mts +20 -0
  629. package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.mjs +2 -0
  630. package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.d.mts +30 -0
  631. package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.mjs +2 -0
  632. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.d.mts +24 -0
  633. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.mjs +2 -0
  634. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.d.mts +15 -0
  635. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.mjs +2 -0
  636. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.d.mts +18 -0
  637. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.mjs +2 -0
  638. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.mts +14 -0
  639. package/dist/esm/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.mjs +2 -0
  640. package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.d.mts +28 -0
  641. package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.mjs +2 -0
  642. package/dist/esm/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.mts +15 -0
  643. package/dist/esm/api/resources/tools/resources/sheets/client/requests/GetTableRequest.mjs +2 -0
  644. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.d.mts +15 -0
  645. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.mjs +2 -0
  646. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.d.mts +17 -0
  647. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.mjs +2 -0
  648. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.d.mts +21 -0
  649. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.mjs +2 -0
  650. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.mts +21 -0
  651. package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.mjs +2 -0
  652. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.mts +21 -0
  653. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.mjs +2 -0
  654. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.mts +30 -0
  655. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.mjs +2 -0
  656. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.d.mts +30 -0
  657. package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.mjs +2 -0
  658. package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.d.mts +17 -0
  659. package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.mjs +17 -0
  660. package/dist/esm/api/resources/tools/resources/sheets/index.d.mts +1 -0
  661. package/dist/esm/api/resources/tools/resources/sheets/index.mjs +1 -0
  662. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.d.mts +80 -0
  663. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.mjs +144 -0
  664. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.d.mts +2 -0
  665. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.mjs +2 -0
  666. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.mts +50 -0
  667. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.mjs +2 -0
  668. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.mts +1 -0
  669. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.mjs +1 -0
  670. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/index.d.mts +1 -0
  671. package/dist/esm/api/resources/tools/resources/structuredDataExtractor/index.mjs +1 -0
  672. package/dist/esm/api/resources/tools/resources/tasks/client/Client.d.mts +31 -0
  673. package/dist/esm/api/resources/tools/resources/tasks/client/Client.mjs +92 -0
  674. package/dist/esm/api/resources/tools/resources/tasks/client/index.d.mts +2 -0
  675. package/dist/esm/api/resources/tools/resources/tasks/client/index.mjs +2 -0
  676. package/dist/esm/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.d.mts +22 -0
  677. package/dist/esm/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.mjs +9 -0
  678. package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.d.mts +1 -0
  679. package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.mjs +1 -0
  680. package/dist/esm/api/resources/tools/resources/tasks/index.d.mts +1 -0
  681. package/dist/esm/api/resources/tools/resources/tasks/index.mjs +1 -0
  682. package/dist/esm/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.mts +1 -0
  683. package/dist/esm/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.mjs +2 -0
  684. package/dist/esm/api/resources/tools/types/index.d.mts +1 -0
  685. package/dist/esm/api/resources/tools/types/index.mjs +1 -0
  686. package/dist/esm/api/types/AopAsyncExecuteResponseOut.d.mts +25 -0
  687. package/dist/esm/api/types/AopAsyncExecuteResponseOut.mjs +2 -0
  688. package/dist/esm/api/types/AopExecuteRequestIn.d.mts +9 -0
  689. package/dist/esm/api/types/AopExecuteRequestIn.mjs +2 -0
  690. package/dist/esm/api/types/AopExecuteResponseOut.d.mts +28 -0
  691. package/dist/esm/api/types/AopExecuteResponseOut.mjs +2 -0
  692. package/dist/esm/api/types/AssetContentRequestOut.d.mts +7 -0
  693. package/dist/esm/api/types/AssetContentRequestOut.mjs +2 -0
  694. package/dist/esm/api/types/AssetNode.d.mts +11 -0
  695. package/dist/esm/api/types/AssetNode.mjs +2 -0
  696. package/dist/esm/api/types/AssetScreenshotResponseOut.d.mts +13 -0
  697. package/dist/esm/api/types/AssetScreenshotResponseOut.mjs +2 -0
  698. package/dist/esm/api/types/BorderModel.d.mts +9 -0
  699. package/dist/esm/api/types/BorderModel.mjs +2 -0
  700. package/dist/esm/api/types/BorderStyle.d.mts +9 -0
  701. package/dist/esm/api/types/BorderStyle.mjs +9 -0
  702. package/dist/esm/api/types/BordersModel.d.mts +30 -0
  703. package/dist/esm/api/types/BordersModel.mjs +2 -0
  704. package/dist/esm/api/types/CellFormat.d.mts +30 -0
  705. package/dist/esm/api/types/CellFormat.mjs +15 -0
  706. package/dist/esm/api/types/Chunk.d.mts +9 -0
  707. package/dist/esm/api/types/Chunk.mjs +2 -0
  708. package/dist/esm/api/types/ChunkContentItem.d.mts +10 -0
  709. package/dist/esm/api/types/ChunkContentItem.mjs +2 -0
  710. package/dist/esm/api/types/ChunkResult.d.mts +10 -0
  711. package/dist/esm/api/types/ChunkResult.mjs +2 -0
  712. package/dist/esm/api/types/ConversationAssetInfo.d.mts +42 -0
  713. package/dist/esm/api/types/ConversationAssetInfo.mjs +2 -0
  714. package/dist/esm/api/types/ConversationMessage.d.mts +17 -0
  715. package/dist/esm/api/types/ConversationMessage.mjs +2 -0
  716. package/dist/esm/api/types/ConversationResult.d.mts +24 -0
  717. package/dist/esm/api/types/ConversationResult.mjs +2 -0
  718. package/dist/esm/api/types/CreatableAssetType.d.mts +7 -0
  719. package/dist/esm/api/types/CreatableAssetType.mjs +7 -0
  720. package/dist/esm/api/types/CreateAssetResponseOut.d.mts +15 -0
  721. package/dist/esm/api/types/CreateAssetResponseOut.mjs +2 -0
  722. package/dist/esm/api/types/CreateNewSheetTabResponse.d.mts +10 -0
  723. package/dist/esm/api/types/CreateNewSheetTabResponse.mjs +2 -0
  724. package/dist/esm/api/types/CreateProjectResponseOut.d.mts +17 -0
  725. package/dist/esm/api/types/CreateProjectResponseOut.mjs +2 -0
  726. package/dist/esm/api/types/CustomAgentResponse.d.mts +4 -0
  727. package/dist/esm/api/types/CustomAgentResponse.mjs +2 -0
  728. package/dist/esm/api/types/DataFrameRequestOut.d.mts +22 -0
  729. package/dist/esm/api/types/DataFrameRequestOut.mjs +2 -0
  730. package/dist/esm/api/types/DataFrameUnknownFormatError.d.mts +5 -0
  731. package/dist/esm/api/types/DataFrameUnknownFormatError.mjs +2 -0
  732. package/dist/esm/api/types/DatabaseColumnInfo.d.mts +15 -0
  733. package/dist/esm/api/types/DatabaseColumnInfo.mjs +2 -0
  734. package/dist/esm/api/types/DatabaseDataResponse.d.mts +7 -0
  735. package/dist/esm/api/types/DatabaseDataResponse.mjs +2 -0
  736. package/dist/esm/api/types/DatabaseMutationResponse.d.mts +7 -0
  737. package/dist/esm/api/types/DatabaseMutationResponse.mjs +2 -0
  738. package/dist/esm/api/types/DatabaseTableInfo.d.mts +11 -0
  739. package/dist/esm/api/types/DatabaseTableInfo.mjs +2 -0
  740. package/dist/esm/api/types/DatabaseTableSchemaResponse.d.mts +12 -0
  741. package/dist/esm/api/types/DatabaseTableSchemaResponse.mjs +2 -0
  742. package/dist/esm/api/types/DatabaseTablesResponse.d.mts +8 -0
  743. package/dist/esm/api/types/DatabaseTablesResponse.mjs +2 -0
  744. package/dist/esm/api/types/DeleteDataRequest.d.mts +7 -0
  745. package/dist/esm/api/types/DeleteDataRequest.mjs +2 -0
  746. package/dist/esm/api/types/DimensionProperties.d.mts +13 -0
  747. package/dist/esm/api/types/DimensionProperties.mjs +2 -0
  748. package/dist/esm/api/types/DriveAgentResponse.d.mts +4 -0
  749. package/dist/esm/api/types/DriveAgentResponse.mjs +2 -0
  750. package/dist/esm/api/types/FileTooLargeError.d.mts +3 -0
  751. package/dist/esm/api/types/FileTooLargeError.mjs +2 -0
  752. package/dist/esm/api/types/FolderResponse.d.mts +8 -0
  753. package/dist/esm/api/types/FolderResponse.mjs +2 -0
  754. package/dist/esm/api/types/GeneralAgentConfig.d.mts +15 -0
  755. package/dist/esm/api/types/GeneralAgentConfig.mjs +2 -0
  756. package/dist/esm/api/types/GeneralAgentRequest.d.mts +13 -0
  757. package/dist/esm/api/types/GeneralAgentRequest.mjs +2 -0
  758. package/dist/esm/api/types/GeneralAgentResponse.d.mts +7 -0
  759. package/dist/esm/api/types/GeneralAgentResponse.mjs +2 -0
  760. package/dist/esm/api/types/GeneralAgentResponseMessage.d.mts +43 -0
  761. package/dist/esm/api/types/GeneralAgentResponseMessage.mjs +2 -0
  762. package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.d.mts +31 -0
  763. package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.mjs +2 -0
  764. package/dist/esm/api/types/GetTableResponse.d.mts +12 -0
  765. package/dist/esm/api/types/GetTableResponse.mjs +2 -0
  766. package/dist/esm/api/types/GridRange.d.mts +10 -0
  767. package/dist/esm/api/types/GridRange.mjs +2 -0
  768. package/dist/esm/api/types/ImageUrlContent.d.mts +6 -0
  769. package/dist/esm/api/types/ImageUrlContent.mjs +2 -0
  770. package/dist/esm/api/types/InputMessage.d.mts +17 -0
  771. package/dist/esm/api/types/InputMessage.mjs +2 -0
  772. package/dist/esm/api/types/InputMessageContentItem.d.mts +10 -0
  773. package/dist/esm/api/types/InputMessageContentItem.mjs +2 -0
  774. package/dist/esm/api/types/NumberFormatModel.d.mts +7 -0
  775. package/dist/esm/api/types/NumberFormatModel.mjs +2 -0
  776. package/dist/esm/api/types/NumberFormatType.d.mts +15 -0
  777. package/dist/esm/api/types/NumberFormatType.mjs +15 -0
  778. package/dist/esm/api/types/PaginatedAssetsOut.d.mts +18 -0
  779. package/dist/esm/api/types/PaginatedAssetsOut.mjs +2 -0
  780. package/dist/esm/api/types/PromptMessage.d.mts +14 -0
  781. package/dist/esm/api/types/PromptMessage.mjs +8 -0
  782. package/dist/esm/api/types/PublicAssetOut.d.mts +35 -0
  783. package/dist/esm/api/types/PublicAssetOut.mjs +2 -0
  784. package/dist/esm/api/types/ResearchAgentResponse.d.mts +4 -0
  785. package/dist/esm/api/types/ResearchAgentResponse.mjs +2 -0
  786. package/dist/esm/api/types/RunTaskResponse.d.mts +15 -0
  787. package/dist/esm/api/types/RunTaskResponse.mjs +2 -0
  788. package/dist/esm/api/types/SaveAssetRequestOut.d.mts +6 -0
  789. package/dist/esm/api/types/SaveAssetRequestOut.mjs +2 -0
  790. package/dist/esm/api/types/Sheet.d.mts +26 -0
  791. package/dist/esm/api/types/Sheet.mjs +2 -0
  792. package/dist/esm/api/types/SheetOperationResponse.d.mts +8 -0
  793. package/dist/esm/api/types/SheetOperationResponse.mjs +2 -0
  794. package/dist/esm/api/types/SqlAgentResponse.d.mts +6 -0
  795. package/dist/esm/api/types/SqlAgentResponse.mjs +2 -0
  796. package/dist/esm/api/types/StructuredDataExtractorResponse.d.mts +10 -0
  797. package/dist/esm/api/types/StructuredDataExtractorResponse.mjs +2 -0
  798. package/dist/esm/api/types/TableRowData.d.mts +4 -0
  799. package/dist/esm/api/types/TableRowData.mjs +2 -0
  800. package/dist/esm/api/types/TextContent.d.mts +6 -0
  801. package/dist/esm/api/types/TextContent.mjs +2 -0
  802. package/dist/esm/api/types/TextFormatModel.d.mts +13 -0
  803. package/dist/esm/api/types/TextFormatModel.mjs +2 -0
  804. package/dist/esm/api/types/ThemeColor.d.mts +4 -0
  805. package/dist/esm/api/types/ThemeColor.mjs +2 -0
  806. package/dist/esm/api/types/ThreadStatusResponseOut.d.mts +18 -0
  807. package/dist/esm/api/types/ThreadStatusResponseOut.mjs +2 -0
  808. package/dist/esm/api/types/WrapStrategy.d.mts +6 -0
  809. package/dist/esm/api/types/WrapStrategy.mjs +6 -0
  810. package/dist/esm/api/types/index.d.mts +62 -0
  811. package/dist/esm/api/types/index.mjs +62 -0
  812. package/dist/esm/core/exports.d.mts +1 -0
  813. package/dist/esm/core/exports.mjs +1 -0
  814. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  815. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  816. package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
  817. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  818. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  819. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  820. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  821. package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
  822. package/dist/esm/core/fetcher/Fetcher.d.mts +42 -0
  823. package/dist/esm/core/fetcher/Fetcher.mjs +117 -0
  824. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  825. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  826. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  827. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  828. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  829. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  830. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
  831. package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
  832. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  833. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  834. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  835. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  836. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  837. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
  838. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  839. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  840. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  841. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  842. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  843. package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
  844. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  845. package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
  846. package/dist/esm/core/fetcher/index.d.mts +11 -0
  847. package/dist/esm/core/fetcher/index.mjs +6 -0
  848. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  849. package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
  850. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  851. package/dist/esm/core/fetcher/requestWithRetries.mjs +73 -0
  852. package/dist/esm/core/fetcher/signals.d.mts +11 -0
  853. package/dist/esm/core/fetcher/signals.mjs +32 -0
  854. package/dist/esm/core/file/exports.d.mts +1 -0
  855. package/dist/esm/core/file/exports.mjs +1 -0
  856. package/dist/esm/core/file/file.d.mts +5 -0
  857. package/dist/esm/core/file/file.mjs +167 -0
  858. package/dist/esm/core/file/index.d.mts +2 -0
  859. package/dist/esm/core/file/index.mjs +2 -0
  860. package/dist/esm/core/file/types.d.mts +66 -0
  861. package/dist/esm/core/file/types.mjs +1 -0
  862. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +16 -0
  863. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +170 -0
  864. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  865. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  866. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  867. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  868. package/dist/esm/core/headers.d.mts +2 -0
  869. package/dist/esm/core/headers.mjs +25 -0
  870. package/dist/esm/core/index.d.mts +5 -0
  871. package/dist/esm/core/index.mjs +5 -0
  872. package/dist/esm/core/json.d.mts +15 -0
  873. package/dist/esm/core/json.mjs +19 -0
  874. package/dist/esm/core/runtime/index.d.mts +1 -0
  875. package/dist/esm/core/runtime/index.mjs +1 -0
  876. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  877. package/dist/esm/core/runtime/runtime.mjs +99 -0
  878. package/dist/esm/core/url/index.d.mts +2 -0
  879. package/dist/esm/core/url/index.mjs +2 -0
  880. package/dist/esm/core/url/join.d.mts +1 -0
  881. package/dist/esm/core/url/join.mjs +66 -0
  882. package/dist/esm/core/url/qs.d.mts +6 -0
  883. package/dist/esm/core/url/qs.mjs +61 -0
  884. package/dist/esm/environments.d.mts +4 -0
  885. package/dist/esm/environments.mjs +4 -0
  886. package/dist/esm/errors/AthenaIntelligenceError.d.mts +12 -0
  887. package/dist/esm/errors/AthenaIntelligenceError.mjs +25 -0
  888. package/dist/esm/errors/AthenaIntelligenceTimeoutError.d.mts +3 -0
  889. package/dist/esm/errors/AthenaIntelligenceTimeoutError.mjs +7 -0
  890. package/dist/esm/errors/index.d.mts +2 -0
  891. package/dist/esm/errors/index.mjs +2 -0
  892. package/dist/esm/exports.d.mts +1 -0
  893. package/dist/esm/exports.mjs +1 -0
  894. package/dist/esm/index.d.mts +6 -0
  895. package/dist/esm/index.mjs +6 -0
  896. package/dist/esm/version.d.mts +1 -0
  897. package/dist/esm/version.mjs +1 -0
  898. package/package.json +60 -0
  899. package/reference.md +3724 -0
@@ -0,0 +1,1254 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.Sheets = void 0;
47
+ const environments = __importStar(require("../../../../../../environments.js"));
48
+ const core = __importStar(require("../../../../../../core/index.js"));
49
+ const AthenaIntelligence = __importStar(require("../../../../../index.js"));
50
+ const headers_js_1 = require("../../../../../../core/headers.js");
51
+ const errors = __importStar(require("../../../../../../errors/index.js"));
52
+ class Sheets {
53
+ constructor(_options) {
54
+ this._options = _options;
55
+ }
56
+ /**
57
+ * Update a single cell in an Athena spreadsheet.
58
+ *
59
+ * @param {AthenaIntelligence.tools.UpdateSheetCellRequest} request
60
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
63
+ *
64
+ * @example
65
+ * await client.tools.sheets.updateCell({
66
+ * asset_id: "asset_id",
67
+ * column: 1,
68
+ * row: 1,
69
+ * value: "value"
70
+ * })
71
+ */
72
+ updateCell(request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__updateCell(request, requestOptions));
74
+ }
75
+ __updateCell(request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
78
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
79
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
80
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/cell/update"),
81
+ method: "POST",
82
+ headers: _headers,
83
+ contentType: "application/json",
84
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
85
+ requestType: "json",
86
+ body: request,
87
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
88
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ });
91
+ if (_response.ok) {
92
+ return {
93
+ data: _response.body,
94
+ rawResponse: _response.rawResponse,
95
+ };
96
+ }
97
+ if (_response.error.reason === "status-code") {
98
+ switch (_response.error.statusCode) {
99
+ case 422:
100
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
101
+ default:
102
+ throw new errors.AthenaIntelligenceError({
103
+ statusCode: _response.error.statusCode,
104
+ body: _response.error.body,
105
+ rawResponse: _response.rawResponse,
106
+ });
107
+ }
108
+ }
109
+ switch (_response.error.reason) {
110
+ case "non-json":
111
+ throw new errors.AthenaIntelligenceError({
112
+ statusCode: _response.error.statusCode,
113
+ body: _response.error.rawBody,
114
+ rawResponse: _response.rawResponse,
115
+ });
116
+ case "timeout":
117
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/cell/update.");
118
+ case "unknown":
119
+ throw new errors.AthenaIntelligenceError({
120
+ message: _response.error.errorMessage,
121
+ rawResponse: _response.rawResponse,
122
+ });
123
+ }
124
+ });
125
+ }
126
+ /**
127
+ * Delete cells from an Athena spreadsheet.
128
+ *
129
+ * @param {AthenaIntelligence.tools.DeleteCellsRequest} request
130
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
133
+ *
134
+ * @example
135
+ * await client.tools.sheets.deleteCells({
136
+ * asset_id: "asset_id",
137
+ * end_column_index: 1,
138
+ * end_row_index: 1,
139
+ * start_column_index: 1,
140
+ * start_row_index: 1
141
+ * })
142
+ */
143
+ deleteCells(request, requestOptions) {
144
+ return core.HttpResponsePromise.fromPromise(this.__deleteCells(request, requestOptions));
145
+ }
146
+ __deleteCells(request, requestOptions) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
149
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
150
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
151
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/cells/delete"),
152
+ method: "POST",
153
+ headers: _headers,
154
+ contentType: "application/json",
155
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
156
+ requestType: "json",
157
+ body: request,
158
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
159
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
160
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
+ });
162
+ if (_response.ok) {
163
+ return {
164
+ data: _response.body,
165
+ rawResponse: _response.rawResponse,
166
+ };
167
+ }
168
+ if (_response.error.reason === "status-code") {
169
+ switch (_response.error.statusCode) {
170
+ case 422:
171
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
172
+ default:
173
+ throw new errors.AthenaIntelligenceError({
174
+ statusCode: _response.error.statusCode,
175
+ body: _response.error.body,
176
+ rawResponse: _response.rawResponse,
177
+ });
178
+ }
179
+ }
180
+ switch (_response.error.reason) {
181
+ case "non-json":
182
+ throw new errors.AthenaIntelligenceError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.rawBody,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ case "timeout":
188
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/cells/delete.");
189
+ case "unknown":
190
+ throw new errors.AthenaIntelligenceError({
191
+ message: _response.error.errorMessage,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ });
196
+ }
197
+ /**
198
+ * Delete columns from an Athena spreadsheet.
199
+ *
200
+ * @param {AthenaIntelligence.tools.DeleteColumnRequest} request
201
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
202
+ *
203
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
204
+ *
205
+ * @example
206
+ * await client.tools.sheets.deleteColumn({
207
+ * asset_id: "asset_id",
208
+ * column_indexes: [1]
209
+ * })
210
+ */
211
+ deleteColumn(request, requestOptions) {
212
+ return core.HttpResponsePromise.fromPromise(this.__deleteColumn(request, requestOptions));
213
+ }
214
+ __deleteColumn(request, requestOptions) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
217
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
218
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
219
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/column/delete"),
220
+ method: "POST",
221
+ headers: _headers,
222
+ contentType: "application/json",
223
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
224
+ requestType: "json",
225
+ body: request,
226
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
227
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
228
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
229
+ });
230
+ if (_response.ok) {
231
+ return {
232
+ data: _response.body,
233
+ rawResponse: _response.rawResponse,
234
+ };
235
+ }
236
+ if (_response.error.reason === "status-code") {
237
+ switch (_response.error.statusCode) {
238
+ case 422:
239
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
240
+ default:
241
+ throw new errors.AthenaIntelligenceError({
242
+ statusCode: _response.error.statusCode,
243
+ body: _response.error.body,
244
+ rawResponse: _response.rawResponse,
245
+ });
246
+ }
247
+ }
248
+ switch (_response.error.reason) {
249
+ case "non-json":
250
+ throw new errors.AthenaIntelligenceError({
251
+ statusCode: _response.error.statusCode,
252
+ body: _response.error.rawBody,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ case "timeout":
256
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/column/delete.");
257
+ case "unknown":
258
+ throw new errors.AthenaIntelligenceError({
259
+ message: _response.error.errorMessage,
260
+ rawResponse: _response.rawResponse,
261
+ });
262
+ }
263
+ });
264
+ }
265
+ /**
266
+ * Insert a column in an Athena spreadsheet.
267
+ *
268
+ * @param {AthenaIntelligence.tools.InsertColumnRequest} request
269
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
270
+ *
271
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
272
+ *
273
+ * @example
274
+ * await client.tools.sheets.insertColumn({
275
+ * asset_id: "asset_id",
276
+ * reference_column_index: 1
277
+ * })
278
+ */
279
+ insertColumn(request, requestOptions) {
280
+ return core.HttpResponsePromise.fromPromise(this.__insertColumn(request, requestOptions));
281
+ }
282
+ __insertColumn(request, requestOptions) {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
285
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
286
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
287
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/column/insert"),
288
+ method: "POST",
289
+ headers: _headers,
290
+ contentType: "application/json",
291
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
292
+ requestType: "json",
293
+ body: request,
294
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
295
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
296
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
297
+ });
298
+ if (_response.ok) {
299
+ return {
300
+ data: _response.body,
301
+ rawResponse: _response.rawResponse,
302
+ };
303
+ }
304
+ if (_response.error.reason === "status-code") {
305
+ switch (_response.error.statusCode) {
306
+ case 422:
307
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
308
+ default:
309
+ throw new errors.AthenaIntelligenceError({
310
+ statusCode: _response.error.statusCode,
311
+ body: _response.error.body,
312
+ rawResponse: _response.rawResponse,
313
+ });
314
+ }
315
+ }
316
+ switch (_response.error.reason) {
317
+ case "non-json":
318
+ throw new errors.AthenaIntelligenceError({
319
+ statusCode: _response.error.statusCode,
320
+ body: _response.error.rawBody,
321
+ rawResponse: _response.rawResponse,
322
+ });
323
+ case "timeout":
324
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/column/insert.");
325
+ case "unknown":
326
+ throw new errors.AthenaIntelligenceError({
327
+ message: _response.error.errorMessage,
328
+ rawResponse: _response.rawResponse,
329
+ });
330
+ }
331
+ });
332
+ }
333
+ /**
334
+ * Clear formatting from cells in an Athena spreadsheet.
335
+ *
336
+ * @param {AthenaIntelligence.tools.ClearFormattingRequest} request
337
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
338
+ *
339
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
340
+ *
341
+ * @example
342
+ * await client.tools.sheets.clearFormatting({
343
+ * asset_id: "asset_id",
344
+ * end_column_index: 1,
345
+ * end_row_index: 1,
346
+ * start_column_index: 1,
347
+ * start_row_index: 1
348
+ * })
349
+ */
350
+ clearFormatting(request, requestOptions) {
351
+ return core.HttpResponsePromise.fromPromise(this.__clearFormatting(request, requestOptions));
352
+ }
353
+ __clearFormatting(request, requestOptions) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
356
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
357
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
358
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/formatting/clear"),
359
+ method: "POST",
360
+ headers: _headers,
361
+ contentType: "application/json",
362
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
363
+ requestType: "json",
364
+ body: request,
365
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
366
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
367
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
368
+ });
369
+ if (_response.ok) {
370
+ return {
371
+ data: _response.body,
372
+ rawResponse: _response.rawResponse,
373
+ };
374
+ }
375
+ if (_response.error.reason === "status-code") {
376
+ switch (_response.error.statusCode) {
377
+ case 422:
378
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
379
+ default:
380
+ throw new errors.AthenaIntelligenceError({
381
+ statusCode: _response.error.statusCode,
382
+ body: _response.error.body,
383
+ rawResponse: _response.rawResponse,
384
+ });
385
+ }
386
+ }
387
+ switch (_response.error.reason) {
388
+ case "non-json":
389
+ throw new errors.AthenaIntelligenceError({
390
+ statusCode: _response.error.statusCode,
391
+ body: _response.error.rawBody,
392
+ rawResponse: _response.rawResponse,
393
+ });
394
+ case "timeout":
395
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/formatting/clear.");
396
+ case "unknown":
397
+ throw new errors.AthenaIntelligenceError({
398
+ message: _response.error.errorMessage,
399
+ rawResponse: _response.rawResponse,
400
+ });
401
+ }
402
+ });
403
+ }
404
+ /**
405
+ * Clear a range of cells in an Athena spreadsheet.
406
+ *
407
+ * @param {AthenaIntelligence.tools.ClearSheetRangeRequest} request
408
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
409
+ *
410
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
411
+ *
412
+ * @example
413
+ * await client.tools.sheets.clearRange({
414
+ * asset_id: "asset_id",
415
+ * num_columns: 1,
416
+ * num_rows: 1,
417
+ * start_column: 1,
418
+ * start_row: 1
419
+ * })
420
+ */
421
+ clearRange(request, requestOptions) {
422
+ return core.HttpResponsePromise.fromPromise(this.__clearRange(request, requestOptions));
423
+ }
424
+ __clearRange(request, requestOptions) {
425
+ return __awaiter(this, void 0, void 0, function* () {
426
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
427
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
428
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
429
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/range/clear"),
430
+ method: "POST",
431
+ headers: _headers,
432
+ contentType: "application/json",
433
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
434
+ requestType: "json",
435
+ body: request,
436
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
437
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
438
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
439
+ });
440
+ if (_response.ok) {
441
+ return {
442
+ data: _response.body,
443
+ rawResponse: _response.rawResponse,
444
+ };
445
+ }
446
+ if (_response.error.reason === "status-code") {
447
+ switch (_response.error.statusCode) {
448
+ case 422:
449
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
450
+ default:
451
+ throw new errors.AthenaIntelligenceError({
452
+ statusCode: _response.error.statusCode,
453
+ body: _response.error.body,
454
+ rawResponse: _response.rawResponse,
455
+ });
456
+ }
457
+ }
458
+ switch (_response.error.reason) {
459
+ case "non-json":
460
+ throw new errors.AthenaIntelligenceError({
461
+ statusCode: _response.error.statusCode,
462
+ body: _response.error.rawBody,
463
+ rawResponse: _response.rawResponse,
464
+ });
465
+ case "timeout":
466
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/clear.");
467
+ case "unknown":
468
+ throw new errors.AthenaIntelligenceError({
469
+ message: _response.error.errorMessage,
470
+ rawResponse: _response.rawResponse,
471
+ });
472
+ }
473
+ });
474
+ }
475
+ /**
476
+ * Apply formatting to a range of cells in an Athena spreadsheet.
477
+ *
478
+ * @param {AthenaIntelligence.tools.FormatSheetRangeRequest} request
479
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
480
+ *
481
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
482
+ *
483
+ * @example
484
+ * await client.tools.sheets.formatRange({
485
+ * asset_id: "asset_id",
486
+ * end_column: 1,
487
+ * end_row: 1,
488
+ * formatting: {},
489
+ * start_column: 1,
490
+ * start_row: 1
491
+ * })
492
+ */
493
+ formatRange(request, requestOptions) {
494
+ return core.HttpResponsePromise.fromPromise(this.__formatRange(request, requestOptions));
495
+ }
496
+ __formatRange(request, requestOptions) {
497
+ return __awaiter(this, void 0, void 0, function* () {
498
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
499
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
500
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
501
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/range/format"),
502
+ method: "POST",
503
+ headers: _headers,
504
+ contentType: "application/json",
505
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
506
+ requestType: "json",
507
+ body: request,
508
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
509
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
510
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
511
+ });
512
+ if (_response.ok) {
513
+ return {
514
+ data: _response.body,
515
+ rawResponse: _response.rawResponse,
516
+ };
517
+ }
518
+ if (_response.error.reason === "status-code") {
519
+ switch (_response.error.statusCode) {
520
+ case 422:
521
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
522
+ default:
523
+ throw new errors.AthenaIntelligenceError({
524
+ statusCode: _response.error.statusCode,
525
+ body: _response.error.body,
526
+ rawResponse: _response.rawResponse,
527
+ });
528
+ }
529
+ }
530
+ switch (_response.error.reason) {
531
+ case "non-json":
532
+ throw new errors.AthenaIntelligenceError({
533
+ statusCode: _response.error.statusCode,
534
+ body: _response.error.rawBody,
535
+ rawResponse: _response.rawResponse,
536
+ });
537
+ case "timeout":
538
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/format.");
539
+ case "unknown":
540
+ throw new errors.AthenaIntelligenceError({
541
+ message: _response.error.errorMessage,
542
+ rawResponse: _response.rawResponse,
543
+ });
544
+ }
545
+ });
546
+ }
547
+ /**
548
+ * Update a range of cells in an Athena spreadsheet.
549
+ *
550
+ * @param {AthenaIntelligence.tools.UpdateSheetRangeRequest} request
551
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
552
+ *
553
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
554
+ *
555
+ * @example
556
+ * await client.tools.sheets.updateRange({
557
+ * asset_id: "asset_id",
558
+ * start_column: 1,
559
+ * start_row: 1,
560
+ * values: [[]]
561
+ * })
562
+ */
563
+ updateRange(request, requestOptions) {
564
+ return core.HttpResponsePromise.fromPromise(this.__updateRange(request, requestOptions));
565
+ }
566
+ __updateRange(request, requestOptions) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
569
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
570
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
571
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/range/update"),
572
+ method: "POST",
573
+ headers: _headers,
574
+ contentType: "application/json",
575
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
576
+ requestType: "json",
577
+ body: request,
578
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
579
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
580
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
581
+ });
582
+ if (_response.ok) {
583
+ return {
584
+ data: _response.body,
585
+ rawResponse: _response.rawResponse,
586
+ };
587
+ }
588
+ if (_response.error.reason === "status-code") {
589
+ switch (_response.error.statusCode) {
590
+ case 422:
591
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
592
+ default:
593
+ throw new errors.AthenaIntelligenceError({
594
+ statusCode: _response.error.statusCode,
595
+ body: _response.error.body,
596
+ rawResponse: _response.rawResponse,
597
+ });
598
+ }
599
+ }
600
+ switch (_response.error.reason) {
601
+ case "non-json":
602
+ throw new errors.AthenaIntelligenceError({
603
+ statusCode: _response.error.statusCode,
604
+ body: _response.error.rawBody,
605
+ rawResponse: _response.rawResponse,
606
+ });
607
+ case "timeout":
608
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/update.");
609
+ case "unknown":
610
+ throw new errors.AthenaIntelligenceError({
611
+ message: _response.error.errorMessage,
612
+ rawResponse: _response.rawResponse,
613
+ });
614
+ }
615
+ });
616
+ }
617
+ /**
618
+ * Insert a row in an Athena spreadsheet.
619
+ *
620
+ * @param {AthenaIntelligence.tools.InsertRowRequest} request
621
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
622
+ *
623
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
624
+ *
625
+ * @example
626
+ * await client.tools.sheets.insertRow({
627
+ * asset_id: "asset_id",
628
+ * reference_row_index: 1
629
+ * })
630
+ */
631
+ insertRow(request, requestOptions) {
632
+ return core.HttpResponsePromise.fromPromise(this.__insertRow(request, requestOptions));
633
+ }
634
+ __insertRow(request, requestOptions) {
635
+ return __awaiter(this, void 0, void 0, function* () {
636
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
637
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
638
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
639
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/row/insert"),
640
+ method: "POST",
641
+ headers: _headers,
642
+ contentType: "application/json",
643
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
644
+ requestType: "json",
645
+ body: request,
646
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
647
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
648
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
649
+ });
650
+ if (_response.ok) {
651
+ return {
652
+ data: _response.body,
653
+ rawResponse: _response.rawResponse,
654
+ };
655
+ }
656
+ if (_response.error.reason === "status-code") {
657
+ switch (_response.error.statusCode) {
658
+ case 422:
659
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
660
+ default:
661
+ throw new errors.AthenaIntelligenceError({
662
+ statusCode: _response.error.statusCode,
663
+ body: _response.error.body,
664
+ rawResponse: _response.rawResponse,
665
+ });
666
+ }
667
+ }
668
+ switch (_response.error.reason) {
669
+ case "non-json":
670
+ throw new errors.AthenaIntelligenceError({
671
+ statusCode: _response.error.statusCode,
672
+ body: _response.error.rawBody,
673
+ rawResponse: _response.rawResponse,
674
+ });
675
+ case "timeout":
676
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/row/insert.");
677
+ case "unknown":
678
+ throw new errors.AthenaIntelligenceError({
679
+ message: _response.error.errorMessage,
680
+ rawResponse: _response.rawResponse,
681
+ });
682
+ }
683
+ });
684
+ }
685
+ /**
686
+ * Duplicate an existing sheet in an Athena spreadsheet.
687
+ *
688
+ * @param {AthenaIntelligence.tools.DuplicateSheetRequest} request
689
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
690
+ *
691
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
692
+ *
693
+ * @example
694
+ * await client.tools.sheets.duplicateSheet({
695
+ * asset_id: "asset_id"
696
+ * })
697
+ */
698
+ duplicateSheet(request, requestOptions) {
699
+ return core.HttpResponsePromise.fromPromise(this.__duplicateSheet(request, requestOptions));
700
+ }
701
+ __duplicateSheet(request, requestOptions) {
702
+ return __awaiter(this, void 0, void 0, function* () {
703
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
704
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
705
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
706
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/sheet/duplicate"),
707
+ method: "POST",
708
+ headers: _headers,
709
+ contentType: "application/json",
710
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
711
+ requestType: "json",
712
+ body: request,
713
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
714
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
715
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
716
+ });
717
+ if (_response.ok) {
718
+ return {
719
+ data: _response.body,
720
+ rawResponse: _response.rawResponse,
721
+ };
722
+ }
723
+ if (_response.error.reason === "status-code") {
724
+ switch (_response.error.statusCode) {
725
+ case 422:
726
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
727
+ default:
728
+ throw new errors.AthenaIntelligenceError({
729
+ statusCode: _response.error.statusCode,
730
+ body: _response.error.body,
731
+ rawResponse: _response.rawResponse,
732
+ });
733
+ }
734
+ }
735
+ switch (_response.error.reason) {
736
+ case "non-json":
737
+ throw new errors.AthenaIntelligenceError({
738
+ statusCode: _response.error.statusCode,
739
+ body: _response.error.rawBody,
740
+ rawResponse: _response.rawResponse,
741
+ });
742
+ case "timeout":
743
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/sheet/duplicate.");
744
+ case "unknown":
745
+ throw new errors.AthenaIntelligenceError({
746
+ message: _response.error.errorMessage,
747
+ rawResponse: _response.rawResponse,
748
+ });
749
+ }
750
+ });
751
+ }
752
+ /**
753
+ * Create a new tab in an Athena spreadsheet.
754
+ *
755
+ * @param {AthenaIntelligence.tools.CreateNewSheetTabRequest} request
756
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
757
+ *
758
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
759
+ *
760
+ * @example
761
+ * await client.tools.sheets.createTab({
762
+ * asset_id: "asset_id",
763
+ * sheet: {
764
+ * columnCount: 1,
765
+ * index: 1,
766
+ * rowCount: 1,
767
+ * sheetId: 1,
768
+ * title: "title"
769
+ * }
770
+ * })
771
+ */
772
+ createTab(request, requestOptions) {
773
+ return core.HttpResponsePromise.fromPromise(this.__createTab(request, requestOptions));
774
+ }
775
+ __createTab(request, requestOptions) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
778
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
779
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
780
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/tab/create"),
781
+ method: "POST",
782
+ headers: _headers,
783
+ contentType: "application/json",
784
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
785
+ requestType: "json",
786
+ body: request,
787
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
788
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
789
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
790
+ });
791
+ if (_response.ok) {
792
+ return {
793
+ data: _response.body,
794
+ rawResponse: _response.rawResponse,
795
+ };
796
+ }
797
+ if (_response.error.reason === "status-code") {
798
+ switch (_response.error.statusCode) {
799
+ case 422:
800
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
801
+ default:
802
+ throw new errors.AthenaIntelligenceError({
803
+ statusCode: _response.error.statusCode,
804
+ body: _response.error.body,
805
+ rawResponse: _response.rawResponse,
806
+ });
807
+ }
808
+ }
809
+ switch (_response.error.reason) {
810
+ case "non-json":
811
+ throw new errors.AthenaIntelligenceError({
812
+ statusCode: _response.error.statusCode,
813
+ body: _response.error.rawBody,
814
+ rawResponse: _response.rawResponse,
815
+ });
816
+ case "timeout":
817
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/tab/create.");
818
+ case "unknown":
819
+ throw new errors.AthenaIntelligenceError({
820
+ message: _response.error.errorMessage,
821
+ rawResponse: _response.rawResponse,
822
+ });
823
+ }
824
+ });
825
+ }
826
+ /**
827
+ * Delete a column from a table within an Athena spreadsheet.
828
+ *
829
+ * @param {AthenaIntelligence.tools.DeleteTableColumnRequest} request
830
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
831
+ *
832
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
833
+ *
834
+ * @example
835
+ * await client.tools.sheets.deleteTableColumn({
836
+ * asset_id: "asset_id",
837
+ * dimension_index: 1,
838
+ * table_id: "table_id"
839
+ * })
840
+ */
841
+ deleteTableColumn(request, requestOptions) {
842
+ return core.HttpResponsePromise.fromPromise(this.__deleteTableColumn(request, requestOptions));
843
+ }
844
+ __deleteTableColumn(request, requestOptions) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
847
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
848
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
849
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/column/delete"),
850
+ method: "POST",
851
+ headers: _headers,
852
+ contentType: "application/json",
853
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
854
+ requestType: "json",
855
+ body: request,
856
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
857
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
858
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
859
+ });
860
+ if (_response.ok) {
861
+ return {
862
+ data: _response.body,
863
+ rawResponse: _response.rawResponse,
864
+ };
865
+ }
866
+ if (_response.error.reason === "status-code") {
867
+ switch (_response.error.statusCode) {
868
+ case 422:
869
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
870
+ default:
871
+ throw new errors.AthenaIntelligenceError({
872
+ statusCode: _response.error.statusCode,
873
+ body: _response.error.body,
874
+ rawResponse: _response.rawResponse,
875
+ });
876
+ }
877
+ }
878
+ switch (_response.error.reason) {
879
+ case "non-json":
880
+ throw new errors.AthenaIntelligenceError({
881
+ statusCode: _response.error.statusCode,
882
+ body: _response.error.rawBody,
883
+ rawResponse: _response.rawResponse,
884
+ });
885
+ case "timeout":
886
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/column/delete.");
887
+ case "unknown":
888
+ throw new errors.AthenaIntelligenceError({
889
+ message: _response.error.errorMessage,
890
+ rawResponse: _response.rawResponse,
891
+ });
892
+ }
893
+ });
894
+ }
895
+ /**
896
+ * Insert a column in a table within an Athena spreadsheet.
897
+ *
898
+ * @param {AthenaIntelligence.tools.InsertTableColumnRequest} request
899
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
900
+ *
901
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
902
+ *
903
+ * @example
904
+ * await client.tools.sheets.insertTableColumn({
905
+ * asset_id: "asset_id",
906
+ * dimension_index: 1,
907
+ * direction: "direction",
908
+ * table_id: "table_id"
909
+ * })
910
+ */
911
+ insertTableColumn(request, requestOptions) {
912
+ return core.HttpResponsePromise.fromPromise(this.__insertTableColumn(request, requestOptions));
913
+ }
914
+ __insertTableColumn(request, requestOptions) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
917
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
918
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
919
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/column/insert"),
920
+ method: "POST",
921
+ headers: _headers,
922
+ contentType: "application/json",
923
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
924
+ requestType: "json",
925
+ body: request,
926
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
927
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
928
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
929
+ });
930
+ if (_response.ok) {
931
+ return {
932
+ data: _response.body,
933
+ rawResponse: _response.rawResponse,
934
+ };
935
+ }
936
+ if (_response.error.reason === "status-code") {
937
+ switch (_response.error.statusCode) {
938
+ case 422:
939
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
940
+ default:
941
+ throw new errors.AthenaIntelligenceError({
942
+ statusCode: _response.error.statusCode,
943
+ body: _response.error.body,
944
+ rawResponse: _response.rawResponse,
945
+ });
946
+ }
947
+ }
948
+ switch (_response.error.reason) {
949
+ case "non-json":
950
+ throw new errors.AthenaIntelligenceError({
951
+ statusCode: _response.error.statusCode,
952
+ body: _response.error.rawBody,
953
+ rawResponse: _response.rawResponse,
954
+ });
955
+ case "timeout":
956
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/column/insert.");
957
+ case "unknown":
958
+ throw new errors.AthenaIntelligenceError({
959
+ message: _response.error.errorMessage,
960
+ rawResponse: _response.rawResponse,
961
+ });
962
+ }
963
+ });
964
+ }
965
+ /**
966
+ * Create a table in an Athena spreadsheet.
967
+ *
968
+ * @param {AthenaIntelligence.tools.CreateTableRequest} request
969
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
970
+ *
971
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
972
+ *
973
+ * @example
974
+ * await client.tools.sheets.createTable({
975
+ * asset_id: "asset_id",
976
+ * end_column_index: 1,
977
+ * end_row_index: 1,
978
+ * start_column_index: 1,
979
+ * start_row_index: 1,
980
+ * table_id: "table_id",
981
+ * table_name: "table_name"
982
+ * })
983
+ */
984
+ createTable(request, requestOptions) {
985
+ return core.HttpResponsePromise.fromPromise(this.__createTable(request, requestOptions));
986
+ }
987
+ __createTable(request, requestOptions) {
988
+ return __awaiter(this, void 0, void 0, function* () {
989
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
990
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
991
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
992
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/create"),
993
+ method: "POST",
994
+ headers: _headers,
995
+ contentType: "application/json",
996
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
997
+ requestType: "json",
998
+ body: request,
999
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1000
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
1001
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1002
+ });
1003
+ if (_response.ok) {
1004
+ return {
1005
+ data: _response.body,
1006
+ rawResponse: _response.rawResponse,
1007
+ };
1008
+ }
1009
+ if (_response.error.reason === "status-code") {
1010
+ switch (_response.error.statusCode) {
1011
+ case 422:
1012
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1013
+ default:
1014
+ throw new errors.AthenaIntelligenceError({
1015
+ statusCode: _response.error.statusCode,
1016
+ body: _response.error.body,
1017
+ rawResponse: _response.rawResponse,
1018
+ });
1019
+ }
1020
+ }
1021
+ switch (_response.error.reason) {
1022
+ case "non-json":
1023
+ throw new errors.AthenaIntelligenceError({
1024
+ statusCode: _response.error.statusCode,
1025
+ body: _response.error.rawBody,
1026
+ rawResponse: _response.rawResponse,
1027
+ });
1028
+ case "timeout":
1029
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/create.");
1030
+ case "unknown":
1031
+ throw new errors.AthenaIntelligenceError({
1032
+ message: _response.error.errorMessage,
1033
+ rawResponse: _response.rawResponse,
1034
+ });
1035
+ }
1036
+ });
1037
+ }
1038
+ /**
1039
+ * Retrieve table data from an Athena spreadsheet.
1040
+ *
1041
+ * @param {AthenaIntelligence.tools.GetTableRequest} request
1042
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
1043
+ *
1044
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1045
+ *
1046
+ * @example
1047
+ * await client.tools.sheets.getTable({
1048
+ * asset_id: "asset_id",
1049
+ * table_name: "table_name"
1050
+ * })
1051
+ */
1052
+ getTable(request, requestOptions) {
1053
+ return core.HttpResponsePromise.fromPromise(this.__getTable(request, requestOptions));
1054
+ }
1055
+ __getTable(request, requestOptions) {
1056
+ return __awaiter(this, void 0, void 0, function* () {
1057
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1058
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1059
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1060
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/get"),
1061
+ method: "POST",
1062
+ headers: _headers,
1063
+ contentType: "application/json",
1064
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1065
+ requestType: "json",
1066
+ body: request,
1067
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1068
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
1069
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1070
+ });
1071
+ if (_response.ok) {
1072
+ return { data: _response.body, rawResponse: _response.rawResponse };
1073
+ }
1074
+ if (_response.error.reason === "status-code") {
1075
+ switch (_response.error.statusCode) {
1076
+ case 422:
1077
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1078
+ default:
1079
+ throw new errors.AthenaIntelligenceError({
1080
+ statusCode: _response.error.statusCode,
1081
+ body: _response.error.body,
1082
+ rawResponse: _response.rawResponse,
1083
+ });
1084
+ }
1085
+ }
1086
+ switch (_response.error.reason) {
1087
+ case "non-json":
1088
+ throw new errors.AthenaIntelligenceError({
1089
+ statusCode: _response.error.statusCode,
1090
+ body: _response.error.rawBody,
1091
+ rawResponse: _response.rawResponse,
1092
+ });
1093
+ case "timeout":
1094
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/get.");
1095
+ case "unknown":
1096
+ throw new errors.AthenaIntelligenceError({
1097
+ message: _response.error.errorMessage,
1098
+ rawResponse: _response.rawResponse,
1099
+ });
1100
+ }
1101
+ });
1102
+ }
1103
+ /**
1104
+ * Insert rows into a table in an Athena spreadsheet.
1105
+ *
1106
+ * @param {AthenaIntelligence.tools.InsertTableRowRequest} request
1107
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
1108
+ *
1109
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1110
+ *
1111
+ * @example
1112
+ * await client.tools.sheets.insertTableRow({
1113
+ * asset_id: "asset_id",
1114
+ * row_data: [{
1115
+ * "key": "value"
1116
+ * }],
1117
+ * table_name: "table_name"
1118
+ * })
1119
+ */
1120
+ insertTableRow(request, requestOptions) {
1121
+ return core.HttpResponsePromise.fromPromise(this.__insertTableRow(request, requestOptions));
1122
+ }
1123
+ __insertTableRow(request, requestOptions) {
1124
+ return __awaiter(this, void 0, void 0, function* () {
1125
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1126
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1127
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1128
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/insert-row"),
1129
+ method: "POST",
1130
+ headers: _headers,
1131
+ contentType: "application/json",
1132
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1133
+ requestType: "json",
1134
+ body: request,
1135
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1136
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
1137
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1138
+ });
1139
+ if (_response.ok) {
1140
+ return {
1141
+ data: _response.body,
1142
+ rawResponse: _response.rawResponse,
1143
+ };
1144
+ }
1145
+ if (_response.error.reason === "status-code") {
1146
+ switch (_response.error.statusCode) {
1147
+ case 422:
1148
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1149
+ default:
1150
+ throw new errors.AthenaIntelligenceError({
1151
+ statusCode: _response.error.statusCode,
1152
+ body: _response.error.body,
1153
+ rawResponse: _response.rawResponse,
1154
+ });
1155
+ }
1156
+ }
1157
+ switch (_response.error.reason) {
1158
+ case "non-json":
1159
+ throw new errors.AthenaIntelligenceError({
1160
+ statusCode: _response.error.statusCode,
1161
+ body: _response.error.rawBody,
1162
+ rawResponse: _response.rawResponse,
1163
+ });
1164
+ case "timeout":
1165
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/insert-row.");
1166
+ case "unknown":
1167
+ throw new errors.AthenaIntelligenceError({
1168
+ message: _response.error.errorMessage,
1169
+ rawResponse: _response.rawResponse,
1170
+ });
1171
+ }
1172
+ });
1173
+ }
1174
+ /**
1175
+ * Update an existing table in an Athena spreadsheet.
1176
+ *
1177
+ * @param {AthenaIntelligence.tools.UpdateTableRequest} request
1178
+ * @param {Sheets.RequestOptions} requestOptions - Request-specific configuration.
1179
+ *
1180
+ * @throws {@link AthenaIntelligence.UnprocessableEntityError}
1181
+ *
1182
+ * @example
1183
+ * await client.tools.sheets.updateTable({
1184
+ * asset_id: "asset_id",
1185
+ * end_column_index: 1,
1186
+ * end_row_index: 1,
1187
+ * start_column_index: 1,
1188
+ * start_row_index: 1,
1189
+ * table_id: "table_id",
1190
+ * table_name: "table_name"
1191
+ * })
1192
+ */
1193
+ updateTable(request, requestOptions) {
1194
+ return core.HttpResponsePromise.fromPromise(this.__updateTable(request, requestOptions));
1195
+ }
1196
+ __updateTable(request, requestOptions) {
1197
+ return __awaiter(this, void 0, void 0, function* () {
1198
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1199
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1200
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1201
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/table/update"),
1202
+ method: "POST",
1203
+ headers: _headers,
1204
+ contentType: "application/json",
1205
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1206
+ requestType: "json",
1207
+ body: request,
1208
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
1209
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
1210
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1211
+ });
1212
+ if (_response.ok) {
1213
+ return {
1214
+ data: _response.body,
1215
+ rawResponse: _response.rawResponse,
1216
+ };
1217
+ }
1218
+ if (_response.error.reason === "status-code") {
1219
+ switch (_response.error.statusCode) {
1220
+ case 422:
1221
+ throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1222
+ default:
1223
+ throw new errors.AthenaIntelligenceError({
1224
+ statusCode: _response.error.statusCode,
1225
+ body: _response.error.body,
1226
+ rawResponse: _response.rawResponse,
1227
+ });
1228
+ }
1229
+ }
1230
+ switch (_response.error.reason) {
1231
+ case "non-json":
1232
+ throw new errors.AthenaIntelligenceError({
1233
+ statusCode: _response.error.statusCode,
1234
+ body: _response.error.rawBody,
1235
+ rawResponse: _response.rawResponse,
1236
+ });
1237
+ case "timeout":
1238
+ throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/update.");
1239
+ case "unknown":
1240
+ throw new errors.AthenaIntelligenceError({
1241
+ message: _response.error.errorMessage,
1242
+ rawResponse: _response.rawResponse,
1243
+ });
1244
+ }
1245
+ });
1246
+ }
1247
+ _getCustomAuthorizationHeaders() {
1248
+ return __awaiter(this, void 0, void 0, function* () {
1249
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
1250
+ return { "X-API-KEY": apiKeyValue };
1251
+ });
1252
+ }
1253
+ }
1254
+ exports.Sheets = Sheets;