Skip to content

Regenerate SDK: Moderation API + grouped request parameters#5

Merged
winrid merged 9 commits into
masterfrom
regen-moderation-api
Jun 30, 2026
Merged

Regenerate SDK: Moderation API + grouped request parameters#5
winrid merged 9 commits into
masterfrom
regen-moderation-api

Conversation

@winrid

@winrid winrid commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Regenerates the Nim client from the latest OpenAPI spec. Two notable changes since the last release:

Grouped request parameters: all API methods now take required parameters and the request body positionally, with an operation's optional parameters that are grouped into a single options object, e.g. CreateCommentPublicOptions (a lone optional is a direct argument, and operations with none take none).

Moderation API: adds the moderator-dashboard endpoints (listing, searching, counting and exporting comments and logs; moderation actions such as remove/restore/flag and review/spam/approval status; vote adjustments; bans; badges and trust), authenticated with an SSO moderator token.

Model rename: PostRemoveCommentResponse is renamed to PostRemoveCommentApiResponse.

winrid added 7 commits June 22, 2026 14:07
…astId params)

Adds the optional tenantId query param to the SSO-gated Moderation API endpoints
and the optional broadcastId query param to the mutating moderation endpoints.
Backward-compatible. Mirrors fastcomments-sdk-js v5.0.2.
API procs now take a single Api<Op>Request object. Updated SSO integration test and README examples.
API procs now take required params + body positionally, with optional params in a single Api<Op>Options object. Updated SSO integration test + README.
…one value)

Operations with exactly one optional now take it directly (e.g. deleteModerator(..., send_email)); the Api<Op>Options object is only used for 2+ optionals.
…p Api prefix from options types

Options types renamed Api<Op>Options -> <Op>Options (e.g. ApiGetApiCommentsOptions -> GetApiCommentsOptions). Hand-written READMEs + SSO tests updated to match.
@winrid winrid changed the title Regenerate SDK: moderation tenantId + broadcastId params Regenerate SDK: Moderation API + grouped request parameters Jun 30, 2026
winrid added 2 commits June 30, 2026 10:39
Replace the long capability enumeration with a concise summary.
Bump version to 3.0.0 and regenerate from the new generator fork release.
@winrid
winrid merged commit 3b2e5ee into master Jun 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant