Skip to content

Commit 04129f9

Browse files
authored
feat!: [FEEDS-782] Move own_ to FeedResponse (#159)
1 parent 4be1694 commit 04129f9

File tree

3 files changed

+48
-34
lines changed

3 files changed

+48
-34
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ export class FeedsApi {
426426
const body = {
427427
type: request?.type,
428428
create_notification_activity: request?.create_notification_activity,
429+
enforce_unique: request?.enforce_unique,
429430
skip_push: request?.skip_push,
430431
user_id: request?.user_id,
431432
custom: request?.custom,
@@ -897,6 +898,7 @@ export class FeedsApi {
897898
const body = {
898899
type: request?.type,
899900
create_notification_activity: request?.create_notification_activity,
901+
enforce_unique: request?.enforce_unique,
900902
skip_push: request?.skip_push,
901903
user_id: request?.user_id,
902904
custom: request?.custom,

src/gen/model-decoders/decoders.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,8 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
19731973
deleted_at: { type: 'DatetimeType', isSingle: true },
19741974

19751975
own_follows: { type: 'FollowResponse', isSingle: false },
1976+
1977+
own_membership: { type: 'FeedMemberResponse', isSingle: true },
19761978
};
19771979
return decode(typeMappings, input);
19781980
};
@@ -2326,11 +2328,7 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
23262328

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

2329-
own_follows: { type: 'FollowResponse', isSingle: false },
2330-
23312331
notification_status: { type: 'NotificationStatusResponse', isSingle: true },
2332-
2333-
own_membership: { type: 'FeedMemberResponse', isSingle: true },
23342332
};
23352333
return decode(typeMappings, input);
23362334
};

src/gen/models/index.ts

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ export interface AddCommentReactionRequest {
707707

708708
create_notification_activity?: boolean;
709709

710+
enforce_unique?: boolean;
711+
710712
skip_push?: boolean;
711713

712714
user_id?: string;
@@ -775,6 +777,8 @@ export interface AddReactionRequest {
775777

776778
create_notification_activity?: boolean;
777779

780+
enforce_unique?: boolean;
781+
778782
skip_push?: boolean;
779783

780784
user_id?: string;
@@ -1231,6 +1235,8 @@ export interface BanActionRequest {
12311235
}
12321236

12331237
export interface BanOptions {
1238+
delete_messages?: 'soft' | 'pruning' | 'hard';
1239+
12341240
duration?: number;
12351241

12361242
ip_ban?: boolean;
@@ -1276,10 +1282,6 @@ export interface BanResponse {
12761282
user?: UserResponse;
12771283
}
12781284

1279-
export interface BlockContentOptions {
1280-
reason?: string;
1281-
}
1282-
12831285
export interface BlockListConfig {
12841286
async?: boolean;
12851287

@@ -2622,6 +2624,8 @@ export interface CallUserMutedEvent {
26222624

26232625
from_user_id: string;
26242626

2627+
reason: string;
2628+
26252629
muted_user_ids: string[];
26262630

26272631
type: string;
@@ -2684,6 +2688,8 @@ export interface CampaignResponse {
26842688

26852689
sender_mode: string;
26862690

2691+
sender_visibility: string;
2692+
26872693
show_channels: boolean;
26882694

26892695
skip_push: boolean;
@@ -3850,6 +3856,8 @@ export interface ConfigResponse {
38503856

38513857
updated_at: Date;
38523858

3859+
supported_video_call_harm_types: string[];
3860+
38533861
ai_image_config?: AIImageConfig;
38543862

38553863
ai_text_config?: AITextConfig;
@@ -5451,9 +5459,13 @@ export interface FeedResponse {
54515459

54525460
filter_tags?: string[];
54535461

5462+
own_capabilities?: FeedOwnCapability[];
5463+
54545464
own_follows?: FollowResponse[];
54555465

54565466
custom?: Record<string, any>;
5467+
5468+
own_membership?: FeedMemberResponse;
54575469
}
54585470

54595471
export interface FeedUpdatedEvent {
@@ -5597,35 +5609,35 @@ export interface FirebaseConfigFields {
55975609
export interface Flag {
55985610
created_at: Date;
55995611

5600-
created_by_automod: boolean;
5612+
entity_id: string;
5613+
5614+
entity_type: string;
56015615

56025616
updated_at: Date;
56035617

5604-
approved_at?: Date;
5618+
result: Array<Record<string, any>>;
56055619

5606-
reason?: string;
5620+
entity_creator_id?: string;
56075621

5608-
rejected_at?: Date;
5622+
is_streamed_content?: boolean;
56095623

5610-
reviewed_at?: Date;
5624+
moderation_payload_hash?: string;
56115625

5612-
reviewed_by?: string;
5626+
reason?: string;
56135627

5614-
target_message_id?: string;
5628+
review_queue_item_id?: string;
56155629

5616-
custom?: Record<string, any>;
5630+
type?: string;
56175631

5618-
details?: FlagDetails;
5632+
labels?: string[];
56195633

5620-
target_message?: Message;
5634+
custom?: Record<string, any>;
56215635

5622-
target_user?: User;
5636+
moderation_payload?: ModerationPayload;
56235637

5624-
user?: User;
5625-
}
5638+
review_queue_item?: ReviewQueueItem;
56265639

5627-
export interface FlagContentOptions {
5628-
reason?: string;
5640+
user?: User;
56295641
}
56305642

56315643
export interface FlagDetails {
@@ -6346,8 +6358,6 @@ export interface GetOrCreateFeedResponse {
63466358

63476359
members: FeedMemberResponse[];
63486360

6349-
own_capabilities: FeedOwnCapability[];
6350-
63516361
pinned_activities: ActivityPinResponse[];
63526362

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

63576367
prev?: string;
63586368

6359-
own_follows?: FollowResponse[];
6360-
63616369
followers_pagination?: PagerResponse;
63626370

63636371
following_pagination?: PagerResponse;
63646372

63656373
member_pagination?: PagerResponse;
63666374

63676375
notification_status?: NotificationStatusResponse;
6368-
6369-
own_membership?: FeedMemberResponse;
63706376
}
63716377

63726378
export interface GetOrCreateFeedViewRequest {
@@ -6522,9 +6528,15 @@ export interface HLSSettingsResponse {
65226528
}
65236529

65246530
export interface HarmConfig {
6531+
cooldown_period?: number;
6532+
65256533
severity?: number;
65266534

6535+
threshold?: number;
6536+
65276537
action_sequences?: ActionSequence[];
6538+
6539+
harm_types?: string[];
65286540
}
65296541

65306542
export interface HideChannelRequest {
@@ -7779,6 +7791,8 @@ export interface ModerationConfig {
77797791

77807792
updated_at?: Date;
77817793

7794+
supported_video_call_harm_types?: string[];
7795+
77827796
ai_image_config?: AIImageConfig;
77837797

77847798
ai_image_lite_config?: BodyguardImageAnalysisConfig;
@@ -10521,11 +10535,7 @@ export interface RuleBuilderAction {
1052110535

1052210536
ban_options?: BanOptions;
1052310537

10524-
flag_content_options?: FlagContentOptions;
10525-
1052610538
flag_user_options?: FlagUserOptions;
10527-
10528-
remove_content_options?: BlockContentOptions;
1052910539
}
1053010540

1053110541
export interface RuleBuilderCondition {
@@ -13436,7 +13446,11 @@ export interface VelocityFilterConfigRule {
1343613446
}
1343713447

1343813448
export interface VideoCallRuleConfig {
13439-
rules?: Record<string, HarmConfig>;
13449+
flag_all_labels?: boolean;
13450+
13451+
flagged_labels?: string[];
13452+
13453+
rules?: HarmConfig[];
1344013454
}
1344113455

1344213456
export interface VideoContentParameters {

0 commit comments

Comments
 (0)