quidproquo-actionprocessor-awslambda 0.1.10 → 0.1.12
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/lib/commonjs/awsLambdaUtils.d.ts +6 -4
- package/lib/commonjs/awsLambdaUtils.js +2 -2
- package/lib/commonjs/awsLambdaUtils.js.map +1 -1
- package/lib/commonjs/awsNamingUtils.d.ts +2 -2
- package/lib/commonjs/awsNamingUtils.js +60 -109
- package/lib/commonjs/awsNamingUtils.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
- package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +10 -8
- package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +53 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +45 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/index.d.ts +2 -0
- package/lib/commonjs/{lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js → getActionProcessor/core/crypto/index.js} +7 -5
- package/lib/commonjs/getActionProcessor/core/crypto/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +11 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js +19 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +19 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +13 -10
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
- package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +14 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.js +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/{neptune.js → AnyNeptuneResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
- package/lib/commonjs/{lambdaHandlers/types/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
- package/lib/commonjs/{runtimeConfig/QPQAWSResourceMap.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
- package/lib/commonjs/{lambdas/lambda-utils/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/index.js +3 -1
- package/lib/commonjs/getActionProcessor/core/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +13 -12
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.js +8 -0
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +4 -5
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/index.js +1 -2
- package/lib/commonjs/getActionProcessor/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js +43 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js +26 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/email/index.d.ts +2 -0
- package/lib/commonjs/{logic/cognito/verifyJwt.js → getActionProcessor/webserver/email/index.js} +7 -8
- package/lib/commonjs/getActionProcessor/webserver/email/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/index.d.ts +2 -1
- package/lib/commonjs/getActionProcessor/webserver/index.js +3 -1
- package/lib/commonjs/getActionProcessor/webserver/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
- package/lib/commonjs/getLambdaEntries.d.ts +4 -0
- package/lib/commonjs/getLambdaEntries.js +7 -1
- package/lib/commonjs/getLambdaEntries.js.map +1 -1
- package/lib/commonjs/index.d.ts +1 -1
- package/lib/commonjs/index.js +4 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lambdaExtensions/logExtensionPort.js +1 -1
- package/lib/commonjs/lambdaExtensions/logExtensionPort.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +6 -9
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js +13 -0
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/helpers/getLogger.d.ts +8 -0
- package/lib/commonjs/lambdaHandlers/helpers/{logger.js → getLogger.js} +22 -31
- package/lib/commonjs/lambdaHandlers/helpers/getLogger.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +17 -13
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.d.ts +3 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.js +3 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js +23 -0
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js +3 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/types/index.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/types/index.js +1 -1
- package/lib/commonjs/lambdaHandlers/types/index.js.map +1 -1
- package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
- package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.d.ts +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.js +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.js.map +1 -1
- package/lib/commonjs/lambdas/index.js +4 -0
- package/lib/commonjs/lambdas/index.js.map +1 -1
- package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
- package/lib/commonjs/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
- package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
- package/lib/commonjs/logic/cache/memoFunc.d.ts +5 -2
- package/lib/commonjs/logic/cache/memoFunc.js +3 -5
- package/lib/commonjs/logic/cache/memoFunc.js.map +1 -1
- package/lib/commonjs/logic/cache/memoFuncAsync.d.ts +5 -2
- package/lib/commonjs/logic/cache/memoFuncAsync.js +4 -3
- package/lib/commonjs/logic/cache/memoFuncAsync.js.map +1 -1
- package/lib/commonjs/logic/cloudFront/invalidateCache.d.ts +0 -1
- package/lib/commonjs/logic/cloudFront/invalidateCache.js +7 -10
- package/lib/commonjs/logic/cloudFront/invalidateCache.js.map +1 -1
- package/lib/commonjs/logic/cloudformation/getExportedValue.d.ts +4 -0
- package/lib/commonjs/logic/cloudformation/getExportedValue.js +4 -0
- package/lib/commonjs/logic/cloudformation/getExportedValue.js.map +1 -1
- package/lib/commonjs/logic/cognito/authenticateUser.d.ts +4 -0
- package/lib/commonjs/logic/cognito/authenticateUser.js +8 -3
- package/lib/commonjs/logic/cognito/authenticateUser.js.map +1 -1
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.d.ts +1 -9
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.js +2 -36
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.js.map +1 -1
- package/lib/commonjs/logic/cognito/confirmForgotPassword.d.ts +4 -0
- package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/commonjs/logic/cognito/confirmForgotPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/createUser.d.ts +4 -0
- package/lib/commonjs/logic/cognito/createUser.js +9 -6
- package/lib/commonjs/logic/cognito/createUser.js.map +1 -1
- package/lib/commonjs/logic/cognito/decodeAccessToken.d.ts +11 -0
- package/lib/commonjs/logic/cognito/decodeAccessToken.js +24 -5
- package/lib/commonjs/logic/cognito/decodeAccessToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/decodeValidJwt.d.ts +8 -2
- package/lib/commonjs/logic/cognito/decodeValidJwt.js +15 -9
- package/lib/commonjs/logic/cognito/decodeValidJwt.js.map +1 -1
- package/lib/commonjs/logic/cognito/forgotPassword.js +2 -6
- package/lib/commonjs/logic/cognito/forgotPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.d.ts +7 -0
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.js +15 -0
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.js.map +1 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +20 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +22 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js +17 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +14 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/getUserAttributes.js +5 -7
- package/lib/commonjs/logic/cognito/getUserAttributes.js.map +1 -1
- package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +19 -4
- package/lib/commonjs/logic/cognito/getUserAttributesBySub.js.map +1 -1
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +20 -5
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js.map +1 -1
- package/lib/commonjs/logic/cognito/index.js +3 -0
- package/lib/commonjs/logic/cognito/index.js.map +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsers.js +2 -6
- package/lib/commonjs/logic/cognito/listPagedUsers.js.map +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +8 -7
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
- package/lib/commonjs/logic/cognito/refreshToken.js +9 -8
- package/lib/commonjs/logic/cognito/refreshToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -8
- package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js.map +1 -1
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
- package/lib/commonjs/logic/cognito/respondToAuthChallenge.d.ts +8 -0
- package/lib/commonjs/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +13 -7
- package/lib/commonjs/logic/cognito/respondToAuthChallenge.js.map +1 -0
- package/lib/commonjs/logic/cognito/setUserAttributes.js +5 -5
- package/lib/commonjs/logic/cognito/setUserAttributes.js.map +1 -1
- package/lib/commonjs/logic/cognito/setUserPassword.js +2 -1
- package/lib/commonjs/logic/cognito/setUserPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js +3 -0
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js +34 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js +6 -6
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +23 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +22 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +27 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +14 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js +10 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/index.d.ts +7 -1
- package/lib/commonjs/logic/cognito/utils/index.js +7 -1
- package/lib/commonjs/logic/cognito/utils/index.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
- package/lib/commonjs/logic/cognito/verifyUserEmail.d.ts +1 -0
- package/lib/commonjs/logic/cognito/verifyUserEmail.js +1 -0
- package/lib/commonjs/logic/cognito/verifyUserEmail.js.map +1 -1
- package/lib/commonjs/logic/createAwsClient.d.ts +6 -3
- package/lib/commonjs/logic/createAwsClient.js +7 -6
- package/lib/commonjs/logic/createAwsClient.js.map +1 -1
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js +35 -0
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
- package/lib/commonjs/logic/dynamo/deleteItem.js +4 -10
- package/lib/commonjs/logic/dynamo/deleteItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/getAllItems.d.ts +2 -1
- package/lib/commonjs/logic/dynamo/getAllItems.js +5 -10
- package/lib/commonjs/logic/dynamo/getAllItems.js.map +1 -1
- package/lib/commonjs/logic/dynamo/getItem.d.ts +2 -2
- package/lib/commonjs/logic/dynamo/getItem.js +6 -18
- package/lib/commonjs/logic/dynamo/getItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/index.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/index.js +2 -0
- package/lib/commonjs/logic/dynamo/index.js.map +1 -1
- package/lib/commonjs/logic/dynamo/putItem.d.ts +4 -4
- package/lib/commonjs/logic/dynamo/putItem.js +3 -20
- package/lib/commonjs/logic/dynamo/putItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +40 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +84 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +107 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +24 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +39 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +23 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +25 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +17 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js +18 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js +14 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js +14 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js +13 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
- package/lib/commonjs/logic/dynamo/query.js +6 -10
- package/lib/commonjs/logic/dynamo/query.js.map +1 -1
- package/lib/commonjs/logic/dynamo/scan.js +6 -10
- package/lib/commonjs/logic/dynamo/scan.js.map +1 -1
- package/lib/commonjs/logic/dynamo/updateItem.d.ts +2 -1
- package/lib/commonjs/logic/dynamo/updateItem.js +8 -12
- package/lib/commonjs/logic/dynamo/updateItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js +20 -0
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.js +2 -0
- package/lib/commonjs/logic/dynamo/utils/index.js.map +1 -0
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js +3 -2
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
- package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
- package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js +13 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
- package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
- package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
- package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
- package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
- package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js +1 -1
- package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js.map +1 -1
- package/lib/commonjs/logic/kms/decryptDataKey.d.ts +2 -0
- package/lib/commonjs/logic/kms/decryptDataKey.js +33 -0
- package/lib/commonjs/logic/kms/decryptDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/generateDataKey.d.ts +3 -0
- package/lib/commonjs/logic/kms/generateDataKey.js +34 -0
- package/lib/commonjs/logic/kms/generateDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js +37 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js +37 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.d.ts +2 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.js +10 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.js.map +1 -0
- package/lib/commonjs/logic/lambda/executeLambdaByName.d.ts +5 -1
- package/lib/commonjs/logic/lambda/executeLambdaByName.js +6 -3
- package/lib/commonjs/logic/lambda/executeLambdaByName.js.map +1 -1
- package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js +8 -6
- package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js.map +1 -1
- package/lib/commonjs/logic/parametersManager/getParameters.js +2 -1
- package/lib/commonjs/logic/parametersManager/getParameters.js.map +1 -1
- package/lib/commonjs/logic/s3/deleteFiles.d.ts +1 -0
- package/lib/commonjs/logic/s3/deleteFiles.js +16 -9
- package/lib/commonjs/logic/s3/deleteFiles.js.map +1 -1
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js +2 -31
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js.map +1 -1
- package/lib/commonjs/logic/s3/generatePresignedUrl.d.ts +1 -0
- package/lib/commonjs/logic/s3/generatePresignedUrl.js +4 -11
- package/lib/commonjs/logic/s3/generatePresignedUrl.js.map +1 -1
- package/lib/commonjs/logic/s3/listFiles.d.ts +5 -4
- package/lib/commonjs/logic/s3/listFiles.js +20 -27
- package/lib/commonjs/logic/s3/listFiles.js.map +1 -1
- package/lib/commonjs/logic/s3/s3Utils.d.ts +3 -0
- package/lib/commonjs/logic/s3/s3Utils.js +5 -0
- package/lib/commonjs/logic/s3/s3Utils.js.map +1 -1
- package/lib/commonjs/logic/secretsManager/getSecret.js +2 -3
- package/lib/commonjs/logic/secretsManager/getSecret.js.map +1 -1
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.d.ts +2 -0
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.js +79 -0
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.js.map +1 -0
- package/lib/commonjs/logic/sesV2/sendEmail.d.ts +2 -0
- package/lib/commonjs/logic/sesV2/sendEmail.js +48 -0
- package/lib/commonjs/logic/sesV2/sendEmail.js.map +1 -0
- package/lib/commonjs/logic/sns/publishMessage.d.ts +7 -2
- package/lib/commonjs/logic/sns/publishMessage.js +11 -11
- package/lib/commonjs/logic/sns/publishMessage.js.map +1 -1
- package/lib/commonjs/logic/sqs/sendMessages.d.ts +7 -2
- package/lib/commonjs/logic/sqs/sendMessages.js +9 -8
- package/lib/commonjs/logic/sqs/sendMessages.js.map +1 -1
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js +3 -0
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
- package/lib/commonjs/runtimeConfig/index.d.ts +2 -0
- package/lib/commonjs/{logic/dynamo/logs → runtimeConfig}/index.js +2 -1
- package/lib/commonjs/runtimeConfig/index.js.map +1 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.d.ts +7 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.js +17 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.js.map +1 -0
- package/lib/esm/awsLambdaUtils.d.ts +6 -4
- package/lib/esm/awsLambdaUtils.js +2 -2
- package/lib/esm/awsLambdaUtils.js.map +1 -1
- package/lib/esm/awsNamingUtils.d.ts +2 -2
- package/lib/esm/awsNamingUtils.js +53 -100
- package/lib/esm/awsNamingUtils.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
- package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
- package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
- package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +8 -7
- package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +38 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +30 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/index.js +7 -0
- package/lib/esm/getActionProcessor/core/crypto/index.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +7 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.js +3 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +14 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +20 -17
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
- package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +10 -0
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.js +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/index.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/index.js +3 -0
- package/lib/esm/getActionProcessor/core/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +20 -19
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/system/getDateNow.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/system/getDateNow.js +4 -0
- package/lib/esm/getActionProcessor/core/system/getDateNow.js.map +1 -0
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/index.js +8 -9
- package/lib/esm/getActionProcessor/index.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js +28 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js +11 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/email/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/index.js +7 -0
- package/lib/esm/getActionProcessor/webserver/email/index.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/index.d.ts +2 -1
- package/lib/esm/getActionProcessor/webserver/index.js +3 -0
- package/lib/esm/getActionProcessor/webserver/index.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
- package/lib/esm/getLambdaEntries.d.ts +4 -0
- package/lib/esm/getLambdaEntries.js +7 -4
- package/lib/esm/getLambdaEntries.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +4 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/lambdaExtensions/logExtensionPort.js +1 -1
- package/lib/esm/lambdaExtensions/logExtensionPort.js.map +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +5 -7
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
- package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +2 -6
- package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +3 -7
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js +9 -0
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
- package/lib/esm/lambdaHandlers/helpers/getLogger.d.ts +8 -0
- package/lib/esm/lambdaHandlers/helpers/{logger.js → getLogger.js} +21 -25
- package/lib/esm/lambdaHandlers/helpers/getLogger.js.map +1 -0
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +19 -15
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/index.d.ts +3 -1
- package/lib/esm/lambdaHandlers/helpers/index.js +3 -1
- package/lib/esm/lambdaHandlers/helpers/index.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js +19 -0
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js +2 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
- package/lib/esm/lambdaHandlers/types/index.d.ts +1 -1
- package/lib/esm/lambdaHandlers/types/index.js +1 -1
- package/lib/esm/lambdaHandlers/types/index.js.map +1 -1
- package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
- package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.d.ts +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.js +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.js.map +1 -1
- package/lib/esm/lambdas/index.js +4 -0
- package/lib/esm/lambdas/index.js.map +1 -1
- package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
- package/lib/esm/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
- package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
- package/lib/esm/logic/cache/memoFunc.d.ts +5 -2
- package/lib/esm/logic/cache/memoFunc.js +3 -5
- package/lib/esm/logic/cache/memoFunc.js.map +1 -1
- package/lib/esm/logic/cache/memoFuncAsync.d.ts +5 -2
- package/lib/esm/logic/cache/memoFuncAsync.js +4 -3
- package/lib/esm/logic/cache/memoFuncAsync.js.map +1 -1
- package/lib/esm/logic/cloudFront/invalidateCache.d.ts +0 -1
- package/lib/esm/logic/cloudFront/invalidateCache.js +6 -8
- package/lib/esm/logic/cloudFront/invalidateCache.js.map +1 -1
- package/lib/esm/logic/cloudformation/getExportedValue.d.ts +4 -0
- package/lib/esm/logic/cloudformation/getExportedValue.js +4 -0
- package/lib/esm/logic/cloudformation/getExportedValue.js.map +1 -1
- package/lib/esm/logic/cognito/authenticateUser.d.ts +4 -0
- package/lib/esm/logic/cognito/authenticateUser.js +7 -2
- package/lib/esm/logic/cognito/authenticateUser.js.map +1 -1
- package/lib/esm/logic/cognito/cognitoAttributeMap.d.ts +1 -9
- package/lib/esm/logic/cognito/cognitoAttributeMap.js +1 -38
- package/lib/esm/logic/cognito/cognitoAttributeMap.js.map +1 -1
- package/lib/esm/logic/cognito/confirmForgotPassword.d.ts +4 -0
- package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/esm/logic/cognito/confirmForgotPassword.js.map +1 -1
- package/lib/esm/logic/cognito/createUser.d.ts +4 -0
- package/lib/esm/logic/cognito/createUser.js +8 -5
- package/lib/esm/logic/cognito/createUser.js.map +1 -1
- package/lib/esm/logic/cognito/decodeAccessToken.d.ts +11 -0
- package/lib/esm/logic/cognito/decodeAccessToken.js +22 -4
- package/lib/esm/logic/cognito/decodeAccessToken.js.map +1 -1
- package/lib/esm/logic/cognito/decodeValidJwt.d.ts +8 -2
- package/lib/esm/logic/cognito/decodeValidJwt.js +15 -6
- package/lib/esm/logic/cognito/decodeValidJwt.js.map +1 -1
- package/lib/esm/logic/cognito/forgotPassword.js +2 -6
- package/lib/esm/logic/cognito/forgotPassword.js.map +1 -1
- package/lib/esm/logic/cognito/getCognitoJwksClient.d.ts +7 -0
- package/lib/esm/logic/cognito/getCognitoJwksClient.js +9 -0
- package/lib/esm/logic/cognito/getCognitoJwksClient.js.map +1 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +16 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +18 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js +13 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +10 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/getUserAttributes.js +5 -7
- package/lib/esm/logic/cognito/getUserAttributes.js.map +1 -1
- package/lib/esm/logic/cognito/getUserAttributesBySub.js +19 -4
- package/lib/esm/logic/cognito/getUserAttributesBySub.js.map +1 -1
- package/lib/esm/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
- package/lib/esm/logic/cognito/getUserPoolClientSecret.js +17 -3
- package/lib/esm/logic/cognito/getUserPoolClientSecret.js.map +1 -1
- package/lib/esm/logic/cognito/index.js +3 -0
- package/lib/esm/logic/cognito/index.js.map +1 -1
- package/lib/esm/logic/cognito/listPagedUsers.js +3 -7
- package/lib/esm/logic/cognito/listPagedUsers.js.map +1 -1
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +9 -8
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
- package/lib/esm/logic/cognito/refreshToken.js +8 -7
- package/lib/esm/logic/cognito/refreshToken.js.map +1 -1
- package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -7
- package/lib/esm/logic/cognito/requestEmailVerificationCode.js.map +1 -1
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
- package/lib/esm/logic/cognito/respondToAuthChallenge.d.ts +8 -0
- package/lib/esm/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +10 -4
- package/lib/esm/logic/cognito/respondToAuthChallenge.js.map +1 -0
- package/lib/esm/logic/cognito/setUserAttributes.js +4 -4
- package/lib/esm/logic/cognito/setUserAttributes.js.map +1 -1
- package/lib/esm/logic/cognito/setUserPassword.js +2 -1
- package/lib/esm/logic/cognito/setUserPassword.js.map +1 -1
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js +2 -0
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js +29 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
- package/lib/esm/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/calculateSecretHash.js +6 -6
- package/lib/esm/logic/cognito/utils/calculateSecretHash.js.map +1 -1
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +19 -0
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +18 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +23 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +10 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js +6 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/utils/index.d.ts +7 -1
- package/lib/esm/logic/cognito/utils/index.js +7 -1
- package/lib/esm/logic/cognito/utils/index.js.map +1 -1
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
- package/lib/esm/logic/cognito/verifyUserEmail.d.ts +1 -0
- package/lib/esm/logic/cognito/verifyUserEmail.js +1 -0
- package/lib/esm/logic/cognito/verifyUserEmail.js.map +1 -1
- package/lib/esm/logic/createAwsClient.d.ts +6 -3
- package/lib/esm/logic/createAwsClient.js +7 -6
- package/lib/esm/logic/createAwsClient.js.map +1 -1
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.js +32 -0
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
- package/lib/esm/logic/dynamo/deleteItem.js +4 -10
- package/lib/esm/logic/dynamo/deleteItem.js.map +1 -1
- package/lib/esm/logic/dynamo/getAllItems.d.ts +2 -1
- package/lib/esm/logic/dynamo/getAllItems.js +5 -10
- package/lib/esm/logic/dynamo/getAllItems.js.map +1 -1
- package/lib/esm/logic/dynamo/getItem.d.ts +2 -2
- package/lib/esm/logic/dynamo/getItem.js +6 -18
- package/lib/esm/logic/dynamo/getItem.js.map +1 -1
- package/lib/esm/logic/dynamo/index.d.ts +2 -0
- package/lib/esm/logic/dynamo/index.js +2 -0
- package/lib/esm/logic/dynamo/index.js.map +1 -1
- package/lib/esm/logic/dynamo/putItem.d.ts +4 -4
- package/lib/esm/logic/dynamo/putItem.js +3 -20
- package/lib/esm/logic/dynamo/putItem.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +36 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +80 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +103 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +20 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +35 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +19 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +21 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +13 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js +11 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js +10 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js +10 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js +13 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +4 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +4 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
- package/lib/esm/logic/dynamo/query.js +5 -8
- package/lib/esm/logic/dynamo/query.js.map +1 -1
- package/lib/esm/logic/dynamo/scan.js +5 -8
- package/lib/esm/logic/dynamo/scan.js.map +1 -1
- package/lib/esm/logic/dynamo/updateItem.d.ts +2 -1
- package/lib/esm/logic/dynamo/updateItem.js +8 -12
- package/lib/esm/logic/dynamo/updateItem.js.map +1 -1
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.js +16 -0
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
- package/lib/esm/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
- package/lib/esm/logic/dynamo/utils/index.js +5 -0
- package/lib/esm/logic/dynamo/utils/index.js.map +1 -0
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js +2 -1
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
- package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
- package/lib/esm/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
- package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js +10 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
- package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
- package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
- package/lib/esm/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
- package/lib/esm/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
- package/lib/esm/logic/federatedModuleStore/sharedPackages.js +1 -1
- package/lib/esm/logic/federatedModuleStore/sharedPackages.js.map +1 -1
- package/lib/esm/logic/kms/decryptDataKey.d.ts +2 -0
- package/lib/esm/logic/kms/decryptDataKey.js +20 -0
- package/lib/esm/logic/kms/decryptDataKey.js.map +1 -0
- package/lib/esm/logic/kms/generateDataKey.d.ts +3 -0
- package/lib/esm/logic/kms/generateDataKey.js +21 -0
- package/lib/esm/logic/kms/generateDataKey.js.map +1 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.js +24 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js +24 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.d.ts +2 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.js +6 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.js.map +1 -0
- package/lib/esm/logic/lambda/executeLambdaByName.d.ts +5 -1
- package/lib/esm/logic/lambda/executeLambdaByName.js +6 -3
- package/lib/esm/logic/lambda/executeLambdaByName.js.map +1 -1
- package/lib/esm/logic/neptune/getNeptuneEndpoints.js +7 -6
- package/lib/esm/logic/neptune/getNeptuneEndpoints.js.map +1 -1
- package/lib/esm/logic/parametersManager/getParameters.js +2 -1
- package/lib/esm/logic/parametersManager/getParameters.js.map +1 -1
- package/lib/esm/logic/s3/deleteFiles.d.ts +1 -0
- package/lib/esm/logic/s3/deleteFiles.js +16 -9
- package/lib/esm/logic/s3/deleteFiles.js.map +1 -1
- package/lib/esm/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
- package/lib/esm/logic/s3/generatePresignedUploadUrl.js +2 -31
- package/lib/esm/logic/s3/generatePresignedUploadUrl.js.map +1 -1
- package/lib/esm/logic/s3/generatePresignedUrl.d.ts +1 -0
- package/lib/esm/logic/s3/generatePresignedUrl.js +4 -11
- package/lib/esm/logic/s3/generatePresignedUrl.js.map +1 -1
- package/lib/esm/logic/s3/listFiles.d.ts +5 -4
- package/lib/esm/logic/s3/listFiles.js +20 -27
- package/lib/esm/logic/s3/listFiles.js.map +1 -1
- package/lib/esm/logic/s3/s3Utils.d.ts +3 -0
- package/lib/esm/logic/s3/s3Utils.js +5 -0
- package/lib/esm/logic/s3/s3Utils.js.map +1 -1
- package/lib/esm/logic/secretsManager/getSecret.js +2 -3
- package/lib/esm/logic/secretsManager/getSecret.js.map +1 -1
- package/lib/esm/logic/sesV2/buildRawMimeMessage.d.ts +2 -0
- package/lib/esm/logic/sesV2/buildRawMimeMessage.js +74 -0
- package/lib/esm/logic/sesV2/buildRawMimeMessage.js.map +1 -0
- package/lib/esm/logic/sesV2/sendEmail.d.ts +2 -0
- package/lib/esm/logic/sesV2/sendEmail.js +37 -0
- package/lib/esm/logic/sesV2/sendEmail.js.map +1 -0
- package/lib/esm/logic/sns/publishMessage.d.ts +7 -2
- package/lib/esm/logic/sns/publishMessage.js +11 -17
- package/lib/esm/logic/sns/publishMessage.js.map +1 -1
- package/lib/esm/logic/sqs/sendMessages.d.ts +7 -2
- package/lib/esm/logic/sqs/sendMessages.js +9 -8
- package/lib/esm/logic/sqs/sendMessages.js.map +1 -1
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js +2 -0
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
- package/lib/esm/runtimeConfig/index.d.ts +2 -0
- package/lib/esm/runtimeConfig/index.js +3 -0
- package/lib/esm/runtimeConfig/index.js.map +1 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.d.ts +7 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.js +12 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.js.map +1 -0
- package/lib/extension-layer/qpq-log-extension/index.js +32 -32
- package/package.json +28 -25
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
- package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +0 -8
- package/lib/commonjs/lambdaHandlers/helpers/logger.js.map +0 -1
- package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
- package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/commonjs/lambdas/lambdaSQSEvent.d.ts +0 -2
- package/lib/commonjs/lambdas/lambdaSQSEvent.js +0 -16
- package/lib/commonjs/lambdas/lambdaSQSEvent.js.map +0 -1
- package/lib/commonjs/logic/acm/findMatchingCertificates.d.ts +0 -1
- package/lib/commonjs/logic/acm/findMatchingCertificates.js +0 -53
- package/lib/commonjs/logic/acm/findMatchingCertificates.js.map +0 -1
- package/lib/commonjs/logic/acm/getDomainValidationOptions.d.ts +0 -2
- package/lib/commonjs/logic/acm/getDomainValidationOptions.js +0 -41
- package/lib/commonjs/logic/acm/getDomainValidationOptions.js.map +0 -1
- package/lib/commonjs/logic/apiGateway/websocketSendMessage.d.ts +0 -1
- package/lib/commonjs/logic/apiGateway/websocketSendMessage.js.map +0 -1
- package/lib/commonjs/logic/cognito/getUser.d.ts +0 -10
- package/lib/commonjs/logic/cognito/getUser.js +0 -39
- package/lib/commonjs/logic/cognito/getUser.js.map +0 -1
- package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
- package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js +0 -48
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
- package/lib/commonjs/logic/cognito/verifyJwt.d.ts +0 -1
- package/lib/commonjs/logic/cognito/verifyJwt.js.map +0 -1
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js +0 -67
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.js +0 -55
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -65
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +0 -68
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/index.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/logs/index.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/index.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -7
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -200
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -144
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js +0 -10
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
- package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
- package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -20
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js +0 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
- package/lib/esm/lambdaHandlers/helpers/logger.d.ts +0 -8
- package/lib/esm/lambdaHandlers/helpers/logger.js.map +0 -1
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js +0 -2
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js +0 -4
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js +0 -2
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/esm/lambdas/lambdaSQSEvent.d.ts +0 -2
- package/lib/esm/lambdas/lambdaSQSEvent.js +0 -13
- package/lib/esm/lambdas/lambdaSQSEvent.js.map +0 -1
- package/lib/esm/logic/acm/findMatchingCertificates.d.ts +0 -1
- package/lib/esm/logic/acm/findMatchingCertificates.js +0 -39
- package/lib/esm/logic/acm/findMatchingCertificates.js.map +0 -1
- package/lib/esm/logic/acm/getDomainValidationOptions.d.ts +0 -2
- package/lib/esm/logic/acm/getDomainValidationOptions.js +0 -27
- package/lib/esm/logic/acm/getDomainValidationOptions.js.map +0 -1
- package/lib/esm/logic/apiGateway/websocketSendMessage.d.ts +0 -1
- package/lib/esm/logic/apiGateway/websocketSendMessage.js.map +0 -1
- package/lib/esm/logic/cognito/getUser.d.ts +0 -10
- package/lib/esm/logic/cognito/getUser.js +0 -26
- package/lib/esm/logic/cognito/getUser.js.map +0 -1
- package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
- package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.js +0 -42
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
- package/lib/esm/logic/cognito/verifyJwt.d.ts +0 -1
- package/lib/esm/logic/cognito/verifyJwt.js +0 -7
- package/lib/esm/logic/cognito/verifyJwt.js.map +0 -1
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js +0 -64
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
- package/lib/esm/logic/dynamo/getLogByCorrelation.d.ts +0 -2
- package/lib/esm/logic/dynamo/getLogByCorrelation.js +0 -40
- package/lib/esm/logic/dynamo/getLogByCorrelation.js.map +0 -1
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -50
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +0 -53
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/index.d.ts +0 -1
- package/lib/esm/logic/dynamo/logs/index.js +0 -2
- package/lib/esm/logic/dynamo/logs/index.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/index.js +0 -3
- package/lib/esm/logic/dynamo/logs/utils/index.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
- package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -4
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -186
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -138
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js +0 -6
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.js +0 -2
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -13
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserAttributes } from 'quidproquo-core';
|
|
2
|
+
import { CognitoUserAttribute } from './utils/CognitoUserAttribute';
|
|
3
|
+
/**
|
|
4
|
+
* Maps qpq UserAttributes onto Cognito Name/Value pairs. Keys with no Cognito
|
|
5
|
+
* mapping (e.g. password on CreateUserRequest) and absent or empty values are
|
|
6
|
+
* dropped; everything else is stringified (booleans become 'true'/'false').
|
|
7
|
+
*/
|
|
8
|
+
export declare const getCognitoUserAttributesFromQpqUserAttributes: (userAttributes: UserAttributes) => CognitoUserAttribute[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCognitoUserAttributesFromQpqUserAttributes = void 0;
|
|
4
|
+
const cognitoAttributeMap_1 = require("./cognitoAttributeMap");
|
|
5
|
+
/**
|
|
6
|
+
* Maps qpq UserAttributes onto Cognito Name/Value pairs. Keys with no Cognito
|
|
7
|
+
* mapping (e.g. password on CreateUserRequest) and absent or empty values are
|
|
8
|
+
* dropped; everything else is stringified (booleans become 'true'/'false').
|
|
9
|
+
*/
|
|
10
|
+
const getCognitoUserAttributesFromQpqUserAttributes = (userAttributes) => {
|
|
11
|
+
return Object.keys(userAttributes)
|
|
12
|
+
.filter((key) => userAttributes[key] !== undefined && userAttributes[key] !== null)
|
|
13
|
+
.map((key) => ({
|
|
14
|
+
Name: cognitoAttributeMap_1.cognitoAttributeMap[key],
|
|
15
|
+
Value: `${userAttributes[key]}`,
|
|
16
|
+
}))
|
|
17
|
+
.filter((attribute) => !!attribute.Name && !!attribute.Value);
|
|
18
|
+
};
|
|
19
|
+
exports.getCognitoUserAttributesFromQpqUserAttributes = getCognitoUserAttributesFromQpqUserAttributes;
|
|
20
|
+
//# sourceMappingURL=getCognitoUserAttributesFromQpqUserAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCognitoUserAttributesFromQpqUserAttributes.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAE5D;;;;GAIG;AACI,MAAM,6CAA6C,GAAG,CAAC,cAA8B,EAA0B,EAAE;IACtH,OAAQ,MAAM,CAAC,IAAI,CAAC,cAAc,CAA8B;SAC7D,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;SAClF,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACb,IAAI,EAAE,yCAAmB,CAAC,GAAG,CAAC;QAC9B,KAAK,EAAE,GAAG,cAAc,CAAC,GAAG,CAAC,EAAE;KAChC,CAAC,CAAC;SACF,MAAM,CAAC,CAAC,SAAS,EAAqC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACrG,CAAC,CAAC;AARW,QAAA,6CAA6C,iDAQxD","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { CognitoUserAttribute } from './utils/CognitoUserAttribute';\nimport { cognitoAttributeMap } from './cognitoAttributeMap';\n\n/**\n * Maps qpq UserAttributes onto Cognito Name/Value pairs. Keys with no Cognito\n * mapping (e.g. password on CreateUserRequest) and absent or empty values are\n * dropped; everything else is stringified (booleans become 'true'/'false').\n */\nexport const getCognitoUserAttributesFromQpqUserAttributes = (userAttributes: UserAttributes): CognitoUserAttribute[] => {\n return (Object.keys(userAttributes) as (keyof UserAttributes)[])\n .filter((key) => userAttributes[key] !== undefined && userAttributes[key] !== null)\n .map((key) => ({\n Name: cognitoAttributeMap[key],\n Value: `${userAttributes[key]}`,\n }))\n .filter((attribute): attribute is CognitoUserAttribute => !!attribute.Name && !!attribute.Value);\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UserAttributes } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Maps a single Cognito attribute name/value onto a partial UserAttributes object.
|
|
4
|
+
* Names with no qpq mapping (e.g. cognito:groups) produce an empty object, and
|
|
5
|
+
* email_verified is coerced from Cognito's 'true'/'false' string to a boolean.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getQpqAttributeObjectFromCognitoKeyValue: (key: string, value: string) => UserAttributes;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQpqAttributeObjectFromCognitoKeyValue = void 0;
|
|
4
|
+
const cognitoAttributeMap_1 = require("./cognitoAttributeMap");
|
|
5
|
+
const reversedCognitoAttributeMap = Object.fromEntries(Object.entries(cognitoAttributeMap_1.cognitoAttributeMap).map(([qpqKey, cognitoName]) => [cognitoName, qpqKey]));
|
|
6
|
+
/**
|
|
7
|
+
* Maps a single Cognito attribute name/value onto a partial UserAttributes object.
|
|
8
|
+
* Names with no qpq mapping (e.g. cognito:groups) produce an empty object, and
|
|
9
|
+
* email_verified is coerced from Cognito's 'true'/'false' string to a boolean.
|
|
10
|
+
*/
|
|
11
|
+
const getQpqAttributeObjectFromCognitoKeyValue = (key, value) => {
|
|
12
|
+
const userAttributeKey = reversedCognitoAttributeMap[key];
|
|
13
|
+
if (!userAttributeKey) {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
if (userAttributeKey === 'emailVerified') {
|
|
17
|
+
return { emailVerified: value === 'true' };
|
|
18
|
+
}
|
|
19
|
+
return { [userAttributeKey]: value };
|
|
20
|
+
};
|
|
21
|
+
exports.getQpqAttributeObjectFromCognitoKeyValue = getQpqAttributeObjectFromCognitoKeyValue;
|
|
22
|
+
//# sourceMappingURL=getQpqAttributeObjectFromCognitoKeyValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQpqAttributeObjectFromCognitoKeyValue.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.ts"],"names":[],"mappings":";;;AAEA,+DAA4D;AAE5D,MAAM,2BAA2B,GAAyC,MAAM,CAAC,WAAW,CAC1F,MAAM,CAAC,OAAO,CAAC,yCAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,MAA8B,CAAC,CAAC,CAClH,CAAC;AAEF;;;;GAIG;AACI,MAAM,wCAAwC,GAAG,CAAC,GAAW,EAAE,KAAa,EAAkB,EAAE;IACrG,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,GAAG,CAAC,CAAC;IAE1D,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,gBAAgB,KAAK,eAAe,EAAE,CAAC;QACzC,OAAO,EAAE,aAAa,EAAE,KAAK,KAAK,MAAM,EAAE,CAAC;IAC7C,CAAC;IAED,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,CAAC;AACvC,CAAC,CAAC;AAZW,QAAA,wCAAwC,4CAYnD","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { cognitoAttributeMap } from './cognitoAttributeMap';\n\nconst reversedCognitoAttributeMap: Record<string, keyof UserAttributes> = Object.fromEntries(\n Object.entries(cognitoAttributeMap).map(([qpqKey, cognitoName]) => [cognitoName, qpqKey as keyof UserAttributes]),\n);\n\n/**\n * Maps a single Cognito attribute name/value onto a partial UserAttributes object.\n * Names with no qpq mapping (e.g. cognito:groups) produce an empty object, and\n * email_verified is coerced from Cognito's 'true'/'false' string to a boolean.\n */\nexport const getQpqAttributeObjectFromCognitoKeyValue = (key: string, value: string): UserAttributes => {\n const userAttributeKey = reversedCognitoAttributeMap[key];\n\n if (!userAttributeKey) {\n return {};\n }\n\n if (userAttributeKey === 'emailVerified') {\n return { emailVerified: value === 'true' };\n }\n\n return { [userAttributeKey]: value };\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserAttributes } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Maps a Cognito name-to-value record (as delivered in lambda trigger events)
|
|
4
|
+
* onto the qpq UserAttributes shape.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getQpqAttributesFromCognitoStringMap: (cognitoUserAttributes: Record<string, string>) => UserAttributes;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQpqAttributesFromCognitoStringMap = void 0;
|
|
4
|
+
const getQpqAttributeObjectFromCognitoKeyValue_1 = require("./getQpqAttributeObjectFromCognitoKeyValue");
|
|
5
|
+
/**
|
|
6
|
+
* Maps a Cognito name-to-value record (as delivered in lambda trigger events)
|
|
7
|
+
* onto the qpq UserAttributes shape.
|
|
8
|
+
*/
|
|
9
|
+
const getQpqAttributesFromCognitoStringMap = (cognitoUserAttributes) => {
|
|
10
|
+
const userAttributes = {};
|
|
11
|
+
for (const [key, value] of Object.entries(cognitoUserAttributes)) {
|
|
12
|
+
Object.assign(userAttributes, (0, getQpqAttributeObjectFromCognitoKeyValue_1.getQpqAttributeObjectFromCognitoKeyValue)(key, value));
|
|
13
|
+
}
|
|
14
|
+
return userAttributes;
|
|
15
|
+
};
|
|
16
|
+
exports.getQpqAttributesFromCognitoStringMap = getQpqAttributesFromCognitoStringMap;
|
|
17
|
+
//# sourceMappingURL=getQpqAttributesFromCognitoStringMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQpqAttributesFromCognitoStringMap.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getQpqAttributesFromCognitoStringMap.ts"],"names":[],"mappings":";;;AAEA,yGAAsG;AAEtG;;;GAGG;AACI,MAAM,oCAAoC,GAAG,CAAC,qBAA6C,EAAkB,EAAE;IACpH,MAAM,cAAc,GAAmB,EAAE,CAAC;IAE1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACjE,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,IAAA,mFAAwC,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACtF,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AARW,QAAA,oCAAoC,wCAQ/C","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { getQpqAttributeObjectFromCognitoKeyValue } from './getQpqAttributeObjectFromCognitoKeyValue';\n\n/**\n * Maps a Cognito name-to-value record (as delivered in lambda trigger events)\n * onto the qpq UserAttributes shape.\n */\nexport const getQpqAttributesFromCognitoStringMap = (cognitoUserAttributes: Record<string, string>): UserAttributes => {\n const userAttributes: UserAttributes = {};\n\n for (const [key, value] of Object.entries(cognitoUserAttributes)) {\n Object.assign(userAttributes, getQpqAttributeObjectFromCognitoKeyValue(key, value));\n }\n\n return userAttributes;\n};\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UserAttributes } from 'quidproquo-core';
|
|
2
|
+
import { CognitoUserAttribute } from './utils/CognitoUserAttribute';
|
|
3
|
+
/** Maps a list of Cognito user attributes onto the qpq UserAttributes shape. */
|
|
4
|
+
export declare const getQpqAttributesFromCognitoUserAttributes: (cognitoUserAttributes: CognitoUserAttribute[]) => UserAttributes;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQpqAttributesFromCognitoUserAttributes = void 0;
|
|
4
|
+
const getQpqAttributeObjectFromCognitoKeyValue_1 = require("./getQpqAttributeObjectFromCognitoKeyValue");
|
|
5
|
+
/** Maps a list of Cognito user attributes onto the qpq UserAttributes shape. */
|
|
6
|
+
const getQpqAttributesFromCognitoUserAttributes = (cognitoUserAttributes) => {
|
|
7
|
+
const userAttributes = {};
|
|
8
|
+
for (const { Name, Value } of cognitoUserAttributes) {
|
|
9
|
+
Object.assign(userAttributes, (0, getQpqAttributeObjectFromCognitoKeyValue_1.getQpqAttributeObjectFromCognitoKeyValue)(Name, Value));
|
|
10
|
+
}
|
|
11
|
+
return userAttributes;
|
|
12
|
+
};
|
|
13
|
+
exports.getQpqAttributesFromCognitoUserAttributes = getQpqAttributesFromCognitoUserAttributes;
|
|
14
|
+
//# sourceMappingURL=getQpqAttributesFromCognitoUserAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQpqAttributesFromCognitoUserAttributes.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getQpqAttributesFromCognitoUserAttributes.ts"],"names":[],"mappings":";;;AAGA,yGAAsG;AAEtG,gFAAgF;AACzE,MAAM,yCAAyC,GAAG,CAAC,qBAA6C,EAAkB,EAAE;IACzH,MAAM,cAAc,GAAmB,EAAE,CAAC;IAE1C,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,qBAAqB,EAAE,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,IAAA,mFAAwC,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AARW,QAAA,yCAAyC,6CAQpD","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { CognitoUserAttribute } from './utils/CognitoUserAttribute';\nimport { getQpqAttributeObjectFromCognitoKeyValue } from './getQpqAttributeObjectFromCognitoKeyValue';\n\n/** Maps a list of Cognito user attributes onto the qpq UserAttributes shape. */\nexport const getQpqAttributesFromCognitoUserAttributes = (cognitoUserAttributes: CognitoUserAttribute[]): UserAttributes => {\n const userAttributes: UserAttributes = {};\n\n for (const { Name, Value } of cognitoUserAttributes) {\n Object.assign(userAttributes, getQpqAttributeObjectFromCognitoKeyValue(Name, Value));\n }\n\n return userAttributes;\n};\n"]}
|
|
@@ -12,19 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.getUserAttributes = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
-
const
|
|
15
|
+
const getValidCognitoUserAttributes_1 = require("./utils/getValidCognitoUserAttributes");
|
|
16
|
+
const getQpqAttributesFromCognitoUserAttributes_1 = require("./getQpqAttributesFromCognitoUserAttributes");
|
|
16
17
|
const getUserAttributes = (userPoolId, region, username) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
18
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
18
19
|
region,
|
|
19
20
|
});
|
|
20
|
-
const
|
|
21
|
+
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.AdminGetUserCommand({
|
|
21
22
|
UserPoolId: userPoolId,
|
|
22
23
|
Username: username,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const validAttributes = (response.UserAttributes || []).filter((attr) => attr.Name && attr.Value);
|
|
26
|
-
const attributes = (0, cognitoAttributeMap_1.getQpqAttributesFromCognitoUserAttributes)(validAttributes);
|
|
27
|
-
return attributes;
|
|
24
|
+
}));
|
|
25
|
+
return (0, getQpqAttributesFromCognitoUserAttributes_1.getQpqAttributesFromCognitoUserAttributes)((0, getValidCognitoUserAttributes_1.getValidCognitoUserAttributes)(response.UserAttributes));
|
|
28
26
|
});
|
|
29
27
|
exports.getUserAttributes = getUserAttributes;
|
|
30
28
|
//# sourceMappingURL=getUserAttributes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserAttributes.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserAttributes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA+G;AAE/G,wDAAqD;AACrD
|
|
1
|
+
{"version":3,"file":"getUserAttributes.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserAttributes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA+G;AAE/G,wDAAqD;AACrD,yFAAsF;AACtF,2GAAwG;AAEjG,MAAM,iBAAiB,GAAG,CAAO,UAAkB,EAAE,MAAc,EAAE,QAAgB,EAA2B,EAAE;IACvH,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CACvC,IAAI,sDAAmB,CAAC;QACtB,UAAU,EAAE,UAAU;QACtB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CACH,CAAC;IAEF,OAAO,IAAA,qFAAyC,EAAC,IAAA,6DAA6B,EAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;AAC3G,CAAC,CAAA,CAAC;AAbW,QAAA,iBAAiB,qBAa5B","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { AdminGetUserCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { getValidCognitoUserAttributes } from './utils/getValidCognitoUserAttributes';\nimport { getQpqAttributesFromCognitoUserAttributes } from './getQpqAttributesFromCognitoUserAttributes';\n\nexport const getUserAttributes = async (userPoolId: string, region: string, username: string): Promise<UserAttributes> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const response = await cognitoClient.send(\n new AdminGetUserCommand({\n UserPoolId: userPoolId,\n Username: username,\n }),\n );\n\n return getQpqAttributesFromCognitoUserAttributes(getValidCognitoUserAttributes(response.UserAttributes));\n};\n"]}
|
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.getUserAttributesBySub = exports.UserNotFoundError = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
-
const
|
|
15
|
+
const buildCognitoUserFilter_1 = require("./utils/buildCognitoUserFilter");
|
|
16
|
+
const getValidCognitoUserAttributes_1 = require("./utils/getValidCognitoUserAttributes");
|
|
17
|
+
const getQpqAttributesFromCognitoUserAttributes_1 = require("./getQpqAttributesFromCognitoUserAttributes");
|
|
16
18
|
// ListUsers returns an empty list rather than throwing for no match, so we throw
|
|
17
19
|
// our own error with a discriminable `code` for the processor's catch to map.
|
|
18
20
|
class UserNotFoundError extends Error {
|
|
@@ -23,20 +25,33 @@ class UserNotFoundError extends Error {
|
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
exports.UserNotFoundError = UserNotFoundError;
|
|
28
|
+
// A sub that cannot be embedded in a Cognito filter cannot belong to any user,
|
|
29
|
+
// so unsafe input resolves to not-found instead of reaching Cognito.
|
|
30
|
+
const buildSubFilter = (sub) => {
|
|
31
|
+
try {
|
|
32
|
+
return (0, buildCognitoUserFilter_1.buildCognitoUserFilter)('sub', sub);
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
if (error instanceof buildCognitoUserFilter_1.InvalidCognitoFilterError) {
|
|
36
|
+
throw new UserNotFoundError();
|
|
37
|
+
}
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
26
41
|
const getUserAttributesBySub = (userPoolId, region, sub) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
+
const filter = buildSubFilter(sub);
|
|
27
43
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
28
44
|
region,
|
|
29
45
|
});
|
|
30
46
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.ListUsersCommand({
|
|
31
47
|
UserPoolId: userPoolId,
|
|
32
|
-
Filter:
|
|
48
|
+
Filter: filter,
|
|
33
49
|
}));
|
|
34
50
|
const [user] = (response === null || response === void 0 ? void 0 : response.Users) || [];
|
|
35
51
|
if (!user) {
|
|
36
52
|
throw new UserNotFoundError();
|
|
37
53
|
}
|
|
38
|
-
|
|
39
|
-
return (0, cognitoAttributeMap_1.getQpqAttributesFromCognitoUserAttributes)(validAttributes);
|
|
54
|
+
return (0, getQpqAttributesFromCognitoUserAttributes_1.getQpqAttributesFromCognitoUserAttributes)((0, getValidCognitoUserAttributes_1.getValidCognitoUserAttributes)(user.Attributes));
|
|
40
55
|
});
|
|
41
56
|
exports.getUserAttributesBySub = getUserAttributesBySub;
|
|
42
57
|
//# sourceMappingURL=getUserAttributesBySub.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserAttributesBySub.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserAttributesBySub.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA4G;AAE5G,wDAAqD;AACrD
|
|
1
|
+
{"version":3,"file":"getUserAttributesBySub.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserAttributesBySub.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA4G;AAE5G,wDAAqD;AACrD,2EAAmG;AACnG,yFAAsF;AACtF,2GAAwG;AAExG,iFAAiF;AACjF,8EAA8E;AAC9E,MAAa,iBAAkB,SAAQ,KAAK;IAG1C;QACE,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAHjB,SAAI,GAAG,gBAAgB,CAAC;QAI/B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAPD,8CAOC;AAED,+EAA+E;AAC/E,qEAAqE;AACrE,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE;IAC7C,IAAI,CAAC;QACH,OAAO,IAAA,+CAAsB,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,kDAAyB,EAAE,CAAC;YAC/C,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,sBAAsB,GAAG,CAAO,UAAkB,EAAE,MAAc,EAAE,GAAW,EAA2B,EAAE;IACvH,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IAEnC,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CACvC,IAAI,mDAAgB,CAAC;QACnB,UAAU,EAAE,UAAU;QACtB,MAAM,EAAE,MAAM;KACf,CAAC,CACH,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,KAAI,EAAE,CAAC;IACrC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,iBAAiB,EAAE,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,qFAAyC,EAAC,IAAA,6DAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AACnG,CAAC,CAAA,CAAC;AApBW,QAAA,sBAAsB,0BAoBjC","sourcesContent":["import { UserAttributes } from 'quidproquo-core';\n\nimport { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { buildCognitoUserFilter, InvalidCognitoFilterError } from './utils/buildCognitoUserFilter';\nimport { getValidCognitoUserAttributes } from './utils/getValidCognitoUserAttributes';\nimport { getQpqAttributesFromCognitoUserAttributes } from './getQpqAttributesFromCognitoUserAttributes';\n\n// ListUsers returns an empty list rather than throwing for no match, so we throw\n// our own error with a discriminable `code` for the processor's catch to map.\nexport class UserNotFoundError extends Error {\n readonly code = 'USER_NOT_FOUND';\n\n constructor() {\n super('User not found');\n this.name = 'UserNotFoundError';\n }\n}\n\n// A sub that cannot be embedded in a Cognito filter cannot belong to any user,\n// so unsafe input resolves to not-found instead of reaching Cognito.\nconst buildSubFilter = (sub: string): string => {\n try {\n return buildCognitoUserFilter('sub', sub);\n } catch (error) {\n if (error instanceof InvalidCognitoFilterError) {\n throw new UserNotFoundError();\n }\n throw error;\n }\n};\n\nexport const getUserAttributesBySub = async (userPoolId: string, region: string, sub: string): Promise<UserAttributes> => {\n const filter = buildSubFilter(sub);\n\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const response = await cognitoClient.send(\n new ListUsersCommand({\n UserPoolId: userPoolId,\n Filter: filter,\n }),\n );\n\n const [user] = response?.Users || [];\n if (!user) {\n throw new UserNotFoundError();\n }\n\n return getQpqAttributesFromCognitoUserAttributes(getValidCognitoUserAttributes(user.Attributes));\n};\n"]}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
+
export declare class ClientSecretNotFoundError extends Error {
|
|
2
|
+
readonly code = "CLIENT_SECRET_NOT_FOUND";
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Fetches the app client's secret (needed to compute the SECRET_HASH for auth
|
|
7
|
+
* flows). Throws ClientSecretNotFoundError when the client has no secret.
|
|
8
|
+
*/
|
|
1
9
|
export declare const getUserPoolClientSecret: (userPoolId: string, clientId: string, region: string) => Promise<string>;
|
|
@@ -9,11 +9,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getUserPoolClientSecret = void 0;
|
|
12
|
+
exports.getUserPoolClientSecret = exports.ClientSecretNotFoundError = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
+
// DescribeUserPoolClient succeeds even when the app client has no secret, so a
|
|
16
|
+
// missing secret is a hand-thrown, discriminable configuration error.
|
|
17
|
+
class ClientSecretNotFoundError extends Error {
|
|
18
|
+
constructor() {
|
|
19
|
+
super('Can not find client secret for Cognito user pool client');
|
|
20
|
+
this.code = 'CLIENT_SECRET_NOT_FOUND';
|
|
21
|
+
this.name = 'ClientSecretNotFoundError';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ClientSecretNotFoundError = ClientSecretNotFoundError;
|
|
25
|
+
/**
|
|
26
|
+
* Fetches the app client's secret (needed to compute the SECRET_HASH for auth
|
|
27
|
+
* flows). Throws ClientSecretNotFoundError when the client has no secret.
|
|
28
|
+
*/
|
|
15
29
|
const getUserPoolClientSecret = (userPoolId, clientId, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
-
var _a
|
|
30
|
+
var _a;
|
|
17
31
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
18
32
|
region,
|
|
19
33
|
});
|
|
@@ -22,10 +36,11 @@ const getUserPoolClientSecret = (userPoolId, clientId, region) => __awaiter(void
|
|
|
22
36
|
UserPoolId: userPoolId,
|
|
23
37
|
};
|
|
24
38
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.DescribeUserPoolClientCommand(params));
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
const clientSecret = (_a = response.UserPoolClient) === null || _a === void 0 ? void 0 : _a.ClientSecret;
|
|
40
|
+
if (!clientSecret) {
|
|
41
|
+
throw new ClientSecretNotFoundError();
|
|
27
42
|
}
|
|
28
|
-
return
|
|
43
|
+
return clientSecret;
|
|
29
44
|
});
|
|
30
45
|
exports.getUserPoolClientSecret = getUserPoolClientSecret;
|
|
31
46
|
//# sourceMappingURL=getUserPoolClientSecret.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserPoolClientSecret.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserPoolClientSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAImD;AAEnD,wDAAqD;
|
|
1
|
+
{"version":3,"file":"getUserPoolClientSecret.js","sourceRoot":"","sources":["../../../../src/logic/cognito/getUserPoolClientSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAImD;AAEnD,wDAAqD;AAErD,+EAA+E;AAC/E,sEAAsE;AACtE,MAAa,yBAA0B,SAAQ,KAAK;IAGlD;QACE,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAH1D,SAAI,GAAG,yBAAyB,CAAC;QAIxC,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;IAC1C,CAAC;CACF;AAPD,8DAOC;AAED;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAO,UAAkB,EAAE,QAAgB,EAAE,MAAc,EAAmB,EAAE;;IACrH,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,MAAM,GAAuC;QACjD,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,UAAU;KACvB,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,gEAA6B,CAAC,MAAM,CAAC,CAAC,CAAC;IAErF,MAAM,YAAY,GAAG,MAAA,QAAQ,CAAC,cAAc,0CAAE,YAAY,CAAC;IAC3D,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,yBAAyB,EAAE,CAAC;IACxC,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAA,CAAC;AAlBW,QAAA,uBAAuB,2BAkBlC","sourcesContent":["import {\n CognitoIdentityProviderClient,\n DescribeUserPoolClientCommand,\n DescribeUserPoolClientCommandInput,\n} from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\n\n// DescribeUserPoolClient succeeds even when the app client has no secret, so a\n// missing secret is a hand-thrown, discriminable configuration error.\nexport class ClientSecretNotFoundError extends Error {\n readonly code = 'CLIENT_SECRET_NOT_FOUND';\n\n constructor() {\n super('Can not find client secret for Cognito user pool client');\n this.name = 'ClientSecretNotFoundError';\n }\n}\n\n/**\n * Fetches the app client's secret (needed to compute the SECRET_HASH for auth\n * flows). Throws ClientSecretNotFoundError when the client has no secret.\n */\nexport const getUserPoolClientSecret = async (userPoolId: string, clientId: string, region: string): Promise<string> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const params: DescribeUserPoolClientCommandInput = {\n ClientId: clientId,\n UserPoolId: userPoolId,\n };\n\n const response = await cognitoClient.send(new DescribeUserPoolClientCommand(params));\n\n const clientSecret = response.UserPoolClient?.ClientSecret;\n if (!clientSecret) {\n throw new ClientSecretNotFoundError();\n }\n\n return clientSecret;\n};\n"]}
|
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Deliberately curated: this barrel is re-exported from the package root (via
|
|
18
|
+
// src/logic/index.ts), so everything here is public API. Internal consumers
|
|
19
|
+
// import sibling files directly; only add here to grow the public surface.
|
|
17
20
|
__exportStar(require("./decodeAccessToken"), exports);
|
|
18
21
|
__exportStar(require("./decodeValidJwt"), exports);
|
|
19
22
|
__exportStar(require("./globalSignOut"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/cognito/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAChC,uDAAqC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/cognito/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,2EAA2E;AAC3E,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAChC,uDAAqC","sourcesContent":["// Deliberately curated: this barrel is re-exported from the package root (via\n// src/logic/index.ts), so everything here is public API. Internal consumers\n// import sibling files directly; only add here to grow the public surface.\nexport * from './decodeAccessToken';\nexport * from './decodeValidJwt';\nexport * from './globalSignOut';\nexport * from './revokeRefreshToken';\n"]}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.listPagedUsers = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
-
const
|
|
15
|
+
const getQpqAttributesFromCognitoUserAttributes_1 = require("./getQpqAttributesFromCognitoUserAttributes");
|
|
16
16
|
const utils_1 = require("./utils");
|
|
17
17
|
const listPagedUsers = (userPoolId, region, pageKey) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
@@ -22,13 +22,9 @@ const listPagedUsers = (userPoolId, region, pageKey) => __awaiter(void 0, void 0
|
|
|
22
22
|
UserPoolId: userPoolId,
|
|
23
23
|
PaginationToken: (0, utils_1.pageKeyToPaginationToken)(pageKey),
|
|
24
24
|
}));
|
|
25
|
-
const users = (response.Users || []).map((user) => {
|
|
26
|
-
const validAttributes = (user.Attributes || []).filter((attr) => attr.Name && attr.Value);
|
|
27
|
-
return (0, cognitoAttributeMap_1.getQpqAttributesFromCognitoUserAttributes)(validAttributes);
|
|
28
|
-
});
|
|
29
25
|
return {
|
|
30
26
|
nextPageKey: (0, utils_1.paginationTokenToPageKey)(response.PaginationToken),
|
|
31
|
-
items:
|
|
27
|
+
items: (response.Users || []).map((user) => (0, getQpqAttributesFromCognitoUserAttributes_1.getQpqAttributesFromCognitoUserAttributes)((0, utils_1.getValidCognitoUserAttributes)(user.Attributes))),
|
|
32
28
|
};
|
|
33
29
|
});
|
|
34
30
|
exports.listPagedUsers = listPagedUsers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listPagedUsers.js","sourceRoot":"","sources":["../../../../src/logic/cognito/listPagedUsers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"listPagedUsers.js","sourceRoot":"","sources":["../../../../src/logic/cognito/listPagedUsers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA4G;AAE5G,wDAAqD;AACrD,2GAAwG;AACxG,mCAA4G;AAErG,MAAM,cAAc,GAAG,CAAO,UAAkB,EAAE,MAAc,EAAE,OAAgB,EAAyC,EAAE;IAClI,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CACvC,IAAI,mDAAgB,CAAC;QACnB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,IAAA,gCAAwB,EAAC,OAAO,CAAC;KACnD,CAAC,CACH,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,IAAA,gCAAwB,EAAC,QAAQ,CAAC,eAAe,CAAC;QAC/D,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,qFAAyC,EAAC,IAAA,qCAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;KACvI,CAAC;AACJ,CAAC,CAAA,CAAC;AAhBW,QAAA,cAAc,kBAgBzB","sourcesContent":["import { QpqPagedData, UserAttributes } from 'quidproquo-core';\n\nimport { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { getQpqAttributesFromCognitoUserAttributes } from './getQpqAttributesFromCognitoUserAttributes';\nimport { getValidCognitoUserAttributes, pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';\n\nexport const listPagedUsers = async (userPoolId: string, region: string, pageKey?: string): Promise<QpqPagedData<UserAttributes>> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const response = await cognitoClient.send(\n new ListUsersCommand({\n UserPoolId: userPoolId,\n PaginationToken: pageKeyToPaginationToken(pageKey),\n }),\n );\n\n return {\n nextPageKey: paginationTokenToPageKey(response.PaginationToken),\n items: (response.Users || []).map((user) => getQpqAttributesFromCognitoUserAttributes(getValidCognitoUserAttributes(user.Attributes))),\n };\n};\n"]}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { QpqPagedData, UserAttributes } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Lists users whose attribute exactly matches the given value.
|
|
4
|
+
* Throws InvalidCognitoFilterError (code INVALID_COGNITO_FILTER) when the
|
|
5
|
+
* attribute name or value cannot be embedded safely in a Cognito filter.
|
|
6
|
+
*/
|
|
2
7
|
export declare const listPagedUsersByAttribute: (userPoolId: string, region: string, attributeName: string, attributeValue: string, limit?: number, pageKey?: string) => Promise<QpqPagedData<UserAttributes>>;
|
|
@@ -12,8 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.listPagedUsersByAttribute = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
-
const
|
|
15
|
+
const getQpqAttributesFromCognitoUserAttributes_1 = require("./getQpqAttributesFromCognitoUserAttributes");
|
|
16
16
|
const utils_1 = require("./utils");
|
|
17
|
+
/**
|
|
18
|
+
* Lists users whose attribute exactly matches the given value.
|
|
19
|
+
* Throws InvalidCognitoFilterError (code INVALID_COGNITO_FILTER) when the
|
|
20
|
+
* attribute name or value cannot be embedded safely in a Cognito filter.
|
|
21
|
+
*/
|
|
17
22
|
const listPagedUsersByAttribute = (userPoolId, region, attributeName, attributeValue, limit, pageKey) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
23
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
19
24
|
region,
|
|
@@ -21,16 +26,12 @@ const listPagedUsersByAttribute = (userPoolId, region, attributeName, attributeV
|
|
|
21
26
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.ListUsersCommand({
|
|
22
27
|
UserPoolId: userPoolId,
|
|
23
28
|
Limit: limit,
|
|
24
|
-
Filter:
|
|
29
|
+
Filter: (0, utils_1.buildCognitoUserFilter)(attributeName, attributeValue),
|
|
25
30
|
PaginationToken: (0, utils_1.pageKeyToPaginationToken)(pageKey),
|
|
26
31
|
}));
|
|
27
|
-
const users = (response.Users || []).map((user) => {
|
|
28
|
-
const validAttributes = (user.Attributes || []).filter((attr) => attr.Name && attr.Value);
|
|
29
|
-
return (0, cognitoAttributeMap_1.getQpqAttributesFromCognitoUserAttributes)(validAttributes);
|
|
30
|
-
});
|
|
31
32
|
return {
|
|
32
33
|
nextPageKey: (0, utils_1.paginationTokenToPageKey)(response.PaginationToken),
|
|
33
|
-
items:
|
|
34
|
+
items: (response.Users || []).map((user) => (0, getQpqAttributesFromCognitoUserAttributes_1.getQpqAttributesFromCognitoUserAttributes)((0, utils_1.getValidCognitoUserAttributes)(user.Attributes))),
|
|
34
35
|
};
|
|
35
36
|
});
|
|
36
37
|
exports.listPagedUsersByAttribute = listPagedUsersByAttribute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listPagedUsersByAttribute.js","sourceRoot":"","sources":["../../../../src/logic/cognito/listPagedUsersByAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"listPagedUsersByAttribute.js","sourceRoot":"","sources":["../../../../src/logic/cognito/listPagedUsersByAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAA4G;AAE5G,wDAAqD;AACrD,2GAAwG;AACxG,mCAAoI;AAEpI;;;;GAIG;AACI,MAAM,yBAAyB,GAAG,CACvC,UAAkB,EAClB,MAAc,EACd,aAAqB,EACrB,cAAsB,EACtB,KAAc,EACd,OAAgB,EACuB,EAAE;IACzC,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CACvC,IAAI,mDAAgB,CAAC;QACnB,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,IAAA,8BAAsB,EAAC,aAAa,EAAE,cAAc,CAAC;QAC7D,eAAe,EAAE,IAAA,gCAAwB,EAAC,OAAO,CAAC;KACnD,CAAC,CACH,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,IAAA,gCAAwB,EAAC,QAAQ,CAAC,eAAe,CAAC;QAC/D,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,qFAAyC,EAAC,IAAA,qCAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;KACvI,CAAC;AACJ,CAAC,CAAA,CAAC;AAzBW,QAAA,yBAAyB,6BAyBpC","sourcesContent":["import { QpqPagedData, UserAttributes } from 'quidproquo-core';\n\nimport { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { getQpqAttributesFromCognitoUserAttributes } from './getQpqAttributesFromCognitoUserAttributes';\nimport { buildCognitoUserFilter, getValidCognitoUserAttributes, pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';\n\n/**\n * Lists users whose attribute exactly matches the given value.\n * Throws InvalidCognitoFilterError (code INVALID_COGNITO_FILTER) when the\n * attribute name or value cannot be embedded safely in a Cognito filter.\n */\nexport const listPagedUsersByAttribute = async (\n userPoolId: string,\n region: string,\n attributeName: string,\n attributeValue: string,\n limit?: number,\n pageKey?: string,\n): Promise<QpqPagedData<UserAttributes>> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const response = await cognitoClient.send(\n new ListUsersCommand({\n UserPoolId: userPoolId,\n Limit: limit,\n Filter: buildCognitoUserFilter(attributeName, attributeValue),\n PaginationToken: pageKeyToPaginationToken(pageKey),\n }),\n );\n\n return {\n nextPageKey: paginationTokenToPageKey(response.PaginationToken),\n items: (response.Users || []).map((user) => getQpqAttributesFromCognitoUserAttributes(getValidCognitoUserAttributes(user.Attributes))),\n };\n};\n"]}
|
|
@@ -13,7 +13,7 @@ exports.refreshToken = void 0;
|
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
15
|
const calculateSecretHash_1 = require("./utils/calculateSecretHash");
|
|
16
|
-
const
|
|
16
|
+
const cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo_1 = require("./utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo");
|
|
17
17
|
const getUserPoolClientSecret_1 = require("./getUserPoolClientSecret");
|
|
18
18
|
const refreshToken = (userPoolId, clientId, region, username, refreshToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
19
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
@@ -30,15 +30,16 @@ const refreshToken = (userPoolId, clientId, region, username, refreshToken) => _
|
|
|
30
30
|
SECRET_HASH: secretHash,
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
|
-
//
|
|
33
|
+
// Token expiry is computed relative to this; captured before the call so the
|
|
34
|
+
// derived expiresAt errs early rather than late.
|
|
34
35
|
const issueDateTime = new Date().toISOString();
|
|
35
36
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.AdminInitiateAuthCommand(params));
|
|
36
|
-
const authResponse = (0,
|
|
37
|
-
// Cognito's REFRESH_TOKEN_AUTH flow does
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
37
|
+
const authResponse = (0, cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo_1.cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo)(response, issueDateTime);
|
|
38
|
+
// With rotation disabled, Cognito's REFRESH_TOKEN_AUTH flow does not return a
|
|
39
|
+
// refresh token: the existing one stays valid and is reused. Carry the caller's
|
|
40
|
+
// token forward so the client keeps a usable session; without this it is dropped
|
|
41
|
+
// after the first refresh and the session can never refresh again. If rotation
|
|
42
|
+
// is ever enabled Cognito does return a new token, and that one wins.
|
|
42
43
|
if (authResponse.authenticationInfo && !authResponse.authenticationInfo.refreshToken) {
|
|
43
44
|
authResponse.authenticationInfo.refreshToken = refreshToken;
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshToken.js","sourceRoot":"","sources":["../../../../src/logic/cognito/refreshToken.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAKmD;AAEnD,wDAAqD;AACrD,qEAAkE;AAClE
|
|
1
|
+
{"version":3,"file":"refreshToken.js","sourceRoot":"","sources":["../../../../src/logic/cognito/refreshToken.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAKmD;AAEnD,wDAAqD;AACrD,qEAAkE;AAClE,6IAA0I;AAC1I,uEAAoE;AAE7D,MAAM,YAAY,GAAG,CAC1B,UAAkB,EAClB,QAAgB,EAChB,MAAc,EACd,QAAgB,EAChB,YAAoB,EACe,EAAE;IACrC,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,MAAM,IAAA,iDAAuB,EAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjF,MAAM,UAAU,GAAG,IAAA,yCAAmB,EAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAkC;QAC5C,QAAQ,EAAE,+CAAY,CAAC,kBAAkB;QACzC,UAAU,EAAE,UAAU;QACtB,QAAQ,EAAE,QAAQ;QAElB,cAAc,EAAE;YACd,aAAa,EAAE,YAAY;YAC3B,WAAW,EAAE,UAAU;SACxB;KACF,CAAC;IAEF,6EAA6E;IAC7E,iDAAiD;IACjD,MAAM,aAAa,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC/C,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,2DAAwB,CAAC,MAAM,CAAC,CAAC,CAAC;IAEhF,MAAM,YAAY,GAAG,IAAA,iHAAuD,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAEtG,8EAA8E;IAC9E,gFAAgF;IAChF,iFAAiF;IACjF,+EAA+E;IAC/E,sEAAsE;IACtE,IAAI,YAAY,CAAC,kBAAkB,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;QACrF,YAAY,CAAC,kBAAkB,CAAC,YAAY,GAAG,YAAY,CAAC;IAC9D,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAA,CAAC;AA1CW,QAAA,YAAY,gBA0CvB","sourcesContent":["import { AuthenticateUserResponse } from 'quidproquo-core';\n\nimport {\n AdminInitiateAuthCommand,\n AdminInitiateAuthCommandInput,\n AuthFlowType,\n CognitoIdentityProviderClient,\n} from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { calculateSecretHash } from './utils/calculateSecretHash';\nimport { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo';\nimport { getUserPoolClientSecret } from './getUserPoolClientSecret';\n\nexport const refreshToken = async (\n userPoolId: string,\n clientId: string,\n region: string,\n username: string,\n refreshToken: string,\n): Promise<AuthenticateUserResponse> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);\n const secretHash = calculateSecretHash(username, clientId, clientSecret);\n\n const params: AdminInitiateAuthCommandInput = {\n AuthFlow: AuthFlowType.REFRESH_TOKEN_AUTH,\n UserPoolId: userPoolId,\n ClientId: clientId,\n\n AuthParameters: {\n REFRESH_TOKEN: refreshToken,\n SECRET_HASH: secretHash,\n },\n };\n\n // Token expiry is computed relative to this; captured before the call so the\n // derived expiresAt errs early rather than late.\n const issueDateTime = new Date().toISOString();\n const response = await cognitoClient.send(new AdminInitiateAuthCommand(params));\n\n const authResponse = cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo(response, issueDateTime);\n\n // With rotation disabled, Cognito's REFRESH_TOKEN_AUTH flow does not return a\n // refresh token: the existing one stays valid and is reused. Carry the caller's\n // token forward so the client keeps a usable session; without this it is dropped\n // after the first refresh and the session can never refresh again. If rotation\n // is ever enabled Cognito does return a new token, and that one wins.\n if (authResponse.authenticationInfo && !authResponse.authenticationInfo.refreshToken) {\n authResponse.authenticationInfo.refreshToken = refreshToken;\n }\n\n return authResponse;\n};\n"]}
|
|
@@ -12,22 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.requestEmailVerificationCode = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
+
const cognitoCodeDeliveryDetailsToQpqDeliveryDetails_1 = require("./utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails");
|
|
15
16
|
const requestEmailVerificationCode = (region, accessToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
-
var _a, _b, _c;
|
|
17
17
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
18
18
|
region,
|
|
19
19
|
});
|
|
20
20
|
const params = {
|
|
21
21
|
AccessToken: accessToken,
|
|
22
|
-
AttributeName: 'email',
|
|
22
|
+
AttributeName: 'email',
|
|
23
23
|
};
|
|
24
24
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.GetUserAttributeVerificationCodeCommand(params));
|
|
25
|
-
|
|
26
|
-
attributeName: ((_a = response.CodeDeliveryDetails) === null || _a === void 0 ? void 0 : _a.AttributeName) || 'email',
|
|
27
|
-
destination: ((_b = response.CodeDeliveryDetails) === null || _b === void 0 ? void 0 : _b.Destination) || 'unknown@email.com',
|
|
28
|
-
deliveryMedium: ((_c = response.CodeDeliveryDetails) === null || _c === void 0 ? void 0 : _c.DeliveryMedium) || 'EMAIL',
|
|
29
|
-
};
|
|
30
|
-
return deliveryInfo;
|
|
25
|
+
return (0, cognitoCodeDeliveryDetailsToQpqDeliveryDetails_1.cognitoCodeDeliveryDetailsToQpqDeliveryDetails)(response.CodeDeliveryDetails);
|
|
31
26
|
});
|
|
32
27
|
exports.requestEmailVerificationCode = requestEmailVerificationCode;
|
|
33
28
|
//# sourceMappingURL=requestEmailVerificationCode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestEmailVerificationCode.js","sourceRoot":"","sources":["../../../../src/logic/cognito/requestEmailVerificationCode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAImD;AAEnD,wDAAqD;
|
|
1
|
+
{"version":3,"file":"requestEmailVerificationCode.js","sourceRoot":"","sources":["../../../../src/logic/cognito/requestEmailVerificationCode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gGAImD;AAEnD,wDAAqD;AACrD,2HAAwH;AAEjH,MAAM,4BAA4B,GAAG,CAAO,MAAc,EAAE,WAAmB,EAA0C,EAAE;IAChI,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,MAAM,GAAiD;QAC3D,WAAW,EAAE,WAAW;QACxB,aAAa,EAAE,OAAO;KACvB,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,0EAAuC,CAAC,MAAM,CAAC,CAAC,CAAC;IAE/F,OAAO,IAAA,+FAA8C,EAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACtF,CAAC,CAAA,CAAC;AAbW,QAAA,4BAA4B,gCAavC","sourcesContent":["import { AuthenticationDeliveryDetails } from 'quidproquo-core';\n\nimport {\n CognitoIdentityProviderClient,\n GetUserAttributeVerificationCodeCommand,\n GetUserAttributeVerificationCodeCommandInput,\n} from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { cognitoCodeDeliveryDetailsToQpqDeliveryDetails } from './utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails';\n\nexport const requestEmailVerificationCode = async (region: string, accessToken: string): Promise<AuthenticationDeliveryDetails> => {\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const params: GetUserAttributeVerificationCodeCommandInput = {\n AccessToken: accessToken,\n AttributeName: 'email',\n };\n\n const response = await cognitoClient.send(new GetUserAttributeVerificationCodeCommand(params));\n\n return cognitoCodeDeliveryDetailsToQpqDeliveryDetails(response.CodeDeliveryDetails);\n};\n"]}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a login alias (preferred_username) to the real Cognito username.
|
|
3
|
+
* Falls back to the input when nothing matches, so callers can pass either a
|
|
4
|
+
* preferred username or an actual username.
|
|
5
|
+
*/
|
|
1
6
|
export declare const resolveUsernameByPreferredUsername: (userPoolId: string, region: string, preferredUsername: string) => Promise<string>;
|
|
@@ -12,18 +12,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.resolveUsernameByPreferredUsername = void 0;
|
|
13
13
|
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
|
+
const buildCognitoUserFilter_1 = require("./utils/buildCognitoUserFilter");
|
|
16
|
+
// A value that cannot be embedded in a Cognito filter cannot be anyone's
|
|
17
|
+
// preferred_username, so we skip the lookup and treat the input as an actual
|
|
18
|
+
// username (the same fallback as a no-match lookup).
|
|
19
|
+
const buildPreferredUsernameFilter = (preferredUsername) => {
|
|
20
|
+
try {
|
|
21
|
+
return (0, buildCognitoUserFilter_1.buildCognitoUserFilter)('preferred_username', preferredUsername);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
if (error instanceof buildCognitoUserFilter_1.InvalidCognitoFilterError) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
throw error;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Resolves a login alias (preferred_username) to the real Cognito username.
|
|
32
|
+
* Falls back to the input when nothing matches, so callers can pass either a
|
|
33
|
+
* preferred username or an actual username.
|
|
34
|
+
*/
|
|
15
35
|
const resolveUsernameByPreferredUsername = (userPoolId, region, preferredUsername) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
36
|
var _a, _b;
|
|
37
|
+
const filter = buildPreferredUsernameFilter(preferredUsername);
|
|
38
|
+
if (!filter) {
|
|
39
|
+
return preferredUsername;
|
|
40
|
+
}
|
|
17
41
|
const cognitoClient = (0, createAwsClient_1.createAwsClient)(client_cognito_identity_provider_1.CognitoIdentityProviderClient, {
|
|
18
42
|
region,
|
|
19
43
|
});
|
|
20
44
|
const response = yield cognitoClient.send(new client_cognito_identity_provider_1.ListUsersCommand({
|
|
21
45
|
UserPoolId: userPoolId,
|
|
22
46
|
Limit: 1,
|
|
23
|
-
Filter:
|
|
47
|
+
Filter: filter,
|
|
24
48
|
}));
|
|
25
|
-
|
|
26
|
-
return resolvedUsername || preferredUsername;
|
|
49
|
+
return ((_b = (_a = response.Users) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.Username) || preferredUsername;
|
|
27
50
|
});
|
|
28
51
|
exports.resolveUsernameByPreferredUsername = resolveUsernameByPreferredUsername;
|
|
29
52
|
//# sourceMappingURL=resolveUsernameByPreferredUsername.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveUsernameByPreferredUsername.js","sourceRoot":"","sources":["../../../../src/logic/cognito/resolveUsernameByPreferredUsername.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAA4G;AAE5G,wDAAqD;
|
|
1
|
+
{"version":3,"file":"resolveUsernameByPreferredUsername.js","sourceRoot":"","sources":["../../../../src/logic/cognito/resolveUsernameByPreferredUsername.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAA4G;AAE5G,wDAAqD;AACrD,2EAAmG;AAEnG,yEAAyE;AACzE,6EAA6E;AAC7E,qDAAqD;AACrD,MAAM,4BAA4B,GAAG,CAAC,iBAAyB,EAAiB,EAAE;IAChF,IAAI,CAAC;QACH,OAAO,IAAA,+CAAsB,EAAC,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;IACzE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,kDAAyB,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,kCAAkC,GAAG,CAAO,UAAkB,EAAE,MAAc,EAAE,iBAAyB,EAAmB,EAAE;;IACzI,MAAM,MAAM,GAAG,4BAA4B,CAAC,iBAAiB,CAAC,CAAC;IAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,MAAM,aAAa,GAAG,IAAA,iCAAe,EAAC,gEAA6B,EAAE;QACnE,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CACvC,IAAI,mDAAgB,CAAC;QACnB,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,MAAM;KACf,CAAC,CACH,CAAC;IAEF,OAAO,CAAA,MAAA,MAAA,QAAQ,CAAC,KAAK,0CAAG,CAAC,CAAC,0CAAE,QAAQ,KAAI,iBAAiB,CAAC;AAC5D,CAAC,CAAA,CAAC;AAnBW,QAAA,kCAAkC,sCAmB7C","sourcesContent":["import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { buildCognitoUserFilter, InvalidCognitoFilterError } from './utils/buildCognitoUserFilter';\n\n// A value that cannot be embedded in a Cognito filter cannot be anyone's\n// preferred_username, so we skip the lookup and treat the input as an actual\n// username (the same fallback as a no-match lookup).\nconst buildPreferredUsernameFilter = (preferredUsername: string): string | null => {\n try {\n return buildCognitoUserFilter('preferred_username', preferredUsername);\n } catch (error) {\n if (error instanceof InvalidCognitoFilterError) {\n return null;\n }\n throw error;\n }\n};\n\n/**\n * Resolves a login alias (preferred_username) to the real Cognito username.\n * Falls back to the input when nothing matches, so callers can pass either a\n * preferred username or an actual username.\n */\nexport const resolveUsernameByPreferredUsername = async (userPoolId: string, region: string, preferredUsername: string): Promise<string> => {\n const filter = buildPreferredUsernameFilter(preferredUsername);\n if (!filter) {\n return preferredUsername;\n }\n\n const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {\n region,\n });\n\n const response = await cognitoClient.send(\n new ListUsersCommand({\n UserPoolId: userPoolId,\n Limit: 1,\n Filter: filter,\n }),\n );\n\n return response.Users?.[0]?.Username || preferredUsername;\n};\n"]}
|