@stream-io/node-sdk 0.7.41 → 0.7.43

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.
@@ -130,6 +130,8 @@ export interface AWSRekognitionRule {
130
130
  label: string;
131
131
 
132
132
  min_confidence: number;
133
+
134
+ subclassifications?: Record<string, boolean>;
133
135
  }
134
136
 
135
137
  export interface AcceptFeedMemberInviteRequest {
@@ -547,7 +549,7 @@ export interface ActivityResponse {
547
549
 
548
550
  reaction_count: number;
549
551
 
550
- restrict_replies: string;
552
+ restrict_replies: 'everyone' | 'people_i_follow' | 'nobody';
551
553
 
552
554
  score: number;
553
555
 
@@ -595,6 +597,10 @@ export interface ActivityResponse {
595
597
 
596
598
  friend_reaction_count?: number;
597
599
 
600
+ is_read?: boolean;
601
+
602
+ is_seen?: boolean;
603
+
598
604
  is_watched?: boolean;
599
605
 
600
606
  moderation_action?: string;
@@ -662,7 +668,14 @@ export interface ActivitySelectorConfig {
662
668
  }
663
669
 
664
670
  export interface ActivitySelectorConfigResponse {
665
- type: string;
671
+ type:
672
+ | 'popular'
673
+ | 'proximity'
674
+ | 'following'
675
+ | 'current_feed'
676
+ | 'query'
677
+ | 'interest'
678
+ | 'follow_suggestion';
666
679
 
667
680
  cutoff_time?: Date;
668
681
 
@@ -899,6 +912,18 @@ export interface AddReactionResponse {
899
912
  notification_created?: boolean;
900
913
  }
901
914
 
915
+ export interface AddUserGroupMembersRequest {
916
+ member_ids: string[];
917
+
918
+ team_id?: string;
919
+ }
920
+
921
+ export interface AddUserGroupMembersResponse {
922
+ duration: string;
923
+
924
+ user_group?: UserGroupResponse;
925
+ }
926
+
902
927
  export interface AggregatedActivityResponse {
903
928
  activity_count: number;
904
929
 
@@ -916,6 +941,10 @@ export interface AggregatedActivityResponse {
916
941
 
917
942
  activities: ActivityResponse[];
918
943
 
944
+ is_read?: boolean;
945
+
946
+ is_seen?: boolean;
947
+
919
948
  is_watched?: boolean;
920
949
  }
921
950
 
@@ -950,12 +979,16 @@ export interface AppResponseFields {
950
979
 
951
980
  max_aggregated_activities_length: number;
952
981
 
982
+ moderation_audio_call_moderation_enabled: boolean;
983
+
953
984
  moderation_enabled: boolean;
954
985
 
955
986
  moderation_llm_configurability_enabled: boolean;
956
987
 
957
988
  moderation_multitenant_blocklist_enabled: boolean;
958
989
 
990
+ moderation_video_call_moderation_enabled: boolean;
991
+
959
992
  moderation_webhook_url: string;
960
993
 
961
994
  multi_tenant_enabled: boolean;
@@ -1762,6 +1795,22 @@ export interface CallAcceptedEvent {
1762
1795
  type: string;
1763
1796
  }
1764
1797
 
1798
+ export interface CallActionOptions {
1799
+ duration?: number;
1800
+
1801
+ flag_reason?: string;
1802
+
1803
+ kick_reason?: string;
1804
+
1805
+ mute_audio?: boolean;
1806
+
1807
+ mute_video?: boolean;
1808
+
1809
+ reason?: string;
1810
+
1811
+ warning_text?: string;
1812
+ }
1813
+
1765
1814
  export interface CallClosedCaption {
1766
1815
  end_time: Date;
1767
1816
 
@@ -1818,6 +1867,12 @@ export interface CallCreatedEvent {
1818
1867
  type: string;
1819
1868
  }
1820
1869
 
1870
+ export interface CallCustomPropertyParameters {
1871
+ operator?: string;
1872
+
1873
+ property_key?: string;
1874
+ }
1875
+
1821
1876
  export interface CallDTMFEvent {
1822
1877
  call_cid: string;
1823
1878
 
@@ -2324,6 +2379,14 @@ export interface CallRtmpBroadcastStoppedEvent {
2324
2379
  type: string;
2325
2380
  }
2326
2381
 
2382
+ export interface CallRuleActionSequence {
2383
+ violation_number?: number;
2384
+
2385
+ actions?: string[];
2386
+
2387
+ call_options?: CallActionOptions;
2388
+ }
2389
+
2327
2390
  export interface CallSessionEndedEvent {
2328
2391
  call_cid: string;
2329
2392
 
@@ -2668,6 +2731,10 @@ export interface CallStatsReportReadyEvent {
2668
2731
  session_id: string;
2669
2732
 
2670
2733
  type: string;
2734
+
2735
+ is_trimmed?: boolean;
2736
+
2737
+ participants_overview?: CallStatsParticipant[];
2671
2738
  }
2672
2739
 
2673
2740
  export interface CallStatsReportSummaryResponse {
@@ -2778,6 +2845,10 @@ export interface CallTypeResponse {
2778
2845
  external_storage?: string;
2779
2846
  }
2780
2847
 
2848
+ export interface CallTypeRuleParameters {
2849
+ call_type?: string;
2850
+ }
2851
+
2781
2852
  export interface CallUpdatedEvent {
2782
2853
  call_cid: string;
2783
2854
 
@@ -2826,6 +2897,12 @@ export interface CallUserMutedEvent {
2826
2897
  type: string;
2827
2898
  }
2828
2899
 
2900
+ export interface CallViolationCountParameters {
2901
+ threshold?: number;
2902
+
2903
+ time_window?: string;
2904
+ }
2905
+
2829
2906
  export interface CallsPerDayReport {
2830
2907
  count: number;
2831
2908
  }
@@ -3943,6 +4020,14 @@ export interface ClosedCaptionEvent {
3943
4020
  type: string;
3944
4021
  }
3945
4022
 
4023
+ export interface ClosedCaptionRuleParameters {
4024
+ threshold?: number;
4025
+
4026
+ harm_labels?: string[];
4027
+
4028
+ llm_harm_labels?: Record<string, string>;
4029
+ }
4030
+
3946
4031
  export interface CollectUserFeedbackRequest {
3947
4032
  rating: number;
3948
4033
 
@@ -4118,7 +4203,7 @@ export interface CommentResponse {
4118
4203
 
4119
4204
  score: number;
4120
4205
 
4121
- status: string;
4206
+ status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
4122
4207
 
4123
4208
  updated_at: Date;
4124
4209
 
@@ -4220,6 +4305,8 @@ export interface ConfigResponse {
4220
4305
 
4221
4306
  ai_image_config?: AIImageConfig;
4222
4307
 
4308
+ ai_image_subclassifications?: Record<string, string[]>;
4309
+
4223
4310
  ai_text_config?: AITextConfig;
4224
4311
 
4225
4312
  ai_video_config?: AIVideoConfig;
@@ -4596,6 +4683,8 @@ export interface CreateImportRequest {
4596
4683
  mode: 'insert' | 'upsert';
4597
4684
 
4598
4685
  path: string;
4686
+
4687
+ merge_custom?: boolean;
4599
4688
  }
4600
4689
 
4601
4690
  export interface CreateImportResponse {
@@ -4732,6 +4821,24 @@ export interface CreateSIPTrunkResponse {
4732
4821
  sip_trunk?: SIPTrunkResponse;
4733
4822
  }
4734
4823
 
4824
+ export interface CreateUserGroupRequest {
4825
+ name: string;
4826
+
4827
+ description?: string;
4828
+
4829
+ id?: string;
4830
+
4831
+ team_id?: string;
4832
+
4833
+ member_ids?: string[];
4834
+ }
4835
+
4836
+ export interface CreateUserGroupResponse {
4837
+ duration: string;
4838
+
4839
+ user_group?: UserGroupResponse;
4840
+ }
4841
+
4735
4842
  export interface CustomActionRequestPayload {
4736
4843
  id?: string;
4737
4844
 
@@ -4844,6 +4951,12 @@ export interface DailyMetricStatsResponse {
4844
4951
  daily: DailyMetricResponse[];
4845
4952
  }
4846
4953
 
4954
+ export interface DailyValue {
4955
+ date: string;
4956
+
4957
+ value: number;
4958
+ }
4959
+
4847
4960
  export interface Data {
4848
4961
  id: string;
4849
4962
  }
@@ -4925,6 +5038,10 @@ export interface DeleteActivityReactionResponse {
4925
5038
  }
4926
5039
 
4927
5040
  export interface DeleteActivityRequestPayload {
5041
+ entity_id?: string;
5042
+
5043
+ entity_type?: string;
5044
+
4928
5045
  hard_delete?: boolean;
4929
5046
 
4930
5047
  reason?: string;
@@ -5001,6 +5118,10 @@ export interface DeleteCommentReactionResponse {
5001
5118
  }
5002
5119
 
5003
5120
  export interface DeleteCommentRequestPayload {
5121
+ entity_id?: string;
5122
+
5123
+ entity_type?: string;
5124
+
5004
5125
  hard_delete?: boolean;
5005
5126
 
5006
5127
  reason?: string;
@@ -5059,6 +5180,10 @@ export interface DeleteImportV2TaskResponse {
5059
5180
  }
5060
5181
 
5061
5182
  export interface DeleteMessageRequestPayload {
5183
+ entity_id?: string;
5184
+
5185
+ entity_type?: string;
5186
+
5062
5187
  hard_delete?: boolean;
5063
5188
 
5064
5189
  reason?: string;
@@ -5083,6 +5208,10 @@ export interface DeleteModerationTemplateResponse {
5083
5208
  }
5084
5209
 
5085
5210
  export interface DeleteReactionRequestPayload {
5211
+ entity_id?: string;
5212
+
5213
+ entity_type?: string;
5214
+
5086
5215
  hard_delete?: boolean;
5087
5216
 
5088
5217
  reason?: string;
@@ -5125,6 +5254,10 @@ export interface DeleteUserRequestPayload {
5125
5254
 
5126
5255
  delete_feeds_content?: boolean;
5127
5256
 
5257
+ entity_id?: string;
5258
+
5259
+ entity_type?: string;
5260
+
5128
5261
  hard_delete?: boolean;
5129
5262
 
5130
5263
  mark_messages_deleted?: boolean;
@@ -5749,7 +5882,12 @@ export interface FeedGroupResponse {
5749
5882
 
5750
5883
  updated_at: Date;
5751
5884
 
5752
- default_visibility?: string;
5885
+ default_visibility?:
5886
+ | 'public'
5887
+ | 'visible'
5888
+ | 'followers'
5889
+ | 'members'
5890
+ | 'private';
5753
5891
 
5754
5892
  deleted_at?: Date;
5755
5893
 
@@ -5770,6 +5908,22 @@ export interface FeedGroupResponse {
5770
5908
  stories?: StoriesConfig;
5771
5909
  }
5772
5910
 
5911
+ export interface FeedGroupRestoredEvent {
5912
+ created_at: Date;
5913
+
5914
+ fid: string;
5915
+
5916
+ group_id: string;
5917
+
5918
+ custom: Record<string, any>;
5919
+
5920
+ type: string;
5921
+
5922
+ feed_visibility?: string;
5923
+
5924
+ received_at?: Date;
5925
+ }
5926
+
5773
5927
  export interface FeedInput {
5774
5928
  description?: string;
5775
5929
 
@@ -5965,7 +6119,7 @@ export interface FeedResponse {
5965
6119
 
5966
6120
  deleted_at?: Date;
5967
6121
 
5968
- visibility?: string;
6122
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
5969
6123
 
5970
6124
  filter_tags?: string[];
5971
6125
 
@@ -6013,7 +6167,7 @@ export interface FeedSuggestionResponse {
6013
6167
 
6014
6168
  recommendation_score?: number;
6015
6169
 
6016
- visibility?: string;
6170
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
6017
6171
 
6018
6172
  filter_tags?: string[];
6019
6173
 
@@ -6743,6 +6897,8 @@ export interface GetCommandResponse {
6743
6897
  export interface GetCommentRepliesResponse {
6744
6898
  duration: string;
6745
6899
 
6900
+ sort: string;
6901
+
6746
6902
  comments: ThreadedCommentResponse[];
6747
6903
 
6748
6904
  next?: string;
@@ -6759,6 +6915,8 @@ export interface GetCommentResponse {
6759
6915
  export interface GetCommentsResponse {
6760
6916
  duration: string;
6761
6917
 
6918
+ sort: string;
6919
+
6762
6920
  comments: ThreadedCommentResponse[];
6763
6921
 
6764
6922
  next?: string;
@@ -7125,6 +7283,12 @@ export interface GetThreadResponse {
7125
7283
  thread: ThreadStateResponse;
7126
7284
  }
7127
7285
 
7286
+ export interface GetUserGroupResponse {
7287
+ duration: string;
7288
+
7289
+ user_group?: UserGroupResponse;
7290
+ }
7291
+
7128
7292
  export interface GoLiveRequest {
7129
7293
  recording_storage_name?: string;
7130
7294
 
@@ -7342,6 +7506,8 @@ export interface ImportV2TaskItem {
7342
7506
  }
7343
7507
 
7344
7508
  export interface ImportV2TaskSettings {
7509
+ merge_custom?: boolean;
7510
+
7345
7511
  mode?: string;
7346
7512
 
7347
7513
  path?: string;
@@ -7361,6 +7527,8 @@ export interface ImportV2TaskSettingsS3 {
7361
7527
 
7362
7528
  export interface IndividualRecordSettings {
7363
7529
  mode: 'available' | 'disabled' | 'auto-on';
7530
+
7531
+ output_types?: string[];
7364
7532
  }
7365
7533
 
7366
7534
  export interface IndividualRecordingResponse {
@@ -7369,10 +7537,14 @@ export interface IndividualRecordingResponse {
7369
7537
 
7370
7538
  export interface IndividualRecordingSettingsRequest {
7371
7539
  mode: 'available' | 'disabled' | 'auto-on';
7540
+
7541
+ output_types?: string[];
7372
7542
  }
7373
7543
 
7374
7544
  export interface IndividualRecordingSettingsResponse {
7375
7545
  mode: 'available' | 'disabled' | 'auto-on';
7546
+
7547
+ output_types?: string[];
7376
7548
  }
7377
7549
 
7378
7550
  export interface IngressAudioEncodingOptions {
@@ -7557,6 +7729,14 @@ export interface JoinCallAPIMetrics {
7557
7729
  latency?: ActiveCallsLatencyStats;
7558
7730
  }
7559
7731
 
7732
+ export interface KeyframeRuleParameters {
7733
+ min_confidence?: number;
7734
+
7735
+ threshold?: number;
7736
+
7737
+ harm_labels?: string[];
7738
+ }
7739
+
7560
7740
  export interface KickUserRequest {
7561
7741
  user_id: string;
7562
7742
 
@@ -7812,6 +7992,12 @@ export interface ListTranscriptionsResponse {
7812
7992
  transcriptions: CallTranscription[];
7813
7993
  }
7814
7994
 
7995
+ export interface ListUserGroupsResponse {
7996
+ duration: string;
7997
+
7998
+ user_groups: UserGroupResponse[];
7999
+ }
8000
+
7815
8001
  export interface LocationResponse {
7816
8002
  continent_code: string;
7817
8003
 
@@ -7865,7 +8051,31 @@ export interface MarkReadRequest {
7865
8051
  export interface MarkReadResponse {
7866
8052
  duration: string;
7867
8053
 
7868
- event?: MessageReadEvent;
8054
+ event?: MarkReadResponseEvent;
8055
+ }
8056
+
8057
+ export interface MarkReadResponseEvent {
8058
+ channel_id: string;
8059
+
8060
+ channel_type: string;
8061
+
8062
+ cid: string;
8063
+
8064
+ created_at: Date;
8065
+
8066
+ type: string;
8067
+
8068
+ channel_last_message_at?: Date;
8069
+
8070
+ last_read_message_id?: string;
8071
+
8072
+ team?: string;
8073
+
8074
+ channel?: ChannelResponse;
8075
+
8076
+ thread?: ThreadResponse;
8077
+
8078
+ user?: UserResponseCommonFields;
7869
8079
  }
7870
8080
 
7871
8081
  export interface MarkReviewedRequestPayload {
@@ -8285,24 +8495,32 @@ export interface MessagePaginationParams {
8285
8495
  }
8286
8496
 
8287
8497
  export interface MessageReadEvent {
8288
- channel_id: string;
8498
+ created_at: Date;
8289
8499
 
8290
- channel_type: string;
8500
+ custom: Record<string, any>;
8291
8501
 
8292
- cid: string;
8502
+ type: string;
8293
8503
 
8294
- created_at: Date;
8504
+ channel_id?: string;
8295
8505
 
8296
- type: string;
8506
+ channel_member_count?: number;
8297
8507
 
8298
- channel_last_message_at?: Date;
8508
+ channel_message_count?: number;
8509
+
8510
+ channel_type?: string;
8511
+
8512
+ cid?: string;
8299
8513
 
8300
8514
  last_read_message_id?: string;
8301
8515
 
8516
+ received_at?: Date;
8517
+
8302
8518
  team?: string;
8303
8519
 
8304
8520
  channel?: ChannelResponse;
8305
8521
 
8522
+ channel_custom?: Record<string, any>;
8523
+
8306
8524
  thread?: ThreadResponse;
8307
8525
 
8308
8526
  user?: UserResponseCommonFields;
@@ -8315,6 +8533,8 @@ export interface MessageRequest {
8315
8533
 
8316
8534
  mentioned_channel?: boolean;
8317
8535
 
8536
+ mentioned_here?: boolean;
8537
+
8318
8538
  mml?: string;
8319
8539
 
8320
8540
  parent_id?: string;
@@ -8341,6 +8561,8 @@ export interface MessageRequest {
8341
8561
 
8342
8562
  attachments?: Attachment[];
8343
8563
 
8564
+ mentioned_roles?: string[];
8565
+
8344
8566
  mentioned_users?: string[];
8345
8567
 
8346
8568
  restricted_visibility?: string[];
@@ -8365,6 +8587,8 @@ export interface MessageResponse {
8365
8587
 
8366
8588
  mentioned_channel: boolean;
8367
8589
 
8590
+ mentioned_here: boolean;
8591
+
8368
8592
  pinned: boolean;
8369
8593
 
8370
8594
  reply_count: number;
@@ -8419,6 +8643,8 @@ export interface MessageResponse {
8419
8643
 
8420
8644
  show_in_channel?: boolean;
8421
8645
 
8646
+ mentioned_roles?: string[];
8647
+
8422
8648
  thread_participants?: UserResponse[];
8423
8649
 
8424
8650
  draft?: DraftResponse;
@@ -8545,6 +8771,8 @@ export interface MessageWithChannelResponse {
8545
8771
 
8546
8772
  mentioned_channel: boolean;
8547
8773
 
8774
+ mentioned_here: boolean;
8775
+
8548
8776
  pinned: boolean;
8549
8777
 
8550
8778
  reply_count: number;
@@ -8601,6 +8829,8 @@ export interface MessageWithChannelResponse {
8601
8829
 
8602
8830
  show_in_channel?: boolean;
8603
8831
 
8832
+ mentioned_roles?: string[];
8833
+
8604
8834
  thread_participants?: UserResponse[];
8605
8835
 
8606
8836
  draft?: DraftResponse;
@@ -8634,6 +8864,12 @@ export interface MetricDescriptor {
8634
8864
  unit?: string;
8635
8865
  }
8636
8866
 
8867
+ export interface MetricStats {
8868
+ total: number;
8869
+
8870
+ daily?: DailyValue[];
8871
+ }
8872
+
8637
8873
  export interface MetricThreshold {
8638
8874
  level: string;
8639
8875
 
@@ -8854,6 +9090,16 @@ export interface ModerationResponse {
8854
9090
  toxic: number;
8855
9091
  }
8856
9092
 
9093
+ export interface ModerationRuleInfo {
9094
+ description: string;
9095
+
9096
+ id: string;
9097
+
9098
+ name: string;
9099
+
9100
+ type: string;
9101
+ }
9102
+
8857
9103
  export interface ModerationRuleV2Response {
8858
9104
  created_at: Date;
8859
9105
 
@@ -8873,15 +9119,41 @@ export interface ModerationRuleV2Response {
8873
9119
 
8874
9120
  config_keys: string[];
8875
9121
 
8876
- action: RuleBuilderAction;
8877
-
8878
9122
  cooldown_period?: string;
8879
9123
 
8880
9124
  logic?: string;
8881
9125
 
9126
+ action_sequences?: CallRuleActionSequence[];
9127
+
8882
9128
  conditions?: RuleBuilderCondition[];
8883
9129
 
8884
9130
  groups?: RuleBuilderConditionGroup[];
9131
+
9132
+ action?: RuleBuilderAction;
9133
+ }
9134
+
9135
+ export interface ModerationRulesTriggeredEvent {
9136
+ created_at: Date;
9137
+
9138
+ entity_id: string;
9139
+
9140
+ entity_type: string;
9141
+
9142
+ user_id: string;
9143
+
9144
+ triggered_actions: string[];
9145
+
9146
+ custom: Record<string, any>;
9147
+
9148
+ rule: ModerationRuleInfo;
9149
+
9150
+ type: string;
9151
+
9152
+ received_at?: Date;
9153
+
9154
+ review_queue_item_id?: string;
9155
+
9156
+ violation_number?: number;
8885
9157
  }
8886
9158
 
8887
9159
  export interface ModerationV2Response {
@@ -8895,6 +9167,8 @@ export interface ModerationV2Response {
8895
9167
 
8896
9168
  semantic_filter_matched?: string;
8897
9169
 
9170
+ blocklists_matched?: string[];
9171
+
8898
9172
  image_harms?: string[];
8899
9173
 
8900
9174
  text_harms?: string[];
@@ -10107,6 +10381,8 @@ export interface QualityScoreReportResponse {
10107
10381
  }
10108
10382
 
10109
10383
  export interface QueryActivitiesRequest {
10384
+ include_expired_activities?: boolean;
10385
+
10110
10386
  include_private_activities?: boolean;
10111
10387
 
10112
10388
  limit?: number;
@@ -10883,6 +11159,10 @@ export interface QueryModerationRulesRequest {
10883
11159
  export interface QueryModerationRulesResponse {
10884
11160
  duration: string;
10885
11161
 
11162
+ closed_caption_labels: string[];
11163
+
11164
+ keyframe_labels: string[];
11165
+
10886
11166
  rules: ModerationRuleV2Response[];
10887
11167
 
10888
11168
  default_llm_labels: Record<string, string>;
@@ -10892,6 +11172,28 @@ export interface QueryModerationRulesResponse {
10892
11172
  prev?: string;
10893
11173
  }
10894
11174
 
11175
+ export interface QueryPinnedActivitiesRequest {
11176
+ limit?: number;
11177
+
11178
+ next?: string;
11179
+
11180
+ prev?: string;
11181
+
11182
+ sort?: SortParamRequest[];
11183
+
11184
+ filter?: Record<string, any>;
11185
+ }
11186
+
11187
+ export interface QueryPinnedActivitiesResponse {
11188
+ duration: string;
11189
+
11190
+ pinned_activities: ActivityPinResponse[];
11191
+
11192
+ next?: string;
11193
+
11194
+ prev?: string;
11195
+ }
11196
+
10895
11197
  export interface QueryPollVotesRequest {
10896
11198
  limit?: number;
10897
11199
 
@@ -11062,20 +11364,40 @@ export interface QuerySegmentsResponse {
11062
11364
  prev?: string;
11063
11365
  }
11064
11366
 
11065
- export interface QueryThreadsRequest {
11367
+ export interface QueryTeamUsageStatsRequest {
11368
+ end_date?: string;
11369
+
11066
11370
  limit?: number;
11067
11371
 
11068
- member_limit?: number;
11372
+ month?: string;
11069
11373
 
11070
11374
  next?: string;
11071
11375
 
11072
- participant_limit?: number;
11376
+ start_date?: string;
11377
+ }
11073
11378
 
11074
- prev?: string;
11379
+ export interface QueryTeamUsageStatsResponse {
11380
+ duration: string;
11075
11381
 
11076
- reply_limit?: number;
11382
+ teams: TeamUsageStats[];
11077
11383
 
11078
- user_id?: string;
11384
+ next?: string;
11385
+ }
11386
+
11387
+ export interface QueryThreadsRequest {
11388
+ limit?: number;
11389
+
11390
+ member_limit?: number;
11391
+
11392
+ next?: string;
11393
+
11394
+ participant_limit?: number;
11395
+
11396
+ prev?: string;
11397
+
11398
+ reply_limit?: number;
11399
+
11400
+ user_id?: string;
11079
11401
 
11080
11402
  sort?: SortParamRequest[];
11081
11403
 
@@ -11456,6 +11778,10 @@ export interface ReadCollectionsResponse {
11456
11778
  duration: string;
11457
11779
 
11458
11780
  collections: CollectionResponse[];
11781
+
11782
+ next?: string;
11783
+
11784
+ prev?: string;
11459
11785
  }
11460
11786
 
11461
11787
  export interface ReadReceiptsResponse {
@@ -11644,6 +11970,12 @@ export interface ReminderUpdatedEvent {
11644
11970
  reminder?: ReminderResponseData;
11645
11971
  }
11646
11972
 
11973
+ export interface RemoveUserGroupMembersResponse {
11974
+ duration: string;
11975
+
11976
+ user_group?: UserGroupResponse;
11977
+ }
11978
+
11647
11979
  export interface RepliesMeta {
11648
11980
  depth_truncated: boolean;
11649
11981
 
@@ -11722,6 +12054,14 @@ export interface RestoreActivityResponse {
11722
12054
  activity: ActivityResponse;
11723
12055
  }
11724
12056
 
12057
+ export interface RestoreFeedGroupRequest {}
12058
+
12059
+ export interface RestoreFeedGroupResponse {
12060
+ duration: string;
12061
+
12062
+ feed_group: FeedGroupResponse;
12063
+ }
12064
+
11725
12065
  export interface RestoreUsersRequest {
11726
12066
  user_ids: string[];
11727
12067
  }
@@ -11875,7 +12215,7 @@ export interface Role {
11875
12215
  }
11876
12216
 
11877
12217
  export interface RuleBuilderAction {
11878
- type:
12218
+ type?:
11879
12219
  | 'ban_user'
11880
12220
  | 'flag_user'
11881
12221
  | 'flag_content'
@@ -11883,10 +12223,21 @@ export interface RuleBuilderAction {
11883
12223
  | 'shadow_content'
11884
12224
  | 'bounce_flag_content'
11885
12225
  | 'bounce_content'
11886
- | 'bounce_remove_content';
12226
+ | 'bounce_remove_content'
12227
+ | 'mute_video'
12228
+ | 'mute_audio'
12229
+ | 'blur'
12230
+ | 'call_blur'
12231
+ | 'end_call'
12232
+ | 'kick_user'
12233
+ | 'warning'
12234
+ | 'call_warning'
12235
+ | 'webhook_only';
11887
12236
 
11888
12237
  ban_options?: BanOptions;
11889
12238
 
12239
+ call_options?: CallActionOptions;
12240
+
11890
12241
  flag_user_options?: FlagUserOptions;
11891
12242
  }
11892
12243
 
@@ -11895,6 +12246,14 @@ export interface RuleBuilderCondition {
11895
12246
 
11896
12247
  type?: string;
11897
12248
 
12249
+ call_custom_property_params?: CallCustomPropertyParameters;
12250
+
12251
+ call_type_rule_params?: CallTypeRuleParameters;
12252
+
12253
+ call_violation_count_params?: CallViolationCountParameters;
12254
+
12255
+ closed_caption_rule_params?: ClosedCaptionRuleParameters;
12256
+
11898
12257
  content_count_rule_params?: ContentCountRuleParameters;
11899
12258
 
11900
12259
  content_flag_count_rule_params?: FlagCountRuleParameters;
@@ -11903,6 +12262,8 @@ export interface RuleBuilderCondition {
11903
12262
 
11904
12263
  image_rule_params?: ImageRuleParameters;
11905
12264
 
12265
+ keyframe_rule_params?: KeyframeRuleParameters;
12266
+
11906
12267
  text_content_params?: TextContentParameters;
11907
12268
 
11908
12269
  text_rule_params?: TextRuleParameters;
@@ -11939,17 +12300,19 @@ export interface RuleBuilderConfig {
11939
12300
  export interface RuleBuilderRule {
11940
12301
  rule_type: string;
11941
12302
 
11942
- action: RuleBuilderAction;
11943
-
11944
12303
  cooldown_period?: string;
11945
12304
 
11946
12305
  id?: string;
11947
12306
 
11948
12307
  logic?: string;
11949
12308
 
12309
+ action_sequences?: CallRuleActionSequence[];
12310
+
11950
12311
  conditions?: RuleBuilderCondition[];
11951
12312
 
11952
12313
  groups?: RuleBuilderConditionGroup[];
12314
+
12315
+ action?: RuleBuilderAction;
11953
12316
  }
11954
12317
 
11955
12318
  export interface S3Request {
@@ -12237,6 +12600,8 @@ export interface SearchResultMessage {
12237
12600
 
12238
12601
  mentioned_channel: boolean;
12239
12602
 
12603
+ mentioned_here: boolean;
12604
+
12240
12605
  pinned: boolean;
12241
12606
 
12242
12607
  reply_count: number;
@@ -12291,6 +12656,8 @@ export interface SearchResultMessage {
12291
12656
 
12292
12657
  show_in_channel?: boolean;
12293
12658
 
12659
+ mentioned_roles?: string[];
12660
+
12294
12661
  thread_participants?: UserResponse[];
12295
12662
 
12296
12663
  channel?: ChannelResponse;
@@ -12318,6 +12685,12 @@ export interface SearchResultMessage {
12318
12685
  shared_location?: SharedLocationResponseData;
12319
12686
  }
12320
12687
 
12688
+ export interface SearchUserGroupsResponse {
12689
+ duration: string;
12690
+
12691
+ user_groups: UserGroupResponse[];
12692
+ }
12693
+
12321
12694
  export interface SearchWarning {
12322
12695
  warning_code: number;
12323
12696
 
@@ -12978,6 +13351,42 @@ export interface TargetResolution {
12978
13351
  width: number;
12979
13352
  }
12980
13353
 
13354
+ export interface TeamUsageStats {
13355
+ team: string;
13356
+
13357
+ concurrent_connections: MetricStats;
13358
+
13359
+ concurrent_users: MetricStats;
13360
+
13361
+ image_moderations_daily: MetricStats;
13362
+
13363
+ messages_daily: MetricStats;
13364
+
13365
+ messages_last_24_hours: MetricStats;
13366
+
13367
+ messages_last_30_days: MetricStats;
13368
+
13369
+ messages_month_to_date: MetricStats;
13370
+
13371
+ messages_total: MetricStats;
13372
+
13373
+ translations_daily: MetricStats;
13374
+
13375
+ users_daily: MetricStats;
13376
+
13377
+ users_engaged_last_30_days: MetricStats;
13378
+
13379
+ users_engaged_month_to_date: MetricStats;
13380
+
13381
+ users_last_24_hours: MetricStats;
13382
+
13383
+ users_last_30_days: MetricStats;
13384
+
13385
+ users_month_to_date: MetricStats;
13386
+
13387
+ users_total: MetricStats;
13388
+ }
13389
+
12981
13390
  export interface TextContentParameters {
12982
13391
  contains_url?: boolean;
12983
13392
 
@@ -13143,7 +13552,7 @@ export interface ThreadedCommentResponse {
13143
13552
 
13144
13553
  score: number;
13145
13554
 
13146
- status: string;
13555
+ status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
13147
13556
 
13148
13557
  updated_at: Date;
13149
13558
 
@@ -13504,6 +13913,16 @@ export interface UnblockedUserEvent {
13504
13913
  type: string;
13505
13914
  }
13506
13915
 
13916
+ export interface UndeleteMessageRequest {
13917
+ undeleted_by: string;
13918
+ }
13919
+
13920
+ export interface UndeleteMessageResponse {
13921
+ duration: string;
13922
+
13923
+ message: MessageResponse;
13924
+ }
13925
+
13507
13926
  export interface UnfollowBatchRequest {
13508
13927
  follows: FollowPair[];
13509
13928
 
@@ -13741,6 +14160,8 @@ export interface UpdateAppRequest {
13741
14160
 
13742
14161
  migrate_permissions_to_v2?: boolean;
13743
14162
 
14163
+ moderation_analytics_enabled?: boolean;
14164
+
13744
14165
  moderation_enabled?: boolean;
13745
14166
 
13746
14167
  moderation_webhook_url?: string;
@@ -14537,6 +14958,20 @@ export interface UpdateThreadPartialResponse {
14537
14958
  thread: ThreadResponse;
14538
14959
  }
14539
14960
 
14961
+ export interface UpdateUserGroupRequest {
14962
+ description?: string;
14963
+
14964
+ name?: string;
14965
+
14966
+ team_id?: string;
14967
+ }
14968
+
14969
+ export interface UpdateUserGroupResponse {
14970
+ duration: string;
14971
+
14972
+ user_group?: UserGroupResponse;
14973
+ }
14974
+
14540
14975
  export interface UpdateUserPartialRequest {
14541
14976
  id: string;
14542
14977
 
@@ -14694,8 +15129,6 @@ export interface UpsertModerationRuleRequest {
14694
15129
 
14695
15130
  rule_type: string;
14696
15131
 
14697
- action: RuleBuilderAction;
14698
-
14699
15132
  cooldown_period?: string;
14700
15133
 
14701
15134
  description?: string;
@@ -14706,11 +15139,15 @@ export interface UpsertModerationRuleRequest {
14706
15139
 
14707
15140
  team?: string;
14708
15141
 
15142
+ action_sequences?: CallRuleActionSequence[];
15143
+
14709
15144
  conditions?: RuleBuilderCondition[];
14710
15145
 
14711
15146
  config_keys?: string[];
14712
15147
 
14713
15148
  groups?: RuleBuilderConditionGroup[];
15149
+
15150
+ action?: RuleBuilderAction;
14714
15151
  }
14715
15152
 
14716
15153
  export interface UpsertModerationRuleResponse {
@@ -14934,6 +15371,130 @@ export interface UserFlaggedEvent {
14934
15371
  target_user?: UserResponseCommonFields;
14935
15372
  }
14936
15373
 
15374
+ export interface UserGroup {
15375
+ app_pk: number;
15376
+
15377
+ created_at: Date;
15378
+
15379
+ id: string;
15380
+
15381
+ name: string;
15382
+
15383
+ updated_at: Date;
15384
+
15385
+ created_by?: string;
15386
+
15387
+ description?: string;
15388
+
15389
+ team_id?: string;
15390
+
15391
+ members?: UserGroupMember[];
15392
+ }
15393
+
15394
+ export interface UserGroupCreatedEvent {
15395
+ created_at: Date;
15396
+
15397
+ custom: Record<string, any>;
15398
+
15399
+ type: string;
15400
+
15401
+ received_at?: Date;
15402
+
15403
+ user?: UserResponseCommonFields;
15404
+
15405
+ user_group?: UserGroup;
15406
+ }
15407
+
15408
+ export interface UserGroupDeletedEvent {
15409
+ created_at: Date;
15410
+
15411
+ custom: Record<string, any>;
15412
+
15413
+ type: string;
15414
+
15415
+ received_at?: Date;
15416
+
15417
+ user?: UserResponseCommonFields;
15418
+
15419
+ user_group?: UserGroup;
15420
+ }
15421
+
15422
+ export interface UserGroupMember {
15423
+ app_pk: number;
15424
+
15425
+ created_at: Date;
15426
+
15427
+ group_id: string;
15428
+
15429
+ is_admin: boolean;
15430
+
15431
+ user_id: string;
15432
+ }
15433
+
15434
+ export interface UserGroupMemberAddedEvent {
15435
+ created_at: Date;
15436
+
15437
+ members: string[];
15438
+
15439
+ custom: Record<string, any>;
15440
+
15441
+ type: string;
15442
+
15443
+ received_at?: Date;
15444
+
15445
+ user?: UserResponseCommonFields;
15446
+
15447
+ user_group?: UserGroup;
15448
+ }
15449
+
15450
+ export interface UserGroupMemberRemovedEvent {
15451
+ created_at: Date;
15452
+
15453
+ members: string[];
15454
+
15455
+ custom: Record<string, any>;
15456
+
15457
+ type: string;
15458
+
15459
+ received_at?: Date;
15460
+
15461
+ user?: UserResponseCommonFields;
15462
+
15463
+ user_group?: UserGroup;
15464
+ }
15465
+
15466
+ export interface UserGroupResponse {
15467
+ created_at: Date;
15468
+
15469
+ id: string;
15470
+
15471
+ name: string;
15472
+
15473
+ updated_at: Date;
15474
+
15475
+ created_by?: string;
15476
+
15477
+ description?: string;
15478
+
15479
+ team_id?: string;
15480
+
15481
+ members?: UserGroupMember[];
15482
+ }
15483
+
15484
+ export interface UserGroupUpdatedEvent {
15485
+ created_at: Date;
15486
+
15487
+ custom: Record<string, any>;
15488
+
15489
+ type: string;
15490
+
15491
+ received_at?: Date;
15492
+
15493
+ user?: UserResponseCommonFields;
15494
+
15495
+ user_group?: UserGroup;
15496
+ }
15497
+
14937
15498
  export interface UserIdenticalContentCountParameters {
14938
15499
  threshold?: number;
14939
15500
 
@@ -15382,67 +15943,7 @@ export interface VoteData {
15382
15943
  option_id?: string;
15383
15944
  }
15384
15945
 
15385
- export interface WHIPIngress {
15386
- address: string;
15387
- }
15388
-
15389
- export interface WSEvent {
15390
- created_at: Date;
15391
-
15392
- type: string;
15393
-
15394
- custom: Record<string, any>;
15395
-
15396
- automoderation?: boolean;
15397
-
15398
- channel_id?: string;
15399
-
15400
- channel_last_message_at?: Date;
15401
-
15402
- channel_type?: string;
15403
-
15404
- cid?: string;
15405
-
15406
- connection_id?: string;
15407
-
15408
- parent_id?: string;
15409
-
15410
- reason?: string;
15411
-
15412
- team?: string;
15413
-
15414
- thread_id?: string;
15415
-
15416
- user_id?: string;
15417
-
15418
- watcher_count?: number;
15419
-
15420
- automoderation_scores?: ModerationResponse;
15421
-
15422
- channel?: ChannelResponse;
15423
-
15424
- created_by?: UserResponse;
15425
-
15426
- me?: OwnUserResponse;
15427
-
15428
- member?: ChannelMemberResponse;
15429
-
15430
- message?: MessageResponse;
15431
-
15432
- message_update?: MessageUpdate;
15433
-
15434
- poll?: PollResponseData;
15435
-
15436
- poll_vote?: PollVoteResponseData;
15437
-
15438
- reaction?: ReactionResponse;
15439
-
15440
- thread?: ThreadResponse;
15441
-
15442
- user?: UserResponse;
15443
- }
15444
-
15445
- export type WebhookEvent =
15946
+ export type WHEvent =
15446
15947
  | ({ type: '*' } & CustomEvent)
15447
15948
  | ({ type: 'appeal.accepted' } & AppealAcceptedEvent)
15448
15949
  | ({ type: 'appeal.created' } & AppealCreatedEvent)
@@ -15570,6 +16071,7 @@ export type WebhookEvent =
15570
16071
  | ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)
15571
16072
  | ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)
15572
16073
  | ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)
16074
+ | ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)
15573
16075
  | ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)
15574
16076
  | ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)
15575
16077
  | ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)
@@ -15597,6 +16099,7 @@ export type WebhookEvent =
15597
16099
  | ({ type: 'moderation.flagged' } & ModerationFlaggedEvent)
15598
16100
  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)
15599
16101
  | ({ type: 'moderation_check.completed' } & ModerationCheckCompletedEvent)
16102
+ | ({ type: 'moderation_rule.triggered' } & ModerationRulesTriggeredEvent)
15600
16103
  | ({ type: 'notification.mark_unread' } & NotificationMarkUnreadEvent)
15601
16104
  | ({ type: 'notification.reminder_due' } & ReminderNotificationEvent)
15602
16105
  | ({
@@ -15621,7 +16124,72 @@ export type WebhookEvent =
15621
16124
  | ({ type: 'user.unbanned' } & UserUnbannedEvent)
15622
16125
  | ({ type: 'user.unmuted' } & UserUnmutedEvent)
15623
16126
  | ({ type: 'user.unread_message_reminder' } & UserUnreadReminderEvent)
15624
- | ({ type: 'user.updated' } & UserUpdatedEvent);
16127
+ | ({ type: 'user.updated' } & UserUpdatedEvent)
16128
+ | ({ type: 'user_group.created' } & UserGroupCreatedEvent)
16129
+ | ({ type: 'user_group.deleted' } & UserGroupDeletedEvent)
16130
+ | ({ type: 'user_group.member_added' } & UserGroupMemberAddedEvent)
16131
+ | ({ type: 'user_group.member_removed' } & UserGroupMemberRemovedEvent)
16132
+ | ({ type: 'user_group.updated' } & UserGroupUpdatedEvent);
16133
+
16134
+ export interface WHIPIngress {
16135
+ address: string;
16136
+ }
16137
+
16138
+ export interface WSEvent {
16139
+ created_at: Date;
16140
+
16141
+ type: string;
16142
+
16143
+ custom: Record<string, any>;
16144
+
16145
+ automoderation?: boolean;
16146
+
16147
+ channel_id?: string;
16148
+
16149
+ channel_last_message_at?: Date;
16150
+
16151
+ channel_type?: string;
16152
+
16153
+ cid?: string;
16154
+
16155
+ connection_id?: string;
16156
+
16157
+ parent_id?: string;
16158
+
16159
+ reason?: string;
16160
+
16161
+ team?: string;
16162
+
16163
+ thread_id?: string;
16164
+
16165
+ user_id?: string;
16166
+
16167
+ watcher_count?: number;
16168
+
16169
+ automoderation_scores?: ModerationResponse;
16170
+
16171
+ channel?: ChannelResponse;
16172
+
16173
+ created_by?: UserResponse;
16174
+
16175
+ me?: OwnUserResponse;
16176
+
16177
+ member?: ChannelMemberResponse;
16178
+
16179
+ message?: MessageResponse;
16180
+
16181
+ message_update?: MessageUpdate;
16182
+
16183
+ poll?: PollResponseData;
16184
+
16185
+ poll_vote?: PollVoteResponseData;
16186
+
16187
+ reaction?: ReactionResponse;
16188
+
16189
+ thread?: ThreadResponse;
16190
+
16191
+ user?: UserResponse;
16192
+ }
15625
16193
 
15626
16194
  export interface WrappedUnreadCountsResponse {
15627
16195
  duration: string;