@stream-io/node-sdk 0.7.12 → 0.7.14

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.
@@ -87,19 +87,6 @@ export interface Action {
87
87
  style?: string;
88
88
  value?: string;
89
89
  }
90
- export interface ActionLog {
91
- created_at: Date;
92
- id: string;
93
- reason: string;
94
- reporter_type: string;
95
- review_queue_item_id: string;
96
- target_user_id: string;
97
- type: string;
98
- custom: Record<string, any>;
99
- review_queue_item?: ReviewQueueItem;
100
- target_user?: User;
101
- user?: User;
102
- }
103
90
  export interface ActionLogResponse {
104
91
  created_at: Date;
105
92
  id: string;
@@ -107,6 +94,7 @@ export interface ActionLogResponse {
107
94
  target_user_id: string;
108
95
  type: string;
109
96
  user_id: string;
97
+ ai_providers: string[];
110
98
  custom: Record<string, any>;
111
99
  review_queue_item?: ReviewQueueItemResponse;
112
100
  target_user?: UserResponse;
@@ -334,17 +322,17 @@ export interface ActivityResponse {
334
322
  poll?: PollResponseData;
335
323
  }
336
324
  export interface ActivitySelectorConfig {
325
+ type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest';
337
326
  cutoff_time?: string;
338
327
  min_popularity?: number;
339
- type?: string;
340
- sort?: SortParam[];
328
+ sort?: SortParamRequest[];
341
329
  filter?: Record<string, any>;
342
330
  }
343
331
  export interface ActivitySelectorConfigResponse {
332
+ type: string;
344
333
  cutoff_time?: Date;
345
334
  min_popularity?: number;
346
- type?: string;
347
- sort?: SortParam[];
335
+ sort?: SortParamRequest[];
348
336
  filter?: Record<string, any>;
349
337
  }
350
338
  export interface ActivityUnpinnedEvent {
@@ -416,9 +404,9 @@ export interface AddCommentReactionResponse {
416
404
  reaction: FeedsReactionResponse;
417
405
  }
418
406
  export interface AddCommentRequest {
419
- comment: string;
420
407
  object_id: string;
421
408
  object_type: string;
409
+ comment?: string;
422
410
  create_notification_activity?: boolean;
423
411
  parent_id?: string;
424
412
  skip_push?: boolean;
@@ -465,8 +453,8 @@ export interface AggregatedActivityResponse {
465
453
  updated_at: Date;
466
454
  user_count: number;
467
455
  user_count_truncated: boolean;
468
- is_watched?: boolean;
469
456
  activities: ActivityResponse[];
457
+ is_watched?: boolean;
470
458
  }
471
459
  export interface AggregationConfig {
472
460
  format?: string;
@@ -476,6 +464,7 @@ export interface AnyEvent {
476
464
  type: string;
477
465
  }
478
466
  export interface AppResponseFields {
467
+ allow_multi_user_devices: boolean;
479
468
  async_url_enrich_enabled: boolean;
480
469
  auto_translation_enabled: boolean;
481
470
  campaign_enabled: boolean;
@@ -485,7 +474,9 @@ export interface AppResponseFields {
485
474
  disable_permissions_checks: boolean;
486
475
  enforce_unique_usernames: string;
487
476
  guest_user_creation_disabled: boolean;
477
+ id: number;
488
478
  image_moderation_enabled: boolean;
479
+ max_aggregated_activities_length: number;
489
480
  moderation_bulk_submit_action_enabled: boolean;
490
481
  moderation_enabled: boolean;
491
482
  moderation_llm_configurability_enabled: boolean;
@@ -495,6 +486,7 @@ export interface AppResponseFields {
495
486
  name: string;
496
487
  organization: string;
497
488
  permission_version: string;
489
+ placement: string;
498
490
  reminders_interval: number;
499
491
  sns_key: string;
500
492
  sns_secret: string;
@@ -610,11 +602,11 @@ export interface Attachment {
610
602
  export interface AudioSettings {
611
603
  access_request_enabled: boolean;
612
604
  default_device: 'speaker' | 'earpiece';
605
+ hifi_audio_enabled: boolean;
613
606
  mic_default_on: boolean;
614
607
  opus_dtx_enabled: boolean;
615
608
  redundant_coding_enabled: boolean;
616
609
  speaker_default_on: boolean;
617
- hifi_audio_enabled?: boolean;
618
610
  noise_cancellation?: NoiseCancellationSettings;
619
611
  }
620
612
  export interface AudioSettingsRequest {
@@ -630,11 +622,11 @@ export interface AudioSettingsRequest {
630
622
  export interface AudioSettingsResponse {
631
623
  access_request_enabled: boolean;
632
624
  default_device: 'speaker' | 'earpiece';
625
+ hifi_audio_enabled: boolean;
633
626
  mic_default_on: boolean;
634
627
  opus_dtx_enabled: boolean;
635
628
  redundant_coding_enabled: boolean;
636
629
  speaker_default_on: boolean;
637
- hifi_audio_enabled?: boolean;
638
630
  noise_cancellation?: NoiseCancellationSettings;
639
631
  }
640
632
  export interface AutomodDetails {
@@ -741,6 +733,8 @@ export interface BlockListOptions {
741
733
  blocklist: string;
742
734
  }
743
735
  export interface BlockListResponse {
736
+ is_leet_check_enabled: boolean;
737
+ is_plural_check_enabled: boolean;
744
738
  name: string;
745
739
  type: string;
746
740
  words: string[];
@@ -882,39 +876,6 @@ export interface BulkImageModerationResponse {
882
876
  duration: string;
883
877
  task_id: string;
884
878
  }
885
- export interface Call {
886
- app_pk: number;
887
- backstage: boolean;
888
- channel_cid: string;
889
- cid: string;
890
- created_at: Date;
891
- created_by_user_id: string;
892
- current_session_id: string;
893
- id: string;
894
- last_session_id: string;
895
- team: string;
896
- thumbnail_url: string;
897
- type: string;
898
- updated_at: Date;
899
- blocked_user_i_ds: string[];
900
- blocked_users: User[];
901
- egresses: CallEgress[];
902
- members: CallMember[];
903
- custom: Record<string, any>;
904
- deleted_at?: Date;
905
- egress_updated_at?: Date;
906
- ended_at?: Date;
907
- join_ahead_time_seconds?: number;
908
- last_heartbeat_at?: Date;
909
- member_count?: number;
910
- starts_at?: Date;
911
- call_type?: CallType;
912
- created_by?: User;
913
- member_lookup?: MemberLookup;
914
- session?: CallSession;
915
- settings?: CallSettings;
916
- settings_overrides?: CallSettings;
917
- }
918
879
  export interface CallAcceptedEvent {
919
880
  call_cid: string;
920
881
  created_at: Date;
@@ -967,19 +928,6 @@ export interface CallDurationReport {
967
928
  export interface CallDurationReportResponse {
968
929
  daily: DailyAggregateCallDurationReportResponse[];
969
930
  }
970
- export interface CallEgress {
971
- app_pk: number;
972
- call_id: string;
973
- call_type: string;
974
- egress_id: string;
975
- egress_type: string;
976
- instance_ip: string;
977
- started_at: Date;
978
- state: string;
979
- updated_at: Date;
980
- stopped_at?: Date;
981
- config?: EgressTaskConfig;
982
- }
983
931
  export interface CallEndedEvent {
984
932
  call_cid: string;
985
933
  created_at: Date;
@@ -1048,15 +996,6 @@ export interface CallLiveStartedEvent {
1048
996
  call: CallResponse;
1049
997
  type: string;
1050
998
  }
1051
- export interface CallMember {
1052
- created_at: Date;
1053
- role: string;
1054
- updated_at: Date;
1055
- user_id: string;
1056
- custom: Record<string, any>;
1057
- deleted_at?: Date;
1058
- user?: User;
1059
- }
1060
999
  export interface CallMemberAddedEvent {
1061
1000
  call_cid: string;
1062
1001
  created_at: Date;
@@ -1120,29 +1059,6 @@ export interface CallNotificationEvent {
1120
1059
  user: UserResponse;
1121
1060
  type: string;
1122
1061
  }
1123
- export interface CallParticipant {
1124
- banned: boolean;
1125
- id: string;
1126
- joined_at: Date;
1127
- online: boolean;
1128
- role: string;
1129
- user_session_id: string;
1130
- custom: Record<string, any>;
1131
- teams_role: Record<string, string>;
1132
- avg_response_time?: number;
1133
- ban_expires?: Date;
1134
- created_at?: Date;
1135
- deactivated_at?: Date;
1136
- deleted_at?: Date;
1137
- invisible?: boolean;
1138
- language?: string;
1139
- last_active?: Date;
1140
- last_engaged_at?: Date;
1141
- revoke_tokens_issued_before?: Date;
1142
- updated_at?: Date;
1143
- teams?: string[];
1144
- privacy_settings?: PrivacySettings;
1145
- }
1146
1062
  export interface CallParticipantCountReport {
1147
1063
  histogram: ReportByHistogramBucket[];
1148
1064
  }
@@ -1155,6 +1071,12 @@ export interface CallParticipantResponse {
1155
1071
  user_session_id: string;
1156
1072
  user: UserResponse;
1157
1073
  }
1074
+ export interface CallParticipantTimeline {
1075
+ severity: string;
1076
+ timestamp: Date;
1077
+ type: string;
1078
+ data: Record<string, any>;
1079
+ }
1158
1080
  export interface CallReactionEvent {
1159
1081
  call_cid: string;
1160
1082
  created_at: Date;
@@ -1271,29 +1193,6 @@ export interface CallRtmpBroadcastStoppedEvent {
1271
1193
  name: string;
1272
1194
  type: string;
1273
1195
  }
1274
- export interface CallSession {
1275
- anonymous_participant_count: number;
1276
- app_pk: number;
1277
- call_id: string;
1278
- call_type: string;
1279
- created_at: Date;
1280
- session_id: string;
1281
- active_sf_us: SFUIDLastSeen[];
1282
- participants: CallParticipant[];
1283
- sfui_ds: string[];
1284
- accepted_by: Record<string, Date>;
1285
- missed_by: Record<string, Date>;
1286
- participants_count_by_role: Record<string, number>;
1287
- rejected_by: Record<string, Date>;
1288
- user_permission_overrides: Record<string, Record<string, boolean>>;
1289
- deleted_at?: Date;
1290
- ended_at?: Date;
1291
- live_ended_at?: Date;
1292
- live_started_at?: Date;
1293
- ring_at?: Date;
1294
- started_at?: Date;
1295
- timer_ends_at?: Date;
1296
- }
1297
1196
  export interface CallSessionEndedEvent {
1298
1197
  call_cid: string;
1299
1198
  created_at: Date;
@@ -1399,6 +1298,29 @@ export interface CallStateResponseFields {
1399
1298
  own_capabilities: OwnCapability[];
1400
1299
  call: CallResponse;
1401
1300
  }
1301
+ export interface CallStatsParticipant {
1302
+ user_id: string;
1303
+ sessions: CallStatsParticipantSession[];
1304
+ latest_activity_at?: Date;
1305
+ name?: string;
1306
+ roles?: string[];
1307
+ }
1308
+ export interface CallStatsParticipantCounts {
1309
+ live_sessions: number;
1310
+ participants: number;
1311
+ publishers: number;
1312
+ sessions: number;
1313
+ }
1314
+ export interface CallStatsParticipantSession {
1315
+ is_live: boolean;
1316
+ user_session_id: string;
1317
+ published_tracks: PublishedTrackFlags;
1318
+ cq_score?: number;
1319
+ ended_at?: Date;
1320
+ publisher_type?: string;
1321
+ started_at?: Date;
1322
+ unified_session_id?: string;
1323
+ }
1402
1324
  export interface CallStatsReportReadyEvent {
1403
1325
  call_cid: string;
1404
1326
  created_at: Date;
@@ -1601,6 +1523,7 @@ export interface ChannelConfig {
1601
1523
  count_messages: boolean;
1602
1524
  created_at: Date;
1603
1525
  custom_events: boolean;
1526
+ delivery_events: boolean;
1604
1527
  mark_messages_pending: boolean;
1605
1528
  max_message_length: number;
1606
1529
  mutes: boolean;
@@ -1636,6 +1559,7 @@ export interface ChannelConfigWithInfo {
1636
1559
  count_messages: boolean;
1637
1560
  created_at: Date;
1638
1561
  custom_events: boolean;
1562
+ delivery_events: boolean;
1639
1563
  mark_messages_pending: boolean;
1640
1564
  max_message_length: number;
1641
1565
  mutes: boolean;
@@ -1752,6 +1676,7 @@ export interface ChannelMember {
1752
1676
  export interface ChannelMemberLookup {
1753
1677
  archived: boolean;
1754
1678
  banned: boolean;
1679
+ blocked: boolean;
1755
1680
  hidden: boolean;
1756
1681
  pinned: boolean;
1757
1682
  archived_at?: Date;
@@ -1784,6 +1709,7 @@ export declare const ChannelOwnCapability: {
1784
1709
  readonly DELETE_ANY_MESSAGE: "delete-any-message";
1785
1710
  readonly DELETE_CHANNEL: "delete-channel";
1786
1711
  readonly DELETE_OWN_MESSAGE: "delete-own-message";
1712
+ readonly DELIVERY_EVENTS: "delivery-events";
1787
1713
  readonly FLAG_MESSAGE: "flag-message";
1788
1714
  readonly FREEZE_CHANNEL: "freeze-channel";
1789
1715
  readonly JOIN_CHANNEL: "join-channel";
@@ -1858,7 +1784,6 @@ export interface ChannelStateResponse {
1858
1784
  hide_messages_before?: Date;
1859
1785
  watcher_count?: number;
1860
1786
  active_live_locations?: SharedLocationResponseData[];
1861
- deleted_messages?: string[];
1862
1787
  pending_messages?: PendingMessageResponse[];
1863
1788
  read?: ReadStateResponse[];
1864
1789
  watchers?: UserResponse[];
@@ -1876,7 +1801,6 @@ export interface ChannelStateResponseFields {
1876
1801
  hide_messages_before?: Date;
1877
1802
  watcher_count?: number;
1878
1803
  active_live_locations?: SharedLocationResponseData[];
1879
- deleted_messages?: string[];
1880
1804
  pending_messages?: PendingMessageResponse[];
1881
1805
  read?: ReadStateResponse[];
1882
1806
  watchers?: UserResponse[];
@@ -1901,6 +1825,7 @@ export interface ChannelTypeConfig {
1901
1825
  count_messages: boolean;
1902
1826
  created_at: Date;
1903
1827
  custom_events: boolean;
1828
+ delivery_events: boolean;
1904
1829
  mark_messages_pending: boolean;
1905
1830
  max_message_length: number;
1906
1831
  mutes: boolean;
@@ -2156,10 +2081,6 @@ export interface CommentUpdatedEvent {
2156
2081
  }
2157
2082
  export interface CommitMessageRequest {
2158
2083
  }
2159
- export interface CompositeAppSettings {
2160
- json_encoded_settings?: string;
2161
- url?: string;
2162
- }
2163
2084
  export interface ConfigOverrides {
2164
2085
  commands: string[];
2165
2086
  grants: Record<string, string[]>;
@@ -2205,6 +2126,8 @@ export interface CountByMinuteResponse {
2205
2126
  export interface CreateBlockListRequest {
2206
2127
  name: string;
2207
2128
  words: string[];
2129
+ is_leet_check_enabled?: boolean;
2130
+ is_plural_check_enabled?: boolean;
2208
2131
  team?: string;
2209
2132
  type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
2210
2133
  }
@@ -2237,7 +2160,9 @@ export interface CreateChannelTypeRequest {
2237
2160
  blocklist?: string;
2238
2161
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
2239
2162
  connect_events?: boolean;
2163
+ count_messages?: boolean;
2240
2164
  custom_events?: boolean;
2165
+ delivery_events?: boolean;
2241
2166
  mark_messages_pending?: boolean;
2242
2167
  message_retention?: 'infinite' | 'numeric';
2243
2168
  mutes?: boolean;
@@ -2267,6 +2192,7 @@ export interface CreateChannelTypeResponse {
2267
2192
  count_messages: boolean;
2268
2193
  created_at: Date;
2269
2194
  custom_events: boolean;
2195
+ delivery_events: boolean;
2270
2196
  duration: string;
2271
2197
  mark_messages_pending: boolean;
2272
2198
  max_message_length: number;
@@ -2546,6 +2472,7 @@ export interface DeleteActivityReactionResponse {
2546
2472
  }
2547
2473
  export interface DeleteActivityRequest {
2548
2474
  hard_delete?: boolean;
2475
+ reason?: string;
2549
2476
  }
2550
2477
  export interface DeleteActivityResponse {
2551
2478
  duration: string;
@@ -2618,6 +2545,7 @@ export interface DeleteFeedViewResponse {
2618
2545
  }
2619
2546
  export interface DeleteMessageRequest {
2620
2547
  hard_delete?: boolean;
2548
+ reason?: string;
2621
2549
  }
2622
2550
  export interface DeleteMessageResponse {
2623
2551
  duration: string;
@@ -2634,6 +2562,7 @@ export interface DeleteModerationTemplateResponse {
2634
2562
  }
2635
2563
  export interface DeleteReactionRequest {
2636
2564
  hard_delete?: boolean;
2565
+ reason?: string;
2637
2566
  }
2638
2567
  export interface DeleteReactionResponse {
2639
2568
  duration: string;
@@ -2657,6 +2586,7 @@ export interface DeleteUserRequest {
2657
2586
  delete_feeds_content?: boolean;
2658
2587
  hard_delete?: boolean;
2659
2588
  mark_messages_deleted?: boolean;
2589
+ reason?: string;
2660
2590
  }
2661
2591
  export interface DeleteUsersRequest {
2662
2592
  user_ids: string[];
@@ -2672,6 +2602,12 @@ export interface DeleteUsersResponse {
2672
2602
  duration: string;
2673
2603
  task_id: string;
2674
2604
  }
2605
+ export interface DeliveryReceipts {
2606
+ enabled: boolean;
2607
+ }
2608
+ export interface DeliveryReceiptsResponse {
2609
+ enabled?: boolean;
2610
+ }
2675
2611
  export interface Device {
2676
2612
  created_at: Date;
2677
2613
  id: string;
@@ -2753,17 +2689,6 @@ export interface EgressResponse {
2753
2689
  frame_recording?: FrameRecordingResponse;
2754
2690
  hls?: EgressHLSResponse;
2755
2691
  }
2756
- export interface EgressTaskConfig {
2757
- egress_user?: EgressUser;
2758
- frame_recording_egress_config?: FrameRecordingEgressConfig;
2759
- hls_egress_config?: HLSEgressConfig;
2760
- recording_egress_config?: RecordingEgressConfig;
2761
- rtmp_egress_config?: RTMPEgressConfig;
2762
- stt_egress_config?: STTEgressConfig;
2763
- }
2764
- export interface EgressUser {
2765
- token?: string;
2766
- }
2767
2692
  export interface EndCallRequest {
2768
2693
  }
2769
2694
  export interface EndCallResponse {
@@ -2798,29 +2723,6 @@ export interface EnrichedReaction {
2798
2723
  updated_at?: Time;
2799
2724
  user?: Data;
2800
2725
  }
2801
- export interface EntityCreator {
2802
- ban_count: number;
2803
- banned: boolean;
2804
- deleted_content_count: number;
2805
- id: string;
2806
- online: boolean;
2807
- role: string;
2808
- custom: Record<string, any>;
2809
- teams_role: Record<string, string>;
2810
- avg_response_time?: number;
2811
- ban_expires?: Date;
2812
- created_at?: Date;
2813
- deactivated_at?: Date;
2814
- deleted_at?: Date;
2815
- invisible?: boolean;
2816
- language?: string;
2817
- last_active?: Date;
2818
- last_engaged_at?: Date;
2819
- revoke_tokens_issued_before?: Date;
2820
- updated_at?: Date;
2821
- teams?: string[];
2822
- privacy_settings?: PrivacySettings;
2823
- }
2824
2726
  export interface EntityCreatorResponse {
2825
2727
  ban_count: number;
2826
2728
  banned: boolean;
@@ -2926,21 +2828,6 @@ export interface ExportUsersResponse {
2926
2828
  duration: string;
2927
2829
  task_id: string;
2928
2830
  }
2929
- export interface ExternalStorage {
2930
- abs_account_name?: string;
2931
- abs_client_id?: string;
2932
- abs_client_secret?: string;
2933
- abs_tenant_id?: string;
2934
- bucket?: string;
2935
- gcs_credentials?: string;
2936
- path?: string;
2937
- s3_api_key?: string;
2938
- s3_custom_endpoint?: string;
2939
- s3_region?: string;
2940
- s3_secret_key?: string;
2941
- storage_name?: string;
2942
- storage_type?: number;
2943
- }
2944
2831
  export interface ExternalStorageResponse {
2945
2832
  bucket: string;
2946
2833
  name: string;
@@ -3011,10 +2898,10 @@ export interface FeedGroupResponse {
3011
2898
  created_at: Date;
3012
2899
  id: string;
3013
2900
  updated_at: Date;
3014
- deleted_at?: Date;
3015
2901
  default_visibility?: string;
2902
+ deleted_at?: Date;
3016
2903
  activity_processors?: ActivityProcessorConfig[];
3017
- activity_selectors?: ActivitySelectorConfig[];
2904
+ activity_selectors?: ActivitySelectorConfigResponse[];
3018
2905
  aggregation?: AggregationConfig;
3019
2906
  custom?: Record<string, any>;
3020
2907
  notification?: NotificationConfig;
@@ -3161,8 +3048,8 @@ export interface FeedViewResponse {
3161
3048
  ranking?: RankingConfig;
3162
3049
  }
3163
3050
  export interface FeedVisibilityResponse {
3164
- description: string;
3165
3051
  name: string;
3052
+ permissions: Permission[];
3166
3053
  grants: Record<string, string[]>;
3167
3054
  }
3168
3055
  export interface FeedsModerationTemplateConfig {
@@ -3344,12 +3231,6 @@ export interface FrameRecordSettings {
3344
3231
  mode: 'available' | 'disabled' | 'auto-on';
3345
3232
  quality?: string;
3346
3233
  }
3347
- export interface FrameRecordingEgressConfig {
3348
- capture_interval_in_seconds?: number;
3349
- storage_name?: string;
3350
- external_storage?: ExternalStorage;
3351
- quality?: Quality;
3352
- }
3353
3234
  export interface FrameRecordingResponse {
3354
3235
  status: string;
3355
3236
  }
@@ -3447,6 +3328,18 @@ export interface GetCallResponse {
3447
3328
  own_capabilities: OwnCapability[];
3448
3329
  call: CallResponse;
3449
3330
  }
3331
+ export interface GetCallSessionParticipantStatsDetailsResponse {
3332
+ call_id: string;
3333
+ call_session_id: string;
3334
+ call_type: string;
3335
+ duration: string;
3336
+ user_id: string;
3337
+ user_session_id: string;
3338
+ publisher?: ParticipantSeriesPublisherStats;
3339
+ subscriber?: ParticipantSeriesSubscriberStats;
3340
+ timeframe?: ParticipantSeriesTimeframe;
3341
+ user?: ParticipantSeriesUserStats;
3342
+ }
3450
3343
  export interface GetCallTypeResponse {
3451
3344
  created_at: Date;
3452
3345
  duration: string;
@@ -3469,6 +3362,7 @@ export interface GetChannelTypeResponse {
3469
3362
  count_messages: boolean;
3470
3363
  created_at: Date;
3471
3364
  custom_events: boolean;
3365
+ delivery_events: boolean;
3472
3366
  duration: string;
3473
3367
  mark_messages_pending: boolean;
3474
3368
  max_message_length: number;
@@ -3553,6 +3447,13 @@ export interface GetFeedVisibilityResponse {
3553
3447
  duration: string;
3554
3448
  feed_visibility: FeedVisibilityResponse;
3555
3449
  }
3450
+ export interface GetFeedsRateLimitsResponse {
3451
+ duration: string;
3452
+ android?: Record<string, LimitInfo>;
3453
+ ios?: Record<string, LimitInfo>;
3454
+ server_side?: Record<string, LimitInfo>;
3455
+ web?: Record<string, LimitInfo>;
3456
+ }
3556
3457
  export interface GetFollowSuggestionsResponse {
3557
3458
  duration: string;
3558
3459
  suggestions: FeedResponse[];
@@ -3733,12 +3634,6 @@ export interface GroupedStatsResponse {
3733
3634
  name: string;
3734
3635
  unique: number;
3735
3636
  }
3736
- export interface HLSEgressConfig {
3737
- playlist_url?: string;
3738
- start_unix_nano?: number;
3739
- qualities?: Quality[];
3740
- composite_app_settings?: CompositeAppSettings;
3741
- }
3742
3637
  export interface HLSSettings {
3743
3638
  auto_on: boolean;
3744
3639
  enabled: boolean;
@@ -3868,14 +3763,32 @@ export interface IngressSettingsResponse {
3868
3763
  audio_encoding_options?: IngressAudioEncodingResponse;
3869
3764
  video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
3870
3765
  }
3766
+ export interface IngressSource {
3767
+ fps: number;
3768
+ height: number;
3769
+ width: number;
3770
+ }
3771
+ export interface IngressSourceRequest {
3772
+ fps: '30' | '60';
3773
+ height: number;
3774
+ width: number;
3775
+ }
3776
+ export interface IngressSourceResponse {
3777
+ fps: number;
3778
+ height: number;
3779
+ width: number;
3780
+ }
3871
3781
  export interface IngressVideoEncodingOptions {
3872
3782
  layers: IngressVideoLayer[];
3783
+ source?: IngressSource;
3873
3784
  }
3874
3785
  export interface IngressVideoEncodingOptionsRequest {
3875
3786
  layers: IngressVideoLayerRequest[];
3787
+ source: IngressSourceRequest;
3876
3788
  }
3877
3789
  export interface IngressVideoEncodingResponse {
3878
3790
  layers: IngressVideoLayerResponse[];
3791
+ source: IngressSourceResponse;
3879
3792
  }
3880
3793
  export interface IngressVideoLayer {
3881
3794
  bitrate: number;
@@ -4089,9 +4002,6 @@ export interface MemberAddedEvent {
4089
4002
  member?: ChannelMember;
4090
4003
  user?: User;
4091
4004
  }
4092
- export interface MemberLookup {
4093
- limit: number;
4094
- }
4095
4005
  export interface MemberRemovedEvent {
4096
4006
  channel_id: string;
4097
4007
  channel_type: string;
@@ -4277,6 +4187,17 @@ export interface MessageOptions {
4277
4187
  include_thread_participants?: boolean;
4278
4188
  }
4279
4189
  export interface MessagePaginationParams {
4190
+ created_at_after?: Date;
4191
+ created_at_after_or_equal?: Date;
4192
+ created_at_around?: Date;
4193
+ created_at_before?: Date;
4194
+ created_at_before_or_equal?: Date;
4195
+ id_around?: string;
4196
+ id_gt?: string;
4197
+ id_gte?: string;
4198
+ id_lt?: string;
4199
+ id_lte?: string;
4200
+ limit?: number;
4280
4201
  }
4281
4202
  export interface MessageReadEvent {
4282
4203
  channel_id: string;
@@ -4455,6 +4376,13 @@ export interface MessageWithChannelResponse {
4455
4376
  reminder?: ReminderResponseData;
4456
4377
  shared_location?: SharedLocationResponseData;
4457
4378
  }
4379
+ export interface MetricThreshold {
4380
+ level: string;
4381
+ operator: string;
4382
+ value: number;
4383
+ value_unit?: string;
4384
+ window_seconds?: number;
4385
+ }
4458
4386
  export interface ModerationActionConfig {
4459
4387
  action: string;
4460
4388
  description: string;
@@ -4494,16 +4422,21 @@ export interface ModerationConfig {
4494
4422
  video_call_rule_config?: VideoCallRuleConfig;
4495
4423
  }
4496
4424
  export interface ModerationCustomActionEvent {
4425
+ action_id: string;
4497
4426
  created_at: Date;
4427
+ custom: Record<string, any>;
4428
+ review_queue_item: ReviewQueueItemResponse;
4498
4429
  type: string;
4499
- item?: ReviewQueueItem;
4500
- message?: Message;
4501
- user?: User;
4430
+ received_at?: Date;
4431
+ action_options?: Record<string, any>;
4432
+ message?: MessageResponse;
4502
4433
  }
4503
4434
  export interface ModerationDashboardPreferences {
4504
4435
  disable_flagging_reviewed_entity?: boolean;
4505
4436
  flag_user_on_flagged_content?: boolean;
4506
4437
  media_queue_blur_enabled?: boolean;
4438
+ allowed_moderation_action_reasons?: string[];
4439
+ overview_dashboard?: OverviewDashboardConfig;
4507
4440
  }
4508
4441
  export interface ModerationFlagResponse {
4509
4442
  created_at: Date;
@@ -4531,10 +4464,11 @@ export interface ModerationFlaggedEvent {
4531
4464
  }
4532
4465
  export interface ModerationMarkReviewedEvent {
4533
4466
  created_at: Date;
4467
+ custom: Record<string, any>;
4468
+ item: ReviewQueueItemResponse;
4534
4469
  type: string;
4535
- item?: ReviewQueueItem;
4536
- message?: Message;
4537
- user?: User;
4470
+ received_at?: Date;
4471
+ message?: MessageResponse;
4538
4472
  }
4539
4473
  export interface ModerationPayload {
4540
4474
  images?: string[];
@@ -4686,8 +4620,6 @@ export interface NotificationTrigger {
4686
4620
  text: string;
4687
4621
  type: string;
4688
4622
  }
4689
- export interface NullTime {
4690
- }
4691
4623
  export interface OCRRule {
4692
4624
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
4693
4625
  label: string;
@@ -4695,6 +4627,19 @@ export interface OCRRule {
4695
4627
  export interface OnlyUserID {
4696
4628
  id: string;
4697
4629
  }
4630
+ export interface OverviewDashboardConfig {
4631
+ default_date_range_days?: number;
4632
+ visible_charts?: string[];
4633
+ }
4634
+ export interface OwnCapabilitiesBatchRequest {
4635
+ feeds: string[];
4636
+ user_id?: string;
4637
+ user?: UserRequest;
4638
+ }
4639
+ export interface OwnCapabilitiesBatchResponse {
4640
+ duration: string;
4641
+ capabilities: Record<string, FeedOwnCapability[]>;
4642
+ }
4698
4643
  export declare const OwnCapability: {
4699
4644
  readonly BLOCK_USERS: "block-users";
4700
4645
  readonly CHANGE_MAX_DURATION: "change-max-duration";
@@ -4827,6 +4772,41 @@ export interface ParticipantReportResponse {
4827
4772
  publishers?: PublisherStatsResponse;
4828
4773
  subscribers?: SubscriberStatsResponse;
4829
4774
  }
4775
+ export interface ParticipantSeriesPublisherStats {
4776
+ global?: Record<string, number[][]>;
4777
+ global_thresholds?: Record<string, MetricThreshold[]>;
4778
+ tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
4779
+ }
4780
+ export interface ParticipantSeriesSubscriberStats {
4781
+ subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
4782
+ global?: Record<string, number[][]>;
4783
+ global_thresholds?: Record<string, MetricThreshold[]>;
4784
+ }
4785
+ export interface ParticipantSeriesSubscriptionTrackMetrics {
4786
+ publisher_user_id: string;
4787
+ publisher_name?: string;
4788
+ publisher_user_session_id?: string;
4789
+ tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
4790
+ }
4791
+ export interface ParticipantSeriesTimeframe {
4792
+ max_points: number;
4793
+ since: Date;
4794
+ step_seconds: number;
4795
+ until: Date;
4796
+ }
4797
+ export interface ParticipantSeriesTrackMetrics {
4798
+ track_id: string;
4799
+ codec?: string;
4800
+ label?: string;
4801
+ rid?: string;
4802
+ track_type?: string;
4803
+ metrics?: Record<string, number[][]>;
4804
+ thresholds?: Record<string, MetricThreshold[]>;
4805
+ }
4806
+ export interface ParticipantSeriesUserStats {
4807
+ metrics?: Record<string, number[][]>;
4808
+ thresholds?: Record<string, MetricThreshold[]>;
4809
+ }
4830
4810
  export interface PendingMessageEvent {
4831
4811
  created_at: Date;
4832
4812
  method: string;
@@ -5014,13 +4994,21 @@ export interface PollVotesResponse {
5014
4994
  prev?: string;
5015
4995
  }
5016
4996
  export interface PrivacySettings {
4997
+ delivery_receipts?: DeliveryReceipts;
5017
4998
  read_receipts?: ReadReceipts;
5018
4999
  typing_indicators?: TypingIndicators;
5019
5000
  }
5020
5001
  export interface PrivacySettingsResponse {
5002
+ delivery_receipts?: DeliveryReceiptsResponse;
5021
5003
  read_receipts?: ReadReceiptsResponse;
5022
5004
  typing_indicators?: TypingIndicatorsResponse;
5023
5005
  }
5006
+ export interface PublishedTrackFlags {
5007
+ audio: boolean;
5008
+ screenshare: boolean;
5009
+ screenshare_audio: boolean;
5010
+ video: boolean;
5011
+ }
5024
5012
  export interface PublisherAllMetrics {
5025
5013
  audio?: PublisherAudioMetrics;
5026
5014
  rtt_ms?: ActiveCallsLatencyStats;
@@ -5148,14 +5136,6 @@ export interface PushTemplate {
5148
5136
  updated_at: Date;
5149
5137
  template?: string;
5150
5138
  }
5151
- export interface Quality {
5152
- bitdepth?: number;
5153
- framerate?: number;
5154
- height?: number;
5155
- name?: string;
5156
- video_bitrate?: number;
5157
- width?: number;
5158
- }
5159
5139
  export interface QualityScoreReport {
5160
5140
  histogram: ReportByHistogramBucket[];
5161
5141
  }
@@ -5268,6 +5248,28 @@ export interface QueryCallParticipantsResponse {
5268
5248
  participants: CallParticipantResponse[];
5269
5249
  call: CallResponse;
5270
5250
  }
5251
+ export interface QueryCallSessionParticipantStatsResponse {
5252
+ call_id: string;
5253
+ call_session_id: string;
5254
+ call_type: string;
5255
+ duration: string;
5256
+ participants: CallStatsParticipant[];
5257
+ counts: CallStatsParticipantCounts;
5258
+ call_ended_at?: Date;
5259
+ call_started_at?: Date;
5260
+ next?: string;
5261
+ prev?: string;
5262
+ tmp_data_source?: string;
5263
+ }
5264
+ export interface QueryCallSessionParticipantStatsTimelineResponse {
5265
+ call_id: string;
5266
+ call_session_id: string;
5267
+ call_type: string;
5268
+ duration: string;
5269
+ user_id: string;
5270
+ user_session_id: string;
5271
+ events: CallParticipantTimeline[];
5272
+ }
5271
5273
  export interface QueryCallStatsRequest {
5272
5274
  limit?: number;
5273
5275
  next?: string;
@@ -5683,11 +5685,6 @@ export interface RTMPBroadcastRequest {
5683
5685
  stream_key?: string;
5684
5686
  layout?: LayoutSettingsRequest;
5685
5687
  }
5686
- export interface RTMPEgressConfig {
5687
- rtmp_location?: string;
5688
- composite_app_settings?: CompositeAppSettings;
5689
- quality?: Quality;
5690
- }
5691
5688
  export interface RTMPIngress {
5692
5689
  address: string;
5693
5690
  }
@@ -5817,6 +5814,8 @@ export interface ReadStateResponse {
5817
5814
  last_read: Date;
5818
5815
  unread_messages: number;
5819
5816
  user: UserResponse;
5817
+ last_delivered_at?: Date;
5818
+ last_delivered_message_id?: string;
5820
5819
  last_read_message_id?: string;
5821
5820
  }
5822
5821
  export interface RecordSettings {
@@ -5837,14 +5836,6 @@ export interface RecordSettingsResponse {
5837
5836
  quality: string;
5838
5837
  layout: LayoutSettingsResponse;
5839
5838
  }
5840
- export interface RecordingEgressConfig {
5841
- audio_only?: boolean;
5842
- storage_name?: string;
5843
- composite_app_settings?: CompositeAppSettings;
5844
- external_storage?: ExternalStorage;
5845
- quality?: Quality;
5846
- video_orientation_hint?: VideoOrientation;
5847
- }
5848
5839
  export interface RejectFeedMemberInviteRequest {
5849
5840
  user_id?: string;
5850
5841
  user?: UserRequest;
@@ -5942,46 +5933,6 @@ export interface RestoreActionRequest {
5942
5933
  export interface RestoreUsersRequest {
5943
5934
  user_ids: string[];
5944
5935
  }
5945
- export interface ReviewQueueItem {
5946
- ai_text_severity: string;
5947
- bounce_count: number;
5948
- config_key: string;
5949
- content_changed: boolean;
5950
- created_at: Date;
5951
- entity_id: string;
5952
- entity_type: string;
5953
- flags_count: number;
5954
- has_image: boolean;
5955
- has_text: boolean;
5956
- has_video: boolean;
5957
- id: string;
5958
- moderation_payload_hash: string;
5959
- recommended_action: string;
5960
- reviewed_by: string;
5961
- severity: number;
5962
- status: string;
5963
- updated_at: Date;
5964
- actions: ActionLog[];
5965
- bans: Ban[];
5966
- flag_labels: string[];
5967
- flag_types: string[];
5968
- flags: Flag[];
5969
- languages: string[];
5970
- reporter_ids: string[];
5971
- teams: string[];
5972
- archived_at: NullTime;
5973
- completed_at: NullTime;
5974
- reviewed_at: NullTime;
5975
- activity?: EnrichedActivity;
5976
- assigned_to?: User;
5977
- call?: Call;
5978
- entity_creator?: EntityCreator;
5979
- feeds_v2_activity?: EnrichedActivity;
5980
- feeds_v2_reaction?: Reaction;
5981
- message?: Message;
5982
- moderation_payload?: ModerationPayload;
5983
- reaction?: Reaction;
5984
- }
5985
5936
  export interface ReviewQueueItemNewEvent {
5986
5937
  created_at: Date;
5987
5938
  custom: Record<string, any>;
@@ -5998,6 +5949,7 @@ export interface ReviewQueueItemResponse {
5998
5949
  entity_type: string;
5999
5950
  flags_count: number;
6000
5951
  id: string;
5952
+ latest_moderator_action: string;
6001
5953
  recommended_action: string;
6002
5954
  reviewed_by: string;
6003
5955
  severity: number;
@@ -6054,7 +6006,7 @@ export interface Role {
6054
6006
  scopes: string[];
6055
6007
  }
6056
6008
  export interface RuleBuilderAction {
6057
- type?: string;
6009
+ type: 'ban_user' | 'flag_user' | 'flag_content' | 'block_content' | 'shadow_content' | 'bounce_flag_content' | 'bounce_content' | 'bounce_remove_content';
6058
6010
  ban_options?: BanOptions;
6059
6011
  flag_user_options?: FlagUserOptions;
6060
6012
  }
@@ -6101,36 +6053,9 @@ export interface SDKUsageReport {
6101
6053
  export interface SDKUsageReportResponse {
6102
6054
  daily: DailyAggregateSDKUsageReportResponse[];
6103
6055
  }
6104
- export interface SFUIDLastSeen {
6105
- id: string;
6106
- last_seen: Date;
6107
- process_start_time: number;
6108
- }
6109
6056
  export interface SRTIngress {
6110
6057
  address: string;
6111
6058
  }
6112
- export interface StoriesFeedUpdatedEvent {
6113
- created_at: Date;
6114
- fid: string;
6115
- custom: Record<string, any>;
6116
- type: string;
6117
- feed_visibility?: string;
6118
- received_at?: Date;
6119
- activities?: ActivityResponse[];
6120
- aggregated_activities?: AggregatedActivityResponse[];
6121
- user?: UserResponseCommonFields;
6122
- }
6123
- export interface STTEgressConfig {
6124
- closed_captions_enabled?: boolean;
6125
- language?: string;
6126
- storage_name?: string;
6127
- translations_enabled?: boolean;
6128
- upload_transcriptions?: boolean;
6129
- whisper_server_base_url?: string;
6130
- translation_languages?: string[];
6131
- external_storage?: ExternalStorage;
6132
- speech_segment_config?: SpeechSegmentConfig;
6133
- }
6134
6059
  export interface ScreensharingSettings {
6135
6060
  access_request_enabled: boolean;
6136
6061
  enabled: boolean;
@@ -6314,6 +6239,7 @@ export interface SessionSettingsResponse {
6314
6239
  inactivity_timeout_seconds: number;
6315
6240
  }
6316
6241
  export interface ShadowBlockActionRequest {
6242
+ reason?: string;
6317
6243
  }
6318
6244
  export interface SharedLocation {
6319
6245
  channel_cid: string;
@@ -6486,6 +6412,17 @@ export interface StoriesConfig {
6486
6412
  skip_watched?: boolean;
6487
6413
  track_watched?: boolean;
6488
6414
  }
6415
+ export interface StoriesFeedUpdatedEvent {
6416
+ created_at: Date;
6417
+ fid: string;
6418
+ custom: Record<string, any>;
6419
+ type: string;
6420
+ feed_visibility?: string;
6421
+ received_at?: Date;
6422
+ activities?: ActivityResponse[];
6423
+ aggregated_activities?: AggregatedActivityResponse[];
6424
+ user?: UserResponseCommonFields;
6425
+ }
6489
6426
  export interface SubmitActionRequest {
6490
6427
  action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
6491
6428
  item_id: string;
@@ -6497,6 +6434,7 @@ export interface SubmitActionRequest {
6497
6434
  delete_reaction?: DeleteReactionRequest;
6498
6435
  delete_user?: DeleteUserRequest;
6499
6436
  mark_reviewed?: MarkReviewedRequest;
6437
+ shadow_block?: ShadowBlockActionRequest;
6500
6438
  unban?: UnbanActionRequest;
6501
6439
  user?: UserRequest;
6502
6440
  }
@@ -6886,6 +6824,8 @@ export interface UpdateAppRequest {
6886
6824
  xiaomi_config?: XiaomiConfig;
6887
6825
  }
6888
6826
  export interface UpdateBlockListRequest {
6827
+ is_leet_check_enabled?: boolean;
6828
+ is_plural_check_enabled?: boolean;
6889
6829
  team?: string;
6890
6830
  words?: string[];
6891
6831
  }
@@ -6993,6 +6933,7 @@ export interface UpdateChannelTypeRequest {
6993
6933
  connect_events?: boolean;
6994
6934
  count_messages?: boolean;
6995
6935
  custom_events?: boolean;
6936
+ delivery_events?: boolean;
6996
6937
  mark_messages_pending?: boolean;
6997
6938
  mutes?: boolean;
6998
6939
  partition_size?: number;
@@ -7025,6 +6966,7 @@ export interface UpdateChannelTypeResponse {
7025
6966
  count_messages: boolean;
7026
6967
  created_at: Date;
7027
6968
  custom_events: boolean;
6969
+ delivery_events: boolean;
7028
6970
  duration: string;
7029
6971
  mark_messages_pending: boolean;
7030
6972
  max_message_length: number;
@@ -7090,6 +7032,7 @@ export interface UpdateExternalStorageResponse {
7090
7032
  type: 's3' | 'gcs' | 'abs';
7091
7033
  }
7092
7034
  export interface UpdateFeedGroupRequest {
7035
+ default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
7093
7036
  activity_processors?: ActivityProcessorConfig[];
7094
7037
  activity_selectors?: ActivitySelectorConfig[];
7095
7038
  aggregation?: AggregationConfig;
@@ -7279,6 +7222,28 @@ export interface UpdatedCallPermissionsEvent {
7279
7222
  user: UserResponse;
7280
7223
  type: string;
7281
7224
  }
7225
+ export interface UploadChannelFileRequest {
7226
+ file?: string;
7227
+ user?: OnlyUserID;
7228
+ }
7229
+ export interface UploadChannelFileResponse {
7230
+ duration: string;
7231
+ file?: string;
7232
+ moderation_action?: string;
7233
+ thumb_url?: string;
7234
+ }
7235
+ export interface UploadChannelRequest {
7236
+ file?: string;
7237
+ upload_sizes?: ImageSize[];
7238
+ user?: OnlyUserID;
7239
+ }
7240
+ export interface UploadChannelResponse {
7241
+ duration: string;
7242
+ file?: string;
7243
+ moderation_action?: string;
7244
+ thumb_url?: string;
7245
+ upload_sizes?: ImageSize[];
7246
+ }
7282
7247
  export interface UpsertActivitiesRequest {
7283
7248
  activities: ActivityRequest[];
7284
7249
  }
@@ -7644,9 +7609,6 @@ export interface VideoEndCallRequest {
7644
7609
  }
7645
7610
  export interface VideoKickUserRequest {
7646
7611
  }
7647
- export interface VideoOrientation {
7648
- orientation?: number;
7649
- }
7650
7612
  export interface VideoReactionOverTimeResponse {
7651
7613
  by_minute?: CountByMinuteResponse[];
7652
7614
  }