@athenaintel/sdk 4.3.308 → 4.3.310
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 +117 -9
- package/dist/cjs/BaseClient.d.ts +14 -1
- package/dist/cjs/BaseClient.js +59 -0
- package/dist/cjs/Client.d.ts +24 -23
- package/dist/cjs/Client.js +10 -51
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/errors/ContentTooLargeError.d.ts +2 -2
- package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/api/errors/NotImplementedError.d.ts +1 -1
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +1 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -1
- package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +2 -2
- package/dist/cjs/api/errors/index.d.ts +5 -5
- package/dist/cjs/api/errors/index.js +5 -5
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/agents/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/agents/client/Client.js +29 -26
- package/dist/cjs/api/resources/agents/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +20 -17
- package/dist/cjs/api/resources/agents/resources/drive/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/agents/resources/general/client/Client.js +42 -23
- package/dist/cjs/api/resources/agents/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/agents/resources/index.js +6 -6
- package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/agents/resources/research/client/Client.js +20 -17
- package/dist/cjs/api/resources/agents/resources/research/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/research/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +20 -17
- package/dist/cjs/api/resources/agents/resources/sql/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/aop/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/aop/client/Client.js +31 -20
- package/dist/cjs/api/resources/assets/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/assets/client/Client.js +62 -35
- package/dist/cjs/api/resources/assets/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/assets/client/requests/CreateAssetRequestIn.d.ts +1 -1
- package/dist/cjs/api/resources/assets/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/databases/client/Client.d.ts +36 -32
- package/dist/cjs/api/resources/databases/client/Client.js +149 -81
- package/dist/cjs/api/resources/databases/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/databases/client/requests/DatabasesDeleteRequest.d.ts +15 -0
- package/dist/cjs/api/resources/databases/client/requests/DatabasesDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/databases/client/requests/UpdateDataRequest.d.ts +3 -0
- package/dist/cjs/api/resources/databases/client/requests/index.d.ts +4 -3
- package/dist/cjs/api/resources/index.d.ts +8 -8
- package/dist/cjs/api/resources/index.js +12 -12
- package/dist/cjs/api/resources/query/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/query/client/Client.js +34 -23
- package/dist/cjs/api/resources/query/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/query/client/requests/QueryExecuteRequest.d.ts +1 -1
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/query/index.d.ts +1 -1
- package/dist/cjs/api/resources/query/index.js +1 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/threads/client/Client.js +25 -22
- package/dist/cjs/api/resources/tools/client/Client.d.ts +33 -33
- package/dist/cjs/api/resources/tools/client/Client.js +106 -55
- package/dist/cjs/api/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.ts +2 -2
- package/dist/cjs/api/resources/tools/client/requests/ToolsDataFrameRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/tools/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/index.js +1 -1
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/tools/resources/calendar/client/Client.js +30 -19
- package/dist/cjs/api/resources/tools/resources/email/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/tools/resources/email/client/Client.js +41 -22
- package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/tools/resources/index.js +3 -3
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.d.ts +39 -39
- package/dist/cjs/api/resources/tools/resources/sheets/client/Client.js +196 -65
- package/dist/cjs/api/resources/tools/resources/sheets/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.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/UpdateSheetRangeRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/sheets/client/requests/index.d.ts +17 -17
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/Client.js +20 -17
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/tools/resources/tasks/client/Client.js +20 -17
- package/dist/cjs/api/resources/tools/resources/tasks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/tasks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/AopExecuteResponseOut.d.ts +1 -1
- package/dist/cjs/api/types/AssetNode.d.ts +1 -1
- package/dist/cjs/api/types/BorderModel.d.ts +1 -1
- package/dist/cjs/api/types/BordersModel.d.ts +1 -1
- package/dist/cjs/api/types/CellFormat.d.ts +1 -1
- package/dist/cjs/api/types/Chunk.d.ts +1 -1
- package/dist/cjs/api/types/ChunkContentItem.d.ts +1 -1
- package/dist/cjs/api/types/ConversationAssetInfo.d.ts +1 -1
- package/dist/cjs/api/types/ConversationMessage.d.ts +1 -1
- package/dist/cjs/api/types/ConversationResult.d.ts +1 -1
- package/dist/cjs/api/types/DatabaseTableSchemaResponse.d.ts +1 -1
- package/dist/cjs/api/types/DatabaseTablesResponse.d.ts +1 -1
- package/dist/cjs/api/types/FolderResponse.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentRequest.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentResponse.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentResponseMessage.d.ts +1 -1
- package/dist/cjs/api/types/GeneralAgentResponseMessageKwargs.d.ts +1 -1
- package/dist/cjs/api/types/InputMessage.d.ts +1 -1
- package/dist/cjs/api/types/InputMessageContentItem.d.ts +1 -1
- package/dist/cjs/api/types/NumberFormatModel.d.ts +1 -1
- package/dist/cjs/api/types/PaginatedAssetsOut.d.ts +1 -1
- package/dist/cjs/api/types/Sheet.d.ts +1 -1
- package/dist/cjs/api/types/StructuredDataExtractorResponse.d.ts +1 -1
- package/dist/cjs/api/types/TextFormatModel.d.ts +1 -1
- package/dist/cjs/api/types/ThreadStatusResponseOut.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +5 -5
- package/dist/cjs/api/types/index.js +5 -5
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -0
- package/dist/cjs/auth/HeaderAuthProvider.js +71 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +1 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -2
- package/dist/cjs/core/fetcher/Fetcher.js +204 -9
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +21 -7
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/core/fetcher/requestWithRetries.js +3 -12
- package/dist/cjs/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +25 -7
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +2 -3
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +62 -85
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +5 -2
- package/dist/cjs/core/index.js +6 -3
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/runtime.js +11 -10
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/errors/AthenaIntelligenceError.d.ts +1 -1
- package/dist/cjs/errors/AthenaIntelligenceError.js +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +14 -1
- package/dist/esm/BaseClient.mjs +23 -1
- package/dist/esm/Client.d.mts +24 -23
- package/dist/esm/Client.mjs +17 -26
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/errors/ContentTooLargeError.d.mts +2 -2
- package/dist/esm/api/errors/ContentTooLargeError.mjs +0 -2
- package/dist/esm/api/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/api/errors/NotFoundError.mjs +0 -1
- package/dist/esm/api/errors/NotImplementedError.d.mts +1 -1
- package/dist/esm/api/errors/NotImplementedError.mjs +0 -1
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +1 -1
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +0 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -1
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +0 -1
- package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +2 -2
- package/dist/esm/api/errors/UnsupportedMediaTypeError.mjs +0 -2
- package/dist/esm/api/errors/index.d.mts +5 -5
- package/dist/esm/api/errors/index.mjs +5 -5
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/agents/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/agents/client/Client.mjs +31 -28
- package/dist/esm/api/resources/agents/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +18 -15
- package/dist/esm/api/resources/agents/resources/drive/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +40 -21
- package/dist/esm/api/resources/agents/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/agents/resources/index.mjs +3 -3
- package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +18 -15
- package/dist/esm/api/resources/agents/resources/research/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +18 -15
- package/dist/esm/api/resources/agents/resources/sql/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/aop/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/aop/client/Client.mjs +29 -18
- package/dist/esm/api/resources/assets/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/assets/client/Client.mjs +60 -33
- package/dist/esm/api/resources/assets/client/index.d.mts +0 -1
- package/dist/esm/api/resources/assets/client/index.mjs +0 -1
- package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.d.mts +1 -1
- package/dist/esm/api/resources/assets/client/requests/CreateAssetRequestIn.mjs +1 -1
- package/dist/esm/api/resources/assets/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/assets/client/requests/index.mjs +1 -3
- package/dist/esm/api/resources/databases/client/Client.d.mts +36 -32
- package/dist/esm/api/resources/databases/client/Client.mjs +147 -79
- package/dist/esm/api/resources/databases/client/index.d.mts +0 -1
- package/dist/esm/api/resources/databases/client/index.mjs +0 -1
- package/dist/esm/api/resources/databases/client/requests/DatabasesDeleteRequest.d.mts +15 -0
- package/dist/esm/api/resources/databases/client/requests/DatabasesDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/databases/client/requests/UpdateDataRequest.d.mts +3 -0
- package/dist/esm/api/resources/databases/client/requests/index.d.mts +4 -3
- package/dist/esm/api/resources/databases/client/requests/index.mjs +1 -3
- package/dist/esm/api/resources/index.d.mts +8 -8
- package/dist/esm/api/resources/index.mjs +8 -8
- package/dist/esm/api/resources/query/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/query/client/Client.mjs +32 -21
- package/dist/esm/api/resources/query/client/index.d.mts +0 -1
- package/dist/esm/api/resources/query/client/index.mjs +0 -1
- package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.d.mts +1 -1
- package/dist/esm/api/resources/query/client/requests/QueryExecuteRequest.mjs +1 -1
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/query/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/query/index.d.mts +1 -1
- package/dist/esm/api/resources/query/index.mjs +1 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/threads/client/Client.mjs +23 -20
- package/dist/esm/api/resources/tools/client/Client.d.mts +33 -33
- package/dist/esm/api/resources/tools/client/Client.mjs +109 -59
- package/dist/esm/api/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.d.mts +2 -2
- package/dist/esm/api/resources/tools/client/requests/BodySaveAssetApiV0ToolsFileSavePost.mjs +1 -2
- package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/client/requests/ToolsDataFrameRequest.mjs +1 -1
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -7
- package/dist/esm/api/resources/tools/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/tools/resources/calendar/client/Client.mjs +28 -17
- package/dist/esm/api/resources/tools/resources/email/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/tools/resources/email/client/Client.mjs +39 -20
- package/dist/esm/api/resources/tools/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/tools/resources/index.mjs +3 -3
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.d.mts +39 -39
- package/dist/esm/api/resources/tools/resources/sheets/client/Client.mjs +194 -63
- package/dist/esm/api/resources/tools/resources/sheets/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/CreateNewSheetTabRequest.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/FormatSheetRangeRequest.mjs +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/InsertTableRowRequest.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/UpdateSheetRangeRequest.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.d.mts +17 -17
- package/dist/esm/api/resources/tools/resources/sheets/client/requests/index.mjs +1 -17
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/Client.mjs +18 -15
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/StructuredDataExtractorRequest.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/structuredDataExtractor/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/tools/resources/tasks/client/Client.mjs +18 -15
- package/dist/esm/api/resources/tools/resources/tasks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/tasks/client/requests/index.mjs +1 -1
- package/dist/esm/api/types/AopExecuteResponseOut.d.mts +1 -1
- package/dist/esm/api/types/AopExecuteResponseOut.mjs +1 -1
- package/dist/esm/api/types/AssetNode.d.mts +1 -1
- package/dist/esm/api/types/AssetNode.mjs +1 -1
- package/dist/esm/api/types/BorderModel.d.mts +1 -1
- package/dist/esm/api/types/BorderModel.mjs +1 -1
- package/dist/esm/api/types/BordersModel.d.mts +1 -1
- package/dist/esm/api/types/BordersModel.mjs +1 -1
- package/dist/esm/api/types/CellFormat.d.mts +1 -1
- package/dist/esm/api/types/CellFormat.mjs +0 -1
- package/dist/esm/api/types/Chunk.d.mts +1 -1
- package/dist/esm/api/types/Chunk.mjs +1 -1
- package/dist/esm/api/types/ChunkContentItem.d.mts +1 -1
- package/dist/esm/api/types/ChunkContentItem.mjs +1 -1
- package/dist/esm/api/types/ConversationAssetInfo.d.mts +1 -1
- package/dist/esm/api/types/ConversationAssetInfo.mjs +1 -1
- package/dist/esm/api/types/ConversationMessage.d.mts +1 -1
- package/dist/esm/api/types/ConversationMessage.mjs +1 -1
- package/dist/esm/api/types/ConversationResult.d.mts +1 -1
- package/dist/esm/api/types/ConversationResult.mjs +1 -1
- package/dist/esm/api/types/DatabaseTableSchemaResponse.d.mts +1 -1
- package/dist/esm/api/types/DatabaseTableSchemaResponse.mjs +1 -1
- package/dist/esm/api/types/DatabaseTablesResponse.d.mts +1 -1
- package/dist/esm/api/types/DatabaseTablesResponse.mjs +1 -1
- package/dist/esm/api/types/FolderResponse.d.mts +1 -1
- package/dist/esm/api/types/FolderResponse.mjs +1 -1
- package/dist/esm/api/types/GeneralAgentRequest.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentRequest.mjs +1 -1
- package/dist/esm/api/types/GeneralAgentResponse.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentResponse.mjs +1 -1
- package/dist/esm/api/types/GeneralAgentResponseMessage.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentResponseMessage.mjs +1 -1
- package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.d.mts +1 -1
- package/dist/esm/api/types/GeneralAgentResponseMessageKwargs.mjs +1 -1
- package/dist/esm/api/types/InputMessage.d.mts +1 -1
- package/dist/esm/api/types/InputMessage.mjs +1 -1
- package/dist/esm/api/types/InputMessageContentItem.d.mts +1 -1
- package/dist/esm/api/types/InputMessageContentItem.mjs +1 -1
- package/dist/esm/api/types/NumberFormatModel.d.mts +1 -1
- package/dist/esm/api/types/NumberFormatModel.mjs +1 -1
- package/dist/esm/api/types/PaginatedAssetsOut.d.mts +1 -1
- package/dist/esm/api/types/PaginatedAssetsOut.mjs +1 -1
- package/dist/esm/api/types/Sheet.d.mts +1 -1
- package/dist/esm/api/types/Sheet.mjs +1 -1
- package/dist/esm/api/types/StructuredDataExtractorResponse.d.mts +1 -1
- package/dist/esm/api/types/StructuredDataExtractorResponse.mjs +1 -1
- package/dist/esm/api/types/TextFormatModel.d.mts +1 -1
- package/dist/esm/api/types/TextFormatModel.mjs +1 -1
- package/dist/esm/api/types/ThreadStatusResponseOut.d.mts +1 -1
- package/dist/esm/api/types/ThreadStatusResponseOut.mjs +1 -1
- package/dist/esm/api/types/index.d.mts +5 -5
- package/dist/esm/api/types/index.mjs +5 -5
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -0
- package/dist/esm/auth/HeaderAuthProvider.mjs +34 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -1
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +204 -9
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +21 -7
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -12
- package/dist/esm/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +24 -7
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +2 -3
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +59 -82
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +5 -2
- package/dist/esm/core/index.mjs +5 -2
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/runtime.mjs +11 -10
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/errors/AthenaIntelligenceError.d.mts +1 -1
- package/dist/esm/errors/AthenaIntelligenceError.mjs +1 -2
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +11 -5
- package/reference.md +455 -491
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* force: true,
|
|
6
|
+
* body: {
|
|
7
|
+
* return_representation: false
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface DatabasesDeleteRequest {
|
|
12
|
+
/** Set to true to delete all rows (required when no filters provided) */
|
|
13
|
+
force?: boolean;
|
|
14
|
+
body?: AthenaIntelligence.DeleteDataRequest;
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
+
* force: true,
|
|
4
5
|
* data: {
|
|
5
6
|
* "email": "alice.smith@example.com",
|
|
6
7
|
* "name": "Alice Smith"
|
|
@@ -9,6 +10,8 @@
|
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface UpdateDataRequest {
|
|
13
|
+
/** Set to true to update all rows (required when no filters provided) */
|
|
14
|
+
force?: boolean;
|
|
12
15
|
/** Column values to update */
|
|
13
16
|
data: Record<string, unknown>;
|
|
14
17
|
/** If true, return the updated rows in the response */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export type { DatabasesDeleteRequest } from "./DatabasesDeleteRequest.js";
|
|
2
|
+
export type { DatabasesSelectRequest } from "./DatabasesSelectRequest.js";
|
|
3
|
+
export type { InsertDataRequest } from "./InsertDataRequest.js";
|
|
4
|
+
export type { UpdateDataRequest } from "./UpdateDataRequest.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export *
|
|
2
|
-
export * from "./query/types/index.js";
|
|
3
|
-
export * as tools from "./tools/index.js";
|
|
4
|
-
export * from "./tools/types/index.js";
|
|
1
|
+
export * from "./agents/client/requests/index.js";
|
|
5
2
|
export * as agents from "./agents/index.js";
|
|
6
3
|
export * as aop from "./aop/index.js";
|
|
7
|
-
export * as assets from "./assets/index.js";
|
|
8
|
-
export * as databases from "./databases/index.js";
|
|
9
|
-
export * as threads from "./threads/index.js";
|
|
10
|
-
export * from "./agents/client/requests/index.js";
|
|
11
4
|
export * from "./assets/client/requests/index.js";
|
|
5
|
+
export * as assets from "./assets/index.js";
|
|
12
6
|
export * from "./databases/client/requests/index.js";
|
|
7
|
+
export * as databases from "./databases/index.js";
|
|
13
8
|
export * from "./query/client/requests/index.js";
|
|
9
|
+
export * as query from "./query/index.js";
|
|
10
|
+
export * from "./query/types/index.js";
|
|
11
|
+
export * as threads from "./threads/index.js";
|
|
14
12
|
export * from "./tools/client/requests/index.js";
|
|
13
|
+
export * as tools from "./tools/index.js";
|
|
14
|
+
export * from "./tools/types/index.js";
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,22 +35,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
__exportStar(require("./query/types/index.js"), exports);
|
|
42
|
-
exports.tools = __importStar(require("./tools/index.js"));
|
|
43
|
-
__exportStar(require("./tools/types/index.js"), exports);
|
|
39
|
+
exports.tools = exports.threads = exports.query = exports.databases = exports.assets = exports.aop = exports.agents = void 0;
|
|
40
|
+
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
44
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
45
42
|
exports.aop = __importStar(require("./aop/index.js"));
|
|
46
|
-
exports.assets = __importStar(require("./assets/index.js"));
|
|
47
|
-
exports.databases = __importStar(require("./databases/index.js"));
|
|
48
|
-
exports.threads = __importStar(require("./threads/index.js"));
|
|
49
|
-
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
50
43
|
__exportStar(require("./assets/client/requests/index.js"), exports);
|
|
44
|
+
exports.assets = __importStar(require("./assets/index.js"));
|
|
51
45
|
__exportStar(require("./databases/client/requests/index.js"), exports);
|
|
46
|
+
exports.databases = __importStar(require("./databases/index.js"));
|
|
52
47
|
__exportStar(require("./query/client/requests/index.js"), exports);
|
|
48
|
+
exports.query = __importStar(require("./query/index.js"));
|
|
49
|
+
__exportStar(require("./query/types/index.js"), exports);
|
|
50
|
+
exports.threads = __importStar(require("./threads/index.js"));
|
|
53
51
|
__exportStar(require("./tools/client/requests/index.js"), exports);
|
|
52
|
+
exports.tools = __importStar(require("./tools/index.js"));
|
|
53
|
+
__exportStar(require("./tools/types/index.js"), exports);
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
2
3
|
import * as core from "../../../../core/index.js";
|
|
3
4
|
import * as AthenaIntelligence from "../../../index.js";
|
|
4
|
-
export declare namespace
|
|
5
|
+
export declare namespace QueryClient {
|
|
5
6
|
interface Options extends BaseClientOptions {
|
|
6
7
|
}
|
|
7
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
11
|
+
export declare class QueryClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<QueryClient.Options>;
|
|
13
|
+
constructor(options: QueryClient.Options);
|
|
13
14
|
/**
|
|
14
15
|
* Get the result of an SQL query over given assets.
|
|
15
16
|
*
|
|
16
17
|
* @param {AthenaIntelligence.QueryExecuteRequest} request
|
|
17
|
-
* @param {
|
|
18
|
+
* @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
20
21
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -26,13 +27,13 @@ export declare class Query {
|
|
|
26
27
|
* database_asset_ids: "database_asset_ids"
|
|
27
28
|
* })
|
|
28
29
|
*/
|
|
29
|
-
execute(request: AthenaIntelligence.QueryExecuteRequest, requestOptions?:
|
|
30
|
+
execute(request: AthenaIntelligence.QueryExecuteRequest, requestOptions?: QueryClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DataFrameRequestOut>;
|
|
30
31
|
private __execute;
|
|
31
32
|
/**
|
|
32
33
|
* Get the result of an SQL query over given assets.
|
|
33
34
|
*
|
|
34
35
|
* @param {AthenaIntelligence.QueryExecuteSnippetRequest} request
|
|
35
|
-
* @param {
|
|
36
|
+
* @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
37
|
*
|
|
37
38
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
38
39
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -43,7 +44,6 @@ export declare class Query {
|
|
|
43
44
|
* snippet_asset_id: "snippet_asset_id"
|
|
44
45
|
* })
|
|
45
46
|
*/
|
|
46
|
-
executeSnippet(request: AthenaIntelligence.QueryExecuteSnippetRequest, requestOptions?:
|
|
47
|
+
executeSnippet(request: AthenaIntelligence.QueryExecuteSnippetRequest, requestOptions?: QueryClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DataFrameRequestOut>;
|
|
47
48
|
private __executeSnippet;
|
|
48
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
49
49
|
}
|
|
@@ -43,22 +43,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
46
|
+
exports.QueryClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
|
-
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
50
50
|
const json_js_1 = require("../../../../core/json.js");
|
|
51
|
-
const
|
|
51
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
54
|
+
class QueryClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* Get the result of an SQL query over given assets.
|
|
59
60
|
*
|
|
60
61
|
* @param {AthenaIntelligence.QueryExecuteRequest} request
|
|
61
|
-
* @param {
|
|
62
|
+
* @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
63
|
*
|
|
63
64
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
64
65
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -75,13 +76,14 @@ class Query {
|
|
|
75
76
|
}
|
|
76
77
|
__execute(request, requestOptions) {
|
|
77
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
80
|
const { sql_command: sqlCommand, database_asset_ids: databaseAssetIds } = request;
|
|
80
81
|
const _queryParams = {};
|
|
81
|
-
_queryParams
|
|
82
|
-
_queryParams
|
|
82
|
+
_queryParams.sql_command = sqlCommand;
|
|
83
|
+
_queryParams.database_asset_ids =
|
|
83
84
|
typeof databaseAssetIds === "string" ? databaseAssetIds : (0, json_js_1.toJson)(databaseAssetIds);
|
|
84
|
-
|
|
85
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
|
+
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);
|
|
85
87
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
86
88
|
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/query/sql/code/execute"),
|
|
87
89
|
method: "GET",
|
|
@@ -90,6 +92,8 @@ class Query {
|
|
|
90
92
|
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,
|
|
91
93
|
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,
|
|
92
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
96
|
+
logging: this._options.logging,
|
|
93
97
|
});
|
|
94
98
|
if (_response.ok) {
|
|
95
99
|
return {
|
|
@@ -120,6 +124,11 @@ class Query {
|
|
|
120
124
|
body: _response.error.rawBody,
|
|
121
125
|
rawResponse: _response.rawResponse,
|
|
122
126
|
});
|
|
127
|
+
case "body-is-null":
|
|
128
|
+
throw new errors.AthenaIntelligenceError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
});
|
|
123
132
|
case "timeout":
|
|
124
133
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/query/sql/code/execute.");
|
|
125
134
|
case "unknown":
|
|
@@ -134,7 +143,7 @@ class Query {
|
|
|
134
143
|
* Get the result of an SQL query over given assets.
|
|
135
144
|
*
|
|
136
145
|
* @param {AthenaIntelligence.QueryExecuteSnippetRequest} request
|
|
137
|
-
* @param {
|
|
146
|
+
* @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
147
|
*
|
|
139
148
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
140
149
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -150,11 +159,12 @@ class Query {
|
|
|
150
159
|
}
|
|
151
160
|
__executeSnippet(request, requestOptions) {
|
|
152
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
162
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
154
163
|
const { snippet_asset_id: snippetAssetId } = request;
|
|
155
164
|
const _queryParams = {};
|
|
156
|
-
_queryParams
|
|
157
|
-
|
|
165
|
+
_queryParams.snippet_asset_id = snippetAssetId;
|
|
166
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
167
|
+
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);
|
|
158
168
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
159
169
|
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/query/sql/snippet/execute"),
|
|
160
170
|
method: "GET",
|
|
@@ -163,6 +173,8 @@ class Query {
|
|
|
163
173
|
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,
|
|
164
174
|
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,
|
|
165
175
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
176
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
177
|
+
logging: this._options.logging,
|
|
166
178
|
});
|
|
167
179
|
if (_response.ok) {
|
|
168
180
|
return {
|
|
@@ -193,6 +205,11 @@ class Query {
|
|
|
193
205
|
body: _response.error.rawBody,
|
|
194
206
|
rawResponse: _response.rawResponse,
|
|
195
207
|
});
|
|
208
|
+
case "body-is-null":
|
|
209
|
+
throw new errors.AthenaIntelligenceError({
|
|
210
|
+
statusCode: _response.error.statusCode,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
});
|
|
196
213
|
case "timeout":
|
|
197
214
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/query/sql/snippet/execute.");
|
|
198
215
|
case "unknown":
|
|
@@ -203,11 +220,5 @@ class Query {
|
|
|
203
220
|
}
|
|
204
221
|
});
|
|
205
222
|
}
|
|
206
|
-
_getCustomAuthorizationHeaders() {
|
|
207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
209
|
-
return { "X-API-KEY": apiKeyValue };
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
223
|
}
|
|
213
|
-
exports.
|
|
224
|
+
exports.QueryClient = QueryClient;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export type { QueryExecuteRequest } from "./QueryExecuteRequest.js";
|
|
2
|
+
export type { QueryExecuteSnippetRequest } from "./QueryExecuteSnippetRequest.js";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
2
3
|
import * as core from "../../../../core/index.js";
|
|
3
4
|
import * as AthenaIntelligence from "../../../index.js";
|
|
4
|
-
export declare namespace
|
|
5
|
+
export declare namespace ThreadsClient {
|
|
5
6
|
interface Options extends BaseClientOptions {
|
|
6
7
|
}
|
|
7
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
11
|
+
export declare class ThreadsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ThreadsClient.Options>;
|
|
13
|
+
constructor(options: ThreadsClient.Options);
|
|
13
14
|
/**
|
|
14
15
|
* Check the status of a thread execution by thread ID. Returns thread status and associated conversation asset information for tracking progress.
|
|
15
16
|
*
|
|
16
|
-
* @param {string}
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {string} thread_id - The unique thread ID to check status for
|
|
18
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
20
21
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -24,7 +25,6 @@ export declare class Threads {
|
|
|
24
25
|
* @example
|
|
25
26
|
* await client.threads.getStatus("thread_id")
|
|
26
27
|
*/
|
|
27
|
-
getStatus(
|
|
28
|
+
getStatus(thread_id: string, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.ThreadStatusResponseOut>;
|
|
28
29
|
private __getStatus;
|
|
29
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
30
30
|
}
|
|
@@ -43,21 +43,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
48
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
49
|
-
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
46
|
+
exports.ThreadsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
50
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const AthenaIntelligence = __importStar(require("../../../index.js"));
|
|
53
|
+
class ThreadsClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Check the status of a thread execution by thread ID. Returns thread status and associated conversation asset information for tracking progress.
|
|
58
59
|
*
|
|
59
|
-
* @param {string}
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {string} thread_id - The unique thread ID to check status for
|
|
61
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
62
|
*
|
|
62
63
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
63
64
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -67,21 +68,24 @@ class Threads {
|
|
|
67
68
|
* @example
|
|
68
69
|
* await client.threads.getStatus("thread_id")
|
|
69
70
|
*/
|
|
70
|
-
getStatus(
|
|
71
|
-
return core.HttpResponsePromise.fromPromise(this.__getStatus(
|
|
71
|
+
getStatus(thread_id, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__getStatus(thread_id, requestOptions));
|
|
72
73
|
}
|
|
73
|
-
__getStatus(
|
|
74
|
+
__getStatus(thread_id, requestOptions) {
|
|
74
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
76
|
-
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
77
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
|
+
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);
|
|
77
79
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
78
|
-
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/${
|
|
80
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, `api/v0/threads/${core.url.encodePathParam(thread_id)}/status`),
|
|
79
81
|
method: "GET",
|
|
80
82
|
headers: _headers,
|
|
81
83
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
82
84
|
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,
|
|
83
85
|
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,
|
|
84
86
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
85
89
|
});
|
|
86
90
|
if (_response.ok) {
|
|
87
91
|
return {
|
|
@@ -114,6 +118,11 @@ class Threads {
|
|
|
114
118
|
body: _response.error.rawBody,
|
|
115
119
|
rawResponse: _response.rawResponse,
|
|
116
120
|
});
|
|
121
|
+
case "body-is-null":
|
|
122
|
+
throw new errors.AthenaIntelligenceError({
|
|
123
|
+
statusCode: _response.error.statusCode,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
117
126
|
case "timeout":
|
|
118
127
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/threads/{thread_id}/status.");
|
|
119
128
|
case "unknown":
|
|
@@ -124,11 +133,5 @@ class Threads {
|
|
|
124
133
|
}
|
|
125
134
|
});
|
|
126
135
|
}
|
|
127
|
-
_getCustomAuthorizationHeaders() {
|
|
128
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
130
|
-
return { "X-API-KEY": apiKeyValue };
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
136
|
}
|
|
134
|
-
exports.
|
|
137
|
+
exports.ThreadsClient = ThreadsClient;
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
2
3
|
import * as core from "../../../../core/index.js";
|
|
3
4
|
import * as AthenaIntelligence from "../../../index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
export declare namespace
|
|
5
|
+
import { CalendarClient } from "../resources/calendar/client/Client.js";
|
|
6
|
+
import { EmailClient } from "../resources/email/client/Client.js";
|
|
7
|
+
import { SheetsClient } from "../resources/sheets/client/Client.js";
|
|
8
|
+
import { StructuredDataExtractorClient } from "../resources/structuredDataExtractor/client/Client.js";
|
|
9
|
+
import { TasksClient } from "../resources/tasks/client/Client.js";
|
|
10
|
+
export declare namespace ToolsClient {
|
|
10
11
|
interface Options extends BaseClientOptions {
|
|
11
12
|
}
|
|
12
13
|
interface RequestOptions extends BaseRequestOptions {
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
export declare class
|
|
16
|
-
protected readonly _options:
|
|
17
|
-
protected _calendar:
|
|
18
|
-
protected _email:
|
|
19
|
-
protected _sheets:
|
|
20
|
-
protected _structuredDataExtractor:
|
|
21
|
-
protected _tasks:
|
|
22
|
-
constructor(
|
|
23
|
-
get calendar():
|
|
24
|
-
get email():
|
|
25
|
-
get sheets():
|
|
26
|
-
get structuredDataExtractor():
|
|
27
|
-
get tasks():
|
|
16
|
+
export declare class ToolsClient {
|
|
17
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ToolsClient.Options>;
|
|
18
|
+
protected _calendar: CalendarClient | undefined;
|
|
19
|
+
protected _email: EmailClient | undefined;
|
|
20
|
+
protected _sheets: SheetsClient | undefined;
|
|
21
|
+
protected _structuredDataExtractor: StructuredDataExtractorClient | undefined;
|
|
22
|
+
protected _tasks: TasksClient | undefined;
|
|
23
|
+
constructor(options: ToolsClient.Options);
|
|
24
|
+
get calendar(): CalendarClient;
|
|
25
|
+
get email(): EmailClient;
|
|
26
|
+
get sheets(): SheetsClient;
|
|
27
|
+
get structuredDataExtractor(): StructuredDataExtractorClient;
|
|
28
|
+
get tasks(): TasksClient;
|
|
28
29
|
/**
|
|
29
30
|
* Get the chunks of a file.
|
|
30
31
|
*
|
|
31
32
|
* @param {AthenaIntelligence.FileChunkRequestIn} request
|
|
32
|
-
* @param {
|
|
33
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
34
|
*
|
|
34
35
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
35
36
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -40,13 +41,13 @@ export declare class Tools {
|
|
|
40
41
|
* asset_ids: ["asset_9249292-d118-42d3-96b4-00eccfe0754f", "asset_9249292-d118-42d3-95b4-01eccfe0754f"]
|
|
41
42
|
* })
|
|
42
43
|
*/
|
|
43
|
-
getAssetChunks(request: AthenaIntelligence.FileChunkRequestIn, requestOptions?:
|
|
44
|
+
getAssetChunks(request: AthenaIntelligence.FileChunkRequestIn, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
44
45
|
private __getAssetChunks;
|
|
45
46
|
/**
|
|
46
47
|
* Get the content of an asset.
|
|
47
48
|
*
|
|
48
49
|
* @param {AthenaIntelligence.ToolsGetAssetContentRequest} request
|
|
49
|
-
* @param {
|
|
50
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
51
|
*
|
|
51
52
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
52
53
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -57,13 +58,13 @@ export declare class Tools {
|
|
|
57
58
|
* asset_id: "asset_id"
|
|
58
59
|
* })
|
|
59
60
|
*/
|
|
60
|
-
getAssetContent(request: AthenaIntelligence.ToolsGetAssetContentRequest, requestOptions?:
|
|
61
|
+
getAssetContent(request: AthenaIntelligence.ToolsGetAssetContentRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetContentRequestOut>;
|
|
61
62
|
private __getAssetContent;
|
|
62
63
|
/**
|
|
63
64
|
* Get a screenshot of a specific page from an asset.
|
|
64
65
|
*
|
|
65
66
|
* @param {AthenaIntelligence.ToolsGetAssetScreenshotRequest} request
|
|
66
|
-
* @param {
|
|
67
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
68
|
*
|
|
68
69
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
69
70
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -76,13 +77,13 @@ export declare class Tools {
|
|
|
76
77
|
* page_number: 1
|
|
77
78
|
* })
|
|
78
79
|
*/
|
|
79
|
-
getAssetScreenshot(request: AthenaIntelligence.ToolsGetAssetScreenshotRequest, requestOptions?:
|
|
80
|
+
getAssetScreenshot(request: AthenaIntelligence.ToolsGetAssetScreenshotRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AssetScreenshotResponseOut>;
|
|
80
81
|
private __getAssetScreenshot;
|
|
81
82
|
/**
|
|
82
83
|
* List contents of an asset (Folder, Collection, Project) or entire workspace in a tree structure.
|
|
83
84
|
*
|
|
84
85
|
* @param {AthenaIntelligence.ToolsListContentsRequest} request
|
|
85
|
-
* @param {
|
|
86
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
87
|
*
|
|
87
88
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
88
89
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
@@ -96,11 +97,11 @@ export declare class Tools {
|
|
|
96
97
|
* include_system_files: true
|
|
97
98
|
* })
|
|
98
99
|
*/
|
|
99
|
-
listContents(request?: AthenaIntelligence.ToolsListContentsRequest, requestOptions?:
|
|
100
|
+
listContents(request?: AthenaIntelligence.ToolsListContentsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.FolderResponse>;
|
|
100
101
|
private __listContents;
|
|
101
102
|
/**
|
|
102
103
|
* @param {AthenaIntelligence.ToolsDataFrameRequest} request
|
|
103
|
-
* @param {
|
|
104
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
105
|
*
|
|
105
106
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
106
107
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
@@ -117,7 +118,7 @@ export declare class Tools {
|
|
|
117
118
|
* separator: "separator"
|
|
118
119
|
* })
|
|
119
120
|
*/
|
|
120
|
-
dataFrame(request: AthenaIntelligence.ToolsDataFrameRequest, requestOptions?:
|
|
121
|
+
dataFrame(request: AthenaIntelligence.ToolsDataFrameRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.DataFrameRequestOut>;
|
|
121
122
|
private __dataFrame;
|
|
122
123
|
/**
|
|
123
124
|
* Get the raw file data for given asset.
|
|
@@ -126,13 +127,13 @@ export declare class Tools {
|
|
|
126
127
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
127
128
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
128
129
|
*/
|
|
129
|
-
rawData(request: AthenaIntelligence.ToolsRawDataRequest, requestOptions?:
|
|
130
|
+
rawData(request: AthenaIntelligence.ToolsRawDataRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
130
131
|
private __rawData;
|
|
131
132
|
/**
|
|
132
133
|
* Save a file as an asset in the user's workspace.
|
|
133
134
|
*
|
|
134
135
|
* @param {AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost} request
|
|
135
|
-
* @param {
|
|
136
|
+
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
137
|
*
|
|
137
138
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
138
139
|
* @throws {@link AthenaIntelligence.ContentTooLargeError}
|
|
@@ -145,7 +146,6 @@ export declare class Tools {
|
|
|
145
146
|
* parent_folder_id: "parent_folder_id"
|
|
146
147
|
* })
|
|
147
148
|
*/
|
|
148
|
-
saveAsset(request: AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost, requestOptions?:
|
|
149
|
+
saveAsset(request: AthenaIntelligence.BodySaveAssetApiV0ToolsFileSavePost, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SaveAssetRequestOut>;
|
|
149
150
|
private __saveAsset;
|
|
150
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
151
151
|
}
|