quidproquo-actionprocessor-awslambda 0.0.232 → 0.0.234

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.
Files changed (417) hide show
  1. package/README.md +97 -118
  2. package/lib/commonjs/awsLambdaUtils.d.ts +1 -1
  3. package/lib/commonjs/awsLambdaUtils.js +1 -1
  4. package/lib/commonjs/awsNamingUtils.d.ts +1 -1
  5. package/lib/commonjs/awsNamingUtils.js +4 -7
  6. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +3 -2
  7. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +3 -2
  8. package/lib/commonjs/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +2 -1
  9. package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +3 -2
  10. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
  11. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +1 -1
  12. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
  13. package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
  14. package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
  15. package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +1 -1
  16. package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
  17. package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
  18. package/lib/commonjs/getActionProcessor/core/event/cognito/index.d.ts +1 -1
  19. package/lib/commonjs/getActionProcessor/core/event/cognito/index.js +1 -1
  20. package/lib/commonjs/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
  21. package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
  22. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +1 -1
  23. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
  24. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
  25. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
  26. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
  27. package/lib/commonjs/getActionProcessor/core/event/index.d.ts +2 -2
  28. package/lib/commonjs/getActionProcessor/core/event/index.js +2 -2
  29. package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
  30. package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
  31. package/lib/commonjs/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
  32. package/lib/commonjs/getActionProcessor/core/event/utils/isAuthValid.js +6 -5
  33. package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +5 -5
  34. package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -4
  35. package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +3 -2
  36. package/lib/commonjs/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +2 -1
  37. package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +3 -2
  38. package/lib/commonjs/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +3 -2
  39. package/lib/commonjs/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +3 -2
  40. package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +4 -3
  41. package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +4 -3
  42. package/lib/commonjs/getActionProcessor/core/file/index.js +2 -2
  43. package/lib/commonjs/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +3 -2
  44. package/lib/commonjs/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +1 -1
  45. package/lib/commonjs/getActionProcessor/core/index.d.ts +5 -5
  46. package/lib/commonjs/getActionProcessor/core/index.js +10 -10
  47. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +3 -2
  48. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +4 -4
  49. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +4 -4
  50. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +3 -2
  51. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +4 -4
  52. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +3 -2
  53. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +3 -2
  54. package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js +2 -2
  55. package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +5 -5
  56. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +4 -3
  57. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryChangePasswordActionProcessor.js +2 -1
  58. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmEmailVerificationActionProcessor.js +2 -1
  59. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +3 -2
  60. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +4 -3
  61. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +2 -1
  62. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +4 -3
  63. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +2 -1
  64. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +2 -1
  65. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +2 -1
  66. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +2 -1
  67. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +4 -3
  68. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRequestEmailVerificationActionProcessor.js +2 -1
  69. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +3 -2
  70. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +2 -1
  71. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +2 -1
  72. package/lib/commonjs/getActionProcessor/index.js +1 -1
  73. package/lib/commonjs/getActionProcessor/webserver/index.d.ts +1 -1
  74. package/lib/commonjs/getActionProcessor/webserver/index.js +2 -2
  75. package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +3 -2
  76. package/lib/commonjs/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +3 -2
  77. package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +2 -1
  78. package/lib/commonjs/index.d.ts +5 -5
  79. package/lib/commonjs/index.js +8 -8
  80. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  81. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
  82. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
  83. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  84. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
  85. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
  86. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
  87. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  88. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
  89. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
  90. package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +1 -1
  91. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
  92. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
  93. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
  94. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
  95. package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +1 -1
  96. package/lib/commonjs/lambdaHandlers/helpers/logger.js +1 -1
  97. package/lib/commonjs/lambdaHandlers/index.d.ts +3 -3
  98. package/lib/commonjs/lambdaHandlers/index.js +3 -3
  99. package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
  100. package/lib/commonjs/lambdas/apiGatewayEventHandler.js +1 -1
  101. package/lib/commonjs/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  102. package/lib/commonjs/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
  103. package/lib/commonjs/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
  104. package/lib/commonjs/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
  105. package/lib/commonjs/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
  106. package/lib/commonjs/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  107. package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
  108. package/lib/commonjs/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
  109. package/lib/commonjs/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
  110. package/lib/commonjs/lambdas/lambda-utils/getQpqConfig.js +1 -1
  111. package/lib/commonjs/lambdas/lambda-utils/index.d.ts +1 -1
  112. package/lib/commonjs/lambdas/lambda-utils/index.js +1 -1
  113. package/lib/commonjs/lambdas/lambda-utils/logger.d.ts +1 -1
  114. package/lib/commonjs/lambdas/lambda-utils/logger.js +1 -1
  115. package/lib/commonjs/lambdas/lambdaSQSEvent.js +3 -3
  116. package/lib/commonjs/lambdas/sqsEvent_queueEvent.js +1 -1
  117. package/lib/commonjs/logic/acm/findMatchingCertificates.js +1 -2
  118. package/lib/commonjs/logic/apiGateway/getApiKeys.js +5 -1
  119. package/lib/commonjs/logic/apiGateway/websocketSendMessage.js +3 -3
  120. package/lib/commonjs/logic/cache/memoFuncAsync.js +5 -9
  121. package/lib/commonjs/logic/cloudFront/invalidateCache.js +1 -1
  122. package/lib/commonjs/logic/cloudformation/getExportedValue.js +1 -1
  123. package/lib/commonjs/logic/cognito/authenticateUser.js +5 -3
  124. package/lib/commonjs/logic/cognito/changePassword.js +3 -1
  125. package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
  126. package/lib/commonjs/logic/cognito/createUser.d.ts +1 -1
  127. package/lib/commonjs/logic/cognito/createUser.js +5 -3
  128. package/lib/commonjs/logic/cognito/decodeAccessToken.js +2 -2
  129. package/lib/commonjs/logic/cognito/forgotPassword.js +4 -2
  130. package/lib/commonjs/logic/cognito/getUser.js +3 -1
  131. package/lib/commonjs/logic/cognito/getUserAttributes.js +4 -2
  132. package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +4 -2
  133. package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +3 -1
  134. package/lib/commonjs/logic/cognito/index.d.ts +1 -1
  135. package/lib/commonjs/logic/cognito/index.js +1 -1
  136. package/lib/commonjs/logic/cognito/listPagedUsers.d.ts +1 -1
  137. package/lib/commonjs/logic/cognito/listPagedUsers.js +4 -2
  138. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
  139. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +4 -2
  140. package/lib/commonjs/logic/cognito/refreshToken.js +5 -3
  141. package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -1
  142. package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
  143. package/lib/commonjs/logic/cognito/setUserAttributes.js +4 -2
  144. package/lib/commonjs/logic/cognito/setUserPassword.js +3 -1
  145. package/lib/commonjs/logic/cognito/utils/index.d.ts +1 -1
  146. package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
  147. package/lib/commonjs/logic/cognito/verifyUserEmail.js +3 -1
  148. package/lib/commonjs/logic/dynamo/deleteItem.js +1 -1
  149. package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
  150. package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +7 -3
  151. package/lib/commonjs/logic/dynamo/index.d.ts +1 -1
  152. package/lib/commonjs/logic/dynamo/index.js +1 -1
  153. package/lib/commonjs/logic/dynamo/putItem.js +1 -1
  154. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
  155. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
  156. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
  157. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +2 -9
  158. package/lib/commonjs/logic/dynamo/query.js +2 -2
  159. package/lib/commonjs/logic/dynamo/scan.js +2 -2
  160. package/lib/commonjs/logic/dynamo/updateItem.d.ts +1 -1
  161. package/lib/commonjs/logic/dynamo/updateItem.js +1 -1
  162. package/lib/commonjs/logic/parametersManager/setParameter.js +1 -1
  163. package/lib/commonjs/logic/s3/generatePresignedUrl.js +3 -1
  164. package/lib/commonjs/logic/s3/listFiles.js +1 -1
  165. package/lib/commonjs/logic/s3/readBinaryFile.js +5 -1
  166. package/lib/commonjs/logic/s3/s3Utils.d.ts +2 -2
  167. package/lib/commonjs/logic/s3/s3Utils.js +2 -2
  168. package/lib/commonjs/logic/s3/writeBinaryFile.js +1 -1
  169. package/lib/commonjs/logic/s3/writeTextFile.js +1 -1
  170. package/lib/commonjs/logic/secretsManager/getSecret.js +3 -1
  171. package/lib/commonjs/logic/sqs/sendMessages.js +1 -1
  172. package/lib/esm/awsLambdaUtils.d.ts +1 -1
  173. package/lib/esm/awsLambdaUtils.js +1 -1
  174. package/lib/esm/awsNamingUtils.d.ts +1 -1
  175. package/lib/esm/awsNamingUtils.js +4 -7
  176. package/lib/esm/getActionProcessor/core/config/getConfigGetGlobalActionProcessor.js +1 -1
  177. package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +4 -3
  178. package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +4 -3
  179. package/lib/esm/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +3 -2
  180. package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +4 -3
  181. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventAutoRespondActionProcessor.js +1 -1
  182. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetRecordsActionProcessor.js +1 -1
  183. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetStorySessionActionProcessor.js +1 -1
  184. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventMatchStoryActionProcessor.js +1 -1
  185. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventTransformResponseResultActionProcessor.js +1 -1
  186. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
  187. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventAutoRespondActionProcessor.js +1 -1
  188. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetRecordsActionProcessor.js +1 -1
  189. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetStorySessionActionProcessor.js +1 -1
  190. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +2 -2
  191. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventTransformResponseResultActionProcessor.js +1 -1
  192. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
  193. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventAutoRespondActionProcessor.js +1 -1
  194. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetRecordsActionProcessor.js +5 -2
  195. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetStorySessionActionProcessor.js +1 -1
  196. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventMatchStoryActionProcessor.js +1 -1
  197. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventTransformResponseResultActionProcessor.js +1 -1
  198. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
  199. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  200. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  201. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  202. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  203. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  204. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
  205. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +2 -2
  206. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetRecordsActionProcessor.js +1 -1
  207. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetStorySessionActionProcessor.js +1 -1
  208. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventMatchStoryActionProcessor.js +1 -1
  209. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventTransformResponseResultActionProcessor.js +1 -1
  210. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
  211. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  212. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  213. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  214. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  215. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  216. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
  217. package/lib/esm/getActionProcessor/core/event/cognito/index.d.ts +1 -1
  218. package/lib/esm/getActionProcessor/core/event/cognito/index.js +1 -1
  219. package/lib/esm/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
  220. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  221. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  222. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  223. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  224. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  225. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
  226. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventAutoRespondActionProcessor.js +1 -1
  227. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +2 -2
  228. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetStorySessionActionProcessor.js +1 -1
  229. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventMatchStoryActionProcessor.js +1 -1
  230. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventTransformResponseResultActionProcessor.js +1 -1
  231. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
  232. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
  233. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
  234. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventAutoRespondActionProcessor.js +1 -1
  235. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetRecordsActionProcessor.js +1 -1
  236. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetStorySessionActionProcessor.js +1 -1
  237. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js +1 -1
  238. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventTransformResponseResultActionProcessor.js +1 -1
  239. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
  240. package/lib/esm/getActionProcessor/core/event/index.d.ts +2 -2
  241. package/lib/esm/getActionProcessor/core/event/index.js +2 -2
  242. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventAutoRespondActionProcessor.js +1 -1
  243. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetRecordsActionProcessor.js +1 -1
  244. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetStorySessionActionProcessor.js +1 -1
  245. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventMatchStoryActionProcessor.js +1 -1
  246. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventTransformResponseResultActionProcessor.js +1 -1
  247. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
  248. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventAutoRespondActionProcessor.js +1 -1
  249. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetRecordsActionProcessor.js +1 -1
  250. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetStorySessionActionProcessor.js +1 -1
  251. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventMatchStoryActionProcessor.js +1 -1
  252. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventTransformResponseResultActionProcessor.js +1 -1
  253. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
  254. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventAutoRespondActionProcessor.js +1 -1
  255. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetRecordsActionProcessor.js +1 -1
  256. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetStorySessionActionProcessor.js +1 -1
  257. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventMatchStoryActionProcessor.js +1 -1
  258. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventTransformResponseResultActionProcessor.js +1 -1
  259. package/lib/esm/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
  260. package/lib/esm/getActionProcessor/core/event/utils/isAuthValid.js +6 -5
  261. package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +4 -4
  262. package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js +2 -2
  263. package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +4 -3
  264. package/lib/esm/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +3 -2
  265. package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +4 -3
  266. package/lib/esm/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +4 -3
  267. package/lib/esm/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +4 -3
  268. package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +5 -4
  269. package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +5 -4
  270. package/lib/esm/getActionProcessor/core/file/index.js +2 -2
  271. package/lib/esm/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +4 -3
  272. package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +2 -2
  273. package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseInternalFieldNamesActionProcessor.js +1 -1
  274. package/lib/esm/getActionProcessor/core/graphDatabase/stories/askRunNeptuneOpenCypherQuery.js +1 -1
  275. package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertAnyNeptuneResultToAnyGraphResult.js +2 -2
  276. package/lib/esm/getActionProcessor/core/index.d.ts +5 -5
  277. package/lib/esm/getActionProcessor/core/index.js +10 -10
  278. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +3 -2
  279. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +3 -3
  280. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +3 -3
  281. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +4 -3
  282. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +3 -3
  283. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +3 -2
  284. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +4 -3
  285. package/lib/esm/getActionProcessor/core/keyValueStore/index.js +2 -2
  286. package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +3 -3
  287. package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +1 -1
  288. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +6 -5
  289. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryChangePasswordActionProcessor.js +3 -2
  290. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmEmailVerificationActionProcessor.js +3 -2
  291. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +5 -4
  292. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +6 -5
  293. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +3 -2
  294. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +6 -5
  295. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +3 -2
  296. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +3 -2
  297. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +3 -2
  298. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +3 -2
  299. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +1 -1
  300. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +6 -5
  301. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRequestEmailVerificationActionProcessor.js +3 -2
  302. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +5 -4
  303. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +3 -2
  304. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +3 -2
  305. package/lib/esm/getActionProcessor/index.js +1 -1
  306. package/lib/esm/getActionProcessor/webserver/index.d.ts +1 -1
  307. package/lib/esm/getActionProcessor/webserver/index.js +2 -2
  308. package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +3 -2
  309. package/lib/esm/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +4 -3
  310. package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +3 -2
  311. package/lib/esm/index.d.ts +5 -5
  312. package/lib/esm/index.js +5 -5
  313. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  314. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
  315. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
  316. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  317. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
  318. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
  319. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
  320. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  321. package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
  322. package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
  323. package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +1 -1
  324. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
  325. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
  326. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
  327. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
  328. package/lib/esm/lambdaHandlers/helpers/logger.d.ts +1 -1
  329. package/lib/esm/lambdaHandlers/helpers/logger.js +3 -3
  330. package/lib/esm/lambdaHandlers/index.d.ts +3 -3
  331. package/lib/esm/lambdaHandlers/index.js +3 -3
  332. package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
  333. package/lib/esm/lambdas/apiGatewayEventHandler.js +1 -1
  334. package/lib/esm/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  335. package/lib/esm/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
  336. package/lib/esm/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
  337. package/lib/esm/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
  338. package/lib/esm/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
  339. package/lib/esm/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  340. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
  341. package/lib/esm/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
  342. package/lib/esm/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
  343. package/lib/esm/lambdas/lambda-utils/getQpqConfig.js +1 -1
  344. package/lib/esm/lambdas/lambda-utils/index.d.ts +1 -1
  345. package/lib/esm/lambdas/lambda-utils/index.js +1 -1
  346. package/lib/esm/lambdas/lambda-utils/logger.d.ts +1 -1
  347. package/lib/esm/lambdas/lambda-utils/logger.js +3 -3
  348. package/lib/esm/lambdas/lambdaSQSEvent.js +3 -3
  349. package/lib/esm/lambdas/sqsEvent_queueEvent.js +1 -1
  350. package/lib/esm/logic/acm/findMatchingCertificates.js +1 -2
  351. package/lib/esm/logic/apiGateway/getApiKeys.js +6 -2
  352. package/lib/esm/logic/apiGateway/websocketSendMessage.js +4 -4
  353. package/lib/esm/logic/cache/memoFuncAsync.js +5 -9
  354. package/lib/esm/logic/cloudFront/invalidateCache.js +1 -1
  355. package/lib/esm/logic/cloudformation/getExportedValue.js +2 -2
  356. package/lib/esm/logic/cognito/authenticateUser.js +6 -4
  357. package/lib/esm/logic/cognito/changePassword.js +4 -2
  358. package/lib/esm/logic/cognito/cognitoAttributeMap.js +4 -1
  359. package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
  360. package/lib/esm/logic/cognito/createUser.d.ts +1 -1
  361. package/lib/esm/logic/cognito/createUser.js +6 -4
  362. package/lib/esm/logic/cognito/decodeAccessToken.js +2 -2
  363. package/lib/esm/logic/cognito/decodeValidJwt.js +1 -1
  364. package/lib/esm/logic/cognito/forgotPassword.js +5 -3
  365. package/lib/esm/logic/cognito/getUser.js +4 -2
  366. package/lib/esm/logic/cognito/getUserAttributes.js +5 -3
  367. package/lib/esm/logic/cognito/getUserAttributesBySub.js +5 -3
  368. package/lib/esm/logic/cognito/getUserPoolClientSecret.js +3 -1
  369. package/lib/esm/logic/cognito/index.d.ts +1 -1
  370. package/lib/esm/logic/cognito/index.js +1 -1
  371. package/lib/esm/logic/cognito/listPagedUsers.d.ts +1 -1
  372. package/lib/esm/logic/cognito/listPagedUsers.js +5 -3
  373. package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
  374. package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +4 -2
  375. package/lib/esm/logic/cognito/refreshToken.js +6 -4
  376. package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -1
  377. package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
  378. package/lib/esm/logic/cognito/setUserAttributes.js +5 -3
  379. package/lib/esm/logic/cognito/setUserPassword.js +4 -2
  380. package/lib/esm/logic/cognito/utils/index.d.ts +1 -1
  381. package/lib/esm/logic/cognito/utils/index.js +1 -1
  382. package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
  383. package/lib/esm/logic/cognito/verifyUserEmail.js +3 -1
  384. package/lib/esm/logic/dynamo/deleteItem.js +2 -2
  385. package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
  386. package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +7 -3
  387. package/lib/esm/logic/dynamo/index.d.ts +1 -1
  388. package/lib/esm/logic/dynamo/index.js +1 -1
  389. package/lib/esm/logic/dynamo/putItem.js +1 -1
  390. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
  391. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
  392. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
  393. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +3 -10
  394. package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +1 -1
  395. package/lib/esm/logic/dynamo/query.js +3 -3
  396. package/lib/esm/logic/dynamo/scan.js +3 -3
  397. package/lib/esm/logic/dynamo/updateItem.d.ts +1 -1
  398. package/lib/esm/logic/dynamo/updateItem.js +1 -1
  399. package/lib/esm/logic/lambda/executeLambdaByName.js +1 -1
  400. package/lib/esm/logic/neptune/getNeptuneEndpoints.js +1 -1
  401. package/lib/esm/logic/parametersManager/getParameter.js +1 -1
  402. package/lib/esm/logic/parametersManager/getParameters.js +1 -1
  403. package/lib/esm/logic/parametersManager/setParameter.js +2 -2
  404. package/lib/esm/logic/s3/deleteFiles.js +1 -1
  405. package/lib/esm/logic/s3/generatePresignedUrl.js +3 -1
  406. package/lib/esm/logic/s3/listFiles.js +1 -1
  407. package/lib/esm/logic/s3/readBinaryFile.js +6 -2
  408. package/lib/esm/logic/s3/readTextFile.js +1 -1
  409. package/lib/esm/logic/s3/s3Utils.d.ts +2 -2
  410. package/lib/esm/logic/s3/s3Utils.js +2 -2
  411. package/lib/esm/logic/s3/writeBinaryFile.js +2 -2
  412. package/lib/esm/logic/s3/writeTextFile.js +2 -2
  413. package/lib/esm/logic/secretsManager/getSecret.js +4 -2
  414. package/lib/esm/logic/sns/publishMessage.js +1 -1
  415. package/lib/esm/logic/sqs/sendMessages.js +2 -2
  416. package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +1 -1
  417. package/package.json +9 -6
