@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
@@ -83,9 +83,9 @@ export interface AcceptFeedMemberInviteResponse {
83
83
  }
84
84
 
85
85
  export interface AcceptFollowRequest {
86
- source_fid: string;
86
+ source: string;
87
87
 
88
- target_fid: string;
88
+ target: string;
89
89
 
90
90
  follower_role?: string;
91
91
  }
@@ -181,6 +181,8 @@ export interface ActivityAddedEvent {
181
181
 
182
182
  type: string;
183
183
 
184
+ feed_visibility?: string;
185
+
184
186
  received_at?: Date;
185
187
 
186
188
  user?: UserResponseCommonFields;
@@ -197,11 +199,31 @@ export interface ActivityDeletedEvent {
197
199
 
198
200
  type: string;
199
201
 
202
+ feed_visibility?: string;
203
+
200
204
  received_at?: Date;
201
205
 
202
206
  user?: UserResponseCommonFields;
203
207
  }
204
208
 
209
+ export interface ActivityFeedbackRequest {
210
+ hide?: boolean;
211
+
212
+ mute_user?: boolean;
213
+
214
+ reason?: string;
215
+
216
+ report?: boolean;
217
+
218
+ show_less?: boolean;
219
+ }
220
+
221
+ export interface ActivityFeedbackResponse {
222
+ activity_id: string;
223
+
224
+ duration: string;
225
+ }
226
+
205
227
  export interface ActivityLocation {
206
228
  lat: number;
207
229
 
@@ -217,6 +239,8 @@ export interface ActivityMarkEvent {
217
239
 
218
240
  type: string;
219
241
 
242
+ feed_visibility?: string;
243
+
220
244
  mark_all_read?: boolean;
221
245
 
222
246
  mark_all_seen?: boolean;
@@ -225,6 +249,8 @@ export interface ActivityMarkEvent {
225
249
 
226
250
  mark_read?: string[];
227
251
 
252
+ mark_seen?: string[];
253
+
228
254
  mark_watched?: string[];
229
255
 
230
256
  user?: UserResponseCommonFields;
@@ -253,11 +279,21 @@ export interface ActivityPinnedEvent {
253
279
 
254
280
  type: string;
255
281
 
282
+ feed_visibility?: string;
283
+
256
284
  received_at?: Date;
257
285
 
258
286
  user?: UserResponseCommonFields;
259
287
  }
260
288
 
289
+ export interface ActivityProcessorConfig {
290
+ type: string;
291
+
292
+ openai_key?: string;
293
+
294
+ config?: Record<string, any>;
295
+ }
296
+
261
297
  export interface ActivityReactionAddedEvent {
262
298
  created_at: Date;
263
299
 
@@ -271,6 +307,8 @@ export interface ActivityReactionAddedEvent {
271
307
 
272
308
  type: string;
273
309
 
310
+ feed_visibility?: string;
311
+
274
312
  received_at?: Date;
275
313
 
276
314
  user?: UserResponseCommonFields;
@@ -289,6 +327,8 @@ export interface ActivityReactionDeletedEvent {
289
327
 
290
328
  type: string;
291
329
 
330
+ feed_visibility?: string;
331
+
292
332
  received_at?: Date;
293
333
 
294
334
  user?: UserResponseCommonFields;
@@ -307,6 +347,8 @@ export interface ActivityReactionUpdatedEvent {
307
347
 
308
348
  type: string;
309
349
 
350
+ feed_visibility?: string;
351
+
310
352
  received_at?: Date;
311
353
 
312
354
  user?: UserResponseCommonFields;
@@ -323,6 +365,8 @@ export interface ActivityRemovedFromFeedEvent {
323
365
 
324
366
  type: string;
325
367
 
368
+ feed_visibility?: string;
369
+
326
370
  received_at?: Date;
327
371
 
328
372
  user?: UserResponseCommonFields;
@@ -331,7 +375,7 @@ export interface ActivityRemovedFromFeedEvent {
331
375
  export interface ActivityRequest {
332
376
  type: string;
333
377
 
334
- fids: string[];
378
+ feeds: string[];
335
379
 
336
380
  expires_at?: string;
337
381
 
@@ -417,6 +461,8 @@ export interface ActivityResponse {
417
461
 
418
462
  expires_at?: Date;
419
463
 
464
+ hidden?: boolean;
465
+
420
466
  text?: string;
421
467
 
422
468
  visibility_tag?: string;
@@ -427,13 +473,25 @@ export interface ActivityResponse {
427
473
 
428
474
  moderation?: ModerationV2Response;
429
475
 
430
- object?: Record<string, any>;
476
+ notification_context?: Record<string, any>;
431
477
 
432
478
  parent?: ActivityResponse;
433
479
 
434
480
  poll?: PollResponseData;
435
481
  }
436
482
 
483
+ export interface ActivitySelectorConfig {
484
+ cutoff_time: Date;
485
+
486
+ min_popularity?: number;
487
+
488
+ type?: string;
489
+
490
+ sort?: SortParam[];
491
+
492
+ filter?: Record<string, any>;
493
+ }
494
+
437
495
  export interface ActivityUnpinnedEvent {
438
496
  created_at: Date;
439
497
 
@@ -445,6 +503,8 @@ export interface ActivityUnpinnedEvent {
445
503
 
446
504
  type: string;
447
505
 
506
+ feed_visibility?: string;
507
+
448
508
  received_at?: Date;
449
509
 
450
510
  user?: UserResponseCommonFields;
@@ -461,6 +521,8 @@ export interface ActivityUpdatedEvent {
461
521
 
462
522
  type: string;
463
523
 
524
+ feed_visibility?: string;
525
+
464
526
  received_at?: Date;
465
527
 
466
528
  user?: UserResponseCommonFields;
@@ -469,7 +531,7 @@ export interface ActivityUpdatedEvent {
469
531
  export interface AddActivityRequest {
470
532
  type: string;
471
533
 
472
- fids: string[];
534
+ feeds: string[];
473
535
 
474
536
  expires_at?: string;
475
537
 
@@ -608,6 +670,10 @@ export interface AggregatedActivityResponse {
608
670
  activities: ActivityResponse[];
609
671
  }
610
672
 
673
+ export interface AggregationConfig {
674
+ format?: string;
675
+ }
676
+
611
677
  export interface AppEventResponse {
612
678
  auto_translation_enabled: boolean;
613
679
 
@@ -1348,6 +1414,8 @@ export interface CallSettings {
1348
1414
 
1349
1415
  geofencing?: GeofenceSettings;
1350
1416
 
1417
+ ingress?: IngressSettings;
1418
+
1351
1419
  limits?: LimitsSettings;
1352
1420
 
1353
1421
  recording?: RecordSettings;
@@ -1391,6 +1459,8 @@ export interface CallSettingsResponse {
1391
1459
  transcription: TranscriptionSettingsResponse;
1392
1460
 
1393
1461
  video: VideoSettingsResponse;
1462
+
1463
+ ingress?: IngressSettingsResponse;
1394
1464
  }
1395
1465
 
1396
1466
  export interface CallType {
@@ -1770,6 +1840,8 @@ export interface CommentAddedEvent {
1770
1840
 
1771
1841
  type: string;
1772
1842
 
1843
+ feed_visibility?: string;
1844
+
1773
1845
  received_at?: Date;
1774
1846
 
1775
1847
  user?: UserResponseCommonFields;
@@ -1786,6 +1858,8 @@ export interface CommentDeletedEvent {
1786
1858
 
1787
1859
  type: string;
1788
1860
 
1861
+ feed_visibility?: string;
1862
+
1789
1863
  received_at?: Date;
1790
1864
 
1791
1865
  user?: UserResponseCommonFields;
@@ -1804,6 +1878,8 @@ export interface CommentReactionAddedEvent {
1804
1878
 
1805
1879
  type: string;
1806
1880
 
1881
+ feed_visibility?: string;
1882
+
1807
1883
  received_at?: Date;
1808
1884
 
1809
1885
  user?: UserResponseCommonFields;
@@ -1822,6 +1898,8 @@ export interface CommentReactionDeletedEvent {
1822
1898
 
1823
1899
  type: string;
1824
1900
 
1901
+ feed_visibility?: string;
1902
+
1825
1903
  received_at?: Date;
1826
1904
  }
1827
1905
 
@@ -1838,6 +1916,8 @@ export interface CommentReactionUpdatedEvent {
1838
1916
 
1839
1917
  type: string;
1840
1918
 
1919
+ feed_visibility?: string;
1920
+
1841
1921
  received_at?: Date;
1842
1922
 
1843
1923
  user?: UserResponseCommonFields;
@@ -1904,6 +1984,8 @@ export interface CommentUpdatedEvent {
1904
1984
 
1905
1985
  type: string;
1906
1986
 
1987
+ feed_visibility?: string;
1988
+
1907
1989
  received_at?: Date;
1908
1990
 
1909
1991
  user?: UserResponseCommonFields;
@@ -2085,8 +2167,22 @@ export interface Data {
2085
2167
  id: string;
2086
2168
  }
2087
2169
 
2170
+ export interface DecayFunctionConfig {
2171
+ base?: string;
2172
+
2173
+ decay?: string;
2174
+
2175
+ direction?: string;
2176
+
2177
+ offset?: string;
2178
+
2179
+ origin?: string;
2180
+
2181
+ scale?: string;
2182
+ }
2183
+
2088
2184
  export interface DeleteActivitiesRequest {
2089
- activity_ids: string[];
2185
+ ids: string[];
2090
2186
 
2091
2187
  hard_delete?: boolean;
2092
2188
  }
@@ -2094,7 +2190,7 @@ export interface DeleteActivitiesRequest {
2094
2190
  export interface DeleteActivitiesResponse {
2095
2191
  duration: string;
2096
2192
 
2097
- deleted_activity_ids: string[];
2193
+ deleted_ids: string[];
2098
2194
  }
2099
2195
 
2100
2196
  export interface DeleteActivityReactionResponse {
@@ -2482,6 +2578,8 @@ export interface FeedCreatedEvent {
2482
2578
 
2483
2579
  type: string;
2484
2580
 
2581
+ feed_visibility?: string;
2582
+
2485
2583
  received_at?: Date;
2486
2584
  }
2487
2585
 
@@ -2494,32 +2592,42 @@ export interface FeedDeletedEvent {
2494
2592
 
2495
2593
  type: string;
2496
2594
 
2595
+ feed_visibility?: string;
2596
+
2497
2597
  received_at?: Date;
2498
2598
 
2499
2599
  user?: UserResponseCommonFields;
2500
2600
  }
2501
2601
 
2502
2602
  export interface FeedGroup {
2603
+ aggregation_version: number;
2604
+
2503
2605
  app_pk: number;
2504
2606
 
2505
2607
  created_at: Date;
2506
2608
 
2507
- default_view_id: string;
2508
-
2509
2609
  default_visibility: string;
2510
2610
 
2511
2611
  id: string;
2512
2612
 
2513
2613
  updated_at: Date;
2514
2614
 
2615
+ activity_processors: ActivityProcessorConfig[];
2616
+
2617
+ activity_selectors: ActivitySelectorConfig[];
2618
+
2515
2619
  custom: Record<string, any>;
2516
2620
 
2517
2621
  deleted_at?: Date;
2518
2622
 
2519
2623
  last_feed_get_at?: Date;
2520
2624
 
2625
+ aggregation?: AggregationConfig;
2626
+
2521
2627
  notification?: NotificationConfig;
2522
2628
 
2629
+ ranking?: RankingConfig;
2630
+
2523
2631
  stories?: StoriesConfig;
2524
2632
  }
2525
2633
 
@@ -2532,6 +2640,8 @@ export interface FeedGroupChangedEvent {
2532
2640
 
2533
2641
  type: string;
2534
2642
 
2643
+ feed_visibility?: string;
2644
+
2535
2645
  received_at?: Date;
2536
2646
 
2537
2647
  feed_group?: FeedGroup;
@@ -2550,6 +2660,8 @@ export interface FeedGroupDeletedEvent {
2550
2660
 
2551
2661
  type: string;
2552
2662
 
2663
+ feed_visibility?: string;
2664
+
2553
2665
  received_at?: Date;
2554
2666
  }
2555
2667
 
@@ -2578,6 +2690,8 @@ export interface FeedMemberAddedEvent {
2578
2690
 
2579
2691
  type: string;
2580
2692
 
2693
+ feed_visibility?: string;
2694
+
2581
2695
  received_at?: Date;
2582
2696
 
2583
2697
  user?: UserResponseCommonFields;
@@ -2594,6 +2708,8 @@ export interface FeedMemberRemovedEvent {
2594
2708
 
2595
2709
  type: string;
2596
2710
 
2711
+ feed_visibility?: string;
2712
+
2597
2713
  received_at?: Date;
2598
2714
 
2599
2715
  user?: UserResponseCommonFields;
@@ -2604,6 +2720,8 @@ export interface FeedMemberRequest {
2604
2720
 
2605
2721
  invite?: boolean;
2606
2722
 
2723
+ membership_level?: string;
2724
+
2607
2725
  role?: string;
2608
2726
 
2609
2727
  custom?: Record<string, any>;
@@ -2638,6 +2756,8 @@ export interface FeedMemberUpdatedEvent {
2638
2756
 
2639
2757
  type: string;
2640
2758
 
2759
+ feed_visibility?: string;
2760
+
2641
2761
  received_at?: Date;
2642
2762
 
2643
2763
  user?: UserResponseCommonFields;
@@ -2704,7 +2824,7 @@ export interface FeedResponse {
2704
2824
 
2705
2825
  description: string;
2706
2826
 
2707
- fid: string;
2827
+ feed: string;
2708
2828
 
2709
2829
  follower_count: number;
2710
2830
 
@@ -2730,6 +2850,8 @@ export interface FeedResponse {
2730
2850
 
2731
2851
  filter_tags?: string[];
2732
2852
 
2853
+ own_follows?: FollowResponse[];
2854
+
2733
2855
  custom?: Record<string, any>;
2734
2856
  }
2735
2857
 
@@ -2744,6 +2866,8 @@ export interface FeedUpdatedEvent {
2744
2866
 
2745
2867
  type: string;
2746
2868
 
2869
+ feed_visibility?: string;
2870
+
2747
2871
  received_at?: Date;
2748
2872
 
2749
2873
  user?: UserResponseCommonFields;
@@ -2882,6 +3006,8 @@ export interface FollowCreatedEvent {
2882
3006
 
2883
3007
  type: string;
2884
3008
 
3009
+ feed_visibility?: string;
3010
+
2885
3011
  received_at?: Date;
2886
3012
  }
2887
3013
 
@@ -2896,6 +3022,8 @@ export interface FollowDeletedEvent {
2896
3022
 
2897
3023
  type: string;
2898
3024
 
3025
+ feed_visibility?: string;
3026
+
2899
3027
  received_at?: Date;
2900
3028
  }
2901
3029
 
@@ -2944,6 +3072,8 @@ export interface FollowUpdatedEvent {
2944
3072
 
2945
3073
  type: string;
2946
3074
 
3075
+ feed_visibility?: string;
3076
+
2947
3077
  received_at?: Date;
2948
3078
  }
2949
3079
 
@@ -3339,6 +3469,70 @@ export interface Images {
3339
3469
  original: ImageData;
3340
3470
  }
3341
3471
 
3472
+ export interface IngressAudioEncodingOptions {
3473
+ bitrate: number;
3474
+
3475
+ channels: '1' | '2';
3476
+
3477
+ enable_dtx: boolean;
3478
+ }
3479
+
3480
+ export interface IngressAudioEncodingResponse {
3481
+ bitrate: number;
3482
+
3483
+ channels: number;
3484
+
3485
+ enable_dtx: boolean;
3486
+ }
3487
+
3488
+ export interface IngressSettings {
3489
+ enabled: boolean;
3490
+
3491
+ audio_encoding_options?: IngressAudioEncodingOptions;
3492
+
3493
+ video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
3494
+ }
3495
+
3496
+ export interface IngressSettingsResponse {
3497
+ enabled: boolean;
3498
+
3499
+ audio_encoding_options?: IngressAudioEncodingResponse;
3500
+
3501
+ video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
3502
+ }
3503
+
3504
+ export interface IngressVideoEncodingOptions {
3505
+ layers: IngressVideoLayer[];
3506
+ }
3507
+
3508
+ export interface IngressVideoEncodingResponse {
3509
+ layers: IngressVideoLayerResponse[];
3510
+ }
3511
+
3512
+ export interface IngressVideoLayer {
3513
+ bitrate: number;
3514
+
3515
+ codec: 'h264' | 'vp8';
3516
+
3517
+ frame_rate: number;
3518
+
3519
+ max_dimension: number;
3520
+
3521
+ min_dimension: number;
3522
+ }
3523
+
3524
+ export interface IngressVideoLayerResponse {
3525
+ bitrate: number;
3526
+
3527
+ codec: string;
3528
+
3529
+ frame_rate_limit: number;
3530
+
3531
+ max_dimension: number;
3532
+
3533
+ min_dimension: number;
3534
+ }
3535
+
3342
3536
  export interface LabelThresholds {
3343
3537
  block?: number;
3344
3538
 
@@ -3396,6 +3590,8 @@ export interface MarkActivityRequest {
3396
3590
 
3397
3591
  mark_read?: string[];
3398
3592
 
3593
+ mark_seen?: string[];
3594
+
3399
3595
  mark_watched?: string[];
3400
3596
  }
3401
3597
 
@@ -3629,6 +3825,38 @@ export interface ModerationCustomActionEvent {
3629
3825
  user?: User;
3630
3826
  }
3631
3827
 
3828
+ export interface ModerationFlagResponse {
3829
+ created_at: string;
3830
+
3831
+ entity_id: string;
3832
+
3833
+ entity_type: string;
3834
+
3835
+ type: string;
3836
+
3837
+ updated_at: string;
3838
+
3839
+ user_id: string;
3840
+
3841
+ entity_creator_id?: string;
3842
+
3843
+ reason?: string;
3844
+
3845
+ review_queue_item_id?: string;
3846
+
3847
+ labels?: string[];
3848
+
3849
+ result?: Array<Record<string, any>>;
3850
+
3851
+ custom?: Record<string, any>;
3852
+
3853
+ moderation_payload?: ModerationPayload;
3854
+
3855
+ review_queue_item?: ReviewQueueItemResponse;
3856
+
3857
+ user?: UserResponse;
3858
+ }
3859
+
3632
3860
  export interface ModerationFlaggedEvent {
3633
3861
  created_at: Date;
3634
3862
 
@@ -3714,6 +3942,8 @@ export interface NotificationFeedUpdatedEvent {
3714
3942
 
3715
3943
  type: string;
3716
3944
 
3945
+ feed_visibility?: string;
3946
+
3717
3947
  received_at?: Date;
3718
3948
 
3719
3949
  aggregated_activities?: AggregatedActivityResponse[];
@@ -3742,9 +3972,13 @@ export interface NotificationStatusResponse {
3742
3972
 
3743
3973
  unseen: number;
3744
3974
 
3975
+ last_read_at?: Date;
3976
+
3745
3977
  last_seen_at?: Date;
3746
3978
 
3747
3979
  read_activities?: string[];
3980
+
3981
+ seen_activities?: string[];
3748
3982
  }
3749
3983
 
3750
3984
  export interface NullTime {}
@@ -3906,7 +4140,7 @@ export interface PinActivityResponse {
3906
4140
 
3907
4141
  duration: string;
3908
4142
 
3909
- fid: string;
4143
+ feed: string;
3910
4144
 
3911
4145
  user_id: string;
3912
4146
 
@@ -3968,6 +4202,8 @@ export interface PollClosedFeedEvent {
3968
4202
 
3969
4203
  type: string;
3970
4204
 
4205
+ feed_visibility?: string;
4206
+
3971
4207
  received_at?: Date;
3972
4208
  }
3973
4209
 
@@ -3982,6 +4218,8 @@ export interface PollDeletedFeedEvent {
3982
4218
 
3983
4219
  type: string;
3984
4220
 
4221
+ feed_visibility?: string;
4222
+
3985
4223
  received_at?: Date;
3986
4224
  }
3987
4225
 
@@ -4082,6 +4320,8 @@ export interface PollUpdatedFeedEvent {
4082
4320
 
4083
4321
  type: string;
4084
4322
 
4323
+ feed_visibility?: string;
4324
+
4085
4325
  received_at?: Date;
4086
4326
  }
4087
4327
 
@@ -4118,6 +4358,8 @@ export interface PollVoteCastedFeedEvent {
4118
4358
 
4119
4359
  type: string;
4120
4360
 
4361
+ feed_visibility?: string;
4362
+
4121
4363
  received_at?: Date;
4122
4364
  }
4123
4365
 
@@ -4134,6 +4376,8 @@ export interface PollVoteChangedFeedEvent {
4134
4376
 
4135
4377
  type: string;
4136
4378
 
4379
+ feed_visibility?: string;
4380
+
4137
4381
  received_at?: Date;
4138
4382
  }
4139
4383
 
@@ -4150,6 +4394,8 @@ export interface PollVoteRemovedFeedEvent {
4150
4394
 
4151
4395
  type: string;
4152
4396
 
4397
+ feed_visibility?: string;
4398
+
4153
4399
  received_at?: Date;
4154
4400
  }
4155
4401
 
@@ -4569,6 +4815,16 @@ export interface RTMPSettingsResponse {
4569
4815
  quality: string;
4570
4816
  }
4571
4817
 
4818
+ export interface RankingConfig {
4819
+ score?: string;
4820
+
4821
+ type?: string;
4822
+
4823
+ defaults?: Record<string, any>;
4824
+
4825
+ functions?: Record<string, DecayFunctionConfig>;
4826
+ }
4827
+
4572
4828
  export interface Reaction {
4573
4829
  created_at: Date;
4574
4830
 
@@ -4664,9 +4920,9 @@ export interface RejectFeedMemberInviteResponse {
4664
4920
  }
4665
4921
 
4666
4922
  export interface RejectFollowRequest {
4667
- source_fid: string;
4923
+ source: string;
4668
4924
 
4669
- target_fid: string;
4925
+ target: string;
4670
4926
  }
4671
4927
 
4672
4928
  export interface RejectFollowResponse {
@@ -4816,7 +5072,7 @@ export interface ReviewQueueItemResponse {
4816
5072
 
4817
5073
  bans: Ban[];
4818
5074
 
4819
- flags: FlagResponse[];
5075
+ flags: ModerationFlagResponse[];
4820
5076
 
4821
5077
  languages: string[];
4822
5078
 
@@ -5065,24 +5321,18 @@ export interface SharedLocationsResponse {
5065
5321
  active_live_locations: SharedLocationResponseData[];
5066
5322
  }
5067
5323
 
5068
- export interface SingleFollowRequest {
5069
- source: string;
5070
-
5071
- target: string;
5072
-
5073
- create_notification_activity?: boolean;
5074
-
5075
- push_preference?: 'all' | 'none';
5076
-
5077
- custom?: Record<string, any>;
5078
- }
5079
-
5080
5324
  export interface SingleFollowResponse {
5081
5325
  duration: string;
5082
5326
 
5083
5327
  follow: FollowResponse;
5084
5328
  }
5085
5329
 
5330
+ export interface SortParam {
5331
+ direction: number;
5332
+
5333
+ field: string;
5334
+ }
5335
+
5086
5336
  export interface SortParamRequest {
5087
5337
  direction?: number;
5088
5338
 
@@ -5108,6 +5358,7 @@ export interface SubmitActionRequest {
5108
5358
  | 'delete_user'
5109
5359
  | 'unblock'
5110
5360
  | 'shadow_block'
5361
+ | 'unmask'
5111
5362
  | 'kick_user'
5112
5363
  | 'end_call';
5113
5364
 
@@ -5363,7 +5614,7 @@ export interface UnfollowResponse {
5363
5614
  export interface UnpinActivityResponse {
5364
5615
  duration: string;
5365
5616
 
5366
- fid: string;
5617
+ feed: string;
5367
5618
 
5368
5619
  user_id: string;
5369
5620
 
@@ -5483,8 +5734,6 @@ export interface UpdateFeedMembersResponse {
5483
5734
  }
5484
5735
 
5485
5736
  export interface UpdateFeedRequest {
5486
- created_by_id?: string;
5487
-
5488
5737
  custom?: Record<string, any>;
5489
5738
  }
5490
5739