Skip to content

Commit ca75fb5

Browse files
authored
feat: stories feed implementation (#170)
1 parent 7dc8f28 commit ca75fb5

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

src/gen/model-decoders/decoders.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3867,6 +3867,22 @@ decoders.StopLiveResponse = (input?: Record<string, any>) => {
38673867
return decode(typeMappings, input);
38683868
};
38693869

3870+
decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
3871+
const typeMappings: TypeMapping = {
3872+
created_at: { type: 'DatetimeType', isSingle: true },
3873+
3874+
received_at: { type: 'DatetimeType', isSingle: true },
3875+
3876+
aggregated_activities: {
3877+
type: 'AggregatedActivityResponse',
3878+
isSingle: false,
3879+
},
3880+
3881+
user: { type: 'UserResponseCommonFields', isSingle: true },
3882+
};
3883+
return decode(typeMappings, input);
3884+
};
3885+
38703886
decoders.SubmitActionResponse = (input?: Record<string, any>) => {
38713887
const typeMappings: TypeMapping = {
38723888
item: { type: 'ReviewQueueItemResponse', isSingle: true },

src/gen/models/index.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ export interface ActivityResponse {
577577

578578
hidden?: boolean;
579579

580+
is_watched?: boolean;
581+
580582
text?: string;
581583

582584
visibility_tag?: string;
@@ -811,6 +813,8 @@ export interface AggregatedActivityResponse {
811813

812814
user_count_truncated: boolean;
813815

816+
is_watched?: boolean;
817+
814818
activities: ActivityResponse[];
815819
}
816820

@@ -4150,6 +4154,8 @@ export interface CreateFeedGroupRequest {
41504154
push_notification?: PushNotificationConfig;
41514155

41524156
ranking?: RankingConfig;
4157+
4158+
stories?: StoriesConfig;
41534159
}
41544160

41554161
export interface CreateFeedGroupResponse {
@@ -10624,6 +10630,24 @@ export interface SRTIngress {
1062410630
address: string;
1062510631
}
1062610632

10633+
export interface StoriesFeedUpdatedEvent {
10634+
created_at: Date;
10635+
10636+
fid: string;
10637+
10638+
custom: Record<string, any>;
10639+
10640+
type: string;
10641+
10642+
feed_visibility?: string;
10643+
10644+
received_at?: Date;
10645+
10646+
aggregated_activities?: AggregatedActivityResponse[];
10647+
10648+
user?: UserResponseCommonFields;
10649+
}
10650+
1062710651
export interface STTEgressConfig {
1062810652
closed_captions_enabled?: boolean;
1062910653

@@ -11292,6 +11316,8 @@ export interface StoriesConfig {
1129211316
expiration_behaviour?: string;
1129311317

1129411318
skip_watched?: boolean;
11319+
11320+
track_watched?: boolean;
1129511321
}
1129611322

1129711323
export interface SubmitActionRequest {
@@ -13714,6 +13740,7 @@ export type WebhookEvent =
1371413740
| ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)
1371513741
| ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)
1371613742
| ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)
13743+
| ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)
1371713744
| ({ type: 'flag.updated' } & FlagUpdatedEvent)
1371813745
| ({ type: 'member.added' } & MemberAddedEvent)
1371913746
| ({ type: 'member.removed' } & MemberRemovedEvent)

0 commit comments

Comments
 (0)