@stream-io/node-sdk 0.6.2 → 0.6.3

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.
@@ -1,31 +1,31 @@
1
1
  export interface AIImageConfig {
2
- enabled: boolean;
2
+ async?: boolean;
3
3
 
4
- ocr_rules: OCRRule[];
4
+ enabled?: boolean;
5
5
 
6
- rules: AWSRekognitionRule[];
6
+ ocr_rules?: OCRRule[];
7
7
 
8
- async?: boolean;
8
+ rules?: AWSRekognitionRule[];
9
9
  }
10
10
 
11
11
  export interface AITextConfig {
12
- enabled: boolean;
12
+ async?: boolean;
13
13
 
14
- profile: string;
14
+ enabled?: boolean;
15
15
 
16
- rules: BodyguardRule[];
16
+ profile?: string;
17
17
 
18
- severity_rules: BodyguardSeverityRule[];
18
+ rules?: BodyguardRule[];
19
19
 
20
- async?: boolean;
20
+ severity_rules?: BodyguardSeverityRule[];
21
21
  }
22
22
 
23
23
  export interface AIVideoConfig {
24
- enabled: boolean;
24
+ async?: boolean;
25
25
 
26
- rules: AWSRekognitionRule[];
26
+ enabled?: boolean;
27
27
 
28
- async?: boolean;
28
+ rules?: AWSRekognitionRule[];
29
29
  }
30
30
 
