Repository navigation
feat: [CHA-6444] regenerate the client from openapi-v240.2.1 - #185
Merged
Merged
Conversation
3 tasks done
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.
Ticket
CHA-6444
Problem
QueryDeletedChannels(POST /api/v2/chat/channels/deleted) is live, but v8.0.0 was generated fromopenapi-v239.93.2, which predates it.Solution
Regenerate from
openapi-v240.2.1with the chatv240.2.1generator. New methods:QueryDeletedChannels,GetHistoryWindowTeams,SetHistoryWindowTeams,DeleteHistoryWindowTeams,CancelExportFeeds.ExportFeedsAppnow sends its request (include_deleted,types) as the body, and the webhook parser knowsfeeds.export.successandfeeds.export.error.Go apidiff from
mainreports 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:
UserClaimedEventjoins the client-side event unions. Server-side code is unaffected.POST /feeds/export/apptakes a required body.ExportFeedsAppalready took a request and now sends it, with no signature change.How to verify
./generate.shon this branch reproduces the diff.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-versionand generator bump), exposing recently shipped API surface in Go.Chat: Adds
QueryDeletedChannelsfor listing soft-deleted channels (server-side), plusGetHistoryWindowTeams,SetHistoryWindowTeams, andDeleteHistoryWindowTeamsfor per-team full-history overrides when the history window feature is enabled. AgentForkChanneldocs and fork-related models/events are expanded (failedstatus, truncation,forkon channel state).Feeds:
ExportFeedsAppnow POSTs the request body (include_deleted,types);CancelExportFeedsis new. Export-by-type requests gaininclude_deleted,activity_ids, and clarified date-filter rules. Webhooks parsefeeds.export.success/feeds.export.error.Models & requests: Broad additive updates—moderation (
country_codes, per-policyengine, blocklistexplicit_urls_only, richer rule-triggered events), feeds enrichment (include_reasons, proximityviewer_location_radius_km), follow-batchasyncdefault 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.