Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/gen/chat/ChannelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export class ChannelApi {

getManyMessages(request: {
ids: string[];
member_custom_include?: string[];
}): Promise<StreamResponse<GetManyMessagesResponse>> {
if (!this.id) {
throw new Error(
Expand Down
7 changes: 7 additions & 0 deletions src/gen/chat/ChatApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -950,9 +952,11 @@ export class ChatApi {
type: string;
id: string;
ids: string[];
member_custom_include?: string[];
}): Promise<StreamResponse<GetManyMessagesResponse>> {
const queryParams = {
ids: request?.ids,
member_custom_include: request?.member_custom_include,
};
const pathParams = {
type: request?.type,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1979,6 +1984,7 @@ export class ChatApi {
id_lt?: string;
id_around?: string;
sort?: SortParamRequest[];
member_custom_include?: string[];
}): Promise<StreamResponse<GetRepliesResponse>> {
const queryParams = {
limit: request?.limit,
Expand All @@ -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,
Expand Down
8 changes: 8 additions & 0 deletions src/gen/common/CommonApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down Expand Up @@ -287,9 +289,11 @@ export class CommonApi {
async deleteBlockList(request: {
name: string;
team?: string;
user_id?: string;
}): Promise<StreamResponse<Response>> {
const queryParams = {
team: request?.team,
user_id: request?.user_id,
};
const pathParams = {
name: request?.name,
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -1284,13 +1290,15 @@ export class CommonApi {
android?: boolean;
ios?: boolean;
web?: boolean;
unity?: boolean;
endpoints?: string;
}): Promise<StreamResponse<GetRateLimitsResponse>> {
const queryParams = {
server_side: request?.server_side,
android: request?.android,
ios: request?.ios,
web: request?.web,
unity: request?.unity,
endpoints: request?.endpoints,
};

Expand Down
2 changes: 2 additions & 0 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2600,13 +2600,15 @@ export class FeedsApi {
android?: boolean;
ios?: boolean;
web?: boolean;
unity?: boolean;
server_side?: boolean;
}): Promise<StreamResponse<GetFeedsRateLimitsResponse>> {
const queryParams = {
endpoints: request?.endpoints,
android: request?.android,
ios: request?.ios,
web: request?.web,
unity: request?.unity,
server_side: request?.server_side,
};

Expand Down
108 changes: 103 additions & 5 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<string, any>;
}

export interface ChannelMemberRequest {
Expand Down Expand Up @@ -7695,6 +7705,10 @@ export interface CreateBlockListRequest {
| 'email'
| 'email_allowlist'
| 'word';

user_id?: string;

user?: UserRequest;
}

export interface CreateBlockListResponse {
Expand Down Expand Up @@ -8412,6 +8426,9 @@ export interface CreatePollOptionRequest {

user_id?: string;

/**
* Custom data for this object
*/
custom?: Record<string, any>;

user?: UserRequest;
Expand Down Expand Up @@ -8458,6 +8475,9 @@ export interface CreatePollRequest {

options?: PollOptionInput[];

/**
* Custom data for this object
*/
custom?: Record<string, any>;

user?: UserRequest;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {}
Expand Down Expand Up @@ -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<string, string[]>;
}

export interface FirebaseConfig {
Expand Down Expand Up @@ -11519,6 +11579,8 @@ export interface FlagUserOptions {
}

export interface FloodConfig {
allowlist?: string[];

identical?: FloodIdenticalConfig;

similar?: FloodSimilarConfig;
Expand All @@ -11538,6 +11600,8 @@ export interface FloodIdenticalRuleParameters {
threshold?: number;

time_window?: string;

allowlist?: string[];
}

export interface FloodSimilarConfig {
Expand All @@ -11558,6 +11622,8 @@ export interface FloodSimilarRuleParameters {
threshold?: number;

time_window?: string;

allowlist?: string[];
}

export interface FollowBatchRequest {
Expand Down Expand Up @@ -12291,6 +12357,11 @@ export interface GetFeedsRateLimitsResponse {
*/
server_side?: Record<string, LimitInfoResponse>;

/**
* Rate limits for Unity platform (endpoint name -> limit info)
*/
unity?: Record<string, LimitInfoResponse>;

/**
* Rate limits for Web platform (endpoint name -> limit info)
*/
Expand Down Expand Up @@ -12725,6 +12796,11 @@ export interface GetRateLimitsResponse {
*/
server_side?: Record<string, LimitInfoResponse>;

/**
* Map of endpoint rate limits for the Unity platform
*/
unity?: Record<string, LimitInfoResponse>;

/**
* Map of endpoint rate limits for the web platform
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -14905,6 +14983,8 @@ export interface MessageNewEvent {

export interface MessageOptions {
include_thread_participants?: boolean;

member_custom_include?: string[];
}

export interface MessagePaginationParams {
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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:
Expand All @@ -22577,6 +22662,7 @@ export interface SubmitActionRequest {
| 'unban'
| 'restore'
| 'delete_user'
| 'delete_user_messages'
| 'unblock'
| 'block'
| 'shadow_block'
Expand Down Expand Up @@ -22618,6 +22704,8 @@ export interface SubmitActionRequest {

delete_user?: DeleteUserRequestPayload;

delete_user_messages?: DeleteUserMessagesRequestPayload;

escalate?: EscalatePayload;

flag?: FlagRequest;
Expand Down Expand Up @@ -24143,10 +24231,14 @@ export interface UpdateBlockListRequest {

team?: string;

user_id?: string;

/**
* List of words to block
*/
words?: string[];

user?: UserRequest;
}

export interface UpdateBlockListResponse {
Expand Down Expand Up @@ -25192,6 +25284,9 @@ export interface UpdatePollOptionRequest {

user_id?: string;

/**
* Custom data for this object
*/
custom?: Record<string, any>;

user?: UserRequest;
Expand Down Expand Up @@ -25267,6 +25362,9 @@ export interface UpdatePollRequest {
*/
options?: PollOptionRequest[];

/**
* Custom data for this object
*/
custom?: Record<string, any>;

user?: UserRequest;
Expand Down
Loading
Loading