31
31
  export interface APIError {
@@ -203,19 +203,19 @@ export interface ActionLogResponse {
203
203
  }
204
204
 
205
205
  export interface ActionSequence {
206
- action: string;
206
+ action?: string;
207
207
 
208
- blur: boolean;
208
+ blur?: boolean;
209
209
 
210
- cooldown_period: number;
210
+ cooldown_period?: number;
211
211
 
212
- threshold: number;
212
+ threshold?: number;
213
213
 
214
- time_window: number;
214
+ time_window?: number;
215
215
 
216
- warning: boolean;
216
+ warning?: boolean;
217
217
 
218
- warning_text: string;
218
+ warning_text?: string;
219
219
  }
220
220
 
221
221
  export interface ActiveCallsBitrateStats {
@@ -707,6 +707,8 @@ export interface AddCommentReactionRequest {
707
707
 
708
708
  create_notification_activity?: boolean;
709
709
 
710
+ skip_push?: boolean;
711
+
710
712
  user_id?: string;
711
713
 
712
714
  custom?: Record<string, any>;
@@ -733,6 +735,8 @@ export interface AddCommentRequest {
733
735
 
734
736
  parent_id?: string;
735
737
 
738
+ skip_push?: boolean;
739
+
736
740
  user_id?: string;
737
741
 
738
742
  attachments?: Attachment[];
@@ -771,6 +775,8 @@ export interface AddReactionRequest {
771
775
 
772
776
  create_notification_activity?: boolean;
773
777
 
778
+ skip_push?: boolean;
779
+
774
780
  user_id?: string;
775
781
 
776
782
  custom?: Record<string, any>;
@@ -1119,11 +1125,11 @@ export interface AutomodDetails {
1119
1125
  }
1120
1126
 
1121
1127
  export interface AutomodPlatformCircumventionConfig {
1122
- enabled: boolean;
1128
+ async?: boolean;
1123
1129
 
1124
- rules: AutomodRule[];
1130
+ enabled?: boolean;
1125
1131
 
1126
- async?: boolean;
1132
+ rules?: AutomodRule[];
1127
1133
  }
1128
1134
 
1129
1135
  export interface AutomodRule {
@@ -1141,11 +1147,11 @@ export interface AutomodRule {
1141
1147
  }
1142
1148
 
1143
1149
  export interface AutomodSemanticFiltersConfig {
1144
- enabled: boolean;
1150
+ async?: boolean;
1145
1151
 
1146
- rules: AutomodSemanticFiltersRule[];
1152
+ enabled?: boolean;
1147
1153
 
1148
- async?: boolean;
1154
+ rules?: AutomodSemanticFiltersRule[];
1149
1155
  }
1150
1156
 
1151
1157
  export interface AutomodSemanticFiltersRule {
@@ -1157,11 +1163,11 @@ export interface AutomodSemanticFiltersRule {
1157
1163
  }
1158
1164
 
1159
1165
  export interface AutomodToxicityConfig {
1160
- enabled: boolean;
1166
+ async?: boolean;
1161
1167
 
1162
- rules: AutomodRule[];
1168
+ enabled?: boolean;
1163
1169
 
1164
- async?: boolean;
1170
+ rules?: AutomodRule[];
1165
1171
  }
1166
1172
 
1167
1173
  export interface AzureRequest {
@@ -1223,13 +1229,13 @@ export interface BanActionRequest {
1223
1229
  }
1224
1230
 
1225
1231
  export interface BanOptions {
1226
- duration: number;
1232
+ duration?: number;
1227
1233
 
1228
- ip_ban: boolean;
1234
+ ip_ban?: boolean;
1229
1235
 
1230
- reason: string;
1236
+ reason?: string;
1231
1237
 
1232
- shadow_ban: boolean;
1238
+ shadow_ban?: boolean;
1233
1239
  }
1234
1240
 
1235
1241
  export interface BanRequest {
@@ -1269,15 +1275,15 @@ export interface BanResponse {
1269
1275
  }
1270
1276
 
1271
1277
  export interface BlockContentOptions {
1272
- reason: string;
1278
+ reason?: string;
1273
1279
  }
1274
1280
 
1275
1281
  export interface BlockListConfig {
1276
- enabled: boolean;
1282
+ async?: boolean;
1277
1283
 
1278
- rules: BlockListRule[];
1284
+ enabled?: boolean;
1279
1285
 
1280
- async?: boolean;
1286
+ rules?: BlockListRule[];
1281
1287
  }
1282
1288
 
1283
1289
  export interface BlockListOptions {
@@ -1312,9 +1318,9 @@ export interface BlockListRule {
1312
1318
  | 'bounce_flag'
1313
1319
  | 'bounce_remove';
1314
1320
 
1315
- name: string;
1321
+ name?: string;
1316
1322
 
1317
- team: string;
1323
+ team?: string;
1318
1324
  }
1319
1325
 
1320
1326
  export interface BlockUserRequest {
@@ -1367,8 +1373,14 @@ export interface BlockedUserResponse {
1367
1373
  user: UserResponse;
1368
1374
  }
1369
1375
 
1376
+ export interface BodyguardImageAnalysisConfig {
1377
+ rules?: BodyguardRule[];
1378
+ }
1379
+
1370
1380
  export interface BodyguardRule {
1371
- action:
1381
+ label: string;
1382
+
1383
+ action?:
1372
1384
  | 'flag'
1373
1385
  | 'shadow'
1374
1386
  | 'remove'
@@ -1376,9 +1388,7 @@ export interface BodyguardRule {
1376
1388
  | 'bounce_flag'
1377
1389
  | 'bounce_remove';
1378
1390
 
1379
- label: string;
1380
-
1381
- severity_rules: BodyguardSeverityRule[];
1391
+ severity_rules?: BodyguardSeverityRule[];
1382
1392
  }
1383
1393
 
1384
1394
  export interface BodyguardSeverityRule {
@@ -1614,13 +1624,21 @@ export interface CallAcceptedEvent {
1614
1624
  export interface CallClosedCaption {
1615
1625
  end_time: Date;
1616
1626
 
1627
+ id: string;
1628
+
1629
+ language: string;
1630
+
1617
1631
  speaker_id: string;
1618
1632
 
1619
1633
  start_time: Date;
1620
1634
 
1621
1635
  text: string;
1622
1636
 
1637
+ translated: boolean;
1638
+
1623
1639
  user: UserResponse;
1640
+
1641
+ service?: string;
1624
1642
  }
1625
1643
 
1626
1644
  export interface CallClosedCaptionsFailedEvent {
@@ -2754,6 +2772,8 @@ export interface Channel {
2754
2772
 
2755
2773
  member_count?: number;
2756
2774
 
2775
+ message_count?: number;
2776
+
2757
2777
  message_count_updated_at?: Date;
2758
2778
 
2759
2779
  team?: string;
@@ -3064,43 +3084,7 @@ export interface ChannelMember {
3064
3084
  }
3065
3085
 
3066
3086
  export interface ChannelMemberResponse {
3067
- banned: boolean;
3068
-
3069
3087
  channel_role: string;
3070
-
3071
- created_at: Date;
3072
-
3073
- notifications_muted: boolean;
3074
-
3075
- shadow_banned: boolean;
3076
-
3077
- updated_at: Date;
3078
-
3079
- custom: Record<string, any>;
3080
-
3081
- archived_at?: Date;
3082
-
3083
- ban_expires?: Date;
3084
-
3085
- deleted_at?: Date;
3086
-
3087
- invite_accepted_at?: Date;
3088
-
3089
- invite_rejected_at?: Date;
3090
-
3091
- invited?: boolean;
3092
-
3093
- is_moderator?: boolean;
3094
-
3095
- pinned_at?: Date;
3096
-
3097
- role?: 'member' | 'moderator' | 'admin' | 'owner';
3098
-
3099
- status?: string;
3100
-
3101
- user_id?: string;
3102
-
3103
- user?: UserResponse;
3104
3088
  }
3105
3089
 
3106
3090
  export interface ChannelMessages {
@@ -3500,20 +3484,22 @@ export interface CheckPushResponse {
3500
3484
  }
3501
3485
 
3502
3486
  export interface CheckRequest {
3503
- config_key: string;
3504
-
3505
3487
  entity_creator_id: string;
3506
3488
 
3507
3489
  entity_id: string;
3508
3490
 
3509
3491
  entity_type: string;
3510
3492
 
3493
+ config_key?: string;
3494
+
3511
3495
  config_team?: string;
3512
3496
 
3513
3497
  test_mode?: boolean;
3514
3498
 
3515
3499
  user_id?: string;
3516
3500
 
3501
+ config?: ModerationConfig;
3502
+
3517
3503
  moderation_payload?: ModerationPayload;
3518
3504
 
3519
3505
  options?: Record<string, any>;
@@ -3624,6 +3610,8 @@ export interface CommentAddedEvent {
3624
3610
 
3625
3611
  fid: string;
3626
3612
 
3613
+ activity: ActivityResponse;
3614
+
3627
3615
  comment: CommentResponse;
3628
3616
 
3629
3617
  custom: Record<string, any>;
@@ -3660,6 +3648,8 @@ export interface CommentReactionAddedEvent {
3660
3648
 
3661
3649
  fid: string;
3662
3650
 
3651
+ activity: ActivityResponse;
3652
+
3663
3653
  comment: CommentResponse;
3664
3654
 
3665
3655
  custom: Record<string, any>;
@@ -3698,6 +3688,8 @@ export interface CommentReactionUpdatedEvent {
3698
3688
 
3699
3689
  fid: string;
3700
3690
 
3691
+ activity: ActivityResponse;
3692
+
3701
3693
  comment: CommentResponse;
3702
3694
 
3703
3695
  custom: Record<string, any>;
@@ -3846,17 +3838,15 @@ export interface ConfigResponse {
3846
3838
 
3847
3839
  llm_config?: LLMConfig;
3848
3840
 
3849
- rule_builder_config?: RuleBuilderConfig;
3850
-
3851
3841
  velocity_filter_config?: VelocityFilterConfig;
3852
3842
 
3853
3843
  video_call_rule_config?: VideoCallRuleConfig;
3854
3844
  }
3855
3845
 
3856
3846
  export interface ContentCountRuleParameters {
3857
- threshold: number;
3847
+ threshold?: number;
3858
3848
 
3859
- time_window: string;
3849
+ time_window?: string;
3860
3850
  }
3861
3851
 
3862
3852
  export interface CountByMinuteResponse {
@@ -4115,6 +4105,8 @@ export interface CreateFeedGroupRequest {
4115
4105
 
4116
4106
  notification?: NotificationConfig;
4117
4107
 
4108
+ push_notification?: PushNotificationConfig;
4109
+
4118
4110
  ranking?: RankingConfig;
4119
4111
  }
4120
4112
 
@@ -4548,6 +4540,10 @@ export interface DeleteModerationConfigResponse {
4548
4540
  duration: string;
4549
4541
  }
4550
4542
 
4543
+ export interface DeleteModerationRuleResponse {
4544
+ duration: string;
4545
+ }
4546
+
4551
4547
  export interface DeleteModerationTemplateResponse {
4552
4548
  duration: string;
4553
4549
  }
@@ -4951,6 +4947,8 @@ export interface EventHook {
4951
4947
 
4952
4948
  id?: string;
4953
4949
 
4950
+ product?: string;
4951
+
4954
4952
  sns_auth_type?: string;
4955
4953
 
4956
4954
  sns_key?: string;
@@ -5165,6 +5163,8 @@ export interface FeedGroup {
5165
5163
 
5166
5164
  notification?: NotificationConfig;
5167
5165
 
5166
+ push_notification?: PushNotificationConfig;
5167
+
5168
5168
  ranking?: RankingConfig;
5169
5169
 
5170
5170
  stories?: StoriesConfig;
@@ -5223,6 +5223,8 @@ export interface FeedGroupResponse {
5223
5223
 
5224
5224
  notification?: NotificationConfig;
5225
5225
 
5226
+ push_notification?: PushNotificationConfig;
5227
+
5226
5228
  ranking?: RankingConfig;
5227
5229
 
5228
5230
  stories?: StoriesConfig;
@@ -5453,6 +5455,26 @@ export interface FeedViewResponse {
5453
5455
  ranking?: RankingConfig;
5454
5456
  }
5455
5457
 
5458
+ export interface FeedsEventPreferences {
5459
+ comments?: string;
5460
+
5461
+ mentions?: string;
5462
+
5463
+ new_followers?: string;
5464
+
5465
+ reactions?: string;
5466
+ }
5467
+
5468
+ export interface FeedsEventPreferencesInput {
5469
+ comments?: 'all' | 'none';
5470
+
5471
+ mentions?: 'all' | 'none';
5472
+
5473
+ new_followers?: 'all' | 'none';
5474
+
5475
+ reactions?: 'all' | 'none';
5476
+ }
5477
+
5456
5478
  export interface FeedsModerationTemplateConfig {
5457
5479
  config_key: string;
5458
5480
 
@@ -5540,35 +5562,39 @@ export interface FirebaseConfigFields {
5540
5562
  export interface Flag {
5541
5563
  created_at: Date;
5542
5564
 
5543
- created_by_automod: boolean;
5565
+ entity_id: string;
5566
+
5567
+ entity_type: string;
5544
5568
 
5545
5569
  updated_at: Date;
5546
5570
 
5547
- approved_at?: Date;
5571
+ result: Array<Record<string, any>>;
5548
5572
 
5549
- reason?: string;
5573
+ entity_creator_id?: string;
5550
5574
 
5551
- rejected_at?: Date;
5575
+ is_streamed_content?: boolean;
5552
5576
 
5553
- reviewed_at?: Date;
5577
+ moderation_payload_hash?: string;
5554
5578
 
5555
- reviewed_by?: string;
5579
+ reason?: string;
5556
5580
 
5557
- target_message_id?: string;
5581
+ review_queue_item_id?: string;
5558
5582
 
5559
- custom?: Record<string, any>;
5583
+ type?: string;
5560
5584
 
5561
- details?: FlagDetails;
5585
+ labels?: string[];
5562
5586
 
5563
- target_message?: Message;
5587
+ custom?: Record<string, any>;
5564
5588
 
5565
- target_user?: User;
5589
+ moderation_payload?: ModerationPayload;
5590
+
5591
+ review_queue_item?: ReviewQueueItem;
5566
5592
 
5567
5593
  user?: User;
5568
5594
  }
5569
5595
 
5570
5596
  export interface FlagContentOptions {
5571
- reason: string;
5597
+ reason?: string;
5572
5598
  }
5573
5599
 
5574
5600
  export interface FlagDetails {
@@ -5638,7 +5664,7 @@ export interface FlagUpdatedEvent {
5638
5664
  }
5639
5665
 
5640
5666
  export interface FlagUserOptions {
5641
- reason: string;
5667
+ reason?: string;
5642
5668
  }
5643
5669
 
5644
5670
  export interface FollowBatchRequest {
@@ -5698,6 +5724,8 @@ export interface FollowRequest {
5698
5724
 
5699
5725
  push_preference?: 'all' | 'none';
5700
5726
 
5727
+ skip_push?: boolean;
5728
+
5701
5729
  custom?: Record<string, any>;
5702
5730
  }
5703
5731
 
@@ -6123,6 +6151,12 @@ export interface GetMessageResponse {
6123
6151
  pending_message_metadata?: Record<string, string>;
6124
6152
  }
6125
6153
 
6154
+ export interface GetModerationRuleResponse {
6155
+ duration: string;
6156
+
6157
+ rule?: ModerationRuleV2Response;
6158
+ }
6159
+
6126
6160
  export interface GetOGResponse {
6127
6161
  duration: string;
6128
6162
 
@@ -6213,6 +6247,8 @@ export interface GetOrCreateFeedGroupRequest {
6213
6247
 
6214
6248
  notification?: NotificationConfig;
6215
6249
 
6250
+ push_notification?: PushNotificationConfig;
6251
+
6216
6252
  ranking?: RankingConfig;
6217
6253
  }
6218
6254
 
@@ -6447,9 +6483,9 @@ export interface HLSSettingsResponse {
6447
6483
  }
6448
6484
 
6449
6485
  export interface HarmConfig {
6450
- severity: number;
6486
+ severity?: number;
6451
6487
 
6452
- action_sequences: ActionSequence[];
6488
+ action_sequences?: ActionSequence[];
6453
6489
  }
6454
6490
 
6455
6491
  export interface HideChannelRequest {
@@ -6497,9 +6533,9 @@ export interface ImageData {
6497
6533
  }
6498
6534
 
6499
6535
  export interface ImageRuleParameters {
6500
- threshold: number;
6536
+ threshold?: number;
6501
6537
 
6502
- time_window: string;
6538
+ time_window?: string;
6503
6539
 
6504
6540
  harm_labels?: string[];
6505
6541
  }
@@ -6705,17 +6741,23 @@ export interface KickedUserEvent {
6705
6741
  }
6706
6742
 
6707
6743
  export interface LLMConfig {
6708
- enabled: boolean;
6709
-
6710
- rules: LLMRule[];
6744
+ app_context?: string;
6711
6745
 
6712
6746
  async?: boolean;
6713
6747
 
6748
+ enabled?: boolean;
6749
+
6750
+ rules?: LLMRule[];
6751
+
6714
6752
  severity_descriptions?: Record<string, string>;
6715
6753
  }
6716
6754
 
6717
6755
  export interface LLMRule {
6718
- action:
6756
+ description: string;
6757
+
6758
+ label: string;
6759
+
6760
+ action?:
6719
6761
  | 'flag'
6720
6762
  | 'shadow'
6721
6763
  | 'remove'
@@ -6724,11 +6766,7 @@ export interface LLMRule {
6724
6766
  | 'bounce_remove'
6725
6767
  | 'keep';
6726
6768
 
6727
- description: string;
6728
-
6729
- label: string;
6730
-
6731
- severity_rules: BodyguardSeverityRule[];
6769
+ severity_rules?: BodyguardSeverityRule[];
6732
6770
  }
6733
6771
 
6734
6772
  export interface Label {
@@ -7136,6 +7174,8 @@ export interface Message {
7136
7174
 
7137
7175
  image_labels?: Record<string, string[]>;
7138
7176
 
7177
+ member?: ChannelMember;
7178
+
7139
7179
  moderation?: ModerationV2Response;
7140
7180
 
7141
7181
  pinned_by?: User;
@@ -7192,6 +7232,8 @@ export interface MessageDeletedEvent {
7192
7232
 
7193
7233
  type: string;
7194
7234
 
7235
+ deleted_for_me?: boolean;
7236
+
7195
7237
  team?: string;
7196
7238
 
7197
7239
  thread_participants?: User[];
@@ -7474,6 +7516,8 @@ export interface MessageResponse {
7474
7516
 
7475
7517
  image_labels?: Record<string, string[]>;
7476
7518
 
7519
+ member?: ChannelMemberResponse;
7520
+
7477
7521
  moderation?: ModerationV2Response;
7478
7522
 
7479
7523
  pinned_by?: UserResponse;
@@ -7628,6 +7672,8 @@ export interface MessageWithChannelResponse {
7628
7672
 
7629
7673
  image_labels?: Record<string, string[]>;
7630
7674
 
7675
+ member?: ChannelMemberResponse;
7676
+
7631
7677
  moderation?: ModerationV2Response;
7632
7678
 
7633
7679
  pinned_by?: UserResponse;
@@ -7675,6 +7721,42 @@ export interface ModerationCheckCompletedEvent {
7675
7721
  received_at?: Date;
7676
7722
  }
7677
7723
 
7724
+ export interface ModerationConfig {
7725
+ async?: boolean;
7726
+
7727
+ created_at?: Date;
7728
+
7729
+ key?: string;
7730
+
7731
+ team?: string;
7732
+
7733
+ updated_at?: Date;
7734
+
7735
+ ai_image_config?: AIImageConfig;
7736
+
7737
+ ai_image_lite_config?: BodyguardImageAnalysisConfig;
7738
+
7739
+ ai_text_config?: AITextConfig;
7740
+
7741
+ ai_video_config?: AIVideoConfig;
7742
+
7743
+ automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
7744
+
7745
+ automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
7746
+
7747
+ automod_toxicity_config?: AutomodToxicityConfig;
7748
+
7749
+ block_list_config?: BlockListConfig;
7750
+
7751
+ google_vision_config?: GoogleVisionConfig;
7752
+
7753
+ llm_config?: LLMConfig;
7754
+
7755
+ velocity_filter_config?: VelocityFilterConfig;
7756
+
7757
+ video_call_rule_config?: VideoCallRuleConfig;
7758
+ }
7759
+
7678
7760
  export interface ModerationCustomActionEvent {
7679
7761
  created_at: Date;
7680
7762
 
@@ -7694,7 +7776,7 @@ export interface ModerationDashboardPreferences {
7694
7776
  }
7695
7777
 
7696
7778
  export interface ModerationFlagResponse {
7697
- created_at: string;
7779
+ created_at: Date;
7698
7780
 
7699
7781
  entity_id: string;
7700
7782
 
@@ -7702,7 +7784,7 @@ export interface ModerationFlagResponse {
7702
7784
 
7703
7785
  type: string;
7704
7786
 
7705
- updated_at: string;
7787
+ updated_at: Date;
7706
7788
 
7707
7789
  user_id: string;
7708
7790
 
@@ -7769,6 +7851,36 @@ export interface ModerationResponse {
7769
7851
  toxic: number;
7770
7852
  }
7771
7853
 
7854
+ export interface ModerationRuleV2Response {
7855
+ created_at: Date;
7856
+
7857
+ description: string;
7858
+
7859
+ enabled: boolean;
7860
+
7861
+ id: string;
7862
+
7863
+ name: string;
7864
+
7865
+ rule_type: string;
7866
+
7867
+ team: string;
7868
+
7869
+ updated_at: Date;
7870
+
7871
+ config_keys: string[];
7872
+
7873
+ action: RuleBuilderAction;
7874
+
7875
+ cooldown_period?: string;
7876
+
7877
+ logic?: string;
7878
+
7879
+ conditions?: RuleBuilderCondition[];
7880
+
7881
+ groups?: RuleBuilderConditionGroup[];
7882
+ }
7883
+
7772
7884
  export interface ModerationV2Response {
7773
7885
  action: string;
7774
7886
 
@@ -7988,6 +8100,7 @@ export const OwnCapability = {
7988
8100
  REMOVE_CALL_MEMBER: 'remove-call-member',
7989
8101
  SCREENSHARE: 'screenshare',
7990
8102
  SEND_AUDIO: 'send-audio',
8103
+ SEND_CLOSED_CAPTIONS_CALL: 'send-closed-captions-call',
7991
8104
  SEND_VIDEO: 'send-video',
7992
8105
  START_BROADCAST_CALL: 'start-broadcast-call',
7993
8106
  START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
@@ -8564,6 +8677,12 @@ export interface PushConfig {
8564
8677
  offline_only?: boolean;
8565
8678
  }
8566
8679
 
8680
+ export interface PushNotificationConfig {
8681
+ enabled?: boolean;
8682
+
8683
+ activity_types?: 'follow' | 'comment' | 'reaction' | 'comment_reaction';
8684
+ }
8685
+
8567
8686
  export interface PushNotificationFields {
8568
8687
  offline_only: boolean;
8569
8688
 
@@ -8595,9 +8714,13 @@ export interface PushPreferenceInput {
8595
8714
 
8596
8715
  disabled_until?: Date;
8597
8716
 
8717
+ feeds_level?: 'all' | 'none' | 'default';
8718
+
8598
8719
  remove_disable?: boolean;
8599
8720
 
8600
8721
  user_id?: string;
8722
+
8723
+ feeds_events?: FeedsEventPreferencesInput;
8601
8724
  }
8602
8725
 
8603
8726
  export interface PushPreferences {
@@ -8606,6 +8729,10 @@ export interface PushPreferences {
8606
8729
  chat_level?: string;
8607
8730
 
8608
8731
  disabled_until?: Date;
8732
+
8733
+ feeds_level?: string;
8734
+
8735
+ feeds_events?: FeedsEventPreferences;
8609
8736
  }
8610
8737
 
8611
8738
  export interface PushProvider {
@@ -8731,7 +8858,13 @@ export interface PushTemplate {
8731
8858
  | 'message.new'
8732
8859
  | 'message.updated'
8733
8860
  | 'reaction.new'
8734
- | 'notification.reminder_due';
8861
+ | 'notification.reminder_due'
8862
+ | 'feeds.activity.added'
8863
+ | 'feeds.comment.added'
8864
+ | 'feeds.activity.reaction.added'
8865
+ | 'feeds.comment.reaction.added'
8866
+ | 'feeds.follow.created'
8867
+ | 'feeds.notification_feed.updated';
8735
8868
 
8736
8869
  updated_at: Date;
8737
8870
 
@@ -9348,6 +9481,34 @@ export interface QueryModerationLogsResponse {
9348
9481
  prev?: string;
9349
9482
  }
9350
9483
 
9484
+ export interface QueryModerationRulesRequest {
9485
+ limit?: number;
9486
+
9487
+ next?: string;
9488
+
9489
+ prev?: string;
9490
+
9491
+ user_id?: string;
9492
+
9493
+ sort?: SortParamRequest[];
9494
+
9495
+ filter?: Record<string, any>;
9496
+
9497
+ user?: UserRequest;
9498
+ }
9499
+
9500
+ export interface QueryModerationRulesResponse {
9501
+ duration: string;
9502
+
9503
+ rules: ModerationRuleV2Response[];
9504
+
9505
+ default_llm_labels: Record<string, string>;
9506
+
9507
+ next?: string;
9508
+
9509
+ prev?: string;
9510
+ }
9511
+
9351
9512
  export interface QueryPollVotesRequest {
9352
9513
  limit?: number;
9353
9514
 
@@ -10281,7 +10442,7 @@ export interface Role {
10281
10442
  }
10282
10443
 
10283
10444
  export interface RuleBuilderAction {
10284
- type: string;
10445
+ type?: string;
10285
10446
 
10286
10447
  ban_options?: BanOptions;
10287
10448
 
@@ -10293,10 +10454,10 @@ export interface RuleBuilderAction {
10293
10454
  }
10294
10455
 
10295
10456
  export interface RuleBuilderCondition {
10296
- type: string;
10297
-
10298
10457
  confidence?: number;
10299
10458
 
10459
+ type?: string;
10460
+
10300
10461
  content_count_rule_params?: ContentCountRuleParameters;
10301
10462
 
10302
10463
  image_content_params?: ImageContentParameters;
@@ -10309,6 +10470,8 @@ export interface RuleBuilderCondition {
10309
10470
 
10310
10471
  user_created_within_params?: UserCreatedWithinParameters;
10311
10472
 
10473
+ user_custom_property_params?: UserCustomPropertyParameters;
10474
+
10312
10475
  user_rule_params?: UserRuleParameters;
10313
10476
 
10314
10477
  video_content_params?: VideoContentParameters;
@@ -10317,30 +10480,26 @@ export interface RuleBuilderCondition {
10317
10480
  }
10318
10481
 
10319
10482
  export interface RuleBuilderConditionGroup {
10320
- logic: string;
10483
+ logic?: string;
10321
10484
 
10322
- conditions: RuleBuilderCondition[];
10485
+ conditions?: RuleBuilderCondition[];
10323
10486
  }
10324
10487
 
10325
10488
  export interface RuleBuilderConfig {
10326
- rules: RuleBuilderRule[];
10327
-
10328
10489
  async?: boolean;
10490
+
10491
+ rules?: RuleBuilderRule[];
10329
10492
  }
10330
10493
 
10331
10494
  export interface RuleBuilderRule {
10332
- enabled: boolean;
10333
-
10334
- id: string;
10335
-
10336
- name: string;
10337
-
10338
10495
  rule_type: string;
10339
10496
 
10340
10497
  action: RuleBuilderAction;
10341
10498
 
10342
10499
  cooldown_period?: string;
10343
10500
 
10501
+ id?: string;
10502
+
10344
10503
  logic?: string;
10345
10504
 
10346
10505
  conditions?: RuleBuilderCondition[];
@@ -10525,6 +10684,8 @@ export interface SearchResultMessage {
10525
10684
 
10526
10685
  image_labels?: Record<string, string[]>;
10527
10686
 
10687
+ member?: ChannelMemberResponse;
10688
+
10528
10689
  moderation?: ModerationV2Response;
10529
10690
 
10530
10691
  pinned_by?: UserResponse;
@@ -10622,6 +10783,30 @@ export interface SendCallEventResponse {
10622
10783
  duration: string;
10623
10784
  }
10624
10785
 
10786
+ export interface SendClosedCaptionRequest {
10787
+ speaker_id: string;
10788
+
10789
+ text: string;
10790
+
10791
+ end_time?: Date;
10792
+
10793
+ language?: string;
10794
+
10795
+ service?: string;
10796
+
10797
+ start_time?: Date;
10798
+
10799
+ translated?: boolean;
10800
+
10801
+ user_id?: string;
10802
+
10803
+ user?: UserRequest;
10804
+ }
10805
+
10806
+ export interface SendClosedCaptionResponse {
10807
+ duration: string;
10808
+ }
10809
+
10625
10810
  export interface SendEventRequest {
10626
10811
  event: EventRequest;
10627
10812
  }
@@ -11106,20 +11291,24 @@ export interface TextContentParameters {
11106
11291
  blocklist_match?: string[];
11107
11292
 
11108
11293
  harm_labels?: string[];
11294
+
11295
+ llm_harm_labels?: Record<string, string>;
11109
11296
  }
11110
11297
 
11111
11298
  export interface TextRuleParameters {
11112
- threshold: number;
11113
-
11114
- time_window: string;
11115
-
11116
11299
  contains_url?: boolean;
11117
11300
 
11118
11301
  severity?: string;
11119
11302
 
11303
+ threshold?: number;
11304
+
11305
+ time_window?: string;
11306
+
11120
11307
  blocklist_match?: string[];
11121
11308
 
11122
11309
  harm_labels?: string[];
11310
+
11311
+ llm_harm_labels?: Record<string, string>;
11123
11312
  }
11124
11313
 
11125
11314
  export interface ThreadParticipant {
@@ -11145,6 +11334,8 @@ export interface ThreadParticipant {
11145
11334
  }
11146
11335
 
11147
11336
  export interface ThreadResponse {
11337
+ active_participant_count: number;
11338
+
11148
11339
  channel_cid: string;
11149
11340
 
11150
11341
  created_at: Date;
@@ -11153,20 +11344,18 @@ export interface ThreadResponse {
11153
11344
 
11154
11345
  parent_message_id: string;
11155
11346
 
11347
+ participant_count: number;
11348
+
11156
11349
  title: string;
11157
11350
 
11158
11351
  updated_at: Date;
11159
11352
 
11160
11353
  custom: Record<string, any>;
11161
11354
 
11162
- active_participant_count?: number;
11163
-
11164
11355
  deleted_at?: Date;
11165
11356
 
11166
11357
  last_message_at?: Date;
11167
11358
 
11168
- participant_count?: number;
11169
-
11170
11359
  reply_count?: number;
11171
11360
 
11172
11361
  thread_participants?: ThreadParticipant[];
@@ -11179,6 +11368,8 @@ export interface ThreadResponse {
11179
11368
  }
11180
11369
 
11181
11370
  export interface ThreadStateResponse {
11371
+ active_participant_count: number;
11372
+
11182
11373
  channel_cid: string;
11183
11374
 
11184
11375
  created_at: Date;
@@ -11187,6 +11378,8 @@ export interface ThreadStateResponse {
11187
11378
 
11188
11379
  parent_message_id: string;
11189
11380
 
11381
+ participant_count: number;
11382
+
11190
11383
  title: string;
11191
11384
 
11192
11385
  updated_at: Date;
@@ -11195,14 +11388,10 @@ export interface ThreadStateResponse {
11195
11388
 
11196
11389
  custom: Record<string, any>;
11197
11390
 
11198
- active_participant_count?: number;
11199
-
11200
11391
  deleted_at?: Date;
11201
11392
 
11202
11393
  last_message_at?: Date;
11203
11394
 
11204
- participant_count?: number;
11205
-
11206
11395
  reply_count?: number;
11207
11396
 
11208
11397
  read?: ReadStateResponse[];
@@ -12167,6 +12356,8 @@ export interface UpdateCommandResponse {
12167
12356
  export interface UpdateCommentRequest {
12168
12357
  comment?: string;
12169
12358
 
12359
+ skip_push?: boolean;
12360
+
12170
12361
  custom?: Record<string, any>;
12171
12362
  }
12172
12363
 
@@ -12213,6 +12404,8 @@ export interface UpdateFeedGroupRequest {
12213
12404
 
12214
12405
  notification?: NotificationConfig;
12215
12406
 
12407
+ push_notification?: PushNotificationConfig;
12408
+
12216
12409
  ranking?: RankingConfig;
12217
12410
  }
12218
12411
 
@@ -12283,6 +12476,8 @@ export interface UpdateFollowRequest {
12283
12476
 
12284
12477
  push_preference?: 'all' | 'none';
12285
12478
 
12479
+ skip_push?: boolean;
12480
+
12286
12481
  custom?: Record<string, any>;
12287
12482
  }
12288
12483
 
@@ -12552,6 +12747,36 @@ export interface UpsertConfigResponse {
12552
12747
  config?: ConfigResponse;
12553
12748
  }
12554
12749
 
12750
+ export interface UpsertModerationRuleRequest {
12751
+ name: string;
12752
+
12753
+ rule_type: string;
12754
+
12755
+ action: RuleBuilderAction;
12756
+
12757
+ cooldown_period?: string;
12758
+
12759
+ description?: string;
12760
+
12761
+ enabled?: boolean;
12762
+
12763
+ logic?: string;
12764
+
12765
+ team?: string;
12766
+
12767
+ conditions?: RuleBuilderCondition[];
12768
+
12769
+ config_keys?: string[];
12770
+
12771
+ groups?: RuleBuilderConditionGroup[];
12772
+ }
12773
+
12774
+ export interface UpsertModerationRuleResponse {
12775
+ duration: string;
12776
+
12777
+ rule?: ModerationRuleV2Response;
12778
+ }
12779
+
12555
12780
  export interface UpsertModerationTemplateRequest {
12556
12781
  name: string;
12557
12782
 
@@ -12600,7 +12825,13 @@ export interface UpsertPushTemplateRequest {
12600
12825
  | 'message.new'
12601
12826
  | 'message.updated'
12602
12827
  | 'reaction.new'
12603
- | 'notification.reminder_due';
12828
+ | 'notification.reminder_due'
12829
+ | 'feeds.activity.added'
12830
+ | 'feeds.comment.added'
12831
+ | 'feeds.activity.reaction.added'
12832
+ | 'feeds.comment.reaction.added'
12833
+ | 'feeds.follow.created'
12834
+ | 'feeds.notification_feed.updated';
12604
12835
 
12605
12836
  push_provider_type: 'firebase' | 'apn';
12606
12837
 
@@ -12691,6 +12922,12 @@ export interface UserCustomEventRequest {
12691
12922
  custom?: Record<string, any>;
12692
12923
  }
12693
12924
 
12925
+ export interface UserCustomPropertyParameters {
12926
+ operator?: string;
12927
+
12928
+ property_key?: string;
12929
+ }
12930
+
12694
12931
  export interface UserDeactivatedEvent {
12695
12932
  created_at: Date;
12696
12933
 
@@ -12760,8 +12997,6 @@ export interface UserFlaggedEvent {
12760
12997
  export interface UserMessagesDeletedEvent {
12761
12998
  created_at: Date;
12762
12999
 
12763
- soft_delete: boolean;
12764
-
12765
13000
  custom: Record<string, any>;
12766
13001
 
12767
13002
  user: UserResponseCommonFields;
@@ -12772,6 +13007,8 @@ export interface UserMessagesDeletedEvent {
12772
13007
 
12773
13008
  channel_member_count?: number;
12774
13009
 
13010
+ channel_message_count?: number;
13011
+
12775
13012
  channel_type?: string;
12776
13013
 
12777
13014
  cid?: string;
@@ -13044,53 +13281,53 @@ export interface UserUpdatedEvent {
13044
13281
  }
13045
13282
 
13046
13283
  export interface VelocityFilterConfig {
13047
- advanced_filters: boolean;
13284
+ advanced_filters?: boolean;
13048
13285
 
13049
- cascading_actions: boolean;
13286
+ async?: boolean;
13050
13287
 
13051
- cids_per_user: number;
13288
+ cascading_actions?: boolean;
13052
13289
 
13053
- enabled: boolean;
13290
+ cids_per_user?: number;
13054
13291
 
13055
- first_message_only: boolean;
13292
+ enabled?: boolean;
13056
13293
 
13057
- rules: VelocityFilterConfigRule[];
13294
+ first_message_only?: boolean;
13058
13295
 
13059
- async?: boolean;
13296
+ rules?: VelocityFilterConfigRule[];
13060
13297
  }
13061
13298
 
13062
13299
  export interface VelocityFilterConfigRule {
13063
13300
  action: 'flag' | 'shadow' | 'remove' | 'ban';
13064
13301
 
13065
- ban_duration: number;
13302
+ ban_duration?: number;
13066
13303
 
13067
- cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
13304
+ cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
13068
13305
 
13069
- cascading_threshold: number;
13306
+ cascading_threshold?: number;
13070
13307
 
13071
- check_message_context: boolean;
13308
+ check_message_context?: boolean;
13072
13309
 
13073
- fast_spam_threshold: number;
13310
+ fast_spam_threshold?: number;
13074
13311
 
13075
- fast_spam_ttl: number;
13312
+ fast_spam_ttl?: number;
13076
13313
 
13077
- ip_ban: boolean;
13314
+ ip_ban?: boolean;
13078
13315
 
13079
- probation_period: number;
13316
+ probation_period?: number;
13080
13317
 
13081
- shadow_ban: boolean;
13318
+ shadow_ban?: boolean;
13082
13319
 
13083
- slow_spam_threshold: number;
13320
+ slow_spam_ban_duration?: number;
13084
13321
 
13085
- slow_spam_ttl: number;
13322
+ slow_spam_threshold?: number;
13086
13323
 
13087
- url_only: boolean;
13324
+ slow_spam_ttl?: number;
13088
13325
 
13089
- slow_spam_ban_duration?: number;
13326
+ url_only?: boolean;
13090
13327
  }
13091
13328
 
13092
13329
  export interface VideoCallRuleConfig {
13093
- rules: Record<string, HarmConfig>;
13330
+ rules?: Record<string, HarmConfig>;
13094
13331
  }
13095
13332
 
13096
13333
  export interface VideoContentParameters {
@@ -13116,9 +13353,9 @@ export interface VideoReactionsResponse {
13116
13353
  }
13117
13354
 
13118
13355
  export interface VideoRuleParameters {
13119
- threshold: number;
13356
+ threshold?: number;
13120
13357
 
13121
- time_window: string;
13358
+ time_window?: string;
13122
13359
 
13123
13360
  harm_labels?: string[];
13124
13361
  }