Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parser): add Cognito pre-signup trigger schema #3729

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
feat(parser): add comprehensive Cognito trigger schemas
- Implemented 12 new Zod schemas for Cognito Lambda triggers:
  - Pre-Signup, Post-Confirmation, Pre-Authentication, Post-Authentication
  - Pre-Token Generation (V1 & V2), Migrate User
  - Custom Message, Custom Email Sender, Custom SMS Sender
  - Define Auth Challenge, Create Auth Challenge, Verify Auth Challenge
- Updated schemas/index.ts for dedicated exports
- Added unit tests in cognito.test.ts following Prepare/Act/Assess format
  • Loading branch information
VatsalGoel3 committed Mar 18, 2025
commit 9b77ef18a8e08b2888213b7bead6b0c967f2f69c
8 changes: 8 additions & 0 deletions packages/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"require": "./lib/cjs/schemas/cloudwatch.js",
"import": "./lib/esm/schemas/cloudwatch.js"
},
"./schemas/cognito": {
"require": "./lib/cjs/schemas/cognito.js",
"import": "./lib/esm/schemas/cognito.js"
},
"./schemas/dynamodb": {
"require": "./lib/cjs/schemas/dynamodb.js",
"import": "./lib/esm/schemas/dynamodb.js"
Expand Down Expand Up @@ -183,6 +187,10 @@
"./lib/cjs/schemas/cloudwatch.d.ts",
"./lib/esm/schemas/cloudwatch.d.ts"
],
"schemas/cognito":[
"./lib/cjs/schemas/cognito.d.ts",
"./lib/esm/schemas/cognito.d.ts"
],
"schemas/dynamodb": [
"./lib/cjs/schemas/dynamodb.d.ts",
"./lib/esm/schemas/dynamodb.d.ts"
Expand Down
Loading