@stream-io/node-sdk 0.5.0 → 0.6.0

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.
@@ -131,9 +131,9 @@ export interface AcceptFeedMemberInviteResponse {
131
131
  }
132
132
 
133
133
  export interface AcceptFollowRequest {
134
- source_fid: string;
134
+ source: string;
135
135
 
136
- target_fid: string;
136
+ target: string;
137
137
 
138
138
  follower_role?: string;
139
139
  }
@@ -242,6 +242,12 @@ export interface ActiveCallsMetrics {
242
242
  subscribers?: SubscribersMetrics;
243
243
  }
244
244
 
245
+ export interface ActiveCallsResolutionStats {
246
+ p10: number;
247
+
248
+ p50: number;
249
+ }
250
+
245
251
  export interface ActiveCallsSummary {
246
252
  active_calls: number;
247
253
 
@@ -263,6 +269,8 @@ export interface ActivityAddedEvent {
263
269
 
264
270
  type: string;
265
271
 
272
+ feed_visibility?: string;
273
+
266
274
  received_at?: Date;
267
275
 
268
276
  user?: UserResponseCommonFields;
@@ -279,11 +287,35 @@ export interface ActivityDeletedEvent {
279
287
 
280
288
  type: string;
281
289
 
290
+ feed_visibility?: string;
291
+
282
292
  received_at?: Date;
283
293
 
284
294
  user?: UserResponseCommonFields;
285
295
  }
286
296
 
297
+ export interface ActivityFeedbackRequest {
298
+ hide?: boolean;
299
+
300
+ mute_user?: boolean;
301
+
302
+ reason?: string;
303
+
304
+ report?: boolean;
305
+
306
+ show_less?: boolean;
307
+
308
+ user_id?: string;
309
+
310
+ user?: UserRequest;
311
+ }
312
+
313
+ export interface ActivityFeedbackResponse {
314
+ activity_id: string;
315
+
316
+ duration: string;
317
+ }
318
+
287
319
  export interface ActivityLocation {
288
320
  lat: number;
289
321
 
@@ -299,6 +331,8 @@ export interface ActivityMarkEvent {
299
331
 
300
332
  type: string;
301
333
 
334
+ feed_visibility?: string;
335
+
302
336
  mark_all_read?: boolean;
303
337
 
304
338
  mark_all_seen?: boolean;
@@ -307,6 +341,8 @@ export interface ActivityMarkEvent {
307
341
 
308
342
  mark_read?: string[];
309
343
 
344
+ mark_seen?: string[];
345
+
310
346
  mark_watched?: string[];
311
347
 
312
348
  user?: UserResponseCommonFields;
@@ -353,12 +389,16 @@ export interface ActivityPinnedEvent {
353
389
 
354
390
  type: string;
355
391
 
392
+ feed_visibility?: string;
393
+
356
394
  received_at?: Date;
357
395
 
358
396
  user?: UserResponseCommonFields;
359
397
  }
360
398
 
361
- export interface ActivityProcessorConfig {}
399
+ export interface ActivityProcessorConfig {
400
+ type: string;
401
+ }
362
402
 
363
403
  export interface ActivityReactionAddedEvent {
364
404
  created_at: Date;
@@ -373,6 +413,8 @@ export interface ActivityReactionAddedEvent {
373
413
 
374
414
  type: string;
375
415
 
416
+ feed_visibility?: string;
417
+
376
418
  received_at?: Date;
377
419
 
378
420
  user?: UserResponseCommonFields;
@@ -391,6 +433,8 @@ export interface ActivityReactionDeletedEvent {
391
433
 
392
434
  type: string;
393
435
 
436
+ feed_visibility?: string;
437
+
394
438
  received_at?: Date;
395
439
 
396
440
  user?: UserResponseCommonFields;
@@ -409,6 +453,8 @@ export interface ActivityReactionUpdatedEvent {
409
453
 
410
454
  type: string;
411
455
 
456
+ feed_visibility?: string;
457
+
412
458
  received_at?: Date;
413
459
 
414
460
  user?: UserResponseCommonFields;
@@ -425,6 +471,8 @@ export interface ActivityRemovedFromFeedEvent {
425
471
 
426
472
  type: string;
427
473
 
474
+ feed_visibility?: string;
475
+
428
476
  received_at?: Date;
429
477
 
430
478
  user?: UserResponseCommonFields;
@@ -433,7 +481,7 @@ export interface ActivityRemovedFromFeedEvent {
433
481
  export interface ActivityRequest {
434
482
  type: string;
435
483
 
436
- fids: string[];
484
+ feeds: string[];
437
485
 
438
486
  expires_at?: string;
439
487
 
@@ -521,6 +569,8 @@ export interface ActivityResponse {
521
569
 
522
570
  expires_at?: Date;
523
571
 
572
+ hidden?: boolean;
573
+
524
574
  text?: string;
525
575
 
526
576
  visibility_tag?: string;
@@ -531,7 +581,7 @@ export interface ActivityResponse {
531
581
 
532
582
  moderation?: ModerationV2Response;
533
583
 
534
- object?: Record<string, any>;
584
+ notification_context?: Record<string, any>;
535
585
 
536
586
  parent?: ActivityResponse;
537
587
 
@@ -561,6 +611,8 @@ export interface ActivityUnpinnedEvent {
561
611
 
562
612
  type: string;
563
613
 
614
+ feed_visibility?: string;
615
+
564
616
  received_at?: Date;
565
617
 
566
618
  user?: UserResponseCommonFields;
@@ -577,6 +629,8 @@ export interface ActivityUpdatedEvent {
577
629
 
578
630
  type: string;
579
631
 
632
+ feed_visibility?: string;
633
+
580
634
  received_at?: Date;
581
635
 
582
636
  user?: UserResponseCommonFields;
@@ -585,7 +639,7 @@ export interface ActivityUpdatedEvent {
585
639
  export interface AddActivityRequest {
586
640
  type: string;
587
641
 
588
- fids: string[];
642
+ feeds: string[];
589
643
 
590
644
  expires_at?: string;
591
645
 
@@ -773,6 +827,8 @@ export interface AppResponseFields {
773
827
 
774
828
  image_moderation_enabled: boolean;
775
829
 
830
+ moderation_bulk_submit_action_enabled: boolean;
831
+
776
832
  moderation_enabled: boolean;
777
833
 
778
834
  moderation_multitenant_blocklist_enabled: boolean;
@@ -807,6 +863,8 @@ export interface AppResponseFields {
807
863
 
808
864
  use_hook_v2: boolean;
809
865
 
866
+ user_response_time_enabled: boolean;
867
+
810
868
  webhook_url: string;
811
869
 
812
870
  event_hooks: EventHook[];
@@ -1890,6 +1948,8 @@ export interface CallParticipant {
1890
1948
 
1891
1949
  teams_role: Record<string, string>;
1892
1950
 
1951
+ avg_response_time?: number;
1952
+
1893
1953
  ban_expires?: Date;
1894
1954
 
1895
1955
  created_at?: Date;
@@ -2191,6 +2251,20 @@ export interface CallSessionEndedEvent {
2191
2251
  type: string;
2192
2252
  }
2193
2253
 
2254
+ export interface CallSessionParticipantCountsUpdatedEvent {
2255
+ anonymous_participant_count: number;
2256
+
2257
+ call_cid: string;
2258
+
2259
+ created_at: Date;
2260
+
2261
+ session_id: string;
2262
+
2263
+ participants_count_by_role: Record<string, number>;
2264
+
2265
+ type: string;
2266
+ }
2267
+
2194
2268
  export interface CallSessionParticipantJoinedEvent {
2195
2269
  call_cid: string;
2196
2270
 
@@ -2266,6 +2340,8 @@ export interface CallSettings {
2266
2340
 
2267
2341
  geofencing?: GeofenceSettings;
2268
2342
 
2343
+ ingress?: IngressSettings;
2344
+
2269
2345
  limits?: LimitsSettings;
2270
2346
 
2271
2347
  recording?: RecordSettings;
@@ -2294,6 +2370,8 @@ export interface CallSettingsRequest {
2294
2370
 
2295
2371
  geofencing?: GeofenceSettingsRequest;
2296
2372
 
2373
+ ingress?: IngressSettingsRequest;
2374
+
2297
2375
  limits?: LimitsSettingsRequest;
2298
2376
 
2299
2377
  recording?: RecordSettingsRequest;
@@ -2337,6 +2415,8 @@ export interface CallSettingsResponse {
2337
2415
  transcription: TranscriptionSettingsResponse;
2338
2416
 
2339
2417
  video: VideoSettingsResponse;
2418
+
2419
+ ingress?: IngressSettingsResponse;
2340
2420
  }
2341
2421
 
2342
2422
  export interface CallStateResponseFields {
@@ -3526,6 +3606,8 @@ export interface CommentAddedEvent {
3526
3606
 
3527
3607
  type: string;
3528
3608
 
3609
+ feed_visibility?: string;
3610
+
3529
3611
  received_at?: Date;
3530
3612
 
3531
3613
  user?: UserResponseCommonFields;
@@ -3542,6 +3624,8 @@ export interface CommentDeletedEvent {
3542
3624
 
3543
3625
  type: string;
3544
3626
 
3627
+ feed_visibility?: string;
3628
+
3545
3629
  received_at?: Date;
3546
3630
 
3547
3631
  user?: UserResponseCommonFields;
@@ -3560,6 +3644,8 @@ export interface CommentReactionAddedEvent {
3560
3644
 
3561
3645
  type: string;
3562
3646
 
3647
+ feed_visibility?: string;
3648
+
3563
3649
  received_at?: Date;
3564
3650
 
3565
3651
  user?: UserResponseCommonFields;
@@ -3578,6 +3664,8 @@ export interface CommentReactionDeletedEvent {
3578
3664
 
3579
3665
  type: string;
3580
3666
 
3667
+ feed_visibility?: string;
3668
+
3581
3669
  received_at?: Date;
3582
3670
  }
3583
3671
 
@@ -3594,6 +3682,8 @@ export interface CommentReactionUpdatedEvent {
3594
3682
 
3595
3683
  type: string;
3596
3684
 
3685
+ feed_visibility?: string;
3686
+
3597
3687
  received_at?: Date;
3598
3688
 
3599
3689
  user?: UserResponseCommonFields;
@@ -3660,6 +3750,8 @@ export interface CommentUpdatedEvent {
3660
3750
 
3661
3751
  type: string;
3662
3752
 
3753
+ feed_visibility?: string;
3754
+
3663
3755
  received_at?: Date;
3664
3756
 
3665
3757
  user?: UserResponseCommonFields;
@@ -3974,9 +4066,7 @@ export interface CreateExternalStorageResponse {
3974
4066
  }
3975
4067
 
3976
4068
  export interface CreateFeedGroupRequest {
3977
- feed_group_id: string;
3978
-
3979
- default_view_id?: string;
4069
+ id: string;
3980
4070
 
3981
4071
  default_visibility?:
3982
4072
  | 'public'
@@ -3985,9 +4075,17 @@ export interface CreateFeedGroupRequest {
3985
4075
  | 'members'
3986
4076
  | 'private';
3987
4077
 
4078
+ activity_processors?: ActivityProcessorConfig[];
4079
+
4080
+ activity_selectors?: ActivitySelectorConfig[];
4081
+
4082
+ aggregation?: AggregationConfig;
4083
+
3988
4084
  custom?: Record<string, any>;
3989
4085
 
3990
4086
  notification?: NotificationConfig;
4087
+
4088
+ ranking?: RankingConfig;
3991
4089
  }
3992
4090
 
3993
4091
  export interface CreateFeedGroupResponse {
@@ -3997,7 +4095,7 @@ export interface CreateFeedGroupResponse {
3997
4095
  }
3998
4096
 
3999
4097
  export interface CreateFeedViewRequest {
4000
- view_id: string;
4098
+ id: string;
4001
4099
 
4002
4100
  activity_processors?: ActivityProcessorConfig[];
4003
4101
 
@@ -4060,6 +4158,26 @@ export interface CreateImportURLResponse {
4060
4158
  upload_url: string;
4061
4159
  }
4062
4160
 
4161
+ export interface CreateMembershipLevelRequest {
4162
+ id: string;
4163
+
4164
+ name: string;
4165
+
4166
+ description?: string;
4167
+
4168
+ priority?: number;
4169
+
4170
+ tags?: string[];
4171
+
4172
+ custom?: Record<string, any>;
4173
+ }
4174
+
4175
+ export interface CreateMembershipLevelResponse {
4176
+ duration: string;
4177
+
4178
+ membership_level: MembershipLevelResponse;
4179
+ }
4180
+
4063
4181
  export interface CreatePollOptionRequest {
4064
4182
  text: string;
4065
4183
 
@@ -4261,7 +4379,7 @@ export interface DecayFunctionConfig {
4261
4379
  }
4262
4380
 
4263
4381
  export interface DeleteActivitiesRequest {
4264
- activity_ids: string[];
4382
+ ids: string[];
4265
4383
 
4266
4384
  hard_delete?: boolean;
4267
4385
 
@@ -4273,7 +4391,7 @@ export interface DeleteActivitiesRequest {
4273
4391
  export interface DeleteActivitiesResponse {
4274
4392
  duration: string;
4275
4393
 
4276
- deleted_activity_ids: string[];
4394
+ deleted_ids: string[];
4277
4395
  }
4278
4396
 
4279
4397
  export interface DeleteActivityReactionResponse {
@@ -4449,6 +4567,8 @@ export interface DeleteUsersRequest {
4449
4567
 
4450
4568
  conversations?: 'soft' | 'hard';
4451
4569
 
4570
+ files?: boolean;
4571
+
4452
4572
  messages?: 'soft' | 'pruning' | 'hard';
4453
4573
 
4454
4574
  new_call_owner_id?: string;
@@ -4701,6 +4821,8 @@ export interface EntityCreator {
4701
4821
 
4702
4822
  teams_role: Record<string, string>;
4703
4823
 
4824
+ avg_response_time?: number;
4825
+
4704
4826
  ban_expires?: Date;
4705
4827
 
4706
4828
  created_at?: Date;
@@ -4757,6 +4879,8 @@ export interface EntityCreatorResponse {
4757
4879
 
4758
4880
  custom: Record<string, any>;
4759
4881
 
4882
+ avg_response_time?: number;
4883
+
4760
4884
  ban_expires?: Date;
4761
4885
 
4762
4886
  deactivated_at?: Date;
@@ -4963,6 +5087,8 @@ export interface FeedCreatedEvent {
4963
5087
 
4964
5088
  type: string;
4965
5089
 
5090
+ feed_visibility?: string;
5091
+
4966
5092
  received_at?: Date;
4967
5093
  }
4968
5094
 
@@ -4975,32 +5101,42 @@ export interface FeedDeletedEvent {
4975
5101
 
4976
5102
  type: string;
4977
5103
 
5104
+ feed_visibility?: string;
5105
+
4978
5106
  received_at?: Date;
4979
5107
 
4980
5108
  user?: UserResponseCommonFields;
4981
5109
  }
4982
5110
 
4983
5111
  export interface FeedGroup {
5112
+ aggregation_version: number;
5113
+
4984
5114
  app_pk: number;
4985
5115
 
4986
5116
  created_at: Date;
4987
5117
 
4988
- default_view_id: string;
4989
-
4990
5118
  default_visibility: string;
4991
5119
 
4992
5120
  id: string;
4993
5121
 
4994
5122
  updated_at: Date;
4995
5123
 
5124
+ activity_processors: ActivityProcessorConfig[];
5125
+
5126
+ activity_selectors: ActivitySelectorConfig[];
5127
+
4996
5128
  custom: Record<string, any>;
4997
5129
 
4998
5130
  deleted_at?: Date;
4999
5131
 
5000
5132
  last_feed_get_at?: Date;
5001
5133
 
5134
+ aggregation?: AggregationConfig;
5135
+
5002
5136
  notification?: NotificationConfig;
5003
5137
 
5138
+ ranking?: RankingConfig;
5139
+
5004
5140
  stories?: StoriesConfig;
5005
5141
  }
5006
5142
 
@@ -5013,6 +5149,8 @@ export interface FeedGroupChangedEvent {
5013
5149
 
5014
5150
  type: string;
5015
5151
 
5152
+ feed_visibility?: string;
5153
+
5016
5154
  received_at?: Date;
5017
5155
 
5018
5156
  feed_group?: FeedGroup;
@@ -5031,6 +5169,8 @@ export interface FeedGroupDeletedEvent {
5031
5169
 
5032
5170
  type: string;
5033
5171
 
5172
+ feed_visibility?: string;
5173
+
5034
5174
  received_at?: Date;
5035
5175
  }
5036
5176
 
@@ -5041,14 +5181,20 @@ export interface FeedGroupResponse {
5041
5181
 
5042
5182
  updated_at: Date;
5043
5183
 
5044
- default_view_id?: string;
5045
-
5046
5184
  default_visibility?: string;
5047
5185
 
5186
+ activity_processors?: ActivityProcessorConfig[];
5187
+
5188
+ activity_selectors?: ActivitySelectorConfig[];
5189
+
5190
+ aggregation?: AggregationConfig;
5191
+
5048
5192
  custom?: Record<string, any>;
5049
5193
 
5050
5194
  notification?: NotificationConfig;
5051
5195
 
5196
+ ranking?: RankingConfig;
5197
+
5052
5198
  stories?: StoriesConfig;
5053
5199
  }
5054
5200
 
@@ -5077,6 +5223,8 @@ export interface FeedMemberAddedEvent {
5077
5223
 
5078
5224
  type: string;
5079
5225
 
5226
+ feed_visibility?: string;
5227
+
5080
5228
  received_at?: Date;
5081
5229
 
5082
5230
  user?: UserResponseCommonFields;
@@ -5093,6 +5241,8 @@ export interface FeedMemberRemovedEvent {
5093
5241
 
5094
5242
  type: string;
5095
5243
 
5244
+ feed_visibility?: string;
5245
+
5096
5246
  received_at?: Date;
5097
5247
 
5098
5248
  user?: UserResponseCommonFields;
@@ -5103,6 +5253,8 @@ export interface FeedMemberRequest {
5103
5253
 
5104
5254
  invite?: boolean;
5105
5255
 
5256
+ membership_level?: string;
5257
+
5106
5258
  role?: string;
5107
5259
 
5108
5260
  custom?: Record<string, any>;
@@ -5137,6 +5289,8 @@ export interface FeedMemberUpdatedEvent {
5137
5289
 
5138
5290
  type: string;
5139
5291
 
5292
+ feed_visibility?: string;
5293
+
5140
5294
  received_at?: Date;
5141
5295
 
5142
5296
  user?: UserResponseCommonFields;
@@ -5204,7 +5358,7 @@ export interface FeedResponse {
5204
5358
 
5205
5359
  description: string;
5206
5360
 
5207
- fid: string;
5361
+ feed: string;
5208
5362
 
5209
5363
  follower_count: number;
5210
5364
 
@@ -5230,6 +5384,8 @@ export interface FeedResponse {
5230
5384
 
5231
5385
  filter_tags?: string[];
5232
5386
 
5387
+ own_follows?: FollowResponse[];
5388
+
5233
5389
  custom?: Record<string, any>;
5234
5390
  }
5235
5391
 
@@ -5244,13 +5400,15 @@ export interface FeedUpdatedEvent {
5244
5400
 
5245
5401
  type: string;
5246
5402
 
5403
+ feed_visibility?: string;
5404
+
5247
5405
  received_at?: Date;
5248
5406
 
5249
5407
  user?: UserResponseCommonFields;
5250
5408
  }
5251
5409
 
5252
5410
  export interface FeedViewResponse {
5253
- view_id: string;
5411
+ id: string;
5254
5412
 
5255
5413
  last_used_at?: Date;
5256
5414
 
@@ -5350,29 +5508,33 @@ export interface FirebaseConfigFields {
5350
5508
  export interface Flag {
5351
5509
  created_at: Date;
5352
5510
 
5353
- created_by_automod: boolean;
5511
+ entity_id: string;
5512
+
5513
+ entity_type: string;
5354
5514
 
5355
5515
  updated_at: Date;
5356
5516
 
5357
- approved_at?: Date;
5517
+ result: Array<Record<string, any>>;
5358
5518
 
5359
- reason?: string;
5519
+ entity_creator_id?: string;
5360
5520
 
5361
- rejected_at?: Date;
5521
+ is_streamed_content?: boolean;
5362
5522
 
5363
- reviewed_at?: Date;
5523
+ moderation_payload_hash?: string;
5364
5524
 
5365
- reviewed_by?: string;
5525
+ reason?: string;
5366
5526
 
5367
- target_message_id?: string;
5527
+ review_queue_item_id?: string;
5368
5528
 
5369
- custom?: Record<string, any>;
5529
+ type?: string;
5370
5530
 
5371
- details?: FlagDetails;
5531
+ labels?: string[];
5372
5532
 
5373
- target_message?: Message;
5533
+ custom?: Record<string, any>;
5374
5534
 
5375
- target_user?: User;
5535
+ moderation_payload?: ModerationPayload;
5536
+
5537
+ review_queue_item?: ReviewQueueItem;
5376
5538
 
5377
5539
  user?: User;
5378
5540
  }
@@ -5472,6 +5634,8 @@ export interface FollowCreatedEvent {
5472
5634
 
5473
5635
  type: string;
5474
5636
 
5637
+ feed_visibility?: string;
5638
+
5475
5639
  received_at?: Date;
5476
5640
  }
5477
5641
 
@@ -5486,6 +5650,8 @@ export interface FollowDeletedEvent {
5486
5650
 
5487
5651
  type: string;
5488
5652
 
5653
+ feed_visibility?: string;
5654
+
5489
5655
  received_at?: Date;
5490
5656
  }
5491
5657
 
@@ -5540,6 +5706,8 @@ export interface FollowUpdatedEvent {
5540
5706
 
5541
5707
  type: string;
5542
5708
 
5709
+ feed_visibility?: string;
5710
+
5543
5711
  received_at?: Date;
5544
5712
  }
5545
5713
 
@@ -5620,6 +5788,8 @@ export interface FullUserResponse {
5620
5788
 
5621
5789
  custom: Record<string, any>;
5622
5790
 
5791
+ avg_response_time?: number;
5792
+
5623
5793
  ban_expires?: Date;
5624
5794
 
5625
5795
  deactivated_at?: Date;
@@ -5995,6 +6165,35 @@ export interface GetOrCreateCallResponse {
5995
6165
  call: CallResponse;
5996
6166
  }
5997
6167
 
6168
+ export interface GetOrCreateFeedGroupRequest {
6169
+ default_visibility?:
6170
+ | 'public'
6171
+ | 'visible'
6172
+ | 'followers'
6173
+ | 'members'
6174
+ | 'private';
6175
+
6176
+ activity_processors?: ActivityProcessorConfig[];
6177
+
6178
+ activity_selectors?: ActivitySelectorConfig[];
6179
+
6180
+ aggregation?: AggregationConfig;
6181
+
6182
+ custom?: Record<string, any>;
6183
+
6184
+ notification?: NotificationConfig;
6185
+
6186
+ ranking?: RankingConfig;
6187
+ }
6188
+
6189
+ export interface GetOrCreateFeedGroupResponse {
6190
+ duration: string;
6191
+
6192
+ was_created: boolean;
6193
+
6194
+ feed_group: FeedGroupResponse;
6195
+ }
6196
+
5998
6197
  export interface GetOrCreateFeedRequest {
5999
6198
  limit?: number;
6000
6199
 
@@ -6065,6 +6264,24 @@ export interface GetOrCreateFeedResponse {
6065
6264
  own_membership?: FeedMemberResponse;
6066
6265
  }
6067
6266
 
6267
+ export interface GetOrCreateFeedViewRequest {
6268
+ activity_processors?: ActivityProcessorConfig[];
6269
+
6270
+ activity_selectors?: ActivitySelectorConfig[];
6271
+
6272
+ aggregation?: AggregationConfig;
6273
+
6274
+ ranking?: RankingConfig;
6275
+ }
6276
+
6277
+ export interface GetOrCreateFeedViewResponse {
6278
+ duration: string;
6279
+
6280
+ was_created: boolean;
6281
+
6282
+ feed_view: FeedViewResponse;
6283
+ }
6284
+
6068
6285
  export interface GetPushTemplatesResponse {
6069
6286
  duration: string;
6070
6287
 
@@ -6327,6 +6544,102 @@ export interface ImportTaskHistory {
6327
6544
  prev_state: string;
6328
6545
  }
6329
6546
 
6547
+ export interface IngressAudioEncodingOptions {
6548
+ bitrate: number;
6549
+
6550
+ channels: '1' | '2';
6551
+
6552
+ enable_dtx: boolean;
6553
+ }
6554
+
6555
+ export interface IngressAudioEncodingOptionsRequest {
6556
+ bitrate: number;
6557
+
6558
+ channels: '1' | '2';
6559
+
6560
+ enable_dtx?: boolean;
6561
+ }
6562
+
6563
+ export interface IngressAudioEncodingResponse {
6564
+ bitrate: number;
6565
+
6566
+ channels: number;
6567
+
6568
+ enable_dtx: boolean;
6569
+ }
6570
+
6571
+ export interface IngressSettings {
6572
+ enabled: boolean;
6573
+
6574
+ audio_encoding_options?: IngressAudioEncodingOptions;
6575
+
6576
+ video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
6577
+ }
6578
+
6579
+ export interface IngressSettingsRequest {
6580
+ enabled?: boolean;
6581
+
6582
+ audio_encoding_options?: IngressAudioEncodingOptionsRequest;
6583
+
6584
+ video_encoding_options?: Record<string, IngressVideoEncodingOptionsRequest>;
6585
+ }
6586
+
6587
+ export interface IngressSettingsResponse {
6588
+ enabled: boolean;
6589
+
6590
+ audio_encoding_options?: IngressAudioEncodingResponse;
6591
+
6592
+ video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
6593
+ }
6594
+
6595
+ export interface IngressVideoEncodingOptions {
6596
+ layers: IngressVideoLayer[];
6597
+ }
6598
+
6599
+ export interface IngressVideoEncodingOptionsRequest {
6600
+ layers: IngressVideoLayerRequest[];
6601
+ }
6602
+
6603
+ export interface IngressVideoEncodingResponse {
6604
+ layers: IngressVideoLayerResponse[];
6605
+ }
6606
+
6607
+ export interface IngressVideoLayer {
6608
+ bitrate: number;
6609
+
6610
+ codec: 'h264' | 'vp8';
6611
+
6612
+ frame_rate: number;
6613
+
6614
+ max_dimension: number;
6615
+
6616
+ min_dimension: number;
6617
+ }
6618
+
6619
+ export interface IngressVideoLayerRequest {
6620
+ bitrate: number;
6621
+
6622
+ codec: 'h264' | 'vp8';
6623
+
6624
+ frame_rate_limit: number;
6625
+
6626
+ max_dimension: number;
6627
+
6628
+ min_dimension: number;
6629
+ }
6630
+
6631
+ export interface IngressVideoLayerResponse {
6632
+ bitrate: number;
6633
+
6634
+ codec: string;
6635
+
6636
+ frame_rate_limit: number;
6637
+
6638
+ max_dimension: number;
6639
+
6640
+ min_dimension: number;
6641
+ }
6642
+
6330
6643
  export interface JoinCallAPIMetrics {
6331
6644
  failures: number;
6332
6645
 
@@ -6516,6 +6829,8 @@ export interface MarkActivityRequest {
6516
6829
 
6517
6830
  mark_read?: string[];
6518
6831
 
6832
+ mark_seen?: string[];
6833
+
6519
6834
  mark_watched?: string[];
6520
6835
 
6521
6836
  user?: UserRequest;
@@ -6647,6 +6962,24 @@ export interface MembersResponse {
6647
6962
  members: ChannelMember[];
6648
6963
  }
6649
6964
 
6965
+ export interface MembershipLevelResponse {
6966
+ created_at: Date;
6967
+
6968
+ id: string;
6969
+
6970
+ name: string;
6971
+
6972
+ priority: number;
6973
+
6974
+ updated_at: Date;
6975
+
6976
+ tags: string[];
6977
+
6978
+ description?: string;
6979
+
6980
+ custom?: Record<string, any>;
6981
+ }
6982
+
6650
6983
  export interface Message {
6651
6984
  cid: string;
6652
6985
 
@@ -7278,12 +7611,12 @@ export interface ModerationFlagResponse {
7278
7611
 
7279
7612
  entity_type: string;
7280
7613
 
7281
- id: string;
7282
-
7283
7614
  type: string;
7284
7615
 
7285
7616
  updated_at: string;
7286
7617
 
7618
+ user_id: string;
7619
+
7287
7620
  entity_creator_id?: string;
7288
7621
 
7289
7622
  reason?: string;
@@ -7445,6 +7778,26 @@ export interface NotificationConfig {
7445
7778
  track_seen?: boolean;
7446
7779
  }
7447
7780
 
7781
+ export interface NotificationFeedUpdatedEvent {
7782
+ created_at: Date;
7783
+
7784
+ fid: string;
7785
+
7786
+ custom: Record<string, any>;
7787
+
7788
+ type: string;
7789
+
7790
+ feed_visibility?: string;
7791
+
7792
+ received_at?: Date;
7793
+
7794
+ aggregated_activities?: AggregatedActivityResponse[];
7795
+
7796
+ notification_status?: NotificationStatusResponse;
7797
+
7798
+ user?: UserResponseCommonFields;
7799
+ }
7800
+
7448
7801
  export interface NotificationMarkUnreadEvent {
7449
7802
  channel_id: string;
7450
7803
 
@@ -7502,9 +7855,13 @@ export interface NotificationStatusResponse {
7502
7855
 
7503
7856
  unseen: number;
7504
7857
 
7858
+ last_read_at?: Date;
7859
+
7505
7860
  last_seen_at?: Date;
7506
7861
 
7507
7862
  read_activities?: string[];
7863
+
7864
+ seen_activities?: string[];
7508
7865
  }
7509
7866
 
7510
7867
  export interface NullTime {}
@@ -7594,6 +7951,8 @@ export interface OwnUser {
7594
7951
 
7595
7952
  total_unread_count_by_team: Record<string, number>;
7596
7953
 
7954
+ avg_response_time?: number;
7955
+
7597
7956
  deactivated_at?: Date;
7598
7957
 
7599
7958
  deleted_at?: Date;
@@ -7652,6 +8011,8 @@ export interface OwnUserResponse {
7652
8011
 
7653
8012
  custom: Record<string, any>;
7654
8013
 
8014
+ avg_response_time?: number;
8015
+
7655
8016
  deactivated_at?: Date;
7656
8017
 
7657
8018
  deleted_at?: Date;
@@ -7816,7 +8177,7 @@ export interface PinActivityResponse {
7816
8177
 
7817
8178
  duration: string;
7818
8179
 
7819
- fid: string;
8180
+ feed: string;
7820
8181
 
7821
8182
  user_id: string;
7822
8183
 
@@ -8097,6 +8458,8 @@ export interface PublisherVideoMetrics {
8097
8458
  frame_encoding_time_ms?: ActiveCallsLatencyStats;
8098
8459
 
8099
8460
  jitter_ms?: ActiveCallsLatencyStats;
8461
+
8462
+ resolution?: ActiveCallsResolutionStats;
8100
8463
  }
8101
8464
 
8102
8465
  export interface PublishersMetrics {
@@ -8753,6 +9116,28 @@ export interface QueryMembersPayload {
8753
9116
  user?: UserRequest;
8754
9117
  }
8755
9118
 
9119
+ export interface QueryMembershipLevelsRequest {
9120
+ limit?: number;
9121
+
9122
+ next?: string;
9123
+
9124
+ prev?: string;
9125
+
9126
+ sort?: SortParamRequest[];
9127
+
9128
+ filter?: Record<string, any>;
9129
+ }
9130
+
9131
+ export interface QueryMembershipLevelsResponse {
9132
+ duration: string;
9133
+
9134
+ membership_levels: MembershipLevelResponse[];
9135
+
9136
+ next?: string;
9137
+
9138
+ prev?: string;
9139
+ }
9140
+
8756
9141
  export interface QueryMessageFlagsPayload {
8757
9142
  limit?: number;
8758
9143
 
@@ -9446,9 +9831,9 @@ export interface RejectFeedMemberInviteResponse {
9446
9831
  }
9447
9832
 
9448
9833
  export interface RejectFollowRequest {
9449
- source_fid: string;
9834
+ source: string;
9450
9835
 
9451
- target_fid: string;
9836
+ target: string;
9452
9837
  }
9453
9838
 
9454
9839
  export interface RejectFollowResponse {
@@ -9457,6 +9842,66 @@ export interface RejectFollowResponse {
9457
9842
  follow: FollowResponse;
9458
9843
  }
9459
9844
 
9845
+ export interface ReminderCreatedEvent {
9846
+ cid: string;
9847
+
9848
+ created_at: Date;
9849
+
9850
+ message_id: string;
9851
+
9852
+ user_id: string;
9853
+
9854
+ custom: Record<string, any>;
9855
+
9856
+ type: string;
9857
+
9858
+ parent_id?: string;
9859
+
9860
+ received_at?: Date;
9861
+
9862
+ reminder?: ReminderResponseData;
9863
+ }
9864
+
9865
+ export interface ReminderDeletedEvent {
9866
+ cid: string;
9867
+
9868
+ created_at: Date;
9869
+
9870
+ message_id: string;
9871
+
9872
+ user_id: string;
9873
+
9874
+ custom: Record<string, any>;
9875
+
9876
+ type: string;
9877
+
9878
+ parent_id?: string;
9879
+
9880
+ received_at?: Date;
9881
+
9882
+ reminder?: ReminderResponseData;
9883
+ }
9884
+
9885
+ export interface ReminderNotificationEvent {
9886
+ cid: string;
9887
+
9888
+ created_at: Date;
9889
+
9890
+ message_id: string;
9891
+
9892
+ user_id: string;
9893
+
9894
+ custom: Record<string, any>;
9895
+
9896
+ type: string;
9897
+
9898
+ parent_id?: string;
9899
+
9900
+ received_at?: Date;
9901
+
9902
+ reminder?: ReminderResponseData;
9903
+ }
9904
+
9460
9905
  export interface ReminderResponseData {
9461
9906
  channel_cid: string;
9462
9907
 
@@ -9477,6 +9922,26 @@ export interface ReminderResponseData {
9477
9922
  user?: User;
9478
9923
  }
9479
9924
 
9925
+ export interface ReminderUpdatedEvent {
9926
+ cid: string;
9927
+
9928
+ created_at: Date;
9929
+
9930
+ message_id: string;
9931
+
9932
+ user_id: string;
9933
+
9934
+ custom: Record<string, any>;
9935
+
9936
+ type: string;
9937
+
9938
+ parent_id?: string;
9939
+
9940
+ received_at?: Date;
9941
+
9942
+ reminder?: ReminderResponseData;
9943
+ }
9944
+
9480
9945
  export interface RepliesMeta {
9481
9946
  depth_truncated: boolean;
9482
9947
 
@@ -9558,12 +10023,20 @@ export interface ReviewQueueItem {
9558
10023
 
9559
10024
  bans: Ban[];
9560
10025
 
10026
+ flag_labels: string[];
10027
+
10028
+ flag_types: string[];
10029
+
9561
10030
  flags: Flag[];
9562
10031
 
9563
10032
  languages: string[];
9564
10033
 
10034
+ reporter_ids: string[];
10035
+
9565
10036
  teams: string[];
9566
10037
 
10038
+ archived_at: NullTime;
10039
+
9567
10040
  completed_at: NullTime;
9568
10041
 
9569
10042
  reviewed_at: NullTime;
@@ -9596,7 +10069,7 @@ export interface ReviewQueueItemNewEvent {
9596
10069
 
9597
10070
  received_at?: Date;
9598
10071
 
9599
- flags?: FlagResponse[];
10072
+ flags?: ModerationFlagResponse[];
9600
10073
 
9601
10074
  action?: ActionLogResponse;
9602
10075
 
@@ -9630,7 +10103,7 @@ export interface ReviewQueueItemResponse {
9630
10103
 
9631
10104
  bans: Ban[];
9632
10105
 
9633
- flags: FlagResponse[];
10106
+ flags: ModerationFlagResponse[];
9634
10107
 
9635
10108
  languages: string[];
9636
10109
 
@@ -9672,7 +10145,7 @@ export interface ReviewQueueItemUpdatedEvent {
9672
10145
 
9673
10146
  received_at?: Date;
9674
10147
 
9675
- flags?: FlagResponse[];
10148
+ flags?: ModerationFlagResponse[];
9676
10149
 
9677
10150
  action?: ActionLogResponse;
9678
10151
 
@@ -10207,18 +10680,6 @@ export interface ShowChannelResponse {
10207
10680
  duration: string;
10208
10681
  }
10209
10682
 
10210
- export interface SingleFollowRequest {
10211
- source: string;
10212
-
10213
- target: string;
10214
-
10215
- create_notification_activity?: boolean;
10216
-
10217
- push_preference?: 'all' | 'none';
10218
-
10219
- custom?: Record<string, any>;
10220
- }
10221
-
10222
10683
  export interface SingleFollowResponse {
10223
10684
  duration: string;
10224
10685
 
@@ -10466,6 +10927,7 @@ export interface SubmitActionRequest {
10466
10927
  | 'delete_user'
10467
10928
  | 'unblock'
10468
10929
  | 'shadow_block'
10930
+ | 'unmask'
10469
10931
  | 'kick_user'
10470
10932
  | 'end_call';
10471
10933
 
@@ -11042,10 +11504,14 @@ export interface UnfollowBatchRequest {
11042
11504
 
11043
11505
  export interface UnfollowBatchResponse {
11044
11506
  duration: string;
11507
+
11508
+ follows: FollowResponse[];
11045
11509
  }
11046
11510
 
11047
11511
  export interface UnfollowResponse {
11048
11512
  duration: string;
11513
+
11514
+ follow: FollowResponse;
11049
11515
  }
11050
11516
 
11051
11517
  export interface UnmuteChannelRequest {
@@ -11075,7 +11541,7 @@ export interface UnmuteResponse {
11075
11541
  export interface UnpinActivityResponse {
11076
11542
  duration: string;
11077
11543
 
11078
- fid: string;
11544
+ feed: string;
11079
11545
 
11080
11546
  user_id: string;
11081
11547
 
@@ -11129,7 +11595,7 @@ export interface UnreadCountsResponse {
11129
11595
 
11130
11596
  threads: UnreadCountsThread[];
11131
11597
 
11132
- total_unread_count_by_team: Record<string, number>;
11598
+ total_unread_count_by_team?: Record<string, number>;
11133
11599
  }
11134
11600
 
11135
11601
  export interface UnreadCountsThread {
@@ -11243,6 +11709,8 @@ export interface UpdateAppRequest {
11243
11709
 
11244
11710
  sqs_url?: string;
11245
11711
 
11712
+ user_response_time_enabled?: boolean;
11713
+
11246
11714
  webhook_url?: string;
11247
11715
 
11248
11716
  allowed_flag_reasons?: string[];
@@ -11635,11 +12103,17 @@ export interface UpdateExternalStorageResponse {
11635
12103
  }
11636
12104
 
11637
12105
  export interface UpdateFeedGroupRequest {
11638
- default_view_id?: string;
12106
+ activity_processors?: ActivityProcessorConfig[];
12107
+
12108
+ activity_selectors?: ActivitySelectorConfig[];
12109
+
12110
+ aggregation?: AggregationConfig;
11639
12111
 
11640
12112
  custom?: Record<string, any>;
11641
12113
 
11642
12114
  notification?: NotificationConfig;
12115
+
12116
+ ranking?: RankingConfig;
11643
12117
  }
11644
12118
 
11645
12119
  export interface UpdateFeedGroupResponse {
@@ -11719,8 +12193,6 @@ export interface UpdateFollowResponse {
11719
12193
  }
11720
12194
 
11721
12195
  export interface UpdateLiveLocationRequest {
11722
- created_by_device_id: string;
11723
-
11724
12196
  message_id: string;
11725
12197
 
11726
12198
  end_at?: Date;
@@ -11742,6 +12214,24 @@ export interface UpdateMemberPartialResponse {
11742
12214
  channel_member?: ChannelMemberResponse;
11743
12215
  }
11744
12216
 
12217
+ export interface UpdateMembershipLevelRequest {
12218
+ description?: string;
12219
+
12220
+ name?: string;
12221
+
12222
+ priority?: number;
12223
+
12224
+ tags?: string[];
12225
+
12226
+ custom?: Record<string, any>;
12227
+ }
12228
+
12229
+ export interface UpdateMembershipLevelResponse {
12230
+ duration: string;
12231
+
12232
+ membership_level: MembershipLevelResponse;
12233
+ }
12234
+
11745
12235
  export interface UpdateMessagePartialRequest {
11746
12236
  skip_enrich_url?: boolean;
11747
12237
 
@@ -12038,6 +12528,8 @@ export interface User {
12038
12528
 
12039
12529
  teams_role: Record<string, string>;
12040
12530
 
12531
+ avg_response_time?: number;
12532
+
12041
12533
  ban_expires?: Date;
12042
12534
 
12043
12535
  created_at?: Date;
@@ -12163,6 +12655,34 @@ export interface UserFlaggedEvent {
12163
12655
  user?: User;
12164
12656
  }
12165
12657
 
12658
+ export interface UserMessagesDeletedEvent {
12659
+ created_at: Date;
12660
+
12661
+ hard_delete: boolean;
12662
+
12663
+ soft_delete: boolean;
12664
+
12665
+ custom: Record<string, any>;
12666
+
12667
+ user: UserResponseCommonFields;
12668
+
12669
+ type: string;
12670
+
12671
+ channel_id?: string;
12672
+
12673
+ channel_member_count?: number;
12674
+
12675
+ channel_type?: string;
12676
+
12677
+ cid?: string;
12678
+
12679
+ received_at?: Date;
12680
+
12681
+ team?: string;
12682
+
12683
+ channel_custom?: Record<string, any>;
12684
+ }
12685
+
12166
12686
  export interface UserMute {
12167
12687
  created_at: Date;
12168
12688
 
@@ -12260,6 +12780,8 @@ export interface UserResponse {
12260
12780
 
12261
12781
  custom: Record<string, any>;
12262
12782
 
12783
+ avg_response_time?: number;
12784
+
12263
12785
  ban_expires?: Date;
12264
12786
 
12265
12787
  deactivated_at?: Date;
@@ -12304,6 +12826,8 @@ export interface UserResponseCommonFields {
12304
12826
 
12305
12827
  custom: Record<string, any>;
12306
12828
 
12829
+ avg_response_time?: number;
12830
+
12307
12831
  deactivated_at?: Date;
12308
12832
 
12309
12833
  deleted_at?: Date;
@@ -12340,6 +12864,8 @@ export interface UserResponsePrivacyFields {
12340
12864
 
12341
12865
  custom: Record<string, any>;
12342
12866
 
12867
+ avg_response_time?: number;
12868
+
12343
12869
  deactivated_at?: Date;
12344
12870
 
12345
12871
  deleted_at?: Date;
@@ -12640,6 +13166,9 @@ export type WebhookEvent =
12640
13166
  | ({ type: 'call.rtmp_broadcast_started' } & CallRtmpBroadcastStartedEvent)
12641
13167
  | ({ type: 'call.rtmp_broadcast_stopped' } & CallRtmpBroadcastStoppedEvent)
12642
13168
  | ({ type: 'call.session_ended' } & CallSessionEndedEvent)
13169
+ | ({
13170
+ type: 'call.session_participant_count_updated';
13171
+ } & CallSessionParticipantCountsUpdatedEvent)
12643
13172
  | ({
12644
13173
  type: 'call.session_participant_joined';
12645
13174
  } & CallSessionParticipantJoinedEvent)
@@ -12715,6 +13244,7 @@ export type WebhookEvent =
12715
13244
  | ({ type: 'feeds.follow.created' } & FollowCreatedEvent)
12716
13245
  | ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)
12717
13246
  | ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)
13247
+ | ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)
12718
13248
  | ({ type: 'flag.updated' } & FlagUpdatedEvent)
12719
13249
  | ({ type: 'member.added' } & MemberAddedEvent)
12720
13250
  | ({ type: 'member.removed' } & MemberRemovedEvent)
@@ -12732,10 +13262,14 @@ export type WebhookEvent =
12732
13262
  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)
12733
13263
  | ({ type: 'moderation_check.completed' } & ModerationCheckCompletedEvent)
12734
13264
  | ({ type: 'notification.mark_unread' } & NotificationMarkUnreadEvent)
13265
+ | ({ type: 'notification.reminder_due' } & ReminderNotificationEvent)
12735
13266
  | ({ type: 'notification.thread_message_new' } & MessageNewEvent)
12736
13267
  | ({ type: 'reaction.deleted' } & ReactionDeletedEvent)
12737
13268
  | ({ type: 'reaction.new' } & ReactionNewEvent)
12738
13269
  | ({ type: 'reaction.updated' } & ReactionUpdatedEvent)
13270
+ | ({ type: 'reminder.created' } & ReminderCreatedEvent)
13271
+ | ({ type: 'reminder.deleted' } & ReminderDeletedEvent)
13272
+ | ({ type: 'reminder.updated' } & ReminderUpdatedEvent)
12739
13273
  | ({ type: 'review_queue_item.new' } & ReviewQueueItemNewEvent)
12740
13274
  | ({ type: 'review_queue_item.updated' } & ReviewQueueItemUpdatedEvent)
12741
13275
  | ({ type: 'thread.updated' } & ThreadUpdatedEvent)
@@ -12743,6 +13277,7 @@ export type WebhookEvent =
12743
13277
  | ({ type: 'user.deactivated' } & UserDeactivatedEvent)
12744
13278
  | ({ type: 'user.deleted' } & UserDeletedEvent)
12745
13279
  | ({ type: 'user.flagged' } & UserFlaggedEvent)
13280
+ | ({ type: 'user.messages.deleted' } & UserMessagesDeletedEvent)
12746
13281
  | ({ type: 'user.muted' } & UserMutedEvent)
12747
13282
  | ({ type: 'user.reactivated' } & UserReactivatedEvent)
12748
13283
  | ({ type: 'user.unbanned' } & UserUnbannedEvent)
@@ -12763,7 +13298,7 @@ export interface WrappedUnreadCountsResponse {
12763
13298
 
12764
13299
  threads: UnreadCountsThread[];
12765
13300
 
12766
- total_unread_count_by_team: Record<string, number>;
13301
+ total_unread_count_by_team?: Record<string, number>;
12767
13302
  }
12768
13303
 
12769
13304
  export interface XiaomiConfig {