@stream-io/feeds-client 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/index-react-bindings.browser.cjs +172 -124
  3. package/dist/index-react-bindings.browser.cjs.map +1 -1
  4. package/dist/index-react-bindings.browser.js +172 -124
  5. package/dist/index-react-bindings.browser.js.map +1 -1
  6. package/dist/index-react-bindings.node.cjs +172 -124
  7. package/dist/index-react-bindings.node.cjs.map +1 -1
  8. package/dist/index-react-bindings.node.js +172 -124
  9. package/dist/index-react-bindings.node.js.map +1 -1
  10. package/dist/index.browser.cjs +170 -122
  11. package/dist/index.browser.cjs.map +1 -1
  12. package/dist/index.browser.js +170 -122
  13. package/dist/index.browser.js.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.node.cjs +170 -122
  16. package/dist/index.node.cjs.map +1 -1
  17. package/dist/index.node.js +170 -122
  18. package/dist/index.node.js.map +1 -1
  19. package/dist/src/feed/event-handlers/index.d.ts +1 -0
  20. package/dist/src/feed/event-handlers/watch/handle-watch-started.d.ts +2 -0
  21. package/dist/src/feed/event-handlers/watch/handle-watch-stopped.d.ts +2 -0
  22. package/dist/src/feed/event-handlers/watch/index.d.ts +2 -0
  23. package/dist/src/feed/feed.d.ts +4 -12
  24. package/dist/src/feeds-client/event-handlers/index.d.ts +1 -0
  25. package/dist/src/feeds-client/event-handlers/user/handle-user-updated.d.ts +3 -0
  26. package/dist/src/{feeds-client.d.ts → feeds-client/feeds-client.d.ts} +16 -16
  27. package/dist/src/feeds-client/index.d.ts +2 -0
  28. package/dist/src/gen/feeds/FeedsApi.d.ts +27 -23
  29. package/dist/src/gen/models/index.d.ts +163 -23
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/index.ts +1 -1
  32. package/package.json +2 -2
  33. package/src/feed/event-handlers/follow/handle-follow-created.test.ts +16 -12
  34. package/src/feed/event-handlers/follow/handle-follow-created.ts +4 -7
  35. package/src/feed/event-handlers/follow/handle-follow-deleted.test.ts +19 -15
  36. package/src/feed/event-handlers/follow/handle-follow-deleted.ts +6 -6
  37. package/src/feed/event-handlers/follow/handle-follow-updated.ts +7 -10
  38. package/src/feed/event-handlers/index.ts +2 -1
  39. package/src/feed/event-handlers/watch/handle-watch-started.ts +5 -0
  40. package/src/feed/event-handlers/watch/handle-watch-stopped.ts +5 -0
  41. package/src/feed/event-handlers/watch/index.ts +2 -0
  42. package/src/feed/feed.ts +15 -33
  43. package/src/feeds-client/event-handlers/index.ts +1 -0
  44. package/src/feeds-client/event-handlers/user/handle-user-updated.test.ts +53 -0
  45. package/src/feeds-client/event-handlers/user/handle-user-updated.ts +28 -0
  46. package/src/{feeds-client.ts → feeds-client/feeds-client.ts} +48 -39
  47. package/src/feeds-client/index.ts +2 -0
  48. package/src/gen/feeds/FeedsApi.ts +164 -138
  49. package/src/gen/model-decoders/decoders.ts +15 -0
  50. package/src/gen/models/index.ts +278 -29
  51. package/src/test-utils/response-generators.ts +10 -11
  52. package/src/utils/state-update-queue.ts +1 -1
@@ -46,8 +46,8 @@ export interface AcceptFeedMemberInviteResponse {
46
46
  member: FeedMemberResponse;
47
47
  }
48
48
  export interface AcceptFollowRequest {
49
- source_fid: string;
50
- target_fid: string;
49
+ source: string;
50
+ target: string;
51
51
  follower_role?: string;
52
52
  }
