Skip to content

Regenerate SDK: Moderation API + grouped request parameters#2

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

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

Conversation

@winrid

@winrid winrid commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Regenerates the Dart 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 class, e.g. CreateCommentPublicOptions (a lone optional is a direct optional 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.

…ams (v2.1.0)

Rebuilt on current main: the prior regen-moderation-api branch had diverged from
pre-2.0.0 main, which regressed the package version to 1.3.1 and dropped the v2.0.x
LICENSE + SSO-helper bundling. Adds the optional tenantId/broadcastId moderation query
params and bumps the package 2.0.1 -> 2.1.0 (additive). LICENSE + SSO preserved by update.py.
@winrid
winrid force-pushed the regen-moderation-api branch from 268e3e3 to cfd0821 Compare June 22, 2026 22:38
winrid added 6 commits June 22, 2026 19:39
API methods now take a single Api<Op>Request object. Updated SSO integration test and README examples.
API reference examples now construct the single Api<Op>Request object, matching the grouped method signatures.
API methods 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.
createTenant(String tenantId, CreateTenantBody createTenantBody) etc. no longer have a dangling trailing comma; 1-optional ([T? x]) and 2+ ([Api<Op>Options? options]) forms unchanged.
…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 ab627d3 into main 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