package/README.md CHANGED
@@ -1,118 +1,97 @@
1
- # quidproquo-actionprocessor-awslambda
2
-
3
- The `quidproquo-actionprocessor-awslambda` library is a key component of the quidproquo framework,
4
- providing a set of generic action processors for AWS Lambda. This library serves as the bridge
5
- between the core quidproquo functionality and the AWS Lambda runtime, enabling the execution of
6
- quidproquo-based applications on the AWS Lambda platform.
7
-
8
- ## WARNING: NOT FOR PRODUCTION
9
-
10
- **This project is currently under active development and should not be used in production
11
- environments. The APIs and functionality are subject to change without notice.**
12
-
13
- ## Key Features
14
-
15
- 1. **Action-Oriented Architecture**: The `quidproquo-actionprocessor-awslambda` library aligns with
16
- the action-oriented architecture of the quidproquo framework, allowing for the seamless execution
17
- of quidproquo actions within the AWS Lambda environment.
18
-
19
- 2. **Event Handling**: The library provides specialized action processors for handling various event
20
- types, such as API Gateway events, CloudFront events, SQS events, and more. This enables the
21
- integration of quidproquo-based applications with a wide range of AWS services.
22
-
23
- 3. **Configuration Management**: The library includes action processors for managing quidproquo
24
- configuration, including the retrieval of secrets, parameters, and global values from AWS
25
- services like Secrets Manager and Systems Manager Parameter Store.
26
-
27
- 4. **File Management**: The library offers action processors for interacting with Amazon S3,
28
- allowing for the reading, writing, and management of files and directories within the quidproquo
29
- application.
30
-
31
- 5. **User Directory Integration**: The library includes action processors for integrating with
32
- Amazon Cognito, enabling user authentication, user management, and access control within
33
- quidproquo-based applications.
34
-
35
- 6. **Event Bus Integration**: The library provides action processors for publishing and subscribing
36
- to events using Amazon EventBridge, facilitating cross-service communication and event-driven
37
- architectures.
38
-
39
- 7. **Key-Value Store Integration**: The library includes action processors for interacting with
40
- Amazon DynamoDB, enabling the use of key-value stores within quidproquo applications.
41
-
42
- 8. **Logging and Observability**: The library integrates with the quidproquo logging and
43
- observability features, ensuring that application logs and metrics are captured and made
44
- available for monitoring and troubleshooting.
45
-
46
- 9. **Extensibility**: The library is designed to be highly extensible, allowing developers to create
47
- custom action processors to meet their specific requirements.
48
-
49
- ## Key Concepts
50
-
51
- 1. **Action Processors**: Action processors are the core components of the
52
- `quidproquo-actionprocessor-awslambda` library, responsible for executing quidproquo actions
53
- within the AWS Lambda environment. These processors handle the integration with various AWS
54
- services and ensure the correct execution of quidproquo actions.
55
-
56
- 2. **Event Handling**: The library provides specialized action processors for handling different
57
- event types, such as API Gateway events, CloudFront events, SQS events, and more. These
58
- processors transform the event data into a format that can be consumed by the quidproquo runtime
59
- and execute the appropriate quidproquo actions.
60
-
61
- 3. **Configuration Management**: The library includes action processors for retrieving and managing
62
- quidproquo configuration data, such as secrets, parameters, and global values, from AWS services
63
- like Secrets Manager and Systems Manager Parameter Store.
64
-
65
- 4. **File Management**: The file management action processors enable the reading, writing, and
66
- management of files and directories within the quidproquo application, using Amazon S3 as the
67
- underlying storage service.
68
-
69
- 5. **User Directory Integration**: The user directory integration action processors handle the
70
- integration with Amazon Cognito, allowing for user authentication, user management, and access
71
- control within quidproquo-based applications.
72
-
73
- 6. **Event Bus Integration**: The event bus integration action processors facilitate the publishing
74
- and subscribing of events using Amazon EventBridge, enabling cross-service communication and
75
- event-driven architectures within quidproquo applications.
76
-
77
- 7. **Key-Value Store Integration**: The key-value store integration action processors provide the
78
- ability to interact with Amazon DynamoDB, allowing quidproquo applications to leverage key-value
79
- stores for data storage and retrieval.
80
-
81
- 8. **Logging and Observability**: The library integrates with the quidproquo logging and
82
- observability features, ensuring that application logs and metrics are captured and made
83
- available for monitoring and troubleshooting.
84
-
85
- 9. **Extensibility**: The `quidproquo-actionprocessor-awslambda` library is designed to be highly
86
- extensible, allowing developers to create custom action processors to meet their specific
87
- requirements. This enables the integration of quidproquo-based applications with a wide range of
88
- AWS services and third-party tools.
89
-
90
- ## Getting Started
91
-
92
- To use the `quidproquo-actionprocessor-awslambda` library, you'll need to install the package and
93
- its dependencies. You can do this using your preferred package manager, such as npm or yarn:
94
-
95
- ```
96
- npm install quidproquo-actionprocessor-awslambda
97
- ```
98
-
99
- Once you have the package installed, you can start building your quidproquo-based applications on
100
- the AWS Lambda platform, leveraging the action processors provided by this library.
101
-
102
- ## Documentation
103
-
104
- For more detailed information on using the `quidproquo-actionprocessor-awslambda` library, please
105
- refer to the
106
- [quidproquo-actionprocessor-awslambda documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-actionprocessor-awslambda).
107
-
108
- ## Contributing
109
-
110
- If you'd like to contribute to the development of `quidproquo-actionprocessor-awslambda`, please
111
- refer to the
112
- [contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for
113
- more information.
114
-
115
- ## License
116
-
117
- `quidproquo-actionprocessor-awslambda` is licensed under the
118
- [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
1
+ # quidproquo-actionprocessor-awslambda
2
+
3
+ The `quidproquo-actionprocessor-awslambda` library is a key component of the quidproquo framework, providing a set of generic action processors for
4
+ AWS Lambda. This library serves as the bridge between the core quidproquo functionality and the AWS Lambda runtime, enabling the execution of
5
+ quidproquo-based applications on the AWS Lambda platform.
6
+
7
+ ## WARNING: NOT FOR PRODUCTION
8
+
9
+ **This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
10
+ change without notice.**
11
+
12
+ ## Key Features
13
+
14
+ 1. **Action-Oriented Architecture**: The `quidproquo-actionprocessor-awslambda` library aligns with the action-oriented architecture of the quidproquo
15
+ framework, allowing for the seamless execution of quidproquo actions within the AWS Lambda environment.
16
+
17
+ 2. **Event Handling**: The library provides specialized action processors for handling various event types, such as API Gateway events, CloudFront
18
+ events, SQS events, and more. This enables the integration of quidproquo-based applications with a wide range of AWS services.
19
+
20
+ 3. **Configuration Management**: The library includes action processors for managing quidproquo configuration, including the retrieval of secrets,
21
+ parameters, and global values from AWS services like Secrets Manager and Systems Manager Parameter Store.
22
+
23
+ 4. **File Management**: The library offers action processors for interacting with Amazon S3, allowing for the reading, writing, and management of
24
+ files and directories within the quidproquo application.
25
+
26
+ 5. **User Directory Integration**: The library includes action processors for integrating with Amazon Cognito, enabling user authentication, user
27
+ management, and access control within quidproquo-based applications.
28
+
29
+ 6. **Event Bus Integration**: The library provides action processors for publishing and subscribing to events using Amazon EventBridge, facilitating
30
+ cross-service communication and event-driven architectures.
31
+
32
+ 7. **Key-Value Store Integration**: The library includes action processors for interacting with Amazon DynamoDB, enabling the use of key-value stores
33
+ within quidproquo applications.
34
+
35
+ 8. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that application logs and
36
+ metrics are captured and made available for monitoring and troubleshooting.
37
+
38
+ 9. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom action processors to meet their specific
39
+ requirements.
40
+
41
+ ## Key Concepts
42
+
43
+ 1. **Action Processors**: Action processors are the core components of the `quidproquo-actionprocessor-awslambda` library, responsible for executing
44
+ quidproquo actions within the AWS Lambda environment. These processors handle the integration with various AWS services and ensure the correct
45
+ execution of quidproquo actions.
46
+
47
+ 2. **Event Handling**: The library provides specialized action processors for handling different event types, such as API Gateway events, CloudFront
48
+ events, SQS events, and more. These processors transform the event data into a format that can be consumed by the quidproquo runtime and execute
49
+ the appropriate quidproquo actions.
50
+
51
+ 3. **Configuration Management**: The library includes action processors for retrieving and managing quidproquo configuration data, such as secrets,
52
+ parameters, and global values, from AWS services like Secrets Manager and Systems Manager Parameter Store.
53
+
54
+ 4. **File Management**: The file management action processors enable the reading, writing, and management of files and directories within the
55
+ quidproquo application, using Amazon S3 as the underlying storage service.
56
+
57
+ 5. **User Directory Integration**: The user directory integration action processors handle the integration with Amazon Cognito, allowing for user
58
+ authentication, user management, and access control within quidproquo-based applications.
59
+
60
+ 6. **Event Bus Integration**: The event bus integration action processors facilitate the publishing and subscribing of events using Amazon
61
+ EventBridge, enabling cross-service communication and event-driven architectures within quidproquo applications.
62
+
63
+ 7. **Key-Value Store Integration**: The key-value store integration action processors provide the ability to interact with Amazon DynamoDB, allowing
64
+ quidproquo applications to leverage key-value stores for data storage and retrieval.
65
+
66
+ 8. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that application logs and
67
+ metrics are captured and made available for monitoring and troubleshooting.
68
+
69
+ 9. **Extensibility**: The `quidproquo-actionprocessor-awslambda` library is designed to be highly extensible, allowing developers to create custom
70
+ action processors to meet their specific requirements. This enables the integration of quidproquo-based applications with a wide range of AWS
71
+ services and third-party tools.
72
+
73
+ ## Getting Started
74
+
75
+ To use the `quidproquo-actionprocessor-awslambda` library, you'll need to install the package and its dependencies. You can do this using your
76
+ preferred package manager, such as npm or yarn:
77
+
78
+ ```
79
+ npm install quidproquo-actionprocessor-awslambda
80
+ ```
81
+
82
+ Once you have the package installed, you can start building your quidproquo-based applications on the AWS Lambda platform, leveraging the action
83
+ processors provided by this library.
84
+
85
+ ## Documentation
86
+
87
+ For more detailed information on using the `quidproquo-actionprocessor-awslambda` library, please refer to the
88
+ [quidproquo-actionprocessor-awslambda documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-actionprocessor-awslambda).
89
+
90
+ ## Contributing
91
+
92
+ If you'd like to contribute to the development of `quidproquo-actionprocessor-awslambda`, please refer to the
93
+ [contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
94
+
95
+ ## License
96
+
97
+ `quidproquo-actionprocessor-awslambda` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
@@ -1,5 +1,5 @@
1
- import { StorageClass } from '@aws-sdk/client-s3';
2
1
  import { StorageDriveTier } from 'quidproquo-core';
2
+ import { StorageClass } from '@aws-sdk/client-s3';
3
3
  export declare const randomGuid: () => `${string}-${string}-${string}-${string}-${string}`;
4
4
  export interface UrlMatch {
5
5
  didMatch: boolean;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getS3BucketStorageClassFromStorageDriveTier = exports.matchUrl = exports.randomGuid = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
4
5
  const crypto_1 = require("crypto");
5
6
  const node_match_path_1 = require("node-match-path");
6
- const quidproquo_core_1 = require("quidproquo-core");
7
7
  const randomGuid = () => {
8
8
  return (0, crypto_1.randomUUID)();
9
9
  };
@@ -1,4 +1,4 @@
1
- import { QPQConfig, ResourceName, CrossModuleOwner } from 'quidproquo-core';
1
+ import { CrossModuleOwner, QPQConfig, ResourceName } from 'quidproquo-core';
2
2
  export declare const getGlobalConfigRuntimeResourceName: (resourceName: string, application: string, environment: string, feature?: string) => string;
3
3
  export declare const getGlobalQpqRuntimeResourceName: (resourceName: string, application: string, environment: string, feature?: string, resourceType?: string) => string;
4
4
  export declare const getConfigRuntimeResourceName: (resourceName: string, application: string, service: string, environment: string, feature?: string) => string;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getBootstrapStackName = exports.getApiStackName = exports.getWebStackName = exports.getInfStackName = exports.getBaseStackName = exports.getEventBusSnsTopicArn = exports.getCFExportNameWebsocketApiIdFromConfig = exports.getCFExportNameDistributionIdArnFromConfig = exports.getCFExportNameSnsTopicArnFromConfig = exports.getCFExportNameApiKeyIdFromConfig = exports.getCFExportNameUserPoolClientIdFromConfig = exports.getCFExportNameCachePolicyIdFromConfig = exports.getCFExportNameUserPoolIdFromConfig = exports.getKvsDynamoTableNameFromConfig = exports.getQpqRuntimeResourceNameFromConfig = exports.getQpqRuntimeResourceName = exports.getConfigRuntimeResourceNameFromConfigWithServiceOverride = exports.getConfigRuntimeBootstrapResourceNameFromConfig = exports.resolveConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeBootstrapResourceName = exports.getConfigRuntimeResourceName = exports.getGlobalQpqRuntimeResourceName = exports.getGlobalConfigRuntimeResourceName = void 0;
4
- const quidproquo_core_1 = require("quidproquo-core");
5
4
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
5
+ const quidproquo_core_1 = require("quidproquo-core");
6
6
  const quidproquo_webserver_1 = require("quidproquo-webserver");
7
7
  const getGlobalConfigRuntimeResourceName = (resourceName, application, environment, feature) => {
8
8
  const baseName = `${resourceName}-${application}-${environment}`;
@@ -97,8 +97,7 @@ const getCFExportNameUserPoolIdFromConfig = (userDirectoryName, qpqConfig) => {
97
97
  const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectoryByName(userDirectoryName, qpqConfig);
98
98
  const application = ((_a = userDirectoryConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
99
99
  const service = ((_b = userDirectoryConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
100
- const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
101
- quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
100
+ const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
102
101
  const feature = ((_d = userDirectoryConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
103
102
  const resourceName = ((_e = userDirectoryConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || userDirectoryName;
104
103
  return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'user-pool-id-export');
@@ -117,8 +116,7 @@ const getCFExportNameUserPoolClientIdFromConfig = (userDirectoryName, qpqConfig)
117
116
  const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectoryByName(userDirectoryName, qpqConfig);
118
117
  const application = ((_a = userDirectoryConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
119
118
  const service = ((_b = userDirectoryConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
120
- const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
121
- quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
119
+ const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
122
120
  const feature = ((_d = userDirectoryConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
123
121
  const resourceName = ((_e = userDirectoryConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || userDirectoryName;
124
122
  return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'user-pool-client-id-export');
@@ -152,8 +150,7 @@ const getCFExportNameWebsocketApiIdFromConfig = (websocketApiName, qpqConfig) =>
152
150
  const websocketApiConfig = quidproquo_webserver_1.qpqWebServerUtils.getWebsocketEntryByApiName(websocketApiName, qpqConfig);
153
151
  const application = ((_a = websocketApiConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
154
152
  const service = ((_b = websocketApiConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
155
- const environment = ((_c = websocketApiConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
156
- quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
153
+ const environment = ((_c = websocketApiConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
157
154
  const feature = ((_d = websocketApiConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
158
155
  const resourceName = ((_e = websocketApiConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || websocketApiName;
159
156
  return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'websocket-api-id-export');
@@ -10,14 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getConfigGetParameterActionProcessor = void 0;
13
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
13
14
  const quidproquo_core_1 = require("quidproquo-core");
14
- const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
15
15
  const getParameter_1 = require("../../../logic/parametersManager/getParameter");
16
+ const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
16
17
  const getProcessConfigGetParameter = (qpqConfig) => {
17
18
  return ({ parameterName }) => __awaiter(void 0, void 0, void 0, function* () {
18
19
  const awsParameterKey = (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(parameterName, qpqConfig);
19
20
  try {
20
- const parameterValue = yield (0, getParameter_1.getParameter)(awsParameterKey, quidproquo_core_1.qpqCoreUtils.getApplicationModuleDeployRegion(qpqConfig));
21
+ const parameterValue = yield (0, getParameter_1.getParameter)(awsParameterKey, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig));
21
22
  return (0, quidproquo_core_1.actionResult)(parameterValue);
22
23
  }
23
24
  catch (error) {
@@ -10,14 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getConfigGetParametersActionProcessor = void 0;
13
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
13
14
  const quidproquo_core_1 = require("quidproquo-core");
14
- const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
15
15
  const getParameters_1 = require("../../../logic/parametersManager/getParameters");
16
+ const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
16
17
  const getProcessConfigGetParameters = (qpqConfig) => {
17
18
  return ({ parameterNames }) => __awaiter(void 0, void 0, void 0, function* () {
18
19
  const awsParameterKeys = parameterNames.map((pn) => (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(pn, qpqConfig));
19
20
  try {
20
- const parameterValues = yield (0, getParameters_1.getParameters)(awsParameterKeys, quidproquo_core_1.qpqCoreUtils.getApplicationModuleDeployRegion(qpqConfig));
21
+ const parameterValues = yield (0, getParameters_1.getParameters)(awsParameterKeys, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig));
21
22
  return (0, quidproquo_core_1.actionResult)(parameterValues);
22
23
  }
23
24
  catch (error) {
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getConfigGetSecretActionProcessor = void 0;
13
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
13
14
  const quidproquo_core_1 = require("quidproquo-core");
14
15
  const getSecret_1 = require("../../../logic/secretsManager/getSecret");
15
16
  const utils_1 = require("./utils");
16
17
  const getProcessConfigGetSecret = (qpqConfig) => {
17
18
  return ({ secretName }) => __awaiter(void 0, void 0, void 0, function* () {
18
19
  const awsSecretKey = (0, utils_1.resolveSecretResourceName)(secretName, qpqConfig);
19
- const secretValue = yield (0, getSecret_1.getSecret)(awsSecretKey, quidproquo_core_1.qpqCoreUtils.getApplicationModuleDeployRegion(qpqConfig));
20
+ const secretValue = yield (0, getSecret_1.getSecret)(awsSecretKey, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig));
20
21
  return (0, quidproquo_core_1.actionResult)(secretValue);
21
22
  });
22
23
  };
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getConfigSetParameterActionProcessor = void 0;
13
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
13
14
  const quidproquo_core_1 = require("quidproquo-core");
14
- const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
15
15
  const setParameter_1 = require("../../../logic/parametersManager/setParameter");
16
+ const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
16
17
  const getProcessConfigSetParameter = (qpqConfig) => {
17
18
  return ({ parameterName, parameterValue }) => __awaiter(void 0, void 0, void 0, function* () {
18
19
  const awsParameterKey = (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(parameterName, qpqConfig);
19
- yield (0, setParameter_1.setParameter)(awsParameterKey, quidproquo_core_1.qpqCoreUtils.getApplicationModuleDeployRegion(qpqConfig), parameterValue);
20
+ yield (0, setParameter_1.setParameter)(awsParameterKey, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig), parameterValue);
20
21
  return (0, quidproquo_core_1.actionResult)(void 0);
21
22
  });
22
23
  };
@@ -1,6 +1,6 @@
1
- import { HTTPEvent, HTTPEventResponse, RouteOptions } from 'quidproquo-webserver';
2
- import { APIGatewayEvent, Context, APIGatewayProxyResult } from 'aws-lambda';
3
1
  import { MatchStoryResult } from 'quidproquo-core';
2
+ import { HTTPEvent, HTTPEventResponse, RouteOptions } from 'quidproquo-webserver';
3
+ import { APIGatewayEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
4
4
  export type EventInput = [APIGatewayEvent, Context];
5
5
  export type EventOutput = APIGatewayProxyResult;
6
6
  export type InternalEventRecord = HTTPEvent;
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getEventMatchStoryActionProcessor = void 0;
13
13
  const quidproquo_core_1 = require("quidproquo-core");
14
- const types_1 = require("./types");
15
14
  const quidproquo_webserver_1 = require("quidproquo-webserver");
15
+ const types_1 = require("./types");
16
16
  const getProcessMatchStory = (qpqConfig) => {
17
17
  const userDirectoryConfig = quidproquo_webserver_1.qpqWebServerUtils.getWebsocketEntryByApiName(types_1.GLOBAL_WEBSOCKET_API_NAME, qpqConfig);
18
18
  return ({ qpqEventRecord }) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1,6 +1,6 @@
1
- import { WebsocketEvent, WebsocketEventResponse } from 'quidproquo-webserver';
2
- import { APIGatewayEventWebsocketRequestContextV2, APIGatewayProxyWebsocketEventV2WithRequestContext, Context, APIGatewayProxyResultV2 } from 'aws-lambda';
3
1
  import { MatchStoryResult } from 'quidproquo-core';
2
+ import { WebsocketEvent, WebsocketEventResponse } from 'quidproquo-webserver';
3
+ import { APIGatewayEventWebsocketRequestContextV2, APIGatewayProxyResultV2, APIGatewayProxyWebsocketEventV2WithRequestContext, Context } from 'aws-lambda';
4
4
  type ApiGatwayEventWebsocketWithIdentity = APIGatewayProxyWebsocketEventV2WithRequestContext<APIGatewayEventWebsocketRequestContextV2 & {
5
5
  identity: {
6
6
  sourceIp: string;
@@ -1,6 +1,6 @@
1
- import { SeoEvent, SeoEventResponse, SeoEventRouteParams, SeoQPQWebServerConfigSetting } from 'quidproquo-webserver';
2
- import { CloudFrontRequestEvent, Context, CloudFrontRequestResult } from 'aws-lambda';
3
1
  import { MatchStoryResult } from 'quidproquo-core';
2
+ import { SeoEvent, SeoEventResponse, SeoEventRouteParams, SeoQPQWebServerConfigSetting } from 'quidproquo-webserver';
3
+ import { CloudFrontRequestEvent, CloudFrontRequestResult, Context } from 'aws-lambda';
4
4
  export type EventInput = [CloudFrontRequestEvent, Context];
5
5
  export type EventOutput = CloudFrontRequestResult;
6
6
  export type InternalEventRecord = SeoEvent<any>;
@@ -1,5 +1,5 @@
1
1
  import { CreateAuthChallengeEvent, CreateAuthChallengeEventResponse, MatchStoryResult } from 'quidproquo-core';
2
- import { CreateAuthChallengeTriggerEvent, Context } from 'aws-lambda';
2
+ import { Context, CreateAuthChallengeTriggerEvent } from 'aws-lambda';
3
3
  export declare const GLOBAL_USER_DIRECTORY_NAME: string;
4
4
  export type EventInput = [CreateAuthChallengeTriggerEvent, Context];
5
5
  export type EventOutput = CreateAuthChallengeTriggerEvent;
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getEventAutoRespondActionProcessor = void 0;
13
13
  const quidproquo_core_1 = require("quidproquo-core");
14
- const types_1 = require("./types");
15
14
  const quidproquo_webserver_1 = require("quidproquo-webserver");
15
+ const types_1 = require("./types");
16
16
  const getProcessAutoRespond = (qpqConfig) => {
17
17
  const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectories(qpqConfig).find((ud) => ud.name === types_1.GLOBAL_USER_DIRECTORY_NAME);
18
18
  return ({ qpqEventRecord, matchResult }) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1,6 +1,6 @@
1
- import { EmailSendEvent, EmailSendEventResponse } from 'quidproquo-webserver';
2
- import { CustomMessageTriggerEvent, Context } from 'aws-lambda';
3
1
  import { MatchStoryResult } from 'quidproquo-core';
2
+ import { EmailSendEvent, EmailSendEventResponse } from 'quidproquo-webserver';
3
+ import { Context, CustomMessageTriggerEvent } from 'aws-lambda';
4
4
  export declare const GLOBAL_USER_DIRECTORY_NAME: string;
5
5
  export type EventInput = [CustomMessageTriggerEvent, Context];
6
6
  export type EventOutput = CustomMessageTriggerEvent;
@@ -1,5 +1,5 @@
1
1
  import { DefineAuthChallengeEvent, DefineAuthChallengeEventResponse, MatchStoryResult } from 'quidproquo-core';
2
- import { DefineAuthChallengeTriggerEvent, Context } from 'aws-lambda';
2
+ import { Context, DefineAuthChallengeTriggerEvent } from 'aws-lambda';
3
3
  export declare const GLOBAL_USER_DIRECTORY_NAME: string;
4
4
  export type EventInput = [DefineAuthChallengeTriggerEvent, Context];
5
5
  export type EventOutput = DefineAuthChallengeTriggerEvent;
@@ -1,4 +1,4 @@
1
+ export * from './createAuthChallenge';
1
2
  export * from './customMessage';
2
3
  export * from './defineAuthChallenge';
3
- export * from './createAuthChallenge';
4
4
  export * from './verifyAuthChallenge';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./createAuthChallenge"), exports);
17
18
  __exportStar(require("./customMessage"), exports);
18
19
  __exportStar(require("./defineAuthChallenge"), exports);
19
- __exportStar(require("./createAuthChallenge"), exports);
20
20
  __exportStar(require("./verifyAuthChallenge"), exports);
@@ -1,3 +1,3 @@
1
- import { DefineAuthChallengeTriggerEvent } from 'aws-lambda';
2
1
  import { ChallengeSession } from 'quidproquo-core';
2
+ import { DefineAuthChallengeTriggerEvent } from 'aws-lambda';
3
3
  export declare const getChallengeSessionFromCognitoTriggerEventSession: (session: DefineAuthChallengeTriggerEvent['request']['session']) => ChallengeSession;
@@ -1,5 +1,5 @@
1
- import { VerifyAuthChallengeEvent, VerifyAuthChallengeEventResponse, MatchStoryResult } from 'quidproquo-core';
2
- import { VerifyAuthChallengeResponseTriggerEvent, Context } from 'aws-lambda';
1
+ import { MatchStoryResult, VerifyAuthChallengeEvent, VerifyAuthChallengeEventResponse } from 'quidproquo-core';
2
+ import { Context, VerifyAuthChallengeResponseTriggerEvent } from 'aws-lambda';
3
3
  export declare const GLOBAL_USER_DIRECTORY_NAME: string;
4
4
  export type EventInput = [VerifyAuthChallengeResponseTriggerEvent, Context];
5
5
  export type EventOutput = VerifyAuthChallengeResponseTriggerEvent;
@@ -21,7 +21,7 @@ const getProcessGetRecords = (qpqConfig) => {
21
21
  return ({ eventParams: [eventBridgeEvent, context] }) => __awaiter(void 0, void 0, void 0, function* () {
22
22
  const status = eventBridgeEvent.detail['status-details'].status || '';
23
23
  const stackId = eventBridgeEvent.detail['stack-id'];
24
- const regex = /:stack\/([^\/]+)/;
24
+ const regex = /:stack\/([^/]+)/;
25
25
  const match = stackId.match(regex);
26
26
  const stackName = match && match[1] ? match[1] : '';
27
27
  const internalEventRecord = {
@@ -1,5 +1,5 @@
1
- import { EventBridgeEvent, Context } from 'aws-lambda';
2
1
  import { DeployEvent, DeployEventResponse, MatchStoryResult } from 'quidproquo-core';
2
+ import { Context, EventBridgeEvent } from 'aws-lambda';
3
3
  interface CloudFormationEventDetail {
4
4
  'stack-id': string;
5
5
  'status-details': {
@@ -1,2 +1,2 @@
1
- export * from './recurringSchedule';
2
1
  export * from './deployStack';
2
+ export * from './recurringSchedule';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./recurringSchedule"), exports);
18
17
  __exportStar(require("./deployStack"), exports);
18
+ __exportStar(require("./recurringSchedule"), exports);
@@ -1,5 +1,5 @@
1
- import { EventBridgeEvent, Context } from 'aws-lambda';
2
1
  import { MatchStoryResult, ScheduledEventParams } from 'quidproquo-core';
2
+ import { Context, EventBridgeEvent } from 'aws-lambda';
3
3
  export type EventInput = [EventBridgeEvent<any, any>, Context];
4
4
  export type EventOutput = void;
5
5
  export type InternalEventRecord = ScheduledEventParams<any>;
@@ -1,7 +1,7 @@
1
1
  export * from './apiGatwayEvent';
2
2
  export * from './cloudFrontOriginRequest';
3
- export * from './eventBridgeEvent';
4
3
  export * from './cognito';
5
- export * from './s3';
4
+ export * from './eventBridgeEvent';
6
5
  export * from './lambda';
6
+ export * from './s3';
7
7
  export * from './sqs';
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./apiGatwayEvent"), exports);
18
18
  __exportStar(require("./cloudFrontOriginRequest"), exports);
19
- __exportStar(require("./eventBridgeEvent"), exports);
20
19
  __exportStar(require("./cognito"), exports);
21
- __exportStar(require("./s3"), exports);
20
+ __exportStar(require("./eventBridgeEvent"), exports);
22
21
  __exportStar(require("./lambda"), exports);
22
+ __exportStar(require("./s3"), exports);
23
23
  __exportStar(require("./sqs"), exports);
@@ -1,6 +1,6 @@
1
+ import { EitherActionResult, MatchStoryResult, StorySession } from 'quidproquo-core';
1
2
  import { ExecuteServiceFunctionEvent } from 'quidproquo-webserver';
2
3
  import { Context } from 'aws-lambda';
3
- import { EitherActionResult, MatchStoryResult, StorySession } from 'quidproquo-core';
4
4
  export type AnyExecuteServiceFunctionEventWithSession = ExecuteServiceFunctionEvent<any[]> & {
5
5
  storySession: StorySession;
6
6
  };
@@ -1,6 +1,6 @@
1
- import { StorageDriveEvent, StorageDriveEventResponse } from 'quidproquo-webserver';
2
- import { S3Event, Context } from 'aws-lambda';
3
1
  import { MatchStoryResult, QpqFunctionRuntime } from 'quidproquo-core';
2
+ import { StorageDriveEvent, StorageDriveEventResponse } from 'quidproquo-webserver';
3
+ import { Context, S3Event } from 'aws-lambda';
4
4
  export declare const GLOBAL_STORAGE_DRIVE_NAME: string;
5
5
  export declare const GLOBAL_STORAGE_DRIVE_RUNTIME: QpqFunctionRuntime;
6
6
  export type EventInput = [S3Event, Context];
@@ -1,7 +1,7 @@
1
- import { QueueEventResponse } from 'quidproquo-webserver';
2
- import { SQSEvent, Context, SQSBatchResponse } from 'aws-lambda';
3
1
  import { MatchStoryResult, QueueMessage, StorySession } from 'quidproquo-core';
2
+ import { QueueEventResponse } from 'quidproquo-webserver';
4
3
  import { QueueEvent } from 'quidproquo-webserver';
4
+ import { Context, SQSBatchResponse, SQSEvent } from 'aws-lambda';
5
5
  export type AnyQueueMessageWithSession = QueueMessage<any> & {
6
6
  storySession: StorySession;
7
7
  };