Add Moderation API and stable response types#5
Merged
Conversation
Regenerated the Rust client from the updated OpenAPI spec. - New Moderation API (43 moderator-dashboard endpoints) -> client/src/apis/moderation_api.rs - Response types are now the real success type (BREAKING); APIError is a default error response - Added chrono dependency (generated models now use chrono::DateTime for date-time fields)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moderation API
Adds a Moderation API with methods for the moderator dashboard:
All Moderation methods accept an
ssoparameter for SSO-authenticated moderators.Response types (breaking)
Each method now returns its success response type directly, with errors surfaced as a default error response, instead of the previous combined success-or-error return type. The response type names are now stable. Response shapes are unchanged.
Recommend a major version bump.