@stream-io/feeds-client 0.2.17 → 0.2.18

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 (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/react-bindings.js +1 -1
  4. package/dist/es/index.mjs +2 -2
  5. package/dist/es/react-bindings.mjs +1 -1
  6. package/dist/{index-nq6SDtbt.js → index--koeDtxd.js} +147 -56
  7. package/dist/index--koeDtxd.js.map +1 -0
  8. package/dist/{index-BZL77zNq.mjs → index-Zde8UE5f.mjs} +147 -56
  9. package/dist/index-Zde8UE5f.mjs.map +1 -0
  10. package/dist/tsconfig.tsbuildinfo +1 -1
  11. package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
  12. package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts +4 -3
  13. package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts.map +1 -1
  14. package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts.map +1 -1
  15. package/dist/types/feed/event-handlers/activity-updater.d.ts +44 -0
  16. package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -0
  17. package/dist/types/feed/event-handlers/add-aggregated-activities-to-state.d.ts +6 -0
  18. package/dist/types/feed/event-handlers/add-aggregated-activities-to-state.d.ts.map +1 -0
  19. package/dist/types/feed/event-handlers/index.d.ts +3 -1
  20. package/dist/types/feed/event-handlers/index.d.ts.map +1 -1
  21. package/dist/types/feed/event-handlers/{aggregated-feed/handle-aggregated-feed-updated.d.ts → notification-feed/handle-notification-feed-updated.d.ts} +2 -11
  22. package/dist/types/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts.map +1 -0
  23. package/dist/types/feed/event-handlers/notification-feed/index.d.ts +2 -0
  24. package/dist/types/feed/event-handlers/notification-feed/index.d.ts.map +1 -0
  25. package/dist/types/feed/event-handlers/story-feeds/handle-story-feeds-updated.d.ts +15 -0
  26. package/dist/types/feed/event-handlers/story-feeds/handle-story-feeds-updated.d.ts.map +1 -0
  27. package/dist/types/feed/event-handlers/story-feeds/index.d.ts +2 -0
  28. package/dist/types/feed/event-handlers/story-feeds/index.d.ts.map +1 -0
  29. package/dist/types/feed/feed.d.ts +9 -3
  30. package/dist/types/feed/feed.d.ts.map +1 -1
  31. package/dist/types/feeds-client/feeds-client.d.ts +5 -3
  32. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
  33. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
  34. package/dist/types/gen/models/index.d.ts +42 -451
  35. package/dist/types/gen/models/index.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/feed/event-handlers/activity/handle-activity-added.test.ts +16 -5
  38. package/src/feed/event-handlers/activity/handle-activity-added.ts +9 -11
  39. package/src/feed/event-handlers/activity/handle-activity-updated.ts +8 -16
  40. package/src/feed/event-handlers/activity-updater.ts +15 -0
  41. package/src/feed/event-handlers/add-aggregated-activities-to-state.test.ts +510 -0
  42. package/src/feed/event-handlers/add-aggregated-activities-to-state.ts +72 -0
  43. package/src/feed/event-handlers/index.ts +3 -1
  44. package/src/feed/event-handlers/notification-feed/handle-notification-feed-updated.test.ts +182 -0
  45. package/src/feed/event-handlers/{aggregated-feed/handle-aggregated-feed-updated.ts → notification-feed/handle-notification-feed-updated.ts} +2 -94
  46. package/src/feed/event-handlers/notification-feed/index.ts +1 -0
  47. package/src/feed/event-handlers/story-feeds/handle-story-feeds-updated.test.ts +45 -0
  48. package/src/feed/event-handlers/story-feeds/handle-story-feeds-updated.ts +122 -0
  49. package/src/feed/event-handlers/story-feeds/index.ts +1 -0
  50. package/src/feed/feed.ts +12 -0
  51. package/src/feeds-client/feeds-client.ts +21 -3
  52. package/src/gen/feeds/FeedsApi.ts +5 -0
  53. package/src/gen/model-decoders/decoders.ts +10 -4
  54. package/src/gen/models/index.ts +75 -834
  55. package/src/test-utils/response-generators.ts +37 -1
  56. package/dist/index-BZL77zNq.mjs.map +0 -1
  57. package/dist/index-nq6SDtbt.js.map +0 -1
  58. package/dist/types/feed/event-handlers/aggregated-feed/handle-aggregated-feed-updated.d.ts.map +0 -1
  59. package/dist/types/feed/event-handlers/aggregated-feed/index.d.ts +0 -2
  60. package/dist/types/feed/event-handlers/aggregated-feed/index.d.ts.map +0 -1
  61. package/src/feed/event-handlers/activity/activity-utils.test.ts +0 -252
  62. package/src/feed/event-handlers/aggregated-feed/handle-aggregated-feed-updated.test.ts +0 -644
  63. package/src/feed/event-handlers/aggregated-feed/index.ts +0 -1
@@ -26,14 +26,6 @@ export interface APIError {
26
26
  unrecoverable?: boolean;
27
27
  exception_fields?: Record<string, string>;
28
28
  }
29
- export interface APNS {
30
- body: string;
31
- title: string;
32
- content_available?: number;
33
- mutable_content?: number;
34
- sound?: string;
35
- data?: Record<string, any>;
36
- }
37
29
  export interface AWSRekognitionRule {
38
30
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
39
31
  label: string;
@@ -61,19 +53,6 @@ export interface Action {
61
53
  style?: string;
62
54
  value?: string;
63
55
  }
64
- export interface ActionLog {
65
- created_at: Date;
66
- id: string;
67
- reason: string;
68
- reporter_type: string;
69
- review_queue_item_id: string;
70
- target_user_id: string;
71
- type: string;
72
- custom: Record<string, any>;
73
- review_queue_item?: ReviewQueueItem;
74
- target_user?: User;
75
- user?: User;
76
- }
77
56
  export interface ActionLogResponse {
78
57
  created_at: Date;
79
58
  id: string;
@@ -81,6 +60,7 @@ export interface ActionLogResponse {
81
60
  target_user_id: string;
82
61
  type: string;
83
62
  user_id: string;
63
+ ai_providers: string[];
84
64
  custom: Record<string, any>;
85
65
  review_queue_item?: ReviewQueueItemResponse;
86
66
  target_user?: UserResponse;
@@ -121,6 +101,7 @@ export interface ActivityFeedbackRequest {
121
101
  reason?: string;
122
102
  report?: boolean;
123
103
  show_less?: boolean;
104
+ show_more?: boolean;
124
105
  }
125
106
  export interface ActivityFeedbackResponse {
126
107
  activity_id: string;
@@ -337,9 +318,9 @@ export interface AddCommentReactionResponse {
337
318
  reaction: FeedsReactionResponse;
338
319
  }
339
320
  export interface AddCommentRequest {
340
- comment: string;
341
321
  object_id: string;
342
322
  object_type: string;
323
+ comment?: string;
343
324
  create_notification_activity?: boolean;
344
325
  parent_id?: string;
345
326
  skip_push?: boolean;
@@ -400,6 +381,8 @@ export interface AppResponseFields {
400
381
  async_url_enrich_enabled: boolean;
401
382
  auto_translation_enabled: boolean;
402
383
  name: string;
384
+ region: string;
385
+ shard: string;
403
386
  file_upload_config: FileUploadConfig;
404
387
  image_upload_config: FileUploadConfig;
405
388
  }
@@ -434,18 +417,10 @@ export interface Attachment {
434
417
  fields?: Field[];
435
418
  giphy?: Images;
436
419
  }
437
- export interface AudioSettings {
438
- access_request_enabled: boolean;
439
- default_device: 'speaker' | 'earpiece';
440
- mic_default_on: boolean;
441
- opus_dtx_enabled: boolean;
442
- redundant_coding_enabled: boolean;
443
- speaker_default_on: boolean;
444
- noise_cancellation?: NoiseCancellationSettings;
445
- }
446
420
  export interface AudioSettingsResponse {
447
421
  access_request_enabled: boolean;
448
422
  default_device: 'speaker' | 'earpiece';
423
+ hifi_audio_enabled: boolean;
449
424
  mic_default_on: boolean;
450
425
  opus_dtx_enabled: boolean;
451
426
  redundant_coding_enabled: boolean;
@@ -477,10 +452,6 @@ export interface AutomodToxicityConfig {
477
452
  rules: AutomodRule[];
478
453
  async?: boolean;
479
454
  }
480
- export interface BackstageSettings {
481
- enabled: boolean;
482
- join_ahead_time_seconds?: number;
483
- }
484
455
  export interface BackstageSettingsResponse {
485
456
  enabled: boolean;
486
457
  join_ahead_time_seconds?: number;
@@ -533,6 +504,8 @@ export interface BlockListOptions {
533
504
  blocklist: string;
534
505
  }
535
506
  export interface BlockListResponse {
507
+ is_leet_check_enabled: boolean;
508
+ is_plural_check_enabled: boolean;
536
509
  name: string;
537
510
  type: string;
538
511
  words: string[];
@@ -626,99 +599,16 @@ export interface BookmarkUpdatedEvent {
626
599
  received_at?: Date;
627
600
  user?: UserResponseCommonFields;
628
601
  }
629
- export interface BroadcastSettings {
630
- enabled: boolean;
631
- hls?: HLSSettings;
632
- rtmp?: RTMPSettings;
633
- }
634
602
  export interface BroadcastSettingsResponse {
635
603
  enabled: boolean;
636
604
  hls: HLSSettingsResponse;
637
605
  rtmp: RTMPSettingsResponse;
638
606
  }
639
- export interface Call {
640
- app_pk: number;
641
- backstage: boolean;
642
- channel_cid: string;
643
- cid: string;
644
- created_at: Date;
645
- created_by_user_id: string;
646
- current_session_id: string;
647
- id: string;
648
- last_session_id: string;
649
- team: string;
650
- thumbnail_url: string;
651
- type: string;
652
- updated_at: Date;
653
- blocked_user_i_ds: string[];
654
- blocked_users: User[];
655
- egresses: CallEgress[];
656
- members: CallMember[];
657
- custom: Record<string, any>;
658
- deleted_at?: Date;
659
- egress_updated_at?: Date;
660
- ended_at?: Date;
661
- join_ahead_time_seconds?: number;
662
- last_heartbeat_at?: Date;
663
- member_count?: number;
664
- starts_at?: Date;
665
- call_type?: CallType;
666
- created_by?: User;
667
- member_lookup?: MemberLookup;
668
- session?: CallSession;
669
- settings?: CallSettings;
670
- settings_overrides?: CallSettings;
671
- }
672
- export interface CallEgress {
673
- app_pk: number;
674
- call_id: string;
675
- call_type: string;
676
- egress_id: string;
677
- egress_type: string;
678
- instance_ip: string;
679
- started_at: Date;
680
- state: string;
681
- updated_at: Date;
682
- stopped_at?: Date;
683
- config?: EgressTaskConfig;
684
- }
685
607
  export interface CallIngressResponse {
686
608
  rtmp: RTMPIngress;
687
609
  srt: SRTIngress;
688
610
  whip: WHIPIngress;
689
611
  }
690
- export interface CallMember {
691
- created_at: Date;
692
- role: string;
693
- updated_at: Date;
694
- user_id: string;
695
- custom: Record<string, any>;
696
- deleted_at?: Date;
697
- user?: User;
698
- }
699
- export interface CallParticipant {
700
- banned: boolean;
701
- id: string;
702
- joined_at: Date;
703
- online: boolean;
704
- role: string;
705
- user_session_id: string;
706
- custom: Record<string, any>;
707
- teams_role: Record<string, string>;
708
- avg_response_time?: number;
709
- ban_expires?: Date;
710
- created_at?: Date;
711
- deactivated_at?: Date;
712
- deleted_at?: Date;
713
- invisible?: boolean;
714
- language?: string;
715
- last_active?: Date;
716
- last_engaged_at?: Date;
717
- revoke_tokens_issued_before?: Date;
718
- updated_at?: Date;
719
- teams?: string[];
720
- privacy_settings?: PrivacySettings;
721
- }
722
612
  export interface CallParticipantResponse {
723
613
  joined_at: Date;
724
614
  role: string;
@@ -751,29 +641,6 @@ export interface CallResponse {
751
641
  session?: CallSessionResponse;
752
642
  thumbnails?: ThumbnailResponse;
753
643
  }
754
- export interface CallSession {
755
- anonymous_participant_count: number;
756
- app_pk: number;
757
- call_id: string;
758
- call_type: string;
759
- created_at: Date;
760
- session_id: string;
761
- active_sf_us: SFUIDLastSeen[];
762
- participants: CallParticipant[];
763
- sfui_ds: string[];
764
- accepted_by: Record<string, Date>;
765
- missed_by: Record<string, Date>;
766
- participants_count_by_role: Record<string, number>;
767
- rejected_by: Record<string, Date>;
768
- user_permission_overrides: Record<string, Record<string, boolean>>;
769
- deleted_at?: Date;
770
- ended_at?: Date;
771
- live_ended_at?: Date;
772
- live_started_at?: Date;
773
- ring_at?: Date;
774
- started_at?: Date;
775
- timer_ends_at?: Date;
776
- }
777
644
  export interface CallSessionResponse {
778
645
  anonymous_participant_count: number;
779
646
  id: string;
@@ -788,22 +655,6 @@ export interface CallSessionResponse {
788
655
  started_at?: Date;
789
656
  timer_ends_at?: Date;
790
657
  }
791
- export interface CallSettings {
792
- audio?: AudioSettings;
793
- backstage?: BackstageSettings;
794
- broadcasting?: BroadcastSettings;
795
- frame_recording?: FrameRecordSettings;
796
- geofencing?: GeofenceSettings;
797
- ingress?: IngressSettings;
798
- limits?: LimitsSettings;
799
- recording?: RecordSettings;
800
- ring?: RingSettings;
801
- screensharing?: ScreensharingSettings;
802
- session?: SessionSettings;
803
- thumbnails?: ThumbnailsSettings;
804
- transcription?: TranscriptionSettings;
805
- video?: VideoSettings;
806
- }
807
658
  export interface CallSettingsResponse {
808
659
  audio: AudioSettingsResponse;
809
660
  backstage: BackstageSettingsResponse;
@@ -820,16 +671,6 @@ export interface CallSettingsResponse {
820
671
  video: VideoSettingsResponse;
821
672
  ingress?: IngressSettingsResponse;
822
673
  }
823
- export interface CallType {
824
- app_pk: number;
825
- created_at: Date;
826
- external_storage: string;
827
- name: string;
828
- pk: number;
829
- updated_at: Date;
830
- notification_settings?: NotificationSettings;
831
- settings?: CallSettings;
832
- }
833
674
  export interface CastPollVoteRequest {
834
675
  vote?: VoteData;
835
676
  }
@@ -957,6 +798,7 @@ export interface ChannelMember {
957
798
  export interface ChannelMemberLookup {
958
799
  archived: boolean;
959
800
  banned: boolean;
801
+ blocked: boolean;
960
802
  hidden: boolean;
961
803
  pinned: boolean;
962
804
  archived_at?: Date;
@@ -1144,10 +986,6 @@ export interface CommentUpdatedEvent {
1144
986
  received_at?: Date;
1145
987
  user?: UserResponseCommonFields;
1146
988
  }
1147
- export interface CompositeAppSettings {
1148
- json_encoded_settings?: string;
1149
- url?: string;
1150
- }
1151
989
  export interface ConfigOverrides {
1152
990
  commands: string[];
1153
991
  grants: Record<string, string[]>;
@@ -1198,6 +1036,8 @@ export interface ContentCountRuleParameters {
1198
1036
  export interface CreateBlockListRequest {
1199
1037
  name: string;
1200
1038
  words: string[];
1039
+ is_leet_check_enabled?: boolean;
1040
+ is_plural_check_enabled?: boolean;
1201
1041
  team?: string;
1202
1042
  type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
1203
1043
  }
@@ -1313,6 +1153,12 @@ export interface DeleteUserRequest {
1313
1153
  hard_delete?: boolean;
1314
1154
  mark_messages_deleted?: boolean;
1315
1155
  }
1156
+ export interface DeliveryReceipts {
1157
+ enabled: boolean;
1158
+ }
1159
+ export interface DeliveryReceiptsResponse {
1160
+ enabled: boolean;
1161
+ }
1316
1162
  export interface Device {
1317
1163
  created_at: Date;
1318
1164
  id: string;
@@ -1373,17 +1219,6 @@ export interface EgressResponse {
1373
1219
  frame_recording?: FrameRecordingResponse;
1374
1220
  hls?: EgressHLSResponse;
1375
1221
  }
1376
- export interface EgressTaskConfig {
1377
- egress_user?: EgressUser;
1378
- frame_recording_egress_config?: FrameRecordingEgressConfig;
1379
- hls_egress_config?: HLSEgressConfig;
1380
- recording_egress_config?: RecordingEgressConfig;
1381
- rtmp_egress_config?: RTMPEgressConfig;
1382
- stt_egress_config?: STTEgressConfig;
1383
- }
1384
- export interface EgressUser {
1385
- token?: string;
1386
- }
1387
1222
  export interface EnrichedActivity {
1388
1223
  foreign_id?: string;
1389
1224
  id?: string;
@@ -1413,29 +1248,6 @@ export interface EnrichedReaction {
1413
1248
  updated_at?: Time;
1414
1249
  user?: Data;
1415
1250
  }
1416
- export interface EntityCreator {
1417
- ban_count: number;
1418
- banned: boolean;
1419
- deleted_content_count: number;
1420
- id: string;
1421
- online: boolean;
1422
- role: string;
1423
- custom: Record<string, any>;
1424
- teams_role: Record<string, string>;
1425
- avg_response_time?: number;
1426
- ban_expires?: Date;
1427
- created_at?: Date;
1428
- deactivated_at?: Date;
1429
- deleted_at?: Date;
1430
- invisible?: boolean;
1431
- language?: string;
1432
- last_active?: Date;
1433
- last_engaged_at?: Date;
1434
- revoke_tokens_issued_before?: Date;
1435
- updated_at?: Date;
1436
- teams?: string[];
1437
- privacy_settings?: PrivacySettings;
1438
- }
1439
1251
  export interface EntityCreatorResponse {
1440
1252
  ban_count: number;
1441
1253
  banned: boolean;
@@ -1459,29 +1271,6 @@ export interface EntityCreatorResponse {
1459
1271
  revoke_tokens_issued_before?: Date;
1460
1272
  teams_role?: Record<string, string>;
1461
1273
  }
1462
- export interface EventNotificationSettings {
1463
- enabled: boolean;
1464
- apns: APNS;
1465
- fcm: FCM;
1466
- }
1467
- export interface ExternalStorage {
1468
- abs_account_name?: string;
1469
- abs_client_id?: string;
1470
- abs_client_secret?: string;
1471
- abs_tenant_id?: string;
1472
- bucket?: string;
1473
- gcs_credentials?: string;
1474
- path?: string;
1475
- s3_api_key?: string;
1476
- s3_custom_endpoint?: string;
1477
- s3_region?: string;
1478
- s3_secret_key?: string;
1479
- storage_name?: string;
1480
- storage_type?: number;
1481
- }
1482
- export interface FCM {
1483
- data?: Record<string, any>;
1484
- }
1485
1274
  export interface FeedCreatedEvent {
1486
1275
  created_at: Date;
1487
1276
  fid: string;
@@ -1707,24 +1496,6 @@ export interface FileUploadResponse {
1707
1496
  file?: string;
1708
1497
  thumb_url?: string;
1709
1498
  }
1710
- export interface Flag {
1711
- created_at: Date;
1712
- entity_id: string;
1713
- entity_type: string;
1714
- updated_at: Date;
1715
- result: Array<Record<string, any>>;
1716
- entity_creator_id?: string;
1717
- is_streamed_content?: boolean;
1718
- moderation_payload_hash?: string;
1719
- reason?: string;
1720
- review_queue_item_id?: string;
1721
- type?: string;
1722
- labels?: string[];
1723
- custom?: Record<string, any>;
1724
- moderation_payload?: ModerationPayload;
1725
- review_queue_item?: ReviewQueueItem;
1726
- user?: User;
1727
- }
1728
1499
  export interface FlagRequest {
1729
1500
  entity_id: string;
1730
1501
  entity_type: string;
@@ -1794,17 +1565,6 @@ export interface FollowUpdatedEvent {
1794
1565
  feed_visibility?: string;
1795
1566
  received_at?: Date;
1796
1567
  }
1797
- export interface FrameRecordSettings {
1798
- capture_interval_in_seconds: number;
1799
- mode: 'available' | 'disabled' | 'auto-on';
1800
- quality?: string;
1801
- }
1802
- export interface FrameRecordingEgressConfig {
1803
- capture_interval_in_seconds?: number;
1804
- storage_name?: string;
1805
- external_storage?: ExternalStorage;
1806
- quality?: Quality;
1807
- }
1808
1568
  export interface FrameRecordingResponse {
1809
1569
  status: string;
1810
1570
  }
@@ -1845,9 +1605,6 @@ export interface FullUserResponse {
1845
1605
  privacy_settings?: PrivacySettingsResponse;
1846
1606
  teams_role?: Record<string, string>;
1847
1607
  }
1848
- export interface GeofenceSettings {
1849
- names: string[];
1850
- }
1851
1608
  export interface GeofenceSettingsResponse {
1852
1609
  names: string[];
1853
1610
  }
@@ -1947,18 +1704,6 @@ export interface GetOrCreateFeedResponse {
1947
1704
  export interface GoogleVisionConfig {
1948
1705
  enabled?: boolean;
1949
1706
  }
1950
- export interface HLSEgressConfig {
1951
- playlist_url?: string;
1952
- start_unix_nano?: number;
1953
- qualities?: Quality[];
1954
- composite_app_settings?: CompositeAppSettings;
1955
- }
1956
- export interface HLSSettings {
1957
- auto_on: boolean;
1958
- enabled: boolean;
1959
- quality_tracks: string[];
1960
- layout?: LayoutSettings;
1961
- }
1962
1707
  export interface HLSSettingsResponse {
1963
1708
  auto_on: boolean;
1964
1709
  enabled: boolean;
@@ -2021,38 +1766,24 @@ export interface Images {
2021
1766
  fixed_width_still: ImageData;
2022
1767
  original: ImageData;
2023
1768
  }
2024
- export interface IngressAudioEncodingOptions {
2025
- bitrate: number;
2026
- channels: '1' | '2';
2027
- enable_dtx: boolean;
2028
- }
2029
1769
  export interface IngressAudioEncodingResponse {
2030
1770
  bitrate: number;
2031
1771
  channels: number;
2032
1772
  enable_dtx: boolean;
2033
1773
  }
2034
- export interface IngressSettings {
2035
- enabled: boolean;
2036
- audio_encoding_options?: IngressAudioEncodingOptions;
2037
- video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
2038
- }
2039
1774
  export interface IngressSettingsResponse {
2040
1775
  enabled: boolean;
2041
1776
  audio_encoding_options?: IngressAudioEncodingResponse;
2042
1777
  video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
2043
1778
  }
2044
- export interface IngressVideoEncodingOptions {
2045
- layers: IngressVideoLayer[];
1779
+ export interface IngressSourceResponse {
1780
+ fps: number;
1781
+ height: number;
1782
+ width: number;
2046
1783
  }
2047
1784
  export interface IngressVideoEncodingResponse {
2048
1785
  layers: IngressVideoLayerResponse[];
2049
- }
2050
- export interface IngressVideoLayer {
2051
- bitrate: number;
2052
- codec: 'h264' | 'vp8';
2053
- frame_rate: number;
2054
- max_dimension: number;
2055
- min_dimension: number;
1786
+ source: IngressSourceResponse;
2056
1787
  }
2057
1788
  export interface IngressVideoLayerResponse {
2058
1789
  bitrate: number;
@@ -2078,19 +1809,6 @@ export interface LabelThresholds {
2078
1809
  block?: number;
2079
1810
  flag?: number;
2080
1811
  }
2081
- export interface LayoutSettings {
2082
- external_app_url: string;
2083
- external_css_url: string;
2084
- name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
2085
- detect_orientation?: boolean;
2086
- options?: Record<string, any>;
2087
- }
2088
- export interface LimitsSettings {
2089
- max_participants_exclude_roles: string[];
2090
- max_duration_seconds?: number;
2091
- max_participants?: number;
2092
- max_participants_exclude_owner?: boolean;
2093
- }
2094
1812
  export interface LimitsSettingsResponse {
2095
1813
  max_participants_exclude_roles: string[];
2096
1814
  max_duration_seconds?: number;
@@ -2116,9 +1834,6 @@ export interface MarkReviewedRequest {
2116
1834
  content_to_mark_as_reviewed_limit?: number;
2117
1835
  disable_marking_content_as_reviewed?: boolean;
2118
1836
  }
2119
- export interface MemberLookup {
2120
- limit: number;
2121
- }
2122
1837
  export interface MembershipLevelResponse {
2123
1838
  created_at: Date;
2124
1839
  id: string;
@@ -2242,11 +1957,14 @@ export interface ModerationActionConfig {
2242
1957
  custom: Record<string, any>;
2243
1958
  }
2244
1959
  export interface ModerationCustomActionEvent {
1960
+ action_id: string;
2245
1961
  created_at: Date;
1962
+ custom: Record<string, any>;
1963
+ review_queue_item: ReviewQueueItemResponse;
2246
1964
  type: string;
2247
- item?: ReviewQueueItem;
2248
- message?: Message;
2249
- user?: User;
1965
+ received_at?: Date;
1966
+ action_options?: Record<string, any>;
1967
+ message?: MessageResponse;
2250
1968
  }
2251
1969
  export interface ModerationFlagResponse {
2252
1970
  created_at: Date;
@@ -2274,10 +1992,11 @@ export interface ModerationFlaggedEvent {
2274
1992
  }
2275
1993
  export interface ModerationMarkReviewedEvent {
2276
1994
  created_at: Date;
1995
+ custom: Record<string, any>;
1996
+ item: ReviewQueueItemResponse;
2277
1997
  type: string;
2278
- item?: ReviewQueueItem;
2279
- message?: Message;
2280
- user?: User;
1998
+ received_at?: Date;
1999
+ message?: MessageResponse;
2281
2000
  }
2282
2001
  export interface ModerationPayload {
2283
2002
  images?: string[];
@@ -2326,14 +2045,6 @@ export interface NotificationFeedUpdatedEvent {
2326
2045
  notification_status?: NotificationStatusResponse;
2327
2046
  user?: UserResponseCommonFields;
2328
2047
  }
2329
- export interface NotificationSettings {
2330
- enabled: boolean;
2331
- call_live_started: EventNotificationSettings;
2332
- call_missed: EventNotificationSettings;
2333
- call_notification: EventNotificationSettings;
2334
- call_ring: EventNotificationSettings;
2335
- session_started: EventNotificationSettings;
2336
- }
2337
2048
  export interface NotificationStatusResponse {
2338
2049
  unread: number;
2339
2050
  unseen: number;
@@ -2354,8 +2065,6 @@ export interface NotificationTrigger {
2354
2065
  text: string;
2355
2066
  type: string;
2356
2067
  }
2357
- export interface NullTime {
2358
- }
2359
2068
  export interface OCRRule {
2360
2069
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
2361
2070
  label: string;
@@ -2613,10 +2322,12 @@ export interface PollVotesResponse {
2613
2322
  prev?: string;
2614
2323
  }
2615
2324
  export interface PrivacySettings {
2325
+ delivery_receipts?: DeliveryReceipts;
2616
2326
  read_receipts?: ReadReceipts;
2617
2327
  typing_indicators?: TypingIndicators;
2618
2328
  }
2619
2329
  export interface PrivacySettingsResponse {
2330
+ delivery_receipts?: DeliveryReceiptsResponse;
2620
2331
  read_receipts?: ReadReceiptsResponse;
2621
2332
  typing_indicators?: TypingIndicatorsResponse;
2622
2333
  }
@@ -2641,14 +2352,6 @@ export interface PushPreferences {
2641
2352
  feeds_level?: string;
2642
2353
  feeds_preferences?: FeedsPreferences;
2643
2354
  }
2644
- export interface Quality {
2645
- bitdepth?: number;
2646
- framerate?: number;
2647
- height?: number;
2648
- name?: string;
2649
- video_bitrate?: number;
2650
- width?: number;
2651
- }
2652
2355
  export interface QueryActivitiesRequest {
2653
2356
  limit?: number;
2654
2357
  next?: string;
@@ -2831,25 +2534,9 @@ export interface QueryUsersResponse {
2831
2534
  duration: string;
2832
2535
  users: FullUserResponse[];
2833
2536
  }
2834
- export interface RTMPEgressConfig {
2835
- rtmp_location?: string;
2836
- composite_app_settings?: CompositeAppSettings;
2837
- quality?: Quality;
2838
- }
2839
2537
  export interface RTMPIngress {
2840
2538
  address: string;
2841
2539
  }
2842
- export interface RTMPLocation {
2843
- name: string;
2844
- stream_key: string;
2845
- stream_url: string;
2846
- }
2847
- export interface RTMPSettings {
2848
- enabled: boolean;
2849
- quality_name?: string;
2850
- layout?: LayoutSettings;
2851
- location?: RTMPLocation;
2852
- }
2853
2540
  export interface RTMPSettingsResponse {
2854
2541
  enabled: boolean;
2855
2542
  quality: string;
@@ -2892,25 +2579,11 @@ export interface ReadReceipts {
2892
2579
  export interface ReadReceiptsResponse {
2893
2580
  enabled: boolean;
2894
2581
  }
2895
- export interface RecordSettings {
2896
- mode: string;
2897
- audio_only?: boolean;
2898
- quality?: string;
2899
- layout?: LayoutSettings;
2900
- }
2901
2582
  export interface RecordSettingsResponse {
2902
2583
  audio_only: boolean;
2903
2584
  mode: string;
2904
2585
  quality: string;
2905
2586
  }
2906
- export interface RecordingEgressConfig {
2907
- audio_only?: boolean;
2908
- storage_name?: string;
2909
- composite_app_settings?: CompositeAppSettings;
2910
- external_storage?: ExternalStorage;
2911
- quality?: Quality;
2912
- video_orientation_hint?: VideoOrientation;
2913
- }
2914
2587
  export interface RejectFeedMemberInviteRequest {
2915
2588
  }
2916
2589
  export interface RejectFeedMemberInviteResponse {
@@ -2947,46 +2620,6 @@ export interface Response {
2947
2620
  }
2948
2621
  export interface RestoreActionRequest {
2949
2622
  }
2950
- export interface ReviewQueueItem {
2951
- ai_text_severity: string;
2952
- bounce_count: number;
2953
- config_key: string;
2954
- content_changed: boolean;
2955
- created_at: Date;
2956
- entity_id: string;
2957
- entity_type: string;
2958
- flags_count: number;
2959
- has_image: boolean;
2960
- has_text: boolean;
2961
- has_video: boolean;
2962
- id: string;
2963
- moderation_payload_hash: string;
2964
- recommended_action: string;
2965
- reviewed_by: string;
2966
- severity: number;
2967
- status: string;
2968
- updated_at: Date;
2969
- actions: ActionLog[];
2970
- bans: Ban[];
2971
- flag_labels: string[];
2972
- flag_types: string[];
2973
- flags: Flag[];
2974
- languages: string[];
2975
- reporter_ids: string[];
2976
- teams: string[];
2977
- archived_at: NullTime;
2978
- completed_at: NullTime;
2979
- reviewed_at: NullTime;
2980
- activity?: EnrichedActivity;
2981
- assigned_to?: User;
2982
- call?: Call;
2983
- entity_creator?: EntityCreator;
2984
- feeds_v2_activity?: EnrichedActivity;
2985
- feeds_v2_reaction?: Reaction;
2986
- message?: Message;
2987
- moderation_payload?: ModerationPayload;
2988
- reaction?: Reaction;
2989
- }
2990
2623
  export interface ReviewQueueItemResponse {
2991
2624
  ai_text_severity: string;
2992
2625
  created_at: Date;
@@ -3018,18 +2651,13 @@ export interface ReviewQueueItemResponse {
3018
2651
  moderation_payload?: ModerationPayload;
3019
2652
  reaction?: Reaction;
3020
2653
  }
3021
- export interface RingSettings {
3022
- auto_cancel_timeout_ms: number;
3023
- incoming_call_timeout_ms: number;
3024
- missed_call_timeout_ms: number;
3025
- }
3026
2654
  export interface RingSettingsResponse {
3027
2655
  auto_cancel_timeout_ms: number;
3028
2656
  incoming_call_timeout_ms: number;
3029
2657
  missed_call_timeout_ms: number;
3030
2658
  }
3031
2659
  export interface RuleBuilderAction {
3032
- type?: string;
2660
+ type: 'ban_user' | 'flag_user' | 'flag_content' | 'block_content' | 'shadow_content' | 'bounce_flag_content' | 'bounce_content' | 'bounce_remove_content';
3033
2661
  ban_options?: BanOptions;
3034
2662
  flag_user_options?: FlagUserOptions;
3035
2663
  }
@@ -3064,38 +2692,14 @@ export interface RuleBuilderRule {
3064
2692
  conditions?: RuleBuilderCondition[];
3065
2693
  groups?: RuleBuilderConditionGroup[];
3066
2694
  }
3067
- export interface SFUIDLastSeen {
3068
- id: string;
3069
- last_seen: Date;
3070
- process_start_time: number;
3071
- }
3072
2695
  export interface SRTIngress {
3073
2696
  address: string;
3074
2697
  }
3075
- export interface STTEgressConfig {
3076
- closed_captions_enabled?: boolean;
3077
- language?: string;
3078
- storage_name?: string;
3079
- translations_enabled?: boolean;
3080
- upload_transcriptions?: boolean;
3081
- whisper_server_base_url?: string;
3082
- translation_languages?: string[];
3083
- external_storage?: ExternalStorage;
3084
- speech_segment_config?: SpeechSegmentConfig;
3085
- }
3086
- export interface ScreensharingSettings {
3087
- access_request_enabled: boolean;
3088
- enabled: boolean;
3089
- target_resolution?: TargetResolution;
3090
- }
3091
2698
  export interface ScreensharingSettingsResponse {
3092
2699
  access_request_enabled: boolean;
3093
2700
  enabled: boolean;
3094
2701
  target_resolution?: TargetResolution;
3095
2702
  }
3096
- export interface SessionSettings {
3097
- inactivity_timeout_seconds: number;
3098
- }
3099
2703
  export interface SessionSettingsResponse {
3100
2704
  inactivity_timeout_seconds: number;
3101
2705
  }
@@ -3172,6 +2776,7 @@ export interface StoriesFeedUpdatedEvent {
3172
2776
  type: string;
3173
2777
  feed_visibility?: string;
3174
2778
  received_at?: Date;
2779
+ activities?: ActivityResponse[];
3175
2780
  aggregated_activities?: AggregatedActivityResponse[];
3176
2781
  user?: UserResponseCommonFields;
3177
2782
  }
@@ -3248,21 +2853,11 @@ export interface Thresholds {
3248
2853
  export interface ThumbnailResponse {
3249
2854
  image_url: string;
3250
2855
  }
3251
- export interface ThumbnailsSettings {
3252
- enabled: boolean;
3253
- }
3254
2856
  export interface ThumbnailsSettingsResponse {
3255
2857
  enabled: boolean;
3256
2858
  }
3257
2859
  export interface Time {
3258
2860
  }
3259
- export interface TranscriptionSettings {
3260
- closed_caption_mode: 'available' | 'disabled' | 'auto-on';
3261
- language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
3262
- mode: 'available' | 'disabled' | 'auto-on';
3263
- speech_segment_config?: SpeechSegmentConfig;
3264
- translation?: TranslationSettings;
3265
- }
3266
2861
  export interface TranscriptionSettingsResponse {
3267
2862
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
3268
2863
  language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
@@ -3325,6 +2920,8 @@ export interface UpdateActivityResponse {
3325
2920
  activity: ActivityResponse;
3326
2921
  }
3327
2922
  export interface UpdateBlockListRequest {
2923
+ is_leet_check_enabled?: boolean;
2924
+ is_plural_check_enabled?: boolean;
3328
2925
  team?: string;
3329
2926
  words?: string[];
3330
2927
  }
@@ -3665,21 +3262,11 @@ export interface VideoEndCallRequest {
3665
3262
  }
3666
3263
  export interface VideoKickUserRequest {
3667
3264
  }
3668
- export interface VideoOrientation {
3669
- orientation?: number;
3670
- }
3671
3265
  export interface VideoRuleParameters {
3672
3266
  threshold?: number;
3673
3267
  time_window?: string;
3674
3268
  harm_labels?: string[];
3675
3269
  }
3676
- export interface VideoSettings {
3677
- access_request_enabled: boolean;
3678
- camera_default_on: boolean;
3679
- camera_facing: 'front' | 'back' | 'external';
3680
- enabled: boolean;
3681
- target_resolution: TargetResolution;
3682
- }
3683
3270
  export interface VideoSettingsResponse {
3684
3271
  access_request_enabled: boolean;
3685
3272
  camera_default_on: boolean;
@@ -3784,6 +3371,10 @@ export type WSClientEvent = ({
3784
3371
  } & StoriesFeedUpdatedEvent) | ({
3785
3372
  type: 'health.check';
3786
3373
  } & HealthCheckEvent) | ({
3374
+ type: 'moderation.custom_action';
3375
+ } & ModerationCustomActionEvent) | ({
3376
+ type: 'moderation.mark_reviewed';
3377
+ } & ModerationMarkReviewedEvent) | ({
3787
3378
  type: 'user.updated';
3788
3379
  } & UserUpdatedEvent);
3789
3380
  export type WSEvent = ({