Skip to content

Commit ea086b6

Browse files
committed
feat: latest from backend
1 parent d3242c4 commit ea086b6

File tree

2 files changed

+46
-16
lines changed

2 files changed

+46
-16
lines changed

src/gen/model-decoders/decoders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,8 @@ decoders.DeleteCommentReactionResponse = (input?: Record<string, any>) => {
17321732

17331733
decoders.DeleteCommentResponse = (input?: Record<string, any>) => {
17341734
const typeMappings: TypeMapping = {
1735+
activity: { type: 'ActivityResponse', isSingle: true },
1736+
17351737
comment: { type: 'CommentResponse', isSingle: true },
17361738
};
17371739
return decode(typeMappings, input);

src/gen/models/index.ts

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export interface ActivityResponse {
587587

588588
moderation?: ModerationV2Response;
589589

590-
notification_context?: Record<string, any>;
590+
notification_context?: NotificationContext;
591591

592592
parent?: ActivityResponse;
593593

@@ -805,6 +805,8 @@ export interface AggregatedActivityResponse {
805805

806806
user_count: number;
807807

808+
user_count_truncated: boolean;
809+
808810
activities: ActivityResponse[];
809811
}
810812

@@ -4523,6 +4525,8 @@ export interface DeleteCommentReactionResponse {
45234525
export interface DeleteCommentResponse {
45244526
duration: string;
45254527

4528+
activity: ActivityResponse;
4529+
45264530
comment: CommentResponse;
45274531
}
45284532

@@ -5593,33 +5597,29 @@ export interface FirebaseConfigFields {
55935597
export interface Flag {
55945598
created_at: Date;
55955599

5596-
entity_id: string;
5597-
5598-
entity_type: string;
5600+
created_by_automod: boolean;
55995601

56005602
updated_at: Date;
56015603

5602-
result: Array<Record<string, any>>;
5603-
5604-
entity_creator_id?: string;
5605-
5606-
is_streamed_content?: boolean;
5607-
5608-
moderation_payload_hash?: string;
5604+
approved_at?: Date;
56095605

56105606
reason?: string;
56115607

5612-
review_queue_item_id?: string;
5608+
rejected_at?: Date;
56135609

5614-
type?: string;
5610+
reviewed_at?: Date;
56155611

5616-
labels?: string[];
5612+
reviewed_by?: string;
5613+
5614+
target_message_id?: string;
56175615

56185616
custom?: Record<string, any>;
56195617

5620-
moderation_payload?: ModerationPayload;
5618+
details?: FlagDetails;
56215619

5622-
review_queue_item?: ReviewQueueItem;
5620+
target_message?: Message;
5621+
5622+
target_user?: User;
56235623

56245624
user?: User;
56255625
}
@@ -7817,6 +7817,8 @@ export interface ModerationCustomActionEvent {
78177817
}
78187818

78197819
export interface ModerationDashboardPreferences {
7820+
disable_flagging_reviewed_entity?: boolean;
7821+
78207822
flag_user_on_flagged_content?: boolean;
78217823

78227824
media_queue_blur_enabled?: boolean;
@@ -8026,6 +8028,12 @@ export interface NotificationConfig {
80268028
track_seen?: boolean;
80278029
}
80288030

8031+
export interface NotificationContext {
8032+
target?: NotificationTarget;
8033+
8034+
trigger?: NotificationTrigger;
8035+
}
8036+
80298037
export interface NotificationFeedUpdatedEvent {
80308038
created_at: Date;
80318039

@@ -8112,6 +8120,26 @@ export interface NotificationStatusResponse {
81128120
seen_activities?: string[];
81138121
}
81148122

8123+
export interface NotificationTarget {
8124+
id: string;
8125+
8126+
name?: string;
8127+
8128+
text?: string;
8129+
8130+
type?: string;
8131+
8132+
user_id?: string;
8133+
8134+
attachments?: Attachment[];
8135+
}
8136+
8137+
export interface NotificationTrigger {
8138+
text: string;
8139+
8140+
type: string;
8141+
}
8142+
81158143
export interface NullTime {}
81168144

81178145
export interface OCRRule {

0 commit comments

Comments
 (0)