@stream-io/node-sdk 0.7.42 → 0.7.44
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 +277 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +277 -11
- 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 +1 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +9 -3
- package/dist/src/gen/models/index.d.ts +375 -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 +1 -0
- package/src/gen/feeds/FeedsApi.ts +54 -5
- package/src/gen/model-decoders/decoders.ts +173 -2
- package/src/gen/models/index.ts +659 -85
- 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;
|
|
@@ -398,6 +401,7 @@ export interface AddActivityRequest {
|
|
|
398
401
|
feeds: string[];
|
|
399
402
|
copy_custom_to_notification?: boolean;
|
|
400
403
|
create_notification_activity?: boolean;
|
|
404
|
+
enrich_own_fields?: boolean;
|
|
401
405
|
expires_at?: string;
|
|
402
406
|
id?: string;
|
|
403
407
|
parent_id?: string;
|
|
@@ -499,6 +503,14 @@ export interface AddReactionResponse {
|
|
|
499
503
|
reaction: FeedsReactionResponse;
|
|
500
504
|
notification_created?: boolean;
|
|
501
505
|
}
|
|
506
|
+
export interface AddUserGroupMembersRequest {
|
|
507
|
+
member_ids: string[];
|
|
508
|
+
team_id?: string;
|
|
509
|
+
}
|
|
510
|
+
export interface AddUserGroupMembersResponse {
|
|
511
|
+
duration: string;
|
|
512
|
+
user_group?: UserGroupResponse;
|
|
513
|
+
}
|
|
502
514
|
export interface AggregatedActivityResponse {
|
|
503
515
|
activity_count: number;
|
|
504
516
|
created_at: Date;
|
|
@@ -508,6 +520,8 @@ export interface AggregatedActivityResponse {
|
|
|
508
520
|
user_count: number;
|
|
509
521
|
user_count_truncated: boolean;
|
|
510
522
|
activities: ActivityResponse[];
|
|
523
|
+
is_read?: boolean;
|
|
524
|
+
is_seen?: boolean;
|
|
511
525
|
is_watched?: boolean;
|
|
512
526
|
}
|
|
513
527
|
export interface AggregationConfig {
|
|
@@ -527,9 +541,11 @@ export interface AppResponseFields {
|
|
|
527
541
|
id: number;
|
|
528
542
|
image_moderation_enabled: boolean;
|
|
529
543
|
max_aggregated_activities_length: number;
|
|
544
|
+
moderation_audio_call_moderation_enabled: boolean;
|
|
530
545
|
moderation_enabled: boolean;
|
|
531
546
|
moderation_llm_configurability_enabled: boolean;
|
|
532
547
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
548
|
+
moderation_video_call_moderation_enabled: boolean;
|
|
533
549
|
moderation_webhook_url: string;
|
|
534
550
|
multi_tenant_enabled: boolean;
|
|
535
551
|
name: string;
|
|
@@ -982,6 +998,15 @@ export interface CallAcceptedEvent {
|
|
|
982
998
|
user: UserResponse;
|
|
983
999
|
type: string;
|
|
984
1000
|
}
|
|
1001
|
+
export interface CallActionOptions {
|
|
1002
|
+
duration?: number;
|
|
1003
|
+
flag_reason?: string;
|
|
1004
|
+
kick_reason?: string;
|
|
1005
|
+
mute_audio?: boolean;
|
|
1006
|
+
mute_video?: boolean;
|
|
1007
|
+
reason?: string;
|
|
1008
|
+
warning_text?: string;
|
|
1009
|
+
}
|
|
985
1010
|
export interface CallClosedCaption {
|
|
986
1011
|
end_time: Date;
|
|
987
1012
|
id: string;
|
|
@@ -1015,6 +1040,10 @@ export interface CallCreatedEvent {
|
|
|
1015
1040
|
call: CallResponse;
|
|
1016
1041
|
type: string;
|
|
1017
1042
|
}
|
|
1043
|
+
export interface CallCustomPropertyParameters {
|
|
1044
|
+
operator?: string;
|
|
1045
|
+
property_key?: string;
|
|
1046
|
+
}
|
|
1018
1047
|
export interface CallDTMFEvent {
|
|
1019
1048
|
call_cid: string;
|
|
1020
1049
|
created_at: Date;
|
|
@@ -1308,6 +1337,11 @@ export interface CallRtmpBroadcastStoppedEvent {
|
|
|
1308
1337
|
name: string;
|
|
1309
1338
|
type: string;
|
|
1310
1339
|
}
|
|
1340
|
+
export interface CallRuleActionSequence {
|
|
1341
|
+
violation_number?: number;
|
|
1342
|
+
actions?: string[];
|
|
1343
|
+
call_options?: CallActionOptions;
|
|
1344
|
+
}
|
|
1311
1345
|
export interface CallSessionEndedEvent {
|
|
1312
1346
|
call_cid: string;
|
|
1313
1347
|
created_at: Date;
|
|
@@ -1501,6 +1535,8 @@ export interface CallStatsReportReadyEvent {
|
|
|
1501
1535
|
created_at: Date;
|
|
1502
1536
|
session_id: string;
|
|
1503
1537
|
type: string;
|
|
1538
|
+
is_trimmed?: boolean;
|
|
1539
|
+
participants_overview?: CallStatsParticipant[];
|
|
1504
1540
|
}
|
|
1505
1541
|
export interface CallStatsReportSummaryResponse {
|
|
1506
1542
|
call_cid: string;
|
|
@@ -1564,6 +1600,9 @@ export interface CallTypeResponse {
|
|
|
1564
1600
|
settings: CallSettingsResponse;
|
|
1565
1601
|
external_storage?: string;
|
|
1566
1602
|
}
|
|
1603
|
+
export interface CallTypeRuleParameters {
|
|
1604
|
+
call_type?: string;
|
|
1605
|
+
}
|
|
1567
1606
|
export interface CallUpdatedEvent {
|
|
1568
1607
|
call_cid: string;
|
|
1569
1608
|
created_at: Date;
|
|
@@ -1591,6 +1630,10 @@ export interface CallUserMutedEvent {
|
|
|
1591
1630
|
muted_user_ids: string[];
|
|
1592
1631
|
type: string;
|
|
1593
1632
|
}
|
|
1633
|
+
export interface CallViolationCountParameters {
|
|
1634
|
+
threshold?: number;
|
|
1635
|
+
time_window?: string;
|
|
1636
|
+
}
|
|
1594
1637
|
export interface CallsPerDayReport {
|
|
1595
1638
|
count: number;
|
|
1596
1639
|
}
|
|
@@ -2214,6 +2257,11 @@ export interface ClosedCaptionEvent {
|
|
|
2214
2257
|
closed_caption: CallClosedCaption;
|
|
2215
2258
|
type: string;
|
|
2216
2259
|
}
|
|
2260
|
+
export interface ClosedCaptionRuleParameters {
|
|
2261
|
+
threshold?: number;
|
|
2262
|
+
harm_labels?: string[];
|
|
2263
|
+
llm_harm_labels?: Record<string, string>;
|
|
2264
|
+
}
|
|
2217
2265
|
export interface CollectUserFeedbackRequest {
|
|
2218
2266
|
rating: number;
|
|
2219
2267
|
sdk: string;
|
|
@@ -2312,7 +2360,7 @@ export interface CommentResponse {
|
|
|
2312
2360
|
reaction_count: number;
|
|
2313
2361
|
reply_count: number;
|
|
2314
2362
|
score: number;
|
|
2315
|
-
status:
|
|
2363
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
2316
2364
|
updated_at: Date;
|
|
2317
2365
|
upvote_count: number;
|
|
2318
2366
|
mentioned_users: UserResponse[];
|
|
@@ -2368,6 +2416,7 @@ export interface ConfigResponse {
|
|
|
2368
2416
|
updated_at: Date;
|
|
2369
2417
|
supported_video_call_harm_types: string[];
|
|
2370
2418
|
ai_image_config?: AIImageConfig;
|
|
2419
|
+
ai_image_subclassifications?: Record<string, string[]>;
|
|
2371
2420
|
ai_text_config?: AITextConfig;
|
|
2372
2421
|
ai_video_config?: AIVideoConfig;
|
|
2373
2422
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
@@ -2560,6 +2609,7 @@ export interface CreateFeedViewResponse {
|
|
|
2560
2609
|
}
|
|
2561
2610
|
export interface CreateFeedsBatchRequest {
|
|
2562
2611
|
feeds: FeedRequest[];
|
|
2612
|
+
enrich_own_fields?: boolean;
|
|
2563
2613
|
}
|
|
2564
2614
|
export interface CreateFeedsBatchResponse {
|
|
2565
2615
|
duration: string;
|
|
@@ -2576,6 +2626,7 @@ export interface CreateGuestResponse {
|
|
|
2576
2626
|
export interface CreateImportRequest {
|
|
2577
2627
|
mode: 'insert' | 'upsert';
|
|
2578
2628
|
path: string;
|
|
2629
|
+
merge_custom?: boolean;
|
|
2579
2630
|
}
|
|
2580
2631
|
export interface CreateImportResponse {
|
|
2581
2632
|
duration: string;
|
|
@@ -2658,6 +2709,17 @@ export interface CreateSIPTrunkResponse {
|
|
|
2658
2709
|
duration: string;
|
|
2659
2710
|
sip_trunk?: SIPTrunkResponse;
|
|
2660
2711
|
}
|
|
2712
|
+
export interface CreateUserGroupRequest {
|
|
2713
|
+
name: string;
|
|
2714
|
+
description?: string;
|
|
2715
|
+
id?: string;
|
|
2716
|
+
team_id?: string;
|
|
2717
|
+
member_ids?: string[];
|
|
2718
|
+
}
|
|
2719
|
+
export interface CreateUserGroupResponse {
|
|
2720
|
+
duration: string;
|
|
2721
|
+
user_group?: UserGroupResponse;
|
|
2722
|
+
}
|
|
2661
2723
|
export interface CustomActionRequestPayload {
|
|
2662
2724
|
id?: string;
|
|
2663
2725
|
options?: Record<string, any>;
|
|
@@ -2728,6 +2790,10 @@ export interface DailyMetricStatsResponse {
|
|
|
2728
2790
|
total: number;
|
|
2729
2791
|
daily: DailyMetricResponse[];
|
|
2730
2792
|
}
|
|
2793
|
+
export interface DailyValue {
|
|
2794
|
+
date: string;
|
|
2795
|
+
value: number;
|
|
2796
|
+
}
|
|
2731
2797
|
export interface Data {
|
|
2732
2798
|
id: string;
|
|
2733
2799
|
}
|
|
@@ -2779,6 +2845,8 @@ export interface DeleteActivityReactionResponse {
|
|
|
2779
2845
|
reaction: FeedsReactionResponse;
|
|
2780
2846
|
}
|
|
2781
2847
|
export interface DeleteActivityRequestPayload {
|
|
2848
|
+
entity_id?: string;
|
|
2849
|
+
entity_type?: string;
|
|
2782
2850
|
hard_delete?: boolean;
|
|
2783
2851
|
reason?: string;
|
|
2784
2852
|
}
|
|
@@ -2830,6 +2898,8 @@ export interface DeleteCommentReactionResponse {
|
|
|
2830
2898
|
reaction: FeedsReactionResponse;
|
|
2831
2899
|
}
|
|
2832
2900
|
export interface DeleteCommentRequestPayload {
|
|
2901
|
+
entity_id?: string;
|
|
2902
|
+
entity_type?: string;
|
|
2833
2903
|
hard_delete?: boolean;
|
|
2834
2904
|
reason?: string;
|
|
2835
2905
|
}
|
|
@@ -2870,6 +2940,8 @@ export interface DeleteImportV2TaskResponse {
|
|
|
2870
2940
|
duration: string;
|
|
2871
2941
|
}
|
|
2872
2942
|
export interface DeleteMessageRequestPayload {
|
|
2943
|
+
entity_id?: string;
|
|
2944
|
+
entity_type?: string;
|
|
2873
2945
|
hard_delete?: boolean;
|
|
2874
2946
|
reason?: string;
|
|
2875
2947
|
}
|
|
@@ -2887,6 +2959,8 @@ export interface DeleteModerationTemplateResponse {
|
|
|
2887
2959
|
duration: string;
|
|
2888
2960
|
}
|
|
2889
2961
|
export interface DeleteReactionRequestPayload {
|
|
2962
|
+
entity_id?: string;
|
|
2963
|
+
entity_type?: string;
|
|
2890
2964
|
hard_delete?: boolean;
|
|
2891
2965
|
reason?: string;
|
|
2892
2966
|
}
|
|
@@ -2916,6 +2990,8 @@ export interface DeleteTranscriptionResponse {
|
|
|
2916
2990
|
export interface DeleteUserRequestPayload {
|
|
2917
2991
|
delete_conversation_channels?: boolean;
|
|
2918
2992
|
delete_feeds_content?: boolean;
|
|
2993
|
+
entity_id?: string;
|
|
2994
|
+
entity_type?: string;
|
|
2919
2995
|
hard_delete?: boolean;
|
|
2920
2996
|
mark_messages_deleted?: boolean;
|
|
2921
2997
|
reason?: string;
|
|
@@ -3272,7 +3348,7 @@ export interface FeedGroupResponse {
|
|
|
3272
3348
|
created_at: Date;
|
|
3273
3349
|
id: string;
|
|
3274
3350
|
updated_at: Date;
|
|
3275
|
-
default_visibility?:
|
|
3351
|
+
default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3276
3352
|
deleted_at?: Date;
|
|
3277
3353
|
activity_processors?: ActivityProcessorConfig[];
|
|
3278
3354
|
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
@@ -3283,6 +3359,15 @@ export interface FeedGroupResponse {
|
|
|
3283
3359
|
ranking?: RankingConfig;
|
|
3284
3360
|
stories?: StoriesConfig;
|
|
3285
3361
|
}
|
|
3362
|
+
export interface FeedGroupRestoredEvent {
|
|
3363
|
+
created_at: Date;
|
|
3364
|
+
fid: string;
|
|
3365
|
+
group_id: string;
|
|
3366
|
+
custom: Record<string, any>;
|
|
3367
|
+
type: string;
|
|
3368
|
+
feed_visibility?: string;
|
|
3369
|
+
received_at?: Date;
|
|
3370
|
+
}
|
|
3286
3371
|
export interface FeedInput {
|
|
3287
3372
|
description?: string;
|
|
3288
3373
|
name?: string;
|
|
@@ -3403,7 +3488,7 @@ export interface FeedResponse {
|
|
|
3403
3488
|
updated_at: Date;
|
|
3404
3489
|
created_by: UserResponse;
|
|
3405
3490
|
deleted_at?: Date;
|
|
3406
|
-
visibility?:
|
|
3491
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3407
3492
|
filter_tags?: string[];
|
|
3408
3493
|
own_capabilities?: FeedOwnCapability[];
|
|
3409
3494
|
own_followings?: FollowResponse[];
|
|
@@ -3428,7 +3513,7 @@ export interface FeedSuggestionResponse {
|
|
|
3428
3513
|
deleted_at?: Date;
|
|
3429
3514
|
reason?: string;
|
|
3430
3515
|
recommendation_score?: number;
|
|
3431
|
-
visibility?:
|
|
3516
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
3432
3517
|
filter_tags?: string[];
|
|
3433
3518
|
own_capabilities?: FeedOwnCapability[];
|
|
3434
3519
|
own_followings?: FollowResponse[];
|
|
@@ -3583,6 +3668,7 @@ export interface FlagUserOptions {
|
|
|
3583
3668
|
}
|
|
3584
3669
|
export interface FollowBatchRequest {
|
|
3585
3670
|
follows: FollowRequest[];
|
|
3671
|
+
enrich_own_fields?: boolean;
|
|
3586
3672
|
}
|
|
3587
3673
|
export interface FollowBatchResponse {
|
|
3588
3674
|
duration: string;
|
|
@@ -3616,6 +3702,7 @@ export interface FollowRequest {
|
|
|
3616
3702
|
target: string;
|
|
3617
3703
|
copy_custom_to_notification?: boolean;
|
|
3618
3704
|
create_notification_activity?: boolean;
|
|
3705
|
+
enrich_own_fields?: boolean;
|
|
3619
3706
|
push_preference?: 'all' | 'none';
|
|
3620
3707
|
skip_push?: boolean;
|
|
3621
3708
|
status?: 'accepted' | 'pending' | 'rejected';
|
|
@@ -3850,6 +3937,7 @@ export interface GetCommandResponse {
|
|
|
3850
3937
|
}
|
|
3851
3938
|
export interface GetCommentRepliesResponse {
|
|
3852
3939
|
duration: string;
|
|
3940
|
+
sort: string;
|
|
3853
3941
|
comments: ThreadedCommentResponse[];
|
|
3854
3942
|
next?: string;
|
|
3855
3943
|
prev?: string;
|
|
@@ -3860,6 +3948,7 @@ export interface GetCommentResponse {
|
|
|
3860
3948
|
}
|
|
3861
3949
|
export interface GetCommentsResponse {
|
|
3862
3950
|
duration: string;
|
|
3951
|
+
sort: string;
|
|
3863
3952
|
comments: ThreadedCommentResponse[];
|
|
3864
3953
|
next?: string;
|
|
3865
3954
|
prev?: string;
|
|
@@ -4072,6 +4161,10 @@ export interface GetThreadResponse {
|
|
|
4072
4161
|
duration: string;
|
|
4073
4162
|
thread: ThreadStateResponse;
|
|
4074
4163
|
}
|
|
4164
|
+
export interface GetUserGroupResponse {
|
|
4165
|
+
duration: string;
|
|
4166
|
+
user_group?: UserGroupResponse;
|
|
4167
|
+
}
|
|
4075
4168
|
export interface GoLiveRequest {
|
|
4076
4169
|
recording_storage_name?: string;
|
|
4077
4170
|
start_closed_caption?: boolean;
|
|
@@ -4203,6 +4296,7 @@ export interface ImportV2TaskItem {
|
|
|
4203
4296
|
settings: ImportV2TaskSettings;
|
|
4204
4297
|
}
|
|
4205
4298
|
export interface ImportV2TaskSettings {
|
|
4299
|
+
merge_custom?: boolean;
|
|
4206
4300
|
mode?: string;
|
|
4207
4301
|
path?: string;
|
|
4208
4302
|
skip_references_check?: boolean;
|
|
@@ -4215,15 +4309,18 @@ export interface ImportV2TaskSettingsS3 {
|
|
|
4215
4309
|
}
|
|
4216
4310
|
export interface IndividualRecordSettings {
|
|
4217
4311
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4312
|
+
output_types?: string[];
|
|
4218
4313
|
}
|
|
4219
4314
|
export interface IndividualRecordingResponse {
|
|
4220
4315
|
status: string;
|
|
4221
4316
|
}
|
|
4222
4317
|
export interface IndividualRecordingSettingsRequest {
|
|
4223
4318
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4319
|
+
output_types?: string[];
|
|
4224
4320
|
}
|
|
4225
4321
|
export interface IndividualRecordingSettingsResponse {
|
|
4226
4322
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4323
|
+
output_types?: string[];
|
|
4227
4324
|
}
|
|
4228
4325
|
export interface IngressAudioEncodingOptions {
|
|
4229
4326
|
bitrate: number;
|
|
@@ -4335,6 +4432,11 @@ export interface JoinCallAPIMetrics {
|
|
|
4335
4432
|
total: number;
|
|
4336
4433
|
latency?: ActiveCallsLatencyStats;
|
|
4337
4434
|
}
|
|
4435
|
+
export interface KeyframeRuleParameters {
|
|
4436
|
+
min_confidence?: number;
|
|
4437
|
+
threshold?: number;
|
|
4438
|
+
harm_labels?: string[];
|
|
4439
|
+
}
|
|
4338
4440
|
export interface KickUserRequest {
|
|
4339
4441
|
user_id: string;
|
|
4340
4442
|
block?: boolean;
|
|
@@ -4491,6 +4593,10 @@ export interface ListTranscriptionsResponse {
|
|
|
4491
4593
|
duration: string;
|
|
4492
4594
|
transcriptions: CallTranscription[];
|
|
4493
4595
|
}
|
|
4596
|
+
export interface ListUserGroupsResponse {
|
|
4597
|
+
duration: string;
|
|
4598
|
+
user_groups: UserGroupResponse[];
|
|
4599
|
+
}
|
|
4494
4600
|
export interface LocationResponse {
|
|
4495
4601
|
continent_code: string;
|
|
4496
4602
|
country_iso_code: string;
|
|
@@ -4524,7 +4630,20 @@ export interface MarkReadRequest {
|
|
|
4524
4630
|
}
|
|
4525
4631
|
export interface MarkReadResponse {
|
|
4526
4632
|
duration: string;
|
|
4527
|
-
event?:
|
|
4633
|
+
event?: MarkReadResponseEvent;
|
|
4634
|
+
}
|
|
4635
|
+
export interface MarkReadResponseEvent {
|
|
4636
|
+
channel_id: string;
|
|
4637
|
+
channel_type: string;
|
|
4638
|
+
cid: string;
|
|
4639
|
+
created_at: Date;
|
|
4640
|
+
type: string;
|
|
4641
|
+
channel_last_message_at?: Date;
|
|
4642
|
+
last_read_message_id?: string;
|
|
4643
|
+
team?: string;
|
|
4644
|
+
channel?: ChannelResponse;
|
|
4645
|
+
thread?: ThreadResponse;
|
|
4646
|
+
user?: UserResponseCommonFields;
|
|
4528
4647
|
}
|
|
4529
4648
|
export interface MarkReviewedRequestPayload {
|
|
4530
4649
|
content_to_mark_as_reviewed_limit?: number;
|
|
@@ -4756,15 +4875,19 @@ export interface MessagePaginationParams {
|
|
|
4756
4875
|
limit?: number;
|
|
4757
4876
|
}
|
|
4758
4877
|
export interface MessageReadEvent {
|
|
4759
|
-
channel_id: string;
|
|
4760
|
-
channel_type: string;
|
|
4761
|
-
cid: string;
|
|
4762
4878
|
created_at: Date;
|
|
4879
|
+
custom: Record<string, any>;
|
|
4763
4880
|
type: string;
|
|
4764
|
-
|
|
4881
|
+
channel_id?: string;
|
|
4882
|
+
channel_member_count?: number;
|
|
4883
|
+
channel_message_count?: number;
|
|
4884
|
+
channel_type?: string;
|
|
4885
|
+
cid?: string;
|
|
4765
4886
|
last_read_message_id?: string;
|
|
4887
|
+
received_at?: Date;
|
|
4766
4888
|
team?: string;
|
|
4767
4889
|
channel?: ChannelResponse;
|
|
4890
|
+
channel_custom?: Record<string, any>;
|
|
4768
4891
|
thread?: ThreadResponse;
|
|
4769
4892
|
user?: UserResponseCommonFields;
|
|
4770
4893
|
}
|
|
@@ -4772,6 +4895,7 @@ export interface MessageRequest {
|
|
|
4772
4895
|
html?: string;
|
|
4773
4896
|
id?: string;
|
|
4774
4897
|
mentioned_channel?: boolean;
|
|
4898
|
+
mentioned_here?: boolean;
|
|
4775
4899
|
mml?: string;
|
|
4776
4900
|
parent_id?: string;
|
|
4777
4901
|
pin_expires?: Date;
|
|
@@ -4785,6 +4909,7 @@ export interface MessageRequest {
|
|
|
4785
4909
|
type?: "''" | 'regular' | 'system';
|
|
4786
4910
|
user_id?: string;
|
|
4787
4911
|
attachments?: Attachment[];
|
|
4912
|
+
mentioned_roles?: string[];
|
|
4788
4913
|
mentioned_users?: string[];
|
|
4789
4914
|
restricted_visibility?: string[];
|
|
4790
4915
|
custom?: Record<string, any>;
|
|
@@ -4798,6 +4923,7 @@ export interface MessageResponse {
|
|
|
4798
4923
|
html: string;
|
|
4799
4924
|
id: string;
|
|
4800
4925
|
mentioned_channel: boolean;
|
|
4926
|
+
mentioned_here: boolean;
|
|
4801
4927
|
pinned: boolean;
|
|
4802
4928
|
reply_count: number;
|
|
4803
4929
|
shadowed: boolean;
|
|
@@ -4825,6 +4951,7 @@ export interface MessageResponse {
|
|
|
4825
4951
|
poll_id?: string;
|
|
4826
4952
|
quoted_message_id?: string;
|
|
4827
4953
|
show_in_channel?: boolean;
|
|
4954
|
+
mentioned_roles?: string[];
|
|
4828
4955
|
thread_participants?: UserResponse[];
|
|
4829
4956
|
draft?: DraftResponse;
|
|
4830
4957
|
i18n?: Record<string, string>;
|
|
@@ -4894,6 +5021,7 @@ export interface MessageWithChannelResponse {
|
|
|
4894
5021
|
html: string;
|
|
4895
5022
|
id: string;
|
|
4896
5023
|
mentioned_channel: boolean;
|
|
5024
|
+
mentioned_here: boolean;
|
|
4897
5025
|
pinned: boolean;
|
|
4898
5026
|
reply_count: number;
|
|
4899
5027
|
shadowed: boolean;
|
|
@@ -4922,6 +5050,7 @@ export interface MessageWithChannelResponse {
|
|
|
4922
5050
|
poll_id?: string;
|
|
4923
5051
|
quoted_message_id?: string;
|
|
4924
5052
|
show_in_channel?: boolean;
|
|
5053
|
+
mentioned_roles?: string[];
|
|
4925
5054
|
thread_participants?: UserResponse[];
|
|
4926
5055
|
draft?: DraftResponse;
|
|
4927
5056
|
i18n?: Record<string, string>;
|
|
@@ -4940,6 +5069,10 @@ export interface MetricDescriptor {
|
|
|
4940
5069
|
description?: string;
|
|
4941
5070
|
unit?: string;
|
|
4942
5071
|
}
|
|
5072
|
+
export interface MetricStats {
|
|
5073
|
+
total: number;
|
|
5074
|
+
daily?: DailyValue[];
|
|
5075
|
+
}
|
|
4943
5076
|
export interface MetricThreshold {
|
|
4944
5077
|
level: string;
|
|
4945
5078
|
operator: string;
|
|
@@ -5064,6 +5197,12 @@ export interface ModerationResponse {
|
|
|
5064
5197
|
spam: number;
|
|
5065
5198
|
toxic: number;
|
|
5066
5199
|
}
|
|
5200
|
+
export interface ModerationRuleInfo {
|
|
5201
|
+
description: string;
|
|
5202
|
+
id: string;
|
|
5203
|
+
name: string;
|
|
5204
|
+
type: string;
|
|
5205
|
+
}
|
|
5067
5206
|
export interface ModerationRuleV2Response {
|
|
5068
5207
|
created_at: Date;
|
|
5069
5208
|
description: string;
|
|
@@ -5074,11 +5213,25 @@ export interface ModerationRuleV2Response {
|
|
|
5074
5213
|
team: string;
|
|
5075
5214
|
updated_at: Date;
|
|
5076
5215
|
config_keys: string[];
|
|
5077
|
-
action: RuleBuilderAction;
|
|
5078
5216
|
cooldown_period?: string;
|
|
5079
5217
|
logic?: string;
|
|
5218
|
+
action_sequences?: CallRuleActionSequence[];
|
|
5080
5219
|
conditions?: RuleBuilderCondition[];
|
|
5081
5220
|
groups?: RuleBuilderConditionGroup[];
|
|
5221
|
+
action?: RuleBuilderAction;
|
|
5222
|
+
}
|
|
5223
|
+
export interface ModerationRulesTriggeredEvent {
|
|
5224
|
+
created_at: Date;
|
|
5225
|
+
entity_id: string;
|
|
5226
|
+
entity_type: string;
|
|
5227
|
+
user_id: string;
|
|
5228
|
+
triggered_actions: string[];
|
|
5229
|
+
custom: Record<string, any>;
|
|
5230
|
+
rule: ModerationRuleInfo;
|
|
5231
|
+
type: string;
|
|
5232
|
+
received_at?: Date;
|
|
5233
|
+
review_queue_item_id?: string;
|
|
5234
|
+
violation_number?: number;
|
|
5082
5235
|
}
|
|
5083
5236
|
export interface ModerationV2Response {
|
|
5084
5237
|
action: string;
|
|
@@ -5086,6 +5239,7 @@ export interface ModerationV2Response {
|
|
|
5086
5239
|
blocklist_matched?: string;
|
|
5087
5240
|
platform_circumvented?: boolean;
|
|
5088
5241
|
semantic_filter_matched?: string;
|
|
5242
|
+
blocklists_matched?: string[];
|
|
5089
5243
|
image_harms?: string[];
|
|
5090
5244
|
text_harms?: string[];
|
|
5091
5245
|
}
|
|
@@ -5487,6 +5641,7 @@ export interface PermissionRequestEvent {
|
|
|
5487
5641
|
type: string;
|
|
5488
5642
|
}
|
|
5489
5643
|
export interface PinActivityRequest {
|
|
5644
|
+
enrich_own_fields?: boolean;
|
|
5490
5645
|
user_id?: string;
|
|
5491
5646
|
user?: UserRequest;
|
|
5492
5647
|
}
|
|
@@ -5783,6 +5938,7 @@ export interface QualityScoreReportResponse {
|
|
|
5783
5938
|
daily: DailyAggregateQualityScoreReportResponse[];
|
|
5784
5939
|
}
|
|
5785
5940
|
export interface QueryActivitiesRequest {
|
|
5941
|
+
enrich_own_fields?: boolean;
|
|
5786
5942
|
include_expired_activities?: boolean;
|
|
5787
5943
|
include_private_activities?: boolean;
|
|
5788
5944
|
limit?: number;
|
|
@@ -5869,6 +6025,7 @@ export interface QueryBookmarkFoldersResponse {
|
|
|
5869
6025
|
prev?: string;
|
|
5870
6026
|
}
|
|
5871
6027
|
export interface QueryBookmarksRequest {
|
|
6028
|
+
enrich_own_fields?: boolean;
|
|
5872
6029
|
limit?: number;
|
|
5873
6030
|
next?: string;
|
|
5874
6031
|
prev?: string;
|
|
@@ -6081,6 +6238,7 @@ export interface QueryFeedModerationTemplatesResponse {
|
|
|
6081
6238
|
templates: QueryFeedModerationTemplate[];
|
|
6082
6239
|
}
|
|
6083
6240
|
export interface QueryFeedsRequest {
|
|
6241
|
+
enrich_own_fields?: boolean;
|
|
6084
6242
|
limit?: number;
|
|
6085
6243
|
next?: string;
|
|
6086
6244
|
prev?: string;
|
|
@@ -6234,12 +6392,15 @@ export interface QueryModerationRulesRequest {
|
|
|
6234
6392
|
}
|
|
6235
6393
|
export interface QueryModerationRulesResponse {
|
|
6236
6394
|
duration: string;
|
|
6395
|
+
closed_caption_labels: string[];
|
|
6396
|
+
keyframe_labels: string[];
|
|
6237
6397
|
rules: ModerationRuleV2Response[];
|
|
6238
6398
|
default_llm_labels: Record<string, string>;
|
|
6239
6399
|
next?: string;
|
|
6240
6400
|
prev?: string;
|
|
6241
6401
|
}
|
|
6242
6402
|
export interface QueryPinnedActivitiesRequest {
|
|
6403
|
+
enrich_own_fields?: boolean;
|
|
6243
6404
|
limit?: number;
|
|
6244
6405
|
next?: string;
|
|
6245
6406
|
prev?: string;
|
|
@@ -6350,6 +6511,18 @@ export interface QuerySegmentsResponse {
|
|
|
6350
6511
|
next?: string;
|
|
6351
6512
|
prev?: string;
|
|
6352
6513
|
}
|
|
6514
|
+
export interface QueryTeamUsageStatsRequest {
|
|
6515
|
+
end_date?: string;
|
|
6516
|
+
limit?: number;
|
|
6517
|
+
month?: string;
|
|
6518
|
+
next?: string;
|
|
6519
|
+
start_date?: string;
|
|
6520
|
+
}
|
|
6521
|
+
export interface QueryTeamUsageStatsResponse {
|
|
6522
|
+
duration: string;
|
|
6523
|
+
teams: TeamUsageStats[];
|
|
6524
|
+
next?: string;
|
|
6525
|
+
}
|
|
6353
6526
|
export interface QueryThreadsRequest {
|
|
6354
6527
|
limit?: number;
|
|
6355
6528
|
member_limit?: number;
|
|
@@ -6566,6 +6739,8 @@ export interface ReactivateUsersResponse {
|
|
|
6566
6739
|
export interface ReadCollectionsResponse {
|
|
6567
6740
|
duration: string;
|
|
6568
6741
|
collections: CollectionResponse[];
|
|
6742
|
+
next?: string;
|
|
6743
|
+
prev?: string;
|
|
6569
6744
|
}
|
|
6570
6745
|
export interface ReadReceiptsResponse {
|
|
6571
6746
|
enabled?: boolean;
|
|
@@ -6670,6 +6845,10 @@ export interface ReminderUpdatedEvent {
|
|
|
6670
6845
|
received_at?: Date;
|
|
6671
6846
|
reminder?: ReminderResponseData;
|
|
6672
6847
|
}
|
|
6848
|
+
export interface RemoveUserGroupMembersResponse {
|
|
6849
|
+
duration: string;
|
|
6850
|
+
user_group?: UserGroupResponse;
|
|
6851
|
+
}
|
|
6673
6852
|
export interface RepliesMeta {
|
|
6674
6853
|
depth_truncated: boolean;
|
|
6675
6854
|
has_more: boolean;
|
|
@@ -6719,6 +6898,12 @@ export interface RestoreActivityResponse {
|
|
|
6719
6898
|
duration: string;
|
|
6720
6899
|
activity: ActivityResponse;
|
|
6721
6900
|
}
|
|
6901
|
+
export interface RestoreFeedGroupRequest {
|
|
6902
|
+
}
|
|
6903
|
+
export interface RestoreFeedGroupResponse {
|
|
6904
|
+
duration: string;
|
|
6905
|
+
feed_group: FeedGroupResponse;
|
|
6906
|
+
}
|
|
6722
6907
|
export interface RestoreUsersRequest {
|
|
6723
6908
|
user_ids: string[];
|
|
6724
6909
|
}
|
|
@@ -6806,17 +6991,23 @@ export interface Role {
|
|
|
6806
6991
|
scopes: string[];
|
|
6807
6992
|
}
|
|
6808
6993
|
export interface RuleBuilderAction {
|
|
6809
|
-
type
|
|
6994
|
+
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';
|
|
6810
6995
|
ban_options?: BanOptions;
|
|
6996
|
+
call_options?: CallActionOptions;
|
|
6811
6997
|
flag_user_options?: FlagUserOptions;
|
|
6812
6998
|
}
|
|
6813
6999
|
export interface RuleBuilderCondition {
|
|
6814
7000
|
confidence?: number;
|
|
6815
7001
|
type?: string;
|
|
7002
|
+
call_custom_property_params?: CallCustomPropertyParameters;
|
|
7003
|
+
call_type_rule_params?: CallTypeRuleParameters;
|
|
7004
|
+
call_violation_count_params?: CallViolationCountParameters;
|
|
7005
|
+
closed_caption_rule_params?: ClosedCaptionRuleParameters;
|
|
6816
7006
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
6817
7007
|
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6818
7008
|
image_content_params?: ImageContentParameters;
|
|
6819
7009
|
image_rule_params?: ImageRuleParameters;
|
|
7010
|
+
keyframe_rule_params?: KeyframeRuleParameters;
|
|
6820
7011
|
text_content_params?: TextContentParameters;
|
|
6821
7012
|
text_rule_params?: TextRuleParameters;
|
|
6822
7013
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
@@ -6838,12 +7029,13 @@ export interface RuleBuilderConfig {
|
|
|
6838
7029
|
}
|
|
6839
7030
|
export interface RuleBuilderRule {
|
|
6840
7031
|
rule_type: string;
|
|
6841
|
-
action: RuleBuilderAction;
|
|
6842
7032
|
cooldown_period?: string;
|
|
6843
7033
|
id?: string;
|
|
6844
7034
|
logic?: string;
|
|
7035
|
+
action_sequences?: CallRuleActionSequence[];
|
|
6845
7036
|
conditions?: RuleBuilderCondition[];
|
|
6846
7037
|
groups?: RuleBuilderConditionGroup[];
|
|
7038
|
+
action?: RuleBuilderAction;
|
|
6847
7039
|
}
|
|
6848
7040
|
export interface S3Request {
|
|
6849
7041
|
s3_region: string;
|
|
@@ -7013,6 +7205,7 @@ export interface SearchResultMessage {
|
|
|
7013
7205
|
html: string;
|
|
7014
7206
|
id: string;
|
|
7015
7207
|
mentioned_channel: boolean;
|
|
7208
|
+
mentioned_here: boolean;
|
|
7016
7209
|
pinned: boolean;
|
|
7017
7210
|
reply_count: number;
|
|
7018
7211
|
shadowed: boolean;
|
|
@@ -7040,6 +7233,7 @@ export interface SearchResultMessage {
|
|
|
7040
7233
|
poll_id?: string;
|
|
7041
7234
|
quoted_message_id?: string;
|
|
7042
7235
|
show_in_channel?: boolean;
|
|
7236
|
+
mentioned_roles?: string[];
|
|
7043
7237
|
thread_participants?: UserResponse[];
|
|
7044
7238
|
channel?: ChannelResponse;
|
|
7045
7239
|
draft?: DraftResponse;
|
|
@@ -7054,6 +7248,10 @@ export interface SearchResultMessage {
|
|
|
7054
7248
|
reminder?: ReminderResponseData;
|
|
7055
7249
|
shared_location?: SharedLocationResponseData;
|
|
7056
7250
|
}
|
|
7251
|
+
export interface SearchUserGroupsResponse {
|
|
7252
|
+
duration: string;
|
|
7253
|
+
user_groups: UserGroupResponse[];
|
|
7254
|
+
}
|
|
7057
7255
|
export interface SearchWarning {
|
|
7058
7256
|
warning_code: number;
|
|
7059
7257
|
warning_description: string;
|
|
@@ -7409,6 +7607,25 @@ export interface TargetResolution {
|
|
|
7409
7607
|
height: number;
|
|
7410
7608
|
width: number;
|
|
7411
7609
|
}
|
|
7610
|
+
export interface TeamUsageStats {
|
|
7611
|
+
team: string;
|
|
7612
|
+
concurrent_connections: MetricStats;
|
|
7613
|
+
concurrent_users: MetricStats;
|
|
7614
|
+
image_moderations_daily: MetricStats;
|
|
7615
|
+
messages_daily: MetricStats;
|
|
7616
|
+
messages_last_24_hours: MetricStats;
|
|
7617
|
+
messages_last_30_days: MetricStats;
|
|
7618
|
+
messages_month_to_date: MetricStats;
|
|
7619
|
+
messages_total: MetricStats;
|
|
7620
|
+
translations_daily: MetricStats;
|
|
7621
|
+
users_daily: MetricStats;
|
|
7622
|
+
users_engaged_last_30_days: MetricStats;
|
|
7623
|
+
users_engaged_month_to_date: MetricStats;
|
|
7624
|
+
users_last_24_hours: MetricStats;
|
|
7625
|
+
users_last_30_days: MetricStats;
|
|
7626
|
+
users_month_to_date: MetricStats;
|
|
7627
|
+
users_total: MetricStats;
|
|
7628
|
+
}
|
|
7412
7629
|
export interface TextContentParameters {
|
|
7413
7630
|
contains_url?: boolean;
|
|
7414
7631
|
severity?: string;
|
|
@@ -7498,7 +7715,7 @@ export interface ThreadedCommentResponse {
|
|
|
7498
7715
|
reaction_count: number;
|
|
7499
7716
|
reply_count: number;
|
|
7500
7717
|
score: number;
|
|
7501
|
-
status:
|
|
7718
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
7502
7719
|
updated_at: Date;
|
|
7503
7720
|
upvote_count: number;
|
|
7504
7721
|
mentioned_users: UserResponse[];
|
|
@@ -7619,9 +7836,17 @@ export interface UnblockedUserEvent {
|
|
|
7619
7836
|
user: UserResponse;
|
|
7620
7837
|
type: string;
|
|
7621
7838
|
}
|
|
7839
|
+
export interface UndeleteMessageRequest {
|
|
7840
|
+
undeleted_by: string;
|
|
7841
|
+
}
|
|
7842
|
+
export interface UndeleteMessageResponse {
|
|
7843
|
+
duration: string;
|
|
7844
|
+
message: MessageResponse;
|
|
7845
|
+
}
|
|
7622
7846
|
export interface UnfollowBatchRequest {
|
|
7623
7847
|
follows: FollowPair[];
|
|
7624
7848
|
delete_notification_activity?: boolean;
|
|
7849
|
+
enrich_own_fields?: boolean;
|
|
7625
7850
|
}
|
|
7626
7851
|
export interface UnfollowBatchResponse {
|
|
7627
7852
|
duration: string;
|
|
@@ -7706,6 +7931,7 @@ export interface UpdateActivityPartialChangeRequest {
|
|
|
7706
7931
|
}
|
|
7707
7932
|
export interface UpdateActivityPartialRequest {
|
|
7708
7933
|
copy_custom_to_notification?: boolean;
|
|
7934
|
+
enrich_own_fields?: boolean;
|
|
7709
7935
|
handle_mention_notifications?: boolean;
|
|
7710
7936
|
run_activity_processors?: boolean;
|
|
7711
7937
|
user_id?: string;
|
|
@@ -7719,6 +7945,7 @@ export interface UpdateActivityPartialResponse {
|
|
|
7719
7945
|
}
|
|
7720
7946
|
export interface UpdateActivityRequest {
|
|
7721
7947
|
copy_custom_to_notification?: boolean;
|
|
7948
|
+
enrich_own_fields?: boolean;
|
|
7722
7949
|
expires_at?: Date;
|
|
7723
7950
|
handle_mention_notifications?: boolean;
|
|
7724
7951
|
poll_id?: string;
|
|
@@ -7760,6 +7987,7 @@ export interface UpdateAppRequest {
|
|
|
7760
7987
|
image_moderation_enabled?: boolean;
|
|
7761
7988
|
max_aggregated_activities_length?: number;
|
|
7762
7989
|
migrate_permissions_to_v2?: boolean;
|
|
7990
|
+
moderation_analytics_enabled?: boolean;
|
|
7763
7991
|
moderation_enabled?: boolean;
|
|
7764
7992
|
moderation_webhook_url?: string;
|
|
7765
7993
|
multi_tenant_enabled?: boolean;
|
|
@@ -8058,6 +8286,7 @@ export interface UpdateFeedMembersResponse {
|
|
|
8058
8286
|
export interface UpdateFeedRequest {
|
|
8059
8287
|
created_by_id?: string;
|
|
8060
8288
|
description?: string;
|
|
8289
|
+
enrich_own_fields?: boolean;
|
|
8061
8290
|
name?: string;
|
|
8062
8291
|
filter_tags?: string[];
|
|
8063
8292
|
custom?: Record<string, any>;
|
|
@@ -8087,6 +8316,7 @@ export interface UpdateFollowRequest {
|
|
|
8087
8316
|
target: string;
|
|
8088
8317
|
copy_custom_to_notification?: boolean;
|
|
8089
8318
|
create_notification_activity?: boolean;
|
|
8319
|
+
enrich_own_fields?: boolean;
|
|
8090
8320
|
follower_role?: string;
|
|
8091
8321
|
push_preference?: 'all' | 'none';
|
|
8092
8322
|
skip_push?: boolean;
|
|
@@ -8215,6 +8445,15 @@ export interface UpdateThreadPartialResponse {
|
|
|
8215
8445
|
duration: string;
|
|
8216
8446
|
thread: ThreadResponse;
|
|
8217
8447
|
}
|
|
8448
|
+
export interface UpdateUserGroupRequest {
|
|
8449
|
+
description?: string;
|
|
8450
|
+
name?: string;
|
|
8451
|
+
team_id?: string;
|
|
8452
|
+
}
|
|
8453
|
+
export interface UpdateUserGroupResponse {
|
|
8454
|
+
duration: string;
|
|
8455
|
+
user_group?: UserGroupResponse;
|
|
8456
|
+
}
|
|
8218
8457
|
export interface UpdateUserPartialRequest {
|
|
8219
8458
|
id: string;
|
|
8220
8459
|
unset?: string[];
|
|
@@ -8270,6 +8509,7 @@ export interface UploadChannelResponse {
|
|
|
8270
8509
|
}
|
|
8271
8510
|
export interface UpsertActivitiesRequest {
|
|
8272
8511
|
activities: ActivityRequest[];
|
|
8512
|
+
enrich_own_fields?: boolean;
|
|
8273
8513
|
}
|
|
8274
8514
|
export interface UpsertActivitiesResponse {
|
|
8275
8515
|
duration: string;
|
|
@@ -8311,15 +8551,16 @@ export interface UpsertConfigResponse {
|
|
|
8311
8551
|
export interface UpsertModerationRuleRequest {
|
|
8312
8552
|
name: string;
|
|
8313
8553
|
rule_type: string;
|
|
8314
|
-
action: RuleBuilderAction;
|
|
8315
8554
|
cooldown_period?: string;
|
|
8316
8555
|
description?: string;
|
|
8317
8556
|
enabled?: boolean;
|
|
8318
8557
|
logic?: string;
|
|
8319
8558
|
team?: string;
|
|
8559
|
+
action_sequences?: CallRuleActionSequence[];
|
|
8320
8560
|
conditions?: RuleBuilderCondition[];
|
|
8321
8561
|
config_keys?: string[];
|
|
8322
8562
|
groups?: RuleBuilderConditionGroup[];
|
|
8563
|
+
action?: RuleBuilderAction;
|
|
8323
8564
|
}
|
|
8324
8565
|
export interface UpsertModerationRuleResponse {
|
|
8325
8566
|
duration: string;
|
|
@@ -8445,6 +8686,76 @@ export interface UserFlaggedEvent {
|
|
|
8445
8686
|
custom?: Record<string, any>;
|
|
8446
8687
|
target_user?: UserResponseCommonFields;
|
|
8447
8688
|
}
|
|
8689
|
+
export interface UserGroup {
|
|
8690
|
+
app_pk: number;
|
|
8691
|
+
created_at: Date;
|
|
8692
|
+
id: string;
|
|
8693
|
+
name: string;
|
|
8694
|
+
updated_at: Date;
|
|
8695
|
+
created_by?: string;
|
|
8696
|
+
description?: string;
|
|
8697
|
+
team_id?: string;
|
|
8698
|
+
members?: UserGroupMember[];
|
|
8699
|
+
}
|
|
8700
|
+
export interface UserGroupCreatedEvent {
|
|
8701
|
+
created_at: Date;
|
|
8702
|
+
custom: Record<string, any>;
|
|
8703
|
+
type: string;
|
|
8704
|
+
received_at?: Date;
|
|
8705
|
+
user?: UserResponseCommonFields;
|
|
8706
|
+
user_group?: UserGroup;
|
|
8707
|
+
}
|
|
8708
|
+
export interface UserGroupDeletedEvent {
|
|
8709
|
+
created_at: Date;
|
|
8710
|
+
custom: Record<string, any>;
|
|
8711
|
+
type: string;
|
|
8712
|
+
received_at?: Date;
|
|
8713
|
+
user?: UserResponseCommonFields;
|
|
8714
|
+
user_group?: UserGroup;
|
|
8715
|
+
}
|
|
8716
|
+
export interface UserGroupMember {
|
|
8717
|
+
app_pk: number;
|
|
8718
|
+
created_at: Date;
|
|
8719
|
+
group_id: string;
|
|
8720
|
+
is_admin: boolean;
|
|
8721
|
+
user_id: string;
|
|
8722
|
+
}
|
|
8723
|
+
export interface UserGroupMemberAddedEvent {
|
|
8724
|
+
created_at: Date;
|
|
8725
|
+
members: string[];
|
|
8726
|
+
custom: Record<string, any>;
|
|
8727
|
+
type: string;
|
|
8728
|
+
received_at?: Date;
|
|
8729
|
+
user?: UserResponseCommonFields;
|
|
8730
|
+
user_group?: UserGroup;
|
|
8731
|
+
}
|
|
8732
|
+
export interface UserGroupMemberRemovedEvent {
|
|
8733
|
+
created_at: Date;
|
|
8734
|
+
members: string[];
|
|
8735
|
+
custom: Record<string, any>;
|
|
8736
|
+
type: string;
|
|
8737
|
+
received_at?: Date;
|
|
8738
|
+
user?: UserResponseCommonFields;
|
|
8739
|
+
user_group?: UserGroup;
|
|
8740
|
+
}
|
|
8741
|
+
export interface UserGroupResponse {
|
|
8742
|
+
created_at: Date;
|
|
8743
|
+
id: string;
|
|
8744
|
+
name: string;
|
|
8745
|
+
updated_at: Date;
|
|
8746
|
+
created_by?: string;
|
|
8747
|
+
description?: string;
|
|
8748
|
+
team_id?: string;
|
|
8749
|
+
members?: UserGroupMember[];
|
|
8750
|
+
}
|
|
8751
|
+
export interface UserGroupUpdatedEvent {
|
|
8752
|
+
created_at: Date;
|
|
8753
|
+
custom: Record<string, any>;
|
|
8754
|
+
type: string;
|
|
8755
|
+
received_at?: Date;
|
|
8756
|
+
user?: UserResponseCommonFields;
|
|
8757
|
+
user_group?: UserGroup;
|
|
8758
|
+
}
|
|
8448
8759
|
export interface UserIdenticalContentCountParameters {
|
|
8449
8760
|
threshold?: number;
|
|
8450
8761
|
time_window?: string;
|
|
@@ -8699,39 +9010,7 @@ export interface VoteData {
|
|
|
8699
9010
|
answer_text?: string;
|
|
8700
9011
|
option_id?: string;
|
|
8701
9012
|
}
|
|
8702
|
-
export
|
|
8703
|
-
address: string;
|
|
8704
|
-
}
|
|
8705
|
-
export interface WSEvent {
|
|
8706
|
-
created_at: Date;
|
|
8707
|
-
type: string;
|
|
8708
|
-
custom: Record<string, any>;
|
|
8709
|
-
automoderation?: boolean;
|
|
8710
|
-
channel_id?: string;
|
|
8711
|
-
channel_last_message_at?: Date;
|
|
8712
|
-
channel_type?: string;
|
|
8713
|
-
cid?: string;
|
|
8714
|
-
connection_id?: string;
|
|
8715
|
-
parent_id?: string;
|
|
8716
|
-
reason?: string;
|
|
8717
|
-
team?: string;
|
|
8718
|
-
thread_id?: string;
|
|
8719
|
-
user_id?: string;
|
|
8720
|
-
watcher_count?: number;
|
|
8721
|
-
automoderation_scores?: ModerationResponse;
|
|
8722
|
-
channel?: ChannelResponse;
|
|
8723
|
-
created_by?: UserResponse;
|
|
8724
|
-
me?: OwnUserResponse;
|
|
8725
|
-
member?: ChannelMemberResponse;
|
|
8726
|
-
message?: MessageResponse;
|
|
8727
|
-
message_update?: MessageUpdate;
|
|
8728
|
-
poll?: PollResponseData;
|
|
8729
|
-
poll_vote?: PollVoteResponseData;
|
|
8730
|
-
reaction?: ReactionResponse;
|
|
8731
|
-
thread?: ThreadResponse;
|
|
8732
|
-
user?: UserResponse;
|
|
8733
|
-
}
|
|
8734
|
-
export type WebhookEvent = ({
|
|
9013
|
+
export type WHEvent = ({
|
|
8735
9014
|
type: '*';
|
|
8736
9015
|
} & CustomEvent) | ({
|
|
8737
9016
|
type: 'appeal.accepted';
|
|
@@ -8950,6 +9229,8 @@ export type WebhookEvent = ({
|
|
|
8950
9229
|
} & FeedGroupChangedEvent) | ({
|
|
8951
9230
|
type: 'feeds.feed_group.deleted';
|
|
8952
9231
|
} & FeedGroupDeletedEvent) | ({
|
|
9232
|
+
type: 'feeds.feed_group.restored';
|
|
9233
|
+
} & FeedGroupRestoredEvent) | ({
|
|
8953
9234
|
type: 'feeds.feed_member.added';
|
|
8954
9235
|
} & FeedMemberAddedEvent) | ({
|
|
8955
9236
|
type: 'feeds.feed_member.removed';
|
|
@@ -9004,6 +9285,8 @@ export type WebhookEvent = ({
|
|
|
9004
9285
|
} & ModerationMarkReviewedEvent) | ({
|
|
9005
9286
|
type: 'moderation_check.completed';
|
|
9006
9287
|
} & ModerationCheckCompletedEvent) | ({
|
|
9288
|
+
type: 'moderation_rule.triggered';
|
|
9289
|
+
} & ModerationRulesTriggeredEvent) | ({
|
|
9007
9290
|
type: 'notification.mark_unread';
|
|
9008
9291
|
} & NotificationMarkUnreadEvent) | ({
|
|
9009
9292
|
type: 'notification.reminder_due';
|
|
@@ -9049,7 +9332,49 @@ export type WebhookEvent = ({
|
|
|
9049
9332
|
type: 'user.unread_message_reminder';
|
|
9050
9333
|
} & UserUnreadReminderEvent) | ({
|
|
9051
9334
|
type: 'user.updated';
|
|
9052
|
-
} & UserUpdatedEvent)
|
|
9335
|
+
} & UserUpdatedEvent) | ({
|
|
9336
|
+
type: 'user_group.created';
|
|
9337
|
+
} & UserGroupCreatedEvent) | ({
|
|
9338
|
+
type: 'user_group.deleted';
|
|
9339
|
+
} & UserGroupDeletedEvent) | ({
|
|
9340
|
+
type: 'user_group.member_added';
|
|
9341
|
+
} & UserGroupMemberAddedEvent) | ({
|
|
9342
|
+
type: 'user_group.member_removed';
|
|
9343
|
+
} & UserGroupMemberRemovedEvent) | ({
|
|
9344
|
+
type: 'user_group.updated';
|
|
9345
|
+
} & UserGroupUpdatedEvent);
|
|
9346
|
+
export interface WHIPIngress {
|
|
9347
|
+
address: string;
|
|
9348
|
+
}
|
|
9349
|
+
export interface WSEvent {
|
|
9350
|
+
created_at: Date;
|
|
9351
|
+
type: string;
|
|
9352
|
+
custom: Record<string, any>;
|
|
9353
|
+
automoderation?: boolean;
|
|
9354
|
+
channel_id?: string;
|
|
9355
|
+
channel_last_message_at?: Date;
|
|
9356
|
+
channel_type?: string;
|
|
9357
|
+
cid?: string;
|
|
9358
|
+
connection_id?: string;
|
|
9359
|
+
parent_id?: string;
|
|
9360
|
+
reason?: string;
|
|
9361
|
+
team?: string;
|
|
9362
|
+
thread_id?: string;
|
|
9363
|
+
user_id?: string;
|
|
9364
|
+
watcher_count?: number;
|
|
9365
|
+
automoderation_scores?: ModerationResponse;
|
|
9366
|
+
channel?: ChannelResponse;
|
|
9367
|
+
created_by?: UserResponse;
|
|
9368
|
+
me?: OwnUserResponse;
|
|
9369
|
+
member?: ChannelMemberResponse;
|
|
9370
|
+
message?: MessageResponse;
|
|
9371
|
+
message_update?: MessageUpdate;
|
|
9372
|
+
poll?: PollResponseData;
|
|
9373
|
+
poll_vote?: PollVoteResponseData;
|
|
9374
|
+
reaction?: ReactionResponse;
|
|
9375
|
+
thread?: ThreadResponse;
|
|
9376
|
+
user?: UserResponse;
|
|
9377
|
+
}
|
|
9053
9378
|
export interface WrappedUnreadCountsResponse {
|
|
9054
9379
|
duration: string;
|
|
9055
9380
|
total_unread_count: number;
|