@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.
- package/README.md +592 -0
- package/dist/cjs/BaseClient.d.ts +27 -0
- package/dist/cjs/BaseClient.js +3 -0
- package/dist/cjs/Client.d.ts +32 -0
- package/dist/cjs/Client.js +87 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/errors/BadRequestError.js +50 -0
- package/dist/cjs/api/errors/ContentTooLargeError.d.ts +6 -0
- package/dist/cjs/api/errors/ContentTooLargeError.js +50 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/errors/InternalServerError.js +50 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/errors/NotFoundError.js +50 -0
- package/dist/cjs/api/errors/NotImplementedError.d.ts +5 -0
- package/dist/cjs/api/errors/NotImplementedError.js +50 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +5 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +50 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +50 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +5 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
- package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +6 -0
- package/dist/cjs/api/errors/UnsupportedMediaTypeError.js +50 -0
- package/dist/cjs/api/errors/index.d.ts +10 -0
- package/dist/cjs/api/errors/index.js +26 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/agents/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/agents/client/Client.js +162 -0
- package/dist/cjs/api/resources/agents/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/client/index.js +17 -0
- package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.d.ts +17 -0
- package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.js +3 -0
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agents/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/index.js +18 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +135 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.ts +17 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.js +3 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agents/resources/drive/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/drive/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/agents/resources/general/client/Client.js +285 -0
- package/dist/cjs/api/resources/agents/resources/general/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/general/client/index.js +2 -0
- package/dist/cjs/api/resources/agents/resources/general/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/general/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/agents/resources/index.js +46 -0
- package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/agents/resources/research/client/Client.js +135 -0
- package/dist/cjs/api/resources/agents/resources/research/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/resources/research/client/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.ts +17 -0
- package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.js +3 -0
- package/dist/cjs/api/resources/agents/resources/research/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/research/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agents/resources/research/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/research/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +132 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/index.js +17 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.ts +17 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.js +3 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agents/resources/sql/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/sql/index.js +17 -0
- package/dist/cjs/api/resources/aop/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/aop/client/Client.js +229 -0
- package/dist/cjs/api/resources/aop/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/aop/client/index.js +2 -0
- package/dist/cjs/api/resources/aop/index.d.ts +1 -0
- package/dist/cjs/api/resources/aop/index.js +17 -0
- package/dist/cjs/api/resources/assets/client/Client.d.ts +94 -0
- package/dist/cjs/api/resources/assets/client/Client.js +368 -0
- package/dist/cjs/api/resources/assets/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/assets/client/index.js +17 -0
- package/dist/cjs/api/resources/assets/client/requests/AssetsListRequest.d.ts +19 -0
- package/dist/cjs/api/resources/assets/client/requests/AssetsListRequest.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +17 -0
- package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/CreateProjectRequestIn.d.ts +33 -0
- package/dist/cjs/api/resources/assets/client/requests/CreateProjectRequestIn.js +3 -0
- package/dist/cjs/api/resources/assets/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/assets/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/assets/index.d.ts +1 -0
- package/dist/cjs/api/resources/assets/index.js +17 -0
- package/dist/cjs/api/resources/databases/client/Client.d.ts +166 -0
- package/dist/cjs/api/resources/databases/client/Client.js +592 -0
- package/dist/cjs/api/resources/databases/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/databases/client/index.js +17 -0
- package/dist/cjs/api/resources/databases/client/requests/DatabasesSelectRequest.d.ts +19 -0
- package/dist/cjs/api/resources/databases/client/requests/DatabasesSelectRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/InsertDataRequest.d.ts +22 -0
- package/dist/cjs/api/resources/databases/client/requests/InsertDataRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.d.ts +16 -0
- package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/databases/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/databases/index.d.ts +1 -0
- package/dist/cjs/api/resources/databases/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +14 -0
- package/dist/cjs/api/resources/index.js +53 -0
- package/dist/cjs/api/resources/query/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/query/client/Client.js +213 -0
- package/dist/cjs/api/resources/query/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/query/client/index.js +17 -0
- package/dist/cjs/api/resources/query/client/requests/QueryExecuteRequest.d.ts +14 -0
- package/dist/cjs/api/resources/query/client/requests/QueryExecuteRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/QueryExecuteSnippetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/query/client/requests/QueryExecuteSnippetRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/query/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/query/index.d.ts +2 -0
- package/dist/cjs/api/resources/query/index.js +18 -0
- package/dist/cjs/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.d.ts +4 -0
- package/dist/cjs/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.js +3 -0
- package/dist/cjs/api/resources/query/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/query/types/index.js +17 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/threads/client/Client.js +134 -0
- package/dist/cjs/api/resources/threads/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/client/index.js +2 -0
- package/dist/cjs/api/resources/threads/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/index.js +17 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +151 -0
- package/dist/cjs/api/resources/tools/client/Client.js +643 -0
- package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +13 -0
- package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/FileChunkRequestIn.d.ts +10 -0
- package/dist/cjs/api/resources/tools/client/requests/FileChunkRequestIn.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.d.ts +22 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetContentRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetContentRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.ts +11 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsListContentsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsListContentsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsRawDataRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsRawDataRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/tools/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/index.d.ts +3 -0
- package/dist/cjs/api/resources/tools/index.js +19 -0
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.d.ts +33 -0
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.js +164 -0
- package/dist/cjs/api/resources/tools/resources/calendar/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/calendar/client/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/calendar/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/calendar/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/email/client/Client.d.ts +43 -0
- package/dist/cjs/api/resources/tools/resources/email/client/Client.js +215 -0
- package/dist/cjs/api/resources/tools/resources/email/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/email/client/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/email/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/email/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/tools/resources/index.js +47 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.d.ts +324 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.js +1254 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.d.ts +24 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.d.ts +24 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.ts +20 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.d.ts +30 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.d.ts +24 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.d.ts +15 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.d.ts +18 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.ts +14 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.d.ts +28 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.ts +15 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/GetTableRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.d.ts +15 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.d.ts +17 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.d.ts +21 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.ts +21 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.ts +21 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.ts +30 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.d.ts +30 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/index.d.ts +17 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/sheets/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/sheets/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.js +181 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.ts +50 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.js +3 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.d.ts +31 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.js +129 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.d.ts +22 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.js +12 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/tasks/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/tasks/index.js +17 -0
- package/dist/cjs/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.ts +1 -0
- package/dist/cjs/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.js +3 -0
- package/dist/cjs/api/resources/tools/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/types/index.js +17 -0
- package/dist/cjs/api/types/AopAsyncExecuteResponseOut.d.ts +25 -0
- package/dist/cjs/api/types/AopAsyncExecuteResponseOut.js +3 -0
- package/dist/cjs/api/types/AopExecuteRequestIn.d.ts +9 -0
- package/dist/cjs/api/types/AopExecuteRequestIn.js +3 -0
- package/dist/cjs/api/types/AopExecuteResponseOut.d.ts +28 -0
- package/dist/cjs/api/types/AopExecuteResponseOut.js +3 -0
- package/dist/cjs/api/types/AssetContentRequestOut.d.ts +7 -0
- package/dist/cjs/api/types/AssetContentRequestOut.js +3 -0
- package/dist/cjs/api/types/AssetNode.d.ts +11 -0
- package/dist/cjs/api/types/AssetNode.js +3 -0
- package/dist/cjs/api/types/AssetScreenshotResponseOut.d.ts +13 -0
- package/dist/cjs/api/types/AssetScreenshotResponseOut.js +3 -0
- package/dist/cjs/api/types/BorderModel.d.ts +9 -0
- package/dist/cjs/api/types/BorderModel.js +3 -0
- package/dist/cjs/api/types/BorderStyle.d.ts +9 -0
- package/dist/cjs/api/types/BorderStyle.js +12 -0
- package/dist/cjs/api/types/BordersModel.d.ts +30 -0
- package/dist/cjs/api/types/BordersModel.js +3 -0
- package/dist/cjs/api/types/CellFormat.d.ts +30 -0
- package/dist/cjs/api/types/CellFormat.js +17 -0
- package/dist/cjs/api/types/Chunk.d.ts +9 -0
- package/dist/cjs/api/types/Chunk.js +3 -0
- package/dist/cjs/api/types/ChunkContentItem.d.ts +10 -0
- package/dist/cjs/api/types/ChunkContentItem.js +3 -0
- package/dist/cjs/api/types/ChunkResult.d.ts +10 -0
- package/dist/cjs/api/types/ChunkResult.js +3 -0
- package/dist/cjs/api/types/ConversationAssetInfo.d.ts +42 -0
- package/dist/cjs/api/types/ConversationAssetInfo.js +3 -0
- package/dist/cjs/api/types/ConversationMessage.d.ts +17 -0
- package/dist/cjs/api/types/ConversationMessage.js +3 -0
- package/dist/cjs/api/types/ConversationResult.d.ts +24 -0
- package/dist/cjs/api/types/ConversationResult.js +3 -0
- package/dist/cjs/api/types/CreatableAssetType.d.ts +7 -0
- package/dist/cjs/api/types/CreatableAssetType.js +10 -0
- package/dist/cjs/api/types/CreateAssetResponseOut.d.ts +15 -0
- package/dist/cjs/api/types/CreateAssetResponseOut.js +3 -0
- package/dist/cjs/api/types/CreateNewSheetTabResponse.d.ts +10 -0
- package/dist/cjs/api/types/CreateNewSheetTabResponse.js +3 -0
- package/dist/cjs/api/types/CreateProjectResponseOut.d.ts +17 -0
- package/dist/cjs/api/types/CreateProjectResponseOut.js +3 -0
- package/dist/cjs/api/types/CustomAgentResponse.d.ts +4 -0
- package/dist/cjs/api/types/CustomAgentResponse.js +3 -0
- package/dist/cjs/api/types/DataFrameRequestOut.d.ts +22 -0
- package/dist/cjs/api/types/DataFrameRequestOut.js +3 -0
- package/dist/cjs/api/types/DataFrameUnknownFormatError.d.ts +5 -0
- package/dist/cjs/api/types/DataFrameUnknownFormatError.js +3 -0
- package/dist/cjs/api/types/DatabaseColumnInfo.d.ts +15 -0
- package/dist/cjs/api/types/DatabaseColumnInfo.js +3 -0
- package/dist/cjs/api/types/DatabaseDataResponse.d.ts +7 -0
- package/dist/cjs/api/types/DatabaseDataResponse.js +3 -0
- package/dist/cjs/api/types/DatabaseMutationResponse.d.ts +7 -0
- package/dist/cjs/api/types/DatabaseMutationResponse.js +3 -0
- package/dist/cjs/api/types/DatabaseTableInfo.d.ts +11 -0
- package/dist/cjs/api/types/DatabaseTableInfo.js +3 -0
- package/dist/cjs/api/types/DatabaseTableSchemaResponse.d.ts +12 -0
- package/dist/cjs/api/types/DatabaseTableSchemaResponse.js +3 -0
- package/dist/cjs/api/types/DatabaseTablesResponse.d.ts +8 -0
- package/dist/cjs/api/types/DatabaseTablesResponse.js +3 -0
- package/dist/cjs/api/types/DeleteDataRequest.d.ts +7 -0
- package/dist/cjs/api/types/DeleteDataRequest.js +3 -0
- package/dist/cjs/api/types/DimensionProperties.d.ts +13 -0
- package/dist/cjs/api/types/DimensionProperties.js +3 -0
- package/dist/cjs/api/types/DriveAgentResponse.d.ts +4 -0
- package/dist/cjs/api/types/DriveAgentResponse.js +3 -0
- package/dist/cjs/api/types/FileTooLargeError.d.ts +3 -0
- package/dist/cjs/api/types/FileTooLargeError.js +3 -0
- package/dist/cjs/api/types/FolderResponse.d.ts +8 -0
- package/dist/cjs/api/types/FolderResponse.js +3 -0
- package/dist/cjs/api/types/GeneralAgentConfig.d.ts +15 -0
- package/dist/cjs/api/types/GeneralAgentConfig.js +3 -0
- package/dist/cjs/api/types/GeneralAgentRequest.d.ts +13 -0
- package/dist/cjs/api/types/GeneralAgentRequest.js +3 -0
- package/dist/cjs/api/types/GeneralAgentResponse.d.ts +7 -0
- package/dist/cjs/api/types/GeneralAgentResponse.js +3 -0
- package/dist/cjs/api/types/GeneralAgentResponseMessage.d.ts +43 -0
- package/dist/cjs/api/types/GeneralAgentResponseMessage.js +3 -0
- package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.d.ts +31 -0
- package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.js +3 -0
- package/dist/cjs/api/types/GetTableResponse.d.ts +12 -0
- package/dist/cjs/api/types/GetTableResponse.js +3 -0
- package/dist/cjs/api/types/GridRange.d.ts +10 -0
- package/dist/cjs/api/types/GridRange.js +3 -0
- package/dist/cjs/api/types/ImageUrlContent.d.ts +6 -0
- package/dist/cjs/api/types/ImageUrlContent.js +3 -0
- package/dist/cjs/api/types/InputMessage.d.ts +17 -0
- package/dist/cjs/api/types/InputMessage.js +3 -0
- package/dist/cjs/api/types/InputMessageContentItem.d.ts +10 -0
- package/dist/cjs/api/types/InputMessageContentItem.js +3 -0
- package/dist/cjs/api/types/NumberFormatModel.d.ts +7 -0
- package/dist/cjs/api/types/NumberFormatModel.js +3 -0
- package/dist/cjs/api/types/NumberFormatType.d.ts +15 -0
- package/dist/cjs/api/types/NumberFormatType.js +18 -0
- package/dist/cjs/api/types/PaginatedAssetsOut.d.ts +18 -0
- package/dist/cjs/api/types/PaginatedAssetsOut.js +3 -0
- package/dist/cjs/api/types/PromptMessage.d.ts +14 -0
- package/dist/cjs/api/types/PromptMessage.js +11 -0
- package/dist/cjs/api/types/PublicAssetOut.d.ts +35 -0
- package/dist/cjs/api/types/PublicAssetOut.js +3 -0
- package/dist/cjs/api/types/ResearchAgentResponse.d.ts +4 -0
- package/dist/cjs/api/types/ResearchAgentResponse.js +3 -0
- package/dist/cjs/api/types/RunTaskResponse.d.ts +15 -0
- package/dist/cjs/api/types/RunTaskResponse.js +3 -0
- package/dist/cjs/api/types/SaveAssetRequestOut.d.ts +6 -0
- package/dist/cjs/api/types/SaveAssetRequestOut.js +3 -0
- package/dist/cjs/api/types/Sheet.d.ts +26 -0
- package/dist/cjs/api/types/Sheet.js +3 -0
- package/dist/cjs/api/types/SheetOperationResponse.d.ts +8 -0
- package/dist/cjs/api/types/SheetOperationResponse.js +3 -0
- package/dist/cjs/api/types/SqlAgentResponse.d.ts +6 -0
- package/dist/cjs/api/types/SqlAgentResponse.js +3 -0
- package/dist/cjs/api/types/StructuredDataExtractorResponse.d.ts +10 -0
- package/dist/cjs/api/types/StructuredDataExtractorResponse.js +3 -0
- package/dist/cjs/api/types/TableRowData.d.ts +4 -0
- package/dist/cjs/api/types/TableRowData.js +3 -0
- package/dist/cjs/api/types/TextContent.d.ts +6 -0
- package/dist/cjs/api/types/TextContent.js +3 -0
- package/dist/cjs/api/types/TextFormatModel.d.ts +13 -0
- package/dist/cjs/api/types/TextFormatModel.js +3 -0
- package/dist/cjs/api/types/ThemeColor.d.ts +4 -0
- package/dist/cjs/api/types/ThemeColor.js +3 -0
- package/dist/cjs/api/types/ThreadStatusResponseOut.d.ts +18 -0
- package/dist/cjs/api/types/ThreadStatusResponseOut.js +3 -0
- package/dist/cjs/api/types/WrapStrategy.d.ts +6 -0
- package/dist/cjs/api/types/WrapStrategy.js +9 -0
- package/dist/cjs/api/types/index.d.ts +62 -0
- package/dist/cjs/api/types/index.js +78 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +42 -0
- package/dist/cjs/core/fetcher/Fetcher.js +121 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +11 -0
- package/dist/cjs/core/fetcher/index.js +17 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +76 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +16 -0
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +208 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
- package/dist/cjs/core/form-data-utils/index.js +20 -0
- package/dist/cjs/core/headers.d.ts +2 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +5 -0
- package/dist/cjs/core/index.js +44 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +69 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +4 -0
- package/dist/cjs/environments.js +7 -0
- package/dist/cjs/errors/AthenaIntelligenceError.d.ts +12 -0
- package/dist/cjs/errors/AthenaIntelligenceError.js +28 -0
- package/dist/cjs/errors/AthenaIntelligenceTimeoutError.d.ts +3 -0
- package/dist/cjs/errors/AthenaIntelligenceTimeoutError.js +11 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +48 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +27 -0
- package/dist/esm/BaseClient.mjs +3 -0
- package/dist/esm/Client.d.mts +32 -0
- package/dist/esm/Client.mjs +51 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/errors/BadRequestError.mjs +14 -0
- package/dist/esm/api/errors/ContentTooLargeError.d.mts +6 -0
- package/dist/esm/api/errors/ContentTooLargeError.mjs +15 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +14 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/errors/InternalServerError.mjs +14 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/errors/NotFoundError.mjs +14 -0
- package/dist/esm/api/errors/NotImplementedError.d.mts +5 -0
- package/dist/esm/api/errors/NotImplementedError.mjs +14 -0
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +5 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +14 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +14 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +5 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +14 -0
- package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +6 -0
- package/dist/esm/api/errors/UnsupportedMediaTypeError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +10 -0
- package/dist/esm/api/errors/index.mjs +10 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/agents/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +125 -0
- package/dist/esm/api/resources/agents/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/client/index.mjs +2 -0
- package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.d.mts +17 -0
- package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agents/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/index.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +98 -0
- package/dist/esm/api/resources/agents/resources/drive/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/resources/drive/client/index.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.mts +17 -0
- package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/drive/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/drive/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +248 -0
- package/dist/esm/api/resources/agents/resources/general/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/general/client/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/general/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/general/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/agents/resources/index.mjs +7 -0
- package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +98 -0
- package/dist/esm/api/resources/agents/resources/research/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/resources/research/client/index.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.mts +17 -0
- package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/research/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/research/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +95 -0
- package/dist/esm/api/resources/agents/resources/sql/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agents/resources/sql/client/index.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.mts +17 -0
- package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agents/resources/sql/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/sql/index.mjs +1 -0
- package/dist/esm/api/resources/aop/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/aop/client/Client.mjs +192 -0
- package/dist/esm/api/resources/aop/client/index.d.mts +1 -0
- package/dist/esm/api/resources/aop/client/index.mjs +1 -0
- package/dist/esm/api/resources/aop/index.d.mts +1 -0
- package/dist/esm/api/resources/aop/index.mjs +1 -0
- package/dist/esm/api/resources/assets/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/assets/client/Client.mjs +331 -0
- package/dist/esm/api/resources/assets/client/index.d.mts +2 -0
- package/dist/esm/api/resources/assets/client/index.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/AssetsListRequest.d.mts +19 -0
- package/dist/esm/api/resources/assets/client/requests/AssetsListRequest.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +17 -0
- package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/CreateProjectRequestIn.d.mts +33 -0
- package/dist/esm/api/resources/assets/client/requests/CreateProjectRequestIn.mjs +2 -0
- package/dist/esm/api/resources/assets/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/assets/client/requests/index.mjs +3 -0
- package/dist/esm/api/resources/assets/index.d.mts +1 -0
- package/dist/esm/api/resources/assets/index.mjs +1 -0
- package/dist/esm/api/resources/databases/client/Client.d.mts +166 -0
- package/dist/esm/api/resources/databases/client/Client.mjs +555 -0
- package/dist/esm/api/resources/databases/client/index.d.mts +2 -0
- package/dist/esm/api/resources/databases/client/index.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/DatabasesSelectRequest.d.mts +19 -0
- package/dist/esm/api/resources/databases/client/requests/DatabasesSelectRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/InsertDataRequest.d.mts +22 -0
- package/dist/esm/api/resources/databases/client/requests/InsertDataRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.d.mts +16 -0
- package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/databases/client/requests/index.mjs +3 -0
- package/dist/esm/api/resources/databases/index.d.mts +1 -0
- package/dist/esm/api/resources/databases/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +14 -0
- package/dist/esm/api/resources/index.mjs +14 -0
- package/dist/esm/api/resources/query/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/query/client/Client.mjs +176 -0
- package/dist/esm/api/resources/query/client/index.d.mts +2 -0
- package/dist/esm/api/resources/query/client/index.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.d.mts +14 -0
- package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/QueryExecuteSnippetRequest.d.mts +9 -0
- package/dist/esm/api/resources/query/client/requests/QueryExecuteSnippetRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/query/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/query/index.d.mts +2 -0
- package/dist/esm/api/resources/query/index.mjs +2 -0
- package/dist/esm/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.d.mts +4 -0
- package/dist/esm/api/resources/query/types/QueryExecuteRequestDatabaseAssetIds.mjs +2 -0
- package/dist/esm/api/resources/query/types/index.d.mts +1 -0
- package/dist/esm/api/resources/query/types/index.mjs +1 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +97 -0
- package/dist/esm/api/resources/threads/client/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/client/index.mjs +1 -0
- package/dist/esm/api/resources/threads/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +151 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +607 -0
- package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/index.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +13 -0
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.mjs +3 -0
- package/dist/esm/api/resources/tools/client/requests/FileChunkRequestIn.d.mts +10 -0
- package/dist/esm/api/resources/tools/client/requests/FileChunkRequestIn.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.d.mts +22 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetContentRequest.d.mts +9 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetContentRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.mts +11 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsListContentsRequest.d.mts +13 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsListContentsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsRawDataRequest.d.mts +9 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsRawDataRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/tools/client/requests/index.mjs +7 -0
- package/dist/esm/api/resources/tools/index.d.mts +3 -0
- package/dist/esm/api/resources/tools/index.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.d.mts +33 -0
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.mjs +127 -0
- package/dist/esm/api/resources/tools/resources/calendar/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/calendar/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/calendar/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/calendar/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/email/client/Client.d.mts +43 -0
- package/dist/esm/api/resources/tools/resources/email/client/Client.mjs +178 -0
- package/dist/esm/api/resources/tools/resources/email/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/email/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/email/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/email/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/tools/resources/index.mjs +8 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.d.mts +324 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.mjs +1217 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.d.mts +24 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearFormattingRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.d.mts +24 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/ClearSheetRangeRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.mts +20 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.d.mts +30 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateTableRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.d.mts +24 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteCellsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.d.mts +15 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteColumnRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.d.mts +18 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DeleteTableColumnRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.mts +14 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.d.mts +28 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.mts +15 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/GetTableRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.d.mts +15 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertColumnRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.d.mts +17 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertRowRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.d.mts +21 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableColumnRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.mts +21 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.mts +21 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.mts +30 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.d.mts +30 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateTableRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.d.mts +17 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.mjs +17 -0
- package/dist/esm/api/resources/tools/resources/sheets/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/sheets/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.mjs +144 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.mts +50 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.d.mts +31 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.mjs +92 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.d.mts +22 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/RunTaskRequest.mjs +9 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/tasks/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/tasks/index.mjs +1 -0
- package/dist/esm/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.mts +1 -0
- package/dist/esm/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.mjs +2 -0
- package/dist/esm/api/resources/tools/types/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/types/index.mjs +1 -0
- package/dist/esm/api/types/AopAsyncExecuteResponseOut.d.mts +25 -0
- package/dist/esm/api/types/AopAsyncExecuteResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopExecuteRequestIn.d.mts +9 -0
- package/dist/esm/api/types/AopExecuteRequestIn.mjs +2 -0
- package/dist/esm/api/types/AopExecuteResponseOut.d.mts +28 -0
- package/dist/esm/api/types/AopExecuteResponseOut.mjs +2 -0
- package/dist/esm/api/types/AssetContentRequestOut.d.mts +7 -0
- package/dist/esm/api/types/AssetContentRequestOut.mjs +2 -0
- package/dist/esm/api/types/AssetNode.d.mts +11 -0
- package/dist/esm/api/types/AssetNode.mjs +2 -0
- package/dist/esm/api/types/AssetScreenshotResponseOut.d.mts +13 -0
- package/dist/esm/api/types/AssetScreenshotResponseOut.mjs +2 -0
- package/dist/esm/api/types/BorderModel.d.mts +9 -0
- package/dist/esm/api/types/BorderModel.mjs +2 -0
- package/dist/esm/api/types/BorderStyle.d.mts +9 -0
- package/dist/esm/api/types/BorderStyle.mjs +9 -0
- package/dist/esm/api/types/BordersModel.d.mts +30 -0
- package/dist/esm/api/types/BordersModel.mjs +2 -0
- package/dist/esm/api/types/CellFormat.d.mts +30 -0
- package/dist/esm/api/types/CellFormat.mjs +15 -0
- package/dist/esm/api/types/Chunk.d.mts +9 -0
- package/dist/esm/api/types/Chunk.mjs +2 -0
- package/dist/esm/api/types/ChunkContentItem.d.mts +10 -0
- package/dist/esm/api/types/ChunkContentItem.mjs +2 -0
- package/dist/esm/api/types/ChunkResult.d.mts +10 -0
- package/dist/esm/api/types/ChunkResult.mjs +2 -0
- package/dist/esm/api/types/ConversationAssetInfo.d.mts +42 -0
- package/dist/esm/api/types/ConversationAssetInfo.mjs +2 -0
- package/dist/esm/api/types/ConversationMessage.d.mts +17 -0
- package/dist/esm/api/types/ConversationMessage.mjs +2 -0
- package/dist/esm/api/types/ConversationResult.d.mts +24 -0
- package/dist/esm/api/types/ConversationResult.mjs +2 -0
- package/dist/esm/api/types/CreatableAssetType.d.mts +7 -0
- package/dist/esm/api/types/CreatableAssetType.mjs +7 -0
- package/dist/esm/api/types/CreateAssetResponseOut.d.mts +15 -0
- package/dist/esm/api/types/CreateAssetResponseOut.mjs +2 -0
- package/dist/esm/api/types/CreateNewSheetTabResponse.d.mts +10 -0
- package/dist/esm/api/types/CreateNewSheetTabResponse.mjs +2 -0
- package/dist/esm/api/types/CreateProjectResponseOut.d.mts +17 -0
- package/dist/esm/api/types/CreateProjectResponseOut.mjs +2 -0
- package/dist/esm/api/types/CustomAgentResponse.d.mts +4 -0
- package/dist/esm/api/types/CustomAgentResponse.mjs +2 -0
- package/dist/esm/api/types/DataFrameRequestOut.d.mts +22 -0
- package/dist/esm/api/types/DataFrameRequestOut.mjs +2 -0
- package/dist/esm/api/types/DataFrameUnknownFormatError.d.mts +5 -0
- package/dist/esm/api/types/DataFrameUnknownFormatError.mjs +2 -0
- package/dist/esm/api/types/DatabaseColumnInfo.d.mts +15 -0
- package/dist/esm/api/types/DatabaseColumnInfo.mjs +2 -0
- package/dist/esm/api/types/DatabaseDataResponse.d.mts +7 -0
- package/dist/esm/api/types/DatabaseDataResponse.mjs +2 -0
- package/dist/esm/api/types/DatabaseMutationResponse.d.mts +7 -0
- package/dist/esm/api/types/DatabaseMutationResponse.mjs +2 -0
- package/dist/esm/api/types/DatabaseTableInfo.d.mts +11 -0
- package/dist/esm/api/types/DatabaseTableInfo.mjs +2 -0
- package/dist/esm/api/types/DatabaseTableSchemaResponse.d.mts +12 -0
- package/dist/esm/api/types/DatabaseTableSchemaResponse.mjs +2 -0
- package/dist/esm/api/types/DatabaseTablesResponse.d.mts +8 -0
- package/dist/esm/api/types/DatabaseTablesResponse.mjs +2 -0
- package/dist/esm/api/types/DeleteDataRequest.d.mts +7 -0
- package/dist/esm/api/types/DeleteDataRequest.mjs +2 -0
- package/dist/esm/api/types/DimensionProperties.d.mts +13 -0
- package/dist/esm/api/types/DimensionProperties.mjs +2 -0
- package/dist/esm/api/types/DriveAgentResponse.d.mts +4 -0
- package/dist/esm/api/types/DriveAgentResponse.mjs +2 -0
- package/dist/esm/api/types/FileTooLargeError.d.mts +3 -0
- package/dist/esm/api/types/FileTooLargeError.mjs +2 -0
- package/dist/esm/api/types/FolderResponse.d.mts +8 -0
- package/dist/esm/api/types/FolderResponse.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentConfig.d.mts +15 -0
- package/dist/esm/api/types/GeneralAgentConfig.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentRequest.d.mts +13 -0
- package/dist/esm/api/types/GeneralAgentRequest.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentResponse.d.mts +7 -0
- package/dist/esm/api/types/GeneralAgentResponse.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentResponseMessage.d.mts +43 -0
- package/dist/esm/api/types/GeneralAgentResponseMessage.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.d.mts +31 -0
- package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.mjs +2 -0
- package/dist/esm/api/types/GetTableResponse.d.mts +12 -0
- package/dist/esm/api/types/GetTableResponse.mjs +2 -0
- package/dist/esm/api/types/GridRange.d.mts +10 -0
- package/dist/esm/api/types/GridRange.mjs +2 -0
- package/dist/esm/api/types/ImageUrlContent.d.mts +6 -0
- package/dist/esm/api/types/ImageUrlContent.mjs +2 -0
- package/dist/esm/api/types/InputMessage.d.mts +17 -0
- package/dist/esm/api/types/InputMessage.mjs +2 -0
- package/dist/esm/api/types/InputMessageContentItem.d.mts +10 -0
- package/dist/esm/api/types/InputMessageContentItem.mjs +2 -0
- package/dist/esm/api/types/NumberFormatModel.d.mts +7 -0
- package/dist/esm/api/types/NumberFormatModel.mjs +2 -0
- package/dist/esm/api/types/NumberFormatType.d.mts +15 -0
- package/dist/esm/api/types/NumberFormatType.mjs +15 -0
- package/dist/esm/api/types/PaginatedAssetsOut.d.mts +18 -0
- package/dist/esm/api/types/PaginatedAssetsOut.mjs +2 -0
- package/dist/esm/api/types/PromptMessage.d.mts +14 -0
- package/dist/esm/api/types/PromptMessage.mjs +8 -0
- package/dist/esm/api/types/PublicAssetOut.d.mts +35 -0
- package/dist/esm/api/types/PublicAssetOut.mjs +2 -0
- package/dist/esm/api/types/ResearchAgentResponse.d.mts +4 -0
- package/dist/esm/api/types/ResearchAgentResponse.mjs +2 -0
- package/dist/esm/api/types/RunTaskResponse.d.mts +15 -0
- package/dist/esm/api/types/RunTaskResponse.mjs +2 -0
- package/dist/esm/api/types/SaveAssetRequestOut.d.mts +6 -0
- package/dist/esm/api/types/SaveAssetRequestOut.mjs +2 -0
- package/dist/esm/api/types/Sheet.d.mts +26 -0
- package/dist/esm/api/types/Sheet.mjs +2 -0
- package/dist/esm/api/types/SheetOperationResponse.d.mts +8 -0
- package/dist/esm/api/types/SheetOperationResponse.mjs +2 -0
- package/dist/esm/api/types/SqlAgentResponse.d.mts +6 -0
- package/dist/esm/api/types/SqlAgentResponse.mjs +2 -0
- package/dist/esm/api/types/StructuredDataExtractorResponse.d.mts +10 -0
- package/dist/esm/api/types/StructuredDataExtractorResponse.mjs +2 -0
- package/dist/esm/api/types/TableRowData.d.mts +4 -0
- package/dist/esm/api/types/TableRowData.mjs +2 -0
- package/dist/esm/api/types/TextContent.d.mts +6 -0
- package/dist/esm/api/types/TextContent.mjs +2 -0
- package/dist/esm/api/types/TextFormatModel.d.mts +13 -0
- package/dist/esm/api/types/TextFormatModel.mjs +2 -0
- package/dist/esm/api/types/ThemeColor.d.mts +4 -0
- package/dist/esm/api/types/ThemeColor.mjs +2 -0
- package/dist/esm/api/types/ThreadStatusResponseOut.d.mts +18 -0
- package/dist/esm/api/types/ThreadStatusResponseOut.mjs +2 -0
- package/dist/esm/api/types/WrapStrategy.d.mts +6 -0
- package/dist/esm/api/types/WrapStrategy.mjs +6 -0
- package/dist/esm/api/types/index.d.mts +62 -0
- package/dist/esm/api/types/index.mjs +62 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +42 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +117 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +11 -0
- package/dist/esm/core/fetcher/index.mjs +6 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +73 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +16 -0
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +170 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
- package/dist/esm/core/form-data-utils/index.d.mts +2 -0
- package/dist/esm/core/form-data-utils/index.mjs +2 -0
- package/dist/esm/core/headers.d.mts +2 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +5 -0
- package/dist/esm/core/index.mjs +5 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +66 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +4 -0
- package/dist/esm/environments.mjs +4 -0
- package/dist/esm/errors/AthenaIntelligenceError.d.mts +12 -0
- package/dist/esm/errors/AthenaIntelligenceError.mjs +25 -0
- package/dist/esm/errors/AthenaIntelligenceTimeoutError.d.mts +3 -0
- package/dist/esm/errors/AthenaIntelligenceTimeoutError.mjs +7 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +6 -0
- package/dist/esm/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +60 -0
- package/reference.md +3724 -0
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import * as environments from "../../../../environments.mjs";
|
|
12
|
+
import * as core from "../../../../core/index.mjs";
|
|
13
|
+
import * as AthenaIntelligence from "../../../index.mjs";
|
|
14
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
15
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
16
|
+
import { toJson } from "../../../../core/json.mjs";
|
|
17
|
+
import * as fs from "fs";
|
|
18
|
+
import { Calendar } from "../resources/calendar/client/Client.mjs";
|
|
19
|
+
import { Email } from "../resources/email/client/Client.mjs";
|
|
20
|
+
import { Sheets } from "../resources/sheets/client/Client.mjs";
|
|
21
|
+
import { StructuredDataExtractor } from "../resources/structuredDataExtractor/client/Client.mjs";
|
|
22
|
+
import { Tasks } from "../resources/tasks/client/Client.mjs";
|
|
23
|
+
export class Tools {
|
|
24
|
+
constructor(_options) {
|
|
25
|
+
this._options = _options;
|
|
26
|
+
}
|
|
27
|
+
get calendar() {
|
|
28
|
+
var _a;
|
|
29
|
+
return ((_a = this._calendar) !== null && _a !== void 0 ? _a : (this._calendar = new Calendar(this._options)));
|
|
30
|
+
}
|
|
31
|
+
get email() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._email) !== null && _a !== void 0 ? _a : (this._email = new Email(this._options)));
|
|
34
|
+
}
|
|
35
|
+
get sheets() {
|
|
36
|
+
var _a;
|
|
37
|
+
return ((_a = this._sheets) !== null && _a !== void 0 ? _a : (this._sheets = new Sheets(this._options)));
|
|
38
|
+
}
|
|
39
|
+
get structuredDataExtractor() {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = this._structuredDataExtractor) !== null && _a !== void 0 ? _a : (this._structuredDataExtractor = new StructuredDataExtractor(this._options)));
|
|
42
|
+
}
|
|
43
|
+
get tasks() {
|
|
44
|
+
var _a;
|
|
45
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Tasks(this._options)));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get the chunks of a file.
|
|
49
|
+
*
|
|
50
|
+
* @param {AthenaIntelligence.FileChunkRequestIn} request
|
|
51
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
54
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
55
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.tools.getAssetChunks({
|
|
59
|
+
* asset_ids: ["asset_9249292-d118-42d3-96b4-00eccfe0754f", "asset_9249292-d118-42d3-95b4-01eccfe0754f"]
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
getAssetChunks(request, requestOptions) {
|
|
63
|
+
return core.HttpResponsePromise.fromPromise(this.__getAssetChunks(request, requestOptions));
|
|
64
|
+
}
|
|
65
|
+
__getAssetChunks(request, requestOptions) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
68
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
69
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
70
|
+
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/asset/chunks"),
|
|
71
|
+
method: "POST",
|
|
72
|
+
headers: _headers,
|
|
73
|
+
contentType: "application/json",
|
|
74
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
75
|
+
requestType: "json",
|
|
76
|
+
body: request,
|
|
77
|
+
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,
|
|
78
|
+
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,
|
|
79
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
+
});
|
|
81
|
+
if (_response.ok) {
|
|
82
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
83
|
+
}
|
|
84
|
+
if (_response.error.reason === "status-code") {
|
|
85
|
+
switch (_response.error.statusCode) {
|
|
86
|
+
case 401:
|
|
87
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
88
|
+
case 404:
|
|
89
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
90
|
+
case 422:
|
|
91
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
default:
|
|
93
|
+
throw new errors.AthenaIntelligenceError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.body,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.AthenaIntelligenceError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
case "timeout":
|
|
108
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/asset/chunks.");
|
|
109
|
+
case "unknown":
|
|
110
|
+
throw new errors.AthenaIntelligenceError({
|
|
111
|
+
message: _response.error.errorMessage,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get the content of an asset.
|
|
119
|
+
*
|
|
120
|
+
* @param {AthenaIntelligence.ToolsGetAssetContentRequest} request
|
|
121
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
124
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
125
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* await client.tools.getAssetContent({
|
|
129
|
+
* asset_id: "asset_id"
|
|
130
|
+
* })
|
|
131
|
+
*/
|
|
132
|
+
getAssetContent(request, requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__getAssetContent(request, requestOptions));
|
|
134
|
+
}
|
|
135
|
+
__getAssetContent(request, requestOptions) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
138
|
+
const { asset_id: assetId } = request;
|
|
139
|
+
const _queryParams = {};
|
|
140
|
+
_queryParams["asset_id"] = assetId;
|
|
141
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
142
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
143
|
+
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/asset/content"),
|
|
144
|
+
method: "GET",
|
|
145
|
+
headers: _headers,
|
|
146
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
147
|
+
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,
|
|
148
|
+
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,
|
|
149
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
150
|
+
});
|
|
151
|
+
if (_response.ok) {
|
|
152
|
+
return {
|
|
153
|
+
data: _response.body,
|
|
154
|
+
rawResponse: _response.rawResponse,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
if (_response.error.reason === "status-code") {
|
|
158
|
+
switch (_response.error.statusCode) {
|
|
159
|
+
case 401:
|
|
160
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
161
|
+
case 404:
|
|
162
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
163
|
+
case 422:
|
|
164
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
165
|
+
default:
|
|
166
|
+
throw new errors.AthenaIntelligenceError({
|
|
167
|
+
statusCode: _response.error.statusCode,
|
|
168
|
+
body: _response.error.body,
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
switch (_response.error.reason) {
|
|
174
|
+
case "non-json":
|
|
175
|
+
throw new errors.AthenaIntelligenceError({
|
|
176
|
+
statusCode: _response.error.statusCode,
|
|
177
|
+
body: _response.error.rawBody,
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
});
|
|
180
|
+
case "timeout":
|
|
181
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/asset/content.");
|
|
182
|
+
case "unknown":
|
|
183
|
+
throw new errors.AthenaIntelligenceError({
|
|
184
|
+
message: _response.error.errorMessage,
|
|
185
|
+
rawResponse: _response.rawResponse,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Get a screenshot of a specific page from an asset.
|
|
192
|
+
*
|
|
193
|
+
* @param {AthenaIntelligence.ToolsGetAssetScreenshotRequest} request
|
|
194
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
|
+
*
|
|
196
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
197
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
198
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
199
|
+
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* await client.tools.getAssetScreenshot({
|
|
203
|
+
* asset_id: "asset_id",
|
|
204
|
+
* page_number: 1
|
|
205
|
+
* })
|
|
206
|
+
*/
|
|
207
|
+
getAssetScreenshot(request, requestOptions) {
|
|
208
|
+
return core.HttpResponsePromise.fromPromise(this.__getAssetScreenshot(request, requestOptions));
|
|
209
|
+
}
|
|
210
|
+
__getAssetScreenshot(request, requestOptions) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
213
|
+
const { asset_id: assetId, page_number: pageNumber } = request;
|
|
214
|
+
const _queryParams = {};
|
|
215
|
+
_queryParams["asset_id"] = assetId;
|
|
216
|
+
if (pageNumber != null) {
|
|
217
|
+
_queryParams["page_number"] = pageNumber.toString();
|
|
218
|
+
}
|
|
219
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
220
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
221
|
+
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/asset/screenshot"),
|
|
222
|
+
method: "GET",
|
|
223
|
+
headers: _headers,
|
|
224
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
225
|
+
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,
|
|
226
|
+
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,
|
|
227
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
228
|
+
});
|
|
229
|
+
if (_response.ok) {
|
|
230
|
+
return {
|
|
231
|
+
data: _response.body,
|
|
232
|
+
rawResponse: _response.rawResponse,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
if (_response.error.reason === "status-code") {
|
|
236
|
+
switch (_response.error.statusCode) {
|
|
237
|
+
case 401:
|
|
238
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
239
|
+
case 404:
|
|
240
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
241
|
+
case 422:
|
|
242
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
243
|
+
case 500:
|
|
244
|
+
throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
|
|
245
|
+
default:
|
|
246
|
+
throw new errors.AthenaIntelligenceError({
|
|
247
|
+
statusCode: _response.error.statusCode,
|
|
248
|
+
body: _response.error.body,
|
|
249
|
+
rawResponse: _response.rawResponse,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
switch (_response.error.reason) {
|
|
254
|
+
case "non-json":
|
|
255
|
+
throw new errors.AthenaIntelligenceError({
|
|
256
|
+
statusCode: _response.error.statusCode,
|
|
257
|
+
body: _response.error.rawBody,
|
|
258
|
+
rawResponse: _response.rawResponse,
|
|
259
|
+
});
|
|
260
|
+
case "timeout":
|
|
261
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/asset/screenshot.");
|
|
262
|
+
case "unknown":
|
|
263
|
+
throw new errors.AthenaIntelligenceError({
|
|
264
|
+
message: _response.error.errorMessage,
|
|
265
|
+
rawResponse: _response.rawResponse,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* List contents of an asset (Folder, Collection, Project) or entire workspace in a tree structure.
|
|
272
|
+
*
|
|
273
|
+
* @param {AthenaIntelligence.ToolsListContentsRequest} request
|
|
274
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
|
+
*
|
|
276
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
277
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
278
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
279
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* await client.tools.listContents({
|
|
283
|
+
* asset_id: "asset_id",
|
|
284
|
+
* include_asset_details: true,
|
|
285
|
+
* include_system_files: true
|
|
286
|
+
* })
|
|
287
|
+
*/
|
|
288
|
+
listContents(request = {}, requestOptions) {
|
|
289
|
+
return core.HttpResponsePromise.fromPromise(this.__listContents(request, requestOptions));
|
|
290
|
+
}
|
|
291
|
+
__listContents() {
|
|
292
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
293
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
294
|
+
const { asset_id: assetId, include_asset_details: includeAssetDetails, include_system_files: includeSystemFiles, } = request;
|
|
295
|
+
const _queryParams = {};
|
|
296
|
+
if (assetId != null) {
|
|
297
|
+
_queryParams["asset_id"] = assetId;
|
|
298
|
+
}
|
|
299
|
+
if (includeAssetDetails != null) {
|
|
300
|
+
_queryParams["include_asset_details"] = includeAssetDetails.toString();
|
|
301
|
+
}
|
|
302
|
+
if (includeSystemFiles != null) {
|
|
303
|
+
_queryParams["include_system_files"] = includeSystemFiles.toString();
|
|
304
|
+
}
|
|
305
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
306
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
307
|
+
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/contents"),
|
|
308
|
+
method: "GET",
|
|
309
|
+
headers: _headers,
|
|
310
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
311
|
+
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,
|
|
312
|
+
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,
|
|
313
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
314
|
+
});
|
|
315
|
+
if (_response.ok) {
|
|
316
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
317
|
+
}
|
|
318
|
+
if (_response.error.reason === "status-code") {
|
|
319
|
+
switch (_response.error.statusCode) {
|
|
320
|
+
case 400:
|
|
321
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
322
|
+
case 401:
|
|
323
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
324
|
+
case 404:
|
|
325
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
326
|
+
case 422:
|
|
327
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
328
|
+
default:
|
|
329
|
+
throw new errors.AthenaIntelligenceError({
|
|
330
|
+
statusCode: _response.error.statusCode,
|
|
331
|
+
body: _response.error.body,
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
switch (_response.error.reason) {
|
|
337
|
+
case "non-json":
|
|
338
|
+
throw new errors.AthenaIntelligenceError({
|
|
339
|
+
statusCode: _response.error.statusCode,
|
|
340
|
+
body: _response.error.rawBody,
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
});
|
|
343
|
+
case "timeout":
|
|
344
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/contents.");
|
|
345
|
+
case "unknown":
|
|
346
|
+
throw new errors.AthenaIntelligenceError({
|
|
347
|
+
message: _response.error.errorMessage,
|
|
348
|
+
rawResponse: _response.rawResponse,
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @param {AthenaIntelligence.ToolsDataFrameRequest} request
|
|
355
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
357
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
358
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
359
|
+
* @throws {@link AthenaIntelligence.UnsupportedMediaTypeError}
|
|
360
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
361
|
+
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* await client.tools.dataFrame({
|
|
365
|
+
* asset_id: "asset_id",
|
|
366
|
+
* row_limit: 1,
|
|
367
|
+
* index_column: 1,
|
|
368
|
+
* sheet_name: "sheet_name",
|
|
369
|
+
* separator: "separator"
|
|
370
|
+
* })
|
|
371
|
+
*/
|
|
372
|
+
dataFrame(request, requestOptions) {
|
|
373
|
+
return core.HttpResponsePromise.fromPromise(this.__dataFrame(request, requestOptions));
|
|
374
|
+
}
|
|
375
|
+
__dataFrame(request, requestOptions) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
378
|
+
const { asset_id: assetId, row_limit: rowLimit, index_column: indexColumn, columns, sheet_name: sheetName, separator, } = request;
|
|
379
|
+
const _queryParams = {};
|
|
380
|
+
_queryParams["asset_id"] = assetId;
|
|
381
|
+
if (rowLimit != null) {
|
|
382
|
+
_queryParams["row_limit"] = rowLimit.toString();
|
|
383
|
+
}
|
|
384
|
+
if (indexColumn != null) {
|
|
385
|
+
_queryParams["index_column"] = indexColumn.toString();
|
|
386
|
+
}
|
|
387
|
+
if (columns != null) {
|
|
388
|
+
if (Array.isArray(columns)) {
|
|
389
|
+
_queryParams["columns"] = columns.map((item) => (typeof item === "string" ? item : toJson(item)));
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
_queryParams["columns"] = typeof columns === "string" ? columns : toJson(columns);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if (sheetName != null) {
|
|
396
|
+
_queryParams["sheet_name"] = sheetName;
|
|
397
|
+
}
|
|
398
|
+
if (separator != null) {
|
|
399
|
+
_queryParams["separator"] = separator;
|
|
400
|
+
}
|
|
401
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
402
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
403
|
+
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/file/data-frame"),
|
|
404
|
+
method: "GET",
|
|
405
|
+
headers: _headers,
|
|
406
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
407
|
+
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,
|
|
408
|
+
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,
|
|
409
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
410
|
+
});
|
|
411
|
+
if (_response.ok) {
|
|
412
|
+
return {
|
|
413
|
+
data: _response.body,
|
|
414
|
+
rawResponse: _response.rawResponse,
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
if (_response.error.reason === "status-code") {
|
|
418
|
+
switch (_response.error.statusCode) {
|
|
419
|
+
case 401:
|
|
420
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
421
|
+
case 404:
|
|
422
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 415:
|
|
424
|
+
throw new AthenaIntelligence.UnsupportedMediaTypeError(_response.error.body, _response.rawResponse);
|
|
425
|
+
case 422:
|
|
426
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 500:
|
|
428
|
+
throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
|
|
429
|
+
default:
|
|
430
|
+
throw new errors.AthenaIntelligenceError({
|
|
431
|
+
statusCode: _response.error.statusCode,
|
|
432
|
+
body: _response.error.body,
|
|
433
|
+
rawResponse: _response.rawResponse,
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
switch (_response.error.reason) {
|
|
438
|
+
case "non-json":
|
|
439
|
+
throw new errors.AthenaIntelligenceError({
|
|
440
|
+
statusCode: _response.error.statusCode,
|
|
441
|
+
body: _response.error.rawBody,
|
|
442
|
+
rawResponse: _response.rawResponse,
|
|
443
|
+
});
|
|
444
|
+
case "timeout":
|
|
445
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/file/data-frame.");
|
|
446
|
+
case "unknown":
|
|
447
|
+
throw new errors.AthenaIntelligenceError({
|
|
448
|
+
message: _response.error.errorMessage,
|
|
449
|
+
rawResponse: _response.rawResponse,
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Get the raw file data for given asset.
|
|
456
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
457
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
458
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
459
|
+
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
460
|
+
*/
|
|
461
|
+
rawData(request, requestOptions) {
|
|
462
|
+
return core.HttpResponsePromise.fromPromise(this.__rawData(request, requestOptions));
|
|
463
|
+
}
|
|
464
|
+
__rawData(request, requestOptions) {
|
|
465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
466
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
467
|
+
const { asset_id: assetId } = request;
|
|
468
|
+
const _queryParams = {};
|
|
469
|
+
_queryParams["asset_id"] = assetId;
|
|
470
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
471
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
472
|
+
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/file/raw-data"),
|
|
473
|
+
method: "GET",
|
|
474
|
+
headers: _headers,
|
|
475
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
476
|
+
responseType: "binary-response",
|
|
477
|
+
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,
|
|
478
|
+
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,
|
|
479
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
480
|
+
});
|
|
481
|
+
if (_response.ok) {
|
|
482
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
483
|
+
}
|
|
484
|
+
if (_response.error.reason === "status-code") {
|
|
485
|
+
switch (_response.error.statusCode) {
|
|
486
|
+
case 401:
|
|
487
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
488
|
+
case 404:
|
|
489
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
490
|
+
case 422:
|
|
491
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
492
|
+
case 500:
|
|
493
|
+
throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
|
|
494
|
+
default:
|
|
495
|
+
throw new errors.AthenaIntelligenceError({
|
|
496
|
+
statusCode: _response.error.statusCode,
|
|
497
|
+
body: _response.error.body,
|
|
498
|
+
rawResponse: _response.rawResponse,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
switch (_response.error.reason) {
|
|
503
|
+
case "non-json":
|
|
504
|
+
throw new errors.AthenaIntelligenceError({
|
|
505
|
+
statusCode: _response.error.statusCode,
|
|
506
|
+
body: _response.error.rawBody,
|
|
507
|
+
rawResponse: _response.rawResponse,
|
|
508
|
+
});
|
|
509
|
+
case "timeout":
|
|
510
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/file/raw-data.");
|
|
511
|
+
case "unknown":
|
|
512
|
+
throw new errors.AthenaIntelligenceError({
|
|
513
|
+
message: _response.error.errorMessage,
|
|
514
|
+
rawResponse: _response.rawResponse,
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Save a file as an asset in the user's workspace.
|
|
521
|
+
*
|
|
522
|
+
* @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
|
|
523
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
524
|
+
*
|
|
525
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
526
|
+
* @throws {@link AthenaIntelligence.ContentTooLargeError}
|
|
527
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
528
|
+
*
|
|
529
|
+
* @example
|
|
530
|
+
* import { createReadStream } from "fs";
|
|
531
|
+
* await client.tools.saveAsset({
|
|
532
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
533
|
+
* parent_folder_id: "parent_folder_id"
|
|
534
|
+
* })
|
|
535
|
+
*/
|
|
536
|
+
saveAsset(request, requestOptions) {
|
|
537
|
+
return core.HttpResponsePromise.fromPromise(this.__saveAsset(request, requestOptions));
|
|
538
|
+
}
|
|
539
|
+
__saveAsset(request, requestOptions) {
|
|
540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
541
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
542
|
+
const _queryParams = {};
|
|
543
|
+
if (request.parent_folder_id != null) {
|
|
544
|
+
_queryParams["parent_folder_id"] = request.parent_folder_id;
|
|
545
|
+
}
|
|
546
|
+
const _request = yield core.newFormData();
|
|
547
|
+
yield _request.appendFile("file", request.file);
|
|
548
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
549
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign(Object.assign({}, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
550
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
551
|
+
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/file/save"),
|
|
552
|
+
method: "POST",
|
|
553
|
+
headers: _headers,
|
|
554
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
555
|
+
requestType: "file",
|
|
556
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
557
|
+
body: _maybeEncodedRequest.body,
|
|
558
|
+
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,
|
|
559
|
+
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,
|
|
560
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
561
|
+
});
|
|
562
|
+
if (_response.ok) {
|
|
563
|
+
return {
|
|
564
|
+
data: _response.body,
|
|
565
|
+
rawResponse: _response.rawResponse,
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
if (_response.error.reason === "status-code") {
|
|
569
|
+
switch (_response.error.statusCode) {
|
|
570
|
+
case 400:
|
|
571
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
572
|
+
case 413:
|
|
573
|
+
throw new AthenaIntelligence.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
574
|
+
case 422:
|
|
575
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
576
|
+
default:
|
|
577
|
+
throw new errors.AthenaIntelligenceError({
|
|
578
|
+
statusCode: _response.error.statusCode,
|
|
579
|
+
body: _response.error.body,
|
|
580
|
+
rawResponse: _response.rawResponse,
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
switch (_response.error.reason) {
|
|
585
|
+
case "non-json":
|
|
586
|
+
throw new errors.AthenaIntelligenceError({
|
|
587
|
+
statusCode: _response.error.statusCode,
|
|
588
|
+
body: _response.error.rawBody,
|
|
589
|
+
rawResponse: _response.rawResponse,
|
|
590
|
+
});
|
|
591
|
+
case "timeout":
|
|
592
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/file/save.");
|
|
593
|
+
case "unknown":
|
|
594
|
+
throw new errors.AthenaIntelligenceError({
|
|
595
|
+
message: _response.error.errorMessage,
|
|
596
|
+
rawResponse: _response.rawResponse,
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
_getCustomAuthorizationHeaders() {
|
|
602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
603
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
604
|
+
return { "X-API-KEY": apiKeyValue };
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}
|
package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as core from "../../../../../core/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
6
|
+
* parent_folder_id: "parent_folder_id"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface BodySaveAssetApiV0ToolsFileSavePost {
|
|
10
|
+
/** Identifier of the folder into which the asset should be saved */
|
|
11
|
+
parent_folder_id?: string;
|
|
12
|
+
file: core.file.Uploadable.FileLike;
|
|
13
|
+
}
|