@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,19 +43,20 @@ 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"));
|
|
46
|
+
exports.CalendarClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
49
48
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
51
|
-
class
|
|
52
|
-
constructor(
|
|
53
|
-
this._options =
|
|
52
|
+
class CalendarClient {
|
|
53
|
+
constructor(options) {
|
|
54
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Coming soon! List calendar events with optional filtering.
|
|
57
58
|
*
|
|
58
|
-
* @param {
|
|
59
|
+
* @param {CalendarClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
60
|
*
|
|
60
61
|
* @example
|
|
61
62
|
* await client.tools.calendar.listEvents()
|
|
@@ -65,8 +66,9 @@ class Calendar {
|
|
|
65
66
|
}
|
|
66
67
|
__listEvents(requestOptions) {
|
|
67
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
69
|
-
|
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
70
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
71
|
+
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);
|
|
70
72
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
71
73
|
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/calendar/events"),
|
|
72
74
|
method: "GET",
|
|
@@ -75,6 +77,8 @@ class Calendar {
|
|
|
75
77
|
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,
|
|
76
78
|
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,
|
|
77
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
81
|
+
logging: this._options.logging,
|
|
78
82
|
});
|
|
79
83
|
if (_response.ok) {
|
|
80
84
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -93,6 +97,11 @@ class Calendar {
|
|
|
93
97
|
body: _response.error.rawBody,
|
|
94
98
|
rawResponse: _response.rawResponse,
|
|
95
99
|
});
|
|
100
|
+
case "body-is-null":
|
|
101
|
+
throw new errors.AthenaIntelligenceError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
rawResponse: _response.rawResponse,
|
|
104
|
+
});
|
|
96
105
|
case "timeout":
|
|
97
106
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/calendar/events.");
|
|
98
107
|
case "unknown":
|
|
@@ -106,7 +115,7 @@ class Calendar {
|
|
|
106
115
|
/**
|
|
107
116
|
* Coming soon! Create new calendar events.
|
|
108
117
|
*
|
|
109
|
-
* @param {
|
|
118
|
+
* @param {CalendarClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
119
|
*
|
|
111
120
|
* @example
|
|
112
121
|
* await client.tools.calendar.createEvent()
|
|
@@ -116,8 +125,9 @@ class Calendar {
|
|
|
116
125
|
}
|
|
117
126
|
__createEvent(requestOptions) {
|
|
118
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
120
|
-
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
129
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
130
|
+
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);
|
|
121
131
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
122
132
|
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/calendar/events"),
|
|
123
133
|
method: "POST",
|
|
@@ -126,6 +136,8 @@ class Calendar {
|
|
|
126
136
|
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,
|
|
127
137
|
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,
|
|
128
138
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
139
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
140
|
+
logging: this._options.logging,
|
|
129
141
|
});
|
|
130
142
|
if (_response.ok) {
|
|
131
143
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -144,6 +156,11 @@ class Calendar {
|
|
|
144
156
|
body: _response.error.rawBody,
|
|
145
157
|
rawResponse: _response.rawResponse,
|
|
146
158
|
});
|
|
159
|
+
case "body-is-null":
|
|
160
|
+
throw new errors.AthenaIntelligenceError({
|
|
161
|
+
statusCode: _response.error.statusCode,
|
|
162
|
+
rawResponse: _response.rawResponse,
|
|
163
|
+
});
|
|
147
164
|
case "timeout":
|
|
148
165
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/calendar/events.");
|
|
149
166
|
case "unknown":
|
|
@@ -154,11 +171,5 @@ class Calendar {
|
|
|
154
171
|
}
|
|
155
172
|
});
|
|
156
173
|
}
|
|
157
|
-
_getCustomAuthorizationHeaders() {
|
|
158
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
160
|
-
return { "X-API-KEY": apiKeyValue };
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
174
|
}
|
|
164
|
-
exports.
|
|
175
|
+
exports.CalendarClient = CalendarClient;
|
|
@@ -1,43 +1,43 @@
|
|
|
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
|
-
export declare namespace
|
|
4
|
+
export declare namespace EmailClient {
|
|
4
5
|
interface Options extends BaseClientOptions {
|
|
5
6
|
}
|
|
6
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
protected readonly _options:
|
|
11
|
-
constructor(
|
|
10
|
+
export declare class EmailClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<EmailClient.Options>;
|
|
12
|
+
constructor(options: EmailClient.Options);
|
|
12
13
|
/**
|
|
13
14
|
* Coming soon! Create email drafts with specified content and recipients.
|
|
14
15
|
*
|
|
15
|
-
* @param {
|
|
16
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* await client.tools.email.createDraft()
|
|
19
20
|
*/
|
|
20
|
-
createDraft(requestOptions?:
|
|
21
|
+
createDraft(requestOptions?: EmailClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
21
22
|
private __createDraft;
|
|
22
23
|
/**
|
|
23
24
|
* Coming soon! Search through emails with configurable filters.
|
|
24
25
|
*
|
|
25
|
-
* @param {
|
|
26
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
28
29
|
* await client.tools.email.search()
|
|
29
30
|
*/
|
|
30
|
-
search(requestOptions?:
|
|
31
|
+
search(requestOptions?: EmailClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
31
32
|
private __search;
|
|
32
33
|
/**
|
|
33
34
|
* Coming soon! Send emails to specified recipients.
|
|
34
35
|
*
|
|
35
|
-
* @param {
|
|
36
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
38
39
|
* await client.tools.email.send()
|
|
39
40
|
*/
|
|
40
|
-
send(requestOptions?:
|
|
41
|
+
send(requestOptions?: EmailClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
41
42
|
private __send;
|
|
42
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
43
43
|
}
|
|
@@ -43,19 +43,20 @@ 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"));
|
|
46
|
+
exports.EmailClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
49
48
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
51
|
-
class
|
|
52
|
-
constructor(
|
|
53
|
-
this._options =
|
|
52
|
+
class EmailClient {
|
|
53
|
+
constructor(options) {
|
|
54
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Coming soon! Create email drafts with specified content and recipients.
|
|
57
58
|
*
|
|
58
|
-
* @param {
|
|
59
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
60
|
*
|
|
60
61
|
* @example
|
|
61
62
|
* await client.tools.email.createDraft()
|
|
@@ -65,8 +66,9 @@ class Email {
|
|
|
65
66
|
}
|
|
66
67
|
__createDraft(requestOptions) {
|
|
67
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
69
|
-
|
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
70
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
71
|
+
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);
|
|
70
72
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
71
73
|
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/email/draft"),
|
|
72
74
|
method: "POST",
|
|
@@ -75,6 +77,8 @@ class Email {
|
|
|
75
77
|
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,
|
|
76
78
|
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,
|
|
77
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
81
|
+
logging: this._options.logging,
|
|
78
82
|
});
|
|
79
83
|
if (_response.ok) {
|
|
80
84
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -93,6 +97,11 @@ class Email {
|
|
|
93
97
|
body: _response.error.rawBody,
|
|
94
98
|
rawResponse: _response.rawResponse,
|
|
95
99
|
});
|
|
100
|
+
case "body-is-null":
|
|
101
|
+
throw new errors.AthenaIntelligenceError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
rawResponse: _response.rawResponse,
|
|
104
|
+
});
|
|
96
105
|
case "timeout":
|
|
97
106
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/email/draft.");
|
|
98
107
|
case "unknown":
|
|
@@ -106,7 +115,7 @@ class Email {
|
|
|
106
115
|
/**
|
|
107
116
|
* Coming soon! Search through emails with configurable filters.
|
|
108
117
|
*
|
|
109
|
-
* @param {
|
|
118
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
119
|
*
|
|
111
120
|
* @example
|
|
112
121
|
* await client.tools.email.search()
|
|
@@ -116,8 +125,9 @@ class Email {
|
|
|
116
125
|
}
|
|
117
126
|
__search(requestOptions) {
|
|
118
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
120
|
-
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
129
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
130
|
+
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);
|
|
121
131
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
122
132
|
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/email/search"),
|
|
123
133
|
method: "GET",
|
|
@@ -126,6 +136,8 @@ class Email {
|
|
|
126
136
|
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,
|
|
127
137
|
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,
|
|
128
138
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
139
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
140
|
+
logging: this._options.logging,
|
|
129
141
|
});
|
|
130
142
|
if (_response.ok) {
|
|
131
143
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -144,6 +156,11 @@ class Email {
|
|
|
144
156
|
body: _response.error.rawBody,
|
|
145
157
|
rawResponse: _response.rawResponse,
|
|
146
158
|
});
|
|
159
|
+
case "body-is-null":
|
|
160
|
+
throw new errors.AthenaIntelligenceError({
|
|
161
|
+
statusCode: _response.error.statusCode,
|
|
162
|
+
rawResponse: _response.rawResponse,
|
|
163
|
+
});
|
|
147
164
|
case "timeout":
|
|
148
165
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling GET /api/v0/tools/email/search.");
|
|
149
166
|
case "unknown":
|
|
@@ -157,7 +174,7 @@ class Email {
|
|
|
157
174
|
/**
|
|
158
175
|
* Coming soon! Send emails to specified recipients.
|
|
159
176
|
*
|
|
160
|
-
* @param {
|
|
177
|
+
* @param {EmailClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
178
|
*
|
|
162
179
|
* @example
|
|
163
180
|
* await client.tools.email.send()
|
|
@@ -167,8 +184,9 @@ class Email {
|
|
|
167
184
|
}
|
|
168
185
|
__send(requestOptions) {
|
|
169
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
171
|
-
|
|
187
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
188
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
189
|
+
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);
|
|
172
190
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
173
191
|
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/email/send"),
|
|
174
192
|
method: "POST",
|
|
@@ -177,6 +195,8 @@ class Email {
|
|
|
177
195
|
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,
|
|
178
196
|
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,
|
|
179
197
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
198
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
199
|
+
logging: this._options.logging,
|
|
180
200
|
});
|
|
181
201
|
if (_response.ok) {
|
|
182
202
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -195,6 +215,11 @@ class Email {
|
|
|
195
215
|
body: _response.error.rawBody,
|
|
196
216
|
rawResponse: _response.rawResponse,
|
|
197
217
|
});
|
|
218
|
+
case "body-is-null":
|
|
219
|
+
throw new errors.AthenaIntelligenceError({
|
|
220
|
+
statusCode: _response.error.statusCode,
|
|
221
|
+
rawResponse: _response.rawResponse,
|
|
222
|
+
});
|
|
198
223
|
case "timeout":
|
|
199
224
|
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/tools/email/send.");
|
|
200
225
|
case "unknown":
|
|
@@ -205,11 +230,5 @@ class Email {
|
|
|
205
230
|
}
|
|
206
231
|
});
|
|
207
232
|
}
|
|
208
|
-
_getCustomAuthorizationHeaders() {
|
|
209
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
211
|
-
return { "X-API-KEY": apiKeyValue };
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
233
|
}
|
|
215
|
-
exports.
|
|
234
|
+
exports.EmailClient = EmailClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as calendar from "./calendar/index.js";
|
|
2
2
|
export * as email from "./email/index.js";
|
|
3
|
-
export * as sheets from "./sheets/index.js";
|
|
4
|
-
export * as structuredDataExtractor from "./structuredDataExtractor/index.js";
|
|
5
|
-
export * as tasks from "./tasks/index.js";
|
|
6
3
|
export * from "./sheets/client/requests/index.js";
|
|
4
|
+
export * as sheets from "./sheets/index.js";
|
|
7
5
|
export * from "./structuredDataExtractor/client/requests/index.js";
|
|
6
|
+
export * as structuredDataExtractor from "./structuredDataExtractor/index.js";
|
|
8
7
|
export * from "./tasks/client/requests/index.js";
|
|
8
|
+
export * as tasks from "./tasks/index.js";
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.tasks = exports.structuredDataExtractor = exports.sheets = exports.email = exports.calendar = void 0;
|
|
40
40
|
exports.calendar = __importStar(require("./calendar/index.js"));
|
|
41
41
|
exports.email = __importStar(require("./email/index.js"));
|
|
42
|
-
exports.sheets = __importStar(require("./sheets/index.js"));
|
|
43
|
-
exports.structuredDataExtractor = __importStar(require("./structuredDataExtractor/index.js"));
|
|
44
|
-
exports.tasks = __importStar(require("./tasks/index.js"));
|
|
45
42
|
__exportStar(require("./sheets/client/requests/index.js"), exports);
|
|
43
|
+
exports.sheets = __importStar(require("./sheets/index.js"));
|
|
46
44
|
__exportStar(require("./structuredDataExtractor/client/requests/index.js"), exports);
|
|
45
|
+
exports.structuredDataExtractor = __importStar(require("./structuredDataExtractor/index.js"));
|
|
47
46
|
__exportStar(require("./tasks/client/requests/index.js"), exports);
|
|
47
|
+
exports.tasks = __importStar(require("./tasks/index.js"));
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
2
3
|
import * as core from "../../../../../../core/index.js";
|
|
3
4
|
import * as AthenaIntelligence from "../../../../../index.js";
|
|
4
|
-
export declare namespace
|
|
5
|
+
export declare namespace SheetsClient {
|
|
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 SheetsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SheetsClient.Options>;
|
|
13
|
+
constructor(options: SheetsClient.Options);
|
|
13
14
|
/**
|
|
14
15
|
* Update a single cell in an Athena spreadsheet.
|
|
15
16
|
*
|
|
16
17
|
* @param {AthenaIntelligence.tools.UpdateSheetCellRequest} request
|
|
17
|
-
* @param {
|
|
18
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
20
21
|
*
|
|
@@ -26,13 +27,13 @@ export declare class Sheets {
|
|
|
26
27
|
* value: "value"
|
|
27
28
|
* })
|
|
28
29
|
*/
|
|
29
|
-
updateCell(request: AthenaIntelligence.tools.UpdateSheetCellRequest, requestOptions?:
|
|
30
|
+
updateCell(request: AthenaIntelligence.tools.UpdateSheetCellRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
30
31
|
private __updateCell;
|
|
31
32
|
/**
|
|
32
33
|
* Delete cells from an Athena spreadsheet.
|
|
33
34
|
*
|
|
34
35
|
* @param {AthenaIntelligence.tools.DeleteCellsRequest} request
|
|
35
|
-
* @param {
|
|
36
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
37
|
*
|
|
37
38
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
38
39
|
*
|
|
@@ -45,13 +46,13 @@ export declare class Sheets {
|
|
|
45
46
|
* start_row_index: 1
|
|
46
47
|
* })
|
|
47
48
|
*/
|
|
48
|
-
deleteCells(request: AthenaIntelligence.tools.DeleteCellsRequest, requestOptions?:
|
|
49
|
+
deleteCells(request: AthenaIntelligence.tools.DeleteCellsRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
49
50
|
private __deleteCells;
|
|
50
51
|
/**
|
|
51
52
|
* Delete columns from an Athena spreadsheet.
|
|
52
53
|
*
|
|
53
54
|
* @param {AthenaIntelligence.tools.DeleteColumnRequest} request
|
|
54
|
-
* @param {
|
|
55
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
56
|
*
|
|
56
57
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
57
58
|
*
|
|
@@ -61,13 +62,13 @@ export declare class Sheets {
|
|
|
61
62
|
* column_indexes: [1]
|
|
62
63
|
* })
|
|
63
64
|
*/
|
|
64
|
-
deleteColumn(request: AthenaIntelligence.tools.DeleteColumnRequest, requestOptions?:
|
|
65
|
+
deleteColumn(request: AthenaIntelligence.tools.DeleteColumnRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
65
66
|
private __deleteColumn;
|
|
66
67
|
/**
|
|
67
68
|
* Insert a column in an Athena spreadsheet.
|
|
68
69
|
*
|
|
69
70
|
* @param {AthenaIntelligence.tools.InsertColumnRequest} request
|
|
70
|
-
* @param {
|
|
71
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
72
|
*
|
|
72
73
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
73
74
|
*
|
|
@@ -77,13 +78,13 @@ export declare class Sheets {
|
|
|
77
78
|
* reference_column_index: 1
|
|
78
79
|
* })
|
|
79
80
|
*/
|
|
80
|
-
insertColumn(request: AthenaIntelligence.tools.InsertColumnRequest, requestOptions?:
|
|
81
|
+
insertColumn(request: AthenaIntelligence.tools.InsertColumnRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
81
82
|
private __insertColumn;
|
|
82
83
|
/**
|
|
83
84
|
* Clear formatting from cells in an Athena spreadsheet.
|
|
84
85
|
*
|
|
85
86
|
* @param {AthenaIntelligence.tools.ClearFormattingRequest} request
|
|
86
|
-
* @param {
|
|
87
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
88
|
*
|
|
88
89
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
89
90
|
*
|
|
@@ -96,13 +97,13 @@ export declare class Sheets {
|
|
|
96
97
|
* start_row_index: 1
|
|
97
98
|
* })
|
|
98
99
|
*/
|
|
99
|
-
clearFormatting(request: AthenaIntelligence.tools.ClearFormattingRequest, requestOptions?:
|
|
100
|
+
clearFormatting(request: AthenaIntelligence.tools.ClearFormattingRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
100
101
|
private __clearFormatting;
|
|
101
102
|
/**
|
|
102
103
|
* Clear a range of cells in an Athena spreadsheet.
|
|
103
104
|
*
|
|
104
105
|
* @param {AthenaIntelligence.tools.ClearSheetRangeRequest} request
|
|
105
|
-
* @param {
|
|
106
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
107
|
*
|
|
107
108
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
108
109
|
*
|
|
@@ -115,13 +116,13 @@ export declare class Sheets {
|
|
|
115
116
|
* start_row: 1
|
|
116
117
|
* })
|
|
117
118
|
*/
|
|
118
|
-
clearRange(request: AthenaIntelligence.tools.ClearSheetRangeRequest, requestOptions?:
|
|
119
|
+
clearRange(request: AthenaIntelligence.tools.ClearSheetRangeRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
119
120
|
private __clearRange;
|
|
120
121
|
/**
|
|
121
122
|
* Apply formatting to a range of cells in an Athena spreadsheet.
|
|
122
123
|
*
|
|
123
124
|
* @param {AthenaIntelligence.tools.FormatSheetRangeRequest} request
|
|
124
|
-
* @param {
|
|
125
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
126
|
*
|
|
126
127
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
127
128
|
*
|
|
@@ -135,13 +136,13 @@ export declare class Sheets {
|
|
|
135
136
|
* start_row: 1
|
|
136
137
|
* })
|
|
137
138
|
*/
|
|
138
|
-
formatRange(request: AthenaIntelligence.tools.FormatSheetRangeRequest, requestOptions?:
|
|
139
|
+
formatRange(request: AthenaIntelligence.tools.FormatSheetRangeRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
139
140
|
private __formatRange;
|
|
140
141
|
/**
|
|
141
142
|
* Update a range of cells in an Athena spreadsheet.
|
|
142
143
|
*
|
|
143
144
|
* @param {AthenaIntelligence.tools.UpdateSheetRangeRequest} request
|
|
144
|
-
* @param {
|
|
145
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
146
|
*
|
|
146
147
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
147
148
|
*
|
|
@@ -153,13 +154,13 @@ export declare class Sheets {
|
|
|
153
154
|
* values: [[]]
|
|
154
155
|
* })
|
|
155
156
|
*/
|
|
156
|
-
updateRange(request: AthenaIntelligence.tools.UpdateSheetRangeRequest, requestOptions?:
|
|
157
|
+
updateRange(request: AthenaIntelligence.tools.UpdateSheetRangeRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
157
158
|
private __updateRange;
|
|
158
159
|
/**
|
|
159
160
|
* Insert a row in an Athena spreadsheet.
|
|
160
161
|
*
|
|
161
162
|
* @param {AthenaIntelligence.tools.InsertRowRequest} request
|
|
162
|
-
* @param {
|
|
163
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
164
|
*
|
|
164
165
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
165
166
|
*
|
|
@@ -169,13 +170,13 @@ export declare class Sheets {
|
|
|
169
170
|
* reference_row_index: 1
|
|
170
171
|
* })
|
|
171
172
|
*/
|
|
172
|
-
insertRow(request: AthenaIntelligence.tools.InsertRowRequest, requestOptions?:
|
|
173
|
+
insertRow(request: AthenaIntelligence.tools.InsertRowRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
173
174
|
private __insertRow;
|
|
174
175
|
/**
|
|
175
176
|
* Duplicate an existing sheet in an Athena spreadsheet.
|
|
176
177
|
*
|
|
177
178
|
* @param {AthenaIntelligence.tools.DuplicateSheetRequest} request
|
|
178
|
-
* @param {
|
|
179
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
180
|
*
|
|
180
181
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
181
182
|
*
|
|
@@ -184,13 +185,13 @@ export declare class Sheets {
|
|
|
184
185
|
* asset_id: "asset_id"
|
|
185
186
|
* })
|
|
186
187
|
*/
|
|
187
|
-
duplicateSheet(request: AthenaIntelligence.tools.DuplicateSheetRequest, requestOptions?:
|
|
188
|
+
duplicateSheet(request: AthenaIntelligence.tools.DuplicateSheetRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
188
189
|
private __duplicateSheet;
|
|
189
190
|
/**
|
|
190
191
|
* Create a new tab in an Athena spreadsheet.
|
|
191
192
|
*
|
|
192
193
|
* @param {AthenaIntelligence.tools.CreateNewSheetTabRequest} request
|
|
193
|
-
* @param {
|
|
194
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
195
|
*
|
|
195
196
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
196
197
|
*
|
|
@@ -206,13 +207,13 @@ export declare class Sheets {
|
|
|
206
207
|
* }
|
|
207
208
|
* })
|
|
208
209
|
*/
|
|
209
|
-
createTab(request: AthenaIntelligence.tools.CreateNewSheetTabRequest, requestOptions?:
|
|
210
|
+
createTab(request: AthenaIntelligence.tools.CreateNewSheetTabRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.CreateNewSheetTabResponse>;
|
|
210
211
|
private __createTab;
|
|
211
212
|
/**
|
|
212
213
|
* Delete a column from a table within an Athena spreadsheet.
|
|
213
214
|
*
|
|
214
215
|
* @param {AthenaIntelligence.tools.DeleteTableColumnRequest} request
|
|
215
|
-
* @param {
|
|
216
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
217
|
*
|
|
217
218
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
218
219
|
*
|
|
@@ -223,13 +224,13 @@ export declare class Sheets {
|
|
|
223
224
|
* table_id: "table_id"
|
|
224
225
|
* })
|
|
225
226
|
*/
|
|
226
|
-
deleteTableColumn(request: AthenaIntelligence.tools.DeleteTableColumnRequest, requestOptions?:
|
|
227
|
+
deleteTableColumn(request: AthenaIntelligence.tools.DeleteTableColumnRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
227
228
|
private __deleteTableColumn;
|
|
228
229
|
/**
|
|
229
230
|
* Insert a column in a table within an Athena spreadsheet.
|
|
230
231
|
*
|
|
231
232
|
* @param {AthenaIntelligence.tools.InsertTableColumnRequest} request
|
|
232
|
-
* @param {
|
|
233
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
233
234
|
*
|
|
234
235
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
235
236
|
*
|
|
@@ -241,13 +242,13 @@ export declare class Sheets {
|
|
|
241
242
|
* table_id: "table_id"
|
|
242
243
|
* })
|
|
243
244
|
*/
|
|
244
|
-
insertTableColumn(request: AthenaIntelligence.tools.InsertTableColumnRequest, requestOptions?:
|
|
245
|
+
insertTableColumn(request: AthenaIntelligence.tools.InsertTableColumnRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
245
246
|
private __insertTableColumn;
|
|
246
247
|
/**
|
|
247
248
|
* Create a table in an Athena spreadsheet.
|
|
248
249
|
*
|
|
249
250
|
* @param {AthenaIntelligence.tools.CreateTableRequest} request
|
|
250
|
-
* @param {
|
|
251
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
251
252
|
*
|
|
252
253
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
253
254
|
*
|
|
@@ -262,13 +263,13 @@ export declare class Sheets {
|
|
|
262
263
|
* table_name: "table_name"
|
|
263
264
|
* })
|
|
264
265
|
*/
|
|
265
|
-
createTable(request: AthenaIntelligence.tools.CreateTableRequest, requestOptions?:
|
|
266
|
+
createTable(request: AthenaIntelligence.tools.CreateTableRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
266
267
|
private __createTable;
|
|
267
268
|
/**
|
|
268
269
|
* Retrieve table data from an Athena spreadsheet.
|
|
269
270
|
*
|
|
270
271
|
* @param {AthenaIntelligence.tools.GetTableRequest} request
|
|
271
|
-
* @param {
|
|
272
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
273
|
*
|
|
273
274
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
274
275
|
*
|
|
@@ -278,13 +279,13 @@ export declare class Sheets {
|
|
|
278
279
|
* table_name: "table_name"
|
|
279
280
|
* })
|
|
280
281
|
*/
|
|
281
|
-
getTable(request: AthenaIntelligence.tools.GetTableRequest, requestOptions?:
|
|
282
|
+
getTable(request: AthenaIntelligence.tools.GetTableRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GetTableResponse>;
|
|
282
283
|
private __getTable;
|
|
283
284
|
/**
|
|
284
285
|
* Insert rows into a table in an Athena spreadsheet.
|
|
285
286
|
*
|
|
286
287
|
* @param {AthenaIntelligence.tools.InsertTableRowRequest} request
|
|
287
|
-
* @param {
|
|
288
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
288
289
|
*
|
|
289
290
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
290
291
|
*
|
|
@@ -297,13 +298,13 @@ export declare class Sheets {
|
|
|
297
298
|
* table_name: "table_name"
|
|
298
299
|
* })
|
|
299
300
|
*/
|
|
300
|
-
insertTableRow(request: AthenaIntelligence.tools.InsertTableRowRequest, requestOptions?:
|
|
301
|
+
insertTableRow(request: AthenaIntelligence.tools.InsertTableRowRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
301
302
|
private __insertTableRow;
|
|
302
303
|
/**
|
|
303
304
|
* Update an existing table in an Athena spreadsheet.
|
|
304
305
|
*
|
|
305
306
|
* @param {AthenaIntelligence.tools.UpdateTableRequest} request
|
|
306
|
-
* @param {
|
|
307
|
+
* @param {SheetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
307
308
|
*
|
|
308
309
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
309
310
|
*
|
|
@@ -318,7 +319,6 @@ export declare class Sheets {
|
|
|
318
319
|
* table_name: "table_name"
|
|
319
320
|
* })
|
|
320
321
|
*/
|
|
321
|
-
updateTable(request: AthenaIntelligence.tools.UpdateTableRequest, requestOptions?:
|
|
322
|
+
updateTable(request: AthenaIntelligence.tools.UpdateTableRequest, requestOptions?: SheetsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.SheetOperationResponse>;
|
|
322
323
|
private __updateTable;
|
|
323
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
324
324
|
}
|