Skip to content

v2.2.9

Latest

Choose a tag to compare

@mittwald-machine mittwald-machine released this 09 Oct 19:18

Features

  • AI Hosting Key Rotation: Introduced new endpoints to securely rotate API keys for both customers and projects. This capability allows developers to issue new secrets while maintaining control over the transition period.
  • Grace Period Support: Both rotation operations now support an optional gracePeriod parameter (e.g., 24h, 1m) to specify how long the old secret remains valid alongside the new one before immediate revocation.
  • Enhanced Error Handling: Comprehensive type-safe response classes are now generated to handle standard HTTP status codes (400, 403, 404, 429) with structured error payloads.

API Additions

  • AIHostingClient::customerRotateKey(CustomerRotateKeyRequest $request): CustomerRotateKeyOKResponse
  • AIHostingClient::projectRotateKey(ProjectRotateKeyRequest $request): ProjectRotateKeyOKResponse

Generated Types

  • New request and response classes added under the CustomerRotateKey and ProjectRotateKey namespaces, including:
    • Request builders with automatic URL construction and Guzzle request options.
    • Request body models supporting the optional gracePeriod field.
    • Dedicated response containers for success (200 OK) and error states (400, 403, 404, 429), complete with validation and JSON serialization utilities.