Skip to content

v2.2.27

Choose a tag to compare

@mittwald-machine mittwald-machine released this 13 Nov 19:12
· 2 commits to master since this release
Immutable release. Only release title and notes can be modified.

Summary

This release introduces poll status management capabilities, integrates CAPTCHA verification across user authentication and registration workflows, enhances container template input configurations, and standardizes error response handling.

New Features

  • Poll Status Management: Introduced new GET and POST endpoints for /v2/poll-settings/{userId}. The feature enables tracking and updating user poll preferences with support for status states (completed, muted, ignored, new), visibility toggles (shouldShow), and timestamp tracking (completedAt, ignoredAt, dontShowUntil).
  • CAPTCHA Integration: Added optional captchaToken field to authentication, MFA, passkey, and registration request bodies. This ensures compliance with captcha widget challenges and properly rejects missing, unsolved, or reused tokens with CaptchaVerificationFailed.

Improvements

  • Enhanced Template Inputs: Expanded TemplateUserInputsItem with new configuration fields for better UI/rendering control:
    • dataType (enum: text, boolean, consent, select)
    • format (enum: email, password, url, textarea)
    • options array for select inputs
    • description and errorMessage fields referencing translated string schemas
  • Standardized Error Handling: Refactored TooManyRequestsResponse schemas for verification email and poll status endpoints to reference the unified de.mittwald.v1.commons.Error component instead of inline type definitions.
  • 503 Service Unavailable Support: Added dedicated response classes (*ServiceUnavailableResponse) for authentication, MFA, passkey, and registration flows to explicitly handle service downtime scenarios.

Client Updates

  • Regenerated client stubs to align with updated API specifications.
  • Updated UserClient interface and implementation to include new poll status methods and updated authentication request/response types.
  • Refactored internal response body classes for consistency across the V2 client namespace.