@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.
@@ -72,8 +72,8 @@ export interface AcceptFeedMemberInviteResponse {
72
72
  member: FeedMemberResponse;
73
73
  }
74
74
  export interface AcceptFollowRequest {
75
- source_fid: string;
76
- target_fid: string;
75
+ source: string;
76
+ target: string;
77
77
  follower_role?: string;
78
78
  }
79
79
  export interface AcceptFollowResponse {
@@ -136,6 +136,10 @@ export interface ActiveCallsMetrics {
136
136
  publishers?: PublishersMetrics;
137
137
  subscribers?: SubscribersMetrics;
138
138
  }
139
+ export interface ActiveCallsResolutionStats {
140
+ p10: number;
141
+ p50: number;
142
+ }
139
143
  export interface ActiveCallsSummary {
140
144
  active_calls: number;
141
145
  active_publishers: number;
@@ -148,6 +152,7 @@ export interface ActivityAddedEvent {
148
152
  activity: ActivityResponse;
149
153
  custom: Record<string, any>;
150
154
  type: string;
155
+ feed_visibility?: string;
151
156
  received_at?: Date;
152
157
  user?: UserResponseCommonFields;
153
158
  }
@@ -157,9 +162,23 @@ export interface ActivityDeletedEvent {
157
162
  activity: ActivityResponse;
158
163
  custom: Record<string, any>;
159
164
  type: string;
165
+ feed_visibility?: string;
160
166
  received_at?: Date;
161
167
  user?: UserResponseCommonFields;
162
168
  }
169
+ export interface ActivityFeedbackRequest {
170
+ hide?: boolean;
171
+ mute_user?: boolean;
172
+ reason?: string;
173
+ report?: boolean;
174
+ show_less?: boolean;
175
+ user_id?: string;
176
+ user?: UserRequest;
177
+ }
178
+ export interface ActivityFeedbackResponse {
179
+ activity_id: string;
180
+ duration: string;
181
+ }
163
182
  export interface ActivityLocation {
164
183
  lat: number;
165
184
  lng: number;
@@ -169,10 +188,12 @@ export interface ActivityMarkEvent {
169
188
  fid: string;
170
189
  custom: Record<string, any>;
171
190
  type: string;
191
+ feed_visibility?: string;
172
192
  mark_all_read?: boolean;
173
193
  mark_all_seen?: boolean;
174
194
  received_at?: Date;
175
195
  mark_read?: string[];
196
+ mark_seen?: string[];
176
197
  mark_watched?: string[];
177
198
  user?: UserResponseCommonFields;
178
199
  }
@@ -199,10 +220,12 @@ export interface ActivityPinnedEvent {
199
220
  custom: Record<string, any>;
200
221
  pinned_activity: PinActivityResponse;
201
222
  type: string;
223
+ feed_visibility?: string;
202
224
  received_at?: Date;
203
225
  user?: UserResponseCommonFields;
204
226
  }
205
227
  export interface ActivityProcessorConfig {
228
+ type: string;
206
229
  }
207
230
  export interface ActivityReactionAddedEvent {
208
231
  created_at: Date;
@@ -211,6 +234,7 @@ export interface ActivityReactionAddedEvent {
211
234
  custom: Record<string, any>;
212
235
  reaction: FeedsReactionResponse;
213
236
  type: string;
237
+ feed_visibility?: string;
214
238
  received_at?: Date;
215
239
  user?: UserResponseCommonFields;
216
240
  }
@@ -221,6 +245,7 @@ export interface ActivityReactionDeletedEvent {
221
245
  custom: Record<string, any>;
222
246
  reaction: FeedsReactionResponse;
223
247
  type: string;
248
+ feed_visibility?: string;
224
249
  received_at?: Date;
225
250
  user?: UserResponseCommonFields;
226
251
  }
@@ -231,6 +256,7 @@ export interface ActivityReactionUpdatedEvent {
231
256
  custom: Record<string, any>;
232
257
  reaction: FeedsReactionResponse;
233
258
  type: string;
259
+ feed_visibility?: string;
234
260
  received_at?: Date;
235
261
  user?: UserResponseCommonFields;
236
262
  }
@@ -240,12 +266,13 @@ export interface ActivityRemovedFromFeedEvent {
240
266
  activity: ActivityResponse;
241
267
  custom: Record<string, any>;
242
268
  type: string;
269
+ feed_visibility?: string;
243
270
  received_at?: Date;
244
271
  user?: UserResponseCommonFields;
245
272
  }
246
273
  export interface ActivityRequest {
247
274
  type: string;
248
- fids: string[];
275
+ feeds: string[];
249
276
  expires_at?: string;
250
277
  id?: string;
251
278
  parent_id?: string;
@@ -290,12 +317,13 @@ export interface ActivityResponse {
290
317
  deleted_at?: Date;
291
318
  edited_at?: Date;
292
319
  expires_at?: Date;
320
+ hidden?: boolean;
293
321
  text?: string;
294
322
  visibility_tag?: string;
295
323
  current_feed?: FeedResponse;
296
324
  location?: ActivityLocation;
297
325
  moderation?: ModerationV2Response;
298
- object?: Record<string, any>;
326
+ notification_context?: Record<string, any>;
299
327
  parent?: ActivityResponse;
300
328
  poll?: PollResponseData;
301
329
  }
@@ -312,6 +340,7 @@ export interface ActivityUnpinnedEvent {
312
340
  custom: Record<string, any>;
313
341
  pinned_activity: PinActivityResponse;
314
342
  type: string;
343
+ feed_visibility?: string;
315
344
  received_at?: Date;
316
345
  user?: UserResponseCommonFields;
317
346
  }
@@ -321,12 +350,13 @@ export interface ActivityUpdatedEvent {
321
350
  activity: ActivityResponse;
322
351
  custom: Record<string, any>;
323
352
  type: string;
353
+ feed_visibility?: string;
324
354
  received_at?: Date;
325
355
  user?: UserResponseCommonFields;
326
356
  }
327
357
  export interface AddActivityRequest {
328
358
  type: string;
329
- fids: string[];
359
+ feeds: string[];
330
360
  expires_at?: string;
331
361
  id?: string;
332
362
  parent_id?: string;
@@ -436,6 +466,7 @@ export interface AppResponseFields {
436
466
  enforce_unique_usernames: string;
437
467
  guest_user_creation_disabled: boolean;
438
468
  image_moderation_enabled: boolean;
469
+ moderation_bulk_submit_action_enabled: boolean;
439
470
  moderation_enabled: boolean;
440
471
  moderation_multitenant_blocklist_enabled: boolean;
441
472
  moderation_webhook_url: string;
@@ -453,6 +484,7 @@ export interface AppResponseFields {
453
484
  suspended: boolean;
454
485
  suspended_explanation: string;
455
486
  use_hook_v2: boolean;
487
+ user_response_time_enabled: boolean;
456
488
  webhook_url: string;
457
489
  event_hooks: EventHook[];
458
490
  user_search_disallowed_roles: string[];
@@ -1066,6 +1098,7 @@ export interface CallParticipant {
1066
1098
  user_session_id: string;
1067
1099
  custom: Record<string, any>;
1068
1100
  teams_role: Record<string, string>;
1101
+ avg_response_time?: number;
1069
1102
  ban_expires?: Date;
1070
1103
  created_at?: Date;
1071
1104
  deactivated_at?: Date;
@@ -1236,6 +1269,14 @@ export interface CallSessionEndedEvent {
1236
1269
  call: CallResponse;
1237
1270
  type: string;
1238
1271
  }
1272
+ export interface CallSessionParticipantCountsUpdatedEvent {
1273
+ anonymous_participant_count: number;
1274
+ call_cid: string;
1275
+ created_at: Date;
1276
+ session_id: string;
1277
+ participants_count_by_role: Record<string, number>;
1278
+ type: string;
1279
+ }
1239
1280
  export interface CallSessionParticipantJoinedEvent {
1240
1281
  call_cid: string;
1241
1282
  created_at: Date;
@@ -1278,6 +1319,7 @@ export interface CallSettings {
1278
1319
  broadcasting?: BroadcastSettings;
1279
1320
  frame_recording?: FrameRecordSettings;
1280
1321
  geofencing?: GeofenceSettings;
1322
+ ingress?: IngressSettings;
1281
1323
  limits?: LimitsSettings;
1282
1324
  recording?: RecordSettings;
1283
1325
  ring?: RingSettings;
@@ -1293,6 +1335,7 @@ export interface CallSettingsRequest {
1293
1335
  broadcasting?: BroadcastSettingsRequest;
1294
1336
  frame_recording?: FrameRecordingSettingsRequest;
1295
1337
  geofencing?: GeofenceSettingsRequest;
1338
+ ingress?: IngressSettingsRequest;
1296
1339
  limits?: LimitsSettingsRequest;
1297
1340
  recording?: RecordSettingsRequest;
1298
1341
  ring?: RingSettingsRequest;
@@ -1316,6 +1359,7 @@ export interface CallSettingsResponse {
1316
1359
  thumbnails: ThumbnailsSettingsResponse;
1317
1360
  transcription: TranscriptionSettingsResponse;
1318
1361
  video: VideoSettingsResponse;
1362
+ ingress?: IngressSettingsResponse;
1319
1363
  }
1320
1364
  export interface CallStateResponseFields {
1321
1365
  members: MemberResponse[];
@@ -1988,6 +2032,7 @@ export interface CommentAddedEvent {
1988
2032
  comment: CommentResponse;
1989
2033
  custom: Record<string, any>;
1990
2034
  type: string;
2035
+ feed_visibility?: string;
1991
2036
  received_at?: Date;
1992
2037
  user?: UserResponseCommonFields;
1993
2038
  }
@@ -1997,6 +2042,7 @@ export interface CommentDeletedEvent {
1997
2042
  comment: CommentResponse;
1998
2043
  custom: Record<string, any>;
1999
2044
  type: string;
2045
+ feed_visibility?: string;
2000
2046
  received_at?: Date;
2001
2047
  user?: UserResponseCommonFields;
2002
2048
  }
@@ -2007,6 +2053,7 @@ export interface CommentReactionAddedEvent {
2007
2053
  custom: Record<string, any>;
2008
2054
  reaction: FeedsReactionResponse;
2009
2055
  type: string;
2056
+ feed_visibility?: string;
2010
2057
  received_at?: Date;
2011
2058
  user?: UserResponseCommonFields;
2012
2059
  }
@@ -2017,6 +2064,7 @@ export interface CommentReactionDeletedEvent {
2017
2064
  custom: Record<string, any>;
2018
2065
  reaction: FeedsReactionResponse;
2019
2066
  type: string;
2067
+ feed_visibility?: string;
2020
2068
  received_at?: Date;
2021
2069
  }
2022
2070
  export interface CommentReactionUpdatedEvent {
@@ -2026,6 +2074,7 @@ export interface CommentReactionUpdatedEvent {
2026
2074
  custom: Record<string, any>;
2027
2075
  reaction: FeedsReactionResponse;
2028
2076
  type: string;
2077
+ feed_visibility?: string;
2029
2078
  received_at?: Date;
2030
2079
  user?: UserResponseCommonFields;
2031
2080
  }
@@ -2061,6 +2110,7 @@ export interface CommentUpdatedEvent {
2061
2110
  comment: CommentResponse;
2062
2111
  custom: Record<string, any>;
2063
2112
  type: string;
2113
+ feed_visibility?: string;
2064
2114
  received_at?: Date;
2065
2115
  user?: UserResponseCommonFields;
2066
2116
  }
@@ -2236,18 +2286,21 @@ export interface CreateExternalStorageResponse {
2236
2286
  duration: string;
2237
2287
  }
2238
2288
  export interface CreateFeedGroupRequest {
2239
- feed_group_id: string;
2240
- default_view_id?: string;
2289
+ id: string;
2241
2290
  default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2291
+ activity_processors?: ActivityProcessorConfig[];
2292
+ activity_selectors?: ActivitySelectorConfig[];
2293
+ aggregation?: AggregationConfig;
2242
2294
  custom?: Record<string, any>;
2243
2295
  notification?: NotificationConfig;
2296
+ ranking?: RankingConfig;
2244
2297
  }
2245
2298
  export interface CreateFeedGroupResponse {
2246
2299
  duration: string;
2247
2300
  feed_group: FeedGroupResponse;
2248
2301
  }
2249
2302
  export interface CreateFeedViewRequest {
2250
- view_id: string;
2303
+ id: string;
2251
2304
  activity_processors?: ActivityProcessorConfig[];
2252
2305
  activity_selectors?: ActivitySelectorConfig[];
2253
2306
  aggregation?: AggregationConfig;
@@ -2288,6 +2341,18 @@ export interface CreateImportURLResponse {
2288
2341
  path: string;
2289
2342
  upload_url: string;
2290
2343
  }
2344
+ export interface CreateMembershipLevelRequest {
2345
+ id: string;
2346
+ name: string;
2347
+ description?: string;
2348
+ priority?: number;
2349
+ tags?: string[];
2350
+ custom?: Record<string, any>;
2351
+ }
2352
+ export interface CreateMembershipLevelResponse {
2353
+ duration: string;
2354
+ membership_level: MembershipLevelResponse;
2355
+ }
2291
2356
  export interface CreatePollOptionRequest {
2292
2357
  text: string;
2293
2358
  user_id?: string;
@@ -2412,14 +2477,14 @@ export interface DecayFunctionConfig {
2412
2477
  scale?: string;
2413
2478
  }
2414
2479
  export interface DeleteActivitiesRequest {
2415
- activity_ids: string[];
2480
+ ids: string[];
2416
2481
  hard_delete?: boolean;
2417
2482
  user_id?: string;
2418
2483
  user?: UserRequest;
2419
2484
  }
2420
2485
  export interface DeleteActivitiesResponse {
2421
2486
  duration: string;
2422
- deleted_activity_ids: string[];
2487
+ deleted_ids: string[];
2423
2488
  }
2424
2489
  export interface DeleteActivityReactionResponse {
2425
2490
  duration: string;
@@ -2538,6 +2603,7 @@ export interface DeleteUsersRequest {
2538
2603
  user_ids: string[];
2539
2604
  calls?: 'soft' | 'hard';
2540
2605
  conversations?: 'soft' | 'hard';
2606
+ files?: boolean;
2541
2607
  messages?: 'soft' | 'pruning' | 'hard';
2542
2608
  new_call_owner_id?: string;
2543
2609
  new_channel_owner_id?: string;
@@ -2682,6 +2748,7 @@ export interface EntityCreator {
2682
2748
  role: string;
2683
2749
  custom: Record<string, any>;
2684
2750
  teams_role: Record<string, string>;
2751
+ avg_response_time?: number;
2685
2752
  ban_expires?: Date;
2686
2753
  created_at?: Date;
2687
2754
  deactivated_at?: Date;
@@ -2711,6 +2778,7 @@ export interface EntityCreatorResponse {
2711
2778
  blocked_user_ids: string[];
2712
2779
  teams: string[];
2713
2780
  custom: Record<string, any>;
2781
+ avg_response_time?: number;
2714
2782
  ban_expires?: Date;
2715
2783
  deactivated_at?: Date;
2716
2784
  deleted_at?: Date;
@@ -2830,6 +2898,7 @@ export interface FeedCreatedEvent {
2830
2898
  feed: FeedResponse;
2831
2899
  user: UserResponseCommonFields;
2832
2900
  type: string;
2901
+ feed_visibility?: string;
2833
2902
  received_at?: Date;
2834
2903
  }
2835
2904
  export interface FeedDeletedEvent {
@@ -2837,20 +2906,25 @@ export interface FeedDeletedEvent {
2837
2906
  fid: string;
2838
2907
  custom: Record<string, any>;
2839
2908
  type: string;
2909
+ feed_visibility?: string;
2840
2910
  received_at?: Date;
2841
2911
  user?: UserResponseCommonFields;
2842
2912
  }
2843
2913
  export interface FeedGroup {
2914
+ aggregation_version: number;
2844
2915
  app_pk: number;
2845
2916
  created_at: Date;
2846
- default_view_id: string;
2847
2917
  default_visibility: string;
2848
2918
  id: string;
2849
2919
  updated_at: Date;
2920
+ activity_processors: ActivityProcessorConfig[];
2921
+ activity_selectors: ActivitySelectorConfig[];
2850
2922
  custom: Record<string, any>;
2851
2923
  deleted_at?: Date;
2852
2924
  last_feed_get_at?: Date;
2925
+ aggregation?: AggregationConfig;
2853
2926
  notification?: NotificationConfig;
2927
+ ranking?: RankingConfig;
2854
2928
  stories?: StoriesConfig;
2855
2929
  }
2856
2930
  export interface FeedGroupChangedEvent {
@@ -2858,6 +2932,7 @@ export interface FeedGroupChangedEvent {
2858
2932
  fid: string;
2859
2933
  custom: Record<string, any>;
2860
2934
  type: string;
2935
+ feed_visibility?: string;
2861
2936
  received_at?: Date;
2862
2937
  feed_group?: FeedGroup;
2863
2938
  user?: UserResponseCommonFields;
@@ -2868,16 +2943,20 @@ export interface FeedGroupDeletedEvent {
2868
2943
  group_id: string;
2869
2944
  custom: Record<string, any>;
2870
2945
  type: string;
2946
+ feed_visibility?: string;
2871
2947
  received_at?: Date;
2872
2948
  }
2873
2949
  export interface FeedGroupResponse {
2874
2950
  created_at: Date;
2875
2951
  id: string;
2876
2952
  updated_at: Date;
2877
- default_view_id?: string;
2878
2953
  default_visibility?: string;
2954
+ activity_processors?: ActivityProcessorConfig[];
2955
+ activity_selectors?: ActivitySelectorConfig[];
2956
+ aggregation?: AggregationConfig;
2879
2957
  custom?: Record<string, any>;
2880
2958
  notification?: NotificationConfig;
2959
+ ranking?: RankingConfig;
2881
2960
  stories?: StoriesConfig;
2882
2961
  }
2883
2962
  export interface FeedInput {
@@ -2894,6 +2973,7 @@ export interface FeedMemberAddedEvent {
2894
2973
  custom: Record<string, any>;
2895
2974
  member: FeedMemberResponse;
2896
2975
  type: string;
2976
+ feed_visibility?: string;
2897
2977
  received_at?: Date;
2898
2978
  user?: UserResponseCommonFields;
2899
2979
  }
@@ -2903,12 +2983,14 @@ export interface FeedMemberRemovedEvent {
2903
2983
  member_id: string;
2904
2984
  custom: Record<string, any>;
2905
2985
  type: string;
2986
+ feed_visibility?: string;
2906
2987
  received_at?: Date;
2907
2988
  user?: UserResponseCommonFields;
2908
2989
  }
2909
2990
  export interface FeedMemberRequest {
2910
2991
  user_id: string;
2911
2992
  invite?: boolean;
2993
+ membership_level?: string;
2912
2994
  role?: string;
2913
2995
  custom?: Record<string, any>;
2914
2996
  }
@@ -2928,6 +3010,7 @@ export interface FeedMemberUpdatedEvent {
2928
3010
  custom: Record<string, any>;
2929
3011
  member: FeedMemberResponse;
2930
3012
  type: string;
3013
+ feed_visibility?: string;
2931
3014
  received_at?: Date;
2932
3015
  user?: UserResponseCommonFields;
2933
3016
  }
@@ -2978,7 +3061,7 @@ export interface FeedRequest {
2978
3061
  export interface FeedResponse {
2979
3062
  created_at: Date;
2980
3063
  description: string;
2981
- fid: string;
3064
+ feed: string;
2982
3065
  follower_count: number;
2983
3066
  following_count: number;
2984
3067
  group_id: string;
@@ -2991,6 +3074,7 @@ export interface FeedResponse {
2991
3074
  deleted_at?: Date;
2992
3075
  visibility?: string;
2993
3076
  filter_tags?: string[];
3077
+ own_follows?: FollowResponse[];
2994
3078
  custom?: Record<string, any>;
2995
3079
  }
2996
3080
  export interface FeedUpdatedEvent {
@@ -2999,11 +3083,12 @@ export interface FeedUpdatedEvent {
2999
3083
  custom: Record<string, any>;
3000
3084
  feed: FeedResponse;
3001
3085
  type: string;
3086
+ feed_visibility?: string;
3002
3087
  received_at?: Date;
3003
3088
  user?: UserResponseCommonFields;
3004
3089
  }
3005
3090
  export interface FeedViewResponse {
3006
- view_id: string;
3091
+ id: string;
3007
3092
  last_used_at?: Date;
3008
3093
  activity_processors?: ActivityProcessorConfig[];
3009
3094
  activity_selectors?: ActivitySelectorConfig[];
@@ -3062,18 +3147,20 @@ export interface FirebaseConfigFields {
3062
3147
  }
3063
3148
  export interface Flag {
3064
3149
  created_at: Date;
3065
- created_by_automod: boolean;
3150
+ entity_id: string;
3151
+ entity_type: string;
3066
3152
  updated_at: Date;
3067
- approved_at?: Date;
3153
+ result: Array<Record<string, any>>;
3154
+ entity_creator_id?: string;
3155
+ is_streamed_content?: boolean;
3156
+ moderation_payload_hash?: string;
3068
3157
  reason?: string;
3069
- rejected_at?: Date;
3070
- reviewed_at?: Date;
3071
- reviewed_by?: string;
3072
- target_message_id?: string;
3158
+ review_queue_item_id?: string;
3159
+ type?: string;
3160
+ labels?: string[];
3073
3161
  custom?: Record<string, any>;
3074
- details?: FlagDetails;
3075
- target_message?: Message;
3076
- target_user?: User;
3162
+ moderation_payload?: ModerationPayload;
3163
+ review_queue_item?: ReviewQueueItem;
3077
3164
  user?: User;
3078
3165
  }
3079
3166
  export interface FlagContentOptions {
@@ -3134,6 +3221,7 @@ export interface FollowCreatedEvent {
3134
3221
  custom: Record<string, any>;
3135
3222
  follow: FollowResponse;
3136
3223
  type: string;
3224
+ feed_visibility?: string;
3137
3225
  received_at?: Date;
3138
3226
  }
3139
3227
  export interface FollowDeletedEvent {
@@ -3142,6 +3230,7 @@ export interface FollowDeletedEvent {
3142
3230
  custom: Record<string, any>;
3143
3231
  follow: FollowResponse;
3144
3232
  type: string;
3233
+ feed_visibility?: string;
3145
3234
  received_at?: Date;
3146
3235
  }
3147
3236
  export interface FollowPair {
@@ -3173,6 +3262,7 @@ export interface FollowUpdatedEvent {
3173
3262
  custom: Record<string, any>;
3174
3263
  follow: FollowResponse;
3175
3264
  type: string;
3265
+ feed_visibility?: string;
3176
3266
  received_at?: Date;
3177
3267
  }
3178
3268
  export interface FrameRecordSettings {
@@ -3219,6 +3309,7 @@ export interface FullUserResponse {
3219
3309
  mutes: UserMuteResponse[];
3220
3310
  teams: string[];
3221
3311
  custom: Record<string, any>;
3312
+ avg_response_time?: number;
3222
3313
  ban_expires?: Date;
3223
3314
  deactivated_at?: Date;
3224
3315
  deleted_at?: Date;
@@ -3438,6 +3529,20 @@ export interface GetOrCreateCallResponse {
3438
3529
  own_capabilities: OwnCapability[];
3439
3530
  call: CallResponse;
3440
3531
  }
3532
+ export interface GetOrCreateFeedGroupRequest {
3533
+ default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
3534
+ activity_processors?: ActivityProcessorConfig[];
3535
+ activity_selectors?: ActivitySelectorConfig[];
3536
+ aggregation?: AggregationConfig;
3537
+ custom?: Record<string, any>;
3538
+ notification?: NotificationConfig;
3539
+ ranking?: RankingConfig;
3540
+ }
3541
+ export interface GetOrCreateFeedGroupResponse {
3542
+ duration: string;
3543
+ was_created: boolean;
3544
+ feed_group: FeedGroupResponse;
3545
+ }
3441
3546
  export interface GetOrCreateFeedRequest {
3442
3547
  limit?: number;
3443
3548
  next?: string;
@@ -3475,6 +3580,17 @@ export interface GetOrCreateFeedResponse {
3475
3580
  notification_status?: NotificationStatusResponse;
3476
3581
  own_membership?: FeedMemberResponse;
3477
3582
  }
3583
+ export interface GetOrCreateFeedViewRequest {
3584
+ activity_processors?: ActivityProcessorConfig[];
3585
+ activity_selectors?: ActivitySelectorConfig[];
3586
+ aggregation?: AggregationConfig;
3587
+ ranking?: RankingConfig;
3588
+ }
3589
+ export interface GetOrCreateFeedViewResponse {
3590
+ duration: string;
3591
+ was_created: boolean;
3592
+ feed_view: FeedViewResponse;
3593
+ }
3478
3594
  export interface GetPushTemplatesResponse {
3479
3595
  duration: string;
3480
3596
  templates: PushTemplate[];
@@ -3636,6 +3752,66 @@ export interface ImportTaskHistory {
3636
3752
  next_state: string;
3637
3753
  prev_state: string;
3638
3754
  }
3755
+ export interface IngressAudioEncodingOptions {
3756
+ bitrate: number;
3757
+ channels: '1' | '2';
3758
+ enable_dtx: boolean;
3759
+ }
3760
+ export interface IngressAudioEncodingOptionsRequest {
3761
+ bitrate: number;
3762
+ channels: '1' | '2';
3763
+ enable_dtx?: boolean;
3764
+ }
3765
+ export interface IngressAudioEncodingResponse {
3766
+ bitrate: number;
3767
+ channels: number;
3768
+ enable_dtx: boolean;
3769
+ }
3770
+ export interface IngressSettings {
3771
+ enabled: boolean;
3772
+ audio_encoding_options?: IngressAudioEncodingOptions;
3773
+ video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
3774
+ }
3775
+ export interface IngressSettingsRequest {
3776
+ enabled?: boolean;
3777
+ audio_encoding_options?: IngressAudioEncodingOptionsRequest;
3778
+ video_encoding_options?: Record<string, IngressVideoEncodingOptionsRequest>;
3779
+ }
3780
+ export interface IngressSettingsResponse {
3781
+ enabled: boolean;
3782
+ audio_encoding_options?: IngressAudioEncodingResponse;
3783
+ video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
3784
+ }
3785
+ export interface IngressVideoEncodingOptions {
3786
+ layers: IngressVideoLayer[];
3787
+ }
3788
+ export interface IngressVideoEncodingOptionsRequest {
3789
+ layers: IngressVideoLayerRequest[];
3790
+ }
3791
+ export interface IngressVideoEncodingResponse {
3792
+ layers: IngressVideoLayerResponse[];
3793
+ }
3794
+ export interface IngressVideoLayer {
3795
+ bitrate: number;
3796
+ codec: 'h264' | 'vp8';
3797
+ frame_rate: number;
3798
+ max_dimension: number;
3799
+ min_dimension: number;
3800
+ }
3801
+ export interface IngressVideoLayerRequest {
3802
+ bitrate: number;
3803
+ codec: 'h264' | 'vp8';
3804
+ frame_rate_limit: number;
3805
+ max_dimension: number;
3806
+ min_dimension: number;
3807
+ }
3808
+ export interface IngressVideoLayerResponse {
3809
+ bitrate: number;
3810
+ codec: string;
3811
+ frame_rate_limit: number;
3812
+ max_dimension: number;
3813
+ min_dimension: number;
3814
+ }
3639
3815
  export interface JoinCallAPIMetrics {
3640
3816
  failures: number;
3641
3817
  total: number;
@@ -3755,6 +3931,7 @@ export interface MarkActivityRequest {
3755
3931
  mark_all_seen?: boolean;
3756
3932
  user_id?: string;
3757
3933
  mark_read?: string[];
3934
+ mark_seen?: string[];
3758
3935
  mark_watched?: string[];
3759
3936
  user?: UserRequest;
3760
3937
  }
@@ -3833,6 +4010,16 @@ export interface MembersResponse {
3833
4010
  duration: string;
3834
4011
  members: ChannelMember[];
3835
4012
  }
4013
+ export interface MembershipLevelResponse {
4014
+ created_at: Date;
4015
+ id: string;
4016
+ name: string;
4017
+ priority: number;
4018
+ updated_at: Date;
4019
+ tags: string[];
4020
+ description?: string;
4021
+ custom?: Record<string, any>;
4022
+ }
3836
4023
  export interface Message {
3837
4024
  cid: string;
3838
4025
  created_at: Date;
@@ -4174,9 +4361,9 @@ export interface ModerationFlagResponse {
4174
4361
  created_at: string;
4175
4362
  entity_id: string;
4176
4363
  entity_type: string;
4177
- id: string;
4178
4364
  type: string;
4179
4365
  updated_at: string;
4366
+ user_id: string;
4180
4367
  entity_creator_id?: string;
4181
4368
  reason?: string;
4182
4369
  review_queue_item_id?: string;
@@ -4272,6 +4459,17 @@ export interface NotificationConfig {
4272
4459
  track_read?: boolean;
4273
4460
  track_seen?: boolean;
4274
4461
  }
4462
+ export interface NotificationFeedUpdatedEvent {
4463
+ created_at: Date;
4464
+ fid: string;
4465
+ custom: Record<string, any>;
4466
+ type: string;
4467
+ feed_visibility?: string;
4468
+ received_at?: Date;
4469
+ aggregated_activities?: AggregatedActivityResponse[];
4470
+ notification_status?: NotificationStatusResponse;
4471
+ user?: UserResponseCommonFields;
4472
+ }
4275
4473
  export interface NotificationMarkUnreadEvent {
4276
4474
  channel_id: string;
4277
4475
  channel_member_count: number;
@@ -4303,8 +4501,10 @@ export interface NotificationSettings {
4303
4501
  export interface NotificationStatusResponse {
4304
4502
  unread: number;
4305
4503
  unseen: number;
4504
+ last_read_at?: Date;
4306
4505
  last_seen_at?: Date;
4307
4506
  read_activities?: string[];
4507
+ seen_activities?: string[];
4308
4508
  }
4309
4509
  export interface NullTime {
4310
4510
  }
@@ -4365,6 +4565,7 @@ export interface OwnUser {
4365
4565
  mutes: UserMute[];
4366
4566
  custom: Record<string, any>;
4367
4567
  total_unread_count_by_team: Record<string, number>;
4568
+ avg_response_time?: number;
4368
4569
  deactivated_at?: Date;
4369
4570
  deleted_at?: Date;
4370
4571
  invisible?: boolean;
@@ -4395,6 +4596,7 @@ export interface OwnUserResponse {
4395
4596
  mutes: UserMuteResponse[];
4396
4597
  teams: string[];
4397
4598
  custom: Record<string, any>;
4599
+ avg_response_time?: number;
4398
4600
  deactivated_at?: Date;
4399
4601
  deleted_at?: Date;
4400
4602
  image?: string;
@@ -4490,7 +4692,7 @@ export interface PinActivityRequest {
4490
4692
  export interface PinActivityResponse {
4491
4693
  created_at: Date;
4492
4694
  duration: string;
4493
- fid: string;
4695
+ feed: string;
4494
4696
  user_id: string;
4495
4697
  activity: ActivityResponse;
4496
4698
  }
@@ -4654,6 +4856,7 @@ export interface PublisherVideoMetrics {
4654
4856
  fps_30?: ActiveCallsFPSStats;
4655
4857
  frame_encoding_time_ms?: ActiveCallsLatencyStats;
4656
4858
  jitter_ms?: ActiveCallsLatencyStats;
4859
+ resolution?: ActiveCallsResolutionStats;
4657
4860
  }
4658
4861
  export interface PublishersMetrics {
4659
4862
  all?: PublisherAllMetrics;
@@ -5031,6 +5234,19 @@ export interface QueryMembersPayload {
5031
5234
  sort?: SortParamRequest[];
5032
5235
  user?: UserRequest;
5033
5236
  }
5237
+ export interface QueryMembershipLevelsRequest {
5238
+ limit?: number;
5239
+ next?: string;
5240
+ prev?: string;
5241
+ sort?: SortParamRequest[];
5242
+ filter?: Record<string, any>;
5243
+ }
5244
+ export interface QueryMembershipLevelsResponse {
5245
+ duration: string;
5246
+ membership_levels: MembershipLevelResponse[];
5247
+ next?: string;
5248
+ prev?: string;
5249
+ }
5034
5250
  export interface QueryMessageFlagsPayload {
5035
5251
  limit?: number;
5036
5252
  offset?: number;
@@ -5420,13 +5636,46 @@ export interface RejectFeedMemberInviteResponse {
5420
5636
  member: FeedMemberResponse;
5421
5637
  }
5422
5638
  export interface RejectFollowRequest {
5423
- source_fid: string;
5424
- target_fid: string;
5639
+ source: string;
5640
+ target: string;
5425
5641
  }
5426
5642
  export interface RejectFollowResponse {
5427
5643
  duration: string;
5428
5644
  follow: FollowResponse;
5429
5645
  }
5646
+ export interface ReminderCreatedEvent {
5647
+ cid: string;
5648
+ created_at: Date;
5649
+ message_id: string;
5650
+ user_id: string;
5651
+ custom: Record<string, any>;
5652
+ type: string;
5653
+ parent_id?: string;
5654
+ received_at?: Date;
5655
+ reminder?: ReminderResponseData;
5656
+ }
5657
+ export interface ReminderDeletedEvent {
5658
+ cid: string;
5659
+ created_at: Date;
5660
+ message_id: string;
5661
+ user_id: string;
5662
+ custom: Record<string, any>;
5663
+ type: string;
5664
+ parent_id?: string;
5665
+ received_at?: Date;
5666
+ reminder?: ReminderResponseData;
5667
+ }
5668
+ export interface ReminderNotificationEvent {
5669
+ cid: string;
5670
+ created_at: Date;
5671
+ message_id: string;
5672
+ user_id: string;
5673
+ custom: Record<string, any>;
5674
+ type: string;
5675
+ parent_id?: string;
5676
+ received_at?: Date;
5677
+ reminder?: ReminderResponseData;
5678
+ }
5430
5679
  export interface ReminderResponseData {
5431
5680
  channel_cid: string;
5432
5681
  created_at: Date;
@@ -5438,6 +5687,17 @@ export interface ReminderResponseData {
5438
5687
  message?: Message;
5439
5688
  user?: User;
5440
5689
  }
5690
+ export interface ReminderUpdatedEvent {
5691
+ cid: string;
5692
+ created_at: Date;
5693
+ message_id: string;
5694
+ user_id: string;
5695
+ custom: Record<string, any>;
5696
+ type: string;
5697
+ parent_id?: string;
5698
+ received_at?: Date;
5699
+ reminder?: ReminderResponseData;
5700
+ }
5441
5701
  export interface RepliesMeta {
5442
5702
  depth_truncated: boolean;
5443
5703
  has_more: boolean;
@@ -5485,9 +5745,13 @@ export interface ReviewQueueItem {
5485
5745
  updated_at: Date;
5486
5746
  actions: ActionLog[];
5487
5747
  bans: Ban[];
5748
+ flag_labels: string[];
5749
+ flag_types: string[];
5488
5750
  flags: Flag[];
5489
5751
  languages: string[];
5752
+ reporter_ids: string[];
5490
5753
  teams: string[];
5754
+ archived_at: NullTime;
5491
5755
  completed_at: NullTime;
5492
5756
  reviewed_at: NullTime;
5493
5757
  activity?: EnrichedActivity;
@@ -5505,7 +5769,7 @@ export interface ReviewQueueItemNewEvent {
5505
5769
  custom: Record<string, any>;
5506
5770
  type: string;
5507
5771
  received_at?: Date;
5508
- flags?: FlagResponse[];
5772
+ flags?: ModerationFlagResponse[];
5509
5773
  action?: ActionLogResponse;
5510
5774
  review_queue_item?: ReviewQueueItemResponse;
5511
5775
  }
@@ -5523,7 +5787,7 @@ export interface ReviewQueueItemResponse {
5523
5787
  updated_at: Date;
5524
5788
  actions: ActionLogResponse[];
5525
5789
  bans: Ban[];
5526
- flags: FlagResponse[];
5790
+ flags: ModerationFlagResponse[];
5527
5791
  languages: string[];
5528
5792
  completed_at?: Date;
5529
5793
  config_key?: string;
@@ -5545,7 +5809,7 @@ export interface ReviewQueueItemUpdatedEvent {
5545
5809
  custom: Record<string, any>;
5546
5810
  type: string;
5547
5811
  received_at?: Date;
5548
- flags?: FlagResponse[];
5812
+ flags?: ModerationFlagResponse[];
5549
5813
  action?: ActionLogResponse;
5550
5814
  review_queue_item?: ReviewQueueItemResponse;
5551
5815
  }
@@ -5856,13 +6120,6 @@ export interface ShowChannelRequest {
5856
6120
  export interface ShowChannelResponse {
5857
6121
  duration: string;
5858
6122
  }
5859
- export interface SingleFollowRequest {
5860
- source: string;
5861
- target: string;
5862
- create_notification_activity?: boolean;
5863
- push_preference?: 'all' | 'none';
5864
- custom?: Record<string, any>;
5865
- }
5866
6123
  export interface SingleFollowResponse {
5867
6124
  duration: string;
5868
6125
  follow: FollowResponse;
@@ -5979,7 +6236,7 @@ export interface StoriesConfig {
5979
6236
  skip_watched?: boolean;
5980
6237
  }
5981
6238
  export interface SubmitActionRequest {
5982
- action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
6239
+ action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
5983
6240
  item_id: string;
5984
6241
  user_id?: string;
5985
6242
  ban?: BanActionRequest;
@@ -6223,9 +6480,11 @@ export interface UnfollowBatchRequest {
6223
6480
  }
6224
6481
  export interface UnfollowBatchResponse {
6225
6482
  duration: string;
6483
+ follows: FollowResponse[];
6226
6484
  }
6227
6485
  export interface UnfollowResponse {
6228
6486
  duration: string;
6487
+ follow: FollowResponse;
6229
6488
  }
6230
6489
  export interface UnmuteChannelRequest {
6231
6490
  expiration?: number;
@@ -6244,7 +6503,7 @@ export interface UnmuteResponse {
6244
6503
  }
6245
6504
  export interface UnpinActivityResponse {
6246
6505
  duration: string;
6247
- fid: string;
6506
+ feed: string;
6248
6507
  user_id: string;
6249
6508
  activity: ActivityResponse;
6250
6509
  }
@@ -6278,7 +6537,7 @@ export interface UnreadCountsResponse {
6278
6537
  channel_type: UnreadCountsChannelType[];
6279
6538
  channels: UnreadCountsChannel[];
6280
6539
  threads: UnreadCountsThread[];
6281
- total_unread_count_by_team: Record<string, number>;
6540
+ total_unread_count_by_team?: Record<string, number>;
6282
6541
  }
6283
6542
  export interface UnreadCountsThread {
6284
6543
  last_read: Date;
@@ -6341,6 +6600,7 @@ export interface UpdateAppRequest {
6341
6600
  sqs_key?: string;
6342
6601
  sqs_secret?: string;
6343
6602
  sqs_url?: string;
6603
+ user_response_time_enabled?: boolean;
6344
6604
  webhook_url?: string;
6345
6605
  allowed_flag_reasons?: string[];
6346
6606
  event_hooks?: EventHook[];
@@ -6562,9 +6822,12 @@ export interface UpdateExternalStorageResponse {
6562
6822
  type: 's3' | 'gcs' | 'abs';
6563
6823
  }
6564
6824
  export interface UpdateFeedGroupRequest {
6565
- default_view_id?: string;
6825
+ activity_processors?: ActivityProcessorConfig[];
6826
+ activity_selectors?: ActivitySelectorConfig[];
6827
+ aggregation?: AggregationConfig;
6566
6828
  custom?: Record<string, any>;
6567
6829
  notification?: NotificationConfig;
6830
+ ranking?: RankingConfig;
6568
6831
  }
6569
6832
  export interface UpdateFeedGroupResponse {
6570
6833
  duration: string;
@@ -6614,7 +6877,6 @@ export interface UpdateFollowResponse {
6614
6877
  follow: FollowResponse;
6615
6878
  }
6616
6879
  export interface UpdateLiveLocationRequest {
6617
- created_by_device_id: string;
6618
6880
  message_id: string;
6619
6881
  end_at?: Date;
6620
6882
  latitude?: number;
@@ -6628,6 +6890,17 @@ export interface UpdateMemberPartialResponse {
6628
6890
  duration: string;
6629
6891
  channel_member?: ChannelMemberResponse;
6630
6892
  }
6893
+ export interface UpdateMembershipLevelRequest {
6894
+ description?: string;
6895
+ name?: string;
6896
+ priority?: number;
6897
+ tags?: string[];
6898
+ custom?: Record<string, any>;
6899
+ }
6900
+ export interface UpdateMembershipLevelResponse {
6901
+ duration: string;
6902
+ membership_level: MembershipLevelResponse;
6903
+ }
6631
6904
  export interface UpdateMessagePartialRequest {
6632
6905
  skip_enrich_url?: boolean;
6633
6906
  user_id?: string;
@@ -6803,6 +7076,7 @@ export interface User {
6803
7076
  role: string;
6804
7077
  custom: Record<string, any>;
6805
7078
  teams_role: Record<string, string>;
7079
+ avg_response_time?: number;
6806
7080
  ban_expires?: Date;
6807
7081
  created_at?: Date;
6808
7082
  deactivated_at?: Date;
@@ -6875,6 +7149,21 @@ export interface UserFlaggedEvent {
6875
7149
  target_users?: string[];
6876
7150
  user?: User;
6877
7151
  }
7152
+ export interface UserMessagesDeletedEvent {
7153
+ created_at: Date;
7154
+ hard_delete: boolean;
7155
+ soft_delete: boolean;
7156
+ custom: Record<string, any>;
7157
+ user: UserResponseCommonFields;
7158
+ type: string;
7159
+ channel_id?: string;
7160
+ channel_member_count?: number;
7161
+ channel_type?: string;
7162
+ cid?: string;
7163
+ received_at?: Date;
7164
+ team?: string;
7165
+ channel_custom?: Record<string, any>;
7166
+ }
6878
7167
  export interface UserMute {
6879
7168
  created_at: Date;
6880
7169
  updated_at: Date;
@@ -6930,6 +7219,7 @@ export interface UserResponse {
6930
7219
  blocked_user_ids: string[];
6931
7220
  teams: string[];
6932
7221
  custom: Record<string, any>;
7222
+ avg_response_time?: number;
6933
7223
  ban_expires?: Date;
6934
7224
  deactivated_at?: Date;
6935
7225
  deleted_at?: Date;
@@ -6953,6 +7243,7 @@ export interface UserResponseCommonFields {
6953
7243
  blocked_user_ids: string[];
6954
7244
  teams: string[];
6955
7245
  custom: Record<string, any>;
7246
+ avg_response_time?: number;
6956
7247
  deactivated_at?: Date;
6957
7248
  deleted_at?: Date;
6958
7249
  image?: string;
@@ -6972,6 +7263,7 @@ export interface UserResponsePrivacyFields {
6972
7263
  blocked_user_ids: string[];
6973
7264
  teams: string[];
6974
7265
  custom: Record<string, any>;
7266
+ avg_response_time?: number;
6975
7267
  deactivated_at?: Date;
6976
7268
  deleted_at?: Date;
6977
7269
  image?: string;
@@ -7200,6 +7492,8 @@ export type WebhookEvent = ({
7200
7492
  } & CallRtmpBroadcastStoppedEvent) | ({
7201
7493
  type: 'call.session_ended';
7202
7494
  } & CallSessionEndedEvent) | ({
7495
+ type: 'call.session_participant_count_updated';
7496
+ } & CallSessionParticipantCountsUpdatedEvent) | ({
7203
7497
  type: 'call.session_participant_joined';
7204
7498
  } & CallSessionParticipantJoinedEvent) | ({
7205
7499
  type: 'call.session_participant_left';
@@ -7330,6 +7624,8 @@ export type WebhookEvent = ({
7330
7624
  } & FollowDeletedEvent) | ({
7331
7625
  type: 'feeds.follow.updated';
7332
7626
  } & FollowUpdatedEvent) | ({
7627
+ type: 'feeds.notification_feed.updated';
7628
+ } & NotificationFeedUpdatedEvent) | ({
7333
7629
  type: 'flag.updated';
7334
7630
  } & FlagUpdatedEvent) | ({
7335
7631
  type: 'member.added';
@@ -7364,6 +7660,8 @@ export type WebhookEvent = ({
7364
7660
  } & ModerationCheckCompletedEvent) | ({
7365
7661
  type: 'notification.mark_unread';
7366
7662
  } & NotificationMarkUnreadEvent) | ({
7663
+ type: 'notification.reminder_due';
7664
+ } & ReminderNotificationEvent) | ({
7367
7665
  type: 'notification.thread_message_new';
7368
7666
  } & MessageNewEvent) | ({
7369
7667
  type: 'reaction.deleted';
@@ -7372,6 +7670,12 @@ export type WebhookEvent = ({
7372
7670
  } & ReactionNewEvent) | ({
7373
7671
  type: 'reaction.updated';
7374
7672
  } & ReactionUpdatedEvent) | ({
7673
+ type: 'reminder.created';
7674
+ } & ReminderCreatedEvent) | ({
7675
+ type: 'reminder.deleted';
7676
+ } & ReminderDeletedEvent) | ({
7677
+ type: 'reminder.updated';
7678
+ } & ReminderUpdatedEvent) | ({
7375
7679
  type: 'review_queue_item.new';
7376
7680
  } & ReviewQueueItemNewEvent) | ({
7377
7681
  type: 'review_queue_item.updated';
@@ -7386,6 +7690,8 @@ export type WebhookEvent = ({
7386
7690
  } & UserDeletedEvent) | ({
7387
7691
  type: 'user.flagged';
7388
7692
  } & UserFlaggedEvent) | ({
7693
+ type: 'user.messages.deleted';
7694
+ } & UserMessagesDeletedEvent) | ({
7389
7695
  type: 'user.muted';
7390
7696
  } & UserMutedEvent) | ({
7391
7697
  type: 'user.reactivated';
@@ -7405,7 +7711,7 @@ export interface WrappedUnreadCountsResponse {
7405
7711
  channel_type: UnreadCountsChannelType[];
7406
7712
  channels: UnreadCountsChannel[];
7407
7713
  threads: UnreadCountsThread[];
7408
- total_unread_count_by_team: Record<string, number>;
7714
+ total_unread_count_by_team?: Record<string, number>;
7409
7715
  }
7410
7716
  export interface XiaomiConfig {
7411
7717
  disabled?: boolean;