Skip to content

feat: [CHA-6444] regenerate the client from openapi-v240.2.1 - #185

Merged
mogita merged 2 commits into
mainfrom
feat/cha-6444-query-deleted-channels
Nov 3, 2026
Merged

mogita merged 2 commits into
mainfrom
feat/cha-6444-query-deleted-channels

Conversation

@mogita

@mogita mogita commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Ticket

CHA-6444

Problem

QueryDeletedChannels (POST /api/v2/chat/channels/deleted) is live, but v8.0.0 was generated from openapi-v239.93.2, which predates it.

Solution

Regenerate from openapi-v240.2.1 with the chat v240.2.1 generator. New methods: QueryDeletedChannels, GetHistoryWindowTeams, SetHistoryWindowTeams, DeleteHistoryWindowTeams, CancelExportFeeds. ExportFeedsApp now sends its request (include_deleted, types) as the body, and the webhook parser knows feeds.export.success and feeds.export.error.

Go apidiff from main reports 0 incompatible and 51 compatible changes, so this is a minor.

The spec bump brings two approved breaking changes, neither of which breaks this SDK:

  • AI-2210 (2026-10-28): UserClaimedEvent joins the client-side event unions. Server-side code is unaffected.
  • FEEDS-1996 (2026-11-03): POST /feeds/export/app takes a required body. ExportFeedsApp already took a request and now sends it, with no signature change.

How to verify

  1. ./generate.sh on this branch reproduces the diff.
  2. go test -short -race ./... passes.

BEGIN_COMMIT_OVERRIDE
feat: add CancelExportFeeds

feat: add DeleteHistoryWindowTeams

feat: add GetHistoryWindowTeams

feat: add QueryDeletedChannels

feat: add SetHistoryWindowTeams

feat: add webhook event AsyncExportFeedsSuccessEvent

feat: add activity_ids, include_deleted to ExportFeedsByTypeRequest

feat: add channel_cid, matched_labels, severity to ModerationRulesTriggeredEvent

feat: add country_codes to AnalyzeRequest

feat: add country_codes to CheckRequest

feat: add country_codes to ModerationPayload

feat: add country_codes to ReviewQueueItemResponse

feat: add engine to ConfigResponse

feat: add engine to UpsertConfigRequest

feat: add explicit_urls_only to BlockListConfig

feat: add failed_reason, oldest_source_message_id, truncated to ChannelForkResponse

feat: add failed_reason, oldest_source_message_id, truncated to ChannelForkSummary

feat: add fork to ChannelResponse

feat: add include_reasons to EnrichmentOptions

feat: add language, translated to CallTranscription

feat: add ocr_severity_rules to AIImageConfig

feat: add reason to MarkReviewedRequestPayload

feat: add reason to RestoreActionRequestPayload

feat: add reasons to ActivityResponse

feat: add viewer_location_radius_km to ActivitySelectorConfig

feat: add viewer_location_radius_km to ActivitySelectorConfigResponse

fix: ExportFeedsApp sends include_deleted and types in the request body
END_COMMIT_OVERRIDE


Note

Low Risk
Generated SDK sync with no Go API breaks reported; main behavioral note is ExportFeedsApp now sending a JSON body, which matches callers already passing ExportFeedsAppRequest.

Overview
Regenerates the client from openapi-v240.2.1 (.spec-version and generator bump), exposing recently shipped API surface in Go.

Chat: Adds QueryDeletedChannels for listing soft-deleted channels (server-side), plus GetHistoryWindowTeams, SetHistoryWindowTeams, and DeleteHistoryWindowTeams for per-team full-history overrides when the history window feature is enabled. Agent ForkChannel docs and fork-related models/events are expanded (failed status, truncation, fork on channel state).

Feeds: ExportFeedsApp now POSTs the request body (include_deleted, types); CancelExportFeeds is new. Export-by-type requests gain include_deleted, activity_ids, and clarified date-filter rules. Webhooks parse feeds.export.success / feeds.export.error.

Models & requests: Broad additive updates—moderation (country_codes, per-policy engine, blocklist explicit_urls_only, richer rule-triggered events), feeds enrichment (include_reasons, proximity viewer_location_radius_km), follow-batch async default behavior for newer apps, grouped channel limits capped at 15, and assorted field/doc tweaks. Stub tests added for each new client method.

Reviewed by Cursor Bugbot for commit f44261d. Bugbot is set up for automated code reviews on this repo. Configure here.

@mogita mogita added the sdk-not-breaking Regen brings approved breaking changes that do not break this SDK label Nov 3, 2026
@mogita
mogita requested a review from tbarbugli as a code owner November 3, 2026 14:36
@mogita
mogita merged commit ff9b869 into main Nov 3, 2026
20 checks passed
@mogita
mogita deleted the feat/cha-6444-query-deleted-channels branch November 3, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-not-breaking Regen brings approved breaking changes that do not break this SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant