@athenaintel/sdk 4.3.1157 → 4.3.1923
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 +47 -24
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +15 -0
- package/dist/cjs/Client.js +35 -10
- package/dist/cjs/api/errors/BadGatewayError.d.ts +1 -2
- package/dist/cjs/api/resources/agents/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/agents/client/Client.js +19 -7
- package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.d.ts +3 -0
- package/dist/cjs/api/resources/aop/client/Client.d.ts +66 -0
- package/dist/cjs/api/resources/aop/client/Client.js +274 -0
- package/dist/cjs/api/resources/aop/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/aop/client/index.js +15 -0
- package/dist/cjs/api/resources/aop/client/requests/AopConfigUpdateRequestIn.d.ts +30 -0
- package/dist/cjs/api/resources/aop/client/requests/AopCreateRequestIn.d.ts +37 -0
- package/dist/{esm/api/resources/tools/client/requests/ToolsRawDataRequest.d.mts → cjs/api/resources/aop/client/requests/GetConfigAopRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/aop/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/aop/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/assets/client/Client.d.ts +109 -15
- package/dist/cjs/api/resources/assets/client/Client.js +464 -23
- package/dist/{esm/api/resources/tools/client/requests/ToolsGetAssetContentRequest.d.mts → cjs/api/resources/assets/client/requests/ArchiveAssetsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +5 -3
- package/dist/cjs/api/resources/assets/client/requests/CreateProjectRequestIn.d.ts +6 -6
- package/dist/cjs/api/resources/{tools/client/requests/ToolsGetAssetContentRequest.d.ts → assets/client/requests/DownloadAssetsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/assets/client/requests/DuplicateAssetRequestIn.d.ts +16 -0
- package/dist/cjs/api/resources/{tools/client/requests/ToolsRawDataRequest.d.ts → assets/client/requests/GetAssetsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/assets/client/requests/{AssetsListRequest.d.ts → ListAssetsRequest.d.ts} +7 -10
- package/dist/cjs/api/resources/assets/client/requests/MoveAssetRequestIn.d.ts +14 -0
- package/dist/cjs/api/resources/assets/client/requests/ShareAssetRequestIn.d.ts +27 -0
- package/dist/cjs/api/resources/assets/client/requests/UpdateWorkspaceAccessRequestIn.d.ts +13 -0
- package/dist/cjs/api/resources/assets/client/requests/index.d.ts +8 -1
- package/dist/cjs/api/resources/computer/client/Client.d.ts +74 -0
- package/dist/cjs/api/resources/computer/client/Client.js +336 -0
- package/dist/cjs/api/resources/computer/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/computer/client/index.js +17 -0
- package/dist/cjs/api/resources/computer/client/requests/CreateSshAccessRequestIn.d.ts +12 -0
- package/dist/cjs/api/resources/computer/client/requests/CreateSshAccessRequestIn.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/DeployComputerRequestIn.d.ts +12 -0
- package/dist/cjs/api/resources/computer/client/requests/DeployComputerRequestIn.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/RevokeSshAccessRequestIn.d.ts +12 -0
- package/dist/cjs/api/resources/computer/client/requests/RevokeSshAccessRequestIn.js +3 -0
- package/dist/cjs/api/resources/computer/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/computer/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/computer/index.d.ts +1 -0
- package/dist/cjs/api/resources/computer/index.js +17 -0
- package/dist/cjs/api/resources/databases/client/Client.d.ts +37 -37
- package/dist/cjs/api/resources/databases/client/Client.js +75 -70
- package/dist/cjs/api/resources/databases/client/requests/DatabaseSqlRequest.d.ts +2 -0
- package/dist/cjs/api/resources/databases/client/requests/{DatabasesDeleteRequest.d.ts → DeleteDatabasesRequest.d.ts} +6 -3
- package/dist/cjs/api/resources/databases/client/requests/DeleteDatabasesRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/GetStatusDatabasesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/databases/client/requests/GetStatusDatabasesRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/GetTableSchemaDatabasesRequest.d.ts +11 -0
- package/dist/cjs/api/resources/databases/client/requests/GetTableSchemaDatabasesRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/InsertDataRequest.d.ts +4 -0
- package/dist/cjs/api/resources/databases/client/requests/ListTablesDatabasesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/databases/client/requests/ListTablesDatabasesRequest.js +3 -0
- package/dist/{esm/api/resources/databases/client/requests/DatabasesSelectRequest.d.mts → cjs/api/resources/databases/client/requests/SelectDatabasesRequest.d.ts} +7 -7
- package/dist/cjs/api/resources/databases/client/requests/SelectDatabasesRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.d.ts +4 -1
- package/dist/cjs/api/resources/databases/client/requests/index.d.ts +5 -2
- package/dist/cjs/api/resources/index.d.ts +13 -0
- package/dist/cjs/api/resources/index.js +14 -1
- package/dist/cjs/api/resources/meetings/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/meetings/client/Client.js +331 -0
- package/dist/cjs/api/resources/meetings/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/meetings/client/index.js +17 -0
- package/dist/cjs/api/resources/meetings/client/requests/DownloadMeetingsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/meetings/client/requests/DownloadMeetingsRequest.js +3 -0
- package/dist/cjs/api/resources/meetings/client/requests/GetMeetingsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/meetings/client/requests/GetMeetingsRequest.js +3 -0
- package/dist/cjs/api/resources/meetings/client/requests/ListMeetingsRequest.d.ts +29 -0
- package/dist/cjs/api/resources/meetings/client/requests/ListMeetingsRequest.js +3 -0
- package/dist/cjs/api/resources/meetings/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/meetings/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/meetings/index.d.ts +2 -0
- package/dist/cjs/api/resources/meetings/index.js +18 -0
- package/dist/cjs/api/resources/meetings/types/DownloadMeetingsRequestArtifact.d.ts +9 -0
- package/dist/cjs/api/resources/meetings/types/DownloadMeetingsRequestArtifact.js +12 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestDomainMatch.d.ts +6 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestDomainMatch.js +9 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestParticipantMatch.d.ts +6 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestParticipantMatch.js +9 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestSortBy.d.ts +7 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestSortBy.js +10 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestSortDirection.d.ts +6 -0
- package/dist/cjs/api/resources/meetings/types/ListMeetingsRequestSortDirection.js +9 -0
- package/dist/cjs/api/resources/meetings/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/meetings/types/index.js +21 -0
- package/dist/cjs/api/resources/query/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/query/client/Client.js +1 -1
- package/dist/cjs/api/resources/query/client/requests/{QueryExecuteSnippetRequest.d.ts → ExecuteSnippetQueryRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/query/client/requests/ExecuteSnippetQueryRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.d.ts +13 -9
- package/dist/cjs/api/resources/semanticModel/client/Client.js +37 -19
- package/dist/cjs/api/resources/semanticModel/client/requests/GenerateTokenSemanticModelRequest.d.ts +9 -0
- package/dist/cjs/api/resources/semanticModel/client/requests/GenerateTokenSemanticModelRequest.js +3 -0
- package/dist/cjs/api/resources/semanticModel/client/requests/GetMetaSemanticModelRequest.d.ts +9 -0
- package/dist/cjs/api/resources/semanticModel/client/requests/GetMetaSemanticModelRequest.js +3 -0
- package/dist/cjs/api/resources/semanticModel/client/requests/SemanticModelQueryRequestIn.d.ts +5 -3
- package/dist/cjs/api/resources/semanticModel/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/sessions/client/Client.js +337 -0
- package/dist/cjs/api/resources/sessions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/sessions/client/index.js +17 -0
- package/dist/cjs/api/resources/sessions/client/requests/DownloadSessionsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/sessions/client/requests/DownloadSessionsRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionsRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +33 -0
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/sessions/index.d.ts +2 -0
- package/dist/cjs/api/resources/sessions/index.js +18 -0
- package/dist/cjs/api/resources/sessions/types/DownloadSessionsRequestExportFormat.d.ts +8 -0
- package/dist/cjs/api/resources/sessions/types/DownloadSessionsRequestExportFormat.js +11 -0
- package/dist/cjs/api/resources/sessions/types/ListSessionsRequestSortBy.d.ts +7 -0
- package/dist/cjs/api/resources/sessions/types/ListSessionsRequestSortBy.js +10 -0
- package/dist/cjs/api/resources/sessions/types/ListSessionsRequestSortDirection.d.ts +6 -0
- package/dist/cjs/api/resources/sessions/types/ListSessionsRequestSortDirection.js +9 -0
- package/dist/cjs/api/resources/sessions/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/sessions/types/index.js +19 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +10 -6
- package/dist/cjs/api/resources/threads/client/Client.js +18 -12
- package/dist/cjs/api/resources/threads/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/index.js +15 -0
- package/dist/cjs/api/resources/threads/client/requests/GetStatusThreadsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/threads/client/requests/GetStatusThreadsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/StopThreadsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/threads/client/requests/StopThreadsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/threads/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +40 -24
- package/dist/cjs/api/resources/tools/client/Client.js +171 -43
- package/dist/cjs/api/resources/tools/client/requests/AssetReadRequestIn.d.ts +12 -0
- package/dist/cjs/api/resources/tools/client/requests/AssetReadRequestIn.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +2 -3
- package/dist/cjs/api/resources/tools/client/requests/DataFrameToolsRequest.d.ts +18 -0
- package/dist/cjs/api/resources/tools/client/requests/DataFrameToolsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/GetAssetContentToolsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/tools/client/requests/GetAssetContentToolsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/GetAssetScreenshotToolsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/tools/client/requests/GetAssetScreenshotToolsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/ListContentsToolsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tools/client/requests/ListContentsToolsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/RawDataToolsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tools/client/requests/RawDataToolsRequest.js +3 -0
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +6 -5
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.ts +5 -3
- package/dist/cjs/api/resources/tools/types/DataFrameToolsRequestColumnsItem.d.ts +1 -0
- package/dist/cjs/api/resources/tools/types/DataFrameToolsRequestColumnsItem.js +3 -0
- package/dist/cjs/api/resources/tools/types/DataFrameToolsRequestSheetName.d.ts +4 -0
- package/dist/cjs/api/resources/tools/types/DataFrameToolsRequestSheetName.js +3 -0
- package/dist/cjs/api/resources/tools/types/index.d.ts +2 -1
- package/dist/cjs/api/resources/tools/types/index.js +2 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +24 -0
- package/dist/cjs/api/resources/users/client/Client.js +116 -0
- package/dist/cjs/api/resources/users/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/client/index.js +2 -0
- package/dist/cjs/api/resources/users/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/index.js +17 -0
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/workspaces/client/Client.js +230 -0
- package/dist/cjs/api/resources/workspaces/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspaces/client/index.js +17 -0
- package/dist/cjs/api/resources/workspaces/client/requests/GetConfigurationWorkspacesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workspaces/client/requests/GetConfigurationWorkspacesRequest.js +3 -0
- package/dist/cjs/api/resources/workspaces/client/requests/UpdateWorkspaceConfigurationRequestIn.d.ts +12 -0
- package/dist/cjs/api/resources/workspaces/client/requests/UpdateWorkspaceConfigurationRequestIn.js +3 -0
- package/dist/cjs/api/resources/workspaces/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/workspaces/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/workspaces/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspaces/index.js +17 -0
- package/dist/cjs/api/types/AopConfigResponseOut.d.ts +27 -0
- package/dist/cjs/api/types/AopConfigResponseOut.js +3 -0
- package/dist/cjs/api/types/AopConfigUpdateResponseOut.d.ts +11 -0
- package/dist/cjs/api/types/AopConfigUpdateResponseOut.js +3 -0
- package/dist/cjs/api/types/AopCreateResponseOut.d.ts +17 -0
- package/dist/cjs/api/types/AopCreateResponseOut.js +3 -0
- package/dist/cjs/api/types/AopExecuteRequestIn.d.ts +3 -1
- package/dist/cjs/api/types/AopExecuteResponseOut.d.ts +2 -2
- package/dist/cjs/api/types/AssetCapabilitiesResponseOut.d.ts +10 -0
- package/dist/cjs/api/types/AssetCapabilitiesResponseOut.js +3 -0
- package/dist/cjs/api/types/AssetComment.d.ts +19 -0
- package/dist/cjs/api/types/AssetComment.js +3 -0
- package/dist/cjs/api/types/AssetCommentThread.d.ts +22 -0
- package/dist/cjs/api/types/AssetCommentThread.js +3 -0
- package/dist/cjs/api/types/AssetContentRequestOut.d.ts +3 -0
- package/dist/cjs/api/types/AssetNode.d.ts +1 -1
- package/dist/cjs/api/types/AssetReadErrorOut.d.ts +15 -0
- package/dist/cjs/api/types/AssetReadErrorOut.js +3 -0
- package/dist/cjs/api/types/AssetReadResponseOut.d.ts +8 -0
- package/dist/cjs/api/types/AssetReadResponseOut.js +3 -0
- package/dist/cjs/api/types/AssetReadResult.d.ts +28 -0
- package/dist/cjs/api/types/AssetReadResult.js +3 -0
- package/dist/cjs/api/types/BorderModel.d.ts +2 -2
- package/dist/cjs/api/types/BordersModel.d.ts +4 -4
- package/dist/cjs/api/types/CellFormat.d.ts +10 -10
- package/dist/cjs/api/types/Chunk.d.ts +1 -1
- package/dist/cjs/api/types/ChunkResult.d.ts +1 -1
- package/dist/cjs/api/types/ConversationAssetInfo.d.ts +12 -12
- package/dist/cjs/api/types/ConversationMessage.d.ts +4 -1
- package/dist/cjs/api/types/ConversationResult.d.ts +6 -6
- package/dist/cjs/api/types/CreatableAssetType.d.ts +2 -0
- package/dist/cjs/api/types/CreatableAssetType.js +2 -0
- package/dist/cjs/api/types/CreateAssetResponseOut.d.ts +3 -1
- package/dist/cjs/api/types/CreateProjectResponseOut.d.ts +4 -4
- package/dist/cjs/api/types/DataFrameRequestOut.d.ts +3 -3
- package/dist/cjs/api/types/DatabaseColumnInfo.d.ts +2 -2
- package/dist/cjs/api/types/DatabaseMutationResponse.d.ts +1 -1
- package/dist/cjs/api/types/DatabaseSqlResponse.d.ts +3 -3
- package/dist/cjs/api/types/DatabaseStatusResponse.d.ts +1 -1
- package/dist/cjs/api/types/DatabaseTableInfo.d.ts +1 -1
- package/dist/cjs/api/types/DeployComputerResponseOut.d.ts +11 -0
- package/dist/cjs/api/types/DeployComputerResponseOut.js +3 -0
- package/dist/cjs/api/types/DimensionProperties.d.ts +4 -4
- package/dist/cjs/api/types/DuplicateAssetResponseOut.d.ts +17 -0
- package/dist/cjs/api/types/DuplicateAssetResponseOut.js +3 -0
- package/dist/cjs/api/types/GeneralAgentConfig.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentRequest.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentResponseMessage.d.ts +15 -12
- package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.d.ts +11 -8
- package/dist/cjs/api/types/GetTableResponse.d.ts +2 -0
- package/dist/cjs/api/types/GridRange.d.ts +7 -0
- package/dist/cjs/api/types/InputMessage.d.ts +7 -6
- package/dist/cjs/api/types/InputMessageContentOneItem.d.ts +22 -0
- package/dist/cjs/api/types/InputMessageContentOneItem.js +3 -0
- package/dist/cjs/api/types/MeetingArtifactsOut.d.ts +17 -0
- package/dist/cjs/api/types/MeetingArtifactsOut.js +3 -0
- package/dist/cjs/api/types/MeetingOut.d.ts +28 -0
- package/dist/cjs/api/types/MeetingOut.js +3 -0
- package/dist/cjs/api/types/MeetingParticipantOut.d.ts +9 -0
- package/dist/cjs/api/types/MeetingParticipantOut.js +3 -0
- package/dist/cjs/api/types/MoveAssetResponseOut.d.ts +15 -0
- package/dist/cjs/api/types/MoveAssetResponseOut.js +3 -0
- package/dist/cjs/api/types/PaginatedAssetsOut.d.ts +1 -1
- package/dist/cjs/api/types/PaginatedMeetingsOut.d.ts +18 -0
- package/dist/cjs/api/types/PaginatedMeetingsOut.js +3 -0
- package/dist/cjs/api/types/PaginatedSessionsOut.d.ts +18 -0
- package/dist/cjs/api/types/PaginatedSessionsOut.js +3 -0
- package/dist/cjs/api/types/PublicAssetOut.d.ts +7 -5
- package/dist/cjs/api/types/ReadCapabilitiesOut.d.ts +19 -0
- package/dist/cjs/api/types/ReadCapabilitiesOut.js +3 -0
- package/dist/cjs/api/types/RedactedThinkingContent.d.ts +6 -0
- package/dist/cjs/api/types/RedactedThinkingContent.js +3 -0
- package/dist/cjs/api/types/RevokeSshAccessResponseOut.d.ts +7 -0
- package/dist/cjs/api/types/RevokeSshAccessResponseOut.js +3 -0
- package/dist/cjs/api/types/RunTaskResponse.d.ts +3 -3
- package/dist/cjs/api/types/SemanticModelMetaResponseOut.d.ts +10 -2
- package/dist/cjs/api/types/SessionOut.d.ts +41 -0
- package/dist/cjs/api/types/SessionOut.js +3 -0
- package/dist/cjs/api/types/ShareAssetResponseOut.d.ts +10 -0
- package/dist/cjs/api/types/ShareAssetResponseOut.js +3 -0
- package/dist/cjs/api/types/SharePermissionType.d.ts +6 -0
- package/dist/cjs/api/types/SharePermissionType.js +9 -0
- package/dist/cjs/api/types/ShareRecipient.d.ts +10 -0
- package/dist/cjs/api/types/ShareRecipient.js +3 -0
- package/dist/cjs/api/types/ShareRecipientResultOut.d.ts +13 -0
- package/dist/cjs/api/types/ShareRecipientResultOut.js +3 -0
- package/dist/cjs/api/types/Sheet.d.ts +8 -8
- package/dist/cjs/api/types/SheetOperationResponse.d.ts +2 -0
- package/dist/cjs/api/types/SshAccessResponseOut.d.ts +13 -0
- package/dist/cjs/api/types/SshAccessResponseOut.js +3 -0
- package/dist/cjs/api/types/StructuredDataExtractorResponse.d.ts +2 -2
- package/dist/cjs/api/types/TextFormatModel.d.ts +8 -8
- package/dist/cjs/api/types/ThemeColor.d.ts +1 -1
- package/dist/cjs/api/types/ThinkingContent.d.ts +7 -0
- package/dist/cjs/api/types/ThinkingContent.js +3 -0
- package/dist/cjs/api/types/ThreadBatchStopResultItem.d.ts +1 -1
- package/dist/cjs/api/types/ThreadStatusResponseOut.d.ts +2 -2
- package/dist/cjs/api/types/ToolResultContent.d.ts +11 -0
- package/dist/cjs/api/types/ToolResultContent.js +3 -0
- package/dist/cjs/api/types/ToolUseContent.d.ts +8 -0
- package/dist/cjs/api/types/ToolUseContent.js +3 -0
- package/dist/cjs/api/types/UpdateWorkspaceDisclaimerIn.d.ts +13 -0
- package/dist/cjs/api/types/UpdateWorkspaceDisclaimerIn.js +3 -0
- package/dist/cjs/api/types/UserInfoOut.d.ts +14 -0
- package/dist/cjs/api/types/UserInfoOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceAccessResponseOut.d.ts +9 -0
- package/dist/cjs/api/types/WorkspaceAccessResponseOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceConfigurationResponseOut.d.ts +10 -0
- package/dist/cjs/api/types/WorkspaceConfigurationResponseOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceDisclaimerOut.d.ts +13 -0
- package/dist/cjs/api/types/WorkspaceDisclaimerOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceInfoOut.d.ts +11 -0
- package/dist/cjs/api/types/WorkspaceInfoOut.js +3 -0
- package/dist/cjs/api/types/WorkspaceShareAccess.d.ts +6 -0
- package/dist/cjs/api/types/WorkspaceShareAccess.js +9 -0
- package/dist/cjs/api/types/index.d.ts +37 -1
- package/dist/cjs/api/types/index.js +37 -1
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +1 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/core/pagination/Page.d.ts +33 -0
- package/dist/cjs/core/pagination/Page.js +101 -0
- package/dist/cjs/core/pagination/exports.d.ts +1 -0
- package/dist/cjs/core/pagination/exports.js +2 -0
- package/dist/cjs/core/pagination/index.d.ts +1 -0
- package/dist/cjs/core/pagination/index.js +5 -0
- package/dist/cjs/core/utils/index.d.ts +1 -0
- package/dist/cjs/core/utils/index.js +5 -0
- package/dist/cjs/core/utils/setObjectProperty.d.ts +11 -0
- package/dist/cjs/core/utils/setObjectProperty.js +42 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +15 -0
- package/dist/esm/Client.mjs +25 -0
- package/dist/esm/api/errors/BadGatewayError.d.mts +1 -2
- package/dist/esm/api/resources/agents/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/agents/client/Client.mjs +19 -7
- package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.d.mts +3 -0
- package/dist/esm/api/resources/aop/client/Client.d.mts +66 -0
- package/dist/esm/api/resources/aop/client/Client.mjs +274 -0
- package/dist/esm/api/resources/aop/client/index.d.mts +1 -1
- package/dist/esm/api/resources/aop/client/index.mjs +1 -1
- package/dist/esm/api/resources/aop/client/requests/AopConfigUpdateRequestIn.d.mts +30 -0
- package/dist/esm/api/resources/aop/client/requests/AopCreateRequestIn.d.mts +37 -0
- package/dist/esm/api/resources/aop/client/requests/GetConfigAopRequest.d.mts +9 -0
- package/dist/esm/api/resources/aop/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/aop/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/assets/client/Client.d.mts +109 -15
- package/dist/esm/api/resources/assets/client/Client.mjs +464 -23
- package/dist/esm/api/resources/assets/client/requests/ArchiveAssetsRequest.d.mts +9 -0
- package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +5 -3
- package/dist/esm/api/resources/assets/client/requests/CreateProjectRequestIn.d.mts +6 -6
- package/dist/esm/api/resources/assets/client/requests/DownloadAssetsRequest.d.mts +9 -0
- package/dist/esm/api/resources/assets/client/requests/DuplicateAssetRequestIn.d.mts +16 -0
- package/dist/esm/api/resources/assets/client/requests/GetAssetsRequest.d.mts +9 -0
- package/dist/esm/api/resources/assets/client/requests/{AssetsListRequest.d.mts → ListAssetsRequest.d.mts} +7 -10
- package/dist/esm/api/resources/assets/client/requests/MoveAssetRequestIn.d.mts +14 -0
- package/dist/esm/api/resources/assets/client/requests/ShareAssetRequestIn.d.mts +27 -0
- package/dist/esm/api/resources/assets/client/requests/UpdateWorkspaceAccessRequestIn.d.mts +13 -0
- package/dist/esm/api/resources/assets/client/requests/index.d.mts +8 -1
- package/dist/esm/api/resources/computer/client/Client.d.mts +74 -0
- package/dist/esm/api/resources/computer/client/Client.mjs +299 -0
- package/dist/esm/api/resources/computer/client/index.d.mts +1 -0
- package/dist/esm/api/resources/computer/client/index.mjs +1 -0
- package/dist/esm/api/resources/computer/client/requests/CreateSshAccessRequestIn.d.mts +12 -0
- package/dist/esm/api/resources/computer/client/requests/CreateSshAccessRequestIn.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/DeployComputerRequestIn.d.mts +12 -0
- package/dist/esm/api/resources/computer/client/requests/DeployComputerRequestIn.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/RevokeSshAccessRequestIn.d.mts +12 -0
- package/dist/esm/api/resources/computer/client/requests/RevokeSshAccessRequestIn.mjs +2 -0
- package/dist/esm/api/resources/computer/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/computer/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/computer/index.d.mts +1 -0
- package/dist/esm/api/resources/computer/index.mjs +1 -0
- package/dist/esm/api/resources/databases/client/Client.d.mts +37 -37
- package/dist/esm/api/resources/databases/client/Client.mjs +75 -70
- package/dist/esm/api/resources/databases/client/requests/DatabaseSqlRequest.d.mts +2 -0
- package/dist/esm/api/resources/databases/client/requests/{DatabasesDeleteRequest.d.mts → DeleteDatabasesRequest.d.mts} +6 -3
- package/dist/esm/api/resources/databases/client/requests/DeleteDatabasesRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/GetStatusDatabasesRequest.d.mts +9 -0
- package/dist/esm/api/resources/databases/client/requests/GetStatusDatabasesRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/GetTableSchemaDatabasesRequest.d.mts +11 -0
- package/dist/esm/api/resources/databases/client/requests/GetTableSchemaDatabasesRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/InsertDataRequest.d.mts +4 -0
- package/dist/esm/api/resources/databases/client/requests/ListTablesDatabasesRequest.d.mts +9 -0
- package/dist/esm/api/resources/databases/client/requests/ListTablesDatabasesRequest.mjs +2 -0
- package/dist/{cjs/api/resources/databases/client/requests/DatabasesSelectRequest.d.ts → esm/api/resources/databases/client/requests/SelectDatabasesRequest.d.mts} +7 -7
- package/dist/esm/api/resources/databases/client/requests/SelectDatabasesRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.d.mts +4 -1
- package/dist/esm/api/resources/databases/client/requests/index.d.mts +5 -2
- package/dist/esm/api/resources/index.d.mts +13 -0
- package/dist/esm/api/resources/index.mjs +13 -0
- package/dist/esm/api/resources/meetings/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/meetings/client/Client.mjs +294 -0
- package/dist/esm/api/resources/meetings/client/index.d.mts +1 -0
- package/dist/esm/api/resources/meetings/client/index.mjs +1 -0
- package/dist/esm/api/resources/meetings/client/requests/DownloadMeetingsRequest.d.mts +12 -0
- package/dist/esm/api/resources/meetings/client/requests/DownloadMeetingsRequest.mjs +2 -0
- package/dist/esm/api/resources/meetings/client/requests/GetMeetingsRequest.d.mts +9 -0
- package/dist/esm/api/resources/meetings/client/requests/GetMeetingsRequest.mjs +2 -0
- package/dist/esm/api/resources/meetings/client/requests/ListMeetingsRequest.d.mts +29 -0
- package/dist/esm/api/resources/meetings/client/requests/ListMeetingsRequest.mjs +2 -0
- package/dist/esm/api/resources/meetings/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/meetings/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/meetings/index.d.mts +2 -0
- package/dist/esm/api/resources/meetings/index.mjs +2 -0
- package/dist/esm/api/resources/meetings/types/DownloadMeetingsRequestArtifact.d.mts +9 -0
- package/dist/esm/api/resources/meetings/types/DownloadMeetingsRequestArtifact.mjs +9 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestDomainMatch.d.mts +6 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestDomainMatch.mjs +6 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestParticipantMatch.d.mts +6 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestParticipantMatch.mjs +6 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestSortBy.d.mts +7 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestSortBy.mjs +7 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestSortDirection.d.mts +6 -0
- package/dist/esm/api/resources/meetings/types/ListMeetingsRequestSortDirection.mjs +6 -0
- package/dist/esm/api/resources/meetings/types/index.d.mts +5 -0
- package/dist/esm/api/resources/meetings/types/index.mjs +5 -0
- package/dist/esm/api/resources/query/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/query/client/Client.mjs +1 -1
- package/dist/esm/api/resources/query/client/requests/{QueryExecuteSnippetRequest.d.mts → ExecuteSnippetQueryRequest.d.mts} +1 -1
- package/dist/esm/api/resources/query/client/requests/ExecuteSnippetQueryRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/semanticModel/client/Client.d.mts +13 -9
- package/dist/esm/api/resources/semanticModel/client/Client.mjs +37 -19
- package/dist/esm/api/resources/semanticModel/client/requests/GenerateTokenSemanticModelRequest.d.mts +9 -0
- package/dist/esm/api/resources/semanticModel/client/requests/GenerateTokenSemanticModelRequest.mjs +2 -0
- package/dist/esm/api/resources/semanticModel/client/requests/GetMetaSemanticModelRequest.d.mts +9 -0
- package/dist/esm/api/resources/semanticModel/client/requests/GetMetaSemanticModelRequest.mjs +2 -0
- package/dist/esm/api/resources/semanticModel/client/requests/SemanticModelQueryRequestIn.d.mts +5 -3
- package/dist/esm/api/resources/semanticModel/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/sessions/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/sessions/client/Client.mjs +300 -0
- package/dist/esm/api/resources/sessions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/sessions/client/index.mjs +1 -0
- package/dist/esm/api/resources/sessions/client/requests/DownloadSessionsRequest.d.mts +12 -0
- package/dist/esm/api/resources/sessions/client/requests/DownloadSessionsRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionsRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionsRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.d.mts +33 -0
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/sessions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/sessions/index.d.mts +2 -0
- package/dist/esm/api/resources/sessions/index.mjs +2 -0
- package/dist/esm/api/resources/sessions/types/DownloadSessionsRequestExportFormat.d.mts +8 -0
- package/dist/esm/api/resources/sessions/types/DownloadSessionsRequestExportFormat.mjs +8 -0
- package/dist/esm/api/resources/sessions/types/ListSessionsRequestSortBy.d.mts +7 -0
- package/dist/esm/api/resources/sessions/types/ListSessionsRequestSortBy.mjs +7 -0
- package/dist/esm/api/resources/sessions/types/ListSessionsRequestSortDirection.d.mts +6 -0
- package/dist/esm/api/resources/sessions/types/ListSessionsRequestSortDirection.mjs +6 -0
- package/dist/esm/api/resources/sessions/types/index.d.mts +3 -0
- package/dist/esm/api/resources/sessions/types/index.mjs +3 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +10 -6
- package/dist/esm/api/resources/threads/client/Client.mjs +18 -12
- package/dist/esm/api/resources/threads/client/index.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/index.mjs +1 -1
- package/dist/esm/api/resources/threads/client/requests/GetStatusThreadsRequest.d.mts +10 -0
- package/dist/esm/api/resources/threads/client/requests/GetStatusThreadsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/StopThreadsRequest.d.mts +10 -0
- package/dist/esm/api/resources/threads/client/requests/StopThreadsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +40 -24
- package/dist/esm/api/resources/tools/client/Client.mjs +171 -43
- package/dist/esm/api/resources/tools/client/requests/AssetReadRequestIn.d.mts +12 -0
- package/dist/esm/api/resources/tools/client/requests/AssetReadRequestIn.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +2 -3
- package/dist/esm/api/resources/tools/client/requests/DataFrameToolsRequest.d.mts +18 -0
- package/dist/esm/api/resources/tools/client/requests/DataFrameToolsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/GetAssetContentToolsRequest.d.mts +10 -0
- package/dist/esm/api/resources/tools/client/requests/GetAssetContentToolsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/GetAssetScreenshotToolsRequest.d.mts +10 -0
- package/dist/esm/api/resources/tools/client/requests/GetAssetScreenshotToolsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/ListContentsToolsRequest.d.mts +9 -0
- package/dist/esm/api/resources/tools/client/requests/ListContentsToolsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/RawDataToolsRequest.d.mts +9 -0
- package/dist/esm/api/resources/tools/client/requests/RawDataToolsRequest.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +6 -5
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/DuplicateSheetRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/GetTableRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/InsertTableRowRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetCellRequest.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.mts +5 -3
- package/dist/esm/api/resources/tools/types/DataFrameToolsRequestColumnsItem.d.mts +1 -0
- package/dist/esm/api/resources/tools/types/DataFrameToolsRequestColumnsItem.mjs +2 -0
- package/dist/esm/api/resources/tools/types/DataFrameToolsRequestSheetName.d.mts +4 -0
- package/dist/esm/api/resources/tools/types/DataFrameToolsRequestSheetName.mjs +2 -0
- package/dist/esm/api/resources/tools/types/index.d.mts +2 -1
- package/dist/esm/api/resources/tools/types/index.mjs +2 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +24 -0
- package/dist/esm/api/resources/users/client/Client.mjs +79 -0
- package/dist/esm/api/resources/users/client/index.d.mts +1 -0
- package/dist/esm/api/resources/users/client/index.mjs +1 -0
- package/dist/esm/api/resources/users/index.d.mts +1 -0
- package/dist/esm/api/resources/users/index.mjs +1 -0
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/workspaces/client/Client.mjs +193 -0
- package/dist/esm/api/resources/workspaces/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workspaces/client/index.mjs +1 -0
- package/dist/esm/api/resources/workspaces/client/requests/GetConfigurationWorkspacesRequest.d.mts +9 -0
- package/dist/esm/api/resources/workspaces/client/requests/GetConfigurationWorkspacesRequest.mjs +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/UpdateWorkspaceConfigurationRequestIn.d.mts +12 -0
- package/dist/esm/api/resources/workspaces/client/requests/UpdateWorkspaceConfigurationRequestIn.mjs +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/workspaces/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/workspaces/index.d.mts +1 -0
- package/dist/esm/api/resources/workspaces/index.mjs +1 -0
- package/dist/esm/api/types/AopConfigResponseOut.d.mts +27 -0
- package/dist/esm/api/types/AopConfigResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopConfigUpdateResponseOut.d.mts +11 -0
- package/dist/esm/api/types/AopConfigUpdateResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopCreateResponseOut.d.mts +17 -0
- package/dist/esm/api/types/AopCreateResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopExecuteRequestIn.d.mts +3 -1
- package/dist/esm/api/types/AopExecuteResponseOut.d.mts +2 -2
- package/dist/esm/api/types/AssetCapabilitiesResponseOut.d.mts +10 -0
- package/dist/esm/api/types/AssetCapabilitiesResponseOut.mjs +2 -0
- package/dist/esm/api/types/AssetComment.d.mts +19 -0
- package/dist/esm/api/types/AssetComment.mjs +2 -0
- package/dist/esm/api/types/AssetCommentThread.d.mts +22 -0
- package/dist/esm/api/types/AssetCommentThread.mjs +2 -0
- package/dist/esm/api/types/AssetContentRequestOut.d.mts +3 -0
- package/dist/esm/api/types/AssetNode.d.mts +1 -1
- package/dist/esm/api/types/AssetReadErrorOut.d.mts +15 -0
- package/dist/esm/api/types/AssetReadErrorOut.mjs +2 -0
- package/dist/esm/api/types/AssetReadResponseOut.d.mts +8 -0
- package/dist/esm/api/types/AssetReadResponseOut.mjs +2 -0
- package/dist/esm/api/types/AssetReadResult.d.mts +28 -0
- package/dist/esm/api/types/AssetReadResult.mjs +2 -0
- package/dist/esm/api/types/BorderModel.d.mts +2 -2
- package/dist/esm/api/types/BordersModel.d.mts +4 -4
- package/dist/esm/api/types/CellFormat.d.mts +10 -10
- package/dist/esm/api/types/Chunk.d.mts +1 -1
- package/dist/esm/api/types/ChunkResult.d.mts +1 -1
- package/dist/esm/api/types/ConversationAssetInfo.d.mts +12 -12
- package/dist/esm/api/types/ConversationMessage.d.mts +4 -1
- package/dist/esm/api/types/ConversationResult.d.mts +6 -6
- package/dist/esm/api/types/CreatableAssetType.d.mts +2 -0
- package/dist/esm/api/types/CreatableAssetType.mjs +2 -0
- package/dist/esm/api/types/CreateAssetResponseOut.d.mts +3 -1
- package/dist/esm/api/types/CreateProjectResponseOut.d.mts +4 -4
- package/dist/esm/api/types/DataFrameRequestOut.d.mts +3 -3
- package/dist/esm/api/types/DatabaseColumnInfo.d.mts +2 -2
- package/dist/esm/api/types/DatabaseMutationResponse.d.mts +1 -1
- package/dist/esm/api/types/DatabaseSqlResponse.d.mts +3 -3
- package/dist/esm/api/types/DatabaseStatusResponse.d.mts +1 -1
- package/dist/esm/api/types/DatabaseTableInfo.d.mts +1 -1
- package/dist/esm/api/types/DeployComputerResponseOut.d.mts +11 -0
- package/dist/esm/api/types/DeployComputerResponseOut.mjs +2 -0
- package/dist/esm/api/types/DimensionProperties.d.mts +4 -4
- package/dist/esm/api/types/DuplicateAssetResponseOut.d.mts +17 -0
- package/dist/esm/api/types/DuplicateAssetResponseOut.mjs +2 -0
- package/dist/esm/api/types/GeneralAgentConfig.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentRequest.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentResponseMessage.d.mts +15 -12
- package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.d.mts +11 -8
- package/dist/esm/api/types/GetTableResponse.d.mts +2 -0
- package/dist/esm/api/types/GridRange.d.mts +7 -0
- package/dist/esm/api/types/InputMessage.d.mts +7 -6
- package/dist/esm/api/types/InputMessageContentOneItem.d.mts +22 -0
- package/dist/esm/api/types/InputMessageContentOneItem.mjs +2 -0
- package/dist/esm/api/types/MeetingArtifactsOut.d.mts +17 -0
- package/dist/esm/api/types/MeetingArtifactsOut.mjs +2 -0
- package/dist/esm/api/types/MeetingOut.d.mts +28 -0
- package/dist/esm/api/types/MeetingOut.mjs +2 -0
- package/dist/esm/api/types/MeetingParticipantOut.d.mts +9 -0
- package/dist/esm/api/types/MeetingParticipantOut.mjs +2 -0
- package/dist/esm/api/types/MoveAssetResponseOut.d.mts +15 -0
- package/dist/esm/api/types/MoveAssetResponseOut.mjs +2 -0
- package/dist/esm/api/types/PaginatedAssetsOut.d.mts +1 -1
- package/dist/esm/api/types/PaginatedMeetingsOut.d.mts +18 -0
- package/dist/esm/api/types/PaginatedMeetingsOut.mjs +2 -0
- package/dist/esm/api/types/PaginatedSessionsOut.d.mts +18 -0
- package/dist/esm/api/types/PaginatedSessionsOut.mjs +2 -0
- package/dist/esm/api/types/PublicAssetOut.d.mts +7 -5
- package/dist/esm/api/types/ReadCapabilitiesOut.d.mts +19 -0
- package/dist/esm/api/types/ReadCapabilitiesOut.mjs +2 -0
- package/dist/esm/api/types/RedactedThinkingContent.d.mts +6 -0
- package/dist/esm/api/types/RedactedThinkingContent.mjs +2 -0
- package/dist/esm/api/types/RevokeSshAccessResponseOut.d.mts +7 -0
- package/dist/esm/api/types/RevokeSshAccessResponseOut.mjs +2 -0
- package/dist/esm/api/types/RunTaskResponse.d.mts +3 -3
- package/dist/esm/api/types/SemanticModelMetaResponseOut.d.mts +10 -2
- package/dist/esm/api/types/SessionOut.d.mts +41 -0
- package/dist/esm/api/types/SessionOut.mjs +2 -0
- package/dist/esm/api/types/ShareAssetResponseOut.d.mts +10 -0
- package/dist/esm/api/types/ShareAssetResponseOut.mjs +2 -0
- package/dist/esm/api/types/SharePermissionType.d.mts +6 -0
- package/dist/esm/api/types/SharePermissionType.mjs +6 -0
- package/dist/esm/api/types/ShareRecipient.d.mts +10 -0
- package/dist/esm/api/types/ShareRecipient.mjs +2 -0
- package/dist/esm/api/types/ShareRecipientResultOut.d.mts +13 -0
- package/dist/esm/api/types/ShareRecipientResultOut.mjs +2 -0
- package/dist/esm/api/types/Sheet.d.mts +8 -8
- package/dist/esm/api/types/SheetOperationResponse.d.mts +2 -0
- package/dist/esm/api/types/SshAccessResponseOut.d.mts +13 -0
- package/dist/esm/api/types/SshAccessResponseOut.mjs +2 -0
- package/dist/esm/api/types/StructuredDataExtractorResponse.d.mts +2 -2
- package/dist/esm/api/types/TextFormatModel.d.mts +8 -8
- package/dist/esm/api/types/ThemeColor.d.mts +1 -1
- package/dist/esm/api/types/ThinkingContent.d.mts +7 -0
- package/dist/esm/api/types/ThinkingContent.mjs +2 -0
- package/dist/esm/api/types/ThreadBatchStopResultItem.d.mts +1 -1
- package/dist/esm/api/types/ThreadStatusResponseOut.d.mts +2 -2
- package/dist/esm/api/types/ToolResultContent.d.mts +11 -0
- package/dist/esm/api/types/ToolResultContent.mjs +2 -0
- package/dist/esm/api/types/ToolUseContent.d.mts +8 -0
- package/dist/esm/api/types/ToolUseContent.mjs +2 -0
- package/dist/esm/api/types/UpdateWorkspaceDisclaimerIn.d.mts +13 -0
- package/dist/esm/api/types/UpdateWorkspaceDisclaimerIn.mjs +2 -0
- package/dist/esm/api/types/UserInfoOut.d.mts +14 -0
- package/dist/esm/api/types/UserInfoOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceAccessResponseOut.d.mts +9 -0
- package/dist/esm/api/types/WorkspaceAccessResponseOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceConfigurationResponseOut.d.mts +10 -0
- package/dist/esm/api/types/WorkspaceConfigurationResponseOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceDisclaimerOut.d.mts +13 -0
- package/dist/esm/api/types/WorkspaceDisclaimerOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceInfoOut.d.mts +11 -0
- package/dist/esm/api/types/WorkspaceInfoOut.mjs +2 -0
- package/dist/esm/api/types/WorkspaceShareAccess.d.mts +6 -0
- package/dist/esm/api/types/WorkspaceShareAccess.mjs +6 -0
- package/dist/esm/api/types/index.d.mts +37 -1
- package/dist/esm/api/types/index.mjs +37 -1
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/pagination/Page.d.mts +33 -0
- package/dist/esm/core/pagination/Page.mjs +97 -0
- package/dist/esm/core/pagination/exports.d.mts +1 -0
- package/dist/esm/core/pagination/exports.mjs +1 -0
- package/dist/esm/core/pagination/index.d.mts +1 -0
- package/dist/esm/core/pagination/index.mjs +1 -0
- package/dist/esm/core/utils/index.d.mts +1 -0
- package/dist/esm/core/utils/index.mjs +1 -0
- package/dist/esm/core/utils/setObjectProperty.d.mts +11 -0
- package/dist/esm/core/utils/setObjectProperty.mjs +39 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1694 -318
- package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.d.ts +0 -22
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.ts +0 -11
- package/dist/cjs/api/resources/tools/client/requests/ToolsListContentsRequest.d.ts +0 -13
- package/dist/cjs/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.ts +0 -1
- package/dist/cjs/api/types/SemanticModelErrorResponse.d.ts +0 -6
- package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.d.mts +0 -22
- package/dist/esm/api/resources/tools/client/requests/ToolsGetAssetScreenshotRequest.d.mts +0 -11
- package/dist/esm/api/resources/tools/client/requests/ToolsListContentsRequest.d.mts +0 -13
- package/dist/esm/api/resources/tools/types/ToolsDataFrameRequestColumnsItem.d.mts +0 -1
- package/dist/esm/api/types/SemanticModelErrorResponse.d.mts +0 -6
- /package/dist/cjs/api/resources/{assets/client/requests/AssetsListRequest.js → aop/client/requests/AopConfigUpdateRequestIn.js} +0 -0
- /package/dist/cjs/api/resources/{databases/client/requests/DatabasesDeleteRequest.js → aop/client/requests/AopCreateRequestIn.js} +0 -0
- /package/dist/cjs/api/resources/{databases/client/requests/DatabasesSelectRequest.js → aop/client/requests/GetConfigAopRequest.js} +0 -0
- /package/dist/cjs/api/resources/{query/client/requests/QueryExecuteSnippetRequest.js → assets/client/requests/ArchiveAssetsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsDataFrameRequest.js → assets/client/requests/DownloadAssetsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsGetAssetContentRequest.js → assets/client/requests/DuplicateAssetRequestIn.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsGetAssetScreenshotRequest.js → assets/client/requests/GetAssetsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsListContentsRequest.js → assets/client/requests/ListAssetsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/client/requests/ToolsRawDataRequest.js → assets/client/requests/MoveAssetRequestIn.js} +0 -0
- /package/dist/cjs/api/resources/{tools/types/ToolsDataFrameRequestColumnsItem.js → assets/client/requests/ShareAssetRequestIn.js} +0 -0
- /package/dist/cjs/api/{types/SemanticModelErrorResponse.js → resources/assets/client/requests/UpdateWorkspaceAccessRequestIn.js} +0 -0
- /package/dist/esm/api/resources/{assets/client/requests/AssetsListRequest.mjs → aop/client/requests/AopConfigUpdateRequestIn.mjs} +0 -0
- /package/dist/esm/api/resources/{databases/client/requests/DatabasesDeleteRequest.mjs → aop/client/requests/AopCreateRequestIn.mjs} +0 -0
- /package/dist/esm/api/resources/{databases/client/requests/DatabasesSelectRequest.mjs → aop/client/requests/GetConfigAopRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{query/client/requests/QueryExecuteSnippetRequest.mjs → assets/client/requests/ArchiveAssetsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsDataFrameRequest.mjs → assets/client/requests/DownloadAssetsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsGetAssetContentRequest.mjs → assets/client/requests/DuplicateAssetRequestIn.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsGetAssetScreenshotRequest.mjs → assets/client/requests/GetAssetsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsListContentsRequest.mjs → assets/client/requests/ListAssetsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/client/requests/ToolsRawDataRequest.mjs → assets/client/requests/MoveAssetRequestIn.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/ToolsDataFrameRequestColumnsItem.mjs → assets/client/requests/ShareAssetRequestIn.mjs} +0 -0
- /package/dist/esm/api/{types/SemanticModelErrorResponse.mjs → resources/assets/client/requests/UpdateWorkspaceAccessRequestIn.mjs} +0 -0
|
@@ -219,7 +219,7 @@ class ThreadsClient {
|
|
|
219
219
|
/**
|
|
220
220
|
* Check the status of a thread execution by thread ID. Returns thread status and associated conversation asset information for tracking progress.
|
|
221
221
|
*
|
|
222
|
-
* @param {
|
|
222
|
+
* @param {AthenaIntelligence.GetStatusThreadsRequest} request
|
|
223
223
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
224
|
*
|
|
225
225
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -228,18 +228,21 @@ class ThreadsClient {
|
|
|
228
228
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
229
229
|
*
|
|
230
230
|
* @example
|
|
231
|
-
* await client.threads.getStatus(
|
|
231
|
+
* await client.threads.getStatus({
|
|
232
|
+
* thread_id: "thread_id"
|
|
233
|
+
* })
|
|
232
234
|
*/
|
|
233
|
-
getStatus(
|
|
234
|
-
return core.HttpResponsePromise.fromPromise(this.__getStatus(
|
|
235
|
+
getStatus(request, requestOptions) {
|
|
236
|
+
return core.HttpResponsePromise.fromPromise(this.__getStatus(request, requestOptions));
|
|
235
237
|
}
|
|
236
|
-
__getStatus(
|
|
238
|
+
__getStatus(request, requestOptions) {
|
|
237
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
240
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
241
|
+
const { thread_id: threadId } = request;
|
|
239
242
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
240
243
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
241
244
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
242
|
-
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/threads/${core.url.encodePathParam(
|
|
245
|
+
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/threads/${core.url.encodePathParam(threadId)}/status`),
|
|
243
246
|
method: "GET",
|
|
244
247
|
headers: _headers,
|
|
245
248
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -298,7 +301,7 @@ class ThreadsClient {
|
|
|
298
301
|
/**
|
|
299
302
|
* Stop a running thread execution. This will stop the thread if it is currently running and mark it as cancelled.
|
|
300
303
|
*
|
|
301
|
-
* @param {
|
|
304
|
+
* @param {AthenaIntelligence.StopThreadsRequest} request
|
|
302
305
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
306
|
*
|
|
304
307
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
@@ -309,18 +312,21 @@ class ThreadsClient {
|
|
|
309
312
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
310
313
|
*
|
|
311
314
|
* @example
|
|
312
|
-
* await client.threads.stop(
|
|
315
|
+
* await client.threads.stop({
|
|
316
|
+
* thread_id: "thread_id"
|
|
317
|
+
* })
|
|
313
318
|
*/
|
|
314
|
-
stop(
|
|
315
|
-
return core.HttpResponsePromise.fromPromise(this.__stop(
|
|
319
|
+
stop(request, requestOptions) {
|
|
320
|
+
return core.HttpResponsePromise.fromPromise(this.__stop(request, requestOptions));
|
|
316
321
|
}
|
|
317
|
-
__stop(
|
|
322
|
+
__stop(request, requestOptions) {
|
|
318
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
324
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
325
|
+
const { thread_id: threadId } = request;
|
|
320
326
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
321
327
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
322
328
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
323
|
-
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/threads/${core.url.encodePathParam(
|
|
329
|
+
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/threads/${core.url.encodePathParam(threadId)}/stop`),
|
|
324
330
|
method: "POST",
|
|
325
331
|
headers: _headers,
|
|
326
332
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -26,6 +26,16 @@ export declare class ToolsClient {
|
|
|
26
26
|
get sheets(): SheetsClient;
|
|
27
27
|
get structuredDataExtractor(): StructuredDataExtractorClient;
|
|
28
28
|
get tasks(): TasksClient;
|
|
29
|
+
/**
|
|
30
|
+
* List the read_asset capabilities for every supported asset type: available output formats, the default format, accepted and preferred anchors, and the pagination protocol. Static metadata; no asset access required.
|
|
31
|
+
*
|
|
32
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.tools.getAssetCapabilities()
|
|
36
|
+
*/
|
|
37
|
+
getAssetCapabilities(requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetCapabilitiesResponseOut>;
|
|
38
|
+
private __getAssetCapabilities;
|
|
29
39
|
/**
|
|
30
40
|
* Get the chunks of a file.
|
|
31
41
|
*
|
|
@@ -46,7 +56,7 @@ export declare class ToolsClient {
|
|
|
46
56
|
/**
|
|
47
57
|
* Get the content of an asset.
|
|
48
58
|
*
|
|
49
|
-
* @param {AthenaIntelligence.
|
|
59
|
+
* @param {AthenaIntelligence.GetAssetContentToolsRequest} request
|
|
50
60
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
61
|
*
|
|
52
62
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -58,12 +68,28 @@ export declare class ToolsClient {
|
|
|
58
68
|
* asset_id: "asset_id"
|
|
59
69
|
* })
|
|
60
70
|
*/
|
|
61
|
-
getAssetContent(request: AthenaIntelligence.
|
|
71
|
+
getAssetContent(request: AthenaIntelligence.GetAssetContentToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetContentRequestOut>;
|
|
62
72
|
private __getAssetContent;
|
|
73
|
+
/**
|
|
74
|
+
* Read one or more assets with citation-style anchors, output format selection (text/json/image), and pagination. Each result discloses the asset type's read capabilities and returns a structured teaching error when a read fails. Mirrors the agent's read_asset tool.
|
|
75
|
+
*
|
|
76
|
+
* @param {AthenaIntelligence.AssetReadRequestIn} request
|
|
77
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
80
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.tools.readAsset({
|
|
84
|
+
* asset_ids: ["asset_9249292-d118-42d3-95b4-00eccfe0754f?anchor=page&page=1&format=text"]
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
readAsset(request: AthenaIntelligence.AssetReadRequestIn, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetReadResponseOut>;
|
|
88
|
+
private __readAsset;
|
|
63
89
|
/**
|
|
64
90
|
* Get a screenshot of a specific page from an asset.
|
|
65
91
|
*
|
|
66
|
-
* @param {AthenaIntelligence.
|
|
92
|
+
* @param {AthenaIntelligence.GetAssetScreenshotToolsRequest} request
|
|
67
93
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
94
|
*
|
|
69
95
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -73,16 +99,15 @@ export declare class ToolsClient {
|
|
|
73
99
|
*
|
|
74
100
|
* @example
|
|
75
101
|
* await client.tools.getAssetScreenshot({
|
|
76
|
-
* asset_id: "asset_id"
|
|
77
|
-
* page_number: 1
|
|
102
|
+
* asset_id: "asset_id"
|
|
78
103
|
* })
|
|
79
104
|
*/
|
|
80
|
-
getAssetScreenshot(request: AthenaIntelligence.
|
|
105
|
+
getAssetScreenshot(request: AthenaIntelligence.GetAssetScreenshotToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetScreenshotResponseOut>;
|
|
81
106
|
private __getAssetScreenshot;
|
|
82
107
|
/**
|
|
83
108
|
* List contents of an asset (Folder, Collection, Project) or entire workspace in a tree structure.
|
|
84
109
|
*
|
|
85
|
-
* @param {AthenaIntelligence.
|
|
110
|
+
* @param {AthenaIntelligence.ListContentsToolsRequest} request
|
|
86
111
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
112
|
*
|
|
88
113
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
@@ -91,16 +116,12 @@ export declare class ToolsClient {
|
|
|
91
116
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
92
117
|
*
|
|
93
118
|
* @example
|
|
94
|
-
* await client.tools.listContents(
|
|
95
|
-
* asset_id: "asset_id",
|
|
96
|
-
* include_asset_details: true,
|
|
97
|
-
* include_system_files: true
|
|
98
|
-
* })
|
|
119
|
+
* await client.tools.listContents()
|
|
99
120
|
*/
|
|
100
|
-
listContents(request?: AthenaIntelligence.
|
|
121
|
+
listContents(request?: AthenaIntelligence.ListContentsToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.FolderResponse>;
|
|
101
122
|
private __listContents;
|
|
102
123
|
/**
|
|
103
|
-
* @param {AthenaIntelligence.
|
|
124
|
+
* @param {AthenaIntelligence.DataFrameToolsRequest} request
|
|
104
125
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
126
|
*
|
|
106
127
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -111,23 +132,19 @@ export declare class ToolsClient {
|
|
|
111
132
|
*
|
|
112
133
|
* @example
|
|
113
134
|
* await client.tools.dataFrame({
|
|
114
|
-
* asset_id: "asset_id"
|
|
115
|
-
* row_limit: 1,
|
|
116
|
-
* index_column: 1,
|
|
117
|
-
* sheet_name: "sheet_name",
|
|
118
|
-
* separator: "separator"
|
|
135
|
+
* asset_id: "asset_id"
|
|
119
136
|
* })
|
|
120
137
|
*/
|
|
121
|
-
dataFrame(request: AthenaIntelligence.
|
|
138
|
+
dataFrame(request: AthenaIntelligence.DataFrameToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DataFrameRequestOut>;
|
|
122
139
|
private __dataFrame;
|
|
123
140
|
/**
|
|
124
|
-
*
|
|
141
|
+
* Stream an asset's raw file data. Prefer GET /api/v0/assets/{asset_id}/download for downloads: it converts native collaborative assets to their canonical Office format (documents to .docx, spreadsheets to .xlsx, presentations to .pptx), prefers original over converted bytes, sets a Content-Disposition filename, and fails with an HTTP error instead of degrading to a text summary of the asset.
|
|
125
142
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
126
143
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
127
144
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
128
145
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
129
146
|
*/
|
|
130
|
-
rawData(request: AthenaIntelligence.
|
|
147
|
+
rawData(request: AthenaIntelligence.RawDataToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
131
148
|
private __rawData;
|
|
132
149
|
/**
|
|
133
150
|
* Save a file as an asset in the user's workspace.
|
|
@@ -142,8 +159,7 @@ export declare class ToolsClient {
|
|
|
142
159
|
* @example
|
|
143
160
|
* import { createReadStream } from "fs";
|
|
144
161
|
* await client.tools.saveAsset({
|
|
145
|
-
* file: fs.createReadStream("/path/to/your/file")
|
|
146
|
-
* parent_folder_id: "parent_folder_id"
|
|
162
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
147
163
|
* })
|
|
148
164
|
*/
|
|
149
165
|
saveAsset(request: AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SaveAssetRequestOut>;
|
|
@@ -80,6 +80,68 @@ class ToolsClient {
|
|
|
80
80
|
var _a;
|
|
81
81
|
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_5.TasksClient(this._options)));
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* List the read_asset capabilities for every supported asset type: available output formats, the default format, accepted and preferred anchors, and the pagination protocol. Static metadata; no asset access required.
|
|
85
|
+
*
|
|
86
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.tools.getAssetCapabilities()
|
|
90
|
+
*/
|
|
91
|
+
getAssetCapabilities(requestOptions) {
|
|
92
|
+
return core.HttpResponsePromise.fromPromise(this.__getAssetCapabilities(requestOptions));
|
|
93
|
+
}
|
|
94
|
+
__getAssetCapabilities(requestOptions) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
97
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
99
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
|
+
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/capabilities"),
|
|
101
|
+
method: "GET",
|
|
102
|
+
headers: _headers,
|
|
103
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
104
|
+
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,
|
|
105
|
+
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,
|
|
106
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
107
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
108
|
+
logging: this._options.logging,
|
|
109
|
+
});
|
|
110
|
+
if (_response.ok) {
|
|
111
|
+
return {
|
|
112
|
+
data: _response.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
throw new errors.AthenaIntelligenceError({
|
|
118
|
+
statusCode: _response.error.statusCode,
|
|
119
|
+
body: _response.error.body,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
switch (_response.error.reason) {
|
|
124
|
+
case "non-json":
|
|
125
|
+
throw new errors.AthenaIntelligenceError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.rawBody,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
case "body-is-null":
|
|
131
|
+
throw new errors.AthenaIntelligenceError({
|
|
132
|
+
statusCode: _response.error.statusCode,
|
|
133
|
+
rawResponse: _response.rawResponse,
|
|
134
|
+
});
|
|
135
|
+
case "timeout":
|
|
136
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/asset/capabilities.");
|
|
137
|
+
case "unknown":
|
|
138
|
+
throw new errors.AthenaIntelligenceError({
|
|
139
|
+
message: _response.error.errorMessage,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
83
145
|
/**
|
|
84
146
|
* Get the chunks of a file.
|
|
85
147
|
*
|
|
@@ -161,7 +223,7 @@ class ToolsClient {
|
|
|
161
223
|
/**
|
|
162
224
|
* Get the content of an asset.
|
|
163
225
|
*
|
|
164
|
-
* @param {AthenaIntelligence.
|
|
226
|
+
* @param {AthenaIntelligence.GetAssetContentToolsRequest} request
|
|
165
227
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
228
|
*
|
|
167
229
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -179,9 +241,12 @@ class ToolsClient {
|
|
|
179
241
|
__getAssetContent(request, requestOptions) {
|
|
180
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
243
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
182
|
-
const { asset_id: assetId } = request;
|
|
244
|
+
const { asset_id: assetId, include_comments: includeComments } = request;
|
|
183
245
|
const _queryParams = {};
|
|
184
246
|
_queryParams.asset_id = assetId;
|
|
247
|
+
if (includeComments != null) {
|
|
248
|
+
_queryParams.include_comments = includeComments.toString();
|
|
249
|
+
}
|
|
185
250
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
186
251
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
187
252
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -239,10 +304,88 @@ class ToolsClient {
|
|
|
239
304
|
}
|
|
240
305
|
});
|
|
241
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Read one or more assets with citation-style anchors, output format selection (text/json/image), and pagination. Each result discloses the asset type's read capabilities and returns a structured teaching error when a read fails. Mirrors the agent's read_asset tool.
|
|
309
|
+
*
|
|
310
|
+
* @param {AthenaIntelligence.AssetReadRequestIn} request
|
|
311
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
312
|
+
*
|
|
313
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
314
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* await client.tools.readAsset({
|
|
318
|
+
* asset_ids: ["asset_9249292-d118-42d3-95b4-00eccfe0754f?anchor=page&page=1&format=text"]
|
|
319
|
+
* })
|
|
320
|
+
*/
|
|
321
|
+
readAsset(request, requestOptions) {
|
|
322
|
+
return core.HttpResponsePromise.fromPromise(this.__readAsset(request, requestOptions));
|
|
323
|
+
}
|
|
324
|
+
__readAsset(request, requestOptions) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
327
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
328
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
329
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
330
|
+
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/read"),
|
|
331
|
+
method: "POST",
|
|
332
|
+
headers: _headers,
|
|
333
|
+
contentType: "application/json",
|
|
334
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
335
|
+
requestType: "json",
|
|
336
|
+
body: request,
|
|
337
|
+
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,
|
|
338
|
+
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,
|
|
339
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
340
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
341
|
+
logging: this._options.logging,
|
|
342
|
+
});
|
|
343
|
+
if (_response.ok) {
|
|
344
|
+
return {
|
|
345
|
+
data: _response.body,
|
|
346
|
+
rawResponse: _response.rawResponse,
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
if (_response.error.reason === "status-code") {
|
|
350
|
+
switch (_response.error.statusCode) {
|
|
351
|
+
case 401:
|
|
352
|
+
throw new AthenaIntelligence.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
353
|
+
case 422:
|
|
354
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
355
|
+
default:
|
|
356
|
+
throw new errors.AthenaIntelligenceError({
|
|
357
|
+
statusCode: _response.error.statusCode,
|
|
358
|
+
body: _response.error.body,
|
|
359
|
+
rawResponse: _response.rawResponse,
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
switch (_response.error.reason) {
|
|
364
|
+
case "non-json":
|
|
365
|
+
throw new errors.AthenaIntelligenceError({
|
|
366
|
+
statusCode: _response.error.statusCode,
|
|
367
|
+
body: _response.error.rawBody,
|
|
368
|
+
rawResponse: _response.rawResponse,
|
|
369
|
+
});
|
|
370
|
+
case "body-is-null":
|
|
371
|
+
throw new errors.AthenaIntelligenceError({
|
|
372
|
+
statusCode: _response.error.statusCode,
|
|
373
|
+
rawResponse: _response.rawResponse,
|
|
374
|
+
});
|
|
375
|
+
case "timeout":
|
|
376
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/asset/read.");
|
|
377
|
+
case "unknown":
|
|
378
|
+
throw new errors.AthenaIntelligenceError({
|
|
379
|
+
message: _response.error.errorMessage,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
}
|
|
242
385
|
/**
|
|
243
386
|
* Get a screenshot of a specific page from an asset.
|
|
244
387
|
*
|
|
245
|
-
* @param {AthenaIntelligence.
|
|
388
|
+
* @param {AthenaIntelligence.GetAssetScreenshotToolsRequest} request
|
|
246
389
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
390
|
*
|
|
248
391
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -252,8 +395,7 @@ class ToolsClient {
|
|
|
252
395
|
*
|
|
253
396
|
* @example
|
|
254
397
|
* await client.tools.getAssetScreenshot({
|
|
255
|
-
* asset_id: "asset_id"
|
|
256
|
-
* page_number: 1
|
|
398
|
+
* asset_id: "asset_id"
|
|
257
399
|
* })
|
|
258
400
|
*/
|
|
259
401
|
getAssetScreenshot(request, requestOptions) {
|
|
@@ -330,7 +472,7 @@ class ToolsClient {
|
|
|
330
472
|
/**
|
|
331
473
|
* List contents of an asset (Folder, Collection, Project) or entire workspace in a tree structure.
|
|
332
474
|
*
|
|
333
|
-
* @param {AthenaIntelligence.
|
|
475
|
+
* @param {AthenaIntelligence.ListContentsToolsRequest} request
|
|
334
476
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
335
477
|
*
|
|
336
478
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
@@ -339,11 +481,7 @@ class ToolsClient {
|
|
|
339
481
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
340
482
|
*
|
|
341
483
|
* @example
|
|
342
|
-
* await client.tools.listContents(
|
|
343
|
-
* asset_id: "asset_id",
|
|
344
|
-
* include_asset_details: true,
|
|
345
|
-
* include_system_files: true
|
|
346
|
-
* })
|
|
484
|
+
* await client.tools.listContents()
|
|
347
485
|
*/
|
|
348
486
|
listContents(request = {}, requestOptions) {
|
|
349
487
|
return core.HttpResponsePromise.fromPromise(this.__listContents(request, requestOptions));
|
|
@@ -353,7 +491,7 @@ class ToolsClient {
|
|
|
353
491
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
354
492
|
const { asset_id: assetId, include_asset_details: includeAssetDetails, include_system_files: includeSystemFiles, } = request;
|
|
355
493
|
const _queryParams = {};
|
|
356
|
-
if (assetId
|
|
494
|
+
if (assetId !== undefined) {
|
|
357
495
|
_queryParams.asset_id = assetId;
|
|
358
496
|
}
|
|
359
497
|
if (includeAssetDetails != null) {
|
|
@@ -419,7 +557,7 @@ class ToolsClient {
|
|
|
419
557
|
});
|
|
420
558
|
}
|
|
421
559
|
/**
|
|
422
|
-
* @param {AthenaIntelligence.
|
|
560
|
+
* @param {AthenaIntelligence.DataFrameToolsRequest} request
|
|
423
561
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
424
562
|
*
|
|
425
563
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -430,11 +568,7 @@ class ToolsClient {
|
|
|
430
568
|
*
|
|
431
569
|
* @example
|
|
432
570
|
* await client.tools.dataFrame({
|
|
433
|
-
* asset_id: "asset_id"
|
|
434
|
-
* row_limit: 1,
|
|
435
|
-
* index_column: 1,
|
|
436
|
-
* sheet_name: "sheet_name",
|
|
437
|
-
* separator: "separator"
|
|
571
|
+
* asset_id: "asset_id"
|
|
438
572
|
* })
|
|
439
573
|
*/
|
|
440
574
|
dataFrame(request, requestOptions) {
|
|
@@ -442,41 +576,36 @@ class ToolsClient {
|
|
|
442
576
|
}
|
|
443
577
|
__dataFrame(request, requestOptions) {
|
|
444
578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
579
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
446
580
|
const { asset_id: assetId, row_limit: rowLimit, index_column: indexColumn, columns, sheet_name: sheetName, separator, } = request;
|
|
447
581
|
const _queryParams = {};
|
|
448
582
|
_queryParams.asset_id = assetId;
|
|
449
|
-
if (rowLimit
|
|
450
|
-
_queryParams.row_limit = rowLimit.toString();
|
|
583
|
+
if (rowLimit !== undefined) {
|
|
584
|
+
_queryParams.row_limit = (_a = rowLimit === null || rowLimit === void 0 ? void 0 : rowLimit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
451
585
|
}
|
|
452
|
-
if (indexColumn
|
|
453
|
-
_queryParams.index_column = indexColumn.toString();
|
|
586
|
+
if (indexColumn !== undefined) {
|
|
587
|
+
_queryParams.index_column = (_b = indexColumn === null || indexColumn === void 0 ? void 0 : indexColumn.toString()) !== null && _b !== void 0 ? _b : null;
|
|
454
588
|
}
|
|
455
|
-
if (columns
|
|
456
|
-
|
|
457
|
-
_queryParams.columns = columns.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)));
|
|
458
|
-
}
|
|
459
|
-
else {
|
|
460
|
-
_queryParams.columns = typeof columns === "string" ? columns : (0, json_js_1.toJson)(columns);
|
|
461
|
-
}
|
|
589
|
+
if (columns !== undefined) {
|
|
590
|
+
_queryParams.columns = (0, json_js_1.toJson)(columns);
|
|
462
591
|
}
|
|
463
|
-
if (sheetName
|
|
464
|
-
_queryParams.sheet_name = sheetName;
|
|
592
|
+
if (sheetName !== undefined) {
|
|
593
|
+
_queryParams.sheet_name = typeof sheetName === "string" ? sheetName : (0, json_js_1.toJson)(sheetName);
|
|
465
594
|
}
|
|
466
|
-
if (separator
|
|
595
|
+
if (separator !== undefined) {
|
|
467
596
|
_queryParams.separator = separator;
|
|
468
597
|
}
|
|
469
598
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
470
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (
|
|
471
|
-
const _response = yield ((
|
|
472
|
-
url: core.url.join((
|
|
599
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
600
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
601
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/file/data-frame"),
|
|
473
602
|
method: "GET",
|
|
474
603
|
headers: _headers,
|
|
475
604
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
476
|
-
timeoutMs: ((
|
|
477
|
-
maxRetries: (
|
|
605
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
606
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
478
607
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
479
|
-
fetchFn: (
|
|
608
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
480
609
|
logging: this._options.logging,
|
|
481
610
|
});
|
|
482
611
|
if (_response.ok) {
|
|
@@ -528,7 +657,7 @@ class ToolsClient {
|
|
|
528
657
|
});
|
|
529
658
|
}
|
|
530
659
|
/**
|
|
531
|
-
*
|
|
660
|
+
* Stream an asset's raw file data. Prefer GET /api/v0/assets/{asset_id}/download for downloads: it converts native collaborative assets to their canonical Office format (documents to .docx, spreadsheets to .xlsx, presentations to .pptx), prefers original over converted bytes, sets a Content-Disposition filename, and fails with an HTTP error instead of degrading to a text summary of the asset.
|
|
532
661
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
533
662
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
534
663
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -613,8 +742,7 @@ class ToolsClient {
|
|
|
613
742
|
* @example
|
|
614
743
|
* import { createReadStream } from "fs";
|
|
615
744
|
* await client.tools.saveAsset({
|
|
616
|
-
* file: fs.createReadStream("/path/to/your/file")
|
|
617
|
-
* parent_folder_id: "parent_folder_id"
|
|
745
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
618
746
|
* })
|
|
619
747
|
*/
|
|
620
748
|
saveAsset(request, requestOptions) {
|
|
@@ -624,7 +752,7 @@ class ToolsClient {
|
|
|
624
752
|
return __awaiter(this, void 0, void 0, function* () {
|
|
625
753
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
626
754
|
const _queryParams = {};
|
|
627
|
-
if (request.parent_folder_id
|
|
755
|
+
if (request.parent_folder_id !== undefined) {
|
|
628
756
|
_queryParams.parent_folder_id = request.parent_folder_id;
|
|
629
757
|
}
|
|
630
758
|
const _request = yield core.newFormData();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* asset_ids: ["asset_9249292-d118-42d3-95b4-00eccfe0754f?anchor=page&page=1&format=text"]
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface AssetReadRequestIn {
|
|
8
|
+
/** 1-10 asset identifiers to read. Each id may carry inline read options using citation-style query syntax, e.g. 'asset_xxx?anchor=page&page=3&format=image'. Versioned ('asset_xxx@version') and live ('asset_xxx_providerId') ids are supported. */
|
|
9
|
+
asset_ids: string[];
|
|
10
|
+
/** Optional password for reading password-protected Office files. Applied to every asset in the request. */
|
|
11
|
+
password?: string | null;
|
|
12
|
+
}
|
package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts
CHANGED
|
@@ -2,12 +2,11 @@ import type * as core from "../../../../../core/index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
-
* parent_folder_id: "parent_folder_id"
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
7
6
|
* }
|
|
8
7
|
*/
|
|
9
8
|
export interface BodySaveAssetApiV0ToolsFileSavePost {
|
|
10
9
|
/** Identifier of the folder into which the asset should be saved */
|
|
11
|
-
parent_folder_id?: string;
|
|
10
|
+
parent_folder_id?: string | null;
|
|
12
11
|
file: core.file.Uploadable;
|
|
13
12
|
}
|