• Lead VietProDev's avatar
    fix(contracts): add verify-email and resend-verification schemas · 9d7895ee
    Lead VietProDev 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>
    9d7895ee
Name
Last commit
Last update
..
audit Loading commit data...
config Loading commit data...
constants Loading commit data...
contracts Loading commit data...
controllers Loading commit data...
database Loading commit data...
interfaces Loading commit data...
jobs Loading commit data...
middlewares Loading commit data...
models Loading commit data...
oidc Loading commit data...
providers Loading commit data...
services Loading commit data...
templates Loading commit data...
tracing Loading commit data...
utils Loading commit data...
workers Loading commit data...
index.ts Loading commit data...
root.ts Loading commit data...
server.ts Loading commit data...