53
53
  export interface AcceptFollowResponse {
@@ -101,6 +101,7 @@ export interface ActivityAddedEvent {
101
101
  activity: ActivityResponse;
102
102
  custom: Record<string, any>;
103
103
  type: string;
104
+ feed_visibility?: string;
104
105
  received_at?: Date;
105
106
  user?: UserResponseCommonFields;
106
107
  }
@@ -110,9 +111,21 @@ export interface ActivityDeletedEvent {
110
111
  activity: ActivityResponse;
111
112
  custom: Record<string, any>;
112
113
  type: string;
114
+ feed_visibility?: string;
113
115
  received_at?: Date;
114
116
  user?: UserResponseCommonFields;
115
117
  }
118
+ export interface ActivityFeedbackRequest {
119
+ hide?: boolean;
120
+ mute_user?: boolean;
121
+ reason?: string;
122
+ report?: boolean;
123
+ show_less?: boolean;
124
+ }
125
+ export interface ActivityFeedbackResponse {
126
+ activity_id: string;
127
+ duration: string;
128
+ }
116
129
  export interface ActivityLocation {
117
130
  lat: number;
118
131
  lng: number;
@@ -122,10 +135,12 @@ export interface ActivityMarkEvent {
122
135
  fid: string;
123
136
  custom: Record<string, any>;
124
137
  type: string;
138
+ feed_visibility?: string;
125
139
  mark_all_read?: boolean;
126
140
  mark_all_seen?: boolean;
127
141
  received_at?: Date;
128
142
  mark_read?: string[];
143
+ mark_seen?: string[];
129
144
  mark_watched?: string[];
130
145
  user?: UserResponseCommonFields;
131
146
  }
@@ -142,9 +157,15 @@ export interface ActivityPinnedEvent {
142
157
  custom: Record<string, any>;
143
158
  pinned_activity: PinActivityResponse;
144
159
  type: string;
160
+ feed_visibility?: string;
145
161
  received_at?: Date;
146
162
  user?: UserResponseCommonFields;
147
163
  }
164
+ export interface ActivityProcessorConfig {
165
+ type: string;
166
+ openai_key?: string;
167
+ config?: Record<string, any>;
168
+ }
148
169
  export interface ActivityReactionAddedEvent {
149
170
  created_at: Date;
150
171
  fid: string;
@@ -152,6 +173,7 @@ export interface ActivityReactionAddedEvent {
152
173
  custom: Record<string, any>;
153
174
  reaction: FeedsReactionResponse;
154
175
  type: string;
176
+ feed_visibility?: string;
155
177
  received_at?: Date;
156
178
  user?: UserResponseCommonFields;
157
179
  }
@@ -162,6 +184,7 @@ export interface ActivityReactionDeletedEvent {
162
184
  custom: Record<string, any>;
163
185
  reaction: FeedsReactionResponse;
164
186
  type: string;
187
+ feed_visibility?: string;
165
188
  received_at?: Date;
166
189
  user?: UserResponseCommonFields;
167
190
  }
@@ -172,6 +195,7 @@ export interface ActivityReactionUpdatedEvent {
172
195
  custom: Record<string, any>;
173
196
  reaction: FeedsReactionResponse;
174
197
  type: string;
198
+ feed_visibility?: string;
175
199
  received_at?: Date;
176
200
  user?: UserResponseCommonFields;
177
201
  }
@@ -181,12 +205,13 @@ export interface ActivityRemovedFromFeedEvent {
181
205
  activity: ActivityResponse;
182
206
  custom: Record<string, any>;
183
207
  type: string;
208
+ feed_visibility?: string;
184
209
  received_at?: Date;
185
210
  user?: UserResponseCommonFields;
186
211
  }
187
212
  export interface ActivityRequest {
188
213
  type: string;
189
- fids: string[];
214
+ feeds: string[];
190
215
  expires_at?: string;
191
216
  id?: string;
192
217
  parent_id?: string;
@@ -230,21 +255,30 @@ export interface ActivityResponse {
230
255
  deleted_at?: Date;
231
256
  edited_at?: Date;
232
257
  expires_at?: Date;
258
+ hidden?: boolean;
233
259
  text?: string;
234
260
  visibility_tag?: string;
235
261
  current_feed?: FeedResponse;
236
262
  location?: ActivityLocation;
237
263
  moderation?: ModerationV2Response;
238
- object?: Record<string, any>;
264
+ notification_context?: Record<string, any>;
239
265
  parent?: ActivityResponse;
240
266
  poll?: PollResponseData;
241
267
  }
268
+ export interface ActivitySelectorConfig {
269
+ cutoff_time: Date;
270
+ min_popularity?: number;
271
+ type?: string;
272
+ sort?: SortParam[];
273
+ filter?: Record<string, any>;
274
+ }
242
275
  export interface ActivityUnpinnedEvent {
243
276
  created_at: Date;
244
277
  fid: string;
245
278
  custom: Record<string, any>;
246
279
  pinned_activity: PinActivityResponse;
247
280
  type: string;
281
+ feed_visibility?: string;
248
282
  received_at?: Date;
249
283
  user?: UserResponseCommonFields;
250
284
  }
@@ -254,12 +288,13 @@ export interface ActivityUpdatedEvent {
254
288
  activity: ActivityResponse;
255
289
  custom: Record<string, any>;
256
290
  type: string;
291
+ feed_visibility?: string;
257
292
  received_at?: Date;
258
293
  user?: UserResponseCommonFields;
259
294
  }
260
295
  export interface AddActivityRequest {
261
296
  type: string;
262
- fids: string[];
297
+ feeds: string[];
263
298
  expires_at?: string;
264
299
  id?: string;
265
300
  parent_id?: string;
@@ -342,6 +377,9 @@ export interface AggregatedActivityResponse {
342
377
  user_count: number;
343
378
  activities: ActivityResponse[];
344
379
  }
380
+ export interface AggregationConfig {
381
+ format?: string;
382
+ }
345
383
  export interface AppEventResponse {
346
384
  auto_translation_enabled: boolean;
347
385
  name: string;
@@ -746,6 +784,7 @@ export interface CallSettings {
746
784
  broadcasting?: BroadcastSettings;
747
785
  frame_recording?: FrameRecordSettings;
748
786
  geofencing?: GeofenceSettings;
787
+ ingress?: IngressSettings;
749
788
  limits?: LimitsSettings;
750
789
  recording?: RecordSettings;
751
790
  ring?: RingSettings;
@@ -769,6 +808,7 @@ export interface CallSettingsResponse {
769
808
  thumbnails: ThumbnailsSettingsResponse;
770
809
  transcription: TranscriptionSettingsResponse;
771
810
  video: VideoSettingsResponse;
811
+ ingress?: IngressSettingsResponse;
772
812
  }
773
813
  export interface CallType {
774
814
  app_pk: number;
@@ -986,6 +1026,7 @@ export interface CommentAddedEvent {
986
1026
  comment: CommentResponse;
987
1027
  custom: Record<string, any>;
988
1028
  type: string;
1029
+ feed_visibility?: string;
989
1030
  received_at?: Date;
990
1031
  user?: UserResponseCommonFields;
991
1032
  }
@@ -995,6 +1036,7 @@ export interface CommentDeletedEvent {
995
1036
  comment: CommentResponse;
996
1037
  custom: Record<string, any>;
997
1038
  type: string;
1039
+ feed_visibility?: string;
998
1040
  received_at?: Date;
999
1041
  user?: UserResponseCommonFields;
1000
1042
  }
@@ -1005,6 +1047,7 @@ export interface CommentReactionAddedEvent {
1005
1047
  custom: Record<string, any>;
1006
1048
  reaction: FeedsReactionResponse;
1007
1049
  type: string;
1050
+ feed_visibility?: string;
1008
1051
  received_at?: Date;
1009
1052
  user?: UserResponseCommonFields;
1010
1053
  }
@@ -1015,6 +1058,7 @@ export interface CommentReactionDeletedEvent {
1015
1058
  custom: Record<string, any>;
1016
1059
  reaction: FeedsReactionResponse;
1017
1060
  type: string;
1061
+ feed_visibility?: string;
1018
1062
  received_at?: Date;
1019
1063
  }
1020
1064
  export interface CommentReactionUpdatedEvent {
@@ -1024,6 +1068,7 @@ export interface CommentReactionUpdatedEvent {
1024
1068
  custom: Record<string, any>;
1025
1069
  reaction: FeedsReactionResponse;
1026
1070
  type: string;
1071
+ feed_visibility?: string;
1027
1072
  received_at?: Date;
1028
1073
  user?: UserResponseCommonFields;
1029
1074
  }
@@ -1059,6 +1104,7 @@ export interface CommentUpdatedEvent {
1059
1104
  comment: CommentResponse;
1060
1105
  custom: Record<string, any>;
1061
1106
  type: string;
1107
+ feed_visibility?: string;
1062
1108
  received_at?: Date;
1063
1109
  user?: UserResponseCommonFields;
1064
1110
  }
@@ -1166,13 +1212,21 @@ export interface CustomActionRequest {
1166
1212
  export interface Data {
1167
1213
  id: string;
1168
1214
  }
1215
+ export interface DecayFunctionConfig {
1216
+ base?: string;
1217
+ decay?: string;
1218
+ direction?: string;
1219
+ offset?: string;
1220
+ origin?: string;
1221
+ scale?: string;
1222
+ }
1169
1223
  export interface DeleteActivitiesRequest {
1170
- activity_ids: string[];
1224
+ ids: string[];
1171
1225
  hard_delete?: boolean;
1172
1226
  }
1173
1227
  export interface DeleteActivitiesResponse {
1174
1228
  duration: string;
1175
- deleted_activity_ids: string[];
1229
+ deleted_ids: string[];
1176
1230
  }
1177
1231
  export interface DeleteActivityReactionResponse {
1178
1232
  duration: string;
@@ -1395,6 +1449,7 @@ export interface FeedCreatedEvent {
1395
1449
  feed: FeedResponse;
1396
1450
  user: UserResponseCommonFields;
1397
1451
  type: string;
1452
+ feed_visibility?: string;
1398
1453
  received_at?: Date;
1399
1454
  }
1400
1455
  export interface FeedDeletedEvent {
@@ -1402,20 +1457,25 @@ export interface FeedDeletedEvent {
1402
1457
  fid: string;
1403
1458
  custom: Record<string, any>;
1404
1459
  type: string;
1460
+ feed_visibility?: string;
1405
1461
  received_at?: Date;
1406
1462
  user?: UserResponseCommonFields;
1407
1463
  }
1408
1464
  export interface FeedGroup {
1465
+ aggregation_version: number;
1409
1466
  app_pk: number;
1410
1467
  created_at: Date;
1411
- default_view_id: string;
1412
1468
  default_visibility: string;
1413
1469
  id: string;
1414
1470
  updated_at: Date;
1471
+ activity_processors: ActivityProcessorConfig[];
1472
+ activity_selectors: ActivitySelectorConfig[];
1415
1473
  custom: Record<string, any>;
1416
1474
  deleted_at?: Date;
1417
1475
  last_feed_get_at?: Date;
1476
+ aggregation?: AggregationConfig;
1418
1477
  notification?: NotificationConfig;
1478
+ ranking?: RankingConfig;
1419
1479
  stories?: StoriesConfig;
1420
1480
  }
1421
1481
  export interface FeedGroupChangedEvent {
@@ -1423,6 +1483,7 @@ export interface FeedGroupChangedEvent {
1423
1483
  fid: string;
1424
1484
  custom: Record<string, any>;
1425
1485
  type: string;
1486
+ feed_visibility?: string;
1426
1487
  received_at?: Date;
1427
1488
  feed_group?: FeedGroup;
1428
1489
  user?: UserResponseCommonFields;
@@ -1433,6 +1494,7 @@ export interface FeedGroupDeletedEvent {
1433
1494
  group_id: string;
1434
1495
  custom: Record<string, any>;
1435
1496
  type: string;
1497
+ feed_visibility?: string;
1436
1498
  received_at?: Date;
1437
1499
  }
1438
1500
  export interface FeedInput {
@@ -1449,6 +1511,7 @@ export interface FeedMemberAddedEvent {
1449
1511
  custom: Record<string, any>;
1450
1512
  member: FeedMemberResponse;
1451
1513
  type: string;
1514
+ feed_visibility?: string;
1452
1515
  received_at?: Date;
1453
1516
  user?: UserResponseCommonFields;
1454
1517
  }
@@ -1458,12 +1521,14 @@ export interface FeedMemberRemovedEvent {
1458
1521
  member_id: string;
1459
1522
  custom: Record<string, any>;
1460
1523
  type: string;
1524
+ feed_visibility?: string;
1461
1525
  received_at?: Date;
1462
1526
  user?: UserResponseCommonFields;
1463
1527
  }
1464
1528
  export interface FeedMemberRequest {
1465
1529
  user_id: string;
1466
1530
  invite?: boolean;
1531
+ membership_level?: string;
1467
1532
  role?: string;
1468
1533
  custom?: Record<string, any>;
1469
1534
  }
@@ -1483,6 +1548,7 @@ export interface FeedMemberUpdatedEvent {
1483
1548
  custom: Record<string, any>;
1484
1549
  member: FeedMemberResponse;
1485
1550
  type: string;
1551
+ feed_visibility?: string;
1486
1552
  received_at?: Date;
1487
1553
  user?: UserResponseCommonFields;
1488
1554
  }
@@ -1533,7 +1599,7 @@ export interface FeedRequest {
1533
1599
  export interface FeedResponse {
1534
1600
  created_at: Date;
1535
1601
  description: string;
1536
- fid: string;
1602
+ feed: string;
1537
1603
  follower_count: number;
1538
1604
  following_count: number;
1539
1605
  group_id: string;
@@ -1546,6 +1612,7 @@ export interface FeedResponse {
1546
1612
  deleted_at?: Date;
1547
1613
  visibility?: string;
1548
1614
  filter_tags?: string[];
1615
+ own_follows?: FollowResponse[];
1549
1616
  custom?: Record<string, any>;
1550
1617
  }
1551
1618
  export interface FeedUpdatedEvent {
@@ -1554,6 +1621,7 @@ export interface FeedUpdatedEvent {
1554
1621
  custom: Record<string, any>;
1555
1622
  feed: FeedResponse;
1556
1623
  type: string;
1624
+ feed_visibility?: string;
1557
1625
  received_at?: Date;
1558
1626
  user?: UserResponseCommonFields;
1559
1627
  }
@@ -1636,6 +1704,7 @@ export interface FollowCreatedEvent {
1636
1704
  custom: Record<string, any>;
1637
1705
  follow: FollowResponse;
1638
1706
  type: string;
1707
+ feed_visibility?: string;
1639
1708
  received_at?: Date;
1640
1709
  }
1641
1710
  export interface FollowDeletedEvent {
@@ -1644,6 +1713,7 @@ export interface FollowDeletedEvent {
1644
1713
  custom: Record<string, any>;
1645
1714
  follow: FollowResponse;
1646
1715
  type: string;
1716
+ feed_visibility?: string;
1647
1717
  received_at?: Date;
1648
1718
  }
1649
1719
  export interface FollowRequest {
@@ -1671,6 +1741,7 @@ export interface FollowUpdatedEvent {
1671
1741
  custom: Record<string, any>;
1672
1742
  follow: FollowResponse;
1673
1743
  type: string;
1744
+ feed_visibility?: string;
1674
1745
  received_at?: Date;
1675
1746
  }
1676
1747
  export interface FrameRecordSettings {
@@ -1900,6 +1971,46 @@ export interface Images {
1900
1971
  fixed_width_still: ImageData;
1901
1972
  original: ImageData;
1902
1973
  }
1974
+ export interface IngressAudioEncodingOptions {
1975
+ bitrate: number;
1976
+ channels: '1' | '2';
1977
+ enable_dtx: boolean;
1978
+ }
1979
+ export interface IngressAudioEncodingResponse {
1980
+ bitrate: number;
1981
+ channels: number;
1982
+ enable_dtx: boolean;
1983
+ }
1984
+ export interface IngressSettings {
1985
+ enabled: boolean;
1986
+ audio_encoding_options?: IngressAudioEncodingOptions;
1987
+ video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
1988
+ }
1989
+ export interface IngressSettingsResponse {
1990
+ enabled: boolean;
1991
+ audio_encoding_options?: IngressAudioEncodingResponse;
1992
+ video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
1993
+ }
1994
+ export interface IngressVideoEncodingOptions {
1995
+ layers: IngressVideoLayer[];
1996
+ }
1997
+ export interface IngressVideoEncodingResponse {
1998
+ layers: IngressVideoLayerResponse[];
1999
+ }
2000
+ export interface IngressVideoLayer {
2001
+ bitrate: number;
2002
+ codec: 'h264' | 'vp8';
2003
+ frame_rate: number;
2004
+ max_dimension: number;
2005
+ min_dimension: number;
2006
+ }
2007
+ export interface IngressVideoLayerResponse {
2008
+ bitrate: number;
2009
+ codec: string;
2010
+ frame_rate_limit: number;
2011
+ max_dimension: number;
2012
+ min_dimension: number;
2013
+ }
1903
2014
  export interface LabelThresholds {
1904
2015
  block?: number;
1905
2016
  flag?: number;
@@ -1935,6 +2046,7 @@ export interface MarkActivityRequest {
1935
2046
  mark_all_read?: boolean;
1936
2047
  mark_all_seen?: boolean;
1937
2048
  mark_read?: string[];
2049
+ mark_seen?: string[];
1938
2050
  mark_watched?: string[];
1939
2051
  }
1940
2052
  export interface MarkReviewedRequest {
@@ -2059,6 +2171,23 @@ export interface ModerationCustomActionEvent {
2059
2171
  message?: Message;
2060
2172
  user?: User;
2061
2173
  }
2174
+ export interface ModerationFlagResponse {
2175
+ created_at: string;
2176
+ entity_id: string;
2177
+ entity_type: string;
2178
+ type: string;
2179
+ updated_at: string;
2180
+ user_id: string;
2181
+ entity_creator_id?: string;
2182
+ reason?: string;
2183
+ review_queue_item_id?: string;
2184
+ labels?: string[];
2185
+ result?: Array<Record<string, any>>;
2186
+ custom?: Record<string, any>;
2187
+ moderation_payload?: ModerationPayload;
2188
+ review_queue_item?: ReviewQueueItemResponse;
2189
+ user?: UserResponse;
2190
+ }
2062
2191
  export interface ModerationFlaggedEvent {
2063
2192
  created_at: Date;
2064
2193
  type: string;
@@ -2110,6 +2239,7 @@ export interface NotificationFeedUpdatedEvent {
2110
2239
  fid: string;
2111
2240
  custom: Record<string, any>;
2112
2241
  type: string;
2242
+ feed_visibility?: string;
2113
2243
  received_at?: Date;
2114
2244
  aggregated_activities?: AggregatedActivityResponse[];
2115
2245
  notification_status?: NotificationStatusResponse;
@@ -2126,8 +2256,10 @@ export interface NotificationSettings {
2126
2256
  export interface NotificationStatusResponse {
2127
2257
  unread: number;
2128
2258
  unseen: number;
2259
+ last_read_at?: Date;
2129
2260
  last_seen_at?: Date;
2130
2261
  read_activities?: string[];
2262
+ seen_activities?: string[];
2131
2263
  }
2132
2264
  export interface NullTime {
2133
2265
  }
@@ -2214,7 +2346,7 @@ export interface PinActivityRequest {
2214
2346
  export interface PinActivityResponse {
2215
2347
  created_at: Date;
2216
2348
  duration: string;
2217
- fid: string;
2349
+ feed: string;
2218
2350
  user_id: string;
2219
2351
  activity: ActivityResponse;
2220
2352
  }
@@ -2247,6 +2379,7 @@ export interface PollClosedFeedEvent {
2247
2379
  custom: Record<string, any>;
2248
2380
  poll: PollResponseData;
2249
2381
  type: string;
2382
+ feed_visibility?: string;
2250
2383
  received_at?: Date;
2251
2384
  }
2252
2385
  export interface PollDeletedFeedEvent {
@@ -2255,6 +2388,7 @@ export interface PollDeletedFeedEvent {
2255
2388
  custom: Record<string, any>;
2256
2389
  poll: PollResponseData;
2257
2390
  type: string;
2391
+ feed_visibility?: string;
2258
2392
  received_at?: Date;
2259
2393
  }
2260
2394
  export interface PollOption {
@@ -2313,6 +2447,7 @@ export interface PollUpdatedFeedEvent {
2313
2447
  custom: Record<string, any>;
2314
2448
  poll: PollResponseData;
2315
2449
  type: string;
2450
+ feed_visibility?: string;
2316
2451
  received_at?: Date;
2317
2452
  }
2318
2453
  export interface PollVote {
@@ -2333,6 +2468,7 @@ export interface PollVoteCastedFeedEvent {
2333
2468
  poll: PollResponseData;
2334
2469
  poll_vote: PollVoteResponseData;
2335
2470
  type: string;
2471
+ feed_visibility?: string;
2336
2472
  received_at?: Date;
2337
2473
  }
2338
2474
  export interface PollVoteChangedFeedEvent {
@@ -2342,6 +2478,7 @@ export interface PollVoteChangedFeedEvent {
2342
2478
  poll: PollResponseData;
2343
2479
  poll_vote: PollVoteResponseData;
2344
2480
  type: string;
2481
+ feed_visibility?: string;
2345
2482
  received_at?: Date;
2346
2483
  }
2347
2484
  export interface PollVoteRemovedFeedEvent {
@@ -2351,6 +2488,7 @@ export interface PollVoteRemovedFeedEvent {
2351
2488
  poll: PollResponseData;
2352
2489
  poll_vote: PollVoteResponseData;
2353
2490
  type: string;
2491
+ feed_visibility?: string;
2354
2492
  received_at?: Date;
2355
2493
  }
2356
2494
  export interface PollVoteResponse {
@@ -2600,6 +2738,12 @@ export interface RTMPSettingsResponse {
2600
2738
  enabled: boolean;
2601
2739
  quality: string;
2602
2740
  }
2741
+ export interface RankingConfig {
2742
+ score?: string;
2743
+ type?: string;
2744
+ defaults?: Record<string, any>;
2745
+ functions?: Record<string, DecayFunctionConfig>;
2746
+ }
2603
2747
  export interface Reaction {
2604
2748
  created_at: Date;
2605
2749
  message_id: string;
@@ -2658,8 +2802,8 @@ export interface RejectFeedMemberInviteResponse {
2658
2802
  member: FeedMemberResponse;
2659
2803
  }
2660
2804
  export interface RejectFollowRequest {
2661
- source_fid: string;
2662
- target_fid: string;
2805
+ source: string;
2806
+ target: string;
2663
2807
  }
2664
2808
  export interface RejectFollowResponse {
2665
2809
  duration: string;
@@ -2741,7 +2885,7 @@ export interface ReviewQueueItemResponse {
2741
2885
  updated_at: Date;
2742
2886
  actions: ActionLogResponse[];
2743
2887
  bans: Ban[];
2744
- flags: FlagResponse[];
2888
+ flags: ModerationFlagResponse[];
2745
2889
  languages: string[];
2746
2890
  completed_at?: Date;
2747
2891
  config_key?: string;
@@ -2884,17 +3028,14 @@ export interface SharedLocationsResponse {
2884
3028
  duration: string;
2885
3029
  active_live_locations: SharedLocationResponseData[];
2886
3030
  }
2887
- export interface SingleFollowRequest {
2888
- source: string;
2889
- target: string;
2890
- create_notification_activity?: boolean;
2891
- push_preference?: 'all' | 'none';
2892
- custom?: Record<string, any>;
2893
- }
2894
3031
  export interface SingleFollowResponse {
2895
3032
  duration: string;
2896
3033
  follow: FollowResponse;
2897
3034
  }
3035
+ export interface SortParam {
3036
+ direction: number;
3037
+ field: string;
3038
+ }
2898
3039
  export interface SortParamRequest {
2899
3040
  direction?: number;
2900
3041
  field?: string;
@@ -2904,7 +3045,7 @@ export interface StoriesConfig {
2904
3045
  skip_watched?: boolean;
2905
3046
  }
2906
3047
  export interface SubmitActionRequest {
2907
- action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
3048
+ action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
2908
3049
  item_id: string;
2909
3050
  ban?: BanActionRequest;
2910
3051
  custom?: CustomActionRequest;
@@ -3014,7 +3155,7 @@ export interface UnfollowResponse {
3014
3155
  }
3015
3156
  export interface UnpinActivityResponse {
3016
3157
  duration: string;
3017
- fid: string;
3158
+ feed: string;
3018
3159
  user_id: string;
3019
3160
  activity: ActivityResponse;
3020
3161
  }
@@ -3089,7 +3230,6 @@ export interface UpdateFeedMembersResponse {
3089
3230
  updated: FeedMemberResponse[];
3090
3231
  }
3091
3232
  export interface UpdateFeedRequest {
3092
- created_by_id?: string;
3093
3233
  custom?: Record<string, any>;
3094
3234
  }
3095
3235
  export interface UpdateFeedResponse {