@stream-io/node-sdk 0.6.1 → 0.6.3
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 +145 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +145 -23
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +1 -0
- package/dist/src/gen/models/index.d.ts +286 -103
- package/dist/src/gen/moderation/ModerationApi.d.ts +5 -1
- package/dist/src/gen/video/CallApi.d.ts +3 -1
- package/dist/src/gen/video/VideoApi.d.ts +9 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +3 -0
- package/src/gen/common/CommonApi.ts +2 -0
- package/src/gen/feeds/FeedsApi.ts +9 -0
- package/src/gen/model-decoders/decoders.ts +55 -32
- package/src/gen/models/index.ts +485 -147
- package/src/gen/moderation/ModerationApi.ts +100 -1
- package/src/gen/video/CallApi.ts +20 -0
- package/src/gen/video/VideoApi.ts +69 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface AIImageConfig {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
ocr_rules: OCRRule[];
|
|
4
|
-
rules: AWSRekognitionRule[];
|
|
5
2
|
async?: boolean;
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
ocr_rules?: OCRRule[];
|
|
5
|
+
rules?: AWSRekognitionRule[];
|
|
6
6
|
}
|
|
7
7
|
export interface AITextConfig {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
profile: string;
|
|
10
|
-
rules: BodyguardRule[];
|
|
11
|
-
severity_rules: BodyguardSeverityRule[];
|
|
12
8
|
async?: boolean;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
profile?: string;
|
|
11
|
+
rules?: BodyguardRule[];
|
|
12
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
13
13
|
}
|
|
14
14
|
export interface AIVideoConfig {
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
rules: AWSRekognitionRule[];
|
|
17
15
|
async?: boolean;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
rules?: AWSRekognitionRule[];
|
|
18
18
|
}
|
|
19
19
|
export interface APIError {
|
|
20
20
|
code: number;
|
|
@@ -113,13 +113,17 @@ export interface ActionLogResponse {
|
|
|
113
113
|
user?: UserResponse;
|
|
114
114
|
}
|
|
115
115
|
export interface ActionSequence {
|
|
116
|
-
action
|
|
117
|
-
blur
|
|
118
|
-
cooldown_period
|
|
119
|
-
threshold
|
|
120
|
-
time_window
|
|
121
|
-
warning
|
|
122
|
-
warning_text
|
|
116
|
+
action?: string;
|
|
117
|
+
blur?: boolean;
|
|
118
|
+
cooldown_period?: number;
|
|
119
|
+
threshold?: number;
|
|
120
|
+
time_window?: number;
|
|
121
|
+
warning?: boolean;
|
|
122
|
+
warning_text?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface ActiveCallsBitrateStats {
|
|
125
|
+
p10: number;
|
|
126
|
+
p50: number;
|
|
123
127
|
}
|
|
124
128
|
export interface ActiveCallsFPSStats {
|
|
125
129
|
p05: number;
|
|
@@ -391,6 +395,7 @@ export interface AddBookmarkResponse {
|
|
|
391
395
|
export interface AddCommentReactionRequest {
|
|
392
396
|
type: string;
|
|
393
397
|
create_notification_activity?: boolean;
|
|
398
|
+
skip_push?: boolean;
|
|
394
399
|
user_id?: string;
|
|
395
400
|
custom?: Record<string, any>;
|
|
396
401
|
user?: UserRequest;
|
|
@@ -406,6 +411,7 @@ export interface AddCommentRequest {
|
|
|
406
411
|
object_type: string;
|
|
407
412
|
create_notification_activity?: boolean;
|
|
408
413
|
parent_id?: string;
|
|
414
|
+
skip_push?: boolean;
|
|
409
415
|
user_id?: string;
|
|
410
416
|
attachments?: Attachment[];
|
|
411
417
|
mentioned_user_ids?: string[];
|
|
@@ -430,6 +436,7 @@ export interface AddFolderRequest {
|
|
|
430
436
|
export interface AddReactionRequest {
|
|
431
437
|
type: string;
|
|
432
438
|
create_notification_activity?: boolean;
|
|
439
|
+
skip_push?: boolean;
|
|
433
440
|
user_id?: string;
|
|
434
441
|
custom?: Record<string, any>;
|
|
435
442
|
user?: UserRequest;
|
|
@@ -468,6 +475,7 @@ export interface AppResponseFields {
|
|
|
468
475
|
image_moderation_enabled: boolean;
|
|
469
476
|
moderation_bulk_submit_action_enabled: boolean;
|
|
470
477
|
moderation_enabled: boolean;
|
|
478
|
+
moderation_llm_configurability_enabled: boolean;
|
|
471
479
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
472
480
|
moderation_webhook_url: string;
|
|
473
481
|
multi_tenant_enabled: boolean;
|
|
@@ -621,9 +629,9 @@ export interface AutomodDetails {
|
|
|
621
629
|
result?: MessageModerationResult;
|
|
622
630
|
}
|
|
623
631
|
export interface AutomodPlatformCircumventionConfig {
|
|
624
|
-
enabled: boolean;
|
|
625
|
-
rules: AutomodRule[];
|
|
626
632
|
async?: boolean;
|
|
633
|
+
enabled?: boolean;
|
|
634
|
+
rules?: AutomodRule[];
|
|
627
635
|
}
|
|
628
636
|
export interface AutomodRule {
|
|
629
637
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -631,9 +639,9 @@ export interface AutomodRule {
|
|
|
631
639
|
threshold: number;
|
|
632
640
|
}
|
|
633
641
|
export interface AutomodSemanticFiltersConfig {
|
|
634
|
-
enabled: boolean;
|
|
635
|
-
rules: AutomodSemanticFiltersRule[];
|
|
636
642
|
async?: boolean;
|
|
643
|
+
enabled?: boolean;
|
|
644
|
+
rules?: AutomodSemanticFiltersRule[];
|
|
637
645
|
}
|
|
638
646
|
export interface AutomodSemanticFiltersRule {
|
|
639
647
|
action: 'flag' | 'shadow' | 'remove';
|
|
@@ -641,9 +649,9 @@ export interface AutomodSemanticFiltersRule {
|
|
|
641
649
|
threshold: number;
|
|
642
650
|
}
|
|
643
651
|
export interface AutomodToxicityConfig {
|
|
644
|
-
enabled: boolean;
|
|
645
|
-
rules: AutomodRule[];
|
|
646
652
|
async?: boolean;
|
|
653
|
+
enabled?: boolean;
|
|
654
|
+
rules?: AutomodRule[];
|
|
647
655
|
}
|
|
648
656
|
export interface AzureRequest {
|
|
649
657
|
abs_account_name: string;
|
|
@@ -681,10 +689,10 @@ export interface BanActionRequest {
|
|
|
681
689
|
timeout?: number;
|
|
682
690
|
}
|
|
683
691
|
export interface BanOptions {
|
|
684
|
-
duration
|
|
685
|
-
ip_ban
|
|
686
|
-
reason
|
|
687
|
-
shadow_ban
|
|
692
|
+
duration?: number;
|
|
693
|
+
ip_ban?: boolean;
|
|
694
|
+
reason?: string;
|
|
695
|
+
shadow_ban?: boolean;
|
|
688
696
|
}
|
|
689
697
|
export interface BanRequest {
|
|
690
698
|
target_user_id: string;
|
|
@@ -707,12 +715,12 @@ export interface BanResponse {
|
|
|
707
715
|
user?: UserResponse;
|
|
708
716
|
}
|
|
709
717
|
export interface BlockContentOptions {
|
|
710
|
-
reason
|
|
718
|
+
reason?: string;
|
|
711
719
|
}
|
|
712
720
|
export interface BlockListConfig {
|
|
713
|
-
enabled: boolean;
|
|
714
|
-
rules: BlockListRule[];
|
|
715
721
|
async?: boolean;
|
|
722
|
+
enabled?: boolean;
|
|
723
|
+
rules?: BlockListRule[];
|
|
716
724
|
}
|
|
717
725
|
export interface BlockListOptions {
|
|
718
726
|
behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -729,8 +737,8 @@ export interface BlockListResponse {
|
|
|
729
737
|
}
|
|
730
738
|
export interface BlockListRule {
|
|
731
739
|
action: 'flag' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
732
|
-
name
|
|
733
|
-
team
|
|
740
|
+
name?: string;
|
|
741
|
+
team?: string;
|
|
734
742
|
}
|
|
735
743
|
export interface BlockUserRequest {
|
|
736
744
|
user_id: string;
|
|
@@ -763,10 +771,13 @@ export interface BlockedUserResponse {
|
|
|
763
771
|
blocked_user: UserResponse;
|
|
764
772
|
user: UserResponse;
|
|
765
773
|
}
|
|
774
|
+
export interface BodyguardImageAnalysisConfig {
|
|
775
|
+
rules?: BodyguardRule[];
|
|
776
|
+
}
|
|
766
777
|
export interface BodyguardRule {
|
|
767
|
-
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
768
778
|
label: string;
|
|
769
|
-
|
|
779
|
+
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
780
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
770
781
|
}
|
|
771
782
|
export interface BodyguardSeverityRule {
|
|
772
783
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -899,10 +910,14 @@ export interface CallAcceptedEvent {
|
|
|
899
910
|
}
|
|
900
911
|
export interface CallClosedCaption {
|
|
901
912
|
end_time: Date;
|
|
913
|
+
id: string;
|
|
914
|
+
language: string;
|
|
902
915
|
speaker_id: string;
|
|
903
916
|
start_time: Date;
|
|
904
917
|
text: string;
|
|
918
|
+
translated: boolean;
|
|
905
919
|
user: UserResponse;
|
|
920
|
+
service?: string;
|
|
906
921
|
}
|
|
907
922
|
export interface CallClosedCaptionsFailedEvent {
|
|
908
923
|
call_cid: string;
|
|
@@ -1547,6 +1562,8 @@ export interface Channel {
|
|
|
1547
1562
|
last_campaigns?: string;
|
|
1548
1563
|
last_message_at?: Date;
|
|
1549
1564
|
member_count?: number;
|
|
1565
|
+
message_count?: number;
|
|
1566
|
+
message_count_updated_at?: Date;
|
|
1550
1567
|
team?: string;
|
|
1551
1568
|
active_live_locations?: SharedLocation[];
|
|
1552
1569
|
invites?: ChannelMember[];
|
|
@@ -1560,6 +1577,7 @@ export interface ChannelConfig {
|
|
|
1560
1577
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1561
1578
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
1562
1579
|
connect_events: boolean;
|
|
1580
|
+
count_messages: boolean;
|
|
1563
1581
|
created_at: Date;
|
|
1564
1582
|
custom_events: boolean;
|
|
1565
1583
|
mark_messages_pending: boolean;
|
|
@@ -1594,6 +1612,7 @@ export interface ChannelConfigWithInfo {
|
|
|
1594
1612
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1595
1613
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
1596
1614
|
connect_events: boolean;
|
|
1615
|
+
count_messages: boolean;
|
|
1597
1616
|
created_at: Date;
|
|
1598
1617
|
custom_events: boolean;
|
|
1599
1618
|
mark_messages_pending: boolean;
|
|
@@ -1706,28 +1725,11 @@ export interface ChannelMember {
|
|
|
1706
1725
|
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
1707
1726
|
status?: string;
|
|
1708
1727
|
user_id?: string;
|
|
1728
|
+
deleted_messages?: string[];
|
|
1709
1729
|
user?: UserResponse;
|
|
1710
1730
|
}
|
|
1711
1731
|
export interface ChannelMemberResponse {
|
|
1712
|
-
banned: boolean;
|
|
1713
1732
|
channel_role: string;
|
|
1714
|
-
created_at: Date;
|
|
1715
|
-
notifications_muted: boolean;
|
|
1716
|
-
shadow_banned: boolean;
|
|
1717
|
-
updated_at: Date;
|
|
1718
|
-
custom: Record<string, any>;
|
|
1719
|
-
archived_at?: Date;
|
|
1720
|
-
ban_expires?: Date;
|
|
1721
|
-
deleted_at?: Date;
|
|
1722
|
-
invite_accepted_at?: Date;
|
|
1723
|
-
invite_rejected_at?: Date;
|
|
1724
|
-
invited?: boolean;
|
|
1725
|
-
is_moderator?: boolean;
|
|
1726
|
-
pinned_at?: Date;
|
|
1727
|
-
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
1728
|
-
status?: string;
|
|
1729
|
-
user_id?: string;
|
|
1730
|
-
user?: UserResponse;
|
|
1731
1733
|
}
|
|
1732
1734
|
export interface ChannelMessages {
|
|
1733
1735
|
messages: Message[];
|
|
@@ -1805,6 +1807,7 @@ export interface ChannelResponse {
|
|
|
1805
1807
|
hide_messages_before?: Date;
|
|
1806
1808
|
last_message_at?: Date;
|
|
1807
1809
|
member_count?: number;
|
|
1810
|
+
message_count?: number;
|
|
1808
1811
|
mute_expires_at?: Date;
|
|
1809
1812
|
muted?: boolean;
|
|
1810
1813
|
team?: string;
|
|
@@ -1825,6 +1828,7 @@ export interface ChannelStateResponse {
|
|
|
1825
1828
|
hide_messages_before?: Date;
|
|
1826
1829
|
watcher_count?: number;
|
|
1827
1830
|
active_live_locations?: SharedLocationResponseData[];
|
|
1831
|
+
deleted_messages?: string[];
|
|
1828
1832
|
pending_messages?: PendingMessageResponse[];
|
|
1829
1833
|
read?: ReadStateResponse[];
|
|
1830
1834
|
watchers?: UserResponse[];
|
|
@@ -1842,6 +1846,7 @@ export interface ChannelStateResponseFields {
|
|
|
1842
1846
|
hide_messages_before?: Date;
|
|
1843
1847
|
watcher_count?: number;
|
|
1844
1848
|
active_live_locations?: SharedLocationResponseData[];
|
|
1849
|
+
deleted_messages?: string[];
|
|
1845
1850
|
pending_messages?: PendingMessageResponse[];
|
|
1846
1851
|
read?: ReadStateResponse[];
|
|
1847
1852
|
watchers?: UserResponse[];
|
|
@@ -1863,6 +1868,7 @@ export interface ChannelTypeConfig {
|
|
|
1863
1868
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1864
1869
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
1865
1870
|
connect_events: boolean;
|
|
1871
|
+
count_messages: boolean;
|
|
1866
1872
|
created_at: Date;
|
|
1867
1873
|
custom_events: boolean;
|
|
1868
1874
|
mark_messages_pending: boolean;
|
|
@@ -1956,13 +1962,14 @@ export interface CheckPushResponse {
|
|
|
1956
1962
|
rendered_message?: Record<string, string>;
|
|
1957
1963
|
}
|
|
1958
1964
|
export interface CheckRequest {
|
|
1959
|
-
config_key: string;
|
|
1960
1965
|
entity_creator_id: string;
|
|
1961
1966
|
entity_id: string;
|
|
1962
1967
|
entity_type: string;
|
|
1968
|
+
config_key?: string;
|
|
1963
1969
|
config_team?: string;
|
|
1964
1970
|
test_mode?: boolean;
|
|
1965
1971
|
user_id?: string;
|
|
1972
|
+
config?: ModerationConfig;
|
|
1966
1973
|
moderation_payload?: ModerationPayload;
|
|
1967
1974
|
options?: Record<string, any>;
|
|
1968
1975
|
user?: UserRequest;
|
|
@@ -2029,6 +2036,7 @@ export interface Command {
|
|
|
2029
2036
|
export interface CommentAddedEvent {
|
|
2030
2037
|
created_at: Date;
|
|
2031
2038
|
fid: string;
|
|
2039
|
+
activity: ActivityResponse;
|
|
2032
2040
|
comment: CommentResponse;
|
|
2033
2041
|
custom: Record<string, any>;
|
|
2034
2042
|
type: string;
|
|
@@ -2049,6 +2057,7 @@ export interface CommentDeletedEvent {
|
|
|
2049
2057
|
export interface CommentReactionAddedEvent {
|
|
2050
2058
|
created_at: Date;
|
|
2051
2059
|
fid: string;
|
|
2060
|
+
activity: ActivityResponse;
|
|
2052
2061
|
comment: CommentResponse;
|
|
2053
2062
|
custom: Record<string, any>;
|
|
2054
2063
|
reaction: FeedsReactionResponse;
|
|
@@ -2070,6 +2079,7 @@ export interface CommentReactionDeletedEvent {
|
|
|
2070
2079
|
export interface CommentReactionUpdatedEvent {
|
|
2071
2080
|
created_at: Date;
|
|
2072
2081
|
fid: string;
|
|
2082
|
+
activity: ActivityResponse;
|
|
2073
2083
|
comment: CommentResponse;
|
|
2074
2084
|
custom: Record<string, any>;
|
|
2075
2085
|
reaction: FeedsReactionResponse;
|
|
@@ -2125,6 +2135,7 @@ export interface ConfigOverrides {
|
|
|
2125
2135
|
grants: Record<string, string[]>;
|
|
2126
2136
|
blocklist?: string;
|
|
2127
2137
|
blocklist_behavior?: 'flag' | 'block';
|
|
2138
|
+
count_messages?: boolean;
|
|
2128
2139
|
max_message_length?: number;
|
|
2129
2140
|
quotes?: boolean;
|
|
2130
2141
|
reactions?: boolean;
|
|
@@ -2148,13 +2159,13 @@ export interface ConfigResponse {
|
|
|
2148
2159
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
2149
2160
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
2150
2161
|
block_list_config?: BlockListConfig;
|
|
2151
|
-
|
|
2162
|
+
llm_config?: LLMConfig;
|
|
2152
2163
|
velocity_filter_config?: VelocityFilterConfig;
|
|
2153
2164
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
2154
2165
|
}
|
|
2155
2166
|
export interface ContentCountRuleParameters {
|
|
2156
|
-
threshold
|
|
2157
|
-
time_window
|
|
2167
|
+
threshold?: number;
|
|
2168
|
+
time_window?: string;
|
|
2158
2169
|
}
|
|
2159
2170
|
export interface CountByMinuteResponse {
|
|
2160
2171
|
count: number;
|
|
@@ -2222,6 +2233,7 @@ export interface CreateChannelTypeResponse {
|
|
|
2222
2233
|
automod: 'disabled' | 'simple' | 'AI';
|
|
2223
2234
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
2224
2235
|
connect_events: boolean;
|
|
2236
|
+
count_messages: boolean;
|
|
2225
2237
|
created_at: Date;
|
|
2226
2238
|
custom_events: boolean;
|
|
2227
2239
|
duration: string;
|
|
@@ -2293,6 +2305,7 @@ export interface CreateFeedGroupRequest {
|
|
|
2293
2305
|
aggregation?: AggregationConfig;
|
|
2294
2306
|
custom?: Record<string, any>;
|
|
2295
2307
|
notification?: NotificationConfig;
|
|
2308
|
+
push_notification?: PushNotificationConfig;
|
|
2296
2309
|
ranking?: RankingConfig;
|
|
2297
2310
|
}
|
|
2298
2311
|
export interface CreateFeedGroupResponse {
|
|
@@ -2570,6 +2583,9 @@ export interface DeleteMessageResponse {
|
|
|
2570
2583
|
export interface DeleteModerationConfigResponse {
|
|
2571
2584
|
duration: string;
|
|
2572
2585
|
}
|
|
2586
|
+
export interface DeleteModerationRuleResponse {
|
|
2587
|
+
duration: string;
|
|
2588
|
+
}
|
|
2573
2589
|
export interface DeleteModerationTemplateResponse {
|
|
2574
2590
|
duration: string;
|
|
2575
2591
|
}
|
|
@@ -2801,6 +2817,7 @@ export interface EventHook {
|
|
|
2801
2817
|
enabled?: boolean;
|
|
2802
2818
|
hook_type?: string;
|
|
2803
2819
|
id?: string;
|
|
2820
|
+
product?: string;
|
|
2804
2821
|
sns_auth_type?: string;
|
|
2805
2822
|
sns_key?: string;
|
|
2806
2823
|
sns_region?: string;
|
|
@@ -2924,6 +2941,7 @@ export interface FeedGroup {
|
|
|
2924
2941
|
last_feed_get_at?: Date;
|
|
2925
2942
|
aggregation?: AggregationConfig;
|
|
2926
2943
|
notification?: NotificationConfig;
|
|
2944
|
+
push_notification?: PushNotificationConfig;
|
|
2927
2945
|
ranking?: RankingConfig;
|
|
2928
2946
|
stories?: StoriesConfig;
|
|
2929
2947
|
}
|
|
@@ -2956,6 +2974,7 @@ export interface FeedGroupResponse {
|
|
|
2956
2974
|
aggregation?: AggregationConfig;
|
|
2957
2975
|
custom?: Record<string, any>;
|
|
2958
2976
|
notification?: NotificationConfig;
|
|
2977
|
+
push_notification?: PushNotificationConfig;
|
|
2959
2978
|
ranking?: RankingConfig;
|
|
2960
2979
|
stories?: StoriesConfig;
|
|
2961
2980
|
}
|
|
@@ -3096,6 +3115,18 @@ export interface FeedViewResponse {
|
|
|
3096
3115
|
aggregation?: AggregationConfig;
|
|
3097
3116
|
ranking?: RankingConfig;
|
|
3098
3117
|
}
|
|
3118
|
+
export interface FeedsEventPreferences {
|
|
3119
|
+
comments?: string;
|
|
3120
|
+
mentions?: string;
|
|
3121
|
+
new_followers?: string;
|
|
3122
|
+
reactions?: string;
|
|
3123
|
+
}
|
|
3124
|
+
export interface FeedsEventPreferencesInput {
|
|
3125
|
+
comments?: 'all' | 'none';
|
|
3126
|
+
mentions?: 'all' | 'none';
|
|
3127
|
+
new_followers?: 'all' | 'none';
|
|
3128
|
+
reactions?: 'all' | 'none';
|
|
3129
|
+
}
|
|
3099
3130
|
export interface FeedsModerationTemplateConfig {
|
|
3100
3131
|
config_key: string;
|
|
3101
3132
|
data_types: Record<string, string>;
|
|
@@ -3165,7 +3196,7 @@ export interface Flag {
|
|
|
3165
3196
|
user?: User;
|
|
3166
3197
|
}
|
|
3167
3198
|
export interface FlagContentOptions {
|
|
3168
|
-
reason
|
|
3199
|
+
reason?: string;
|
|
3169
3200
|
}
|
|
3170
3201
|
export interface FlagDetails {
|
|
3171
3202
|
original_text: string;
|
|
@@ -3207,7 +3238,7 @@ export interface FlagUpdatedEvent {
|
|
|
3207
3238
|
user?: UserResponse;
|
|
3208
3239
|
}
|
|
3209
3240
|
export interface FlagUserOptions {
|
|
3210
|
-
reason
|
|
3241
|
+
reason?: string;
|
|
3211
3242
|
}
|
|
3212
3243
|
export interface FollowBatchRequest {
|
|
3213
3244
|
follows: FollowRequest[];
|
|
@@ -3243,6 +3274,7 @@ export interface FollowRequest {
|
|
|
3243
3274
|
target: string;
|
|
3244
3275
|
create_notification_activity?: boolean;
|
|
3245
3276
|
push_preference?: 'all' | 'none';
|
|
3277
|
+
skip_push?: boolean;
|
|
3246
3278
|
custom?: Record<string, any>;
|
|
3247
3279
|
}
|
|
3248
3280
|
export interface FollowResponse {
|
|
@@ -3392,6 +3424,7 @@ export interface GetChannelTypeResponse {
|
|
|
3392
3424
|
automod: 'disabled' | 'simple' | 'AI';
|
|
3393
3425
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
3394
3426
|
connect_events: boolean;
|
|
3427
|
+
count_messages: boolean;
|
|
3395
3428
|
created_at: Date;
|
|
3396
3429
|
custom_events: boolean;
|
|
3397
3430
|
duration: string;
|
|
@@ -3491,6 +3524,10 @@ export interface GetMessageResponse {
|
|
|
3491
3524
|
message: MessageWithChannelResponse;
|
|
3492
3525
|
pending_message_metadata?: Record<string, string>;
|
|
3493
3526
|
}
|
|
3527
|
+
export interface GetModerationRuleResponse {
|
|
3528
|
+
duration: string;
|
|
3529
|
+
rule?: ModerationRuleV2Response;
|
|
3530
|
+
}
|
|
3494
3531
|
export interface GetOGResponse {
|
|
3495
3532
|
duration: string;
|
|
3496
3533
|
custom: Record<string, any>;
|
|
@@ -3537,6 +3574,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
3537
3574
|
aggregation?: AggregationConfig;
|
|
3538
3575
|
custom?: Record<string, any>;
|
|
3539
3576
|
notification?: NotificationConfig;
|
|
3577
|
+
push_notification?: PushNotificationConfig;
|
|
3540
3578
|
ranking?: RankingConfig;
|
|
3541
3579
|
}
|
|
3542
3580
|
export interface GetOrCreateFeedGroupResponse {
|
|
@@ -3676,8 +3714,8 @@ export interface HLSSettingsResponse {
|
|
|
3676
3714
|
layout: LayoutSettingsResponse;
|
|
3677
3715
|
}
|
|
3678
3716
|
export interface HarmConfig {
|
|
3679
|
-
severity
|
|
3680
|
-
action_sequences
|
|
3717
|
+
severity?: number;
|
|
3718
|
+
action_sequences?: ActionSequence[];
|
|
3681
3719
|
}
|
|
3682
3720
|
export interface HideChannelRequest {
|
|
3683
3721
|
clear_history?: boolean;
|
|
@@ -3708,8 +3746,8 @@ export interface ImageData {
|
|
|
3708
3746
|
width: string;
|
|
3709
3747
|
}
|
|
3710
3748
|
export interface ImageRuleParameters {
|
|
3711
|
-
threshold
|
|
3712
|
-
time_window
|
|
3749
|
+
threshold?: number;
|
|
3750
|
+
time_window?: string;
|
|
3713
3751
|
harm_labels?: string[];
|
|
3714
3752
|
}
|
|
3715
3753
|
export interface ImageSize {
|
|
@@ -3818,6 +3856,35 @@ export interface JoinCallAPIMetrics {
|
|
|
3818
3856
|
total: number;
|
|
3819
3857
|
latency?: ActiveCallsLatencyStats;
|
|
3820
3858
|
}
|
|
3859
|
+
export interface KickUserRequest {
|
|
3860
|
+
user_id: string;
|
|
3861
|
+
block?: boolean;
|
|
3862
|
+
kicked_by_id?: string;
|
|
3863
|
+
kicked_by?: UserRequest;
|
|
3864
|
+
}
|
|
3865
|
+
export interface KickUserResponse {
|
|
3866
|
+
duration: string;
|
|
3867
|
+
}
|
|
3868
|
+
export interface KickedUserEvent {
|
|
3869
|
+
call_cid: string;
|
|
3870
|
+
created_at: Date;
|
|
3871
|
+
user: UserResponse;
|
|
3872
|
+
type: string;
|
|
3873
|
+
kicked_by_user?: UserResponse;
|
|
3874
|
+
}
|
|
3875
|
+
export interface LLMConfig {
|
|
3876
|
+
app_context?: string;
|
|
3877
|
+
async?: boolean;
|
|
3878
|
+
enabled?: boolean;
|
|
3879
|
+
rules?: LLMRule[];
|
|
3880
|
+
severity_descriptions?: Record<string, string>;
|
|
3881
|
+
}
|
|
3882
|
+
export interface LLMRule {
|
|
3883
|
+
description: string;
|
|
3884
|
+
label: string;
|
|
3885
|
+
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
3886
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
3887
|
+
}
|
|
3821
3888
|
export interface Label {
|
|
3822
3889
|
name: string;
|
|
3823
3890
|
harm_labels?: string[];
|
|
@@ -4046,6 +4113,7 @@ export interface Message {
|
|
|
4046
4113
|
before_message_send_failed?: boolean;
|
|
4047
4114
|
command?: string;
|
|
4048
4115
|
deleted_at?: Date;
|
|
4116
|
+
deleted_for_me?: boolean;
|
|
4049
4117
|
message_text_updated_at?: Date;
|
|
4050
4118
|
mml?: string;
|
|
4051
4119
|
parent_id?: string;
|
|
@@ -4057,6 +4125,7 @@ export interface Message {
|
|
|
4057
4125
|
thread_participants?: User[];
|
|
4058
4126
|
i18n?: Record<string, string>;
|
|
4059
4127
|
image_labels?: Record<string, string[]>;
|
|
4128
|
+
member?: ChannelMember;
|
|
4060
4129
|
moderation?: ModerationV2Response;
|
|
4061
4130
|
pinned_by?: User;
|
|
4062
4131
|
poll?: Poll;
|
|
@@ -4088,6 +4157,7 @@ export interface MessageDeletedEvent {
|
|
|
4088
4157
|
created_at: Date;
|
|
4089
4158
|
hard_delete: boolean;
|
|
4090
4159
|
type: string;
|
|
4160
|
+
deleted_for_me?: boolean;
|
|
4091
4161
|
team?: string;
|
|
4092
4162
|
thread_participants?: User[];
|
|
4093
4163
|
message?: Message;
|
|
@@ -4227,6 +4297,7 @@ export interface MessageResponse {
|
|
|
4227
4297
|
user: UserResponse;
|
|
4228
4298
|
command?: string;
|
|
4229
4299
|
deleted_at?: Date;
|
|
4300
|
+
deleted_for_me?: boolean;
|
|
4230
4301
|
message_text_updated_at?: Date;
|
|
4231
4302
|
mml?: string;
|
|
4232
4303
|
parent_id?: string;
|
|
@@ -4239,6 +4310,7 @@ export interface MessageResponse {
|
|
|
4239
4310
|
draft?: DraftResponse;
|
|
4240
4311
|
i18n?: Record<string, string>;
|
|
4241
4312
|
image_labels?: Record<string, string[]>;
|
|
4313
|
+
member?: ChannelMemberResponse;
|
|
4242
4314
|
moderation?: ModerationV2Response;
|
|
4243
4315
|
pinned_by?: UserResponse;
|
|
4244
4316
|
poll?: PollResponseData;
|
|
@@ -4309,6 +4381,7 @@ export interface MessageWithChannelResponse {
|
|
|
4309
4381
|
user: UserResponse;
|
|
4310
4382
|
command?: string;
|
|
4311
4383
|
deleted_at?: Date;
|
|
4384
|
+
deleted_for_me?: boolean;
|
|
4312
4385
|
message_text_updated_at?: Date;
|
|
4313
4386
|
mml?: string;
|
|
4314
4387
|
parent_id?: string;
|
|
@@ -4321,6 +4394,7 @@ export interface MessageWithChannelResponse {
|
|
|
4321
4394
|
draft?: DraftResponse;
|
|
4322
4395
|
i18n?: Record<string, string>;
|
|
4323
4396
|
image_labels?: Record<string, string[]>;
|
|
4397
|
+
member?: ChannelMemberResponse;
|
|
4324
4398
|
moderation?: ModerationV2Response;
|
|
4325
4399
|
pinned_by?: UserResponse;
|
|
4326
4400
|
poll?: PollResponseData;
|
|
@@ -4347,6 +4421,25 @@ export interface ModerationCheckCompletedEvent {
|
|
|
4347
4421
|
type: string;
|
|
4348
4422
|
received_at?: Date;
|
|
4349
4423
|
}
|
|
4424
|
+
export interface ModerationConfig {
|
|
4425
|
+
async?: boolean;
|
|
4426
|
+
created_at?: Date;
|
|
4427
|
+
key?: string;
|
|
4428
|
+
team?: string;
|
|
4429
|
+
updated_at?: Date;
|
|
4430
|
+
ai_image_config?: AIImageConfig;
|
|
4431
|
+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
4432
|
+
ai_text_config?: AITextConfig;
|
|
4433
|
+
ai_video_config?: AIVideoConfig;
|
|
4434
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
4435
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
4436
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
4437
|
+
block_list_config?: BlockListConfig;
|
|
4438
|
+
google_vision_config?: GoogleVisionConfig;
|
|
4439
|
+
llm_config?: LLMConfig;
|
|
4440
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
4441
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
4442
|
+
}
|
|
4350
4443
|
export interface ModerationCustomActionEvent {
|
|
4351
4444
|
created_at: Date;
|
|
4352
4445
|
type: string;
|
|
@@ -4359,17 +4452,17 @@ export interface ModerationDashboardPreferences {
|
|
|
4359
4452
|
media_queue_blur_enabled?: boolean;
|
|
4360
4453
|
}
|
|
4361
4454
|
export interface ModerationFlagResponse {
|
|
4362
|
-
created_at:
|
|
4455
|
+
created_at: Date;
|
|
4363
4456
|
entity_id: string;
|
|
4364
4457
|
entity_type: string;
|
|
4365
4458
|
type: string;
|
|
4366
|
-
updated_at:
|
|
4459
|
+
updated_at: Date;
|
|
4367
4460
|
user_id: string;
|
|
4461
|
+
result: Array<Record<string, any>>;
|
|
4368
4462
|
entity_creator_id?: string;
|
|
4369
4463
|
reason?: string;
|
|
4370
4464
|
review_queue_item_id?: string;
|
|
4371
4465
|
labels?: string[];
|
|
4372
|
-
result?: Array<Record<string, any>>;
|
|
4373
4466
|
custom?: Record<string, any>;
|
|
4374
4467
|
moderation_payload?: ModerationPayload;
|
|
4375
4468
|
review_queue_item?: ReviewQueueItemResponse;
|
|
@@ -4401,6 +4494,22 @@ export interface ModerationResponse {
|
|
|
4401
4494
|
spam: number;
|
|
4402
4495
|
toxic: number;
|
|
4403
4496
|
}
|
|
4497
|
+
export interface ModerationRuleV2Response {
|
|
4498
|
+
created_at: Date;
|
|
4499
|
+
description: string;
|
|
4500
|
+
enabled: boolean;
|
|
4501
|
+
id: string;
|
|
4502
|
+
name: string;
|
|
4503
|
+
rule_type: string;
|
|
4504
|
+
team: string;
|
|
4505
|
+
updated_at: Date;
|
|
4506
|
+
config_keys: string[];
|
|
4507
|
+
action: RuleBuilderAction;
|
|
4508
|
+
cooldown_period?: string;
|
|
4509
|
+
logic?: string;
|
|
4510
|
+
conditions?: RuleBuilderCondition[];
|
|
4511
|
+
groups?: RuleBuilderConditionGroup[];
|
|
4512
|
+
}
|
|
4404
4513
|
export interface ModerationV2Response {
|
|
4405
4514
|
action: string;
|
|
4406
4515
|
original_text: string;
|
|
@@ -4526,12 +4635,14 @@ export declare const OwnCapability: {
|
|
|
4526
4635
|
readonly JOIN_BACKSTAGE: "join-backstage";
|
|
4527
4636
|
readonly JOIN_CALL: "join-call";
|
|
4528
4637
|
readonly JOIN_ENDED_CALL: "join-ended-call";
|
|
4638
|
+
readonly KICK_USER: "kick-user";
|
|
4529
4639
|
readonly MUTE_USERS: "mute-users";
|
|
4530
4640
|
readonly PIN_FOR_EVERYONE: "pin-for-everyone";
|
|
4531
4641
|
readonly READ_CALL: "read-call";
|
|
4532
4642
|
readonly REMOVE_CALL_MEMBER: "remove-call-member";
|
|
4533
4643
|
readonly SCREENSHARE: "screenshare";
|
|
4534
4644
|
readonly SEND_AUDIO: "send-audio";
|
|
4645
|
+
readonly SEND_CLOSED_CAPTIONS_CALL: "send-closed-captions-call";
|
|
4535
4646
|
readonly SEND_VIDEO: "send-video";
|
|
4536
4647
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
4537
4648
|
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
@@ -4854,6 +4965,7 @@ export interface PublisherStatsResponse {
|
|
|
4854
4965
|
by_track?: TrackStatsResponse[];
|
|
4855
4966
|
}
|
|
4856
4967
|
export interface PublisherVideoMetrics {
|
|
4968
|
+
bitrate?: ActiveCallsBitrateStats;
|
|
4857
4969
|
fps_30?: ActiveCallsFPSStats;
|
|
4858
4970
|
frame_encoding_time_ms?: ActiveCallsLatencyStats;
|
|
4859
4971
|
jitter_ms?: ActiveCallsLatencyStats;
|
|
@@ -4866,6 +4978,10 @@ export interface PushConfig {
|
|
|
4866
4978
|
version: 'v1' | 'v2' | 'v3';
|
|
4867
4979
|
offline_only?: boolean;
|
|
4868
4980
|
}
|
|
4981
|
+
export interface PushNotificationConfig {
|
|
4982
|
+
enabled?: boolean;
|
|
4983
|
+
activity_types?: 'follow' | 'comment' | 'reaction' | 'comment_reaction';
|
|
4984
|
+
}
|
|
4869
4985
|
export interface PushNotificationFields {
|
|
4870
4986
|
offline_only: boolean;
|
|
4871
4987
|
version: string;
|
|
@@ -4884,13 +5000,17 @@ export interface PushPreferenceInput {
|
|
|
4884
5000
|
channel_cid?: string;
|
|
4885
5001
|
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
4886
5002
|
disabled_until?: Date;
|
|
5003
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
4887
5004
|
remove_disable?: boolean;
|
|
4888
5005
|
user_id?: string;
|
|
5006
|
+
feeds_events?: FeedsEventPreferencesInput;
|
|
4889
5007
|
}
|
|
4890
5008
|
export interface PushPreferences {
|
|
4891
5009
|
call_level?: string;
|
|
4892
5010
|
chat_level?: string;
|
|
4893
5011
|
disabled_until?: Date;
|
|
5012
|
+
feeds_level?: string;
|
|
5013
|
+
feeds_events?: FeedsEventPreferences;
|
|
4894
5014
|
}
|
|
4895
5015
|
export interface PushProvider {
|
|
4896
5016
|
created_at: Date;
|
|
@@ -4954,7 +5074,7 @@ export interface PushProviderResponse {
|
|
|
4954
5074
|
export interface PushTemplate {
|
|
4955
5075
|
created_at: Date;
|
|
4956
5076
|
enable_push: boolean;
|
|
4957
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
5077
|
+
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due' | 'feeds.activity.added' | 'feeds.comment.added' | 'feeds.activity.reaction.added' | 'feeds.comment.reaction.added' | 'feeds.follow.created' | 'feeds.notification_feed.updated';
|
|
4958
5078
|
updated_at: Date;
|
|
4959
5079
|
template?: string;
|
|
4960
5080
|
}
|
|
@@ -5317,6 +5437,22 @@ export interface QueryModerationLogsResponse {
|
|
|
5317
5437
|
next?: string;
|
|
5318
5438
|
prev?: string;
|
|
5319
5439
|
}
|
|
5440
|
+
export interface QueryModerationRulesRequest {
|
|
5441
|
+
limit?: number;
|
|
5442
|
+
next?: string;
|
|
5443
|
+
prev?: string;
|
|
5444
|
+
user_id?: string;
|
|
5445
|
+
sort?: SortParamRequest[];
|
|
5446
|
+
filter?: Record<string, any>;
|
|
5447
|
+
user?: UserRequest;
|
|
5448
|
+
}
|
|
5449
|
+
export interface QueryModerationRulesResponse {
|
|
5450
|
+
duration: string;
|
|
5451
|
+
rules: ModerationRuleV2Response[];
|
|
5452
|
+
default_llm_labels: Record<string, string>;
|
|
5453
|
+
next?: string;
|
|
5454
|
+
prev?: string;
|
|
5455
|
+
}
|
|
5320
5456
|
export interface QueryPollVotesRequest {
|
|
5321
5457
|
limit?: number;
|
|
5322
5458
|
next?: string;
|
|
@@ -5837,40 +5973,39 @@ export interface Role {
|
|
|
5837
5973
|
scopes: string[];
|
|
5838
5974
|
}
|
|
5839
5975
|
export interface RuleBuilderAction {
|
|
5840
|
-
type
|
|
5976
|
+
type?: string;
|
|
5841
5977
|
ban_options?: BanOptions;
|
|
5842
5978
|
flag_content_options?: FlagContentOptions;
|
|
5843
5979
|
flag_user_options?: FlagUserOptions;
|
|
5844
5980
|
remove_content_options?: BlockContentOptions;
|
|
5845
5981
|
}
|
|
5846
5982
|
export interface RuleBuilderCondition {
|
|
5847
|
-
type: string;
|
|
5848
5983
|
confidence?: number;
|
|
5984
|
+
type?: string;
|
|
5849
5985
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
5850
5986
|
image_content_params?: ImageContentParameters;
|
|
5851
5987
|
image_rule_params?: ImageRuleParameters;
|
|
5852
5988
|
text_content_params?: TextContentParameters;
|
|
5853
5989
|
text_rule_params?: TextRuleParameters;
|
|
5854
5990
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
5991
|
+
user_custom_property_params?: UserCustomPropertyParameters;
|
|
5855
5992
|
user_rule_params?: UserRuleParameters;
|
|
5856
5993
|
video_content_params?: VideoContentParameters;
|
|
5857
5994
|
video_rule_params?: VideoRuleParameters;
|
|
5858
5995
|
}
|
|
5859
5996
|
export interface RuleBuilderConditionGroup {
|
|
5860
|
-
logic
|
|
5861
|
-
conditions
|
|
5997
|
+
logic?: string;
|
|
5998
|
+
conditions?: RuleBuilderCondition[];
|
|
5862
5999
|
}
|
|
5863
6000
|
export interface RuleBuilderConfig {
|
|
5864
|
-
rules: RuleBuilderRule[];
|
|
5865
6001
|
async?: boolean;
|
|
6002
|
+
rules?: RuleBuilderRule[];
|
|
5866
6003
|
}
|
|
5867
6004
|
export interface RuleBuilderRule {
|
|
5868
|
-
enabled: boolean;
|
|
5869
|
-
id: string;
|
|
5870
|
-
name: string;
|
|
5871
6005
|
rule_type: string;
|
|
5872
6006
|
action: RuleBuilderAction;
|
|
5873
6007
|
cooldown_period?: string;
|
|
6008
|
+
id?: string;
|
|
5874
6009
|
logic?: string;
|
|
5875
6010
|
conditions?: RuleBuilderCondition[];
|
|
5876
6011
|
groups?: RuleBuilderConditionGroup[];
|
|
@@ -5961,6 +6096,7 @@ export interface SearchResultMessage {
|
|
|
5961
6096
|
user: UserResponse;
|
|
5962
6097
|
command?: string;
|
|
5963
6098
|
deleted_at?: Date;
|
|
6099
|
+
deleted_for_me?: boolean;
|
|
5964
6100
|
message_text_updated_at?: Date;
|
|
5965
6101
|
mml?: string;
|
|
5966
6102
|
parent_id?: string;
|
|
@@ -5974,6 +6110,7 @@ export interface SearchResultMessage {
|
|
|
5974
6110
|
draft?: DraftResponse;
|
|
5975
6111
|
i18n?: Record<string, string>;
|
|
5976
6112
|
image_labels?: Record<string, string[]>;
|
|
6113
|
+
member?: ChannelMemberResponse;
|
|
5977
6114
|
moderation?: ModerationV2Response;
|
|
5978
6115
|
pinned_by?: UserResponse;
|
|
5979
6116
|
poll?: PollResponseData;
|
|
@@ -6029,6 +6166,20 @@ export interface SendCallEventRequest {
|
|
|
6029
6166
|
export interface SendCallEventResponse {
|
|
6030
6167
|
duration: string;
|
|
6031
6168
|
}
|
|
6169
|
+
export interface SendClosedCaptionRequest {
|
|
6170
|
+
speaker_id: string;
|
|
6171
|
+
text: string;
|
|
6172
|
+
end_time?: Date;
|
|
6173
|
+
language?: string;
|
|
6174
|
+
service?: string;
|
|
6175
|
+
start_time?: Date;
|
|
6176
|
+
translated?: boolean;
|
|
6177
|
+
user_id?: string;
|
|
6178
|
+
user?: UserRequest;
|
|
6179
|
+
}
|
|
6180
|
+
export interface SendClosedCaptionResponse {
|
|
6181
|
+
duration: string;
|
|
6182
|
+
}
|
|
6032
6183
|
export interface SendEventRequest {
|
|
6033
6184
|
event: EventRequest;
|
|
6034
6185
|
}
|
|
@@ -6287,14 +6438,16 @@ export interface TextContentParameters {
|
|
|
6287
6438
|
severity?: string;
|
|
6288
6439
|
blocklist_match?: string[];
|
|
6289
6440
|
harm_labels?: string[];
|
|
6441
|
+
llm_harm_labels?: Record<string, string>;
|
|
6290
6442
|
}
|
|
6291
6443
|
export interface TextRuleParameters {
|
|
6292
|
-
threshold: number;
|
|
6293
|
-
time_window: string;
|
|
6294
6444
|
contains_url?: boolean;
|
|
6295
6445
|
severity?: string;
|
|
6446
|
+
threshold?: number;
|
|
6447
|
+
time_window?: string;
|
|
6296
6448
|
blocklist_match?: string[];
|
|
6297
6449
|
harm_labels?: string[];
|
|
6450
|
+
llm_harm_labels?: Record<string, string>;
|
|
6298
6451
|
}
|
|
6299
6452
|
export interface ThreadParticipant {
|
|
6300
6453
|
app_pk: number;
|
|
@@ -6309,17 +6462,17 @@ export interface ThreadParticipant {
|
|
|
6309
6462
|
user?: UserResponse;
|
|
6310
6463
|
}
|
|
6311
6464
|
export interface ThreadResponse {
|
|
6465
|
+
active_participant_count: number;
|
|
6312
6466
|
channel_cid: string;
|
|
6313
6467
|
created_at: Date;
|
|
6314
6468
|
created_by_user_id: string;
|
|
6315
6469
|
parent_message_id: string;
|
|
6470
|
+
participant_count: number;
|
|
6316
6471
|
title: string;
|
|
6317
6472
|
updated_at: Date;
|
|
6318
6473
|
custom: Record<string, any>;
|
|
6319
|
-
active_participant_count?: number;
|
|
6320
6474
|
deleted_at?: Date;
|
|
6321
6475
|
last_message_at?: Date;
|
|
6322
|
-
participant_count?: number;
|
|
6323
6476
|
reply_count?: number;
|
|
6324
6477
|
thread_participants?: ThreadParticipant[];
|
|
6325
6478
|
channel?: ChannelResponse;
|
|
@@ -6327,18 +6480,18 @@ export interface ThreadResponse {
|
|
|
6327
6480
|
parent_message?: MessageResponse;
|
|
6328
6481
|
}
|
|
6329
6482
|
export interface ThreadStateResponse {
|
|
6483
|
+
active_participant_count: number;
|
|
6330
6484
|
channel_cid: string;
|
|
6331
6485
|
created_at: Date;
|
|
6332
6486
|
created_by_user_id: string;
|
|
6333
6487
|
parent_message_id: string;
|
|
6488
|
+
participant_count: number;
|
|
6334
6489
|
title: string;
|
|
6335
6490
|
updated_at: Date;
|
|
6336
6491
|
latest_replies: MessageResponse[];
|
|
6337
6492
|
custom: Record<string, any>;
|
|
6338
|
-
active_participant_count?: number;
|
|
6339
6493
|
deleted_at?: Date;
|
|
6340
6494
|
last_message_at?: Date;
|
|
6341
|
-
participant_count?: number;
|
|
6342
6495
|
reply_count?: number;
|
|
6343
6496
|
read?: ReadStateResponse[];
|
|
6344
6497
|
thread_participants?: ThreadParticipant[];
|
|
@@ -6587,6 +6740,7 @@ export interface UpdateAppRequest {
|
|
|
6587
6740
|
feeds_v2_region?: string;
|
|
6588
6741
|
guest_user_creation_disabled?: boolean;
|
|
6589
6742
|
image_moderation_enabled?: boolean;
|
|
6743
|
+
max_aggregated_activities_length?: number;
|
|
6590
6744
|
migrate_permissions_to_v2?: boolean;
|
|
6591
6745
|
moderation_enabled?: boolean;
|
|
6592
6746
|
moderation_webhook_url?: string;
|
|
@@ -6727,6 +6881,7 @@ export interface UpdateChannelTypeRequest {
|
|
|
6727
6881
|
blocklist?: string;
|
|
6728
6882
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
6729
6883
|
connect_events?: boolean;
|
|
6884
|
+
count_messages?: boolean;
|
|
6730
6885
|
custom_events?: boolean;
|
|
6731
6886
|
mark_messages_pending?: boolean;
|
|
6732
6887
|
mutes?: boolean;
|
|
@@ -6757,6 +6912,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
6757
6912
|
automod: 'disabled' | 'simple' | 'AI';
|
|
6758
6913
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
6759
6914
|
connect_events: boolean;
|
|
6915
|
+
count_messages: boolean;
|
|
6760
6916
|
created_at: Date;
|
|
6761
6917
|
custom_events: boolean;
|
|
6762
6918
|
duration: string;
|
|
@@ -6801,6 +6957,7 @@ export interface UpdateCommandResponse {
|
|
|
6801
6957
|
}
|
|
6802
6958
|
export interface UpdateCommentRequest {
|
|
6803
6959
|
comment?: string;
|
|
6960
|
+
skip_push?: boolean;
|
|
6804
6961
|
custom?: Record<string, any>;
|
|
6805
6962
|
}
|
|
6806
6963
|
export interface UpdateCommentResponse {
|
|
@@ -6828,6 +6985,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
6828
6985
|
aggregation?: AggregationConfig;
|
|
6829
6986
|
custom?: Record<string, any>;
|
|
6830
6987
|
notification?: NotificationConfig;
|
|
6988
|
+
push_notification?: PushNotificationConfig;
|
|
6831
6989
|
ranking?: RankingConfig;
|
|
6832
6990
|
}
|
|
6833
6991
|
export interface UpdateFeedGroupResponse {
|
|
@@ -6871,6 +7029,7 @@ export interface UpdateFollowRequest {
|
|
|
6871
7029
|
create_notification_activity?: boolean;
|
|
6872
7030
|
follower_role?: string;
|
|
6873
7031
|
push_preference?: 'all' | 'none';
|
|
7032
|
+
skip_push?: boolean;
|
|
6874
7033
|
custom?: Record<string, any>;
|
|
6875
7034
|
}
|
|
6876
7035
|
export interface UpdateFollowResponse {
|
|
@@ -7024,6 +7183,7 @@ export interface UpsertConfigRequest {
|
|
|
7024
7183
|
block_list_config?: BlockListConfig;
|
|
7025
7184
|
bodyguard_config?: AITextConfig;
|
|
7026
7185
|
google_vision_config?: GoogleVisionConfig;
|
|
7186
|
+
llm_config?: LLMConfig;
|
|
7027
7187
|
rule_builder_config?: RuleBuilderConfig;
|
|
7028
7188
|
user?: UserRequest;
|
|
7029
7189
|
velocity_filter_config?: VelocityFilterConfig;
|
|
@@ -7033,6 +7193,23 @@ export interface UpsertConfigResponse {
|
|
|
7033
7193
|
duration: string;
|
|
7034
7194
|
config?: ConfigResponse;
|
|
7035
7195
|
}
|
|
7196
|
+
export interface UpsertModerationRuleRequest {
|
|
7197
|
+
name: string;
|
|
7198
|
+
rule_type: string;
|
|
7199
|
+
action: RuleBuilderAction;
|
|
7200
|
+
cooldown_period?: string;
|
|
7201
|
+
description?: string;
|
|
7202
|
+
enabled?: boolean;
|
|
7203
|
+
logic?: string;
|
|
7204
|
+
team?: string;
|
|
7205
|
+
conditions?: RuleBuilderCondition[];
|
|
7206
|
+
config_keys?: string[];
|
|
7207
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7208
|
+
}
|
|
7209
|
+
export interface UpsertModerationRuleResponse {
|
|
7210
|
+
duration: string;
|
|
7211
|
+
rule?: ModerationRuleV2Response;
|
|
7212
|
+
}
|
|
7036
7213
|
export interface UpsertModerationTemplateRequest {
|
|
7037
7214
|
name: string;
|
|
7038
7215
|
config: FeedsModerationTemplateConfig;
|
|
@@ -7060,7 +7237,7 @@ export interface UpsertPushProviderResponse {
|
|
|
7060
7237
|
push_provider: PushProviderResponse;
|
|
7061
7238
|
}
|
|
7062
7239
|
export interface UpsertPushTemplateRequest {
|
|
7063
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
7240
|
+
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due' | 'feeds.activity.added' | 'feeds.comment.added' | 'feeds.activity.reaction.added' | 'feeds.comment.reaction.added' | 'feeds.follow.created' | 'feeds.notification_feed.updated';
|
|
7064
7241
|
push_provider_type: 'firebase' | 'apn';
|
|
7065
7242
|
enable_push?: boolean;
|
|
7066
7243
|
push_provider_name?: string;
|
|
@@ -7111,6 +7288,10 @@ export interface UserCustomEventRequest {
|
|
|
7111
7288
|
type: string;
|
|
7112
7289
|
custom?: Record<string, any>;
|
|
7113
7290
|
}
|
|
7291
|
+
export interface UserCustomPropertyParameters {
|
|
7292
|
+
operator?: string;
|
|
7293
|
+
property_key?: string;
|
|
7294
|
+
}
|
|
7114
7295
|
export interface UserDeactivatedEvent {
|
|
7115
7296
|
created_at: Date;
|
|
7116
7297
|
created_by: User;
|
|
@@ -7152,15 +7333,15 @@ export interface UserFlaggedEvent {
|
|
|
7152
7333
|
}
|
|
7153
7334
|
export interface UserMessagesDeletedEvent {
|
|
7154
7335
|
created_at: Date;
|
|
7155
|
-
hard_delete: boolean;
|
|
7156
|
-
soft_delete: boolean;
|
|
7157
7336
|
custom: Record<string, any>;
|
|
7158
7337
|
user: UserResponseCommonFields;
|
|
7159
7338
|
type: string;
|
|
7160
7339
|
channel_id?: string;
|
|
7161
7340
|
channel_member_count?: number;
|
|
7341
|
+
channel_message_count?: number;
|
|
7162
7342
|
channel_type?: string;
|
|
7163
7343
|
cid?: string;
|
|
7344
|
+
hard_delete?: boolean;
|
|
7164
7345
|
received_at?: Date;
|
|
7165
7346
|
team?: string;
|
|
7166
7347
|
channel_custom?: Record<string, any>;
|
|
@@ -7309,32 +7490,32 @@ export interface UserUpdatedEvent {
|
|
|
7309
7490
|
received_at?: Date;
|
|
7310
7491
|
}
|
|
7311
7492
|
export interface VelocityFilterConfig {
|
|
7312
|
-
advanced_filters
|
|
7313
|
-
cascading_actions: boolean;
|
|
7314
|
-
cids_per_user: number;
|
|
7315
|
-
enabled: boolean;
|
|
7316
|
-
first_message_only: boolean;
|
|
7317
|
-
rules: VelocityFilterConfigRule[];
|
|
7493
|
+
advanced_filters?: boolean;
|
|
7318
7494
|
async?: boolean;
|
|
7495
|
+
cascading_actions?: boolean;
|
|
7496
|
+
cids_per_user?: number;
|
|
7497
|
+
enabled?: boolean;
|
|
7498
|
+
first_message_only?: boolean;
|
|
7499
|
+
rules?: VelocityFilterConfigRule[];
|
|
7319
7500
|
}
|
|
7320
7501
|
export interface VelocityFilterConfigRule {
|
|
7321
7502
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
7322
|
-
ban_duration
|
|
7323
|
-
cascading_action
|
|
7324
|
-
cascading_threshold
|
|
7325
|
-
check_message_context
|
|
7326
|
-
fast_spam_threshold
|
|
7327
|
-
fast_spam_ttl
|
|
7328
|
-
ip_ban
|
|
7329
|
-
probation_period
|
|
7330
|
-
shadow_ban
|
|
7331
|
-
slow_spam_threshold: number;
|
|
7332
|
-
slow_spam_ttl: number;
|
|
7333
|
-
url_only: boolean;
|
|
7503
|
+
ban_duration?: number;
|
|
7504
|
+
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
7505
|
+
cascading_threshold?: number;
|
|
7506
|
+
check_message_context?: boolean;
|
|
7507
|
+
fast_spam_threshold?: number;
|
|
7508
|
+
fast_spam_ttl?: number;
|
|
7509
|
+
ip_ban?: boolean;
|
|
7510
|
+
probation_period?: number;
|
|
7511
|
+
shadow_ban?: boolean;
|
|
7334
7512
|
slow_spam_ban_duration?: number;
|
|
7513
|
+
slow_spam_threshold?: number;
|
|
7514
|
+
slow_spam_ttl?: number;
|
|
7515
|
+
url_only?: boolean;
|
|
7335
7516
|
}
|
|
7336
7517
|
export interface VideoCallRuleConfig {
|
|
7337
|
-
rules
|
|
7518
|
+
rules?: Record<string, HarmConfig>;
|
|
7338
7519
|
}
|
|
7339
7520
|
export interface VideoContentParameters {
|
|
7340
7521
|
harm_labels?: string[];
|
|
@@ -7354,8 +7535,8 @@ export interface VideoReactionsResponse {
|
|
|
7354
7535
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
7355
7536
|
}
|
|
7356
7537
|
export interface VideoRuleParameters {
|
|
7357
|
-
threshold
|
|
7358
|
-
time_window
|
|
7538
|
+
threshold?: number;
|
|
7539
|
+
time_window?: string;
|
|
7359
7540
|
harm_labels?: string[];
|
|
7360
7541
|
}
|
|
7361
7542
|
export interface VideoSettings {
|
|
@@ -7449,6 +7630,8 @@ export type WebhookEvent = ({
|
|
|
7449
7630
|
} & CallHLSBroadcastingStartedEvent) | ({
|
|
7450
7631
|
type: 'call.hls_broadcasting_stopped';
|
|
7451
7632
|
} & CallHLSBroadcastingStoppedEvent) | ({
|
|
7633
|
+
type: 'call.kicked_user';
|
|
7634
|
+
} & KickedUserEvent) | ({
|
|
7452
7635
|
type: 'call.live_started';
|
|
7453
7636
|
} & CallLiveStartedEvent) | ({
|
|
7454
7637
|
type: 'call.member_added';
|