diff --git a/src/gen/chat/ChatApi.ts b/src/gen/chat/ChatApi.ts index dc8ced9..738ae9e 100644 --- a/src/gen/chat/ChatApi.ts +++ b/src/gen/chat/ChatApi.ts @@ -1399,6 +1399,36 @@ export class ChatApi { return { ...response.body, metadata: response.metadata }; } + async ephemeralMessageUpdate( + request: UpdateMessagePartialRequest & { id: string }, + ): Promise> { + const pathParams = { + id: request?.id, + }; + const body = { + skip_enrich_url: request?.skip_enrich_url, + user_id: request?.user_id, + unset: request?.unset, + set: request?.set, + user: request?.user, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'PATCH', + '/api/v2/chat/messages/{id}/ephemeral', + pathParams, + undefined, + body, + 'application/json', + ); + + decoders.UpdateMessagePartialResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + async sendReaction( request: SendReactionRequest & { id: string }, ): Promise> { diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 62dd4ca..8e6d92c 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -49,6 +49,7 @@ import { GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, + GetFeedVisibilityResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, @@ -58,6 +59,7 @@ import { GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, + ListFeedVisibilitiesResponse, MarkActivityRequest, PinActivityRequest, PinActivityResponse, @@ -581,6 +583,7 @@ export class FeedsApi { user_id: request?.user_id, visibility: request?.visibility, attachments: request?.attachments, + feeds: request?.feeds, filter_tags: request?.filter_tags, interest_tags: request?.interest_tags, custom: request?.custom, @@ -1621,6 +1624,34 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } + async listFeedVisibilities(): Promise< + StreamResponse + > { + const response = await this.apiClient.sendRequest< + StreamResponse + >('GET', '/api/v2/feeds/feed_visibilities', undefined, undefined); + + decoders.ListFeedVisibilitiesResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + + async getFeedVisibility(request: { + name: string; + }): Promise> { + const pathParams = { + name: request?.name, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >('GET', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined); + + decoders.GetFeedVisibilityResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + async createFeedsBatch( request: CreateFeedsBatchRequest, ): Promise> { diff --git a/src/gen/model-decoders/decoders.ts b/src/gen/model-decoders/decoders.ts index be1f8aa..8cbc11a 100644 --- a/src/gen/model-decoders/decoders.ts +++ b/src/gen/model-decoders/decoders.ts @@ -1157,6 +1157,8 @@ decoders.Channel = (input?: Record) => { created_by: { type: 'User', isSingle: true }, + members_lookup: { type: 'ChannelMemberLookup', isSingle: false }, + truncated_by: { type: 'User', isSingle: true }, }; return decode(typeMappings, input); @@ -1239,6 +1241,17 @@ decoders.ChannelMember = (input?: Record) => { return decode(typeMappings, input); }; +decoders.ChannelMemberLookup = (input?: Record) => { + const typeMappings: TypeMapping = { + archived_at: { type: 'DatetimeType', isSingle: true }, + + ban_expires: { type: 'DatetimeType', isSingle: true }, + + pinned_at: { type: 'DatetimeType', isSingle: true }, + }; + return decode(typeMappings, input); +}; + decoders.ChannelMute = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, @@ -1717,6 +1730,15 @@ decoders.DeleteCommentReactionResponse = (input?: Record) => { return decode(typeMappings, input); }; +decoders.DeleteCommentResponse = (input?: Record) => { + const typeMappings: TypeMapping = { + activity: { type: 'ActivityResponse', isSingle: true }, + + comment: { type: 'CommentResponse', isSingle: true }, + }; + return decode(typeMappings, input); +}; + decoders.DeleteMessageResponse = (input?: Record) => { const typeMappings: TypeMapping = { message: { type: 'MessageResponse', isSingle: true }, @@ -2141,6 +2163,8 @@ decoders.GetCallReportResponse = (input?: Record) => { video_reactions: { type: 'VideoReactionsResponse', isSingle: false }, chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true }, + + session: { type: 'CallSessionResponse', isSingle: true }, }; return decode(typeMappings, input); }; diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 293b36d..0026b5e 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -587,7 +587,7 @@ export interface ActivityResponse { moderation?: ModerationV2Response; - notification_context?: Record; + notification_context?: NotificationContext; parent?: ActivityResponse; @@ -1821,6 +1821,10 @@ export interface CallHLSBroadcastingStoppedEvent { export interface CallIngressResponse { rtmp: RTMPIngress; + + srt: SRTIngress; + + whip: WHIPIngress; } export interface CallLiveStartedEvent { @@ -2144,6 +2148,8 @@ export interface CallResponse { transcribing: boolean; + translating: boolean; + type: string; updated_at: Date; @@ -2794,6 +2800,8 @@ export interface Channel { created_by?: User; + members_lookup?: Record; + truncated_by?: User; } @@ -3087,6 +3095,22 @@ export interface ChannelMember { user?: UserResponse; } +export interface ChannelMemberLookup { + archived: boolean; + + banned: boolean; + + hidden: boolean; + + pinned: boolean; + + archived_at?: Date; + + ban_expires?: Date; + + pinned_at?: Date; +} + export interface ChannelMemberResponse { channel_role: string; } @@ -4500,6 +4524,10 @@ export interface DeleteCommentReactionResponse { export interface DeleteCommentResponse { duration: string; + + activity: ActivityResponse; + + comment: CommentResponse; } export interface DeleteExternalStorageResponse { @@ -5338,35 +5366,34 @@ export interface FeedMemberUpdatedEvent { export const FeedOwnCapability = { ADD_ACTIVITY: 'add-activity', + ADD_ACTIVITY_BOOKMARK: 'add-activity-bookmark', ADD_ACTIVITY_REACTION: 'add-activity-reaction', ADD_COMMENT: 'add-comment', ADD_COMMENT_REACTION: 'add-comment-reaction', - BOOKMARK_ACTIVITY: 'bookmark-activity', CREATE_FEED: 'create-feed', - DELETE_BOOKMARK: 'delete-bookmark', - DELETE_COMMENT: 'delete-comment', + DELETE_ANY_ACTIVITY: 'delete-any-activity', + DELETE_ANY_COMMENT: 'delete-any-comment', DELETE_FEED: 'delete-feed', - EDIT_BOOKMARK: 'edit-bookmark', + DELETE_OWN_ACTIVITY: 'delete-own-activity', + DELETE_OWN_ACTIVITY_BOOKMARK: 'delete-own-activity-bookmark', + DELETE_OWN_ACTIVITY_REACTION: 'delete-own-activity-reaction', + DELETE_OWN_COMMENT: 'delete-own-comment', + DELETE_OWN_COMMENT_REACTION: 'delete-own-comment-reaction', FOLLOW: 'follow', - INVITE_FEED: 'invite-feed', - JOIN_FEED: 'join-feed', - LEAVE_FEED: 'leave-feed', - MANAGE_FEED_GROUP: 'manage-feed-group', - MARK_ACTIVITY: 'mark-activity', PIN_ACTIVITY: 'pin-activity', QUERY_FEED_MEMBERS: 'query-feed-members', QUERY_FOLLOWS: 'query-follows', READ_ACTIVITIES: 'read-activities', READ_FEED: 'read-feed', - REMOVE_ACTIVITY: 'remove-activity', - REMOVE_ACTIVITY_REACTION: 'remove-activity-reaction', - REMOVE_COMMENT_REACTION: 'remove-comment-reaction', UNFOLLOW: 'unfollow', - UPDATE_ACTIVITY: 'update-activity', - UPDATE_COMMENT: 'update-comment', + UPDATE_ANY_ACTIVITY: 'update-any-activity', + UPDATE_ANY_COMMENT: 'update-any-comment', UPDATE_FEED: 'update-feed', UPDATE_FEED_FOLLOWERS: 'update-feed-followers', UPDATE_FEED_MEMBERS: 'update-feed-members', + UPDATE_OWN_ACTIVITY: 'update-own-activity', + UPDATE_OWN_ACTIVITY_BOOKMARK: 'update-own-activity-bookmark', + UPDATE_OWN_COMMENT: 'update-own-comment', } as const; // eslint-disable-next-line @typescript-eslint/no-redeclare @@ -5461,6 +5488,14 @@ export interface FeedViewResponse { ranking?: RankingConfig; } +export interface FeedVisibilityResponse { + description: string; + + name: string; + + grants: Record; +} + export interface FeedsModerationTemplateConfig { config_key: string; @@ -5562,33 +5597,29 @@ export interface FirebaseConfigFields { export interface Flag { created_at: Date; - entity_id: string; - - entity_type: string; + created_by_automod: boolean; updated_at: Date; - result: Array>; - - entity_creator_id?: string; - - is_streamed_content?: boolean; - - moderation_payload_hash?: string; + approved_at?: Date; reason?: string; - review_queue_item_id?: string; + rejected_at?: Date; - type?: string; + reviewed_at?: Date; - labels?: string[]; + reviewed_by?: string; + + target_message_id?: string; custom?: Record; - moderation_payload?: ModerationPayload; + details?: FlagDetails; - review_queue_item?: ReviewQueueItem; + target_message?: Message; + + target_user?: User; user?: User; } @@ -5935,6 +5966,8 @@ export interface GetCallReportResponse { video_reactions?: VideoReactionsResponse[]; chat_activity?: ChatActivityStatsResponse; + + session?: CallSessionResponse; } export interface GetCallResponse { @@ -6125,6 +6158,12 @@ export interface GetFeedViewResponse { feed_view: FeedViewResponse; } +export interface GetFeedVisibilityResponse { + duration: string; + + feed_visibility: FeedVisibilityResponse; +} + export interface GetFollowSuggestionsResponse { duration: string; @@ -6905,6 +6944,12 @@ export interface ListFeedViewsResponse { views: Record; } +export interface ListFeedVisibilitiesResponse { + duration: string; + + feed_visibilities: Record; +} + export interface ListImportsResponse { duration: string; @@ -7772,6 +7817,8 @@ export interface ModerationCustomActionEvent { } export interface ModerationDashboardPreferences { + disable_flagging_reviewed_entity?: boolean; + flag_user_on_flagged_content?: boolean; media_queue_blur_enabled?: boolean; @@ -7981,6 +8028,12 @@ export interface NotificationConfig { track_seen?: boolean; } +export interface NotificationContext { + target?: NotificationTarget; + + trigger?: NotificationTrigger; +} + export interface NotificationFeedUpdatedEvent { created_at: Date; @@ -8067,6 +8120,26 @@ export interface NotificationStatusResponse { seen_activities?: string[]; } +export interface NotificationTarget { + id: string; + + name?: string; + + text?: string; + + type?: string; + + user_id?: string; + + attachments?: Attachment[]; +} + +export interface NotificationTrigger { + text: string; + + type: string; +} + export interface NullTime {} export interface OCRRule { @@ -10535,6 +10608,10 @@ export interface SFUIDLastSeen { process_start_time: number; } +export interface SRTIngress { + address: string; +} + export interface STTEgressConfig { closed_captions_enabled?: boolean; @@ -11566,6 +11643,8 @@ export interface TranscriptionSettings { mode: 'available' | 'disabled' | 'auto-on'; speech_segment_config?: SpeechSegmentConfig; + + translation?: TranslationSettings; } export interface TranscriptionSettingsRequest { @@ -11613,6 +11692,8 @@ export interface TranscriptionSettingsRequest { mode?: 'available' | 'disabled' | 'auto-on'; speech_segment_config?: SpeechSegmentConfig; + + translation?: TranslationSettings; } export interface TranscriptionSettingsResponse { @@ -11660,6 +11741,8 @@ export interface TranscriptionSettingsResponse { mode: 'available' | 'disabled' | 'auto-on'; speech_segment_config?: SpeechSegmentConfig; + + translation?: TranslationSettings; } export interface TranslateMessageRequest { @@ -11723,6 +11806,12 @@ export interface TranslateMessageRequest { | 'ht'; } +export interface TranslationSettings { + enabled: boolean; + + languages: string[]; +} + export interface TruncateChannelRequest { hard_delete?: boolean; @@ -11938,6 +12027,8 @@ export interface UpdateActivityRequest { attachments?: Attachment[]; + feeds?: string[]; + filter_tags?: string[]; interest_tags?: string[]; @@ -13420,6 +13511,10 @@ export interface VoteData { option_id?: string; } +export interface WHIPIngress { + address: string; +} + export interface WSEvent { created_at: Date;