diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 8e6d92c..73e1800 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -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, @@ -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, diff --git a/src/gen/model-decoders/decoders.ts b/src/gen/model-decoders/decoders.ts index 8cbc11a..1831084 100644 --- a/src/gen/model-decoders/decoders.ts +++ b/src/gen/model-decoders/decoders.ts @@ -1973,6 +1973,8 @@ decoders.FeedResponse = (input?: Record) => { deleted_at: { type: 'DatetimeType', isSingle: true }, own_follows: { type: 'FollowResponse', isSingle: false }, + + own_membership: { type: 'FeedMemberResponse', isSingle: true }, }; return decode(typeMappings, input); }; @@ -2326,11 +2328,7 @@ decoders.GetOrCreateFeedResponse = (input?: Record) => { 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); }; diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 0026b5e..e7b91aa 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -707,6 +707,8 @@ export interface AddCommentReactionRequest { create_notification_activity?: boolean; + enforce_unique?: boolean; + skip_push?: boolean; user_id?: string; @@ -775,6 +777,8 @@ export interface AddReactionRequest { create_notification_activity?: boolean; + enforce_unique?: boolean; + skip_push?: boolean; user_id?: string; @@ -1231,6 +1235,8 @@ export interface BanActionRequest { } export interface BanOptions { + delete_messages?: 'soft' | 'pruning' | 'hard'; + duration?: number; ip_ban?: boolean; @@ -1276,10 +1282,6 @@ export interface BanResponse { user?: UserResponse; } -export interface BlockContentOptions { - reason?: string; -} - export interface BlockListConfig { async?: boolean; @@ -2622,6 +2624,8 @@ export interface CallUserMutedEvent { from_user_id: string; + reason: string; + muted_user_ids: string[]; type: string; @@ -2684,6 +2688,8 @@ export interface CampaignResponse { sender_mode: string; + sender_visibility: string; + show_channels: boolean; skip_push: boolean; @@ -3850,6 +3856,8 @@ export interface ConfigResponse { updated_at: Date; + supported_video_call_harm_types: string[]; + ai_image_config?: AIImageConfig; ai_text_config?: AITextConfig; @@ -5451,9 +5459,13 @@ export interface FeedResponse { filter_tags?: string[]; + own_capabilities?: FeedOwnCapability[]; + own_follows?: FollowResponse[]; custom?: Record; + + own_membership?: FeedMemberResponse; } export interface FeedUpdatedEvent { @@ -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>; - 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; + type?: string; - details?: FlagDetails; + labels?: string[]; - target_message?: Message; + custom?: Record; - target_user?: User; + moderation_payload?: ModerationPayload; - user?: User; -} + review_queue_item?: ReviewQueueItem; -export interface FlagContentOptions { - reason?: string; + user?: User; } export interface FlagDetails { @@ -6346,8 +6358,6 @@ export interface GetOrCreateFeedResponse { members: FeedMemberResponse[]; - own_capabilities: FeedOwnCapability[]; - pinned_activities: ActivityPinResponse[]; feed: FeedResponse; @@ -6356,8 +6366,6 @@ export interface GetOrCreateFeedResponse { prev?: string; - own_follows?: FollowResponse[]; - followers_pagination?: PagerResponse; following_pagination?: PagerResponse; @@ -6365,8 +6373,6 @@ export interface GetOrCreateFeedResponse { member_pagination?: PagerResponse; notification_status?: NotificationStatusResponse; - - own_membership?: FeedMemberResponse; } export interface GetOrCreateFeedViewRequest { @@ -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 { @@ -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; @@ -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 { @@ -13436,7 +13446,11 @@ export interface VelocityFilterConfigRule { } export interface VideoCallRuleConfig { - rules?: Record; + flag_all_labels?: boolean; + + flagged_labels?: string[]; + + rules?: HarmConfig[]; } export interface VideoContentParameters {