@stream-io/node-sdk 0.7.40 → 0.7.42

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.
@@ -104,6 +104,20 @@ export interface APNS {
104
104
  data?: Record<string, any>;
105
105
  }
106
106
 
107
+ export interface APNSPayload {
108
+ body?: string;
109
+
110
+ content_available?: number;
111
+
112
+ mutable_content?: number;
113
+
114
+ sound?: string;
115
+
116
+ title?: string;
117
+
118
+ data?: Record<string, any>;
119
+ }
120
+
107
121
  export interface AWSRekognitionRule {
108
122
  action:
109
123
  | 'flag'
@@ -356,24 +370,6 @@ export interface ActivityMarkEvent {
356
370
  user?: UserResponseCommonFields;
357
371
  }
358
372
 
359
- export interface ActivityMarkedEvent {
360
- all_read: boolean;
361
-
362
- all_seen: boolean;
363
-
364
- created_at: Date;
365
-
366
- feed_id: string;
367
-
368
- user_id: string;
369
-
370
- type: string;
371
-
372
- marked_read?: string[];
373
-
374
- marked_watched?: string[];
375
- }
376
-
377
373
  export interface ActivityPinResponse {
378
374
  created_at: Date;
379
375
 
@@ -491,6 +487,8 @@ export interface ActivityRequest {
491
487
 
492
488
  feeds: string[];
493
489
 
490
+ copy_custom_to_notification?: boolean;
491
+
494
492
  create_notification_activity?: boolean;
495
493
 
496
494
  expires_at?: string;
@@ -583,7 +581,7 @@ export interface ActivityResponse {
583
581
 
584
582
  custom: Record<string, any>;
585
583
 
586
- reaction_groups: Record<string, ReactionGroupResponse>;
584
+ reaction_groups: Record<string, FeedsReactionGroupResponse>;
587
585
 
588
586
  search_data: Record<string, any>;
589
587
 
@@ -595,6 +593,8 @@ export interface ActivityResponse {
595
593
 
596
594
  expires_at?: Date;
597
595
 
596
+ friend_reaction_count?: number;
597
+
598
598
  is_watched?: boolean;
599
599
 
600
600
  moderation_action?: string;
@@ -605,6 +605,8 @@ export interface ActivityResponse {
605
605
 
606
606
  visibility_tag?: string;
607
607
 
608
+ friend_reactions?: FeedsReactionResponse[];
609
+
608
610
  current_feed?: FeedResponse;
609
611
 
610
612
  location?: ActivityLocation;
@@ -716,6 +718,8 @@ export interface AddActivityRequest {
716
718
 
717
719
  feeds: string[];
718
720
 
721
+ copy_custom_to_notification?: boolean;
722
+
719
723
  create_notification_activity?: boolean;
720
724
 
721
725
  expires_at?: string;
@@ -786,6 +790,8 @@ export interface AddBookmarkResponse {
786
790
  export interface AddCommentReactionRequest {
787
791
  type: string;
788
792
 
793
+ copy_custom_to_notification?: boolean;
794
+
789
795
  create_notification_activity?: boolean;
790
796
 
791
797
  enforce_unique?: boolean;
@@ -812,6 +818,8 @@ export interface AddCommentReactionResponse {
812
818
  export interface AddCommentRequest {
813
819
  comment?: string;
814
820
 
821
+ copy_custom_to_notification?: boolean;
822
+
815
823
  create_notification_activity?: boolean;
816
824
 
817
825
  id?: string;
@@ -866,6 +874,8 @@ export interface AddFolderRequest {
866
874
  export interface AddReactionRequest {
867
875
  type: string;
868
876
 
877
+ copy_custom_to_notification?: boolean;
878
+
869
879
  create_notification_activity?: boolean;
870
880
 
871
881
  enforce_unique?: boolean;
@@ -913,12 +923,6 @@ export interface AggregationConfig {
913
923
  format?: string;
914
924
  }
915
925
 
916
- export interface AnyEvent {
917
- created_at: Date;
918
-
919
- type: string;
920
- }
921
-
922
926
  export interface AppResponseFields {
923
927
  allow_multi_user_devices: boolean;
924
928
 
@@ -946,8 +950,6 @@ export interface AppResponseFields {
946
950
 
947
951
  max_aggregated_activities_length: number;
948
952
 
949
- moderation_bulk_submit_action_enabled: boolean;
950
-
951
953
  moderation_enabled: boolean;
952
954
 
953
955
  moderation_llm_configurability_enabled: boolean;
@@ -1307,14 +1309,14 @@ export interface AudioSettingsResponse {
1307
1309
  noise_cancellation?: NoiseCancellationSettings;
1308
1310
  }
1309
1311
 
1310
- export interface AutomodDetails {
1312
+ export interface AutomodDetailsResponse {
1311
1313
  action?: string;
1312
1314
 
1313
1315
  original_message_type?: string;
1314
1316
 
1315
1317
  image_labels?: string[];
1316
1318
 
1317
- message_details?: FlagMessageDetails;
1319
+ message_details?: FlagMessageDetailsResponse;
1318
1320
 
1319
1321
  result?: MessageModerationResult;
1320
1322
  }
@@ -1393,34 +1395,34 @@ export interface BackstageSettingsResponse {
1393
1395
  join_ahead_time_seconds?: number;
1394
1396
  }
1395
1397
 
1396
- export interface Ban {
1397
- created_at: Date;
1398
+ export interface BanActionRequestPayload {
1399
+ channel_ban_only?: boolean;
1398
1400
 
1399
- shadow: boolean;
1401
+ delete_messages?: 'soft' | 'pruning' | 'hard';
1400
1402
 
1401
- expires?: Date;
1403
+ ip_ban?: boolean;
1402
1404
 
1403
1405
  reason?: string;
1404
1406
 
1405
- channel?: Channel;
1407
+ shadow?: boolean;
1406
1408
 
1407
- created_by?: User;
1409
+ target_user_id?: string;
1408
1410
 
1409
- target?: User;
1411
+ timeout?: number;
1410
1412
  }
1411
1413
 
1412
- export interface BanActionRequest {
1413
- channel_ban_only?: boolean;
1414
-
1415
- delete_messages?: 'soft' | 'pruning' | 'hard';
1414
+ export interface BanInfoResponse {
1415
+ created_at: Date;
1416
1416
 
1417
- ip_ban?: boolean;
1417
+ expires?: Date;
1418
1418
 
1419
1419
  reason?: string;
1420
1420
 
1421
1421
  shadow?: boolean;
1422
1422
 
1423
- timeout?: number;
1423
+ created_by?: UserResponse;
1424
+
1425
+ user?: UserResponse;
1424
1426
  }
1425
1427
 
1426
1428
  export interface BanOptions {
@@ -1471,7 +1473,7 @@ export interface BanResponse {
1471
1473
  user?: UserResponse;
1472
1474
  }
1473
1475
 
1474
- export interface BlockActionRequest {
1476
+ export interface BlockActionRequestPayload {
1475
1477
  reason?: string;
1476
1478
  }
1477
1479
 
@@ -1816,6 +1818,24 @@ export interface CallCreatedEvent {
1816
1818
  type: string;
1817
1819
  }
1818
1820
 
1821
+ export interface CallDTMFEvent {
1822
+ call_cid: string;
1823
+
1824
+ created_at: Date;
1825
+
1826
+ digit: string;
1827
+
1828
+ duration_ms: number;
1829
+
1830
+ seq_number: number;
1831
+
1832
+ timestamp: Date;
1833
+
1834
+ user: UserResponse;
1835
+
1836
+ type: string;
1837
+ }
1838
+
1819
1839
  export interface CallDeletedEvent {
1820
1840
  call_cid: string;
1821
1841
 
@@ -2093,7 +2113,7 @@ export interface CallReactionEvent {
2093
2113
 
2094
2114
  created_at: Date;
2095
2115
 
2096
- reaction: ReactionResponse;
2116
+ reaction: VideoReactionResponse;
2097
2117
 
2098
2118
  type: string;
2099
2119
  }
@@ -2751,7 +2771,7 @@ export interface CallTypeResponse {
2751
2771
 
2752
2772
  grants: Record<string, string[]>;
2753
2773
 
2754
- notification_settings: NotificationSettings;
2774
+ notification_settings: NotificationSettingsResponse;
2755
2775
 
2756
2776
  settings: CallSettingsResponse;
2757
2777
 
@@ -2944,62 +2964,6 @@ export interface CastPollVoteRequest {
2944
2964
  vote?: VoteData;
2945
2965
  }
2946
2966
 
2947
- export interface Channel {
2948
- auto_translation_language: string;
2949
-
2950
- cid: string;
2951
-
2952
- created_at: Date;
2953
-
2954
- disabled: boolean;
2955
-
2956
- frozen: boolean;
2957
-
2958
- id: string;
2959
-
2960
- type: string;
2961
-
2962
- updated_at: Date;
2963
-
2964
- custom: Record<string, any>;
2965
-
2966
- auto_translation_enabled?: boolean;
2967
-
2968
- cooldown?: number;
2969
-
2970
- deleted_at?: Date;
2971
-
2972
- last_campaigns?: string;
2973
-
2974
- last_message_at?: Date;
2975
-
2976
- member_count?: number;
2977
-
2978
- message_count?: number;
2979
-
2980
- message_count_updated_at?: Date;
2981
-
2982
- team?: string;
2983
-
2984
- active_live_locations?: SharedLocation[];
2985
-
2986
- filter_tags?: string[];
2987
-
2988
- invites?: ChannelMember[];
2989
-
2990
- members?: ChannelMember[];
2991
-
2992
- config?: ChannelConfig;
2993
-
2994
- config_overrides?: ConfigOverrides;
2995
-
2996
- created_by?: User;
2997
-
2998
- members_lookup?: Record<string, ChannelMemberLookup>;
2999
-
3000
- truncated_by?: User;
3001
- }
3002
-
3003
2967
  export interface ChannelBatchCompletedEvent {
3004
2968
  batch_created_at: Date;
3005
2969
 
@@ -3111,6 +3075,8 @@ export interface ChannelConfig {
3111
3075
 
3112
3076
  partition_ttl?: string;
3113
3077
 
3078
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
3079
+
3114
3080
  allowed_flag_reasons?: string[];
3115
3081
 
3116
3082
  blocklists?: BlockListOptions[];
@@ -3181,6 +3147,8 @@ export interface ChannelConfigWithInfo {
3181
3147
 
3182
3148
  partition_ttl?: string;
3183
3149
 
3150
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
3151
+
3184
3152
  allowed_flag_reasons?: string[];
3185
3153
 
3186
3154
  blocklists?: BlockListOptions[];
@@ -3193,25 +3161,57 @@ export interface ChannelConfigWithInfo {
3193
3161
  export interface ChannelCreatedEvent {
3194
3162
  created_at: Date;
3195
3163
 
3164
+ channel: ChannelResponse;
3165
+
3166
+ custom: Record<string, any>;
3167
+
3196
3168
  type: string;
3197
- }
3198
3169
 
3199
- export interface ChannelDeletedEvent {
3200
- channel_id: string;
3170
+ channel_id?: string;
3201
3171
 
3202
- channel_member_count: number;
3172
+ channel_member_count?: number;
3203
3173
 
3204
- channel_type: string;
3174
+ channel_message_count?: number;
3205
3175
 
3206
- cid: string;
3176
+ channel_type?: string;
3177
+
3178
+ cid?: string;
3179
+
3180
+ received_at?: Date;
3181
+
3182
+ team?: string;
3207
3183
 
3184
+ channel_custom?: Record<string, any>;
3185
+
3186
+ user?: UserResponseCommonFields;
3187
+ }
3188
+
3189
+ export interface ChannelDeletedEvent {
3208
3190
  created_at: Date;
3209
3191
 
3192
+ channel: ChannelResponse;
3193
+
3194
+ custom: Record<string, any>;
3195
+
3210
3196
  type: string;
3211
3197
 
3198
+ channel_id?: string;
3199
+
3200
+ channel_member_count?: number;
3201
+
3202
+ channel_message_count?: number;
3203
+
3204
+ channel_type?: string;
3205
+
3206
+ cid?: string;
3207
+
3208
+ received_at?: Date;
3209
+
3212
3210
  team?: string;
3213
3211
 
3214
- channel?: ChannelResponse;
3212
+ channel_custom?: Record<string, any>;
3213
+
3214
+ user?: UserResponseCommonFields;
3215
3215
  }
3216
3216
 
3217
3217
  export interface ChannelExport {
@@ -3227,15 +3227,19 @@ export interface ChannelExport {
3227
3227
  }
3228
3228
 
3229
3229
  export interface ChannelFrozenEvent {
3230
- channel_id: string;
3230
+ created_at: Date;
3231
3231
 
3232
- channel_type: string;
3232
+ custom: Record<string, any>;
3233
3233
 
3234
- cid: string;
3234
+ type: string;
3235
3235
 
3236
- created_at: Date;
3236
+ channel_id?: string;
3237
3237
 
3238
- type: string;
3238
+ channel_type?: string;
3239
+
3240
+ cid?: string;
3241
+
3242
+ received_at?: Date;
3239
3243
  }
3240
3244
 
3241
3245
  export interface ChannelGetOrCreateRequest {
@@ -3255,23 +3259,33 @@ export interface ChannelGetOrCreateRequest {
3255
3259
  }
3256
3260
 
3257
3261
  export interface ChannelHiddenEvent {
3258
- channel_id: string;
3262
+ clear_history: boolean;
3259
3263
 
3260
- channel_member_count: number;
3264
+ created_at: Date;
3261
3265
 
3262
- channel_type: string;
3266
+ channel: ChannelResponse;
3263
3267
 
3264
- cid: string;
3268
+ custom: Record<string, any>;
3265
3269
 
3266
- clear_history: boolean;
3270
+ type: string;
3267
3271
 
3268
- created_at: Date;
3272
+ channel_id?: string;
3269
3273
 
3270
- type: string;
3274
+ channel_member_count?: number;
3271
3275
 
3272
- channel?: ChannelResponse;
3276
+ channel_message_count?: number;
3273
3277
 
3274
- user?: User;
3278
+ channel_type?: string;
3279
+
3280
+ cid?: string;
3281
+
3282
+ received_at?: Date;
3283
+
3284
+ team?: string;
3285
+
3286
+ channel_custom?: Record<string, any>;
3287
+
3288
+ user?: UserResponseCommonFields;
3275
3289
  }
3276
3290
 
3277
3291
  export interface ChannelInput {
@@ -3313,33 +3327,47 @@ export interface ChannelInputRequest {
3313
3327
 
3314
3328
  team?: string;
3315
3329
 
3316
- invites?: ChannelMember[];
3330
+ invites?: ChannelMemberRequest[];
3317
3331
 
3318
- members?: ChannelMember[];
3332
+ members?: ChannelMemberRequest[];
3319
3333
 
3320
- config_overrides?: ConfigOverrides;
3334
+ config_overrides?: ConfigOverridesRequest;
3321
3335
 
3322
- created_by?: User;
3336
+ created_by?: UserRequest;
3323
3337
 
3324
3338
  custom?: Record<string, any>;
3325
3339
  }
3326
3340
 
3327
- export interface ChannelMember {
3328
- archived_at?: Date;
3341
+ export interface ChannelMemberRequest {
3342
+ user_id: string;
3329
3343
 
3330
- ban_expires?: Date;
3344
+ channel_role?: string;
3331
3345
 
3332
- banned?: boolean;
3346
+ custom?: Record<string, any>;
3333
3347
 
3334
- blocked?: boolean;
3348
+ user?: UserResponse;
3349
+ }
3335
3350
 
3336
- channel_role?: string;
3351
+ export interface ChannelMemberResponse {
3352
+ banned: boolean;
3337
3353
 
3338
- created_at?: Date;
3354
+ channel_role: string;
3339
3355
 
3340
- deleted_at?: Date;
3356
+ created_at: Date;
3341
3357
 
3342
- hidden?: boolean;
3358
+ notifications_muted: boolean;
3359
+
3360
+ shadow_banned: boolean;
3361
+
3362
+ updated_at: Date;
3363
+
3364
+ custom: Record<string, any>;
3365
+
3366
+ archived_at?: Date;
3367
+
3368
+ ban_expires?: Date;
3369
+
3370
+ deleted_at?: Date;
3343
3371
 
3344
3372
  invite_accepted_at?: Date;
3345
3373
 
@@ -3347,123 +3375,53 @@ export interface ChannelMember {
3347
3375
 
3348
3376
  invited?: boolean;
3349
3377
 
3350
- is_global_banned?: boolean;
3351
-
3352
3378
  is_moderator?: boolean;
3353
3379
 
3354
- notifications_muted?: boolean;
3355
-
3356
3380
  pinned_at?: Date;
3357
3381
 
3358
- shadow_banned?: boolean;
3382
+ role?: string;
3359
3383
 
3360
3384
  status?: string;
3361
3385
 
3362
- updated_at?: Date;
3363
-
3364
3386
  user_id?: string;
3365
3387
 
3366
3388
  deleted_messages?: string[];
3367
3389
 
3368
- channel?: DenormalizedChannelFields;
3390
+ user?: UserResponse;
3391
+ }
3369
3392
 
3370
- custom?: Record<string, any>;
3393
+ export interface ChannelMessagesResponse {
3394
+ messages: MessageResponse[];
3371
3395
 
3372
- user?: User;
3396
+ channel: ChannelResponse;
3373
3397
  }
3374
3398
 
3375
- export interface ChannelMemberLookup {
3376
- archived: boolean;
3377
-
3378
- banned: boolean;
3399
+ export interface ChannelMute {
3400
+ created_at: Date;
3379
3401
 
3380
- blocked: boolean;
3402
+ updated_at: Date;
3381
3403
 
3382
- hidden: boolean;
3404
+ expires?: Date;
3383
3405
 
3384
- pinned: boolean;
3385
-
3386
- archived_at?: Date;
3387
-
3388
- ban_expires?: Date;
3389
-
3390
- pinned_at?: Date;
3391
- }
3392
-
3393
- export interface ChannelMemberRequest {
3394
- user_id: string;
3395
-
3396
- channel_role?: string;
3397
-
3398
- custom?: Record<string, any>;
3406
+ channel?: ChannelResponse;
3399
3407
 
3400
3408
  user?: UserResponse;
3401
3409
  }
3402
3410
 
3403
- export interface ChannelMemberResponse {
3404
- banned: boolean;
3405
-
3406
- channel_role: string;
3407
-
3411
+ export interface ChannelMutedEvent {
3408
3412
  created_at: Date;
3409
3413
 
3410
- notifications_muted: boolean;
3411
-
3412
- shadow_banned: boolean;
3413
-
3414
- updated_at: Date;
3415
-
3416
3414
  custom: Record<string, any>;
3417
3415
 
3418
- archived_at?: Date;
3419
-
3420
- ban_expires?: Date;
3421
-
3422
- deleted_at?: Date;
3423
-
3424
- invite_accepted_at?: Date;
3425
-
3426
- invite_rejected_at?: Date;
3427
-
3428
- invited?: boolean;
3429
-
3430
- is_moderator?: boolean;
3431
-
3432
- pinned_at?: Date;
3433
-
3434
- role?: 'member' | 'moderator' | 'admin' | 'owner';
3435
-
3436
- status?: string;
3437
-
3438
- user_id?: string;
3439
-
3440
- deleted_messages?: string[];
3441
-
3442
- user?: UserResponse;
3443
- }
3444
-
3445
- export interface ChannelMessages {
3446
- messages: Message[];
3447
-
3448
- channel?: ChannelResponse;
3449
- }
3450
-
3451
- export interface ChannelMute {
3452
- created_at: Date;
3453
-
3454
- updated_at: Date;
3455
-
3456
- expires?: Date;
3416
+ type: string;
3457
3417
 
3458
- channel?: ChannelResponse;
3418
+ received_at?: Date;
3459
3419
 
3460
- user?: UserResponse;
3461
- }
3420
+ mutes?: ChannelMute[];
3462
3421
 
3463
- export interface ChannelMutedEvent {
3464
- created_at: Date;
3422
+ mute?: ChannelMute;
3465
3423
 
3466
- type: string;
3424
+ user?: UserResponseCommonFields;
3467
3425
  }
3468
3426
 
3469
3427
  export const ChannelOwnCapability = {
@@ -3510,12 +3468,6 @@ export const ChannelOwnCapability = {
3510
3468
  export type ChannelOwnCapability =
3511
3469
  (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
3512
3470
 
3513
- export interface ChannelPushPreferences {
3514
- chat_level?: string;
3515
-
3516
- disabled_until?: Date;
3517
- }
3518
-
3519
3471
  export interface ChannelPushPreferencesResponse {
3520
3472
  chat_level?: string;
3521
3473
 
@@ -3647,19 +3599,35 @@ export interface ChannelStateResponseFields {
3647
3599
  }
3648
3600
 
3649
3601
  export interface ChannelTruncatedEvent {
3650
- channel_id: string;
3602
+ created_at: Date;
3651
3603
 
3652
- channel_member_count: number;
3604
+ channel: ChannelResponse;
3653
3605
 
3654
- channel_type: string;
3606
+ custom: Record<string, any>;
3655
3607
 
3656
- cid: string;
3608
+ type: string;
3657
3609
 
3658
- created_at: Date;
3610
+ channel_id?: string;
3659
3611
 
3660
- type: string;
3612
+ channel_member_count?: number;
3661
3613
 
3662
- channel?: ChannelResponse;
3614
+ channel_message_count?: number;
3615
+
3616
+ channel_type?: string;
3617
+
3618
+ cid?: string;
3619
+
3620
+ message_id?: string;
3621
+
3622
+ received_at?: Date;
3623
+
3624
+ team?: string;
3625
+
3626
+ channel_custom?: Record<string, any>;
3627
+
3628
+ message?: MessageResponse;
3629
+
3630
+ user?: UserResponseCommonFields;
3663
3631
  }
3664
3632
 
3665
3633
  export interface ChannelTypeConfig {
@@ -3729,6 +3697,8 @@ export interface ChannelTypeConfig {
3729
3697
 
3730
3698
  partition_ttl?: string;
3731
3699
 
3700
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
3701
+
3732
3702
  allowed_flag_reasons?: string[];
3733
3703
 
3734
3704
  blocklists?: BlockListOptions[];
@@ -3737,57 +3707,95 @@ export interface ChannelTypeConfig {
3737
3707
  }
3738
3708
 
3739
3709
  export interface ChannelUnFrozenEvent {
3740
- channel_id: string;
3710
+ created_at: Date;
3741
3711
 
3742
- channel_type: string;
3712
+ custom: Record<string, any>;
3743
3713
 
3744
- cid: string;
3714
+ type: string;
3745
3715
 
3746
- created_at: Date;
3716
+ channel_id?: string;
3747
3717
 
3748
- type: string;
3718
+ channel_type?: string;
3719
+
3720
+ cid?: string;
3721
+
3722
+ received_at?: Date;
3749
3723
  }
3750
3724
 
3751
3725
  export interface ChannelUnmutedEvent {
3752
3726
  created_at: Date;
3753
3727
 
3728
+ custom: Record<string, any>;
3729
+
3754
3730
  type: string;
3755
- }
3756
3731
 
3757
- export interface ChannelUpdatedEvent {
3758
- channel_id: string;
3732
+ received_at?: Date;
3759
3733
 
3760
- channel_member_count: number;
3734
+ mutes?: ChannelMute[];
3761
3735
 
3762
- channel_type: string;
3736
+ mute?: ChannelMute;
3763
3737
 
3764
- cid: string;
3738
+ user?: UserResponseCommonFields;
3739
+ }
3765
3740
 
3741
+ export interface ChannelUpdatedEvent {
3766
3742
  created_at: Date;
3767
3743
 
3744
+ channel: ChannelResponse;
3745
+
3746
+ custom: Record<string, any>;
3747
+
3768
3748
  type: string;
3769
3749
 
3750
+ channel_id?: string;
3751
+
3752
+ channel_member_count?: number;
3753
+
3754
+ channel_message_count?: number;
3755
+
3756
+ channel_type?: string;
3757
+
3758
+ cid?: string;
3759
+
3760
+ message_id?: string;
3761
+
3762
+ received_at?: Date;
3763
+
3770
3764
  team?: string;
3771
3765
 
3772
- channel?: ChannelResponse;
3766
+ channel_custom?: Record<string, any>;
3773
3767
 
3774
- message?: Message;
3768
+ message?: MessageResponse;
3775
3769
 
3776
- user?: User;
3770
+ user?: UserResponseCommonFields;
3777
3771
  }
3778
3772
 
3779
3773
  export interface ChannelVisibleEvent {
3780
- channel_id: string;
3781
-
3782
- channel_type: string;
3774
+ created_at: Date;
3783
3775
 
3784
- cid: string;
3776
+ channel: ChannelResponse;
3785
3777
 
3786
- created_at: Date;
3778
+ custom: Record<string, any>;
3787
3779
 
3788
3780
  type: string;
3789
3781
 
3790
- user?: User;
3782
+ channel_id?: string;
3783
+
3784
+ channel_member_count?: number;
3785
+
3786
+ channel_message_count?: number;
3787
+
3788
+ channel_type?: string;
3789
+
3790
+ cid?: string;
3791
+
3792
+ received_at?: Date;
3793
+
3794
+ team?: string;
3795
+
3796
+ channel_custom?: Record<string, any>;
3797
+
3798
+ user?: UserResponseCommonFields;
3791
3799
  }
3792
3800
 
3793
3801
  export interface ChatActivityStatsResponse {
@@ -3818,7 +3826,7 @@ export interface CheckPushRequest {
3818
3826
 
3819
3827
  push_provider_name?: string;
3820
3828
 
3821
- push_provider_type?: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
3829
+ push_provider_type?: string;
3822
3830
 
3823
3831
  skip_devices?: boolean;
3824
3832
 
@@ -3892,7 +3900,7 @@ export interface CheckSNSRequest {
3892
3900
  export interface CheckSNSResponse {
3893
3901
  duration: string;
3894
3902
 
3895
- status: 'ok' | 'error';
3903
+ status: string;
3896
3904
 
3897
3905
  error?: string;
3898
3906
 
@@ -3910,7 +3918,7 @@ export interface CheckSQSRequest {
3910
3918
  export interface CheckSQSResponse {
3911
3919
  duration: string;
3912
3920
 
3913
- status: 'ok' | 'error';
3921
+ status: string;
3914
3922
 
3915
3923
  error?: string;
3916
3924
 
@@ -4140,7 +4148,7 @@ export interface CommentResponse {
4140
4148
 
4141
4149
  moderation?: ModerationV2Response;
4142
4150
 
4143
- reaction_groups?: Record<string, ReactionGroupResponse>;
4151
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
4144
4152
  }
4145
4153
 
4146
4154
  export interface CommentUpdatedEvent {
@@ -4167,7 +4175,7 @@ export interface CompositeRecordingResponse {
4167
4175
  status: string;
4168
4176
  }
4169
4177
 
4170
- export interface ConfigOverrides {
4178
+ export interface ConfigOverridesRequest {
4171
4179
  blocklist?: string;
4172
4180
 
4173
4181
  blocklist_behavior?: 'flag' | 'block';
@@ -4237,7 +4245,7 @@ export interface ContentCountRuleParameters {
4237
4245
  time_window?: string;
4238
4246
  }
4239
4247
 
4240
- export interface Coordinates {
4248
+ export interface CoordinatesResponse {
4241
4249
  latitude: number;
4242
4250
 
4243
4251
  longitude: number;
@@ -4282,7 +4290,7 @@ export interface CreateCallTypeRequest {
4282
4290
 
4283
4291
  grants?: Record<string, string[]>;
4284
4292
 
4285
- notification_settings?: NotificationSettings;
4293
+ notification_settings?: NotificationSettingsRequest;
4286
4294
 
4287
4295
  settings?: CallSettingsRequest;
4288
4296
  }
@@ -4298,7 +4306,7 @@ export interface CreateCallTypeResponse {
4298
4306
 
4299
4307
  grants: Record<string, string[]>;
4300
4308
 
4301
- notification_settings: NotificationSettings;
4309
+ notification_settings: NotificationSettingsResponse;
4302
4310
 
4303
4311
  settings: CallSettingsResponse;
4304
4312
 
@@ -4328,7 +4336,7 @@ export interface CreateChannelTypeRequest {
4328
4336
 
4329
4337
  mark_messages_pending?: boolean;
4330
4338
 
4331
- message_retention?: 'infinite' | 'numeric';
4339
+ message_retention?: string;
4332
4340
 
4333
4341
  mutes?: boolean;
4334
4342
 
@@ -4338,6 +4346,8 @@ export interface CreateChannelTypeRequest {
4338
4346
 
4339
4347
  polls?: boolean;
4340
4348
 
4349
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
4350
+
4341
4351
  push_notifications?: boolean;
4342
4352
 
4343
4353
  reactions?: boolean;
@@ -4438,6 +4448,8 @@ export interface CreateChannelTypeResponse {
4438
4448
 
4439
4449
  partition_ttl?: string;
4440
4450
 
4451
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
4452
+
4441
4453
  allowed_flag_reasons?: string[];
4442
4454
 
4443
4455
  blocklists?: BlockListOptions[];
@@ -4720,7 +4732,7 @@ export interface CreateSIPTrunkResponse {
4720
4732
  sip_trunk?: SIPTrunkResponse;
4721
4733
  }
4722
4734
 
4723
- export interface CustomActionRequest {
4735
+ export interface CustomActionRequestPayload {
4724
4736
  id?: string;
4725
4737
 
4726
4738
  options?: Record<string, any>;
@@ -4747,7 +4759,7 @@ export interface CustomCheckRequest {
4747
4759
 
4748
4760
  user_id?: string;
4749
4761
 
4750
- moderation_payload?: ModerationPayload;
4762
+ moderation_payload?: ModerationPayloadRequest;
4751
4763
 
4752
4764
  user?: UserRequest;
4753
4765
  }
@@ -4762,6 +4774,16 @@ export interface CustomCheckResponse {
4762
4774
  item?: ReviewQueueItemResponse;
4763
4775
  }
4764
4776
 
4777
+ export interface CustomEvent {
4778
+ created_at: Date;
4779
+
4780
+ custom: Record<string, any>;
4781
+
4782
+ type: string;
4783
+
4784
+ received_at?: Date;
4785
+ }
4786
+
4765
4787
  export interface CustomVideoEvent {
4766
4788
  call_cid: string;
4767
4789
 
@@ -4902,7 +4924,7 @@ export interface DeleteActivityReactionResponse {
4902
4924
  reaction: FeedsReactionResponse;
4903
4925
  }
4904
4926
 
4905
- export interface DeleteActivityRequest {
4927
+ export interface DeleteActivityRequestPayload {
4906
4928
  hard_delete?: boolean;
4907
4929
 
4908
4930
  reason?: string;
@@ -4978,7 +5000,7 @@ export interface DeleteCommentReactionResponse {
4978
5000
  reaction: FeedsReactionResponse;
4979
5001
  }
4980
5002
 
4981
- export interface DeleteCommentRequest {
5003
+ export interface DeleteCommentRequestPayload {
4982
5004
  hard_delete?: boolean;
4983
5005
 
4984
5006
  reason?: string;
@@ -5036,7 +5058,7 @@ export interface DeleteImportV2TaskResponse {
5036
5058
  duration: string;
5037
5059
  }
5038
5060
 
5039
- export interface DeleteMessageRequest {
5061
+ export interface DeleteMessageRequestPayload {
5040
5062
  hard_delete?: boolean;
5041
5063
 
5042
5064
  reason?: string;
@@ -5060,7 +5082,7 @@ export interface DeleteModerationTemplateResponse {
5060
5082
  duration: string;
5061
5083
  }
5062
5084
 
5063
- export interface DeleteReactionRequest {
5085
+ export interface DeleteReactionRequestPayload {
5064
5086
  hard_delete?: boolean;
5065
5087
 
5066
5088
  reason?: string;
@@ -5098,7 +5120,7 @@ export interface DeleteTranscriptionResponse {
5098
5120
  duration: string;
5099
5121
  }
5100
5122
 
5101
- export interface DeleteUserRequest {
5123
+ export interface DeleteUserRequestPayload {
5102
5124
  delete_conversation_channels?: boolean;
5103
5125
 
5104
5126
  delete_feeds_content?: boolean;
@@ -5140,56 +5162,10 @@ export interface DeliveredMessagePayload {
5140
5162
  id?: string;
5141
5163
  }
5142
5164
 
5143
- export interface DeliveryReceipts {
5144
- enabled?: boolean;
5145
- }
5146
-
5147
5165
  export interface DeliveryReceiptsResponse {
5148
5166
  enabled?: boolean;
5149
5167
  }
5150
5168
 
5151
- export interface DenormalizedChannelFields {
5152
- created_at?: string;
5153
-
5154
- created_by_id?: string;
5155
-
5156
- disabled?: boolean;
5157
-
5158
- frozen?: boolean;
5159
-
5160
- id?: string;
5161
-
5162
- last_message_at?: string;
5163
-
5164
- member_count?: number;
5165
-
5166
- team?: string;
5167
-
5168
- type?: string;
5169
-
5170
- updated_at?: string;
5171
-
5172
- custom?: Record<string, any>;
5173
- }
5174
-
5175
- export interface Device {
5176
- created_at: Date;
5177
-
5178
- id: string;
5179
-
5180
- push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
5181
-
5182
- user_id: string;
5183
-
5184
- disabled?: boolean;
5185
-
5186
- disabled_reason?: string;
5187
-
5188
- push_provider_name?: string;
5189
-
5190
- voip?: boolean;
5191
- }
5192
-
5193
5169
  export interface DeviceDataResponse {
5194
5170
  name?: string;
5195
5171
 
@@ -5556,6 +5532,22 @@ export interface EventNotificationSettings {
5556
5532
  fcm: FCM;
5557
5533
  }
5558
5534
 
5535
+ export interface EventNotificationSettingsRequest {
5536
+ enabled?: boolean;
5537
+
5538
+ apns?: APNSPayload;
5539
+
5540
+ fcm?: FCMPayload;
5541
+ }
5542
+
5543
+ export interface EventNotificationSettingsResponse {
5544
+ enabled: boolean;
5545
+
5546
+ apns: APNSPayload;
5547
+
5548
+ fcm: FCMPayload;
5549
+ }
5550
+
5559
5551
  export interface EventRequest {
5560
5552
  type: string;
5561
5553
 
@@ -5636,6 +5628,10 @@ export interface FCM {
5636
5628
  data?: Record<string, any>;
5637
5629
  }
5638
5630
 
5631
+ export interface FCMPayload {
5632
+ data?: Record<string, any>;
5633
+ }
5634
+
5639
5635
  export interface FailedChannelUpdates {
5640
5636
  reason: string;
5641
5637
 
@@ -6072,10 +6068,10 @@ export interface FeedVisibilityResponse {
6072
6068
  grants: Record<string, string[]>;
6073
6069
  }
6074
6070
 
6075
- export interface FeedsModerationTemplateConfig {
6076
- config_key: string;
6077
-
6071
+ export interface FeedsModerationTemplateConfigPayload {
6078
6072
  data_types: Record<string, string>;
6073
+
6074
+ config_key?: string;
6079
6075
  }
6080
6076
 
6081
6077
  export interface FeedsPreferences {
@@ -6099,6 +6095,8 @@ export interface FeedsPreferencesResponse {
6099
6095
 
6100
6096
  comment_reaction?: string;
6101
6097
 
6098
+ comment_reply?: string;
6099
+
6102
6100
  follow?: string;
6103
6101
 
6104
6102
  mention?: string;
@@ -6108,8 +6106,16 @@ export interface FeedsPreferencesResponse {
6108
6106
  custom_activity_types?: Record<string, string>;
6109
6107
  }
6110
6108
 
6111
- export interface FeedsReactionResponse {
6112
- activity_id: string;
6109
+ export interface FeedsReactionGroupResponse {
6110
+ count: number;
6111
+
6112
+ first_reaction_at: Date;
6113
+
6114
+ last_reaction_at: Date;
6115
+ }
6116
+
6117
+ export interface FeedsReactionResponse {
6118
+ activity_id: string;
6113
6119
 
6114
6120
  created_at: Date;
6115
6121
 
@@ -6192,57 +6198,27 @@ export interface FirebaseConfigFields {
6192
6198
  server_key?: string;
6193
6199
  }
6194
6200
 
6195
- export interface Flag {
6196
- created_at: Date;
6197
-
6198
- created_by_automod: boolean;
6199
-
6200
- updated_at: Date;
6201
-
6202
- approved_at?: Date;
6203
-
6204
- reason?: string;
6205
-
6206
- rejected_at?: Date;
6207
-
6208
- reviewed_at?: Date;
6209
-
6210
- reviewed_by?: string;
6211
-
6212
- target_message_id?: string;
6213
-
6214
- custom?: Record<string, any>;
6215
-
6216
- details?: FlagDetails;
6217
-
6218
- target_message?: Message;
6219
-
6220
- target_user?: User;
6221
-
6222
- user?: User;
6223
- }
6224
-
6225
6201
  export interface FlagCountRuleParameters {
6226
6202
  threshold?: number;
6227
6203
  }
6228
6204
 
6229
- export interface FlagDetails {
6205
+ export interface FlagDetailsResponse {
6230
6206
  original_text: string;
6231
6207
 
6232
- extra: Record<string, any>;
6208
+ automod?: AutomodDetailsResponse;
6233
6209
 
6234
- automod?: AutomodDetails;
6210
+ extra?: Record<string, any>;
6235
6211
  }
6236
6212
 
6237
- export interface FlagFeedback {
6213
+ export interface FlagFeedbackResponse {
6238
6214
  created_at: Date;
6239
6215
 
6240
6216
  message_id: string;
6241
6217
 
6242
- labels: Label[];
6218
+ labels: LabelResponse[];
6243
6219
  }
6244
6220
 
6245
- export interface FlagMessageDetails {
6221
+ export interface FlagMessageDetailsResponse {
6246
6222
  pin_changed?: boolean;
6247
6223
 
6248
6224
  should_enrich?: boolean;
@@ -6351,6 +6327,8 @@ export interface FollowRequest {
6351
6327
 
6352
6328
  target: string;
6353
6329
 
6330
+ copy_custom_to_notification?: boolean;
6331
+
6354
6332
  create_notification_activity?: boolean;
6355
6333
 
6356
6334
  push_preference?: 'all' | 'none';
@@ -6428,6 +6406,14 @@ export interface FrameRecordingSettingsResponse {
6428
6406
  quality?: string;
6429
6407
  }
6430
6408
 
6409
+ export interface FriendReactionsOptions {
6410
+ enabled?: boolean;
6411
+
6412
+ limit?: number;
6413
+
6414
+ type?: 'following' | 'mutual';
6415
+ }
6416
+
6431
6417
  export interface FullUserResponse {
6432
6418
  banned: boolean;
6433
6419
 
@@ -6568,6 +6554,26 @@ export interface GetBlockedUsersResponse {
6568
6554
  blocks: BlockedUserResponse[];
6569
6555
  }
6570
6556
 
6557
+ export interface GetCallParticipantSessionMetricsResponse {
6558
+ duration: string;
6559
+
6560
+ is_publisher?: boolean;
6561
+
6562
+ is_subscriber?: boolean;
6563
+
6564
+ joined_at?: Date;
6565
+
6566
+ publisher_type?: string;
6567
+
6568
+ user_id?: string;
6569
+
6570
+ user_session_id?: string;
6571
+
6572
+ published_tracks?: PublishedTrackMetrics[];
6573
+
6574
+ client?: SessionClient;
6575
+ }
6576
+
6571
6577
  export interface GetCallReportResponse {
6572
6578
  duration: string;
6573
6579
 
@@ -6625,7 +6631,7 @@ export interface GetCallTypeResponse {
6625
6631
 
6626
6632
  grants: Record<string, string[]>;
6627
6633
 
6628
- notification_settings: NotificationSettings;
6634
+ notification_settings: NotificationSettingsResponse;
6629
6635
 
6630
6636
  settings: CallSettingsResponse;
6631
6637
 
@@ -6709,6 +6715,8 @@ export interface GetChannelTypeResponse {
6709
6715
 
6710
6716
  partition_ttl?: string;
6711
6717
 
6718
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
6719
+
6712
6720
  allowed_flag_reasons?: string[];
6713
6721
 
6714
6722
  blocklists?: BlockListOptions[];
@@ -6803,13 +6811,13 @@ export interface GetFeedVisibilityResponse {
6803
6811
  export interface GetFeedsRateLimitsResponse {
6804
6812
  duration: string;
6805
6813
 
6806
- android?: Record<string, LimitInfo>;
6814
+ android?: Record<string, LimitInfoResponse>;
6807
6815
 
6808
- ios?: Record<string, LimitInfo>;
6816
+ ios?: Record<string, LimitInfoResponse>;
6809
6817
 
6810
- server_side?: Record<string, LimitInfo>;
6818
+ server_side?: Record<string, LimitInfoResponse>;
6811
6819
 
6812
- web?: Record<string, LimitInfo>;
6820
+ web?: Record<string, LimitInfoResponse>;
6813
6821
  }
6814
6822
 
6815
6823
  export interface GetFollowSuggestionsResponse {
@@ -6996,6 +7004,8 @@ export interface GetOrCreateFeedRequest {
6996
7004
 
6997
7005
  following_pagination?: PagerRequest;
6998
7006
 
7007
+ friend_reactions_options?: FriendReactionsOptions;
7008
+
6999
7009
  interest_weights?: Record<string, number>;
7000
7010
 
7001
7011
  member_pagination?: PagerRequest;
@@ -7054,19 +7064,19 @@ export interface GetOrCreateFeedViewResponse {
7054
7064
  export interface GetPushTemplatesResponse {
7055
7065
  duration: string;
7056
7066
 
7057
- templates: PushTemplate[];
7067
+ templates: PushTemplateResponse[];
7058
7068
  }
7059
7069
 
7060
7070
  export interface GetRateLimitsResponse {
7061
7071
  duration: string;
7062
7072
 
7063
- android?: Record<string, LimitInfo>;
7073
+ android?: Record<string, LimitInfoResponse>;
7064
7074
 
7065
- ios?: Record<string, LimitInfo>;
7075
+ ios?: Record<string, LimitInfoResponse>;
7066
7076
 
7067
- server_side?: Record<string, LimitInfo>;
7077
+ server_side?: Record<string, LimitInfoResponse>;
7068
7078
 
7069
- web?: Record<string, LimitInfo>;
7079
+ web?: Record<string, LimitInfoResponse>;
7070
7080
  }
7071
7081
 
7072
7082
  export interface GetReactionsResponse {
@@ -7246,11 +7256,11 @@ export interface ImageRuleParameters {
7246
7256
  }
7247
7257
 
7248
7258
  export interface ImageSize {
7249
- crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
7259
+ crop?: string;
7250
7260
 
7251
7261
  height?: number;
7252
7262
 
7253
- resize?: 'clip' | 'crop' | 'scale' | 'fill';
7263
+ resize?: string;
7254
7264
 
7255
7265
  width?: number;
7256
7266
  }
@@ -7332,6 +7342,10 @@ export interface ImportV2TaskItem {
7332
7342
  }
7333
7343
 
7334
7344
  export interface ImportV2TaskSettings {
7345
+ mode?: string;
7346
+
7347
+ path?: string;
7348
+
7335
7349
  skip_references_check?: boolean;
7336
7350
 
7337
7351
  s3?: ImportV2TaskSettingsS3;
@@ -7598,7 +7612,7 @@ export interface LLMRule {
7598
7612
  severity_rules?: BodyguardSeverityRule[];
7599
7613
  }
7600
7614
 
7601
- export interface Label {
7615
+ export interface LabelResponse {
7602
7616
  name: string;
7603
7617
 
7604
7618
  harm_labels?: string[];
@@ -7648,7 +7662,7 @@ export interface LayoutSettingsResponse {
7648
7662
  options?: Record<string, any>;
7649
7663
  }
7650
7664
 
7651
- export interface LimitInfo {
7665
+ export interface LimitInfoResponse {
7652
7666
  limit: number;
7653
7667
 
7654
7668
  remaining: number;
@@ -7798,7 +7812,7 @@ export interface ListTranscriptionsResponse {
7798
7812
  transcriptions: CallTranscription[];
7799
7813
  }
7800
7814
 
7801
- export interface Location {
7815
+ export interface LocationResponse {
7802
7816
  continent_code: string;
7803
7817
 
7804
7818
  country_iso_code: string;
@@ -7854,7 +7868,7 @@ export interface MarkReadResponse {
7854
7868
  event?: MessageReadEvent;
7855
7869
  }
7856
7870
 
7857
- export interface MarkReviewedRequest {
7871
+ export interface MarkReviewedRequestPayload {
7858
7872
  content_to_mark_as_reviewed_limit?: number;
7859
7873
 
7860
7874
  decision_reason?: string;
@@ -7874,38 +7888,74 @@ export interface MarkUnreadRequest {
7874
7888
  user?: UserRequest;
7875
7889
  }
7876
7890
 
7877
- export interface MemberAddedEvent {
7878
- channel_id: string;
7891
+ export interface MaxStreakChangedEvent {
7892
+ created_at: Date;
7879
7893
 
7880
- channel_type: string;
7894
+ custom: Record<string, any>;
7881
7895
 
7882
- cid: string;
7896
+ type: string;
7897
+
7898
+ received_at?: Date;
7899
+ }
7883
7900
 
7901
+ export interface MemberAddedEvent {
7884
7902
  created_at: Date;
7885
7903
 
7904
+ channel: ChannelResponse;
7905
+
7906
+ custom: Record<string, any>;
7907
+
7908
+ member: ChannelMemberResponse;
7909
+
7886
7910
  type: string;
7887
7911
 
7912
+ channel_id?: string;
7913
+
7914
+ channel_member_count?: number;
7915
+
7916
+ channel_message_count?: number;
7917
+
7918
+ channel_type?: string;
7919
+
7920
+ cid?: string;
7921
+
7922
+ received_at?: Date;
7923
+
7888
7924
  team?: string;
7889
7925
 
7890
- member?: ChannelMember;
7926
+ channel_custom?: Record<string, any>;
7891
7927
 
7892
- user?: User;
7928
+ user?: UserResponseCommonFields;
7893
7929
  }
7894
7930
 
7895
7931
  export interface MemberRemovedEvent {
7896
- channel_id: string;
7932
+ created_at: Date;
7897
7933
 
7898
- channel_type: string;
7934
+ channel: ChannelResponse;
7899
7935
 
7900
- cid: string;
7936
+ custom: Record<string, any>;
7901
7937
 
7902
- created_at: Date;
7938
+ member: ChannelMemberResponse;
7903
7939
 
7904
7940
  type: string;
7905
7941
 
7906
- member?: ChannelMember;
7942
+ channel_id?: string;
7907
7943
 
7908
- user?: User;
7944
+ channel_member_count?: number;
7945
+
7946
+ channel_message_count?: number;
7947
+
7948
+ channel_type?: string;
7949
+
7950
+ cid?: string;
7951
+
7952
+ received_at?: Date;
7953
+
7954
+ team?: string;
7955
+
7956
+ channel_custom?: Record<string, any>;
7957
+
7958
+ user?: UserResponseCommonFields;
7909
7959
  }
7910
7960
 
7911
7961
  export interface MemberRequest {
@@ -7933,21 +7983,33 @@ export interface MemberResponse {
7933
7983
  }
7934
7984
 
7935
7985
  export interface MemberUpdatedEvent {
7936
- channel_id: string;
7986
+ created_at: Date;
7937
7987
 
7938
- channel_type: string;
7988
+ channel: ChannelResponse;
7939
7989
 
7940
- cid: string;
7990
+ custom: Record<string, any>;
7941
7991
 
7942
- created_at: Date;
7992
+ member: ChannelMemberResponse;
7943
7993
 
7944
7994
  type: string;
7945
7995
 
7996
+ channel_id?: string;
7997
+
7998
+ channel_member_count?: number;
7999
+
8000
+ channel_message_count?: number;
8001
+
8002
+ channel_type?: string;
8003
+
8004
+ cid?: string;
8005
+
8006
+ received_at?: Date;
8007
+
7946
8008
  team?: string;
7947
8009
 
7948
- member?: ChannelMember;
8010
+ channel_custom?: Record<string, any>;
7949
8011
 
7950
- user?: User;
8012
+ user?: UserResponseCommonFields;
7951
8013
  }
7952
8014
 
7953
8015
  export interface MembersResponse {
@@ -7974,96 +8036,6 @@ export interface MembershipLevelResponse {
7974
8036
  custom?: Record<string, any>;
7975
8037
  }
7976
8038
 
7977
- export interface Message {
7978
- cid: string;
7979
-
7980
- created_at: Date;
7981
-
7982
- deleted_reply_count: number;
7983
-
7984
- html: string;
7985
-
7986
- id: string;
7987
-
7988
- pinned: boolean;
7989
-
7990
- reply_count: number;
7991
-
7992
- shadowed: boolean;
7993
-
7994
- silent: boolean;
7995
-
7996
- text: string;
7997
-
7998
- type: string;
7999
-
8000
- updated_at: Date;
8001
-
8002
- attachments: Attachment[];
8003
-
8004
- latest_reactions: Reaction[];
8005
-
8006
- mentioned_users: User[];
8007
-
8008
- own_reactions: Reaction[];
8009
-
8010
- restricted_visibility: string[];
8011
-
8012
- custom: Record<string, any>;
8013
-
8014
- reaction_counts: Record<string, number>;
8015
-
8016
- reaction_groups: Record<string, ReactionGroupResponse>;
8017
-
8018
- reaction_scores: Record<string, number>;
8019
-
8020
- before_message_send_failed?: boolean;
8021
-
8022
- command?: string;
8023
-
8024
- deleted_at?: Date;
8025
-
8026
- deleted_for_me?: boolean;
8027
-
8028
- message_text_updated_at?: Date;
8029
-
8030
- mml?: string;
8031
-
8032
- parent_id?: string;
8033
-
8034
- pin_expires?: Date;
8035
-
8036
- pinned_at?: Date;
8037
-
8038
- poll_id?: string;
8039
-
8040
- quoted_message_id?: string;
8041
-
8042
- show_in_channel?: boolean;
8043
-
8044
- thread_participants?: User[];
8045
-
8046
- i18n?: Record<string, string>;
8047
-
8048
- image_labels?: Record<string, string[]>;
8049
-
8050
- member?: ChannelMember;
8051
-
8052
- moderation?: ModerationV2Response;
8053
-
8054
- pinned_by?: User;
8055
-
8056
- poll?: Poll;
8057
-
8058
- quoted_message?: Message;
8059
-
8060
- reminder?: MessageReminder;
8061
-
8062
- shared_location?: SharedLocation;
8063
-
8064
- user?: User;
8065
- }
8066
-
8067
8039
  export interface MessageActionRequest {
8068
8040
  form_data: Record<string, string>;
8069
8041
 
@@ -8072,6 +8044,12 @@ export interface MessageActionRequest {
8072
8044
  user?: UserRequest;
8073
8045
  }
8074
8046
 
8047
+ export interface MessageActionResponse {
8048
+ duration: string;
8049
+
8050
+ message?: MessageResponse;
8051
+ }
8052
+
8075
8053
  export interface MessageChangeSet {
8076
8054
  attachments: boolean;
8077
8055
 
@@ -8093,27 +8071,37 @@ export interface MessageChangeSet {
8093
8071
  }
8094
8072
 
8095
8073
  export interface MessageDeletedEvent {
8096
- channel_id: string;
8074
+ created_at: Date;
8097
8075
 
8098
- channel_type: string;
8076
+ hard_delete: boolean;
8099
8077
 
8100
- cid: string;
8078
+ message_id: string;
8101
8079
 
8102
- created_at: Date;
8080
+ custom: Record<string, any>;
8103
8081
 
8104
- hard_delete: boolean;
8082
+ message: MessageResponse;
8105
8083
 
8106
8084
  type: string;
8107
8085
 
8086
+ channel_id?: string;
8087
+
8088
+ channel_member_count?: number;
8089
+
8090
+ channel_message_count?: number;
8091
+
8092
+ channel_type?: string;
8093
+
8094
+ cid?: string;
8095
+
8108
8096
  deleted_for_me?: boolean;
8109
8097
 
8110
- team?: string;
8098
+ received_at?: Date;
8111
8099
 
8112
- thread_participants?: User[];
8100
+ team?: string;
8113
8101
 
8114
- message?: Message;
8102
+ channel_custom?: Record<string, any>;
8115
8103
 
8116
- user?: User;
8104
+ user?: UserResponseCommonFields;
8117
8105
  }
8118
8106
 
8119
8107
  export interface MessageFlagResponse {
@@ -8133,11 +8121,11 @@ export interface MessageFlagResponse {
8133
8121
 
8134
8122
  custom?: Record<string, any>;
8135
8123
 
8136
- details?: FlagDetails;
8124
+ details?: FlagDetailsResponse;
8137
8125
 
8138
- message?: Message;
8126
+ message?: MessageResponse;
8139
8127
 
8140
- moderation_feedback?: FlagFeedback;
8128
+ moderation_feedback?: FlagFeedbackResponse;
8141
8129
 
8142
8130
  moderation_result?: MessageModerationResult;
8143
8131
 
@@ -8147,20 +8135,42 @@ export interface MessageFlagResponse {
8147
8135
  }
8148
8136
 
8149
8137
  export interface MessageFlaggedEvent {
8150
- cid: string;
8151
-
8152
8138
  created_at: Date;
8153
8139
 
8154
- type: string;
8140
+ message_id: string;
8155
8141
 
8156
- thread_participants?: User[];
8142
+ message: MessageResponse;
8157
8143
 
8158
- flag?: Flag;
8144
+ type: string;
8159
8145
 
8160
- message?: Message;
8146
+ channel_id?: string;
8161
8147
 
8162
- user?: User;
8163
- }
8148
+ channel_member_count?: number;
8149
+
8150
+ channel_message_count?: number;
8151
+
8152
+ channel_type?: string;
8153
+
8154
+ cid?: string;
8155
+
8156
+ reason?: string;
8157
+
8158
+ received_at?: Date;
8159
+
8160
+ team?: string;
8161
+
8162
+ total_flags?: number;
8163
+
8164
+ channel_custom?: Record<string, any>;
8165
+
8166
+ custom?: Record<string, any>;
8167
+
8168
+ details?: MessageModerationResult;
8169
+
8170
+ flag?: FlagResponse;
8171
+
8172
+ user?: UserResponseCommonFields;
8173
+ }
8164
8174
 
8165
8175
  export interface MessageHistoryEntryResponse {
8166
8176
  is_deleted: boolean;
@@ -8203,25 +8213,47 @@ export interface MessageModerationResult {
8203
8213
  }
8204
8214
 
8205
8215
  export interface MessageNewEvent {
8206
- channel_id: string;
8216
+ created_at: Date;
8207
8217
 
8208
- channel_type: string;
8218
+ message_id: string;
8209
8219
 
8210
- cid: string;
8220
+ watcher_count: number;
8211
8221
 
8212
- created_at: Date;
8222
+ custom: Record<string, any>;
8213
8223
 
8214
- watcher_count: number;
8224
+ message: MessageResponse;
8215
8225
 
8216
8226
  type: string;
8217
8227
 
8228
+ channel_id?: string;
8229
+
8230
+ channel_member_count?: number;
8231
+
8232
+ channel_message_count?: number;
8233
+
8234
+ channel_type?: string;
8235
+
8236
+ cid?: string;
8237
+
8238
+ parent_author?: string;
8239
+
8240
+ received_at?: Date;
8241
+
8218
8242
  team?: string;
8219
8243
 
8220
- thread_participants?: User[];
8244
+ total_unread_count?: number;
8221
8245
 
8222
- message?: Message;
8246
+ unread_channels?: number;
8223
8247
 
8224
- user?: User;
8248
+ unread_count?: number;
8249
+
8250
+ thread_participants?: UserResponseCommonFields[];
8251
+
8252
+ channel?: ChannelResponse;
8253
+
8254
+ channel_custom?: Record<string, any>;
8255
+
8256
+ user?: UserResponseCommonFields;
8225
8257
  }
8226
8258
 
8227
8259
  export interface MessageOptions {
@@ -8276,33 +8308,13 @@ export interface MessageReadEvent {
8276
8308
  user?: UserResponseCommonFields;
8277
8309
  }
8278
8310
 
8279
- export interface MessageReminder {
8280
- channel_cid: string;
8281
-
8282
- created_at: Date;
8283
-
8284
- message_id: string;
8285
-
8286
- task_id: string;
8287
-
8288
- updated_at: Date;
8289
-
8290
- user_id: string;
8291
-
8292
- remind_at?: Date;
8293
-
8294
- channel?: Channel;
8295
-
8296
- message?: Message;
8297
-
8298
- user?: User;
8299
- }
8300
-
8301
8311
  export interface MessageRequest {
8302
8312
  html?: string;
8303
8313
 
8304
8314
  id?: string;
8305
8315
 
8316
+ mentioned_channel?: boolean;
8317
+
8306
8318
  mml?: string;
8307
8319
 
8308
8320
  parent_id?: string;
@@ -8351,6 +8363,8 @@ export interface MessageResponse {
8351
8363
 
8352
8364
  id: string;
8353
8365
 
8366
+ mentioned_channel: boolean;
8367
+
8354
8368
  pinned: boolean;
8355
8369
 
8356
8370
  reply_count: number;
@@ -8361,7 +8375,7 @@ export interface MessageResponse {
8361
8375
 
8362
8376
  text: string;
8363
8377
 
8364
- type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
8378
+ type: string;
8365
8379
 
8366
8380
  updated_at: Date;
8367
8381
 
@@ -8435,37 +8449,49 @@ export interface MessageStatsResponse {
8435
8449
  }
8436
8450
 
8437
8451
  export interface MessageUnblockedEvent {
8438
- cid: string;
8439
-
8440
8452
  created_at: Date;
8441
8453
 
8454
+ message_id: string;
8455
+
8456
+ custom: Record<string, any>;
8457
+
8458
+ message: MessageResponse;
8459
+
8442
8460
  type: string;
8443
8461
 
8444
- thread_participants?: User[];
8462
+ cid?: string;
8445
8463
 
8446
- message?: Message;
8464
+ received_at?: Date;
8447
8465
 
8448
- user?: User;
8466
+ user?: UserResponseCommonFields;
8449
8467
  }
8450
8468
 
8451
8469
  export interface MessageUndeletedEvent {
8452
- channel_id: string;
8470
+ created_at: Date;
8453
8471
 
8454
- channel_type: string;
8472
+ message_id: string;
8455
8473
 
8456
- cid: string;
8474
+ custom: Record<string, any>;
8457
8475
 
8458
- created_at: Date;
8476
+ message: MessageResponse;
8459
8477
 
8460
8478
  type: string;
8461
8479
 
8462
- team?: string;
8480
+ channel_id?: string;
8463
8481
 
8464
- thread_participants?: User[];
8482
+ channel_member_count?: number;
8465
8483
 
8466
- message?: Message;
8484
+ channel_message_count?: number;
8467
8485
 
8468
- user?: User;
8486
+ channel_type?: string;
8487
+
8488
+ cid?: string;
8489
+
8490
+ received_at?: Date;
8491
+
8492
+ team?: string;
8493
+
8494
+ channel_custom?: Record<string, any>;
8469
8495
  }
8470
8496
 
8471
8497
  export interface MessageUpdate {
@@ -8475,23 +8501,35 @@ export interface MessageUpdate {
8475
8501
  }
8476
8502
 
8477
8503
  export interface MessageUpdatedEvent {
8478
- channel_id: string;
8504
+ created_at: Date;
8479
8505
 
8480
- channel_type: string;
8506
+ message_id: string;
8481
8507
 
8482
- cid: string;
8508
+ custom: Record<string, any>;
8483
8509
 
8484
- created_at: Date;
8510
+ message: MessageResponse;
8485
8511
 
8486
8512
  type: string;
8487
8513
 
8514
+ channel_id?: string;
8515
+
8516
+ channel_member_count?: number;
8517
+
8518
+ channel_message_count?: number;
8519
+
8520
+ channel_type?: string;
8521
+
8522
+ cid?: string;
8523
+
8524
+ received_at?: Date;
8525
+
8488
8526
  team?: string;
8489
8527
 
8490
- thread_participants?: User[];
8528
+ channel_custom?: Record<string, any>;
8491
8529
 
8492
- message?: Message;
8530
+ message_update?: MessageUpdate;
8493
8531
 
8494
- user?: User;
8532
+ user?: UserResponseCommonFields;
8495
8533
  }
8496
8534
 
8497
8535
  export interface MessageWithChannelResponse {
@@ -8505,6 +8543,8 @@ export interface MessageWithChannelResponse {
8505
8543
 
8506
8544
  id: string;
8507
8545
 
8546
+ mentioned_channel: boolean;
8547
+
8508
8548
  pinned: boolean;
8509
8549
 
8510
8550
  reply_count: number;
@@ -8515,7 +8555,7 @@ export interface MessageWithChannelResponse {
8515
8555
 
8516
8556
  text: string;
8517
8557
 
8518
- type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
8558
+ type: string;
8519
8559
 
8520
8560
  updated_at: Date;
8521
8561
 
@@ -8606,7 +8646,11 @@ export interface MetricThreshold {
8606
8646
  window_seconds?: number;
8607
8647
  }
8608
8648
 
8609
- export interface ModerationActionConfig {
8649
+ export interface MetricTimeSeries {
8650
+ data_points?: number[][];
8651
+ }
8652
+
8653
+ export interface ModerationActionConfigResponse {
8610
8654
  action: string;
8611
8655
 
8612
8656
  description: string;
@@ -8617,7 +8661,7 @@ export interface ModerationActionConfig {
8617
8661
 
8618
8662
  order: number;
8619
8663
 
8620
- custom: Record<string, any>;
8664
+ custom?: Record<string, any>;
8621
8665
  }
8622
8666
 
8623
8667
  export interface ModerationCheckCompletedEvent {
@@ -8695,6 +8739,10 @@ export interface ModerationCustomActionEvent {
8695
8739
  }
8696
8740
 
8697
8741
  export interface ModerationDashboardPreferences {
8742
+ async_review_queue_upsert?: boolean;
8743
+
8744
+ disable_audit_logs?: boolean;
8745
+
8698
8746
  disable_flagging_reviewed_entity?: boolean;
8699
8747
 
8700
8748
  flag_user_on_flagged_content?: boolean;
@@ -8731,7 +8779,7 @@ export interface ModerationFlagResponse {
8731
8779
 
8732
8780
  custom?: Record<string, any>;
8733
8781
 
8734
- moderation_payload?: ModerationPayload;
8782
+ moderation_payload?: ModerationPayloadResponse;
8735
8783
 
8736
8784
  review_queue_item?: ReviewQueueItemResponse;
8737
8785
 
@@ -8739,15 +8787,17 @@ export interface ModerationFlagResponse {
8739
8787
  }
8740
8788
 
8741
8789
  export interface ModerationFlaggedEvent {
8790
+ content_type: string;
8791
+
8742
8792
  created_at: Date;
8743
8793
 
8744
- type: string;
8794
+ object_id: string;
8745
8795
 
8746
- item?: string;
8796
+ custom: Record<string, any>;
8747
8797
 
8748
- object_id?: string;
8798
+ type: string;
8749
8799
 
8750
- user?: User;
8800
+ received_at?: Date;
8751
8801
  }
8752
8802
 
8753
8803
  export interface ModerationMarkReviewedEvent {
@@ -8774,6 +8824,26 @@ export interface ModerationPayload {
8774
8824
  custom?: Record<string, any>;
8775
8825
  }
8776
8826
 
8827
+ export interface ModerationPayloadRequest {
8828
+ images?: string[];
8829
+
8830
+ texts?: string[];
8831
+
8832
+ videos?: string[];
8833
+
8834
+ custom?: Record<string, any>;
8835
+ }
8836
+
8837
+ export interface ModerationPayloadResponse {
8838
+ images?: string[];
8839
+
8840
+ texts?: string[];
8841
+
8842
+ videos?: string[];
8843
+
8844
+ custom?: Record<string, any>;
8845
+ }
8846
+
8777
8847
  export interface ModerationResponse {
8778
8848
  action: string;
8779
8849
 
@@ -8847,7 +8917,7 @@ export interface MuteChannelResponse {
8847
8917
 
8848
8918
  channel_mute?: ChannelMute;
8849
8919
 
8850
- own_user?: OwnUser;
8920
+ own_user?: OwnUserResponse;
8851
8921
  }
8852
8922
 
8853
8923
  export interface MuteRequest {
@@ -8863,11 +8933,11 @@ export interface MuteRequest {
8863
8933
  export interface MuteResponse {
8864
8934
  duration: string;
8865
8935
 
8866
- mutes?: UserMute[];
8936
+ mutes?: UserMuteResponse[];
8867
8937
 
8868
8938
  non_existing_users?: string[];
8869
8939
 
8870
- own_user?: OwnUser;
8940
+ own_user?: OwnUserResponse;
8871
8941
  }
8872
8942
 
8873
8943
  export interface MuteUsersRequest {
@@ -8951,41 +9021,51 @@ export interface NotificationFeedUpdatedEvent {
8951
9021
  }
8952
9022
 
8953
9023
  export interface NotificationMarkUnreadEvent {
8954
- channel_id: string;
8955
-
8956
- channel_member_count: number;
8957
-
8958
- channel_type: string;
8959
-
8960
- cid: string;
8961
-
8962
9024
  created_at: Date;
8963
9025
 
8964
- first_unread_message_id: string;
9026
+ custom: Record<string, any>;
8965
9027
 
8966
- last_read_at: Date;
9028
+ type: string;
8967
9029
 
8968
- total_unread_count: number;
9030
+ channel_id?: string;
8969
9031
 
8970
- unread_channels: number;
9032
+ channel_member_count?: number;
8971
9033
 
8972
- unread_count: number;
9034
+ channel_message_count?: number;
8973
9035
 
8974
- unread_messages: number;
9036
+ channel_type?: string;
8975
9037
 
8976
- unread_threads: number;
9038
+ cid?: string;
8977
9039
 
8978
- type: string;
9040
+ first_unread_message_id?: string;
9041
+
9042
+ last_read_at?: Date;
8979
9043
 
8980
9044
  last_read_message_id?: string;
8981
9045
 
9046
+ received_at?: Date;
9047
+
8982
9048
  team?: string;
8983
9049
 
8984
9050
  thread_id?: string;
8985
9051
 
9052
+ total_unread_count?: number;
9053
+
9054
+ unread_channels?: number;
9055
+
9056
+ unread_count?: number;
9057
+
9058
+ unread_messages?: number;
9059
+
9060
+ unread_thread_messages?: number;
9061
+
9062
+ unread_threads?: number;
9063
+
8986
9064
  channel?: ChannelResponse;
8987
9065
 
8988
- user?: User;
9066
+ channel_custom?: Record<string, any>;
9067
+
9068
+ user?: UserResponseCommonFields;
8989
9069
  }
8990
9070
 
8991
9071
  export interface NotificationParentActivity {
@@ -9014,6 +9094,34 @@ export interface NotificationSettings {
9014
9094
  session_started: EventNotificationSettings;
9015
9095
  }
9016
9096
 
9097
+ export interface NotificationSettingsRequest {
9098
+ enabled?: boolean;
9099
+
9100
+ call_live_started?: EventNotificationSettingsRequest;
9101
+
9102
+ call_missed?: EventNotificationSettingsRequest;
9103
+
9104
+ call_notification?: EventNotificationSettingsRequest;
9105
+
9106
+ call_ring?: EventNotificationSettingsRequest;
9107
+
9108
+ session_started?: EventNotificationSettingsRequest;
9109
+ }
9110
+
9111
+ export interface NotificationSettingsResponse {
9112
+ enabled: boolean;
9113
+
9114
+ call_live_started: EventNotificationSettingsResponse;
9115
+
9116
+ call_missed: EventNotificationSettingsResponse;
9117
+
9118
+ call_notification: EventNotificationSettingsResponse;
9119
+
9120
+ call_ring: EventNotificationSettingsResponse;
9121
+
9122
+ session_started: EventNotificationSettingsResponse;
9123
+ }
9124
+
9017
9125
  export interface NotificationStatusResponse {
9018
9126
  unread: number;
9019
9127
 
@@ -9046,6 +9154,48 @@ export interface NotificationTarget {
9046
9154
  parent_activity?: NotificationParentActivity;
9047
9155
  }
9048
9156
 
9157
+ export interface NotificationThreadMessageNewEvent {
9158
+ created_at: Date;
9159
+
9160
+ message_id: string;
9161
+
9162
+ thread_id: string;
9163
+
9164
+ watcher_count: number;
9165
+
9166
+ channel: ChannelResponse;
9167
+
9168
+ custom: Record<string, any>;
9169
+
9170
+ message: MessageResponse;
9171
+
9172
+ type: string;
9173
+
9174
+ channel_id?: string;
9175
+
9176
+ channel_member_count?: number;
9177
+
9178
+ channel_message_count?: number;
9179
+
9180
+ channel_type?: string;
9181
+
9182
+ cid?: string;
9183
+
9184
+ parent_author?: string;
9185
+
9186
+ received_at?: Date;
9187
+
9188
+ team?: string;
9189
+
9190
+ unread_thread_messages?: number;
9191
+
9192
+ unread_threads?: number;
9193
+
9194
+ thread_participants?: UserResponseCommonFields[];
9195
+
9196
+ channel_custom?: Record<string, any>;
9197
+ }
9198
+
9049
9199
  export interface NotificationTrigger {
9050
9200
  text: string;
9051
9201
 
@@ -9129,68 +9279,10 @@ export const OwnCapability = {
9129
9279
  UPDATE_CALL_MEMBER: 'update-call-member',
9130
9280
  UPDATE_CALL_PERMISSIONS: 'update-call-permissions',
9131
9281
  UPDATE_CALL_SETTINGS: 'update-call-settings',
9132
- } as const;
9133
-
9134
- // eslint-disable-next-line @typescript-eslint/no-redeclare
9135
- export type OwnCapability = (typeof OwnCapability)[keyof typeof OwnCapability];
9136
-
9137
- export interface OwnUser {
9138
- banned: boolean;
9139
-
9140
- created_at: Date;
9141
-
9142
- id: string;
9143
-
9144
- language: string;
9145
-
9146
- online: boolean;
9147
-
9148
- role: string;
9149
-
9150
- total_unread_count: number;
9151
-
9152
- unread_channels: number;
9153
-
9154
- unread_count: number;
9155
-
9156
- unread_threads: number;
9157
-
9158
- updated_at: Date;
9159
-
9160
- channel_mutes: ChannelMute[];
9161
-
9162
- devices: Device[];
9163
-
9164
- mutes: UserMute[];
9165
-
9166
- custom: Record<string, any>;
9167
-
9168
- total_unread_count_by_team: Record<string, number>;
9169
-
9170
- avg_response_time?: number;
9171
-
9172
- deactivated_at?: Date;
9173
-
9174
- deleted_at?: Date;
9175
-
9176
- invisible?: boolean;
9177
-
9178
- last_active?: Date;
9179
-
9180
- last_engaged_at?: Date;
9181
-
9182
- blocked_user_ids?: string[];
9183
-
9184
- latest_hidden_channels?: string[];
9185
-
9186
- teams?: string[];
9187
-
9188
- privacy_settings?: PrivacySettings;
9189
-
9190
- push_preferences?: PushPreferences;
9282
+ } as const;
9191
9283
 
9192
- teams_role?: Record<string, string>;
9193
- }
9284
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
9285
+ export type OwnCapability = (typeof OwnCapability)[keyof typeof OwnCapability];
9194
9286
 
9195
9287
  export interface OwnUserResponse {
9196
9288
  banned: boolean;
@@ -9274,6 +9366,14 @@ export interface PaginationParams {
9274
9366
  offset?: number;
9275
9367
  }
9276
9368
 
9369
+ export interface ParsedPredefinedFilterResponse {
9370
+ name: string;
9371
+
9372
+ filter: Record<string, any>;
9373
+
9374
+ sort?: SortParamRequest[];
9375
+ }
9376
+
9277
9377
  export interface ParticipantCountByMinuteResponse {
9278
9378
  first: number;
9279
9379
 
@@ -9413,13 +9513,13 @@ export interface PendingMessageEvent {
9413
9513
 
9414
9514
  received_at?: Date;
9415
9515
 
9416
- channel?: Channel;
9516
+ channel?: ChannelResponse;
9417
9517
 
9418
- message?: Message;
9518
+ message?: MessageResponse;
9419
9519
 
9420
9520
  metadata?: Record<string, string>;
9421
9521
 
9422
- user?: User;
9522
+ user?: UserResponse;
9423
9523
  }
9424
9524
 
9425
9525
  export interface PendingMessageResponse {
@@ -9447,7 +9547,7 @@ export interface Permission {
9447
9547
 
9448
9548
  id: string;
9449
9549
 
9450
- level: 'app' | 'channel';
9550
+ level: string;
9451
9551
 
9452
9552
  name: string;
9453
9553
 
@@ -9540,58 +9640,6 @@ export interface PolicyRequest {
9540
9640
  roles: string[];
9541
9641
  }
9542
9642
 
9543
- export interface Poll {
9544
- allow_answers: boolean;
9545
-
9546
- allow_user_suggested_options: boolean;
9547
-
9548
- answers_count: number;
9549
-
9550
- created_at: Date;
9551
-
9552
- created_by_id: string;
9553
-
9554
- description: string;
9555
-
9556
- enforce_unique_vote: boolean;
9557
-
9558
- id: string;
9559
-
9560
- name: string;
9561
-
9562
- updated_at: Date;
9563
-
9564
- vote_count: number;
9565
-
9566
- latest_answers: PollVote[];
9567
-
9568
- options: PollOption[];
9569
-
9570
- own_votes: PollVote[];
9571
-
9572
- custom: Record<string, any>;
9573
-
9574
- latest_votes_by_option: Record<string, PollVote[]>;
9575
-
9576
- vote_counts_by_option: Record<string, number>;
9577
-
9578
- is_closed?: boolean;
9579
-
9580
- max_votes_allowed?: number;
9581
-
9582
- voting_visibility?: string;
9583
-
9584
- created_by?: User;
9585
- }
9586
-
9587
- export interface PollOption {
9588
- id: string;
9589
-
9590
- text: string;
9591
-
9592
- custom: Record<string, any>;
9593
- }
9594
-
9595
9643
  export interface PollOptionInput {
9596
9644
  text?: string;
9597
9645
 
@@ -9670,26 +9718,6 @@ export interface PollResponseData {
9670
9718
  created_by?: UserResponse;
9671
9719
  }
9672
9720
 
9673
- export interface PollVote {
9674
- created_at: Date;
9675
-
9676
- id: string;
9677
-
9678
- option_id: string;
9679
-
9680
- poll_id: string;
9681
-
9682
- updated_at: Date;
9683
-
9684
- answer_text?: string;
9685
-
9686
- is_answer?: boolean;
9687
-
9688
- user_id?: string;
9689
-
9690
- user?: User;
9691
- }
9692
-
9693
9721
  export interface PollVoteResponse {
9694
9722
  duration: string;
9695
9723
 
@@ -9728,14 +9756,6 @@ export interface PollVotesResponse {
9728
9756
  prev?: string;
9729
9757
  }
9730
9758
 
9731
- export interface PrivacySettings {
9732
- delivery_receipts?: DeliveryReceipts;
9733
-
9734
- read_receipts?: ReadReceipts;
9735
-
9736
- typing_indicators?: TypingIndicators;
9737
- }
9738
-
9739
9759
  export interface PrivacySettingsResponse {
9740
9760
  delivery_receipts?: DeliveryReceiptsResponse;
9741
9761
 
@@ -9754,6 +9774,22 @@ export interface PublishedTrackFlags {
9754
9774
  video: boolean;
9755
9775
  }
9756
9776
 
9777
+ export interface PublishedTrackMetrics {
9778
+ codec?: string;
9779
+
9780
+ track_id?: string;
9781
+
9782
+ track_type?: string;
9783
+
9784
+ warnings?: SessionWarningResponse[];
9785
+
9786
+ bitrate?: MetricTimeSeries;
9787
+
9788
+ framerate?: MetricTimeSeries;
9789
+
9790
+ resolution?: ResolutionMetricsTimeSeries;
9791
+ }
9792
+
9757
9793
  export interface PublisherAllMetrics {
9758
9794
  audio?: PublisherAudioMetrics;
9759
9795
 
@@ -9829,7 +9865,13 @@ export interface PushPreferenceInput {
9829
9865
 
9830
9866
  channel_cid?: string;
9831
9867
 
9832
- chat_level?: 'all' | 'mentions' | 'none' | 'default';
9868
+ chat_level?:
9869
+ | 'all'
9870
+ | 'mentions'
9871
+ | 'direct_mentions'
9872
+ | 'all_mentions'
9873
+ | 'none'
9874
+ | 'default';
9833
9875
 
9834
9876
  disabled_until?: Date;
9835
9877
 
@@ -9842,18 +9884,6 @@ export interface PushPreferenceInput {
9842
9884
  feeds_preferences?: FeedsPreferences;
9843
9885
  }
9844
9886
 
9845
- export interface PushPreferences {
9846
- call_level?: string;
9847
-
9848
- chat_level?: string;
9849
-
9850
- disabled_until?: Date;
9851
-
9852
- feeds_level?: string;
9853
-
9854
- feeds_preferences?: FeedsPreferences;
9855
- }
9856
-
9857
9887
  export interface PushPreferencesResponse {
9858
9888
  call_level?: string;
9859
9889
 
@@ -9924,6 +9954,56 @@ export interface PushProvider {
9924
9954
  push_templates?: PushTemplate[];
9925
9955
  }
9926
9956
 
9957
+ export interface PushProviderRequest {
9958
+ name: string;
9959
+
9960
+ apn_auth_key?: string;
9961
+
9962
+ apn_auth_type?: string;
9963
+
9964
+ apn_development?: boolean;
9965
+
9966
+ apn_host?: string;
9967
+
9968
+ apn_key_id?: string;
9969
+
9970
+ apn_notification_template?: string;
9971
+
9972
+ apn_p12_cert?: string;
9973
+
9974
+ apn_team_id?: string;
9975
+
9976
+ apn_topic?: string;
9977
+
9978
+ description?: string;
9979
+
9980
+ disabled_at?: Date;
9981
+
9982
+ disabled_reason?: string;
9983
+
9984
+ firebase_apn_template?: string;
9985
+
9986
+ firebase_credentials?: string;
9987
+
9988
+ firebase_data_template?: string;
9989
+
9990
+ firebase_host?: string;
9991
+
9992
+ firebase_notification_template?: string;
9993
+
9994
+ firebase_server_key?: string;
9995
+
9996
+ huawei_app_id?: string;
9997
+
9998
+ huawei_app_secret?: string;
9999
+
10000
+ type?: string;
10001
+
10002
+ xiaomi_app_secret?: string;
10003
+
10004
+ xiaomi_package_name?: string;
10005
+ }
10006
+
9927
10007
  export interface PushProviderResponse {
9928
10008
  created_at: Date;
9929
10009
 
@@ -10004,6 +10084,20 @@ export interface PushTemplate {
10004
10084
  template?: string;
10005
10085
  }
10006
10086
 
10087
+ export interface PushTemplateResponse {
10088
+ created_at: Date;
10089
+
10090
+ enable_push: boolean;
10091
+
10092
+ event_type: string;
10093
+
10094
+ push_provider_internal_id: string;
10095
+
10096
+ updated_at: Date;
10097
+
10098
+ template?: string;
10099
+ }
10100
+
10007
10101
  export interface QualityScoreReport {
10008
10102
  histogram: ReportByHistogramBucket[];
10009
10103
  }
@@ -10013,6 +10107,8 @@ export interface QualityScoreReportResponse {
10013
10107
  }
10014
10108
 
10015
10109
  export interface QueryActivitiesRequest {
10110
+ include_expired_activities?: boolean;
10111
+
10016
10112
  include_private_activities?: boolean;
10017
10113
 
10018
10114
  limit?: number;
@@ -10414,6 +10510,8 @@ export interface QueryChannelsResponse {
10414
10510
  duration: string;
10415
10511
 
10416
10512
  channels: ChannelStateResponseFields[];
10513
+
10514
+ predefined_filter?: ParsedPredefinedFilterResponse;
10417
10515
  }
10418
10516
 
10419
10517
  export interface QueryCommentReactionsRequest {
@@ -10515,7 +10613,7 @@ export interface QueryFeedModerationTemplate {
10515
10613
 
10516
10614
  updated_at: Date;
10517
10615
 
10518
- config?: FeedsModerationTemplateConfig;
10616
+ config?: FeedsModerationTemplateConfigPayload;
10519
10617
  }
10520
10618
 
10521
10619
  export interface QueryFeedModerationTemplatesResponse {
@@ -10727,7 +10825,7 @@ export interface QueryModerationFlagsRequest {
10727
10825
 
10728
10826
  prev?: string;
10729
10827
 
10730
- sort?: SortParam[];
10828
+ sort?: SortParamRequest[];
10731
10829
 
10732
10830
  filter?: Record<string, any>;
10733
10831
  }
@@ -10796,6 +10894,28 @@ export interface QueryModerationRulesResponse {
10796
10894
  prev?: string;
10797
10895
  }
10798
10896
 
10897
+ export interface QueryPinnedActivitiesRequest {
10898
+ limit?: number;
10899
+
10900
+ next?: string;
10901
+
10902
+ prev?: string;
10903
+
10904
+ sort?: SortParamRequest[];
10905
+
10906
+ filter?: Record<string, any>;
10907
+ }
10908
+
10909
+ export interface QueryPinnedActivitiesResponse {
10910
+ duration: string;
10911
+
10912
+ pinned_activities: ActivityPinResponse[];
10913
+
10914
+ next?: string;
10915
+
10916
+ prev?: string;
10917
+ }
10918
+
10799
10919
  export interface QueryPollVotesRequest {
10800
10920
  limit?: number;
10801
10921
 
@@ -10911,7 +11031,7 @@ export interface QueryReviewQueueResponse {
10911
11031
 
10912
11032
  items: ReviewQueueItemResponse[];
10913
11033
 
10914
- action_config: Record<string, ModerationActionConfig[]>;
11034
+ action_config: Record<string, ModerationActionConfigResponse[]>;
10915
11035
 
10916
11036
  stats: Record<string, any>;
10917
11037
 
@@ -11141,43 +11261,75 @@ export interface RawRecordingSettingsResponse {
11141
11261
  }
11142
11262
 
11143
11263
  export interface Reaction {
11264
+ activity_id: string;
11265
+
11144
11266
  created_at: Date;
11145
11267
 
11146
- message_id: string;
11268
+ kind: string;
11147
11269
 
11148
- score: number;
11270
+ updated_at: Date;
11149
11271
 
11150
- type: string;
11272
+ user_id: string;
11151
11273
 
11152
- updated_at: Date;
11274
+ deleted_at?: Date;
11153
11275
 
11154
- custom: Record<string, any>;
11276
+ id?: string;
11155
11277
 
11156
- user_id?: string;
11278
+ parent?: string;
11279
+
11280
+ score?: number;
11281
+
11282
+ target_feeds?: string[];
11283
+
11284
+ children_counts?: Record<string, any>;
11285
+
11286
+ data?: Record<string, any>;
11287
+
11288
+ latest_children?: Record<string, Reaction[]>;
11289
+
11290
+ moderation?: Record<string, any>;
11291
+
11292
+ own_children?: Record<string, Reaction[]>;
11293
+
11294
+ target_feeds_extra_data?: Record<string, any>;
11157
11295
 
11158
11296
  user?: User;
11159
11297
  }
11160
11298
 
11161
11299
  export interface ReactionDeletedEvent {
11162
- channel_id: string;
11163
-
11164
- channel_type: string;
11300
+ created_at: Date;
11165
11301
 
11166
- cid: string;
11302
+ channel: ChannelResponse;
11167
11303
 
11168
- created_at: Date;
11304
+ custom: Record<string, any>;
11169
11305
 
11170
11306
  type: string;
11171
11307
 
11308
+ channel_id?: string;
11309
+
11310
+ channel_member_count?: number;
11311
+
11312
+ channel_message_count?: number;
11313
+
11314
+ channel_type?: string;
11315
+
11316
+ cid?: string;
11317
+
11318
+ message_id?: string;
11319
+
11320
+ received_at?: Date;
11321
+
11172
11322
  team?: string;
11173
11323
 
11174
- thread_participants?: User[];
11324
+ thread_participants?: UserResponseCommonFields[];
11175
11325
 
11176
- message?: Message;
11326
+ channel_custom?: Record<string, any>;
11177
11327
 
11178
- reaction?: Reaction;
11328
+ message?: MessageResponse;
11179
11329
 
11180
- user?: User;
11330
+ reaction?: ReactionResponse;
11331
+
11332
+ user?: UserResponseCommonFields;
11181
11333
  }
11182
11334
 
11183
11335
  export interface ReactionGroupResponse {
@@ -11191,25 +11343,39 @@ export interface ReactionGroupResponse {
11191
11343
  }
11192
11344
 
11193
11345
  export interface ReactionNewEvent {
11194
- channel_id: string;
11346
+ created_at: Date;
11347
+
11348
+ channel: ChannelResponse;
11349
+
11350
+ custom: Record<string, any>;
11351
+
11352
+ type: string;
11353
+
11354
+ channel_id?: string;
11355
+
11356
+ channel_member_count?: number;
11357
+
11358
+ channel_message_count?: number;
11195
11359
 
11196
- channel_type: string;
11360
+ channel_type?: string;
11197
11361
 
11198
- cid: string;
11362
+ cid?: string;
11199
11363
 
11200
- created_at: Date;
11364
+ message_id?: string;
11201
11365
 
11202
- type: string;
11366
+ received_at?: Date;
11203
11367
 
11204
11368
  team?: string;
11205
11369
 
11206
- thread_participants?: User[];
11370
+ thread_participants?: UserResponseCommonFields[];
11207
11371
 
11208
- message?: Message;
11372
+ channel_custom?: Record<string, any>;
11209
11373
 
11210
- reaction?: Reaction;
11374
+ message?: MessageResponse;
11211
11375
 
11212
- user?: User;
11376
+ reaction?: ReactionResponse;
11377
+
11378
+ user?: UserResponseCommonFields;
11213
11379
  }
11214
11380
 
11215
11381
  export interface ReactionRequest {
@@ -11247,23 +11413,37 @@ export interface ReactionResponse {
11247
11413
  }
11248
11414
 
11249
11415
  export interface ReactionUpdatedEvent {
11250
- channel_id: string;
11251
-
11252
- channel_type: string;
11416
+ created_at: Date;
11253
11417
 
11254
- cid: string;
11418
+ message_id: string;
11255
11419
 
11256
- created_at: Date;
11420
+ channel: ChannelResponse;
11257
11421
 
11258
- message: Message;
11422
+ custom: Record<string, any>;
11259
11423
 
11260
- reaction: Reaction;
11424
+ message: MessageResponse;
11261
11425
 
11262
11426
  type: string;
11263
11427
 
11428
+ channel_id?: string;
11429
+
11430
+ channel_member_count?: number;
11431
+
11432
+ channel_message_count?: number;
11433
+
11434
+ channel_type?: string;
11435
+
11436
+ cid?: string;
11437
+
11438
+ received_at?: Date;
11439
+
11264
11440
  team?: string;
11265
11441
 
11266
- user?: User;
11442
+ channel_custom?: Record<string, any>;
11443
+
11444
+ reaction?: ReactionResponse;
11445
+
11446
+ user?: UserResponseCommonFields;
11267
11447
  }
11268
11448
 
11269
11449
  export interface ReactivateUserRequest {
@@ -11302,10 +11482,6 @@ export interface ReadCollectionsResponse {
11302
11482
  collections: CollectionResponse[];
11303
11483
  }
11304
11484
 
11305
- export interface ReadReceipts {
11306
- enabled?: boolean;
11307
- }
11308
-
11309
11485
  export interface ReadReceiptsResponse {
11310
11486
  enabled?: boolean;
11311
11487
  }
@@ -11364,7 +11540,7 @@ export interface RecordSettingsResponse {
11364
11540
  layout: LayoutSettingsResponse;
11365
11541
  }
11366
11542
 
11367
- export interface RejectAppealRequest {
11543
+ export interface RejectAppealRequestPayload {
11368
11544
  decision_reason: string;
11369
11545
  }
11370
11546
 
@@ -11522,12 +11698,18 @@ export interface ReportResponse {
11522
11698
  user_ratings: UserRatingReportResponse;
11523
11699
  }
11524
11700
 
11701
+ export interface ResolutionMetricsTimeSeries {
11702
+ height?: MetricTimeSeries;
11703
+
11704
+ width?: MetricTimeSeries;
11705
+ }
11706
+
11525
11707
  export interface ResolveSipInboundRequest {
11526
11708
  sip_caller_number: string;
11527
11709
 
11528
11710
  sip_trunk_number: string;
11529
11711
 
11530
- challenge: SIPChallenge;
11712
+ challenge: SIPChallengeRequest;
11531
11713
 
11532
11714
  routing_number?: string;
11533
11715
 
@@ -11548,7 +11730,7 @@ export interface Response {
11548
11730
  duration: string;
11549
11731
  }
11550
11732
 
11551
- export interface RestoreActionRequest {
11733
+ export interface RestoreActionRequestPayload {
11552
11734
  decision_reason?: string;
11553
11735
  }
11554
11736
 
@@ -11611,7 +11793,7 @@ export interface ReviewQueueItemResponse {
11611
11793
 
11612
11794
  actions: ActionLogResponse[];
11613
11795
 
11614
- bans: Ban[];
11796
+ bans: BanInfoResponse[];
11615
11797
 
11616
11798
  flags: ModerationFlagResponse[];
11617
11799
 
@@ -11647,7 +11829,7 @@ export interface ReviewQueueItemResponse {
11647
11829
 
11648
11830
  message?: MessageResponse;
11649
11831
 
11650
- moderation_payload?: ModerationPayload;
11832
+ moderation_payload?: ModerationPayloadResponse;
11651
11833
 
11652
11834
  reaction?: Reaction;
11653
11835
  }
@@ -11817,9 +11999,9 @@ export interface SFULocationResponse {
11817
11999
 
11818
12000
  id: string;
11819
12001
 
11820
- coordinates: Coordinates;
12002
+ coordinates: CoordinatesResponse;
11821
12003
 
11822
- location: Location;
12004
+ location: LocationResponse;
11823
12005
 
11824
12006
  count?: number;
11825
12007
  }
@@ -11844,7 +12026,7 @@ export interface SIPCallerConfigsResponse {
11844
12026
  custom_data: Record<string, any>;
11845
12027
  }
11846
12028
 
11847
- export interface SIPChallenge {
12029
+ export interface SIPChallengeRequest {
11848
12030
  a1?: string;
11849
12031
 
11850
12032
  algorithm?: string;
@@ -12077,6 +12259,8 @@ export interface SearchResultMessage {
12077
12259
 
12078
12260
  id: string;
12079
12261
 
12262
+ mentioned_channel: boolean;
12263
+
12080
12264
  pinned: boolean;
12081
12265
 
12082
12266
  reply_count: number;
@@ -12312,6 +12496,18 @@ export interface SendUserCustomEventRequest {
12312
12496
  event: UserCustomEventRequest;
12313
12497
  }
12314
12498
 
12499
+ export interface SessionClient {
12500
+ ip?: string;
12501
+
12502
+ name?: string;
12503
+
12504
+ network_type?: string;
12505
+
12506
+ version?: string;
12507
+
12508
+ location?: CallStatsLocation;
12509
+ }
12510
+
12315
12511
  export interface SessionSettings {
12316
12512
  inactivity_timeout_seconds: number;
12317
12513
  }
@@ -12324,7 +12520,15 @@ export interface SessionSettingsResponse {
12324
12520
  inactivity_timeout_seconds: number;
12325
12521
  }
12326
12522
 
12327
- export interface ShadowBlockActionRequest {
12523
+ export interface SessionWarningResponse {
12524
+ code: string;
12525
+
12526
+ warning: string;
12527
+
12528
+ time?: Date;
12529
+ }
12530
+
12531
+ export interface ShadowBlockActionRequestPayload {
12328
12532
  reason?: string;
12329
12533
  }
12330
12534
 
@@ -12413,6 +12617,8 @@ export interface SingleFollowResponse {
12413
12617
  }
12414
12618
 
12415
12619
  export interface SipInboundCredentials {
12620
+ api_key: string;
12621
+
12416
12622
  call_id: string;
12417
12623
 
12418
12624
  call_type: string;
@@ -12426,20 +12632,12 @@ export interface SipInboundCredentials {
12426
12632
  user_custom_data: Record<string, any>;
12427
12633
  }
12428
12634
 
12429
- export interface SortParam {
12430
- direction?: number;
12431
-
12432
- field?: string;
12433
-
12434
- type?: string;
12435
- }
12436
-
12437
12635
  export interface SortParamRequest {
12438
12636
  direction?: number;
12439
12637
 
12440
12638
  field?: string;
12441
12639
 
12442
- type?: '' | 'number' | 'boolean';
12640
+ type?: string;
12443
12641
  }
12444
12642
 
12445
12643
  export interface SpeechSegmentConfig {
@@ -12694,6 +12892,7 @@ export interface StoriesFeedUpdatedEvent {
12694
12892
 
12695
12893
  export interface SubmitActionRequest {
12696
12894
  action_type:
12895
+ | 'flag'
12697
12896
  | 'mark_reviewed'
12698
12897
  | 'delete_message'
12699
12898
  | 'delete_activity'
@@ -12718,33 +12917,35 @@ export interface SubmitActionRequest {
12718
12917
 
12719
12918
  user_id?: string;
12720
12919
 
12721
- ban?: BanActionRequest;
12920
+ ban?: BanActionRequestPayload;
12722
12921
 
12723
- block?: BlockActionRequest;
12922
+ block?: BlockActionRequestPayload;
12724
12923
 
12725
- custom?: CustomActionRequest;
12924
+ custom?: CustomActionRequestPayload;
12726
12925
 
12727
- delete_activity?: DeleteActivityRequest;
12926
+ delete_activity?: DeleteActivityRequestPayload;
12728
12927
 
12729
- delete_comment?: DeleteCommentRequest;
12928
+ delete_comment?: DeleteCommentRequestPayload;
12730
12929
 
12731
- delete_message?: DeleteMessageRequest;
12930
+ delete_message?: DeleteMessageRequestPayload;
12732
12931
 
12733
- delete_reaction?: DeleteReactionRequest;
12932
+ delete_reaction?: DeleteReactionRequestPayload;
12734
12933
 
12735
- delete_user?: DeleteUserRequest;
12934
+ delete_user?: DeleteUserRequestPayload;
12736
12935
 
12737
- mark_reviewed?: MarkReviewedRequest;
12936
+ flag?: FlagRequest;
12738
12937
 
12739
- reject_appeal?: RejectAppealRequest;
12938
+ mark_reviewed?: MarkReviewedRequestPayload;
12740
12939
 
12741
- restore?: RestoreActionRequest;
12940
+ reject_appeal?: RejectAppealRequestPayload;
12742
12941
 
12743
- shadow_block?: ShadowBlockActionRequest;
12942
+ restore?: RestoreActionRequestPayload;
12744
12943
 
12745
- unban?: UnbanActionRequest;
12944
+ shadow_block?: ShadowBlockActionRequestPayload;
12746
12945
 
12747
- unblock?: UnblockActionRequest;
12946
+ unban?: UnbanActionRequestPayload;
12947
+
12948
+ unblock?: UnblockActionRequestPayload;
12748
12949
 
12749
12950
  user?: UserRequest;
12750
12951
  }
@@ -12930,19 +13131,21 @@ export interface ThreadStateResponse {
12930
13131
  }
12931
13132
 
12932
13133
  export interface ThreadUpdatedEvent {
12933
- channel_id: string;
13134
+ created_at: Date;
12934
13135
 
12935
- channel_type: string;
13136
+ custom: Record<string, any>;
12936
13137
 
12937
- cid: string;
13138
+ type: string;
12938
13139
 
12939
- created_at: Date;
13140
+ channel_id?: string;
12940
13141
 
12941
- type: string;
13142
+ channel_type?: string;
12942
13143
 
12943
- thread?: ThreadResponse;
13144
+ cid?: string;
12944
13145
 
12945
- user?: User;
13146
+ received_at?: Date;
13147
+
13148
+ thread?: ThreadResponse;
12946
13149
  }
12947
13150
 
12948
13151
  export interface ThreadedCommentResponse {
@@ -12998,7 +13201,7 @@ export interface ThreadedCommentResponse {
12998
13201
 
12999
13202
  moderation?: ModerationV2Response;
13000
13203
 
13001
- reaction_groups?: Record<string, ReactionGroupResponse>;
13204
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
13002
13205
  }
13003
13206
 
13004
13207
  export interface Thresholds {
@@ -13271,15 +13474,13 @@ export interface TruncateChannelResponse {
13271
13474
  message?: MessageResponse;
13272
13475
  }
13273
13476
 
13274
- export interface TypingIndicators {
13275
- enabled?: boolean;
13276
- }
13277
-
13278
13477
  export interface TypingIndicatorsResponse {
13279
13478
  enabled?: boolean;
13280
13479
  }
13281
13480
 
13282
- export interface UnbanActionRequest {
13481
+ export interface UnbanActionRequestPayload {
13482
+ channel_cid?: string;
13483
+
13283
13484
  decision_reason?: string;
13284
13485
  }
13285
13486
 
@@ -13293,7 +13494,7 @@ export interface UnbanResponse {
13293
13494
  duration: string;
13294
13495
  }
13295
13496
 
13296
- export interface UnblockActionRequest {
13497
+ export interface UnblockActionRequestPayload {
13297
13498
  decision_reason?: string;
13298
13499
  }
13299
13500
 
@@ -13439,7 +13640,31 @@ export interface UnreadCountsThread {
13439
13640
  unread_count: number;
13440
13641
  }
13441
13642
 
13643
+ export interface UpdateActivitiesPartialBatchRequest {
13644
+ changes: UpdateActivityPartialChangeRequest[];
13645
+ }
13646
+
13647
+ export interface UpdateActivitiesPartialBatchResponse {
13648
+ duration: string;
13649
+
13650
+ activities: ActivityResponse[];
13651
+ }
13652
+
13653
+ export interface UpdateActivityPartialChangeRequest {
13654
+ activity_id: string;
13655
+
13656
+ copy_custom_to_notification?: boolean;
13657
+
13658
+ handle_mention_notifications?: boolean;
13659
+
13660
+ unset?: string[];
13661
+
13662
+ set?: Record<string, any>;
13663
+ }
13664
+
13442
13665
  export interface UpdateActivityPartialRequest {
13666
+ copy_custom_to_notification?: boolean;
13667
+
13443
13668
  handle_mention_notifications?: boolean;
13444
13669
 
13445
13670
  run_activity_processors?: boolean;
@@ -13460,6 +13685,8 @@ export interface UpdateActivityPartialResponse {
13460
13685
  }
13461
13686
 
13462
13687
  export interface UpdateActivityRequest {
13688
+ copy_custom_to_notification?: boolean;
13689
+
13463
13690
  expires_at?: Date;
13464
13691
 
13465
13692
  handle_mention_notifications?: boolean;
@@ -13496,6 +13723,8 @@ export interface UpdateActivityRequest {
13496
13723
 
13497
13724
  location?: ActivityLocation;
13498
13725
 
13726
+ search_data?: Record<string, any>;
13727
+
13499
13728
  user?: UserRequest;
13500
13729
  }
13501
13730
 
@@ -13688,7 +13917,7 @@ export interface UpdateCallTypeRequest {
13688
13917
 
13689
13918
  grants?: Record<string, string[]>;
13690
13919
 
13691
- notification_settings?: NotificationSettings;
13920
+ notification_settings?: NotificationSettingsRequest;
13692
13921
 
13693
13922
  settings?: CallSettingsRequest;
13694
13923
  }
@@ -13704,7 +13933,7 @@ export interface UpdateCallTypeResponse {
13704
13933
 
13705
13934
  grants: Record<string, string[]>;
13706
13935
 
13707
- notification_settings: NotificationSettings;
13936
+ notification_settings: NotificationSettingsResponse;
13708
13937
 
13709
13938
  settings: CallSettingsResponse;
13710
13939
 
@@ -13806,6 +14035,8 @@ export interface UpdateChannelTypeRequest {
13806
14035
 
13807
14036
  polls?: boolean;
13808
14037
 
14038
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
14039
+
13809
14040
  push_notifications?: boolean;
13810
14041
 
13811
14042
  quotes?: boolean;
@@ -13914,6 +14145,8 @@ export interface UpdateChannelTypeResponse {
13914
14145
 
13915
14146
  partition_ttl?: string;
13916
14147
 
14148
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
14149
+
13917
14150
  allowed_flag_reasons?: string[];
13918
14151
 
13919
14152
  blocklists?: BlockListOptions[];
@@ -13960,6 +14193,8 @@ export interface UpdateCommandResponse {
13960
14193
  export interface UpdateCommentRequest {
13961
14194
  comment?: string;
13962
14195
 
14196
+ copy_custom_to_notification?: boolean;
14197
+
13963
14198
  handle_mention_notifications?: boolean;
13964
14199
 
13965
14200
  skip_enrich_url?: boolean;
@@ -14109,6 +14344,8 @@ export interface UpdateFollowRequest {
14109
14344
 
14110
14345
  target: string;
14111
14346
 
14347
+ copy_custom_to_notification?: boolean;
14348
+
14112
14349
  create_notification_activity?: boolean;
14113
14350
 
14114
14351
  follower_role?: string;
@@ -14171,6 +14408,8 @@ export interface UpdateMembershipLevelResponse {
14171
14408
  export interface UpdateMessagePartialRequest {
14172
14409
  skip_enrich_url?: boolean;
14173
14410
 
14411
+ skip_push?: boolean;
14412
+
14174
14413
  user_id?: string;
14175
14414
 
14176
14415
  unset?: string[];
@@ -14507,7 +14746,7 @@ export interface UpsertModerationRuleResponse {
14507
14746
  export interface UpsertModerationTemplateRequest {
14508
14747
  name: string;
14509
14748
 
14510
- config: FeedsModerationTemplateConfig;
14749
+ config: FeedsModerationTemplateConfigPayload;
14511
14750
  }
14512
14751
 
14513
14752
  export interface UpsertModerationTemplateResponse {
@@ -14519,7 +14758,7 @@ export interface UpsertModerationTemplateResponse {
14519
14758
 
14520
14759
  updated_at: Date;
14521
14760
 
14522
- config?: FeedsModerationTemplateConfig;
14761
+ config?: FeedsModerationTemplateConfigPayload;
14523
14762
  }
14524
14763
 
14525
14764
  export interface UpsertPushPreferencesRequest {
@@ -14531,14 +14770,14 @@ export interface UpsertPushPreferencesResponse {
14531
14770
 
14532
14771
  user_channel_preferences: Record<
14533
14772
  string,
14534
- Record<string, ChannelPushPreferences | null>
14773
+ Record<string, ChannelPushPreferencesResponse | null>
14535
14774
  >;
14536
14775
 
14537
- user_preferences: Record<string, PushPreferences>;
14776
+ user_preferences: Record<string, PushPreferencesResponse>;
14538
14777
  }
14539
14778
 
14540
14779
  export interface UpsertPushProviderRequest {
14541
- push_provider?: PushProvider;
14780
+ push_provider?: PushProviderRequest;
14542
14781
  }
14543
14782
 
14544
14783
  export interface UpsertPushProviderResponse {
@@ -14572,55 +14811,49 @@ export interface UpsertPushTemplateRequest {
14572
14811
  export interface UpsertPushTemplateResponse {
14573
14812
  duration: string;
14574
14813
 
14575
- template?: PushTemplate;
14814
+ template?: PushTemplateResponse;
14576
14815
  }
14577
14816
 
14578
14817
  export interface User {
14579
14818
  id: string;
14580
14819
 
14581
- ban_expires?: Date;
14582
-
14583
- banned?: boolean;
14584
-
14585
- invisible?: boolean;
14586
-
14587
- language?: string;
14820
+ data?: Record<string, any>;
14821
+ }
14588
14822
 
14589
- revoke_tokens_issued_before?: Date;
14823
+ export interface UserBannedEvent {
14824
+ created_at: Date;
14590
14825
 
14591
- role?: string;
14826
+ custom: Record<string, any>;
14592
14827
 
14593
- teams?: string[];
14828
+ user: UserResponseCommonFields;
14594
14829
 
14595
- custom?: Record<string, any>;
14830
+ type: string;
14596
14831
 
14597
- privacy_settings?: PrivacySettings;
14832
+ channel_id?: string;
14598
14833
 
14599
- teams_role?: Record<string, string>;
14600
- }
14834
+ channel_member_count?: number;
14601
14835
 
14602
- export interface UserBannedEvent {
14603
- channel_id: string;
14836
+ channel_message_count?: number;
14604
14837
 
14605
- channel_type: string;
14838
+ channel_type?: string;
14606
14839
 
14607
- cid: string;
14840
+ cid?: string;
14608
14841
 
14609
- created_at: Date;
14842
+ expiration?: Date;
14610
14843
 
14611
- shadow: boolean;
14844
+ reason?: string;
14612
14845
 
14613
- created_by: User;
14846
+ received_at?: Date;
14614
14847
 
14615
- type: string;
14848
+ shadow?: boolean;
14616
14849
 
14617
- expiration?: Date;
14850
+ team?: string;
14618
14851
 
14619
- reason?: string;
14852
+ total_bans?: number;
14620
14853
 
14621
- team?: string;
14854
+ channel_custom?: Record<string, any>;
14622
14855
 
14623
- user?: User;
14856
+ created_by?: UserResponseCommonFields;
14624
14857
  }
14625
14858
 
14626
14859
  export interface UserCreatedWithinParameters {
@@ -14642,25 +14875,39 @@ export interface UserCustomPropertyParameters {
14642
14875
  export interface UserDeactivatedEvent {
14643
14876
  created_at: Date;
14644
14877
 
14645
- created_by: User;
14878
+ custom: Record<string, any>;
14879
+
14880
+ user: UserResponseCommonFields;
14646
14881
 
14647
14882
  type: string;
14648
14883
 
14649
- user?: User;
14884
+ received_at?: Date;
14885
+
14886
+ created_by?: UserResponseCommonFields;
14650
14887
  }
14651
14888
 
14652
14889
  export interface UserDeletedEvent {
14653
14890
  created_at: Date;
14654
14891
 
14892
+ delete_conversation: string;
14893
+
14655
14894
  delete_conversation_channels: boolean;
14656
14895
 
14896
+ delete_messages: string;
14897
+
14898
+ delete_user: string;
14899
+
14657
14900
  hard_delete: boolean;
14658
14901
 
14659
14902
  mark_messages_deleted: boolean;
14660
14903
 
14904
+ custom: Record<string, any>;
14905
+
14906
+ user: UserResponseCommonFields;
14907
+
14661
14908
  type: string;
14662
14909
 
14663
- user?: User;
14910
+ received_at?: Date;
14664
14911
  }
14665
14912
 
14666
14913
  export interface UserFeedbackReport {
@@ -14696,13 +14943,19 @@ export interface UserFeedbackResponse {
14696
14943
  export interface UserFlaggedEvent {
14697
14944
  created_at: Date;
14698
14945
 
14946
+ reason: string;
14947
+
14948
+ total_flags: number;
14949
+
14950
+ user: UserResponseCommonFields;
14951
+
14699
14952
  type: string;
14700
14953
 
14701
- target_user?: string;
14954
+ received_at?: Date;
14702
14955
 
14703
- target_users?: string[];
14956
+ custom?: Record<string, any>;
14704
14957
 
14705
- user?: User;
14958
+ target_user?: UserResponseCommonFields;
14706
14959
  }
14707
14960
 
14708
14961
  export interface UserIdenticalContentCountParameters {
@@ -14739,18 +14992,6 @@ export interface UserMessagesDeletedEvent {
14739
14992
  channel_custom?: Record<string, any>;
14740
14993
  }
14741
14994
 
14742
- export interface UserMute {
14743
- created_at: Date;
14744
-
14745
- updated_at: Date;
14746
-
14747
- expires?: Date;
14748
-
14749
- target?: User;
14750
-
14751
- user?: User;
14752
- }
14753
-
14754
14995
  export interface UserMuteResponse {
14755
14996
  created_at: Date;
14756
14997
 
@@ -14766,13 +15007,17 @@ export interface UserMuteResponse {
14766
15007
  export interface UserMutedEvent {
14767
15008
  created_at: Date;
14768
15009
 
15010
+ custom: Record<string, any>;
15011
+
15012
+ user: UserResponseCommonFields;
15013
+
14769
15014
  type: string;
14770
15015
 
14771
- target_user?: string;
15016
+ received_at?: Date;
14772
15017
 
14773
- target_users?: string[];
15018
+ target_users?: UserResponseCommonFields[];
14774
15019
 
14775
- user?: User;
15020
+ target_user?: UserResponseCommonFields;
14776
15021
  }
14777
15022
 
14778
15023
  export interface UserRatingReportResponse {
@@ -14784,9 +15029,15 @@ export interface UserRatingReportResponse {
14784
15029
  export interface UserReactivatedEvent {
14785
15030
  created_at: Date;
14786
15031
 
15032
+ custom: Record<string, any>;
15033
+
15034
+ user: UserResponseCommonFields;
15035
+
14787
15036
  type: string;
14788
15037
 
14789
- user?: User;
15038
+ received_at?: Date;
15039
+
15040
+ created_by?: UserResponseCommonFields;
14790
15041
  }
14791
15042
 
14792
15043
  export interface UserRequest {
@@ -14952,43 +15203,63 @@ export interface UserRuleParameters {
14952
15203
  }
14953
15204
 
14954
15205
  export interface UserUnbannedEvent {
14955
- channel_id: string;
15206
+ created_at: Date;
14956
15207
 
14957
- channel_type: string;
15208
+ custom: Record<string, any>;
14958
15209
 
14959
- cid: string;
15210
+ user: UserResponseCommonFields;
14960
15211
 
14961
- created_at: Date;
15212
+ type: string;
15213
+
15214
+ channel_id?: string;
14962
15215
 
14963
- shadow: boolean;
15216
+ channel_member_count?: number;
14964
15217
 
14965
- type: string;
15218
+ channel_message_count?: number;
15219
+
15220
+ channel_type?: string;
15221
+
15222
+ cid?: string;
15223
+
15224
+ received_at?: Date;
15225
+
15226
+ shadow?: boolean;
14966
15227
 
14967
15228
  team?: string;
14968
15229
 
14969
- user?: User;
15230
+ channel_custom?: Record<string, any>;
15231
+
15232
+ created_by?: UserResponseCommonFields;
14970
15233
  }
14971
15234
 
14972
15235
  export interface UserUnmutedEvent {
14973
15236
  created_at: Date;
14974
15237
 
15238
+ custom: Record<string, any>;
15239
+
15240
+ user: UserResponseCommonFields;
15241
+
14975
15242
  type: string;
14976
15243
 
14977
- target_user?: string;
15244
+ received_at?: Date;
14978
15245
 
14979
- target_users?: string[];
15246
+ target_users?: UserResponseCommonFields[];
14980
15247
 
14981
- user?: User;
15248
+ target_user?: UserResponseCommonFields;
14982
15249
  }
14983
15250
 
14984
15251
  export interface UserUnreadReminderEvent {
14985
15252
  created_at: Date;
14986
15253
 
14987
- channels: Record<string, ChannelMessages>;
15254
+ channels: Record<string, ChannelMessagesResponse>;
15255
+
15256
+ custom: Record<string, any>;
15257
+
15258
+ user: UserResponseCommonFields;
14988
15259
 
14989
15260
  type: string;
14990
15261
 
14991
- user?: User;
15262
+ received_at?: Date;
14992
15263
  }
14993
15264
 
14994
15265
  export interface UserUpdatedEvent {
@@ -15061,14 +15332,24 @@ export interface VideoContentParameters {
15061
15332
  harm_labels?: string[];
15062
15333
  }
15063
15334
 
15064
- export interface VideoEndCallRequest {}
15335
+ export interface VideoEndCallRequestPayload {}
15065
15336
 
15066
- export interface VideoKickUserRequest {}
15337
+ export interface VideoKickUserRequestPayload {}
15067
15338
 
15068
15339
  export interface VideoReactionOverTimeResponse {
15069
15340
  by_minute?: CountByMinuteResponse[];
15070
15341
  }
15071
15342
 
15343
+ export interface VideoReactionResponse {
15344
+ type: string;
15345
+
15346
+ user: UserResponse;
15347
+
15348
+ emoji_code?: string;
15349
+
15350
+ custom?: Record<string, any>;
15351
+ }
15352
+
15072
15353
  export interface VideoReactionsResponse {
15073
15354
  reaction: string;
15074
15355
 
@@ -15186,8 +15467,7 @@ export interface WSEvent {
15186
15467
  }
15187
15468
 
15188
15469
  export type WebhookEvent =
15189
- | ({ type: '*' } & AnyEvent)
15190
- | ({ type: 'activity.marked' } & ActivityMarkedEvent)
15470
+ | ({ type: '*' } & CustomEvent)
15191
15471
  | ({ type: 'appeal.accepted' } & AppealAcceptedEvent)
15192
15472
  | ({ type: 'appeal.created' } & AppealCreatedEvent)
15193
15473
  | ({ type: 'appeal.rejected' } & AppealRejectedEvent)
@@ -15199,6 +15479,7 @@ export type WebhookEvent =
15199
15479
  | ({ type: 'call.closed_captions_stopped' } & CallClosedCaptionsStoppedEvent)
15200
15480
  | ({ type: 'call.created' } & CallCreatedEvent)
15201
15481
  | ({ type: 'call.deleted' } & CallDeletedEvent)
15482
+ | ({ type: 'call.dtmf' } & CallDTMFEvent)
15202
15483
  | ({ type: 'call.ended' } & CallEndedEvent)
15203
15484
  | ({ type: 'call.frame_recording_failed' } & CallFrameRecordingFailedEvent)
15204
15485
  | ({ type: 'call.frame_recording_ready' } & CallFrameRecordingFrameReadyEvent)
@@ -15261,6 +15542,7 @@ export type WebhookEvent =
15261
15542
  | ({ type: 'channel.deleted' } & ChannelDeletedEvent)
15262
15543
  | ({ type: 'channel.frozen' } & ChannelFrozenEvent)
15263
15544
  | ({ type: 'channel.hidden' } & ChannelHiddenEvent)
15545
+ | ({ type: 'channel.max_streak_changed' } & MaxStreakChangedEvent)
15264
15546
  | ({ type: 'channel.muted' } & ChannelMutedEvent)
15265
15547
  | ({ type: 'channel.truncated' } & ChannelTruncatedEvent)
15266
15548
  | ({ type: 'channel.unfrozen' } & ChannelUnFrozenEvent)
@@ -15341,7 +15623,9 @@ export type WebhookEvent =
15341
15623
  | ({ type: 'moderation_check.completed' } & ModerationCheckCompletedEvent)
15342
15624
  | ({ type: 'notification.mark_unread' } & NotificationMarkUnreadEvent)
15343
15625
  | ({ type: 'notification.reminder_due' } & ReminderNotificationEvent)
15344
- | ({ type: 'notification.thread_message_new' } & MessageNewEvent)
15626
+ | ({
15627
+ type: 'notification.thread_message_new';
15628
+ } & NotificationThreadMessageNewEvent)
15345
15629
  | ({ type: 'reaction.deleted' } & ReactionDeletedEvent)
15346
15630
  | ({ type: 'reaction.new' } & ReactionNewEvent)
15347
15631
  | ({ type: 'reaction.updated' } & ReactionUpdatedEvent)