• 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
..
apartment Loading commit data...
audit Loading commit data...
auth Loading commit data...
bed Loading commit data...
bill Loading commit data...
building Loading commit data...
contract Loading commit data...
contract-file Loading commit data...
contract-type Loading commit data...
debt-reminder-policy Loading commit data...
file Loading commit data...
incident Loading commit data...
incident-file Loading commit data...
incident-type Loading commit data...
notification Loading commit data...
notification-template Loading commit data...
post Loading commit data...
resident Loading commit data...
room Loading commit data...
system-config Loading commit data...
technician Loading commit data...
user Loading commit data...
shared.ts Loading commit data...