From bf0cfe792642ed9a48fab869668192de5db4768c Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Fri, 31 Jul 2026 12:24:44 +0200 Subject: [PATCH] feat: update to open api version 233.25.1 Regenerate the client from the chat serverside spec at v233.25.1. - chat: member_custom_include on getManyMessages, getReplies, queryChannels and getOrCreate(Distinct)Channel, plus ChannelMemberPartialResponse.custom - video: EncryptionSettings switches from `enabled: boolean` to `mode: 'available' | 'disabled' | 'auto-on'` - moderation: delete_user_messages submit action, flood allowlists, FilterConfigResponse.ai_image_taxonomy, MatchedContent.text - blocklists: user_id/user on create, update and delete - rate limits: unity platform on getRateLimits and getFeedsRateLimits The importer external-storage endpoints re-added by codegen are stripped again, per #324. --- src/gen/chat/ChannelApi.ts | 1 + src/gen/chat/ChatApi.ts | 7 ++ src/gen/common/CommonApi.ts | 8 +++ src/gen/feeds/FeedsApi.ts | 2 + src/gen/models/index.ts | 108 ++++++++++++++++++++++++++-- src/gen/moderation/ModerationApi.ts | 1 + 6 files changed, 122 insertions(+), 5 deletions(-) diff --git a/src/gen/chat/ChannelApi.ts b/src/gen/chat/ChannelApi.ts index 7aff714..8765ffb 100644 --- a/src/gen/chat/ChannelApi.ts +++ b/src/gen/chat/ChannelApi.ts @@ -259,6 +259,7 @@ export class ChannelApi { getManyMessages(request: { ids: string[]; + member_custom_include?: string[]; }): Promise> { if (!this.id) { throw new Error( diff --git a/src/gen/chat/ChatApi.ts b/src/gen/chat/ChatApi.ts index defe6b0..178ceeb 100644 --- a/src/gen/chat/ChatApi.ts +++ b/src/gen/chat/ChatApi.ts @@ -353,6 +353,7 @@ export class ChatApi { predefined_filter: request?.predefined_filter, state: request?.state, user_id: request?.user_id, + member_custom_include: request?.member_custom_include, sort: request?.sort, filter_conditions: request?.filter_conditions, filter_values: request?.filter_values, @@ -513,6 +514,7 @@ export class ChatApi { hide_for_creator: request?.hide_for_creator, state: request?.state, thread_unread_counts: request?.thread_unread_counts, + member_custom_include: request?.member_custom_include, data: request?.data, members: request?.members, messages: request?.messages, @@ -950,9 +952,11 @@ export class ChatApi { type: string; id: string; ids: string[]; + member_custom_include?: string[]; }): Promise> { const queryParams = { ids: request?.ids, + member_custom_include: request?.member_custom_include, }; const pathParams = { type: request?.type, @@ -984,6 +988,7 @@ export class ChatApi { hide_for_creator: request?.hide_for_creator, state: request?.state, thread_unread_counts: request?.thread_unread_counts, + member_custom_include: request?.member_custom_include, data: request?.data, members: request?.members, messages: request?.messages, @@ -1979,6 +1984,7 @@ export class ChatApi { id_lt?: string; id_around?: string; sort?: SortParamRequest[]; + member_custom_include?: string[]; }): Promise> { const queryParams = { limit: request?.limit, @@ -1988,6 +1994,7 @@ export class ChatApi { id_lt: request?.id_lt, id_around: request?.id_around, sort: request?.sort, + member_custom_include: request?.member_custom_include, }; const pathParams = { parent_id: request?.parent_id, diff --git a/src/gen/common/CommonApi.ts b/src/gen/common/CommonApi.ts index aca9130..0c8003f 100644 --- a/src/gen/common/CommonApi.ts +++ b/src/gen/common/CommonApi.ts @@ -239,6 +239,8 @@ export class CommonApi { is_substring_matching_enabled: request?.is_substring_matching_enabled, team: request?.team, type: request?.type, + user_id: request?.user_id, + user: request?.user, }; const response = await this.apiClient.sendRequest< @@ -287,9 +289,11 @@ export class CommonApi { async deleteBlockList(request: { name: string; team?: string; + user_id?: string; }): Promise> { const queryParams = { team: request?.team, + user_id: request?.user_id, }; const pathParams = { name: request?.name, @@ -339,7 +343,9 @@ export class CommonApi { is_plural_check_enabled: request?.is_plural_check_enabled, is_substring_matching_enabled: request?.is_substring_matching_enabled, team: request?.team, + user_id: request?.user_id, words: request?.words, + user: request?.user, }; const response = await this.apiClient.sendRequest< @@ -1284,6 +1290,7 @@ export class CommonApi { android?: boolean; ios?: boolean; web?: boolean; + unity?: boolean; endpoints?: string; }): Promise> { const queryParams = { @@ -1291,6 +1298,7 @@ export class CommonApi { android: request?.android, ios: request?.ios, web: request?.web, + unity: request?.unity, endpoints: request?.endpoints, }; diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 34dbc34..89ffa72 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -2600,6 +2600,7 @@ export class FeedsApi { android?: boolean; ios?: boolean; web?: boolean; + unity?: boolean; server_side?: boolean; }): Promise> { const queryParams = { @@ -2607,6 +2608,7 @@ export class FeedsApi { android: request?.android, ios: request?.ios, web: request?.web, + unity: request?.unity, server_side: request?.server_side, }; diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 9165754..c6b5598 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -5449,6 +5449,11 @@ export interface ChannelGetOrCreateRequest { thread_unread_counts?: boolean; + /** + * Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) + */ + member_custom_include?: string[]; + data?: ChannelInput; members?: PaginationParams; @@ -5584,6 +5589,11 @@ export interface ChannelMemberPartialResponse { * Whether the user muted notifications for this channel */ notifications_muted: boolean; + + /** + * Channel-member custom fields projected via `member_custom_include` + */ + custom?: Record; } export interface ChannelMemberRequest { @@ -7695,6 +7705,10 @@ export interface CreateBlockListRequest { | 'email' | 'email_allowlist' | 'word'; + + user_id?: string; + + user?: UserRequest; } export interface CreateBlockListResponse { @@ -8412,6 +8426,9 @@ export interface CreatePollOptionRequest { user_id?: string; + /** + * Custom data for this object + */ custom?: Record; user?: UserRequest; @@ -8458,6 +8475,9 @@ export interface CreatePollRequest { options?: PollOptionInput[]; + /** + * Custom data for this object + */ custom?: Record; user?: UserRequest; @@ -9293,6 +9313,39 @@ export interface DeleteTranscriptionResponse { duration: string; } +export interface DeleteUserMessagesRequestPayload { + /** + * Message deletion mode: soft, pruning, or hard + */ + + delete_messages: 'soft' | 'pruning' | 'hard'; + + /** + * Optional: scope deletion to a single channel (alternative to app-wide deletion) + */ + channel_cid?: string; + + /** + * Whether to also delete the user's reactions on other users' messages + */ + delete_reactions?: boolean; + + /** + * ID of the user whose messages should be deleted (alternative to item_id) + */ + entity_id?: string; + + /** + * Type of the entity + */ + entity_type?: string; + + /** + * Reason for the deletion + */ + reason?: string; +} + export interface DeleteUserRequestPayload { /** * Also delete all user conversations @@ -9620,16 +9673,18 @@ export interface EgressResponse { export interface EncryptionSettingsRequest { /** - * if true, the call is created end-to-end encrypted + * Encryption mode. One of: available, disabled, auto-on */ - enabled?: boolean; + + mode?: 'available' | 'disabled' | 'auto-on'; } export interface EncryptionSettingsResponse { /** - * whether the call is end-to-end encrypted + * the resolved encryption mode for the call */ - enabled: boolean; + + mode: 'available' | 'disabled' | 'auto-on'; } export interface EndCallRequest {} @@ -11360,6 +11415,11 @@ export interface FilterConfigResponse { * The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list. */ filterable_custom_keys?: string[]; + + /** + * AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers. + */ + ai_image_taxonomy?: Record; } export interface FirebaseConfig { @@ -11519,6 +11579,8 @@ export interface FlagUserOptions { } export interface FloodConfig { + allowlist?: string[]; + identical?: FloodIdenticalConfig; similar?: FloodSimilarConfig; @@ -11538,6 +11600,8 @@ export interface FloodIdenticalRuleParameters { threshold?: number; time_window?: string; + + allowlist?: string[]; } export interface FloodSimilarConfig { @@ -11558,6 +11622,8 @@ export interface FloodSimilarRuleParameters { threshold?: number; time_window?: string; + + allowlist?: string[]; } export interface FollowBatchRequest { @@ -12291,6 +12357,11 @@ export interface GetFeedsRateLimitsResponse { */ server_side?: Record; + /** + * Rate limits for Unity platform (endpoint name -> limit info) + */ + unity?: Record; + /** * Rate limits for Web platform (endpoint name -> limit info) */ @@ -12725,6 +12796,11 @@ export interface GetRateLimitsResponse { */ server_side?: Record; + /** + * Map of endpoint rate limits for the Unity platform + */ + unity?: Record; + /** * Map of endpoint rate limits for the web platform */ @@ -14273,6 +14349,8 @@ export interface MatchedContent { */ severity?: string; + text?: string; + /** * Image-classification entries (keyframe rule, Type=image) carry nested L1 → L2 classifications. Text entries (closed_caption rule, Type=text) carry flat label + severity. Resolved against the app's effective taxonomy on the image side. */ @@ -14905,6 +14983,8 @@ export interface MessageNewEvent { export interface MessageOptions { include_thread_participants?: boolean; + + member_custom_include?: string[]; } export interface MessagePaginationParams { @@ -18468,6 +18548,11 @@ export interface QueryChannelsRequest { user_id?: string; + /** + * Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) + */ + member_custom_include?: string[]; + /** * List of sort parameters */ @@ -22562,7 +22647,7 @@ export interface StoriesFeedUpdatedEvent { export interface SubmitActionRequest { /** - * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate + * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, delete_user_messages, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate */ action_type: @@ -22577,6 +22662,7 @@ export interface SubmitActionRequest { | 'unban' | 'restore' | 'delete_user' + | 'delete_user_messages' | 'unblock' | 'block' | 'shadow_block' @@ -22618,6 +22704,8 @@ export interface SubmitActionRequest { delete_user?: DeleteUserRequestPayload; + delete_user_messages?: DeleteUserMessagesRequestPayload; + escalate?: EscalatePayload; flag?: FlagRequest; @@ -24143,10 +24231,14 @@ export interface UpdateBlockListRequest { team?: string; + user_id?: string; + /** * List of words to block */ words?: string[]; + + user?: UserRequest; } export interface UpdateBlockListResponse { @@ -25192,6 +25284,9 @@ export interface UpdatePollOptionRequest { user_id?: string; + /** + * Custom data for this object + */ custom?: Record; user?: UserRequest; @@ -25267,6 +25362,9 @@ export interface UpdatePollRequest { */ options?: PollOptionRequest[]; + /** + * Custom data for this object + */ custom?: Record; user?: UserRequest; diff --git a/src/gen/moderation/ModerationApi.ts b/src/gen/moderation/ModerationApi.ts index 666cffd..7b3cda3 100644 --- a/src/gen/moderation/ModerationApi.ts +++ b/src/gen/moderation/ModerationApi.ts @@ -1235,6 +1235,7 @@ export class ModerationApi { delete_message: request?.delete_message, delete_reaction: request?.delete_reaction, delete_user: request?.delete_user, + delete_user_messages: request?.delete_user_messages, escalate: request?.escalate, flag: request?.flag, mark_reviewed: request?.mark_reviewed,