@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
|
@@ -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.SheetsClient = 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 SheetsClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Update a single cell in an Athena spreadsheet.
|
|
58
59
|
*
|
|
59
60
|
* @param {AthenaIntelligence.tools.UpdateSheetCellRequest} request
|
|
60
|
-
* @param {
|
|
61
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
62
|
*
|
|
62
63
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
63
64
|
*
|
|
@@ -74,8 +75,9 @@ class Sheets {
|
|
|
74
75
|
}
|
|
75
76
|
__updateCell(request, requestOptions) {
|
|
76
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
78
|
-
|
|
78
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
80
|
+
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);
|
|
79
81
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
82
|
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/sheets/cell/update"),
|
|
81
83
|
method: "POST",
|
|
@@ -87,6 +89,8 @@ class Sheets {
|
|
|
87
89
|
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,
|
|
88
90
|
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,
|
|
89
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
93
|
+
logging: this._options.logging,
|
|
90
94
|
});
|
|
91
95
|
if (_response.ok) {
|
|
92
96
|
return {
|
|
@@ -113,6 +117,11 @@ class Sheets {
|
|
|
113
117
|
body: _response.error.rawBody,
|
|
114
118
|
rawResponse: _response.rawResponse,
|
|
115
119
|
});
|
|
120
|
+
case "body-is-null":
|
|
121
|
+
throw new errors.AthenaIntelligenceError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
116
125
|
case "timeout":
|
|
117
126
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/cell/update.");
|
|
118
127
|
case "unknown":
|
|
@@ -127,7 +136,7 @@ class Sheets {
|
|
|
127
136
|
* Delete cells from an Athena spreadsheet.
|
|
128
137
|
*
|
|
129
138
|
* @param {AthenaIntelligence.tools.DeleteCellsRequest} request
|
|
130
|
-
* @param {
|
|
139
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
140
|
*
|
|
132
141
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
133
142
|
*
|
|
@@ -145,8 +154,9 @@ class Sheets {
|
|
|
145
154
|
}
|
|
146
155
|
__deleteCells(request, requestOptions) {
|
|
147
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
149
|
-
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
158
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
159
|
+
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);
|
|
150
160
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
151
161
|
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/sheets/cells/delete"),
|
|
152
162
|
method: "POST",
|
|
@@ -158,6 +168,8 @@ class Sheets {
|
|
|
158
168
|
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,
|
|
159
169
|
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,
|
|
160
170
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
171
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
172
|
+
logging: this._options.logging,
|
|
161
173
|
});
|
|
162
174
|
if (_response.ok) {
|
|
163
175
|
return {
|
|
@@ -184,6 +196,11 @@ class Sheets {
|
|
|
184
196
|
body: _response.error.rawBody,
|
|
185
197
|
rawResponse: _response.rawResponse,
|
|
186
198
|
});
|
|
199
|
+
case "body-is-null":
|
|
200
|
+
throw new errors.AthenaIntelligenceError({
|
|
201
|
+
statusCode: _response.error.statusCode,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
187
204
|
case "timeout":
|
|
188
205
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/cells/delete.");
|
|
189
206
|
case "unknown":
|
|
@@ -198,7 +215,7 @@ class Sheets {
|
|
|
198
215
|
* Delete columns from an Athena spreadsheet.
|
|
199
216
|
*
|
|
200
217
|
* @param {AthenaIntelligence.tools.DeleteColumnRequest} request
|
|
201
|
-
* @param {
|
|
218
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
202
219
|
*
|
|
203
220
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
204
221
|
*
|
|
@@ -213,8 +230,9 @@ class Sheets {
|
|
|
213
230
|
}
|
|
214
231
|
__deleteColumn(request, requestOptions) {
|
|
215
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
217
|
-
|
|
233
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
234
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
235
|
+
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);
|
|
218
236
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
219
237
|
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/sheets/column/delete"),
|
|
220
238
|
method: "POST",
|
|
@@ -226,6 +244,8 @@ class Sheets {
|
|
|
226
244
|
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,
|
|
227
245
|
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,
|
|
228
246
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
247
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
248
|
+
logging: this._options.logging,
|
|
229
249
|
});
|
|
230
250
|
if (_response.ok) {
|
|
231
251
|
return {
|
|
@@ -252,6 +272,11 @@ class Sheets {
|
|
|
252
272
|
body: _response.error.rawBody,
|
|
253
273
|
rawResponse: _response.rawResponse,
|
|
254
274
|
});
|
|
275
|
+
case "body-is-null":
|
|
276
|
+
throw new errors.AthenaIntelligenceError({
|
|
277
|
+
statusCode: _response.error.statusCode,
|
|
278
|
+
rawResponse: _response.rawResponse,
|
|
279
|
+
});
|
|
255
280
|
case "timeout":
|
|
256
281
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/column/delete.");
|
|
257
282
|
case "unknown":
|
|
@@ -266,7 +291,7 @@ class Sheets {
|
|
|
266
291
|
* Insert a column in an Athena spreadsheet.
|
|
267
292
|
*
|
|
268
293
|
* @param {AthenaIntelligence.tools.InsertColumnRequest} request
|
|
269
|
-
* @param {
|
|
294
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
270
295
|
*
|
|
271
296
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
272
297
|
*
|
|
@@ -281,8 +306,9 @@ class Sheets {
|
|
|
281
306
|
}
|
|
282
307
|
__insertColumn(request, requestOptions) {
|
|
283
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
285
|
-
|
|
309
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
310
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
311
|
+
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);
|
|
286
312
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
287
313
|
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/sheets/column/insert"),
|
|
288
314
|
method: "POST",
|
|
@@ -294,6 +320,8 @@ class Sheets {
|
|
|
294
320
|
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,
|
|
295
321
|
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,
|
|
296
322
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
323
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
324
|
+
logging: this._options.logging,
|
|
297
325
|
});
|
|
298
326
|
if (_response.ok) {
|
|
299
327
|
return {
|
|
@@ -320,6 +348,11 @@ class Sheets {
|
|
|
320
348
|
body: _response.error.rawBody,
|
|
321
349
|
rawResponse: _response.rawResponse,
|
|
322
350
|
});
|
|
351
|
+
case "body-is-null":
|
|
352
|
+
throw new errors.AthenaIntelligenceError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
rawResponse: _response.rawResponse,
|
|
355
|
+
});
|
|
323
356
|
case "timeout":
|
|
324
357
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/column/insert.");
|
|
325
358
|
case "unknown":
|
|
@@ -334,7 +367,7 @@ class Sheets {
|
|
|
334
367
|
* Clear formatting from cells in an Athena spreadsheet.
|
|
335
368
|
*
|
|
336
369
|
* @param {AthenaIntelligence.tools.ClearFormattingRequest} request
|
|
337
|
-
* @param {
|
|
370
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
338
371
|
*
|
|
339
372
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
340
373
|
*
|
|
@@ -352,8 +385,9 @@ class Sheets {
|
|
|
352
385
|
}
|
|
353
386
|
__clearFormatting(request, requestOptions) {
|
|
354
387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
356
|
-
|
|
388
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
389
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
390
|
+
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);
|
|
357
391
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
358
392
|
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/sheets/formatting/clear"),
|
|
359
393
|
method: "POST",
|
|
@@ -365,6 +399,8 @@ class Sheets {
|
|
|
365
399
|
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,
|
|
366
400
|
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,
|
|
367
401
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
402
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
403
|
+
logging: this._options.logging,
|
|
368
404
|
});
|
|
369
405
|
if (_response.ok) {
|
|
370
406
|
return {
|
|
@@ -391,6 +427,11 @@ class Sheets {
|
|
|
391
427
|
body: _response.error.rawBody,
|
|
392
428
|
rawResponse: _response.rawResponse,
|
|
393
429
|
});
|
|
430
|
+
case "body-is-null":
|
|
431
|
+
throw new errors.AthenaIntelligenceError({
|
|
432
|
+
statusCode: _response.error.statusCode,
|
|
433
|
+
rawResponse: _response.rawResponse,
|
|
434
|
+
});
|
|
394
435
|
case "timeout":
|
|
395
436
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/formatting/clear.");
|
|
396
437
|
case "unknown":
|
|
@@ -405,7 +446,7 @@ class Sheets {
|
|
|
405
446
|
* Clear a range of cells in an Athena spreadsheet.
|
|
406
447
|
*
|
|
407
448
|
* @param {AthenaIntelligence.tools.ClearSheetRangeRequest} request
|
|
408
|
-
* @param {
|
|
449
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
409
450
|
*
|
|
410
451
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
411
452
|
*
|
|
@@ -423,8 +464,9 @@ class Sheets {
|
|
|
423
464
|
}
|
|
424
465
|
__clearRange(request, requestOptions) {
|
|
425
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
427
|
-
|
|
467
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
468
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
469
|
+
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);
|
|
428
470
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
429
471
|
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/sheets/range/clear"),
|
|
430
472
|
method: "POST",
|
|
@@ -436,6 +478,8 @@ class Sheets {
|
|
|
436
478
|
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,
|
|
437
479
|
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,
|
|
438
480
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
481
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
482
|
+
logging: this._options.logging,
|
|
439
483
|
});
|
|
440
484
|
if (_response.ok) {
|
|
441
485
|
return {
|
|
@@ -462,6 +506,11 @@ class Sheets {
|
|
|
462
506
|
body: _response.error.rawBody,
|
|
463
507
|
rawResponse: _response.rawResponse,
|
|
464
508
|
});
|
|
509
|
+
case "body-is-null":
|
|
510
|
+
throw new errors.AthenaIntelligenceError({
|
|
511
|
+
statusCode: _response.error.statusCode,
|
|
512
|
+
rawResponse: _response.rawResponse,
|
|
513
|
+
});
|
|
465
514
|
case "timeout":
|
|
466
515
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/clear.");
|
|
467
516
|
case "unknown":
|
|
@@ -476,7 +525,7 @@ class Sheets {
|
|
|
476
525
|
* Apply formatting to a range of cells in an Athena spreadsheet.
|
|
477
526
|
*
|
|
478
527
|
* @param {AthenaIntelligence.tools.FormatSheetRangeRequest} request
|
|
479
|
-
* @param {
|
|
528
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
480
529
|
*
|
|
481
530
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
482
531
|
*
|
|
@@ -495,8 +544,9 @@ class Sheets {
|
|
|
495
544
|
}
|
|
496
545
|
__formatRange(request, requestOptions) {
|
|
497
546
|
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
499
|
-
|
|
547
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
548
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
549
|
+
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);
|
|
500
550
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
501
551
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/tools/sheets/range/format"),
|
|
502
552
|
method: "POST",
|
|
@@ -508,6 +558,8 @@ class Sheets {
|
|
|
508
558
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
509
559
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
510
560
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
561
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
562
|
+
logging: this._options.logging,
|
|
511
563
|
});
|
|
512
564
|
if (_response.ok) {
|
|
513
565
|
return {
|
|
@@ -534,6 +586,11 @@ class Sheets {
|
|
|
534
586
|
body: _response.error.rawBody,
|
|
535
587
|
rawResponse: _response.rawResponse,
|
|
536
588
|
});
|
|
589
|
+
case "body-is-null":
|
|
590
|
+
throw new errors.AthenaIntelligenceError({
|
|
591
|
+
statusCode: _response.error.statusCode,
|
|
592
|
+
rawResponse: _response.rawResponse,
|
|
593
|
+
});
|
|
537
594
|
case "timeout":
|
|
538
595
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/format.");
|
|
539
596
|
case "unknown":
|
|
@@ -548,7 +605,7 @@ class Sheets {
|
|
|
548
605
|
* Update a range of cells in an Athena spreadsheet.
|
|
549
606
|
*
|
|
550
607
|
* @param {AthenaIntelligence.tools.UpdateSheetRangeRequest} request
|
|
551
|
-
* @param {
|
|
608
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
552
609
|
*
|
|
553
610
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
554
611
|
*
|
|
@@ -565,8 +622,9 @@ class Sheets {
|
|
|
565
622
|
}
|
|
566
623
|
__updateRange(request, requestOptions) {
|
|
567
624
|
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
569
|
-
|
|
625
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
626
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
627
|
+
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);
|
|
570
628
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
571
629
|
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/sheets/range/update"),
|
|
572
630
|
method: "POST",
|
|
@@ -578,6 +636,8 @@ class Sheets {
|
|
|
578
636
|
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,
|
|
579
637
|
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,
|
|
580
638
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
639
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
640
|
+
logging: this._options.logging,
|
|
581
641
|
});
|
|
582
642
|
if (_response.ok) {
|
|
583
643
|
return {
|
|
@@ -604,6 +664,11 @@ class Sheets {
|
|
|
604
664
|
body: _response.error.rawBody,
|
|
605
665
|
rawResponse: _response.rawResponse,
|
|
606
666
|
});
|
|
667
|
+
case "body-is-null":
|
|
668
|
+
throw new errors.AthenaIntelligenceError({
|
|
669
|
+
statusCode: _response.error.statusCode,
|
|
670
|
+
rawResponse: _response.rawResponse,
|
|
671
|
+
});
|
|
607
672
|
case "timeout":
|
|
608
673
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/range/update.");
|
|
609
674
|
case "unknown":
|
|
@@ -618,7 +683,7 @@ class Sheets {
|
|
|
618
683
|
* Insert a row in an Athena spreadsheet.
|
|
619
684
|
*
|
|
620
685
|
* @param {AthenaIntelligence.tools.InsertRowRequest} request
|
|
621
|
-
* @param {
|
|
686
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
622
687
|
*
|
|
623
688
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
624
689
|
*
|
|
@@ -633,8 +698,9 @@ class Sheets {
|
|
|
633
698
|
}
|
|
634
699
|
__insertRow(request, requestOptions) {
|
|
635
700
|
return __awaiter(this, void 0, void 0, function* () {
|
|
636
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
637
|
-
|
|
701
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
702
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
703
|
+
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);
|
|
638
704
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
639
705
|
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/sheets/row/insert"),
|
|
640
706
|
method: "POST",
|
|
@@ -646,6 +712,8 @@ class Sheets {
|
|
|
646
712
|
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,
|
|
647
713
|
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,
|
|
648
714
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
715
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
716
|
+
logging: this._options.logging,
|
|
649
717
|
});
|
|
650
718
|
if (_response.ok) {
|
|
651
719
|
return {
|
|
@@ -672,6 +740,11 @@ class Sheets {
|
|
|
672
740
|
body: _response.error.rawBody,
|
|
673
741
|
rawResponse: _response.rawResponse,
|
|
674
742
|
});
|
|
743
|
+
case "body-is-null":
|
|
744
|
+
throw new errors.AthenaIntelligenceError({
|
|
745
|
+
statusCode: _response.error.statusCode,
|
|
746
|
+
rawResponse: _response.rawResponse,
|
|
747
|
+
});
|
|
675
748
|
case "timeout":
|
|
676
749
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/row/insert.");
|
|
677
750
|
case "unknown":
|
|
@@ -686,7 +759,7 @@ class Sheets {
|
|
|
686
759
|
* Duplicate an existing sheet in an Athena spreadsheet.
|
|
687
760
|
*
|
|
688
761
|
* @param {AthenaIntelligence.tools.DuplicateSheetRequest} request
|
|
689
|
-
* @param {
|
|
762
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
690
763
|
*
|
|
691
764
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
692
765
|
*
|
|
@@ -700,8 +773,9 @@ class Sheets {
|
|
|
700
773
|
}
|
|
701
774
|
__duplicateSheet(request, requestOptions) {
|
|
702
775
|
return __awaiter(this, void 0, void 0, function* () {
|
|
703
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
704
|
-
|
|
776
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
777
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
778
|
+
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);
|
|
705
779
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
706
780
|
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/sheets/sheet/duplicate"),
|
|
707
781
|
method: "POST",
|
|
@@ -713,6 +787,8 @@ class Sheets {
|
|
|
713
787
|
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,
|
|
714
788
|
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,
|
|
715
789
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
790
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
791
|
+
logging: this._options.logging,
|
|
716
792
|
});
|
|
717
793
|
if (_response.ok) {
|
|
718
794
|
return {
|
|
@@ -739,6 +815,11 @@ class Sheets {
|
|
|
739
815
|
body: _response.error.rawBody,
|
|
740
816
|
rawResponse: _response.rawResponse,
|
|
741
817
|
});
|
|
818
|
+
case "body-is-null":
|
|
819
|
+
throw new errors.AthenaIntelligenceError({
|
|
820
|
+
statusCode: _response.error.statusCode,
|
|
821
|
+
rawResponse: _response.rawResponse,
|
|
822
|
+
});
|
|
742
823
|
case "timeout":
|
|
743
824
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/sheet/duplicate.");
|
|
744
825
|
case "unknown":
|
|
@@ -753,7 +834,7 @@ class Sheets {
|
|
|
753
834
|
* Create a new tab in an Athena spreadsheet.
|
|
754
835
|
*
|
|
755
836
|
* @param {AthenaIntelligence.tools.CreateNewSheetTabRequest} request
|
|
756
|
-
* @param {
|
|
837
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
757
838
|
*
|
|
758
839
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
759
840
|
*
|
|
@@ -774,8 +855,9 @@ class Sheets {
|
|
|
774
855
|
}
|
|
775
856
|
__createTab(request, requestOptions) {
|
|
776
857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
777
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
778
|
-
|
|
858
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
859
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
860
|
+
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);
|
|
779
861
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
780
862
|
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/sheets/tab/create"),
|
|
781
863
|
method: "POST",
|
|
@@ -787,6 +869,8 @@ class Sheets {
|
|
|
787
869
|
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,
|
|
788
870
|
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,
|
|
789
871
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
872
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
873
|
+
logging: this._options.logging,
|
|
790
874
|
});
|
|
791
875
|
if (_response.ok) {
|
|
792
876
|
return {
|
|
@@ -813,6 +897,11 @@ class Sheets {
|
|
|
813
897
|
body: _response.error.rawBody,
|
|
814
898
|
rawResponse: _response.rawResponse,
|
|
815
899
|
});
|
|
900
|
+
case "body-is-null":
|
|
901
|
+
throw new errors.AthenaIntelligenceError({
|
|
902
|
+
statusCode: _response.error.statusCode,
|
|
903
|
+
rawResponse: _response.rawResponse,
|
|
904
|
+
});
|
|
816
905
|
case "timeout":
|
|
817
906
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/tab/create.");
|
|
818
907
|
case "unknown":
|
|
@@ -827,7 +916,7 @@ class Sheets {
|
|
|
827
916
|
* Delete a column from a table within an Athena spreadsheet.
|
|
828
917
|
*
|
|
829
918
|
* @param {AthenaIntelligence.tools.DeleteTableColumnRequest} request
|
|
830
|
-
* @param {
|
|
919
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
831
920
|
*
|
|
832
921
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
833
922
|
*
|
|
@@ -843,8 +932,9 @@ class Sheets {
|
|
|
843
932
|
}
|
|
844
933
|
__deleteTableColumn(request, requestOptions) {
|
|
845
934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
846
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
847
|
-
|
|
935
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
936
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
937
|
+
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);
|
|
848
938
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
849
939
|
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/sheets/table/column/delete"),
|
|
850
940
|
method: "POST",
|
|
@@ -856,6 +946,8 @@ class Sheets {
|
|
|
856
946
|
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,
|
|
857
947
|
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,
|
|
858
948
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
949
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
950
|
+
logging: this._options.logging,
|
|
859
951
|
});
|
|
860
952
|
if (_response.ok) {
|
|
861
953
|
return {
|
|
@@ -882,6 +974,11 @@ class Sheets {
|
|
|
882
974
|
body: _response.error.rawBody,
|
|
883
975
|
rawResponse: _response.rawResponse,
|
|
884
976
|
});
|
|
977
|
+
case "body-is-null":
|
|
978
|
+
throw new errors.AthenaIntelligenceError({
|
|
979
|
+
statusCode: _response.error.statusCode,
|
|
980
|
+
rawResponse: _response.rawResponse,
|
|
981
|
+
});
|
|
885
982
|
case "timeout":
|
|
886
983
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/column/delete.");
|
|
887
984
|
case "unknown":
|
|
@@ -896,7 +993,7 @@ class Sheets {
|
|
|
896
993
|
* Insert a column in a table within an Athena spreadsheet.
|
|
897
994
|
*
|
|
898
995
|
* @param {AthenaIntelligence.tools.InsertTableColumnRequest} request
|
|
899
|
-
* @param {
|
|
996
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
900
997
|
*
|
|
901
998
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
902
999
|
*
|
|
@@ -913,8 +1010,9 @@ class Sheets {
|
|
|
913
1010
|
}
|
|
914
1011
|
__insertTableColumn(request, requestOptions) {
|
|
915
1012
|
return __awaiter(this, void 0, void 0, function* () {
|
|
916
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
917
|
-
|
|
1013
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1014
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1015
|
+
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);
|
|
918
1016
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
919
1017
|
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/sheets/table/column/insert"),
|
|
920
1018
|
method: "POST",
|
|
@@ -926,6 +1024,8 @@ class Sheets {
|
|
|
926
1024
|
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,
|
|
927
1025
|
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,
|
|
928
1026
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1027
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1028
|
+
logging: this._options.logging,
|
|
929
1029
|
});
|
|
930
1030
|
if (_response.ok) {
|
|
931
1031
|
return {
|
|
@@ -952,6 +1052,11 @@ class Sheets {
|
|
|
952
1052
|
body: _response.error.rawBody,
|
|
953
1053
|
rawResponse: _response.rawResponse,
|
|
954
1054
|
});
|
|
1055
|
+
case "body-is-null":
|
|
1056
|
+
throw new errors.AthenaIntelligenceError({
|
|
1057
|
+
statusCode: _response.error.statusCode,
|
|
1058
|
+
rawResponse: _response.rawResponse,
|
|
1059
|
+
});
|
|
955
1060
|
case "timeout":
|
|
956
1061
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/column/insert.");
|
|
957
1062
|
case "unknown":
|
|
@@ -966,7 +1071,7 @@ class Sheets {
|
|
|
966
1071
|
* Create a table in an Athena spreadsheet.
|
|
967
1072
|
*
|
|
968
1073
|
* @param {AthenaIntelligence.tools.CreateTableRequest} request
|
|
969
|
-
* @param {
|
|
1074
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
970
1075
|
*
|
|
971
1076
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
972
1077
|
*
|
|
@@ -986,8 +1091,9 @@ class Sheets {
|
|
|
986
1091
|
}
|
|
987
1092
|
__createTable(request, requestOptions) {
|
|
988
1093
|
return __awaiter(this, void 0, void 0, function* () {
|
|
989
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
990
|
-
|
|
1094
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1095
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1096
|
+
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);
|
|
991
1097
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
992
1098
|
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/sheets/table/create"),
|
|
993
1099
|
method: "POST",
|
|
@@ -999,6 +1105,8 @@ class Sheets {
|
|
|
999
1105
|
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,
|
|
1000
1106
|
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,
|
|
1001
1107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1108
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1109
|
+
logging: this._options.logging,
|
|
1002
1110
|
});
|
|
1003
1111
|
if (_response.ok) {
|
|
1004
1112
|
return {
|
|
@@ -1025,6 +1133,11 @@ class Sheets {
|
|
|
1025
1133
|
body: _response.error.rawBody,
|
|
1026
1134
|
rawResponse: _response.rawResponse,
|
|
1027
1135
|
});
|
|
1136
|
+
case "body-is-null":
|
|
1137
|
+
throw new errors.AthenaIntelligenceError({
|
|
1138
|
+
statusCode: _response.error.statusCode,
|
|
1139
|
+
rawResponse: _response.rawResponse,
|
|
1140
|
+
});
|
|
1028
1141
|
case "timeout":
|
|
1029
1142
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/create.");
|
|
1030
1143
|
case "unknown":
|
|
@@ -1039,7 +1152,7 @@ class Sheets {
|
|
|
1039
1152
|
* Retrieve table data from an Athena spreadsheet.
|
|
1040
1153
|
*
|
|
1041
1154
|
* @param {AthenaIntelligence.tools.GetTableRequest} request
|
|
1042
|
-
* @param {
|
|
1155
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1043
1156
|
*
|
|
1044
1157
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1045
1158
|
*
|
|
@@ -1054,8 +1167,9 @@ class Sheets {
|
|
|
1054
1167
|
}
|
|
1055
1168
|
__getTable(request, requestOptions) {
|
|
1056
1169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1057
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1058
|
-
|
|
1170
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1171
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1172
|
+
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);
|
|
1059
1173
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1060
1174
|
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/sheets/table/get"),
|
|
1061
1175
|
method: "POST",
|
|
@@ -1067,6 +1181,8 @@ class Sheets {
|
|
|
1067
1181
|
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,
|
|
1068
1182
|
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,
|
|
1069
1183
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1184
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1185
|
+
logging: this._options.logging,
|
|
1070
1186
|
});
|
|
1071
1187
|
if (_response.ok) {
|
|
1072
1188
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -1090,6 +1206,11 @@ class Sheets {
|
|
|
1090
1206
|
body: _response.error.rawBody,
|
|
1091
1207
|
rawResponse: _response.rawResponse,
|
|
1092
1208
|
});
|
|
1209
|
+
case "body-is-null":
|
|
1210
|
+
throw new errors.AthenaIntelligenceError({
|
|
1211
|
+
statusCode: _response.error.statusCode,
|
|
1212
|
+
rawResponse: _response.rawResponse,
|
|
1213
|
+
});
|
|
1093
1214
|
case "timeout":
|
|
1094
1215
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/get.");
|
|
1095
1216
|
case "unknown":
|
|
@@ -1104,7 +1225,7 @@ class Sheets {
|
|
|
1104
1225
|
* Insert rows into a table in an Athena spreadsheet.
|
|
1105
1226
|
*
|
|
1106
1227
|
* @param {AthenaIntelligence.tools.InsertTableRowRequest} request
|
|
1107
|
-
* @param {
|
|
1228
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1108
1229
|
*
|
|
1109
1230
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1110
1231
|
*
|
|
@@ -1122,8 +1243,9 @@ class Sheets {
|
|
|
1122
1243
|
}
|
|
1123
1244
|
__insertTableRow(request, requestOptions) {
|
|
1124
1245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1125
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1126
|
-
|
|
1246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1247
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1248
|
+
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);
|
|
1127
1249
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1128
1250
|
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/sheets/table/insert-row"),
|
|
1129
1251
|
method: "POST",
|
|
@@ -1135,6 +1257,8 @@ class Sheets {
|
|
|
1135
1257
|
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,
|
|
1136
1258
|
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,
|
|
1137
1259
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1260
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1261
|
+
logging: this._options.logging,
|
|
1138
1262
|
});
|
|
1139
1263
|
if (_response.ok) {
|
|
1140
1264
|
return {
|
|
@@ -1161,6 +1285,11 @@ class Sheets {
|
|
|
1161
1285
|
body: _response.error.rawBody,
|
|
1162
1286
|
rawResponse: _response.rawResponse,
|
|
1163
1287
|
});
|
|
1288
|
+
case "body-is-null":
|
|
1289
|
+
throw new errors.AthenaIntelligenceError({
|
|
1290
|
+
statusCode: _response.error.statusCode,
|
|
1291
|
+
rawResponse: _response.rawResponse,
|
|
1292
|
+
});
|
|
1164
1293
|
case "timeout":
|
|
1165
1294
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/insert-row.");
|
|
1166
1295
|
case "unknown":
|
|
@@ -1175,7 +1304,7 @@ class Sheets {
|
|
|
1175
1304
|
* Update an existing table in an Athena spreadsheet.
|
|
1176
1305
|
*
|
|
1177
1306
|
* @param {AthenaIntelligence.tools.UpdateTableRequest} request
|
|
1178
|
-
* @param {
|
|
1307
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1179
1308
|
*
|
|
1180
1309
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1181
1310
|
*
|
|
@@ -1195,8 +1324,9 @@ class Sheets {
|
|
|
1195
1324
|
}
|
|
1196
1325
|
__updateTable(request, requestOptions) {
|
|
1197
1326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1198
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1199
|
-
|
|
1327
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1328
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1329
|
+
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);
|
|
1200
1330
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1201
1331
|
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/sheets/table/update"),
|
|
1202
1332
|
method: "POST",
|
|
@@ -1208,6 +1338,8 @@ class Sheets {
|
|
|
1208
1338
|
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,
|
|
1209
1339
|
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,
|
|
1210
1340
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1341
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1342
|
+
logging: this._options.logging,
|
|
1211
1343
|
});
|
|
1212
1344
|
if (_response.ok) {
|
|
1213
1345
|
return {
|
|
@@ -1234,6 +1366,11 @@ class Sheets {
|
|
|
1234
1366
|
body: _response.error.rawBody,
|
|
1235
1367
|
rawResponse: _response.rawResponse,
|
|
1236
1368
|
});
|
|
1369
|
+
case "body-is-null":
|
|
1370
|
+
throw new errors.AthenaIntelligenceError({
|
|
1371
|
+
statusCode: _response.error.statusCode,
|
|
1372
|
+
rawResponse: _response.rawResponse,
|
|
1373
|
+
});
|
|
1237
1374
|
case "timeout":
|
|
1238
1375
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/sheets/table/update.");
|
|
1239
1376
|
case "unknown":
|
|
@@ -1244,11 +1381,5 @@ class Sheets {
|
|
|
1244
1381
|
}
|
|
1245
1382
|
});
|
|
1246
1383
|
}
|
|
1247
|
-
_getCustomAuthorizationHeaders() {
|
|
1248
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1249
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
1250
|
-
return { "X-API-KEY": apiKeyValue };
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
1384
|
}
|
|
1254
|
-
exports.
|
|
1385
|
+
exports.SheetsClient = SheetsClient;
|