@stream-io/node-sdk 0.7.41 → 0.7.43
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 +284 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +284 -10
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +5 -4
- package/dist/src/gen/common/CommonApi.d.ts +32 -1
- package/dist/src/gen/feeds/FeedApi.d.ts +2 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +10 -3
- package/dist/src/gen/models/index.d.ts +374 -50
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +37 -8
- package/src/gen/common/CommonApi.ts +199 -0
- package/src/gen/feeds/FeedApi.ts +12 -0
- package/src/gen/feeds/FeedsApi.ts +62 -3
- package/src/gen/model-decoders/decoders.ts +180 -2
- package/src/gen/models/index.ts +658 -90
- package/src/gen/moderation/ModerationApi.ts +2 -1
|
@@ -70,6 +70,7 @@ export interface AWSRekognitionRule {
|
|
|
70
70
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
71
71
|
label: string;
|
|
72
72
|
min_confidence: number;
|
|
73
|
+
subclassifications?: Record<string, boolean>;
|
|
73
74
|
}
|
|
74
75
|
export interface AcceptFeedMemberInviteRequest {
|
|
75
76
|
user_id?: string;
|
|
@@ -308,7 +309,7 @@ export interface ActivityResponse {
|
|
|
308
309
|
popularity: number;
|
|
309
310
|
preview: boolean;
|
|
310
311
|
reaction_count: number;
|
|
311
|
-
restrict_replies:
|
|
312
|
+
restrict_replies: 'everyone' | 'people_i_follow' | 'nobody';
|
|
312
313
|
score: number;
|
|
313
314
|
share_count: number;
|
|
314
315
|
type: string;
|
|
@@ -332,6 +333,8 @@ export interface ActivityResponse {
|
|
|
332
333
|
edited_at?: Date;
|
|
333
334
|
expires_at?: Date;
|
|
334
335
|
friend_reaction_count?: number;
|
|
336
|
+
is_read?: boolean;
|
|
337
|
+
is_seen?: boolean;
|
|
335
338
|
is_watched?: boolean;
|
|
336
339
|
moderation_action?: string;
|
|
337
340
|
selector_source?: string;
|
|
@@ -365,7 +368,7 @@ export interface ActivitySelectorConfig {
|
|
|
365
368
|
params?: Record<string, any>;
|
|
366
369
|
}
|
|
367
370
|
export interface ActivitySelectorConfigResponse {
|
|
368
|
-
type:
|
|
371
|
+
type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest' | 'follow_suggestion';
|
|
369
372
|
cutoff_time?: Date;
|
|
370
373
|
cutoff_window?: string;
|
|
371
374
|
min_popularity?: number;
|
|
@@ -499,6 +502,14 @@ export interface AddReactionResponse {
|
|
|
499
502
|
reaction: FeedsReactionResponse;
|
|
500
503
|
notification_created?: boolean;
|
|
501
504
|
}
|
|
505
|
+
export interface AddUserGroupMembersRequest {
|
|
506
|
+
member_ids: string[];
|
|
507
|
+
team_id?: string;
|
|
508
|
+
}
|
|
509
|
+
export interface AddUserGroupMembersResponse {
|
|
510
|
+
duration: string;
|
|
511
|
+
user_group?: UserGroupResponse;
|
|
512
|
+
}
|
|
502
513
|
export interface AggregatedActivityResponse {
|
|
503
514
|
activity_count: number;
|
|
504
515
|
created_at: Date;
|
|
@@ -508,6 +519,8 @@ export interface AggregatedActivityResponse {
|
|
|
508
519
|
user_count: number;
|
|
509
520
|
user_count_truncated: boolean;
|
|
510
521
|
activities: ActivityResponse[];
|
|
522
|
+
is_read?: boolean;
|
|
523
|
+
is_seen?: boolean;
|
|
511
524
|
is_watched?: boolean;
|
|
512
525
|
}
|
|
513
526
|
export interface AggregationConfig {
|
|
@@ -527,9 +540,11 @@ export interface AppResponseFields {
|
|
|
527
540
|
id: number;
|
|
528
541
|
image_moderation_enabled: boolean;
|
|
529
542
|
max_aggregated_activities_length: number;
|
|
543
|
+
moderation_audio_call_moderation_enabled: boolean;
|
|
530
544
|
moderation_enabled: boolean;
|
|
531
545
|
moderation_llm_configurability_enabled: boolean;
|
|
532
546
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
547
|
+
moderation_video_call_moderation_enabled: boolean;
|
|
533
548
|
moderation_webhook_url: string;
|
|
534
549
|
multi_tenant_enabled: boolean;
|
|
535
550
|
name: string;
|
|
@@ -982,6 +997,15 @@ export interface CallAcceptedEvent {
|
|
|
982
997
|
user: UserResponse;
|
|
983
998
|
type: string;
|
|
984
999
|
}
|
|
1000
|
+
export interface CallActionOptions {
|
|
1001
|
+
duration?: number;
|
|
1002
|
+
flag_reason?: string;
|
|
1003
|
+
kick_reason?: string;
|
|
1004
|
+
mute_audio?: boolean;
|
|
1005
|
+
mute_video?: boolean;
|
|
1006
|
+
reason?: string;
|
|
1007
|
+
warning_text?: string;
|
|
1008
|
+
}
|
|
985
1009
|
export interface CallClosedCaption {
|
|
986
1010
|
end_time: Date;
|
|
987
1011
|
id: string;
|
|
@@ -1015,6 +1039,10 @@ export interface CallCreatedEvent {
|
|
|
1015
1039
|
call: CallResponse;
|
|
1016
1040
|
type: string;
|
|
1017
1041
|
}
|
|
1042
|
+
export interface CallCustomPropertyParameters {
|
|
1043
|
+
operator?: string;
|
|
1044
|
+
property_key?: string;
|
|
1045
|
+
}
|
|
1018
1046
|
export interface CallDTMFEvent {
|
|
1019
1047
|
call_cid: string;
|
|
1020
1048
|
created_at: Date;
|
|
@@ -1308,6 +1336,11 @@ export interface CallRtmpBroadcastStoppedEvent {
|
|
|
1308
1336
|
name: string;
|
|
1309
1337
|
type: string;
|
|
1310
1338
|
}
|
|
1339
|
+
export interface CallRuleActionSequence {
|
|
1340
|
+
violation_number?: number;
|
|
1341
|
+
actions?: string[];
|
|
1342
|
+
call_options?: CallActionOptions;
|
|
1343
|
+
}
|
|
1311
1344
|
export interface CallSessionEndedEvent {
|
|
1312
1345
|
call_cid: string;
|
|
1313
1346
|
created_at: Date;
|
|
@@ -1501,6 +1534,8 @@ export interface CallStatsReportReadyEvent {
|
|
|
1501
1534
|
created_at: Date;
|
|
1502
1535
|
session_id: string;
|
|
1503
1536
|
type: string;
|
|
1537
|
+
is_trimmed?: boolean;
|
|
1538
|
+
participants_overview?: CallStatsParticipant[];
|
|
1504
1539
|
}
|
|
1505
1540
|
export interface CallStatsReportSummaryResponse {
|
|
1506
1541
|
call_cid: string;
|
|
@@ -1564,6 +1599,9 @@ export interface CallTypeResponse {
|
|
|
1564
1599
|
settings: CallSettingsResponse;
|
|
1565
1600
|
external_storage?: string;
|
|
1566
1601
|
}
|
|
1602
|
+
export interface CallTypeRuleParameters {
|
|
1603
|
+
call_type?: string;
|
|
1604
|
+
}
|
|
1567
1605
|
export interface CallUpdatedEvent {
|
|
1568
1606
|
call_cid: string;
|
|
1569
1607
|
created_at: Date;
|
|
@@ -1591,6 +1629,10 @@ export interface CallUserMutedEvent {
|
|
|
1591
1629
|
muted_user_ids: string[];
|
|
1592
1630
|
type: string;
|
|
1593
1631
|
}
|
|
1632
|
+
export interface CallViolationCountParameters {
|
|
1633
|
+
threshold?: number;
|
|
1634
|
+
time_window?: string;
|
|
1635
|
+
}
|
|
1594
1636
|
export interface CallsPerDayReport {
|
|
1595
1637
|
count: number;
|
|
1596
1638
|
}
|
|
@@ -2214,6 +2256,11 @@ export interface ClosedCaptionEvent {
|
|
|
2214
2256
|
closed_caption: CallClosedCaption;
|
|
2215
2257
|
type: string;
|
|
2216
2258
|
}
|
|
2259
|
+
export interface ClosedCaptionRuleParameters {
|
|
2260
|
+
threshold?: number;
|
|
2261
|
+
harm_labels?: string[];
|
|
2262
|
+
llm_harm_labels?: Record<string, string>;
|
|
2263
|
+
}
|
|
2217
2264
|
export interface CollectUserFeedbackRequest {
|
|
2218
2265
|
rating: number;
|
|
2219
2266
|
sdk: string;
|
|
@@ -2312,7 +2359,7 @@ export interface CommentResponse {
|
|
|
2312
2359
|
reaction_count: number;
|
|
2313
2360
|
reply_count: number;
|
|
2314
2361
|
score: number;
|
|
2315
|
-
status:
|
|
2362
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
2316
2363
|
updated_at: Date;
|
|
2317
2364
|
upvote_count: number;
|
|
2318
2365
|
mentioned_users: UserResponse[];
|
|
@@ -2368,6 +2415,7 @@ export interface ConfigResponse {
|
|
|
2368
2415
|
updated_at: Date;
|
|
2369
2416
|
supported_video_call_harm_types: string[];
|
|
2370
2417
|
ai_image_config?: AIImageConfig;
|
|
2418
|
+
ai_image_subclassifications?: Record<string, string[]>;
|
|
2371
2419
|
ai_text_config?: AITextConfig;
|
|
2372
2420
|
ai_video_config?: AIVideoConfig;
|
|
2373
2421
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
@@ -2576,6 +2624,7 @@ export interface CreateGuestResponse {
|
|
|
2576
2624
|
export interface CreateImportRequest {
|
|
2577
2625
|
mode: 'insert' | 'upsert';
|
|
2578
2626
|
path: string;
|
|
2627
|
+
merge_custom?: boolean;
|
|
2579
2628
|
}
|
|
2580
2629
|
export interface CreateImportResponse {
|
|
2581
2630
|
duration: string;
|
|
@@ -2658,6 +2707,17 @@ export interface CreateSIPTrunkResponse {
|
|
|
2658
2707
|
duration: string;
|
|
2659
2708
|
sip_trunk?: SIPTrunkResponse;
|
|
2660
2709
|
}
|
|
2710
|
+
export interface CreateUserGroupRequest {
|
|
2711
|
+
name: string;
|
|
2712
|
+
description?: string;
|
|
2713
|
+
id?: string;
|
|
2714
|
+
team_id?: string;
|
|
2715
|
+
member_ids?: string[];
|
|
2716
|
+
}
|
|
2717
|
+
export interface CreateUserGroupResponse {
|
|
2718
|
+
duration: string;
|
|
2719
|
+
user_group?: UserGroupResponse;
|
|
2720
|
+
}
|
|
2661
2721
|
export interface CustomActionRequestPayload {
|
|
2662
2722
|
id?: string;
|
|
2663
2723
|
options?: Record<string, any>;
|
|
@@ -2728,6 +2788,10 @@ export interface DailyMetricStatsResponse {
|
|
|
2728
2788
|
total: number;
|
|
2729
2789
|
daily: DailyMetricResponse[];
|
|
2730
2790
|
}
|
|
2791
|
+
export interface DailyValue {
|
|
2792
|
+
date: string;
|
|
2793
|
+
value: number;
|
|
2794
|
+
}
|
|
2731
2795
|
export interface Data {
|
|
2732
2796
|
id: string;
|
|
2733
2797
|
}
|
|
@@ -2779,6 +2843,8 @@ export interface DeleteActivityReactionResponse {
|
|
|
2779
2843
|
reaction: FeedsReactionResponse;
|
|
2780
2844
|
}
|
|
2781
2845
|
export interface DeleteActivityRequestPayload {
|
|
2846
|
+
entity_id?: string;
|
|
2847
|
+
entity_type?: string;
|
|
2782
2848
|
hard_delete?: boolean;
|
|
2783
2849
|
reason?: string;
|
|
2784
2850
|
}
|
|
@@ -2830,6 +2896,8 @@ export interface DeleteCommentReactionResponse {
|
|
|
2830
2896
|
reaction: FeedsReactionResponse;
|
|
2831
2897
|
}
|
|
2832
2898
|
export interface DeleteCommentRequestPayload {
|
|
2899
|
+
entity_id?: string;
|
|
2900
|
+
entity_type?: string;
|
|
2833
2901
|
hard_delete?: boolean;
|
|
2834
2902
|
reason?: string;
|
|
2835
2903
|
}
|
|
@@ -2870,6 +2938,8 @@ export interface DeleteImportV2TaskResponse {
|
|
|
2870
2938
|
duration: string;
|
|
2871
2939
|
}
|
|
2872
2940
|
export interface DeleteMessageRequestPayload {
|
|
2941
|
+
entity_id?: string;
|
|
2942
|
+
entity_type?: string;
|
|
2873
2943
|
hard_delete?: boolean;
|
|
2874
2944
|
reason?: string;
|
|
2875
2945
|
}
|
|
@@ -2887,6 +2957,8 @@ export interface DeleteModerationTemplateResponse {
|
|
|
2887
2957
|
duration: string;
|
|
2888
2958
|
}
|
|
2889
2959
|
export interface DeleteReactionRequestPayload {
|
|
2960
|
+
entity_id?: string;
|
|
2961
|
+
entity_type?: string;
|
|
2890
2962
|
hard_delete?: boolean;
|
|
2891
2963
|
reason?: string;
|
|
2892
2964
|
}
|
|
@@ -2916,6 +2988,8 @@ export interface DeleteTranscriptionResponse {
|
|
|
2916
2988
|
export interface DeleteUserRequestPayload {
|
|
2917
2989
|
delete_conversation_channels?: boolean;
|
|
2918
2990
|
delete_feeds_content?: boolean;
|
|
2991
|
+
entity_id?: string;
|
|
2992
|
+
entity_type?: string;
|
|
2919
2993
|
hard_delete?: boolean;
|
|
2920
2994
|
mark_messages_deleted?: boolean;
|
|
2921
2995
|
reason?: string;
|
|
@@ -3272,7 +3346,7 @@ export interface FeedGroupResponse {
|
|
|
3272
3346
|
created_at: Date;
|
|
3273
3347
|
id: string;
|
|
3274
3348
|
updated_at: Date;
|
|
3275
|
-
default_visibility?:
|
|
3349
|
+
default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3276
3350
|
deleted_at?: Date;
|
|
3277
3351
|
activity_processors?: ActivityProcessorConfig[];
|
|
3278
3352
|
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
@@ -3283,6 +3357,15 @@ export interface FeedGroupResponse {
|
|
|
3283
3357
|
ranking?: RankingConfig;
|
|
3284
3358
|
stories?: StoriesConfig;
|
|
3285
3359
|
}
|
|
3360
|
+
export interface FeedGroupRestoredEvent {
|
|
3361
|
+
created_at: Date;
|
|
3362
|
+
fid: string;
|
|
3363
|
+
group_id: string;
|
|
3364
|
+
custom: Record<string, any>;
|
|
3365
|
+
type: string;
|
|
3366
|
+
feed_visibility?: string;
|
|
3367
|
+
received_at?: Date;
|
|
3368
|
+
}
|
|
3286
3369
|
export interface FeedInput {
|
|
3287
3370
|
description?: string;
|
|
3288
3371
|
name?: string;
|
|
@@ -3403,7 +3486,7 @@ export interface FeedResponse {
|
|
|
3403
3486
|
updated_at: Date;
|
|
3404
3487
|
created_by: UserResponse;
|
|
3405
3488
|
deleted_at?: Date;
|
|
3406
|
-
visibility?:
|
|
3489
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3407
3490
|
filter_tags?: string[];
|
|
3408
3491
|
own_capabilities?: FeedOwnCapability[];
|
|
3409
3492
|
own_followings?: FollowResponse[];
|
|
@@ -3428,7 +3511,7 @@ export interface FeedSuggestionResponse {
|
|
|
3428
3511
|
deleted_at?: Date;
|
|
3429
3512
|
reason?: string;
|
|
3430
3513
|
recommendation_score?: number;
|
|
3431
|
-
visibility?:
|
|
3514
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3432
3515
|
filter_tags?: string[];
|
|
3433
3516
|
own_capabilities?: FeedOwnCapability[];
|
|
3434
3517
|
own_followings?: FollowResponse[];
|
|
@@ -3850,6 +3933,7 @@ export interface GetCommandResponse {
|
|
|
3850
3933
|
}
|
|
3851
3934
|
export interface GetCommentRepliesResponse {
|
|
3852
3935
|
duration: string;
|
|
3936
|
+
sort: string;
|
|
3853
3937
|
comments: ThreadedCommentResponse[];
|
|
3854
3938
|
next?: string;
|
|
3855
3939
|
prev?: string;
|
|
@@ -3860,6 +3944,7 @@ export interface GetCommentResponse {
|
|
|
3860
3944
|
}
|
|
3861
3945
|
export interface GetCommentsResponse {
|
|
3862
3946
|
duration: string;
|
|
3947
|
+
sort: string;
|
|
3863
3948
|
comments: ThreadedCommentResponse[];
|
|
3864
3949
|
next?: string;
|
|
3865
3950
|
prev?: string;
|
|
@@ -4072,6 +4157,10 @@ export interface GetThreadResponse {
|
|
|
4072
4157
|
duration: string;
|
|
4073
4158
|
thread: ThreadStateResponse;
|
|
4074
4159
|
}
|
|
4160
|
+
export interface GetUserGroupResponse {
|
|
4161
|
+
duration: string;
|
|
4162
|
+
user_group?: UserGroupResponse;
|
|
4163
|
+
}
|
|
4075
4164
|
export interface GoLiveRequest {
|
|
4076
4165
|
recording_storage_name?: string;
|
|
4077
4166
|
start_closed_caption?: boolean;
|
|
@@ -4203,6 +4292,7 @@ export interface ImportV2TaskItem {
|
|
|
4203
4292
|
settings: ImportV2TaskSettings;
|
|
4204
4293
|
}
|
|
4205
4294
|
export interface ImportV2TaskSettings {
|
|
4295
|
+
merge_custom?: boolean;
|
|
4206
4296
|
mode?: string;
|
|
4207
4297
|
path?: string;
|
|
4208
4298
|
skip_references_check?: boolean;
|
|
@@ -4215,15 +4305,18 @@ export interface ImportV2TaskSettingsS3 {
|
|
|
4215
4305
|
}
|
|
4216
4306
|
export interface IndividualRecordSettings {
|
|
4217
4307
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4308
|
+
output_types?: string[];
|
|
4218
4309
|
}
|
|
4219
4310
|
export interface IndividualRecordingResponse {
|
|
4220
4311
|
status: string;
|
|
4221
4312
|
}
|
|
4222
4313
|
export interface IndividualRecordingSettingsRequest {
|
|
4223
4314
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4315
|
+
output_types?: string[];
|
|
4224
4316
|
}
|
|
4225
4317
|
export interface IndividualRecordingSettingsResponse {
|
|
4226
4318
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4319
|
+
output_types?: string[];
|
|
4227
4320
|
}
|
|
4228
4321
|
export interface IngressAudioEncodingOptions {
|
|
4229
4322
|
bitrate: number;
|
|
@@ -4335,6 +4428,11 @@ export interface JoinCallAPIMetrics {
|
|
|
4335
4428
|
total: number;
|
|
4336
4429
|
latency?: ActiveCallsLatencyStats;
|
|
4337
4430
|
}
|
|
4431
|
+
export interface KeyframeRuleParameters {
|
|
4432
|
+
min_confidence?: number;
|
|
4433
|
+
threshold?: number;
|
|
4434
|
+
harm_labels?: string[];
|
|
4435
|
+
}
|
|
4338
4436
|
export interface KickUserRequest {
|
|
4339
4437
|
user_id: string;
|
|
4340
4438
|
block?: boolean;
|
|
@@ -4491,6 +4589,10 @@ export interface ListTranscriptionsResponse {
|
|
|
4491
4589
|
duration: string;
|
|
4492
4590
|
transcriptions: CallTranscription[];
|
|
4493
4591
|
}
|
|
4592
|
+
export interface ListUserGroupsResponse {
|
|
4593
|
+
duration: string;
|
|
4594
|
+
user_groups: UserGroupResponse[];
|
|
4595
|
+
}
|
|
4494
4596
|
export interface LocationResponse {
|
|
4495
4597
|
continent_code: string;
|
|
4496
4598
|
country_iso_code: string;
|
|
@@ -4524,7 +4626,20 @@ export interface MarkReadRequest {
|
|
|
4524
4626
|
}
|
|
4525
4627
|
export interface MarkReadResponse {
|
|
4526
4628
|
duration: string;
|
|
4527
|
-
event?:
|
|
4629
|
+
event?: MarkReadResponseEvent;
|
|
4630
|
+
}
|
|
4631
|
+
export interface MarkReadResponseEvent {
|
|
4632
|
+
channel_id: string;
|
|
4633
|
+
channel_type: string;
|
|
4634
|
+
cid: string;
|
|
4635
|
+
created_at: Date;
|
|
4636
|
+
type: string;
|
|
4637
|
+
channel_last_message_at?: Date;
|
|
4638
|
+
last_read_message_id?: string;
|
|
4639
|
+
team?: string;
|
|
4640
|
+
channel?: ChannelResponse;
|
|
4641
|
+
thread?: ThreadResponse;
|
|
4642
|
+
user?: UserResponseCommonFields;
|
|
4528
4643
|
}
|
|
4529
4644
|
export interface MarkReviewedRequestPayload {
|
|
4530
4645
|
content_to_mark_as_reviewed_limit?: number;
|
|
@@ -4756,15 +4871,19 @@ export interface MessagePaginationParams {
|
|
|
4756
4871
|
limit?: number;
|
|
4757
4872
|
}
|
|
4758
4873
|
export interface MessageReadEvent {
|
|
4759
|
-
channel_id: string;
|
|
4760
|
-
channel_type: string;
|
|
4761
|
-
cid: string;
|
|
4762
4874
|
created_at: Date;
|
|
4875
|
+
custom: Record<string, any>;
|
|
4763
4876
|
type: string;
|
|
4764
|
-
|
|
4877
|
+
channel_id?: string;
|
|
4878
|
+
channel_member_count?: number;
|
|
4879
|
+
channel_message_count?: number;
|
|
4880
|
+
channel_type?: string;
|
|
4881
|
+
cid?: string;
|
|
4765
4882
|
last_read_message_id?: string;
|
|
4883
|
+
received_at?: Date;
|
|
4766
4884
|
team?: string;
|
|
4767
4885
|
channel?: ChannelResponse;
|
|
4886
|
+
channel_custom?: Record<string, any>;
|
|
4768
4887
|
thread?: ThreadResponse;
|
|
4769
4888
|
user?: UserResponseCommonFields;
|
|
4770
4889
|
}
|
|
@@ -4772,6 +4891,7 @@ export interface MessageRequest {
|
|
|
4772
4891
|
html?: string;
|
|
4773
4892
|
id?: string;
|
|
4774
4893
|
mentioned_channel?: boolean;
|
|
4894
|
+
mentioned_here?: boolean;
|
|
4775
4895
|
mml?: string;
|
|
4776
4896
|
parent_id?: string;
|
|
4777
4897
|
pin_expires?: Date;
|
|
@@ -4785,6 +4905,7 @@ export interface MessageRequest {
|
|
|
4785
4905
|
type?: "''" | 'regular' | 'system';
|
|
4786
4906
|
user_id?: string;
|
|
4787
4907
|
attachments?: Attachment[];
|
|
4908
|
+
mentioned_roles?: string[];
|
|
4788
4909
|
mentioned_users?: string[];
|
|
4789
4910
|
restricted_visibility?: string[];
|
|
4790
4911
|
custom?: Record<string, any>;
|
|
@@ -4798,6 +4919,7 @@ export interface MessageResponse {
|
|
|
4798
4919
|
html: string;
|
|
4799
4920
|
id: string;
|
|
4800
4921
|
mentioned_channel: boolean;
|
|
4922
|
+
mentioned_here: boolean;
|
|
4801
4923
|
pinned: boolean;
|
|
4802
4924
|
reply_count: number;
|
|
4803
4925
|
shadowed: boolean;
|
|
@@ -4825,6 +4947,7 @@ export interface MessageResponse {
|
|
|
4825
4947
|
poll_id?: string;
|
|
4826
4948
|
quoted_message_id?: string;
|
|
4827
4949
|
show_in_channel?: boolean;
|
|
4950
|
+
mentioned_roles?: string[];
|
|
4828
4951
|
thread_participants?: UserResponse[];
|
|
4829
4952
|
draft?: DraftResponse;
|
|
4830
4953
|
i18n?: Record<string, string>;
|
|
@@ -4894,6 +5017,7 @@ export interface MessageWithChannelResponse {
|
|
|
4894
5017
|
html: string;
|
|
4895
5018
|
id: string;
|
|
4896
5019
|
mentioned_channel: boolean;
|
|
5020
|
+
mentioned_here: boolean;
|
|
4897
5021
|
pinned: boolean;
|
|
4898
5022
|
reply_count: number;
|
|
4899
5023
|
shadowed: boolean;
|
|
@@ -4922,6 +5046,7 @@ export interface MessageWithChannelResponse {
|
|
|
4922
5046
|
poll_id?: string;
|
|
4923
5047
|
quoted_message_id?: string;
|
|
4924
5048
|
show_in_channel?: boolean;
|
|
5049
|
+
mentioned_roles?: string[];
|
|
4925
5050
|
thread_participants?: UserResponse[];
|
|
4926
5051
|
draft?: DraftResponse;
|
|
4927
5052
|
i18n?: Record<string, string>;
|
|
@@ -4940,6 +5065,10 @@ export interface MetricDescriptor {
|
|
|
4940
5065
|
description?: string;
|
|
4941
5066
|
unit?: string;
|
|
4942
5067
|
}
|
|
5068
|
+
export interface MetricStats {
|
|
5069
|
+
total: number;
|
|
5070
|
+
daily?: DailyValue[];
|
|
5071
|
+
}
|
|
4943
5072
|
export interface MetricThreshold {
|
|
4944
5073
|
level: string;
|
|
4945
5074
|
operator: string;
|
|
@@ -5064,6 +5193,12 @@ export interface ModerationResponse {
|
|
|
5064
5193
|
spam: number;
|
|
5065
5194
|
toxic: number;
|
|
5066
5195
|
}
|
|
5196
|
+
export interface ModerationRuleInfo {
|
|
5197
|
+
description: string;
|
|
5198
|
+
id: string;
|
|
5199
|
+
name: string;
|
|
5200
|
+
type: string;
|
|
5201
|
+
}
|
|
5067
5202
|
export interface ModerationRuleV2Response {
|
|
5068
5203
|
created_at: Date;
|
|
5069
5204
|
description: string;
|
|
@@ -5074,11 +5209,25 @@ export interface ModerationRuleV2Response {
|
|
|
5074
5209
|
team: string;
|
|
5075
5210
|
updated_at: Date;
|
|
5076
5211
|
config_keys: string[];
|
|
5077
|
-
action: RuleBuilderAction;
|
|
5078
5212
|
cooldown_period?: string;
|
|
5079
5213
|
logic?: string;
|
|
5214
|
+
action_sequences?: CallRuleActionSequence[];
|
|
5080
5215
|
conditions?: RuleBuilderCondition[];
|
|
5081
5216
|
groups?: RuleBuilderConditionGroup[];
|
|
5217
|
+
action?: RuleBuilderAction;
|
|
5218
|
+
}
|
|
5219
|
+
export interface ModerationRulesTriggeredEvent {
|
|
5220
|
+
created_at: Date;
|
|
5221
|
+
entity_id: string;
|
|
5222
|
+
entity_type: string;
|
|
5223
|
+
user_id: string;
|
|
5224
|
+
triggered_actions: string[];
|
|
5225
|
+
custom: Record<string, any>;
|
|
5226
|
+
rule: ModerationRuleInfo;
|
|
5227
|
+
type: string;
|
|
5228
|
+
received_at?: Date;
|
|
5229
|
+
review_queue_item_id?: string;
|
|
5230
|
+
violation_number?: number;
|
|
5082
5231
|
}
|
|
5083
5232
|
export interface ModerationV2Response {
|
|
5084
5233
|
action: string;
|
|
@@ -5086,6 +5235,7 @@ export interface ModerationV2Response {
|
|
|
5086
5235
|
blocklist_matched?: string;
|
|
5087
5236
|
platform_circumvented?: boolean;
|
|
5088
5237
|
semantic_filter_matched?: string;
|
|
5238
|
+
blocklists_matched?: string[];
|
|
5089
5239
|
image_harms?: string[];
|
|
5090
5240
|
text_harms?: string[];
|
|
5091
5241
|
}
|
|
@@ -5783,6 +5933,7 @@ export interface QualityScoreReportResponse {
|
|
|
5783
5933
|
daily: DailyAggregateQualityScoreReportResponse[];
|
|
5784
5934
|
}
|
|
5785
5935
|
export interface QueryActivitiesRequest {
|
|
5936
|
+
include_expired_activities?: boolean;
|
|
5786
5937
|
include_private_activities?: boolean;
|
|
5787
5938
|
limit?: number;
|
|
5788
5939
|
next?: string;
|
|
@@ -6233,11 +6384,26 @@ export interface QueryModerationRulesRequest {
|
|
|
6233
6384
|
}
|
|
6234
6385
|
export interface QueryModerationRulesResponse {
|
|
6235
6386
|
duration: string;
|
|
6387
|
+
closed_caption_labels: string[];
|
|
6388
|
+
keyframe_labels: string[];
|
|
6236
6389
|
rules: ModerationRuleV2Response[];
|
|
6237
6390
|
default_llm_labels: Record<string, string>;
|
|
6238
6391
|
next?: string;
|
|
6239
6392
|
prev?: string;
|
|
6240
6393
|
}
|
|
6394
|
+
export interface QueryPinnedActivitiesRequest {
|
|
6395
|
+
limit?: number;
|
|
6396
|
+
next?: string;
|
|
6397
|
+
prev?: string;
|
|
6398
|
+
sort?: SortParamRequest[];
|
|
6399
|
+
filter?: Record<string, any>;
|
|
6400
|
+
}
|
|
6401
|
+
export interface QueryPinnedActivitiesResponse {
|
|
6402
|
+
duration: string;
|
|
6403
|
+
pinned_activities: ActivityPinResponse[];
|
|
6404
|
+
next?: string;
|
|
6405
|
+
prev?: string;
|
|
6406
|
+
}
|
|
6241
6407
|
export interface QueryPollVotesRequest {
|
|
6242
6408
|
limit?: number;
|
|
6243
6409
|
next?: string;
|
|
@@ -6336,6 +6502,18 @@ export interface QuerySegmentsResponse {
|
|
|
6336
6502
|
next?: string;
|
|
6337
6503
|
prev?: string;
|
|
6338
6504
|
}
|
|
6505
|
+
export interface QueryTeamUsageStatsRequest {
|
|
6506
|
+
end_date?: string;
|
|
6507
|
+
limit?: number;
|
|
6508
|
+
month?: string;
|
|
6509
|
+
next?: string;
|
|
6510
|
+
start_date?: string;
|
|
6511
|
+
}
|
|
6512
|
+
export interface QueryTeamUsageStatsResponse {
|
|
6513
|
+
duration: string;
|
|
6514
|
+
teams: TeamUsageStats[];
|
|
6515
|
+
next?: string;
|
|
6516
|
+
}
|
|
6339
6517
|
export interface QueryThreadsRequest {
|
|
6340
6518
|
limit?: number;
|
|
6341
6519
|
member_limit?: number;
|
|
@@ -6552,6 +6730,8 @@ export interface ReactivateUsersResponse {
|
|
|
6552
6730
|
export interface ReadCollectionsResponse {
|
|
6553
6731
|
duration: string;
|
|
6554
6732
|
collections: CollectionResponse[];
|
|
6733
|
+
next?: string;
|
|
6734
|
+
prev?: string;
|
|
6555
6735
|
}
|
|
6556
6736
|
export interface ReadReceiptsResponse {
|
|
6557
6737
|
enabled?: boolean;
|
|
@@ -6656,6 +6836,10 @@ export interface ReminderUpdatedEvent {
|
|
|
6656
6836
|
received_at?: Date;
|
|
6657
6837
|
reminder?: ReminderResponseData;
|
|
6658
6838
|
}
|
|
6839
|
+
export interface RemoveUserGroupMembersResponse {
|
|
6840
|
+
duration: string;
|
|
6841
|
+
user_group?: UserGroupResponse;
|
|
6842
|
+
}
|
|
6659
6843
|
export interface RepliesMeta {
|
|
6660
6844
|
depth_truncated: boolean;
|
|
6661
6845
|
has_more: boolean;
|
|
@@ -6705,6 +6889,12 @@ export interface RestoreActivityResponse {
|
|
|
6705
6889
|
duration: string;
|
|
6706
6890
|
activity: ActivityResponse;
|
|
6707
6891
|
}
|
|
6892
|
+
export interface RestoreFeedGroupRequest {
|
|
6893
|
+
}
|
|
6894
|
+
export interface RestoreFeedGroupResponse {
|
|
6895
|
+
duration: string;
|
|
6896
|
+
feed_group: FeedGroupResponse;
|
|
6897
|
+
}
|
|
6708
6898
|
export interface RestoreUsersRequest {
|
|
6709
6899
|
user_ids: string[];
|
|
6710
6900
|
}
|
|
@@ -6792,17 +6982,23 @@ export interface Role {
|
|
|
6792
6982
|
scopes: string[];
|
|
6793
6983
|
}
|
|
6794
6984
|
export interface RuleBuilderAction {
|
|
6795
|
-
type
|
|
6985
|
+
type?: 'ban_user' | 'flag_user' | 'flag_content' | 'block_content' | 'shadow_content' | 'bounce_flag_content' | 'bounce_content' | 'bounce_remove_content' | 'mute_video' | 'mute_audio' | 'blur' | 'call_blur' | 'end_call' | 'kick_user' | 'warning' | 'call_warning' | 'webhook_only';
|
|
6796
6986
|
ban_options?: BanOptions;
|
|
6987
|
+
call_options?: CallActionOptions;
|
|
6797
6988
|
flag_user_options?: FlagUserOptions;
|
|
6798
6989
|
}
|
|
6799
6990
|
export interface RuleBuilderCondition {
|
|
6800
6991
|
confidence?: number;
|
|
6801
6992
|
type?: string;
|
|
6993
|
+
call_custom_property_params?: CallCustomPropertyParameters;
|
|
6994
|
+
call_type_rule_params?: CallTypeRuleParameters;
|
|
6995
|
+
call_violation_count_params?: CallViolationCountParameters;
|
|
6996
|
+
closed_caption_rule_params?: ClosedCaptionRuleParameters;
|
|
6802
6997
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
6803
6998
|
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6804
6999
|
image_content_params?: ImageContentParameters;
|
|
6805
7000
|
image_rule_params?: ImageRuleParameters;
|
|
7001
|
+
keyframe_rule_params?: KeyframeRuleParameters;
|
|
6806
7002
|
text_content_params?: TextContentParameters;
|
|
6807
7003
|
text_rule_params?: TextRuleParameters;
|
|
6808
7004
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
@@ -6824,12 +7020,13 @@ export interface RuleBuilderConfig {
|
|
|
6824
7020
|
}
|
|
6825
7021
|
export interface RuleBuilderRule {
|
|
6826
7022
|
rule_type: string;
|
|
6827
|
-
action: RuleBuilderAction;
|
|
6828
7023
|
cooldown_period?: string;
|
|
6829
7024
|
id?: string;
|
|
6830
7025
|
logic?: string;
|
|
7026
|
+
action_sequences?: CallRuleActionSequence[];
|
|
6831
7027
|
conditions?: RuleBuilderCondition[];
|
|
6832
7028
|
groups?: RuleBuilderConditionGroup[];
|
|
7029
|
+
action?: RuleBuilderAction;
|
|
6833
7030
|
}
|
|
6834
7031
|
export interface S3Request {
|
|
6835
7032
|
s3_region: string;
|
|
@@ -6999,6 +7196,7 @@ export interface SearchResultMessage {
|
|
|
6999
7196
|
html: string;
|
|
7000
7197
|
id: string;
|
|
7001
7198
|
mentioned_channel: boolean;
|
|
7199
|
+
mentioned_here: boolean;
|
|
7002
7200
|
pinned: boolean;
|
|
7003
7201
|
reply_count: number;
|
|
7004
7202
|
shadowed: boolean;
|
|
@@ -7026,6 +7224,7 @@ export interface SearchResultMessage {
|
|
|
7026
7224
|
poll_id?: string;
|
|
7027
7225
|
quoted_message_id?: string;
|
|
7028
7226
|
show_in_channel?: boolean;
|
|
7227
|
+
mentioned_roles?: string[];
|
|
7029
7228
|
thread_participants?: UserResponse[];
|
|
7030
7229
|
channel?: ChannelResponse;
|
|
7031
7230
|
draft?: DraftResponse;
|
|
@@ -7040,6 +7239,10 @@ export interface SearchResultMessage {
|
|
|
7040
7239
|
reminder?: ReminderResponseData;
|
|
7041
7240
|
shared_location?: SharedLocationResponseData;
|
|
7042
7241
|
}
|
|
7242
|
+
export interface SearchUserGroupsResponse {
|
|
7243
|
+
duration: string;
|
|
7244
|
+
user_groups: UserGroupResponse[];
|
|
7245
|
+
}
|
|
7043
7246
|
export interface SearchWarning {
|
|
7044
7247
|
warning_code: number;
|
|
7045
7248
|
warning_description: string;
|
|
@@ -7395,6 +7598,25 @@ export interface TargetResolution {
|
|
|
7395
7598
|
height: number;
|
|
7396
7599
|
width: number;
|
|
7397
7600
|
}
|
|
7601
|
+
export interface TeamUsageStats {
|
|
7602
|
+
team: string;
|
|
7603
|
+
concurrent_connections: MetricStats;
|
|
7604
|
+
concurrent_users: MetricStats;
|
|
7605
|
+
image_moderations_daily: MetricStats;
|
|
7606
|
+
messages_daily: MetricStats;
|
|
7607
|
+
messages_last_24_hours: MetricStats;
|
|
7608
|
+
messages_last_30_days: MetricStats;
|
|
7609
|
+
messages_month_to_date: MetricStats;
|
|
7610
|
+
messages_total: MetricStats;
|
|
7611
|
+
translations_daily: MetricStats;
|
|
7612
|
+
users_daily: MetricStats;
|
|
7613
|
+
users_engaged_last_30_days: MetricStats;
|
|
7614
|
+
users_engaged_month_to_date: MetricStats;
|
|
7615
|
+
users_last_24_hours: MetricStats;
|
|
7616
|
+
users_last_30_days: MetricStats;
|
|
7617
|
+
users_month_to_date: MetricStats;
|
|
7618
|
+
users_total: MetricStats;
|
|
7619
|
+
}
|
|
7398
7620
|
export interface TextContentParameters {
|
|
7399
7621
|
contains_url?: boolean;
|
|
7400
7622
|
severity?: string;
|
|
@@ -7484,7 +7706,7 @@ export interface ThreadedCommentResponse {
|
|
|
7484
7706
|
reaction_count: number;
|
|
7485
7707
|
reply_count: number;
|
|
7486
7708
|
score: number;
|
|
7487
|
-
status:
|
|
7709
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
7488
7710
|
updated_at: Date;
|
|
7489
7711
|
upvote_count: number;
|
|
7490
7712
|
mentioned_users: UserResponse[];
|
|
@@ -7605,6 +7827,13 @@ export interface UnblockedUserEvent {
|
|
|
7605
7827
|
user: UserResponse;
|
|
7606
7828
|
type: string;
|
|
7607
7829
|
}
|
|
7830
|
+
export interface UndeleteMessageRequest {
|
|
7831
|
+
undeleted_by: string;
|
|
7832
|
+
}
|
|
7833
|
+
export interface UndeleteMessageResponse {
|
|
7834
|
+
duration: string;
|
|
7835
|
+
message: MessageResponse;
|
|
7836
|
+
}
|
|
7608
7837
|
export interface UnfollowBatchRequest {
|
|
7609
7838
|
follows: FollowPair[];
|
|
7610
7839
|
delete_notification_activity?: boolean;
|
|
@@ -7746,6 +7975,7 @@ export interface UpdateAppRequest {
|
|
|
7746
7975
|
image_moderation_enabled?: boolean;
|
|
7747
7976
|
max_aggregated_activities_length?: number;
|
|
7748
7977
|
migrate_permissions_to_v2?: boolean;
|
|
7978
|
+
moderation_analytics_enabled?: boolean;
|
|
7749
7979
|
moderation_enabled?: boolean;
|
|
7750
7980
|
moderation_webhook_url?: string;
|
|
7751
7981
|
multi_tenant_enabled?: boolean;
|
|
@@ -8201,6 +8431,15 @@ export interface UpdateThreadPartialResponse {
|
|
|
8201
8431
|
duration: string;
|
|
8202
8432
|
thread: ThreadResponse;
|
|
8203
8433
|
}
|
|
8434
|
+
export interface UpdateUserGroupRequest {
|
|
8435
|
+
description?: string;
|
|
8436
|
+
name?: string;
|
|
8437
|
+
team_id?: string;
|
|
8438
|
+
}
|
|
8439
|
+
export interface UpdateUserGroupResponse {
|
|
8440
|
+
duration: string;
|
|
8441
|
+
user_group?: UserGroupResponse;
|
|
8442
|
+
}
|
|
8204
8443
|
export interface UpdateUserPartialRequest {
|
|
8205
8444
|
id: string;
|
|
8206
8445
|
unset?: string[];
|
|
@@ -8297,15 +8536,16 @@ export interface UpsertConfigResponse {
|
|
|
8297
8536
|
export interface UpsertModerationRuleRequest {
|
|
8298
8537
|
name: string;
|
|
8299
8538
|
rule_type: string;
|
|
8300
|
-
action: RuleBuilderAction;
|
|
8301
8539
|
cooldown_period?: string;
|
|
8302
8540
|
description?: string;
|
|
8303
8541
|
enabled?: boolean;
|
|
8304
8542
|
logic?: string;
|
|
8305
8543
|
team?: string;
|
|
8544
|
+
action_sequences?: CallRuleActionSequence[];
|
|
8306
8545
|
conditions?: RuleBuilderCondition[];
|
|
8307
8546
|
config_keys?: string[];
|
|
8308
8547
|
groups?: RuleBuilderConditionGroup[];
|
|
8548
|
+
action?: RuleBuilderAction;
|
|
8309
8549
|
}
|
|
8310
8550
|
export interface UpsertModerationRuleResponse {
|
|
8311
8551
|
duration: string;
|
|
@@ -8431,6 +8671,76 @@ export interface UserFlaggedEvent {
|
|
|
8431
8671
|
custom?: Record<string, any>;
|
|
8432
8672
|
target_user?: UserResponseCommonFields;
|
|
8433
8673
|
}
|
|
8674
|
+
export interface UserGroup {
|
|
8675
|
+
app_pk: number;
|
|
8676
|
+
created_at: Date;
|
|
8677
|
+
id: string;
|
|
8678
|
+
name: string;
|
|
8679
|
+
updated_at: Date;
|
|
8680
|
+
created_by?: string;
|
|
8681
|
+
description?: string;
|
|
8682
|
+
team_id?: string;
|
|
8683
|
+
members?: UserGroupMember[];
|
|
8684
|
+
}
|
|
8685
|
+
export interface UserGroupCreatedEvent {
|
|
8686
|
+
created_at: Date;
|
|
8687
|
+
custom: Record<string, any>;
|
|
8688
|
+
type: string;
|
|
8689
|
+
received_at?: Date;
|
|
8690
|
+
user?: UserResponseCommonFields;
|
|
8691
|
+
user_group?: UserGroup;
|
|
8692
|
+
}
|
|
8693
|
+
export interface UserGroupDeletedEvent {
|
|
8694
|
+
created_at: Date;
|
|
8695
|
+
custom: Record<string, any>;
|
|
8696
|
+
type: string;
|
|
8697
|
+
received_at?: Date;
|
|
8698
|
+
user?: UserResponseCommonFields;
|
|
8699
|
+
user_group?: UserGroup;
|
|
8700
|
+
}
|
|
8701
|
+
export interface UserGroupMember {
|
|
8702
|
+
app_pk: number;
|
|
8703
|
+
created_at: Date;
|
|
8704
|
+
group_id: string;
|
|
8705
|
+
is_admin: boolean;
|
|
8706
|
+
user_id: string;
|
|
8707
|
+
}
|
|
8708
|
+
export interface UserGroupMemberAddedEvent {
|
|
8709
|
+
created_at: Date;
|
|
8710
|
+
members: string[];
|
|
8711
|
+
custom: Record<string, any>;
|
|
8712
|
+
type: string;
|
|
8713
|
+
received_at?: Date;
|
|
8714
|
+
user?: UserResponseCommonFields;
|
|
8715
|
+
user_group?: UserGroup;
|
|
8716
|
+
}
|
|
8717
|
+
export interface UserGroupMemberRemovedEvent {
|
|
8718
|
+
created_at: Date;
|
|
8719
|
+
members: string[];
|
|
8720
|
+
custom: Record<string, any>;
|
|
8721
|
+
type: string;
|
|
8722
|
+
received_at?: Date;
|
|
8723
|
+
user?: UserResponseCommonFields;
|
|
8724
|
+
user_group?: UserGroup;
|
|
8725
|
+
}
|
|
8726
|
+
export interface UserGroupResponse {
|
|
8727
|
+
created_at: Date;
|
|
8728
|
+
id: string;
|
|
8729
|
+
name: string;
|
|
8730
|
+
updated_at: Date;
|
|
8731
|
+
created_by?: string;
|
|
8732
|
+
description?: string;
|
|
8733
|
+
team_id?: string;
|
|
8734
|
+
members?: UserGroupMember[];
|
|
8735
|
+
}
|
|
8736
|
+
export interface UserGroupUpdatedEvent {
|
|
8737
|
+
created_at: Date;
|
|
8738
|
+
custom: Record<string, any>;
|
|
8739
|
+
type: string;
|
|
8740
|
+
received_at?: Date;
|
|
8741
|
+
user?: UserResponseCommonFields;
|
|
8742
|
+
user_group?: UserGroup;
|
|
8743
|
+
}
|
|
8434
8744
|
export interface UserIdenticalContentCountParameters {
|
|
8435
8745
|
threshold?: number;
|
|
8436
8746
|
time_window?: string;
|
|
@@ -8685,39 +8995,7 @@ export interface VoteData {
|
|
|
8685
8995
|
answer_text?: string;
|
|
8686
8996
|
option_id?: string;
|
|
8687
8997
|
}
|
|
8688
|
-
export
|
|
8689
|
-
address: string;
|
|
8690
|
-
}
|
|
8691
|
-
export interface WSEvent {
|
|
8692
|
-
created_at: Date;
|
|
8693
|
-
type: string;
|
|
8694
|
-
custom: Record<string, any>;
|
|
8695
|
-
automoderation?: boolean;
|
|
8696
|
-
channel_id?: string;
|
|
8697
|
-
channel_last_message_at?: Date;
|
|
8698
|
-
channel_type?: string;
|
|
8699
|
-
cid?: string;
|
|
8700
|
-
connection_id?: string;
|
|
8701
|
-
parent_id?: string;
|
|
8702
|
-
reason?: string;
|
|
8703
|
-
team?: string;
|
|
8704
|
-
thread_id?: string;
|
|
8705
|
-
user_id?: string;
|
|
8706
|
-
watcher_count?: number;
|
|
8707
|
-
automoderation_scores?: ModerationResponse;
|
|
8708
|
-
channel?: ChannelResponse;
|
|
8709
|
-
created_by?: UserResponse;
|
|
8710
|
-
me?: OwnUserResponse;
|
|
8711
|
-
member?: ChannelMemberResponse;
|
|
8712
|
-
message?: MessageResponse;
|
|
8713
|
-
message_update?: MessageUpdate;
|
|
8714
|
-
poll?: PollResponseData;
|
|
8715
|
-
poll_vote?: PollVoteResponseData;
|
|
8716
|
-
reaction?: ReactionResponse;
|
|
8717
|
-
thread?: ThreadResponse;
|
|
8718
|
-
user?: UserResponse;
|
|
8719
|
-
}
|
|
8720
|
-
export type WebhookEvent = ({
|
|
8998
|
+
export type WHEvent = ({
|
|
8721
8999
|
type: '*';
|
|
8722
9000
|
} & CustomEvent) | ({
|
|
8723
9001
|
type: 'appeal.accepted';
|
|
@@ -8936,6 +9214,8 @@ export type WebhookEvent = ({
|
|
|
8936
9214
|
} & FeedGroupChangedEvent) | ({
|
|
8937
9215
|
type: 'feeds.feed_group.deleted';
|
|
8938
9216
|
} & FeedGroupDeletedEvent) | ({
|
|
9217
|
+
type: 'feeds.feed_group.restored';
|
|
9218
|
+
} & FeedGroupRestoredEvent) | ({
|
|
8939
9219
|
type: 'feeds.feed_member.added';
|
|
8940
9220
|
} & FeedMemberAddedEvent) | ({
|
|
8941
9221
|
type: 'feeds.feed_member.removed';
|
|
@@ -8990,6 +9270,8 @@ export type WebhookEvent = ({
|
|
|
8990
9270
|
} & ModerationMarkReviewedEvent) | ({
|
|
8991
9271
|
type: 'moderation_check.completed';
|
|
8992
9272
|
} & ModerationCheckCompletedEvent) | ({
|
|
9273
|
+
type: 'moderation_rule.triggered';
|
|
9274
|
+
} & ModerationRulesTriggeredEvent) | ({
|
|
8993
9275
|
type: 'notification.mark_unread';
|
|
8994
9276
|
} & NotificationMarkUnreadEvent) | ({
|
|
8995
9277
|
type: 'notification.reminder_due';
|
|
@@ -9035,7 +9317,49 @@ export type WebhookEvent = ({
|
|
|
9035
9317
|
type: 'user.unread_message_reminder';
|
|
9036
9318
|
} & UserUnreadReminderEvent) | ({
|
|
9037
9319
|
type: 'user.updated';
|
|
9038
|
-
} & UserUpdatedEvent)
|
|
9320
|
+
} & UserUpdatedEvent) | ({
|
|
9321
|
+
type: 'user_group.created';
|
|
9322
|
+
} & UserGroupCreatedEvent) | ({
|
|
9323
|
+
type: 'user_group.deleted';
|
|
9324
|
+
} & UserGroupDeletedEvent) | ({
|
|
9325
|
+
type: 'user_group.member_added';
|
|
9326
|
+
} & UserGroupMemberAddedEvent) | ({
|
|
9327
|
+
type: 'user_group.member_removed';
|
|
9328
|
+
} & UserGroupMemberRemovedEvent) | ({
|
|
9329
|
+
type: 'user_group.updated';
|
|
9330
|
+
} & UserGroupUpdatedEvent);
|
|
9331
|
+
export interface WHIPIngress {
|
|
9332
|
+
address: string;
|
|
9333
|
+
}
|
|
9334
|
+
export interface WSEvent {
|
|
9335
|
+
created_at: Date;
|
|
9336
|
+
type: string;
|
|
9337
|
+
custom: Record<string, any>;
|
|
9338
|
+
automoderation?: boolean;
|
|
9339
|
+
channel_id?: string;
|
|
9340
|
+
channel_last_message_at?: Date;
|
|
9341
|
+
channel_type?: string;
|
|
9342
|
+
cid?: string;
|
|
9343
|
+
connection_id?: string;
|
|
9344
|
+
parent_id?: string;
|
|
9345
|
+
reason?: string;
|
|
9346
|
+
team?: string;
|
|
9347
|
+
thread_id?: string;
|
|
9348
|
+
user_id?: string;
|
|
9349
|
+
watcher_count?: number;
|
|
9350
|
+
automoderation_scores?: ModerationResponse;
|
|
9351
|
+
channel?: ChannelResponse;
|
|
9352
|
+
created_by?: UserResponse;
|
|
9353
|
+
me?: OwnUserResponse;
|
|
9354
|
+
member?: ChannelMemberResponse;
|
|
9355
|
+
message?: MessageResponse;
|
|
9356
|
+
message_update?: MessageUpdate;
|
|
9357
|
+
poll?: PollResponseData;
|
|
9358
|
+
poll_vote?: PollVoteResponseData;
|
|
9359
|
+
reaction?: ReactionResponse;
|
|
9360
|
+
thread?: ThreadResponse;
|
|
9361
|
+
user?: UserResponse;
|
|
9362
|
+
}
|
|
9039
9363
|
export interface WrappedUnreadCountsResponse {
|
|
9040
9364
|
duration: string;
|
|
9041
9365
|
total_unread_count: number;
|