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
2 changes: 2 additions & 0 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ export class FeedsApi {
const body = {
type: request?.type,
create_notification_activity: request?.create_notification_activity,
enforce_unique: request?.enforce_unique,
skip_push: request?.skip_push,
user_id: request?.user_id,
custom: request?.custom,
Expand Down Expand Up @@ -897,6 +898,7 @@ export class FeedsApi {
const body = {
type: request?.type,
create_notification_activity: request?.create_notification_activity,
enforce_unique: request?.enforce_unique,
skip_push: request?.skip_push,
user_id: request?.user_id,
custom: request?.custom,
Expand Down
6 changes: 2 additions & 4 deletions src/gen/model-decoders/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,8 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
deleted_at: { type: 'DatetimeType', isSingle: true },

own_follows: { type: 'FollowResponse', isSingle: false },

own_membership: { type: 'FeedMemberResponse', isSingle: true },
};
return decode(typeMappings, input);
};
Expand Down Expand Up @@ -2326,11 +2328,7 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {

feed: { type: 'FeedResponse', isSingle: true },

own_follows: { type: 'FollowResponse', isSingle: false },

notification_status: { type: 'NotificationStatusResponse', isSingle: true },

own_membership: { type: 'FeedMemberResponse', isSingle: true },
};
return decode(typeMappings, input);
};
Expand Down
74 changes: 44 additions & 30 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,8 @@ export interface AddCommentReactionRequest {

create_notification_activity?: boolean;

enforce_unique?: boolean;

skip_push?: boolean;

user_id?: string;
Expand Down Expand Up @@ -775,6 +777,8 @@ export interface AddReactionRequest {

create_notification_activity?: boolean;

enforce_unique?: boolean;

skip_push?: boolean;

user_id?: string;
Expand Down Expand Up @@ -1231,6 +1235,8 @@ export interface BanActionRequest {
}

export interface BanOptions {
delete_messages?: 'soft' | 'pruning' | 'hard';

duration?: number;

ip_ban?: boolean;
Expand Down Expand Up @@ -1276,10 +1282,6 @@ export interface BanResponse {
user?: UserResponse;
}

export interface BlockContentOptions {
reason?: string;
}

export interface BlockListConfig {
async?: boolean;

Expand Down Expand Up @@ -2622,6 +2624,8 @@ export interface CallUserMutedEvent {

from_user_id: string;

reason: string;

muted_user_ids: string[];

type: string;
Expand Down Expand Up @@ -2684,6 +2688,8 @@ export interface CampaignResponse {

sender_mode: string;

sender_visibility: string;

show_channels: boolean;

skip_push: boolean;
Expand Down Expand Up @@ -3850,6 +3856,8 @@ export interface ConfigResponse {

updated_at: Date;

supported_video_call_harm_types: string[];

ai_image_config?: AIImageConfig;

ai_text_config?: AITextConfig;
Expand Down Expand Up @@ -5451,9 +5459,13 @@ export interface FeedResponse {

filter_tags?: string[];

own_capabilities?: FeedOwnCapability[];

own_follows?: FollowResponse[];

custom?: Record<string, any>;

own_membership?: FeedMemberResponse;
}

export interface FeedUpdatedEvent {
Expand Down Expand Up @@ -5597,35 +5609,35 @@ export interface FirebaseConfigFields {
export interface Flag {
created_at: Date;

created_by_automod: boolean;
entity_id: string;

entity_type: string;

updated_at: Date;

approved_at?: Date;
result: Array<Record<string, any>>;

reason?: string;
entity_creator_id?: string;

rejected_at?: Date;
is_streamed_content?: boolean;

reviewed_at?: Date;
moderation_payload_hash?: string;

reviewed_by?: string;
reason?: string;

target_message_id?: string;
review_queue_item_id?: string;

custom?: Record<string, any>;
type?: string;

details?: FlagDetails;
labels?: string[];

target_message?: Message;
custom?: Record<string, any>;

target_user?: User;
moderation_payload?: ModerationPayload;

user?: User;
}
review_queue_item?: ReviewQueueItem;

export interface FlagContentOptions {
reason?: string;
user?: User;
}

export interface FlagDetails {
Expand Down Expand Up @@ -6346,8 +6358,6 @@ export interface GetOrCreateFeedResponse {

members: FeedMemberResponse[];

own_capabilities: FeedOwnCapability[];

pinned_activities: ActivityPinResponse[];

feed: FeedResponse;
Expand All @@ -6356,17 +6366,13 @@ export interface GetOrCreateFeedResponse {

prev?: string;

own_follows?: FollowResponse[];

followers_pagination?: PagerResponse;

following_pagination?: PagerResponse;

member_pagination?: PagerResponse;

notification_status?: NotificationStatusResponse;

own_membership?: FeedMemberResponse;
}

export interface GetOrCreateFeedViewRequest {
Expand Down Expand Up @@ -6522,9 +6528,15 @@ export interface HLSSettingsResponse {
}

export interface HarmConfig {
cooldown_period?: number;

severity?: number;

threshold?: number;

action_sequences?: ActionSequence[];

harm_types?: string[];
}

export interface HideChannelRequest {
Expand Down Expand Up @@ -7779,6 +7791,8 @@ export interface ModerationConfig {

updated_at?: Date;

supported_video_call_harm_types?: string[];

ai_image_config?: AIImageConfig;

ai_image_lite_config?: BodyguardImageAnalysisConfig;
Expand Down Expand Up @@ -10521,11 +10535,7 @@ export interface RuleBuilderAction {

ban_options?: BanOptions;

flag_content_options?: FlagContentOptions;

flag_user_options?: FlagUserOptions;

remove_content_options?: BlockContentOptions;
}

export interface RuleBuilderCondition {
Expand Down Expand Up @@ -13436,7 +13446,11 @@ export interface VelocityFilterConfigRule {
}

export interface VideoCallRuleConfig {
rules?: Record<string, HarmConfig>;
flag_all_labels?: boolean;

flagged_labels?: string[];

rules?: HarmConfig[];
}

export interface VideoContentParameters {
Expand Down
Loading