@stream-io/node-sdk 0.5.1 → 0.6.1
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.
- package/dist/index.cjs.js +345 -119
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +345 -119
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/StreamFeed.d.ts +1 -1
- package/dist/src/StreamFeedsClient.d.ts +2 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +55 -36
- package/dist/src/gen/models/index.d.ts +350 -43
- package/package.json +2 -2
- package/src/StreamFeed.ts +1 -1
- package/src/StreamFeedsClient.ts +5 -0
- package/src/gen/common/CommonApi.ts +2 -1
- package/src/gen/feeds/FeedsApi.ts +429 -227
- package/src/gen/model-decoders/decoders.ts +154 -0
- package/src/gen/models/index.ts +592 -55
|
@@ -72,8 +72,8 @@ export interface AcceptFeedMemberInviteResponse {
|
|
|
72
72
|
member: FeedMemberResponse;
|
|
73
73
|
}
|
|
74
74
|
export interface AcceptFollowRequest {
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -2921,6 +3003,7 @@ export interface FeedMemberResponse {
|
|
|
2921
3003
|
invite_accepted_at?: Date;
|
|
2922
3004
|
invite_rejected_at?: Date;
|
|
2923
3005
|
custom?: Record<string, any>;
|
|
3006
|
+
membership_level?: MembershipLevelResponse;
|
|
2924
3007
|
}
|
|
2925
3008
|
export interface FeedMemberUpdatedEvent {
|
|
2926
3009
|
created_at: Date;
|
|
@@ -2928,6 +3011,7 @@ export interface FeedMemberUpdatedEvent {
|
|
|
2928
3011
|
custom: Record<string, any>;
|
|
2929
3012
|
member: FeedMemberResponse;
|
|
2930
3013
|
type: string;
|
|
3014
|
+
feed_visibility?: string;
|
|
2931
3015
|
received_at?: Date;
|
|
2932
3016
|
user?: UserResponseCommonFields;
|
|
2933
3017
|
}
|
|
@@ -2978,7 +3062,7 @@ export interface FeedRequest {
|
|
|
2978
3062
|
export interface FeedResponse {
|
|
2979
3063
|
created_at: Date;
|
|
2980
3064
|
description: string;
|
|
2981
|
-
|
|
3065
|
+
feed: string;
|
|
2982
3066
|
follower_count: number;
|
|
2983
3067
|
following_count: number;
|
|
2984
3068
|
group_id: string;
|
|
@@ -2991,6 +3075,7 @@ export interface FeedResponse {
|
|
|
2991
3075
|
deleted_at?: Date;
|
|
2992
3076
|
visibility?: string;
|
|
2993
3077
|
filter_tags?: string[];
|
|
3078
|
+
own_follows?: FollowResponse[];
|
|
2994
3079
|
custom?: Record<string, any>;
|
|
2995
3080
|
}
|
|
2996
3081
|
export interface FeedUpdatedEvent {
|
|
@@ -2999,11 +3084,12 @@ export interface FeedUpdatedEvent {
|
|
|
2999
3084
|
custom: Record<string, any>;
|
|
3000
3085
|
feed: FeedResponse;
|
|
3001
3086
|
type: string;
|
|
3087
|
+
feed_visibility?: string;
|
|
3002
3088
|
received_at?: Date;
|
|
3003
3089
|
user?: UserResponseCommonFields;
|
|
3004
3090
|
}
|
|
3005
3091
|
export interface FeedViewResponse {
|
|
3006
|
-
|
|
3092
|
+
id: string;
|
|
3007
3093
|
last_used_at?: Date;
|
|
3008
3094
|
activity_processors?: ActivityProcessorConfig[];
|
|
3009
3095
|
activity_selectors?: ActivitySelectorConfig[];
|
|
@@ -3062,18 +3148,20 @@ export interface FirebaseConfigFields {
|
|
|
3062
3148
|
}
|
|
3063
3149
|
export interface Flag {
|
|
3064
3150
|
created_at: Date;
|
|
3065
|
-
|
|
3151
|
+
entity_id: string;
|
|
3152
|
+
entity_type: string;
|
|
3066
3153
|
updated_at: Date;
|
|
3067
|
-
|
|
3154
|
+
result: Array<Record<string, any>>;
|
|
3155
|
+
entity_creator_id?: string;
|
|
3156
|
+
is_streamed_content?: boolean;
|
|
3157
|
+
moderation_payload_hash?: string;
|
|
3068
3158
|
reason?: string;
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
target_message_id?: string;
|
|
3159
|
+
review_queue_item_id?: string;
|
|
3160
|
+
type?: string;
|
|
3161
|
+
labels?: string[];
|
|
3073
3162
|
custom?: Record<string, any>;
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
target_user?: User;
|
|
3163
|
+
moderation_payload?: ModerationPayload;
|
|
3164
|
+
review_queue_item?: ReviewQueueItem;
|
|
3077
3165
|
user?: User;
|
|
3078
3166
|
}
|
|
3079
3167
|
export interface FlagContentOptions {
|
|
@@ -3134,6 +3222,7 @@ export interface FollowCreatedEvent {
|
|
|
3134
3222
|
custom: Record<string, any>;
|
|
3135
3223
|
follow: FollowResponse;
|
|
3136
3224
|
type: string;
|
|
3225
|
+
feed_visibility?: string;
|
|
3137
3226
|
received_at?: Date;
|
|
3138
3227
|
}
|
|
3139
3228
|
export interface FollowDeletedEvent {
|
|
@@ -3142,6 +3231,7 @@ export interface FollowDeletedEvent {
|
|
|
3142
3231
|
custom: Record<string, any>;
|
|
3143
3232
|
follow: FollowResponse;
|
|
3144
3233
|
type: string;
|
|
3234
|
+
feed_visibility?: string;
|
|
3145
3235
|
received_at?: Date;
|
|
3146
3236
|
}
|
|
3147
3237
|
export interface FollowPair {
|
|
@@ -3173,6 +3263,7 @@ export interface FollowUpdatedEvent {
|
|
|
3173
3263
|
custom: Record<string, any>;
|
|
3174
3264
|
follow: FollowResponse;
|
|
3175
3265
|
type: string;
|
|
3266
|
+
feed_visibility?: string;
|
|
3176
3267
|
received_at?: Date;
|
|
3177
3268
|
}
|
|
3178
3269
|
export interface FrameRecordSettings {
|
|
@@ -3219,6 +3310,7 @@ export interface FullUserResponse {
|
|
|
3219
3310
|
mutes: UserMuteResponse[];
|
|
3220
3311
|
teams: string[];
|
|
3221
3312
|
custom: Record<string, any>;
|
|
3313
|
+
avg_response_time?: number;
|
|
3222
3314
|
ban_expires?: Date;
|
|
3223
3315
|
deactivated_at?: Date;
|
|
3224
3316
|
deleted_at?: Date;
|
|
@@ -3438,6 +3530,20 @@ export interface GetOrCreateCallResponse {
|
|
|
3438
3530
|
own_capabilities: OwnCapability[];
|
|
3439
3531
|
call: CallResponse;
|
|
3440
3532
|
}
|
|
3533
|
+
export interface GetOrCreateFeedGroupRequest {
|
|
3534
|
+
default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3535
|
+
activity_processors?: ActivityProcessorConfig[];
|
|
3536
|
+
activity_selectors?: ActivitySelectorConfig[];
|
|
3537
|
+
aggregation?: AggregationConfig;
|
|
3538
|
+
custom?: Record<string, any>;
|
|
3539
|
+
notification?: NotificationConfig;
|
|
3540
|
+
ranking?: RankingConfig;
|
|
3541
|
+
}
|
|
3542
|
+
export interface GetOrCreateFeedGroupResponse {
|
|
3543
|
+
duration: string;
|
|
3544
|
+
was_created: boolean;
|
|
3545
|
+
feed_group: FeedGroupResponse;
|
|
3546
|
+
}
|
|
3441
3547
|
export interface GetOrCreateFeedRequest {
|
|
3442
3548
|
limit?: number;
|
|
3443
3549
|
next?: string;
|
|
@@ -3475,6 +3581,17 @@ export interface GetOrCreateFeedResponse {
|
|
|
3475
3581
|
notification_status?: NotificationStatusResponse;
|
|
3476
3582
|
own_membership?: FeedMemberResponse;
|
|
3477
3583
|
}
|
|
3584
|
+
export interface GetOrCreateFeedViewRequest {
|
|
3585
|
+
activity_processors?: ActivityProcessorConfig[];
|
|
3586
|
+
activity_selectors?: ActivitySelectorConfig[];
|
|
3587
|
+
aggregation?: AggregationConfig;
|
|
3588
|
+
ranking?: RankingConfig;
|
|
3589
|
+
}
|
|
3590
|
+
export interface GetOrCreateFeedViewResponse {
|
|
3591
|
+
duration: string;
|
|
3592
|
+
was_created: boolean;
|
|
3593
|
+
feed_view: FeedViewResponse;
|
|
3594
|
+
}
|
|
3478
3595
|
export interface GetPushTemplatesResponse {
|
|
3479
3596
|
duration: string;
|
|
3480
3597
|
templates: PushTemplate[];
|
|
@@ -3636,6 +3753,66 @@ export interface ImportTaskHistory {
|
|
|
3636
3753
|
next_state: string;
|
|
3637
3754
|
prev_state: string;
|
|
3638
3755
|
}
|
|
3756
|
+
export interface IngressAudioEncodingOptions {
|
|
3757
|
+
bitrate: number;
|
|
3758
|
+
channels: '1' | '2';
|
|
3759
|
+
enable_dtx: boolean;
|
|
3760
|
+
}
|
|
3761
|
+
export interface IngressAudioEncodingOptionsRequest {
|
|
3762
|
+
bitrate: number;
|
|
3763
|
+
channels: '1' | '2';
|
|
3764
|
+
enable_dtx?: boolean;
|
|
3765
|
+
}
|
|
3766
|
+
export interface IngressAudioEncodingResponse {
|
|
3767
|
+
bitrate: number;
|
|
3768
|
+
channels: number;
|
|
3769
|
+
enable_dtx: boolean;
|
|
3770
|
+
}
|
|
3771
|
+
export interface IngressSettings {
|
|
3772
|
+
enabled: boolean;
|
|
3773
|
+
audio_encoding_options?: IngressAudioEncodingOptions;
|
|
3774
|
+
video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
|
|
3775
|
+
}
|
|
3776
|
+
export interface IngressSettingsRequest {
|
|
3777
|
+
enabled?: boolean;
|
|
3778
|
+
audio_encoding_options?: IngressAudioEncodingOptionsRequest;
|
|
3779
|
+
video_encoding_options?: Record<string, IngressVideoEncodingOptionsRequest>;
|
|
3780
|
+
}
|
|
3781
|
+
export interface IngressSettingsResponse {
|
|
3782
|
+
enabled: boolean;
|
|
3783
|
+
audio_encoding_options?: IngressAudioEncodingResponse;
|
|
3784
|
+
video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
|
|
3785
|
+
}
|
|
3786
|
+
export interface IngressVideoEncodingOptions {
|
|
3787
|
+
layers: IngressVideoLayer[];
|
|
3788
|
+
}
|
|
3789
|
+
export interface IngressVideoEncodingOptionsRequest {
|
|
3790
|
+
layers: IngressVideoLayerRequest[];
|
|
3791
|
+
}
|
|
3792
|
+
export interface IngressVideoEncodingResponse {
|
|
3793
|
+
layers: IngressVideoLayerResponse[];
|
|
3794
|
+
}
|
|
3795
|
+
export interface IngressVideoLayer {
|
|
3796
|
+
bitrate: number;
|
|
3797
|
+
codec: 'h264' | 'vp8';
|
|
3798
|
+
frame_rate: number;
|
|
3799
|
+
max_dimension: number;
|
|
3800
|
+
min_dimension: number;
|
|
3801
|
+
}
|
|
3802
|
+
export interface IngressVideoLayerRequest {
|
|
3803
|
+
bitrate: number;
|
|
3804
|
+
codec: 'h264' | 'vp8';
|
|
3805
|
+
frame_rate_limit: number;
|
|
3806
|
+
max_dimension: number;
|
|
3807
|
+
min_dimension: number;
|
|
3808
|
+
}
|
|
3809
|
+
export interface IngressVideoLayerResponse {
|
|
3810
|
+
bitrate: number;
|
|
3811
|
+
codec: string;
|
|
3812
|
+
frame_rate_limit: number;
|
|
3813
|
+
max_dimension: number;
|
|
3814
|
+
min_dimension: number;
|
|
3815
|
+
}
|
|
3639
3816
|
export interface JoinCallAPIMetrics {
|
|
3640
3817
|
failures: number;
|
|
3641
3818
|
total: number;
|
|
@@ -3755,6 +3932,7 @@ export interface MarkActivityRequest {
|
|
|
3755
3932
|
mark_all_seen?: boolean;
|
|
3756
3933
|
user_id?: string;
|
|
3757
3934
|
mark_read?: string[];
|
|
3935
|
+
mark_seen?: string[];
|
|
3758
3936
|
mark_watched?: string[];
|
|
3759
3937
|
user?: UserRequest;
|
|
3760
3938
|
}
|
|
@@ -3833,6 +4011,16 @@ export interface MembersResponse {
|
|
|
3833
4011
|
duration: string;
|
|
3834
4012
|
members: ChannelMember[];
|
|
3835
4013
|
}
|
|
4014
|
+
export interface MembershipLevelResponse {
|
|
4015
|
+
created_at: Date;
|
|
4016
|
+
id: string;
|
|
4017
|
+
name: string;
|
|
4018
|
+
priority: number;
|
|
4019
|
+
updated_at: Date;
|
|
4020
|
+
tags: string[];
|
|
4021
|
+
description?: string;
|
|
4022
|
+
custom?: Record<string, any>;
|
|
4023
|
+
}
|
|
3836
4024
|
export interface Message {
|
|
3837
4025
|
cid: string;
|
|
3838
4026
|
created_at: Date;
|
|
@@ -4174,9 +4362,9 @@ export interface ModerationFlagResponse {
|
|
|
4174
4362
|
created_at: string;
|
|
4175
4363
|
entity_id: string;
|
|
4176
4364
|
entity_type: string;
|
|
4177
|
-
id: string;
|
|
4178
4365
|
type: string;
|
|
4179
4366
|
updated_at: string;
|
|
4367
|
+
user_id: string;
|
|
4180
4368
|
entity_creator_id?: string;
|
|
4181
4369
|
reason?: string;
|
|
4182
4370
|
review_queue_item_id?: string;
|
|
@@ -4272,6 +4460,17 @@ export interface NotificationConfig {
|
|
|
4272
4460
|
track_read?: boolean;
|
|
4273
4461
|
track_seen?: boolean;
|
|
4274
4462
|
}
|
|
4463
|
+
export interface NotificationFeedUpdatedEvent {
|
|
4464
|
+
created_at: Date;
|
|
4465
|
+
fid: string;
|
|
4466
|
+
custom: Record<string, any>;
|
|
4467
|
+
type: string;
|
|
4468
|
+
feed_visibility?: string;
|
|
4469
|
+
received_at?: Date;
|
|
4470
|
+
aggregated_activities?: AggregatedActivityResponse[];
|
|
4471
|
+
notification_status?: NotificationStatusResponse;
|
|
4472
|
+
user?: UserResponseCommonFields;
|
|
4473
|
+
}
|
|
4275
4474
|
export interface NotificationMarkUnreadEvent {
|
|
4276
4475
|
channel_id: string;
|
|
4277
4476
|
channel_member_count: number;
|
|
@@ -4303,8 +4502,10 @@ export interface NotificationSettings {
|
|
|
4303
4502
|
export interface NotificationStatusResponse {
|
|
4304
4503
|
unread: number;
|
|
4305
4504
|
unseen: number;
|
|
4505
|
+
last_read_at?: Date;
|
|
4306
4506
|
last_seen_at?: Date;
|
|
4307
4507
|
read_activities?: string[];
|
|
4508
|
+
seen_activities?: string[];
|
|
4308
4509
|
}
|
|
4309
4510
|
export interface NullTime {
|
|
4310
4511
|
}
|
|
@@ -4365,6 +4566,7 @@ export interface OwnUser {
|
|
|
4365
4566
|
mutes: UserMute[];
|
|
4366
4567
|
custom: Record<string, any>;
|
|
4367
4568
|
total_unread_count_by_team: Record<string, number>;
|
|
4569
|
+
avg_response_time?: number;
|
|
4368
4570
|
deactivated_at?: Date;
|
|
4369
4571
|
deleted_at?: Date;
|
|
4370
4572
|
invisible?: boolean;
|
|
@@ -4395,6 +4597,7 @@ export interface OwnUserResponse {
|
|
|
4395
4597
|
mutes: UserMuteResponse[];
|
|
4396
4598
|
teams: string[];
|
|
4397
4599
|
custom: Record<string, any>;
|
|
4600
|
+
avg_response_time?: number;
|
|
4398
4601
|
deactivated_at?: Date;
|
|
4399
4602
|
deleted_at?: Date;
|
|
4400
4603
|
image?: string;
|
|
@@ -4490,7 +4693,7 @@ export interface PinActivityRequest {
|
|
|
4490
4693
|
export interface PinActivityResponse {
|
|
4491
4694
|
created_at: Date;
|
|
4492
4695
|
duration: string;
|
|
4493
|
-
|
|
4696
|
+
feed: string;
|
|
4494
4697
|
user_id: string;
|
|
4495
4698
|
activity: ActivityResponse;
|
|
4496
4699
|
}
|
|
@@ -4654,6 +4857,7 @@ export interface PublisherVideoMetrics {
|
|
|
4654
4857
|
fps_30?: ActiveCallsFPSStats;
|
|
4655
4858
|
frame_encoding_time_ms?: ActiveCallsLatencyStats;
|
|
4656
4859
|
jitter_ms?: ActiveCallsLatencyStats;
|
|
4860
|
+
resolution?: ActiveCallsResolutionStats;
|
|
4657
4861
|
}
|
|
4658
4862
|
export interface PublishersMetrics {
|
|
4659
4863
|
all?: PublisherAllMetrics;
|
|
@@ -5031,6 +5235,19 @@ export interface QueryMembersPayload {
|
|
|
5031
5235
|
sort?: SortParamRequest[];
|
|
5032
5236
|
user?: UserRequest;
|
|
5033
5237
|
}
|
|
5238
|
+
export interface QueryMembershipLevelsRequest {
|
|
5239
|
+
limit?: number;
|
|
5240
|
+
next?: string;
|
|
5241
|
+
prev?: string;
|
|
5242
|
+
sort?: SortParamRequest[];
|
|
5243
|
+
filter?: Record<string, any>;
|
|
5244
|
+
}
|
|
5245
|
+
export interface QueryMembershipLevelsResponse {
|
|
5246
|
+
duration: string;
|
|
5247
|
+
membership_levels: MembershipLevelResponse[];
|
|
5248
|
+
next?: string;
|
|
5249
|
+
prev?: string;
|
|
5250
|
+
}
|
|
5034
5251
|
export interface QueryMessageFlagsPayload {
|
|
5035
5252
|
limit?: number;
|
|
5036
5253
|
offset?: number;
|
|
@@ -5420,13 +5637,46 @@ export interface RejectFeedMemberInviteResponse {
|
|
|
5420
5637
|
member: FeedMemberResponse;
|
|
5421
5638
|
}
|
|
5422
5639
|
export interface RejectFollowRequest {
|
|
5423
|
-
|
|
5424
|
-
|
|
5640
|
+
source: string;
|
|
5641
|
+
target: string;
|
|
5425
5642
|
}
|
|
5426
5643
|
export interface RejectFollowResponse {
|
|
5427
5644
|
duration: string;
|
|
5428
5645
|
follow: FollowResponse;
|
|
5429
5646
|
}
|
|
5647
|
+
export interface ReminderCreatedEvent {
|
|
5648
|
+
cid: string;
|
|
5649
|
+
created_at: Date;
|
|
5650
|
+
message_id: string;
|
|
5651
|
+
user_id: string;
|
|
5652
|
+
custom: Record<string, any>;
|
|
5653
|
+
type: string;
|
|
5654
|
+
parent_id?: string;
|
|
5655
|
+
received_at?: Date;
|
|
5656
|
+
reminder?: ReminderResponseData;
|
|
5657
|
+
}
|
|
5658
|
+
export interface ReminderDeletedEvent {
|
|
5659
|
+
cid: string;
|
|
5660
|
+
created_at: Date;
|
|
5661
|
+
message_id: string;
|
|
5662
|
+
user_id: string;
|
|
5663
|
+
custom: Record<string, any>;
|
|
5664
|
+
type: string;
|
|
5665
|
+
parent_id?: string;
|
|
5666
|
+
received_at?: Date;
|
|
5667
|
+
reminder?: ReminderResponseData;
|
|
5668
|
+
}
|
|
5669
|
+
export interface ReminderNotificationEvent {
|
|
5670
|
+
cid: string;
|
|
5671
|
+
created_at: Date;
|
|
5672
|
+
message_id: string;
|
|
5673
|
+
user_id: string;
|
|
5674
|
+
custom: Record<string, any>;
|
|
5675
|
+
type: string;
|
|
5676
|
+
parent_id?: string;
|
|
5677
|
+
received_at?: Date;
|
|
5678
|
+
reminder?: ReminderResponseData;
|
|
5679
|
+
}
|
|
5430
5680
|
export interface ReminderResponseData {
|
|
5431
5681
|
channel_cid: string;
|
|
5432
5682
|
created_at: Date;
|
|
@@ -5438,6 +5688,17 @@ export interface ReminderResponseData {
|
|
|
5438
5688
|
message?: Message;
|
|
5439
5689
|
user?: User;
|
|
5440
5690
|
}
|
|
5691
|
+
export interface ReminderUpdatedEvent {
|
|
5692
|
+
cid: string;
|
|
5693
|
+
created_at: Date;
|
|
5694
|
+
message_id: string;
|
|
5695
|
+
user_id: string;
|
|
5696
|
+
custom: Record<string, any>;
|
|
5697
|
+
type: string;
|
|
5698
|
+
parent_id?: string;
|
|
5699
|
+
received_at?: Date;
|
|
5700
|
+
reminder?: ReminderResponseData;
|
|
5701
|
+
}
|
|
5441
5702
|
export interface RepliesMeta {
|
|
5442
5703
|
depth_truncated: boolean;
|
|
5443
5704
|
has_more: boolean;
|
|
@@ -5485,9 +5746,13 @@ export interface ReviewQueueItem {
|
|
|
5485
5746
|
updated_at: Date;
|
|
5486
5747
|
actions: ActionLog[];
|
|
5487
5748
|
bans: Ban[];
|
|
5749
|
+
flag_labels: string[];
|
|
5750
|
+
flag_types: string[];
|
|
5488
5751
|
flags: Flag[];
|
|
5489
5752
|
languages: string[];
|
|
5753
|
+
reporter_ids: string[];
|
|
5490
5754
|
teams: string[];
|
|
5755
|
+
archived_at: NullTime;
|
|
5491
5756
|
completed_at: NullTime;
|
|
5492
5757
|
reviewed_at: NullTime;
|
|
5493
5758
|
activity?: EnrichedActivity;
|
|
@@ -5505,7 +5770,7 @@ export interface ReviewQueueItemNewEvent {
|
|
|
5505
5770
|
custom: Record<string, any>;
|
|
5506
5771
|
type: string;
|
|
5507
5772
|
received_at?: Date;
|
|
5508
|
-
flags?:
|
|
5773
|
+
flags?: ModerationFlagResponse[];
|
|
5509
5774
|
action?: ActionLogResponse;
|
|
5510
5775
|
review_queue_item?: ReviewQueueItemResponse;
|
|
5511
5776
|
}
|
|
@@ -5523,7 +5788,7 @@ export interface ReviewQueueItemResponse {
|
|
|
5523
5788
|
updated_at: Date;
|
|
5524
5789
|
actions: ActionLogResponse[];
|
|
5525
5790
|
bans: Ban[];
|
|
5526
|
-
flags:
|
|
5791
|
+
flags: ModerationFlagResponse[];
|
|
5527
5792
|
languages: string[];
|
|
5528
5793
|
completed_at?: Date;
|
|
5529
5794
|
config_key?: string;
|
|
@@ -5545,7 +5810,7 @@ export interface ReviewQueueItemUpdatedEvent {
|
|
|
5545
5810
|
custom: Record<string, any>;
|
|
5546
5811
|
type: string;
|
|
5547
5812
|
received_at?: Date;
|
|
5548
|
-
flags?:
|
|
5813
|
+
flags?: ModerationFlagResponse[];
|
|
5549
5814
|
action?: ActionLogResponse;
|
|
5550
5815
|
review_queue_item?: ReviewQueueItemResponse;
|
|
5551
5816
|
}
|
|
@@ -5856,13 +6121,6 @@ export interface ShowChannelRequest {
|
|
|
5856
6121
|
export interface ShowChannelResponse {
|
|
5857
6122
|
duration: string;
|
|
5858
6123
|
}
|
|
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
6124
|
export interface SingleFollowResponse {
|
|
5867
6125
|
duration: string;
|
|
5868
6126
|
follow: FollowResponse;
|
|
@@ -5979,7 +6237,7 @@ export interface StoriesConfig {
|
|
|
5979
6237
|
skip_watched?: boolean;
|
|
5980
6238
|
}
|
|
5981
6239
|
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';
|
|
6240
|
+
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
6241
|
item_id: string;
|
|
5984
6242
|
user_id?: string;
|
|
5985
6243
|
ban?: BanActionRequest;
|
|
@@ -6223,9 +6481,11 @@ export interface UnfollowBatchRequest {
|
|
|
6223
6481
|
}
|
|
6224
6482
|
export interface UnfollowBatchResponse {
|
|
6225
6483
|
duration: string;
|
|
6484
|
+
follows: FollowResponse[];
|
|
6226
6485
|
}
|
|
6227
6486
|
export interface UnfollowResponse {
|
|
6228
6487
|
duration: string;
|
|
6488
|
+
follow: FollowResponse;
|
|
6229
6489
|
}
|
|
6230
6490
|
export interface UnmuteChannelRequest {
|
|
6231
6491
|
expiration?: number;
|
|
@@ -6244,7 +6504,7 @@ export interface UnmuteResponse {
|
|
|
6244
6504
|
}
|
|
6245
6505
|
export interface UnpinActivityResponse {
|
|
6246
6506
|
duration: string;
|
|
6247
|
-
|
|
6507
|
+
feed: string;
|
|
6248
6508
|
user_id: string;
|
|
6249
6509
|
activity: ActivityResponse;
|
|
6250
6510
|
}
|
|
@@ -6278,7 +6538,7 @@ export interface UnreadCountsResponse {
|
|
|
6278
6538
|
channel_type: UnreadCountsChannelType[];
|
|
6279
6539
|
channels: UnreadCountsChannel[];
|
|
6280
6540
|
threads: UnreadCountsThread[];
|
|
6281
|
-
total_unread_count_by_team
|
|
6541
|
+
total_unread_count_by_team?: Record<string, number>;
|
|
6282
6542
|
}
|
|
6283
6543
|
export interface UnreadCountsThread {
|
|
6284
6544
|
last_read: Date;
|
|
@@ -6341,6 +6601,7 @@ export interface UpdateAppRequest {
|
|
|
6341
6601
|
sqs_key?: string;
|
|
6342
6602
|
sqs_secret?: string;
|
|
6343
6603
|
sqs_url?: string;
|
|
6604
|
+
user_response_time_enabled?: boolean;
|
|
6344
6605
|
webhook_url?: string;
|
|
6345
6606
|
allowed_flag_reasons?: string[];
|
|
6346
6607
|
event_hooks?: EventHook[];
|
|
@@ -6562,9 +6823,12 @@ export interface UpdateExternalStorageResponse {
|
|
|
6562
6823
|
type: 's3' | 'gcs' | 'abs';
|
|
6563
6824
|
}
|
|
6564
6825
|
export interface UpdateFeedGroupRequest {
|
|
6565
|
-
|
|
6826
|
+
activity_processors?: ActivityProcessorConfig[];
|
|
6827
|
+
activity_selectors?: ActivitySelectorConfig[];
|
|
6828
|
+
aggregation?: AggregationConfig;
|
|
6566
6829
|
custom?: Record<string, any>;
|
|
6567
6830
|
notification?: NotificationConfig;
|
|
6831
|
+
ranking?: RankingConfig;
|
|
6568
6832
|
}
|
|
6569
6833
|
export interface UpdateFeedGroupResponse {
|
|
6570
6834
|
duration: string;
|
|
@@ -6614,7 +6878,6 @@ export interface UpdateFollowResponse {
|
|
|
6614
6878
|
follow: FollowResponse;
|
|
6615
6879
|
}
|
|
6616
6880
|
export interface UpdateLiveLocationRequest {
|
|
6617
|
-
created_by_device_id: string;
|
|
6618
6881
|
message_id: string;
|
|
6619
6882
|
end_at?: Date;
|
|
6620
6883
|
latitude?: number;
|
|
@@ -6628,6 +6891,17 @@ export interface UpdateMemberPartialResponse {
|
|
|
6628
6891
|
duration: string;
|
|
6629
6892
|
channel_member?: ChannelMemberResponse;
|
|
6630
6893
|
}
|
|
6894
|
+
export interface UpdateMembershipLevelRequest {
|
|
6895
|
+
description?: string;
|
|
6896
|
+
name?: string;
|
|
6897
|
+
priority?: number;
|
|
6898
|
+
tags?: string[];
|
|
6899
|
+
custom?: Record<string, any>;
|
|
6900
|
+
}
|
|
6901
|
+
export interface UpdateMembershipLevelResponse {
|
|
6902
|
+
duration: string;
|
|
6903
|
+
membership_level: MembershipLevelResponse;
|
|
6904
|
+
}
|
|
6631
6905
|
export interface UpdateMessagePartialRequest {
|
|
6632
6906
|
skip_enrich_url?: boolean;
|
|
6633
6907
|
user_id?: string;
|
|
@@ -6803,6 +7077,7 @@ export interface User {
|
|
|
6803
7077
|
role: string;
|
|
6804
7078
|
custom: Record<string, any>;
|
|
6805
7079
|
teams_role: Record<string, string>;
|
|
7080
|
+
avg_response_time?: number;
|
|
6806
7081
|
ban_expires?: Date;
|
|
6807
7082
|
created_at?: Date;
|
|
6808
7083
|
deactivated_at?: Date;
|
|
@@ -6875,6 +7150,21 @@ export interface UserFlaggedEvent {
|
|
|
6875
7150
|
target_users?: string[];
|
|
6876
7151
|
user?: User;
|
|
6877
7152
|
}
|
|
7153
|
+
export interface UserMessagesDeletedEvent {
|
|
7154
|
+
created_at: Date;
|
|
7155
|
+
hard_delete: boolean;
|
|
7156
|
+
soft_delete: boolean;
|
|
7157
|
+
custom: Record<string, any>;
|
|
7158
|
+
user: UserResponseCommonFields;
|
|
7159
|
+
type: string;
|
|
7160
|
+
channel_id?: string;
|
|
7161
|
+
channel_member_count?: number;
|
|
7162
|
+
channel_type?: string;
|
|
7163
|
+
cid?: string;
|
|
7164
|
+
received_at?: Date;
|
|
7165
|
+
team?: string;
|
|
7166
|
+
channel_custom?: Record<string, any>;
|
|
7167
|
+
}
|
|
6878
7168
|
export interface UserMute {
|
|
6879
7169
|
created_at: Date;
|
|
6880
7170
|
updated_at: Date;
|
|
@@ -6930,6 +7220,7 @@ export interface UserResponse {
|
|
|
6930
7220
|
blocked_user_ids: string[];
|
|
6931
7221
|
teams: string[];
|
|
6932
7222
|
custom: Record<string, any>;
|
|
7223
|
+
avg_response_time?: number;
|
|
6933
7224
|
ban_expires?: Date;
|
|
6934
7225
|
deactivated_at?: Date;
|
|
6935
7226
|
deleted_at?: Date;
|
|
@@ -6953,6 +7244,7 @@ export interface UserResponseCommonFields {
|
|
|
6953
7244
|
blocked_user_ids: string[];
|
|
6954
7245
|
teams: string[];
|
|
6955
7246
|
custom: Record<string, any>;
|
|
7247
|
+
avg_response_time?: number;
|
|
6956
7248
|
deactivated_at?: Date;
|
|
6957
7249
|
deleted_at?: Date;
|
|
6958
7250
|
image?: string;
|
|
@@ -6972,6 +7264,7 @@ export interface UserResponsePrivacyFields {
|
|
|
6972
7264
|
blocked_user_ids: string[];
|
|
6973
7265
|
teams: string[];
|
|
6974
7266
|
custom: Record<string, any>;
|
|
7267
|
+
avg_response_time?: number;
|
|
6975
7268
|
deactivated_at?: Date;
|
|
6976
7269
|
deleted_at?: Date;
|
|
6977
7270
|
image?: string;
|
|
@@ -7200,6 +7493,8 @@ export type WebhookEvent = ({
|
|
|
7200
7493
|
} & CallRtmpBroadcastStoppedEvent) | ({
|
|
7201
7494
|
type: 'call.session_ended';
|
|
7202
7495
|
} & CallSessionEndedEvent) | ({
|
|
7496
|
+
type: 'call.session_participant_count_updated';
|
|
7497
|
+
} & CallSessionParticipantCountsUpdatedEvent) | ({
|
|
7203
7498
|
type: 'call.session_participant_joined';
|
|
7204
7499
|
} & CallSessionParticipantJoinedEvent) | ({
|
|
7205
7500
|
type: 'call.session_participant_left';
|
|
@@ -7330,6 +7625,8 @@ export type WebhookEvent = ({
|
|
|
7330
7625
|
} & FollowDeletedEvent) | ({
|
|
7331
7626
|
type: 'feeds.follow.updated';
|
|
7332
7627
|
} & FollowUpdatedEvent) | ({
|
|
7628
|
+
type: 'feeds.notification_feed.updated';
|
|
7629
|
+
} & NotificationFeedUpdatedEvent) | ({
|
|
7333
7630
|
type: 'flag.updated';
|
|
7334
7631
|
} & FlagUpdatedEvent) | ({
|
|
7335
7632
|
type: 'member.added';
|
|
@@ -7364,6 +7661,8 @@ export type WebhookEvent = ({
|
|
|
7364
7661
|
} & ModerationCheckCompletedEvent) | ({
|
|
7365
7662
|
type: 'notification.mark_unread';
|
|
7366
7663
|
} & NotificationMarkUnreadEvent) | ({
|
|
7664
|
+
type: 'notification.reminder_due';
|
|
7665
|
+
} & ReminderNotificationEvent) | ({
|
|
7367
7666
|
type: 'notification.thread_message_new';
|
|
7368
7667
|
} & MessageNewEvent) | ({
|
|
7369
7668
|
type: 'reaction.deleted';
|
|
@@ -7372,6 +7671,12 @@ export type WebhookEvent = ({
|
|
|
7372
7671
|
} & ReactionNewEvent) | ({
|
|
7373
7672
|
type: 'reaction.updated';
|
|
7374
7673
|
} & ReactionUpdatedEvent) | ({
|
|
7674
|
+
type: 'reminder.created';
|
|
7675
|
+
} & ReminderCreatedEvent) | ({
|
|
7676
|
+
type: 'reminder.deleted';
|
|
7677
|
+
} & ReminderDeletedEvent) | ({
|
|
7678
|
+
type: 'reminder.updated';
|
|
7679
|
+
} & ReminderUpdatedEvent) | ({
|
|
7375
7680
|
type: 'review_queue_item.new';
|
|
7376
7681
|
} & ReviewQueueItemNewEvent) | ({
|
|
7377
7682
|
type: 'review_queue_item.updated';
|
|
@@ -7386,6 +7691,8 @@ export type WebhookEvent = ({
|
|
|
7386
7691
|
} & UserDeletedEvent) | ({
|
|
7387
7692
|
type: 'user.flagged';
|
|
7388
7693
|
} & UserFlaggedEvent) | ({
|
|
7694
|
+
type: 'user.messages.deleted';
|
|
7695
|
+
} & UserMessagesDeletedEvent) | ({
|
|
7389
7696
|
type: 'user.muted';
|
|
7390
7697
|
} & UserMutedEvent) | ({
|
|
7391
7698
|
type: 'user.reactivated';
|
|
@@ -7405,7 +7712,7 @@ export interface WrappedUnreadCountsResponse {
|
|
|
7405
7712
|
channel_type: UnreadCountsChannelType[];
|
|
7406
7713
|
channels: UnreadCountsChannel[];
|
|
7407
7714
|
threads: UnreadCountsThread[];
|
|
7408
|
-
total_unread_count_by_team
|
|
7715
|
+
total_unread_count_by_team?: Record<string, number>;
|
|
7409
7716
|
}
|
|
7410
7717
|
export interface XiaomiConfig {
|
|
7411
7718
|
disabled?: boolean;
|