@athenaintel/sdk 4.3.309 → 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 +28 -28
- package/dist/cjs/api/resources/databases/client/Client.js +118 -75
- package/dist/cjs/api/resources/databases/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/databases/client/requests/DatabasesDeleteRequest.d.ts +1 -1
- package/dist/cjs/api/resources/databases/client/requests/index.d.ts +4 -4
- 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 +28 -28
- package/dist/esm/api/resources/databases/client/Client.mjs +116 -73
- 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 +1 -1
- package/dist/esm/api/resources/databases/client/requests/DatabasesDeleteRequest.mjs +1 -1
- package/dist/esm/api/resources/databases/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/databases/client/requests/index.mjs +1 -4
- 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 +450 -490
- 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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
1
|
+
export type { ClearFormattingRequest } from "./ClearFormattingRequest.js";
|
|
2
|
+
export type { ClearSheetRangeRequest } from "./ClearSheetRangeRequest.js";
|
|
3
|
+
export type { CreateNewSheetTabRequest } from "./CreateNewSheetTabRequest.js";
|
|
4
|
+
export type { CreateTableRequest } from "./CreateTableRequest.js";
|
|
5
|
+
export type { DeleteCellsRequest } from "./DeleteCellsRequest.js";
|
|
6
|
+
export type { DeleteColumnRequest } from "./DeleteColumnRequest.js";
|
|
7
|
+
export type { DeleteTableColumnRequest } from "./DeleteTableColumnRequest.js";
|
|
8
|
+
export type { DuplicateSheetRequest } from "./DuplicateSheetRequest.js";
|
|
9
|
+
export type { FormatSheetRangeRequest } from "./FormatSheetRangeRequest.js";
|
|
10
|
+
export type { GetTableRequest } from "./GetTableRequest.js";
|
|
11
|
+
export type { InsertColumnRequest } from "./InsertColumnRequest.js";
|
|
12
|
+
export type { InsertRowRequest } from "./InsertRowRequest.js";
|
|
13
|
+
export type { InsertTableColumnRequest } from "./InsertTableColumnRequest.js";
|
|
14
|
+
export type { InsertTableRowRequest } from "./InsertTableRowRequest.js";
|
|
15
|
+
export type { UpdateSheetCellRequest } from "./UpdateSheetCellRequest.js";
|
|
16
|
+
export type { UpdateSheetRangeRequest } from "./UpdateSheetRangeRequest.js";
|
|
17
|
+
export type { UpdateTableRequest } from "./UpdateTableRequest.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
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 StructuredDataExtractorClient {
|
|
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 StructuredDataExtractorClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<StructuredDataExtractorClient.Options>;
|
|
13
|
+
constructor(options: StructuredDataExtractorClient.Options);
|
|
13
14
|
/**
|
|
14
15
|
* Extract structured data.
|
|
15
16
|
*
|
|
@@ -34,7 +35,7 @@ export declare class StructuredDataExtractor {
|
|
|
34
35
|
* You can configure these behaviors with the `map` and `reduce` fields.
|
|
35
36
|
*
|
|
36
37
|
* @param {AthenaIntelligence.tools.StructuredDataExtractorRequest} request
|
|
37
|
-
* @param {
|
|
38
|
+
* @param {StructuredDataExtractorClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
39
|
*
|
|
39
40
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
40
41
|
*
|
|
@@ -74,7 +75,6 @@ export declare class StructuredDataExtractor {
|
|
|
74
75
|
* }
|
|
75
76
|
* })
|
|
76
77
|
*/
|
|
77
|
-
invoke(request: AthenaIntelligence.tools.StructuredDataExtractorRequest, requestOptions?:
|
|
78
|
+
invoke(request: AthenaIntelligence.tools.StructuredDataExtractorRequest, requestOptions?: StructuredDataExtractorClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.StructuredDataExtractorResponse>;
|
|
78
79
|
private __invoke;
|
|
79
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
80
80
|
}
|
|
@@ -43,15 +43,16 @@ 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.StructuredDataExtractorClient = 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 StructuredDataExtractorClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Extract structured data.
|
|
@@ -77,7 +78,7 @@ class StructuredDataExtractor {
|
|
|
77
78
|
* You can configure these behaviors with the `map` and `reduce` fields.
|
|
78
79
|
*
|
|
79
80
|
* @param {AthenaIntelligence.tools.StructuredDataExtractorRequest} request
|
|
80
|
-
* @param {
|
|
81
|
+
* @param {StructuredDataExtractorClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
82
|
*
|
|
82
83
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
83
84
|
*
|
|
@@ -122,8 +123,9 @@ class StructuredDataExtractor {
|
|
|
122
123
|
}
|
|
123
124
|
__invoke(request, requestOptions) {
|
|
124
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
126
|
-
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
127
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
128
|
+
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);
|
|
127
129
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
128
130
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/structured-data-extractor/invoke"),
|
|
129
131
|
method: "POST",
|
|
@@ -135,6 +137,8 @@ class StructuredDataExtractor {
|
|
|
135
137
|
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,
|
|
136
138
|
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,
|
|
137
139
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
140
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
141
|
+
logging: this._options.logging,
|
|
138
142
|
});
|
|
139
143
|
if (_response.ok) {
|
|
140
144
|
return {
|
|
@@ -161,6 +165,11 @@ class StructuredDataExtractor {
|
|
|
161
165
|
body: _response.error.rawBody,
|
|
162
166
|
rawResponse: _response.rawResponse,
|
|
163
167
|
});
|
|
168
|
+
case "body-is-null":
|
|
169
|
+
throw new errors.AthenaIntelligenceError({
|
|
170
|
+
statusCode: _response.error.statusCode,
|
|
171
|
+
rawResponse: _response.rawResponse,
|
|
172
|
+
});
|
|
164
173
|
case "timeout":
|
|
165
174
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/structured-data-extractor/invoke.");
|
|
166
175
|
case "unknown":
|
|
@@ -171,11 +180,5 @@ class StructuredDataExtractor {
|
|
|
171
180
|
}
|
|
172
181
|
});
|
|
173
182
|
}
|
|
174
|
-
_getCustomAuthorizationHeaders() {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
177
|
-
return { "X-API-KEY": apiKeyValue };
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
183
|
}
|
|
181
|
-
exports.
|
|
184
|
+
exports.StructuredDataExtractorClient = StructuredDataExtractorClient;
|
package/dist/cjs/api/resources/tools/resources/structuredDataExtractor/client/requests/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { StructuredDataExtractorRequest } from "./StructuredDataExtractorRequest.js";
|
|
@@ -1,22 +1,23 @@
|
|
|
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 TasksClient {
|
|
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 TasksClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TasksClient.Options>;
|
|
13
|
+
constructor(options: TasksClient.Options);
|
|
13
14
|
/**
|
|
14
15
|
* Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
|
|
15
16
|
*
|
|
16
17
|
* Executes a Windmill script or flow synchronously. Server handles polling internally.
|
|
17
18
|
*
|
|
18
19
|
* @param {AthenaIntelligence.tools.RunTaskRequest} request
|
|
19
|
-
* @param {
|
|
20
|
+
* @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
21
|
*
|
|
21
22
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
22
23
|
*
|
|
@@ -25,7 +26,6 @@ export declare class Tasks {
|
|
|
25
26
|
* task_id: "task_id"
|
|
26
27
|
* })
|
|
27
28
|
*/
|
|
28
|
-
runTask(request: AthenaIntelligence.tools.RunTaskRequest, requestOptions?:
|
|
29
|
+
runTask(request: AthenaIntelligence.tools.RunTaskRequest, requestOptions?: TasksClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.RunTaskResponse>;
|
|
29
30
|
private __runTask;
|
|
30
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
31
31
|
}
|
|
@@ -43,15 +43,16 @@ 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.TasksClient = 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 TasksClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
|
|
@@ -59,7 +60,7 @@ class Tasks {
|
|
|
59
60
|
* Executes a Windmill script or flow synchronously. Server handles polling internally.
|
|
60
61
|
*
|
|
61
62
|
* @param {AthenaIntelligence.tools.RunTaskRequest} request
|
|
62
|
-
* @param {
|
|
63
|
+
* @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
65
66
|
*
|
|
@@ -73,8 +74,9 @@ class Tasks {
|
|
|
73
74
|
}
|
|
74
75
|
__runTask(request, requestOptions) {
|
|
75
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
77
|
-
|
|
77
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
78
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
79
|
+
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);
|
|
78
80
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
81
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/tasks/run"),
|
|
80
82
|
method: "POST",
|
|
@@ -86,6 +88,8 @@ class Tasks {
|
|
|
86
88
|
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,
|
|
87
89
|
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,
|
|
88
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
92
|
+
logging: this._options.logging,
|
|
89
93
|
});
|
|
90
94
|
if (_response.ok) {
|
|
91
95
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -109,6 +113,11 @@ class Tasks {
|
|
|
109
113
|
body: _response.error.rawBody,
|
|
110
114
|
rawResponse: _response.rawResponse,
|
|
111
115
|
});
|
|
116
|
+
case "body-is-null":
|
|
117
|
+
throw new errors.AthenaIntelligenceError({
|
|
118
|
+
statusCode: _response.error.statusCode,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
112
121
|
case "timeout":
|
|
113
122
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/tasks/run.");
|
|
114
123
|
case "unknown":
|
|
@@ -119,11 +128,5 @@ class Tasks {
|
|
|
119
128
|
}
|
|
120
129
|
});
|
|
121
130
|
}
|
|
122
|
-
_getCustomAuthorizationHeaders() {
|
|
123
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
125
|
-
return { "X-API-KEY": apiKeyValue };
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
131
|
}
|
|
129
|
-
exports.
|
|
132
|
+
exports.TasksClient = TasksClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { RunTaskRequest } from "./RunTaskRequest.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as AthenaIntelligence from "../index.js";
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
2
|
export interface CellFormat {
|
|
3
3
|
/** Background color as hex string (e.g., '#FF0000'). Use either backgroundColor_hex or backgroundColor_theme, not both. */
|
|
4
4
|
backgroundColor_hex?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as AthenaIntelligence from "../index.js";
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
2
|
export type ChunkContentItem = AthenaIntelligence.ChunkContentItem.Text | AthenaIntelligence.ChunkContentItem.ImageUrl;
|
|
3
3
|
export declare namespace ChunkContentItem {
|
|
4
4
|
interface Text extends AthenaIntelligence.TextContent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as AthenaIntelligence from "../index.js";
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
2
|
export type InputMessageContentItem = AthenaIntelligence.InputMessageContentItem.Text | AthenaIntelligence.InputMessageContentItem.ImageUrl;
|
|
3
3
|
export declare namespace InputMessageContentItem {
|
|
4
4
|
interface Text extends AthenaIntelligence.TextContent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as AthenaIntelligence from "../index.js";
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
2
|
export interface NumberFormatModel {
|
|
3
3
|
/** Excel-compatible format string. If omitted, the server will pick a sensible default based on the chosen type (e.g. NUMBER → '#,##0', CURRENCY → '$#,##0.00'). */
|
|
4
4
|
pattern: string;
|
|
@@ -8,8 +8,8 @@ export * from "./BorderModel.js";
|
|
|
8
8
|
export * from "./BorderStyle.js";
|
|
9
9
|
export * from "./BordersModel.js";
|
|
10
10
|
export * from "./CellFormat.js";
|
|
11
|
-
export * from "./ChunkContentItem.js";
|
|
12
11
|
export * from "./Chunk.js";
|
|
12
|
+
export * from "./ChunkContentItem.js";
|
|
13
13
|
export * from "./ChunkResult.js";
|
|
14
14
|
export * from "./ConversationAssetInfo.js";
|
|
15
15
|
export * from "./ConversationMessage.js";
|
|
@@ -19,14 +19,14 @@ export * from "./CreateAssetResponseOut.js";
|
|
|
19
19
|
export * from "./CreateNewSheetTabResponse.js";
|
|
20
20
|
export * from "./CreateProjectResponseOut.js";
|
|
21
21
|
export * from "./CustomAgentResponse.js";
|
|
22
|
-
export * from "./DataFrameRequestOut.js";
|
|
23
|
-
export * from "./DataFrameUnknownFormatError.js";
|
|
24
22
|
export * from "./DatabaseColumnInfo.js";
|
|
25
23
|
export * from "./DatabaseDataResponse.js";
|
|
26
24
|
export * from "./DatabaseMutationResponse.js";
|
|
27
25
|
export * from "./DatabaseTableInfo.js";
|
|
28
26
|
export * from "./DatabaseTableSchemaResponse.js";
|
|
29
27
|
export * from "./DatabaseTablesResponse.js";
|
|
28
|
+
export * from "./DataFrameRequestOut.js";
|
|
29
|
+
export * from "./DataFrameUnknownFormatError.js";
|
|
30
30
|
export * from "./DeleteDataRequest.js";
|
|
31
31
|
export * from "./DimensionProperties.js";
|
|
32
32
|
export * from "./DriveAgentResponse.js";
|
|
@@ -40,8 +40,8 @@ export * from "./GeneralAgentResponseMessageKwargs.js";
|
|
|
40
40
|
export * from "./GetTableResponse.js";
|
|
41
41
|
export * from "./GridRange.js";
|
|
42
42
|
export * from "./ImageUrlContent.js";
|
|
43
|
-
export * from "./InputMessageContentItem.js";
|
|
44
43
|
export * from "./InputMessage.js";
|
|
44
|
+
export * from "./InputMessageContentItem.js";
|
|
45
45
|
export * from "./NumberFormatModel.js";
|
|
46
46
|
export * from "./NumberFormatType.js";
|
|
47
47
|
export * from "./PaginatedAssetsOut.js";
|
|
@@ -49,10 +49,10 @@ export * from "./PromptMessage.js";
|
|
|
49
49
|
export * from "./PublicAssetOut.js";
|
|
50
50
|
export * from "./ResearchAgentResponse.js";
|
|
51
51
|
export * from "./RunTaskResponse.js";
|
|
52
|
-
export * from "./SqlAgentResponse.js";
|
|
53
52
|
export * from "./SaveAssetRequestOut.js";
|
|
54
53
|
export * from "./Sheet.js";
|
|
55
54
|
export * from "./SheetOperationResponse.js";
|
|
55
|
+
export * from "./SqlAgentResponse.js";
|
|
56
56
|
export * from "./StructuredDataExtractorResponse.js";
|
|
57
57
|
export * from "./TableRowData.js";
|
|
58
58
|
export * from "./TextContent.js";
|
|
@@ -24,8 +24,8 @@ __exportStar(require("./BorderModel.js"), exports);
|
|
|
24
24
|
__exportStar(require("./BorderStyle.js"), exports);
|
|
25
25
|
__exportStar(require("./BordersModel.js"), exports);
|
|
26
26
|
__exportStar(require("./CellFormat.js"), exports);
|
|
27
|
-
__exportStar(require("./ChunkContentItem.js"), exports);
|
|
28
27
|
__exportStar(require("./Chunk.js"), exports);
|
|
28
|
+
__exportStar(require("./ChunkContentItem.js"), exports);
|
|
29
29
|
__exportStar(require("./ChunkResult.js"), exports);
|
|
30
30
|
__exportStar(require("./ConversationAssetInfo.js"), exports);
|
|
31
31
|
__exportStar(require("./ConversationMessage.js"), exports);
|
|
@@ -35,14 +35,14 @@ __exportStar(require("./CreateAssetResponseOut.js"), exports);
|
|
|
35
35
|
__exportStar(require("./CreateNewSheetTabResponse.js"), exports);
|
|
36
36
|
__exportStar(require("./CreateProjectResponseOut.js"), exports);
|
|
37
37
|
__exportStar(require("./CustomAgentResponse.js"), exports);
|
|
38
|
-
__exportStar(require("./DataFrameRequestOut.js"), exports);
|
|
39
|
-
__exportStar(require("./DataFrameUnknownFormatError.js"), exports);
|
|
40
38
|
__exportStar(require("./DatabaseColumnInfo.js"), exports);
|
|
41
39
|
__exportStar(require("./DatabaseDataResponse.js"), exports);
|
|
42
40
|
__exportStar(require("./DatabaseMutationResponse.js"), exports);
|
|
43
41
|
__exportStar(require("./DatabaseTableInfo.js"), exports);
|
|
44
42
|
__exportStar(require("./DatabaseTableSchemaResponse.js"), exports);
|
|
45
43
|
__exportStar(require("./DatabaseTablesResponse.js"), exports);
|
|
44
|
+
__exportStar(require("./DataFrameRequestOut.js"), exports);
|
|
45
|
+
__exportStar(require("./DataFrameUnknownFormatError.js"), exports);
|
|
46
46
|
__exportStar(require("./DeleteDataRequest.js"), exports);
|
|
47
47
|
__exportStar(require("./DimensionProperties.js"), exports);
|
|
48
48
|
__exportStar(require("./DriveAgentResponse.js"), exports);
|
|
@@ -56,8 +56,8 @@ __exportStar(require("./GeneralAgentResponseMessageKwargs.js"), exports);
|
|
|
56
56
|
__exportStar(require("./GetTableResponse.js"), exports);
|
|
57
57
|
__exportStar(require("./GridRange.js"), exports);
|
|
58
58
|
__exportStar(require("./ImageUrlContent.js"), exports);
|
|
59
|
-
__exportStar(require("./InputMessageContentItem.js"), exports);
|
|
60
59
|
__exportStar(require("./InputMessage.js"), exports);
|
|
60
|
+
__exportStar(require("./InputMessageContentItem.js"), exports);
|
|
61
61
|
__exportStar(require("./NumberFormatModel.js"), exports);
|
|
62
62
|
__exportStar(require("./NumberFormatType.js"), exports);
|
|
63
63
|
__exportStar(require("./PaginatedAssetsOut.js"), exports);
|
|
@@ -65,10 +65,10 @@ __exportStar(require("./PromptMessage.js"), exports);
|
|
|
65
65
|
__exportStar(require("./PublicAssetOut.js"), exports);
|
|
66
66
|
__exportStar(require("./ResearchAgentResponse.js"), exports);
|
|
67
67
|
__exportStar(require("./RunTaskResponse.js"), exports);
|
|
68
|
-
__exportStar(require("./SqlAgentResponse.js"), exports);
|
|
69
68
|
__exportStar(require("./SaveAssetRequestOut.js"), exports);
|
|
70
69
|
__exportStar(require("./Sheet.js"), exports);
|
|
71
70
|
__exportStar(require("./SheetOperationResponse.js"), exports);
|
|
71
|
+
__exportStar(require("./SqlAgentResponse.js"), exports);
|
|
72
72
|
__exportStar(require("./StructuredDataExtractorResponse.js"), exports);
|
|
73
73
|
__exportStar(require("./TableRowData.js"), exports);
|
|
74
74
|
__exportStar(require("./TextContent.js"), exports);
|