• Vy Nguyễn Minh Khang's avatar
    fix(contracts): add verify-email and resend-verification schemas · 97b46ba2
    Vy Nguyễn Minh Khang authored
    verify-email.ts and resend-verification.ts both import Zod schemas
    and response-data types that did not exist in contracts/auth/schema.ts.
    That left the two controllers uncompilable and blocked any attempt to
    hit the REST verification endpoints (the OIDC flow renders
    verify-pending.hbs via the controller, so the same schemas are part
    of the contract for the email-verification flow from PROGRESS.md §13).
    
    Adds:
    - VerifyEmailQuerySchema — { token }
    - VerifyEmailResponseDataSchema + VerifyEmailResponseData type
    - VerifyEmailResponseSchema (envelope)
    - ResendVerificationBodySchema — { email }
    - ResendVerificationResponseDataSchema + ResendVerificationResponseData
      type — expires_at is nullable because the controller returns null
      when the user is unknown or already verified (PLANS.md §3 ADR — no
      email enumeration)
    - ResendVerificationResponseSchema (envelope)
    
    Each schema follows the conventions in the rest of schema.ts: z.iso
    for datetimes, z.email() for email fields, .openapi(...) for Swagger
    metadata, and the ApiResponseSchema envelope wrapper.
    Co-authored-by: 's avatarCursor <cursoragent@cursor.com>
    97b46ba2
Name
Last commit
Last update
.husky Loading commit data...
config Loading commit data...
docs Loading commit data...
infrastructure Loading commit data...
lib Loading commit data...
scripts Loading commit data...
sql Loading commit data...
src Loading commit data...
tests Loading commit data...
.dockerignore Loading commit data...
.env.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
PLANS.md Loading commit data...
PROGRESS.md Loading commit data...
README.md Loading commit data...
RUN.md Loading commit data...
docker-compose.ha.yml Loading commit data...
docker-compose.yml Loading commit data...
jest.config.ts Loading commit data...
nodemon.json Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
test-login.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.test.json Loading commit data...