@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
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.AssetsClient = void 0;
|
|
47
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
@@ -57,18 +68,13 @@ class AssetsClient {
|
|
|
57
68
|
/**
|
|
58
69
|
* Retrieve a paginated list of assets with optional filtering and sorting. Assets include documents, presentations, spreadsheets, images, videos, and other file types managed by Athena Intelligence.
|
|
59
70
|
*
|
|
60
|
-
* @param {AthenaIntelligence.
|
|
71
|
+
* @param {AthenaIntelligence.ListAssetsRequest} request
|
|
61
72
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
73
|
*
|
|
63
74
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
64
75
|
*
|
|
65
76
|
* @example
|
|
66
|
-
* await client.assets.list(
|
|
67
|
-
* limit: 1,
|
|
68
|
-
* offset: 1,
|
|
69
|
-
* filters: "filters",
|
|
70
|
-
* sort: "sort"
|
|
71
|
-
* })
|
|
77
|
+
* await client.assets.list()
|
|
72
78
|
*/
|
|
73
79
|
list(request = {}, requestOptions) {
|
|
74
80
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -76,7 +82,7 @@ class AssetsClient {
|
|
|
76
82
|
__list() {
|
|
77
83
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
78
84
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
|
-
const { limit, offset, filters, sort } = request;
|
|
85
|
+
const { limit, offset, filters, sort, workspace_id: workspaceId } = request;
|
|
80
86
|
const _queryParams = {};
|
|
81
87
|
if (limit != null) {
|
|
82
88
|
_queryParams.limit = limit.toString();
|
|
@@ -84,12 +90,15 @@ class AssetsClient {
|
|
|
84
90
|
if (offset != null) {
|
|
85
91
|
_queryParams.offset = offset.toString();
|
|
86
92
|
}
|
|
87
|
-
if (filters
|
|
93
|
+
if (filters !== undefined) {
|
|
88
94
|
_queryParams.filters = filters;
|
|
89
95
|
}
|
|
90
|
-
if (sort
|
|
96
|
+
if (sort !== undefined) {
|
|
91
97
|
_queryParams.sort = sort;
|
|
92
98
|
}
|
|
99
|
+
if (workspaceId !== undefined) {
|
|
100
|
+
_queryParams.workspace_id = workspaceId;
|
|
101
|
+
}
|
|
93
102
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
94
103
|
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);
|
|
95
104
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -144,14 +153,16 @@ class AssetsClient {
|
|
|
144
153
|
});
|
|
145
154
|
}
|
|
146
155
|
/**
|
|
147
|
-
* Create a new asset such as a spreadsheet, document, or
|
|
156
|
+
* Create a new asset such as a spreadsheet, document, folder, database, or computer in your workspace. This endpoint uses internal GraphQL mutations to create assets with proper permissions and workspace integration. Computer assets return 202 after the initializing asset is committed; runtime provisioning continues asynchronously.
|
|
148
157
|
*
|
|
149
158
|
* @param {AthenaIntelligence.CreateAssetRequestIn} request
|
|
150
159
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
160
|
*
|
|
152
161
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
162
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
153
163
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
154
164
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
165
|
+
* @throws {@link AthenaIntelligence.ServiceUnavailableError}
|
|
155
166
|
*
|
|
156
167
|
* @example
|
|
157
168
|
* await client.assets.create({
|
|
@@ -192,10 +203,14 @@ class AssetsClient {
|
|
|
192
203
|
switch (_response.error.statusCode) {
|
|
193
204
|
case 400:
|
|
194
205
|
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
206
|
+
case 403:
|
|
207
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
195
208
|
case 422:
|
|
196
209
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
197
210
|
case 500:
|
|
198
211
|
throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
|
|
212
|
+
case 503:
|
|
213
|
+
throw new AthenaIntelligence.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
199
214
|
default:
|
|
200
215
|
throw new errors.AthenaIntelligenceError({
|
|
201
216
|
statusCode: _response.error.statusCode,
|
|
@@ -318,10 +333,99 @@ class AssetsClient {
|
|
|
318
333
|
}
|
|
319
334
|
});
|
|
320
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* Duplicate an asset using the same duplication service used by the Athena UI. Optionally target a workspace and/or destination folder.
|
|
338
|
+
*
|
|
339
|
+
* @param {AthenaIntelligence.DuplicateAssetRequestIn} request
|
|
340
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
341
|
+
*
|
|
342
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
343
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
344
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
345
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
346
|
+
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* await client.assets.duplicate({
|
|
350
|
+
* parent_folder_id: "asset_folder_12345",
|
|
351
|
+
* source_asset_id: "asset_92492920-d118-42d3-95b4-00eccfe0754f",
|
|
352
|
+
* workspace_id: "workspace_abc123"
|
|
353
|
+
* })
|
|
354
|
+
*/
|
|
355
|
+
duplicate(request, requestOptions) {
|
|
356
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicate(request, requestOptions));
|
|
357
|
+
}
|
|
358
|
+
__duplicate(request, requestOptions) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
361
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
362
|
+
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);
|
|
363
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
364
|
+
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/assets/duplicate"),
|
|
365
|
+
method: "POST",
|
|
366
|
+
headers: _headers,
|
|
367
|
+
contentType: "application/json",
|
|
368
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
369
|
+
requestType: "json",
|
|
370
|
+
body: request,
|
|
371
|
+
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,
|
|
372
|
+
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,
|
|
373
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
374
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
375
|
+
logging: this._options.logging,
|
|
376
|
+
});
|
|
377
|
+
if (_response.ok) {
|
|
378
|
+
return {
|
|
379
|
+
data: _response.body,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
if (_response.error.reason === "status-code") {
|
|
384
|
+
switch (_response.error.statusCode) {
|
|
385
|
+
case 400:
|
|
386
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
387
|
+
case 403:
|
|
388
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
389
|
+
case 404:
|
|
390
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
391
|
+
case 422:
|
|
392
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
393
|
+
case 500:
|
|
394
|
+
throw new AthenaIntelligence.InternalServerError(_response.error.body, _response.rawResponse);
|
|
395
|
+
default:
|
|
396
|
+
throw new errors.AthenaIntelligenceError({
|
|
397
|
+
statusCode: _response.error.statusCode,
|
|
398
|
+
body: _response.error.body,
|
|
399
|
+
rawResponse: _response.rawResponse,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
switch (_response.error.reason) {
|
|
404
|
+
case "non-json":
|
|
405
|
+
throw new errors.AthenaIntelligenceError({
|
|
406
|
+
statusCode: _response.error.statusCode,
|
|
407
|
+
body: _response.error.rawBody,
|
|
408
|
+
rawResponse: _response.rawResponse,
|
|
409
|
+
});
|
|
410
|
+
case "body-is-null":
|
|
411
|
+
throw new errors.AthenaIntelligenceError({
|
|
412
|
+
statusCode: _response.error.statusCode,
|
|
413
|
+
rawResponse: _response.rawResponse,
|
|
414
|
+
});
|
|
415
|
+
case "timeout":
|
|
416
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/duplicate.");
|
|
417
|
+
case "unknown":
|
|
418
|
+
throw new errors.AthenaIntelligenceError({
|
|
419
|
+
message: _response.error.errorMessage,
|
|
420
|
+
rawResponse: _response.rawResponse,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
321
425
|
/**
|
|
322
426
|
* Retrieve a single asset by its ID. Returns comprehensive metadata including creation info, tags, timestamps, media type, and AI-generated summary.
|
|
323
427
|
*
|
|
324
|
-
* @param {
|
|
428
|
+
* @param {AthenaIntelligence.GetAssetsRequest} request
|
|
325
429
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
326
430
|
*
|
|
327
431
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -329,18 +433,21 @@ class AssetsClient {
|
|
|
329
433
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
330
434
|
*
|
|
331
435
|
* @example
|
|
332
|
-
* await client.assets.get(
|
|
436
|
+
* await client.assets.get({
|
|
437
|
+
* asset_id: "asset_id"
|
|
438
|
+
* })
|
|
333
439
|
*/
|
|
334
|
-
get(
|
|
335
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
440
|
+
get(request, requestOptions) {
|
|
441
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
336
442
|
}
|
|
337
|
-
__get(
|
|
443
|
+
__get(request, requestOptions) {
|
|
338
444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
339
445
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
446
|
+
const { asset_id: assetId } = request;
|
|
340
447
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
341
448
|
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);
|
|
342
449
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
343
|
-
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/assets/${core.url.encodePathParam(
|
|
450
|
+
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/assets/${core.url.encodePathParam(assetId)}`),
|
|
344
451
|
method: "GET",
|
|
345
452
|
headers: _headers,
|
|
346
453
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -394,7 +501,7 @@ class AssetsClient {
|
|
|
394
501
|
/**
|
|
395
502
|
* Archive an asset by its ID. The asset will be hidden from active listings (e.g. GET /assets with default filters) but can still be retrieved directly by ID. For folders, all children are also archived recursively. For meetings, associated sub-assets (recordings, transcripts) are archived as well. Only the creator of the asset can archive it.
|
|
396
503
|
*
|
|
397
|
-
* @param {
|
|
504
|
+
* @param {AthenaIntelligence.ArchiveAssetsRequest} request
|
|
398
505
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
399
506
|
*
|
|
400
507
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
@@ -402,18 +509,21 @@ class AssetsClient {
|
|
|
402
509
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
403
510
|
*
|
|
404
511
|
* @example
|
|
405
|
-
* await client.assets.archive(
|
|
512
|
+
* await client.assets.archive({
|
|
513
|
+
* asset_id: "asset_id"
|
|
514
|
+
* })
|
|
406
515
|
*/
|
|
407
|
-
archive(
|
|
408
|
-
return core.HttpResponsePromise.fromPromise(this.__archive(
|
|
516
|
+
archive(request, requestOptions) {
|
|
517
|
+
return core.HttpResponsePromise.fromPromise(this.__archive(request, requestOptions));
|
|
409
518
|
}
|
|
410
|
-
__archive(
|
|
519
|
+
__archive(request, requestOptions) {
|
|
411
520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
412
521
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
522
|
+
const { asset_id: assetId } = request;
|
|
413
523
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
414
524
|
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);
|
|
415
525
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
416
|
-
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/assets/${core.url.encodePathParam(
|
|
526
|
+
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/assets/${core.url.encodePathParam(assetId)}/archive`),
|
|
417
527
|
method: "POST",
|
|
418
528
|
headers: _headers,
|
|
419
529
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -467,5 +577,336 @@ class AssetsClient {
|
|
|
467
577
|
}
|
|
468
578
|
});
|
|
469
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* Download an asset's file exactly as Athena stores or serves it — no type coercion, no pagination. Native collaborative assets are converted from live content to their canonical Office format: Athena documents download as .docx, spreadsheets as .xlsx (round-trip faithful — string identifiers, leading zeros, and number formats are preserved), PPTX Studio presentations and Word documents export their live studio content as .pptx/.docx. Uploaded files stream their original bytes. The response sets Content-Disposition with a filename derived from the asset title and media type.
|
|
582
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
583
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
584
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
585
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
586
|
+
*/
|
|
587
|
+
download(request, requestOptions) {
|
|
588
|
+
return core.HttpResponsePromise.fromPromise(this.__download(request, requestOptions));
|
|
589
|
+
}
|
|
590
|
+
__download(request, requestOptions) {
|
|
591
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
592
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
593
|
+
const { asset_id: assetId } = request;
|
|
594
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
595
|
+
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);
|
|
596
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
597
|
+
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/assets/${core.url.encodePathParam(assetId)}/download`),
|
|
598
|
+
method: "GET",
|
|
599
|
+
headers: _headers,
|
|
600
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
601
|
+
responseType: "binary-response",
|
|
602
|
+
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,
|
|
603
|
+
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,
|
|
604
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
605
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
606
|
+
logging: this._options.logging,
|
|
607
|
+
});
|
|
608
|
+
if (_response.ok) {
|
|
609
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
610
|
+
}
|
|
611
|
+
if (_response.error.reason === "status-code") {
|
|
612
|
+
switch (_response.error.statusCode) {
|
|
613
|
+
case 400:
|
|
614
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
615
|
+
case 403:
|
|
616
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
617
|
+
case 404:
|
|
618
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
619
|
+
case 422:
|
|
620
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
621
|
+
default:
|
|
622
|
+
throw new errors.AthenaIntelligenceError({
|
|
623
|
+
statusCode: _response.error.statusCode,
|
|
624
|
+
body: _response.error.body,
|
|
625
|
+
rawResponse: _response.rawResponse,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
switch (_response.error.reason) {
|
|
630
|
+
case "non-json":
|
|
631
|
+
throw new errors.AthenaIntelligenceError({
|
|
632
|
+
statusCode: _response.error.statusCode,
|
|
633
|
+
body: _response.error.rawBody,
|
|
634
|
+
rawResponse: _response.rawResponse,
|
|
635
|
+
});
|
|
636
|
+
case "body-is-null":
|
|
637
|
+
throw new errors.AthenaIntelligenceError({
|
|
638
|
+
statusCode: _response.error.statusCode,
|
|
639
|
+
rawResponse: _response.rawResponse,
|
|
640
|
+
});
|
|
641
|
+
case "timeout":
|
|
642
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/assets/{asset_id}/download.");
|
|
643
|
+
case "unknown":
|
|
644
|
+
throw new errors.AthenaIntelligenceError({
|
|
645
|
+
message: _response.error.errorMessage,
|
|
646
|
+
rawResponse: _response.rawResponse,
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Move an asset into a folder or to the workspace root. The asset ID determines the workspace used for authorization; parent_folder_id must belong to the same workspace.
|
|
653
|
+
*
|
|
654
|
+
* @param {AthenaIntelligence.MoveAssetRequestIn} request
|
|
655
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
656
|
+
*
|
|
657
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
658
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
659
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
660
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
661
|
+
*
|
|
662
|
+
* @example
|
|
663
|
+
* await client.assets.move({
|
|
664
|
+
* asset_id: "asset_id",
|
|
665
|
+
* parent_folder_id: "asset_folder_12345"
|
|
666
|
+
* })
|
|
667
|
+
*/
|
|
668
|
+
move(request, requestOptions) {
|
|
669
|
+
return core.HttpResponsePromise.fromPromise(this.__move(request, requestOptions));
|
|
670
|
+
}
|
|
671
|
+
__move(request, requestOptions) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
674
|
+
const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
|
|
675
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
676
|
+
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);
|
|
677
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
678
|
+
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/assets/${core.url.encodePathParam(assetId)}/move`),
|
|
679
|
+
method: "POST",
|
|
680
|
+
headers: _headers,
|
|
681
|
+
contentType: "application/json",
|
|
682
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
683
|
+
requestType: "json",
|
|
684
|
+
body: _body,
|
|
685
|
+
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,
|
|
686
|
+
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,
|
|
687
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
688
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
689
|
+
logging: this._options.logging,
|
|
690
|
+
});
|
|
691
|
+
if (_response.ok) {
|
|
692
|
+
return {
|
|
693
|
+
data: _response.body,
|
|
694
|
+
rawResponse: _response.rawResponse,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
if (_response.error.reason === "status-code") {
|
|
698
|
+
switch (_response.error.statusCode) {
|
|
699
|
+
case 400:
|
|
700
|
+
throw new AthenaIntelligence.BadRequestError(_response.error.body, _response.rawResponse);
|
|
701
|
+
case 403:
|
|
702
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
703
|
+
case 404:
|
|
704
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
705
|
+
case 422:
|
|
706
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
707
|
+
default:
|
|
708
|
+
throw new errors.AthenaIntelligenceError({
|
|
709
|
+
statusCode: _response.error.statusCode,
|
|
710
|
+
body: _response.error.body,
|
|
711
|
+
rawResponse: _response.rawResponse,
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
switch (_response.error.reason) {
|
|
716
|
+
case "non-json":
|
|
717
|
+
throw new errors.AthenaIntelligenceError({
|
|
718
|
+
statusCode: _response.error.statusCode,
|
|
719
|
+
body: _response.error.rawBody,
|
|
720
|
+
rawResponse: _response.rawResponse,
|
|
721
|
+
});
|
|
722
|
+
case "body-is-null":
|
|
723
|
+
throw new errors.AthenaIntelligenceError({
|
|
724
|
+
statusCode: _response.error.statusCode,
|
|
725
|
+
rawResponse: _response.rawResponse,
|
|
726
|
+
});
|
|
727
|
+
case "timeout":
|
|
728
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/{asset_id}/move.");
|
|
729
|
+
case "unknown":
|
|
730
|
+
throw new errors.AthenaIntelligenceError({
|
|
731
|
+
message: _response.error.errorMessage,
|
|
732
|
+
rawResponse: _response.rawResponse,
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Share an asset with specific users by email. Only users who have edit access to the asset can share it. You can share with individual users (granting 'view' or 'edit' permission). Sharing with a user who does not have an account will result in an error for that recipient, but other recipients will still be processed.
|
|
739
|
+
*
|
|
740
|
+
* @param {AthenaIntelligence.ShareAssetRequestIn} request
|
|
741
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
742
|
+
*
|
|
743
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
744
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
745
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
746
|
+
*
|
|
747
|
+
* @example
|
|
748
|
+
* await client.assets.share({
|
|
749
|
+
* asset_id: "asset_id",
|
|
750
|
+
* message: "Here's the document we discussed.",
|
|
751
|
+
* notify: true,
|
|
752
|
+
* recipients: [{
|
|
753
|
+
* email: "colleague@example.com",
|
|
754
|
+
* permission: "edit"
|
|
755
|
+
* }, {
|
|
756
|
+
* email: "reviewer@example.com",
|
|
757
|
+
* permission: "view"
|
|
758
|
+
* }]
|
|
759
|
+
* })
|
|
760
|
+
*/
|
|
761
|
+
share(request, requestOptions) {
|
|
762
|
+
return core.HttpResponsePromise.fromPromise(this.__share(request, requestOptions));
|
|
763
|
+
}
|
|
764
|
+
__share(request, requestOptions) {
|
|
765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
766
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
767
|
+
const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
|
|
768
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
769
|
+
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);
|
|
770
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
771
|
+
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/assets/${core.url.encodePathParam(assetId)}/share`),
|
|
772
|
+
method: "POST",
|
|
773
|
+
headers: _headers,
|
|
774
|
+
contentType: "application/json",
|
|
775
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
776
|
+
requestType: "json",
|
|
777
|
+
body: _body,
|
|
778
|
+
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,
|
|
779
|
+
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,
|
|
780
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
781
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
782
|
+
logging: this._options.logging,
|
|
783
|
+
});
|
|
784
|
+
if (_response.ok) {
|
|
785
|
+
return {
|
|
786
|
+
data: _response.body,
|
|
787
|
+
rawResponse: _response.rawResponse,
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
if (_response.error.reason === "status-code") {
|
|
791
|
+
switch (_response.error.statusCode) {
|
|
792
|
+
case 403:
|
|
793
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
794
|
+
case 404:
|
|
795
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
796
|
+
case 422:
|
|
797
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
798
|
+
default:
|
|
799
|
+
throw new errors.AthenaIntelligenceError({
|
|
800
|
+
statusCode: _response.error.statusCode,
|
|
801
|
+
body: _response.error.body,
|
|
802
|
+
rawResponse: _response.rawResponse,
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
switch (_response.error.reason) {
|
|
807
|
+
case "non-json":
|
|
808
|
+
throw new errors.AthenaIntelligenceError({
|
|
809
|
+
statusCode: _response.error.statusCode,
|
|
810
|
+
body: _response.error.rawBody,
|
|
811
|
+
rawResponse: _response.rawResponse,
|
|
812
|
+
});
|
|
813
|
+
case "body-is-null":
|
|
814
|
+
throw new errors.AthenaIntelligenceError({
|
|
815
|
+
statusCode: _response.error.statusCode,
|
|
816
|
+
rawResponse: _response.rawResponse,
|
|
817
|
+
});
|
|
818
|
+
case "timeout":
|
|
819
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/assets/{asset_id}/share.");
|
|
820
|
+
case "unknown":
|
|
821
|
+
throw new errors.AthenaIntelligenceError({
|
|
822
|
+
message: _response.error.errorMessage,
|
|
823
|
+
rawResponse: _response.rawResponse,
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Update the workspace-level access on an asset. Only users who have edit access to the asset and permission to share with the workspace can use this endpoint. Set 'view' or 'edit' to grant workspace-wide access.
|
|
830
|
+
*
|
|
831
|
+
* @param {AthenaIntelligence.UpdateWorkspaceAccessRequestIn} request
|
|
832
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
833
|
+
*
|
|
834
|
+
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
835
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
836
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
837
|
+
*
|
|
838
|
+
* @example
|
|
839
|
+
* await client.assets.updateWorkspaceAccess({
|
|
840
|
+
* asset_id: "asset_id",
|
|
841
|
+
* workspace_access: "view"
|
|
842
|
+
* })
|
|
843
|
+
*/
|
|
844
|
+
updateWorkspaceAccess(request, requestOptions) {
|
|
845
|
+
return core.HttpResponsePromise.fromPromise(this.__updateWorkspaceAccess(request, requestOptions));
|
|
846
|
+
}
|
|
847
|
+
__updateWorkspaceAccess(request, requestOptions) {
|
|
848
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
849
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
850
|
+
const { asset_id: assetId } = request, _body = __rest(request, ["asset_id"]);
|
|
851
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
852
|
+
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);
|
|
853
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
854
|
+
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/assets/${core.url.encodePathParam(assetId)}/workspace-access`),
|
|
855
|
+
method: "PUT",
|
|
856
|
+
headers: _headers,
|
|
857
|
+
contentType: "application/json",
|
|
858
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
859
|
+
requestType: "json",
|
|
860
|
+
body: _body,
|
|
861
|
+
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,
|
|
862
|
+
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,
|
|
863
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
864
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
865
|
+
logging: this._options.logging,
|
|
866
|
+
});
|
|
867
|
+
if (_response.ok) {
|
|
868
|
+
return {
|
|
869
|
+
data: _response.body,
|
|
870
|
+
rawResponse: _response.rawResponse,
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
if (_response.error.reason === "status-code") {
|
|
874
|
+
switch (_response.error.statusCode) {
|
|
875
|
+
case 403:
|
|
876
|
+
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
877
|
+
case 404:
|
|
878
|
+
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
879
|
+
case 422:
|
|
880
|
+
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
881
|
+
default:
|
|
882
|
+
throw new errors.AthenaIntelligenceError({
|
|
883
|
+
statusCode: _response.error.statusCode,
|
|
884
|
+
body: _response.error.body,
|
|
885
|
+
rawResponse: _response.rawResponse,
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
switch (_response.error.reason) {
|
|
890
|
+
case "non-json":
|
|
891
|
+
throw new errors.AthenaIntelligenceError({
|
|
892
|
+
statusCode: _response.error.statusCode,
|
|
893
|
+
body: _response.error.rawBody,
|
|
894
|
+
rawResponse: _response.rawResponse,
|
|
895
|
+
});
|
|
896
|
+
case "body-is-null":
|
|
897
|
+
throw new errors.AthenaIntelligenceError({
|
|
898
|
+
statusCode: _response.error.statusCode,
|
|
899
|
+
rawResponse: _response.rawResponse,
|
|
900
|
+
});
|
|
901
|
+
case "timeout":
|
|
902
|
+
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling PUT /api/v0/assets/{asset_id}/workspace-access.");
|
|
903
|
+
case "unknown":
|
|
904
|
+
throw new errors.AthenaIntelligenceError({
|
|
905
|
+
message: _response.error.errorMessage,
|
|
906
|
+
rawResponse: _response.rawResponse,
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
}
|
|
470
911
|
}
|
|
471
912
|
exports.AssetsClient = AssetsClient;
|
|
@@ -8,10 +8,12 @@ import type * as AthenaIntelligence from "../../../../index.js";
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateAssetRequestIn {
|
|
11
|
-
/** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder' */
|
|
11
|
+
/** Type of asset to create. Supported types: 'spreadsheet' (or 'sheet'), 'document' (or 'doc'), 'folder', 'database' (or 'db'), 'computer' */
|
|
12
12
|
asset_type: AthenaIntelligence.CreatableAssetType;
|
|
13
13
|
/** ID of the parent folder to create the asset in */
|
|
14
|
-
parent_folder_id?: string;
|
|
14
|
+
parent_folder_id?: string | null;
|
|
15
15
|
/** Title for the new asset */
|
|
16
|
-
title?: string;
|
|
16
|
+
title?: string | null;
|
|
17
|
+
/** ID of the workspace to create the asset in. If not provided, the asset is created in the user's current workspace. The user must be a member of the specified workspace. */
|
|
18
|
+
workspace_id?: string | null;
|
|
17
19
|
}
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateProjectRequestIn {
|
|
19
19
|
/** A flexible dictionary for storing custom metadata */
|
|
20
|
-
custom_metadata?: Record<string, unknown
|
|
20
|
+
custom_metadata?: Record<string, unknown> | null;
|
|
21
21
|
/** Optional project description */
|
|
22
|
-
description?: string;
|
|
22
|
+
description?: string | null;
|
|
23
23
|
/** Optional parent folder ID */
|
|
24
|
-
parent_folder_id?: string;
|
|
24
|
+
parent_folder_id?: string | null;
|
|
25
25
|
/** User-defined project type (e.g., 'candidate', 'user', 'company') */
|
|
26
|
-
project_type?: string;
|
|
26
|
+
project_type?: string | null;
|
|
27
27
|
/** Optional list of email addresses to share the project with (VIEW permission) */
|
|
28
|
-
share_with_emails?: string[];
|
|
28
|
+
share_with_emails?: string[] | null;
|
|
29
29
|
/** Optional list of tags for categorizing the project */
|
|
30
|
-
tags?: string[];
|
|
30
|
+
tags?: string[] | null;
|
|
31
31
|
/** The project title */
|
|
32
32
|
title: string;
|
|
33
33
|
}
|