Breaking (!) API changes for v2 API, September 4 to September 11
This week's update to the mittwald API includes changes to the response structure for the /v2/authenticate-mfa endpoint, the addition of new endpoints for AI hosting plan billing periods and usage statistics, and the introduction of a new enum value for VAT ID validation states.
Summary
-
The
POST /v2/authenticate-mfaoperation has undergone several breaking changes:- The response's body type/format has changed from 'object' to an empty format for status '400'.
- The required property 'type' has been removed from the response for status '400'.
- The required property 'validationErrors' has also been removed from the response for status '400'.
- The optional property 'message' has been removed from the response for status '400'.
- Additionally, the response body now includes
#/components/schemas/de.mittwald.v1.commons.ValidationErrorsand#/components/schemas/de.mittwald.v1.commons.Errorin the 'anyOf' list for status '400'.
-
The
GET /v2/customersoperation has a new enum value 'unsupported' added to thevatIdValidationStateresponse property for status '200'. -
The
GET /v2/customers/{customerId}operation has a new enum value 'unsupported' added to thevatIdValidationStateresponse property for status '200'. -
Two new endpoints have been added:
GET /v2/customers/{customerId}/ai-hostings/{planId}/billing-periodsto list the contract months of an AI hosting plan.GET /v2/customers/{customerId}/ai-hostings/{planId}/usageto get aggregated token usage statistics for an AI hosting plan of a customer.
Disclaimer: This summary is AI-generated. If you find any discrepancies, please refer to the detailed changes below.
Detailed changes
Changes in "Validate your second factor"
-
⚠️ Breaking: the response's body type/format changed from 'object'/'' to ''/'' for status '400'
-
⚠️ Breaking: removed the required property 'type' from the response with the '400' status
-
⚠️ Breaking: removed the required property 'validationErrors' from the response with the '400' status
-
removed the optional property 'message' from the response with the '400' status
-
added '#/components/schemas/de.mittwald.v1.commons.ValidationErrors, #/components/schemas/de.mittwald.v1.commons.Error' to the response body 'anyOf' list for the response status '400'
For details, refer to the POST/ endpoint.
Changes in "Get all customer profiles the authenticated user has access to"
- added the new 'unsupported' enum value to the '/items/vatIdValidationState' response property for the response status '200'
For details, refer to the GET/ endpoint.
Changes in "Get a customer profile"
- added the new 'unsupported' enum value to the 'vatIdValidationState' response property for the response status '200'
For details, refer to the GET/ endpoint.
Changes in "List the contract months of an ai hosting plan"
- endpoint added
For details, refer to the GET/ endpoint.
Changes in "Get aggregated token usage statistics for an ai hosting plan of a customer"
- endpoint added
For details, refer to the GET/ endpoint.
Client package releases
mittwald PHP SDK Release v2.1.220
The latest release of the mittwald PHP SDK, version v2.1.220, introduces improvements in the API client, specifically in the handling of MFA authentication errors. The AuthenticateMfaBadRequestResponse class has been removed, and now HTTP status codes 400 and 408 during MFA authentication consistently return UntypedResponse. This update aims to streamline error handling and remove unused generated classes, ensuring a more standardized authentication process.
For more details, visit the release page.
mittwald PHP SDK v2.1.219 Release Summary
The latest release of the mittwald PHP SDK, version 2.1.219, introduces significant enhancements and bug fixes. This update focuses on improving the AI Hosting API and clarifying database API documentation.
New Features
- AI Hosting API Enhancements:
- Billing Periods Tracking: A new method,
planGetBillingPeriods, allows users to retrieve contract months for a given plan, including token limits and period status. - Usage Statistics: The
planGetUsageStatsmethod provides aggregated token usage data, offering insights into daily token breakdowns and usage per API key. - Expanded Schema Support: New request/response classes and data models have been added to handle typed, validated responses for the new endpoints.
- Billing Periods Tracking: A new method,
Bug Fixes & Improvements
- Database API Documentation Clarification: The description for the
accessIpMaskfield has been updated across several classes to clarify that it currently has no effect, reducing potential confusion during implementation.
For more details, visit the release page.
mittwald PHP SDK Release v2.1.218
The mittwald PHP SDK has been updated to version v2.1.218. This release introduces enhancements to the customer VAT ID validation process. The SDK now supports the new unsupported validation state, which allows for accurate handling of API responses when VAT ID validation cannot be processed, is outside supported regions, or requires alternative verification methods.
Key Changes:
- Added
unsupportedto the validation state options in theCustomerschema. - Introduced
unsupportedcase to theCustomerVatIdValidationStateenum.
For more details, visit the release page.
mittwald PHP SDK Release v2.1.217
The latest release of the mittwald PHP SDK, version v2.1.217, introduces significant enhancements to the AI Hosting client capabilities. This update includes comprehensive plan lifecycle management, improved key filtering, and pagination support.
Key Updates:
- AI Hosting Plan Management: Customers and projects can now declare hosting profiles, retrieve specific plans, list all plans with usage statistics, and rename existing plans.
- Key Management Enhancements: Operations now require plan association and support advanced querying.
New Endpoints:
- Profile Declaration:
customerDeclareProfilefor creating AI hosting profiles. - Plan Retrieval:
customerGetPlanandcustomerGetPlansfor customer-specific plans;projectGetPlanandprojectGetPlansfor project-specific plans. - Plan Updates:
customerUpdatePlanfor renaming or updating plan descriptions.
API Enhancements:
- Mandatory Plan Association:
planIdis now required for key creation operations. - Targeted Key Retrieval: Enhanced filtering by
planId. - Pagination Support: Improved data handling with
limit,skip, andpageparameters. - Schema Alignment: Updated response schema for usage data.
Deprecations:
- The endpoints
customerGetUsageandprojectGetUsageare deprecated in favor of new plan-specific routes. Existing integrations will continue to function but will emit deprecation notices.
For more details, visit the release page.
mittwald JavaScript SDK Release 4.461.0
The mittwald JavaScript SDK has been updated to version 4.461.0. This release includes an update to the generated client, enhancing the SDK's functionality. For more details, you can view the release on GitHub: mittwald JavaScript SDK 4.461.0.
mittwald JavaScript SDK Release 4.460.0
The mittwald JavaScript SDK has been updated to version 4.460.0. This release includes an update to the generated client, enhancing the SDK's functionality. For more details, you can view the release on GitHub here.
mittwald JavaScript SDK Release 4.459.0
The mittwald JavaScript SDK has been updated to version 4.459.0. This release includes the following feature:
- Updated the generated client to enhance functionality (commit bb6a3dd).
For more details, you can view the release on GitHub.
mittwald JavaScript SDK Release 4.458.0
The mittwald JavaScript SDK has been updated to version 4.458.0. This release includes an update to the generated client, enhancing the SDK's functionality. For more details, you can view the release on GitHub: mittwald/api-client-js/releases/tag/4.458.0.
mittwald JavaScript SDK Release 4.457.1
The mittwald JavaScript SDK version 4.457.1 has been released. This update includes a bug fix that widens the peer dependency range for @mittwald/react-use-promise to include versions 3.x and 4.x. This change addresses issue #293 and is documented in pull request #294. For more details, you can view the release on GitHub.
mittwald JavaScript SDK Release 4.457.0
The mittwald JavaScript SDK has been updated to version 4.457.0. This release includes the following feature:
- Updated the generated client to improve functionality (commit f76b301).
For more details, you can view the full release notes on GitHub.