Skip to content

v2.2.10

Choose a tag to compare

@mittwald-machine mittwald-machine released this 12 Oct 19:19
· 4 commits to master since this release

Summary

This release removes legacy tariff change relocation functionality from the Relocation client and introduces a new ScopedToken schema to support restricted authentication tokens within the Signup module.

Breaking Changes

  • Removed Legacy Tariff Change Endpoint: The createLegacyTariffChange method and all related request/response classes (CreateLegacyTariffChangeRequest, CreateLegacyTariffChangeCreatedResponse, CreateLegacyTariffChangeTooManyRequestsResponse, etc.) have been removed from RelocationClient and RelocationClientImpl.

New Features

Scoped Token Support

Added the Mittwald\ApiClient\Generated\V2\Schemas\Signup\ScopedToken schema, enabling clients to interact with scoped authentication tokens. Key capabilities include:

  • Granular Permissions: Tokens can be assigned an array of scope roles (e.g., scope:project:read), with scope:nothing explicitly granting zero permissions.
  • Lifecycle Tracking: Automatic validation and serialization for createdAt and createdBy fields to audit token issuance.
  • Flexible Expiration: Optional expiresAt property allows setting custom expiration timestamps, alongside optional projectId binding for project-scoped tokens.
  • Immutable Builders: Full fluent API support for constructing and validating token instances, including type-safe setters with automatic JSON schema validation.