@stream-io/node-sdk 0.6.2 → 0.6.4
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 +113 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +113 -23
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +1 -1
- package/dist/src/gen/common/CommonApi.d.ts +1 -1
- package/dist/src/gen/models/index.d.ts +249 -115
- package/dist/src/gen/moderation/ModerationApi.d.ts +5 -1
- package/dist/src/gen/video/CallApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +5 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +2 -2
- package/src/gen/common/CommonApi.ts +2 -2
- package/src/gen/feeds/FeedsApi.ts +9 -0
- package/src/gen/model-decoders/decoders.ts +42 -32
- package/src/gen/models/index.ts +415 -166
- package/src/gen/moderation/ModerationApi.ts +99 -1
- package/src/gen/video/CallApi.ts +15 -3
- package/src/gen/video/VideoApi.ts +42 -5
package/src/gen/models/index.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export interface AIImageConfig {
|
|
2
|
-
|
|
2
|
+
async?: boolean;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
enabled?: boolean;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
ocr_rules?: OCRRule[];
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
rules?: AWSRekognitionRule[];
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface AITextConfig {
|
|
12
|
-
|
|
12
|
+
async?: boolean;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
enabled?: boolean;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
profile?: string;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
rules?: BodyguardRule[];
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface AIVideoConfig {
|
|
24
|
-
|
|
24
|
+
async?: boolean;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
enabled?: boolean;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
rules?: AWSRekognitionRule[];
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface APIError {
|
|
@@ -203,19 +203,19 @@ export interface ActionLogResponse {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
export interface ActionSequence {
|
|
206
|
-
action
|
|
206
|
+
action?: string;
|
|
207
207
|
|
|
208
|
-
blur
|
|
208
|
+
blur?: boolean;
|
|
209
209
|
|
|
210
|
-
cooldown_period
|
|
210
|
+
cooldown_period?: number;
|
|
211
211
|
|
|
212
|
-
threshold
|
|
212
|
+
threshold?: number;
|
|
213
213
|
|
|
214
|
-
time_window
|
|
214
|
+
time_window?: number;
|
|
215
215
|
|
|
216
|
-
warning
|
|
216
|
+
warning?: boolean;
|
|
217
217
|
|
|
218
|
-
warning_text
|
|
218
|
+
warning_text?: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
export interface ActiveCallsBitrateStats {
|
|
@@ -707,6 +707,8 @@ export interface AddCommentReactionRequest {
|
|
|
707
707
|
|
|
708
708
|
create_notification_activity?: boolean;
|
|
709
709
|
|
|
710
|
+
skip_push?: boolean;
|
|
711
|
+
|
|
710
712
|
user_id?: string;
|
|
711
713
|
|
|
712
714
|
custom?: Record<string, any>;
|
|
@@ -733,6 +735,8 @@ export interface AddCommentRequest {
|
|
|
733
735
|
|
|
734
736
|
parent_id?: string;
|
|
735
737
|
|
|
738
|
+
skip_push?: boolean;
|
|
739
|
+
|
|
736
740
|
user_id?: string;
|
|
737
741
|
|
|
738
742
|
attachments?: Attachment[];
|
|
@@ -771,6 +775,8 @@ export interface AddReactionRequest {
|
|
|
771
775
|
|
|
772
776
|
create_notification_activity?: boolean;
|
|
773
777
|
|
|
778
|
+
skip_push?: boolean;
|
|
779
|
+
|
|
774
780
|
user_id?: string;
|
|
775
781
|
|
|
776
782
|
custom?: Record<string, any>;
|
|
@@ -1119,11 +1125,11 @@ export interface AutomodDetails {
|
|
|
1119
1125
|
}
|
|
1120
1126
|
|
|
1121
1127
|
export interface AutomodPlatformCircumventionConfig {
|
|
1122
|
-
|
|
1128
|
+
async?: boolean;
|
|
1123
1129
|
|
|
1124
|
-
|
|
1130
|
+
enabled?: boolean;
|
|
1125
1131
|
|
|
1126
|
-
|
|
1132
|
+
rules?: AutomodRule[];
|
|
1127
1133
|
}
|
|
1128
1134
|
|
|
1129
1135
|
export interface AutomodRule {
|
|
@@ -1141,11 +1147,11 @@ export interface AutomodRule {
|
|
|
1141
1147
|
}
|
|
1142
1148
|
|
|
1143
1149
|
export interface AutomodSemanticFiltersConfig {
|
|
1144
|
-
|
|
1150
|
+
async?: boolean;
|
|
1145
1151
|
|
|
1146
|
-
|
|
1152
|
+
enabled?: boolean;
|
|
1147
1153
|
|
|
1148
|
-
|
|
1154
|
+
rules?: AutomodSemanticFiltersRule[];
|
|
1149
1155
|
}
|
|
1150
1156
|
|
|
1151
1157
|
export interface AutomodSemanticFiltersRule {
|
|
@@ -1157,11 +1163,11 @@ export interface AutomodSemanticFiltersRule {
|
|
|
1157
1163
|
}
|
|
1158
1164
|
|
|
1159
1165
|
export interface AutomodToxicityConfig {
|
|
1160
|
-
|
|
1166
|
+
async?: boolean;
|
|
1161
1167
|
|
|
1162
|
-
|
|
1168
|
+
enabled?: boolean;
|
|
1163
1169
|
|
|
1164
|
-
|
|
1170
|
+
rules?: AutomodRule[];
|
|
1165
1171
|
}
|
|
1166
1172
|
|
|
1167
1173
|
export interface AzureRequest {
|
|
@@ -1223,13 +1229,13 @@ export interface BanActionRequest {
|
|
|
1223
1229
|
}
|
|
1224
1230
|
|
|
1225
1231
|
export interface BanOptions {
|
|
1226
|
-
duration
|
|
1232
|
+
duration?: number;
|
|
1227
1233
|
|
|
1228
|
-
ip_ban
|
|
1234
|
+
ip_ban?: boolean;
|
|
1229
1235
|
|
|
1230
|
-
reason
|
|
1236
|
+
reason?: string;
|
|
1231
1237
|
|
|
1232
|
-
shadow_ban
|
|
1238
|
+
shadow_ban?: boolean;
|
|
1233
1239
|
}
|
|
1234
1240
|
|
|
1235
1241
|
export interface BanRequest {
|
|
@@ -1269,15 +1275,15 @@ export interface BanResponse {
|
|
|
1269
1275
|
}
|
|
1270
1276
|
|
|
1271
1277
|
export interface BlockContentOptions {
|
|
1272
|
-
reason
|
|
1278
|
+
reason?: string;
|
|
1273
1279
|
}
|
|
1274
1280
|
|
|
1275
1281
|
export interface BlockListConfig {
|
|
1276
|
-
|
|
1282
|
+
async?: boolean;
|
|
1277
1283
|
|
|
1278
|
-
|
|
1284
|
+
enabled?: boolean;
|
|
1279
1285
|
|
|
1280
|
-
|
|
1286
|
+
rules?: BlockListRule[];
|
|
1281
1287
|
}
|
|
1282
1288
|
|
|
1283
1289
|
export interface BlockListOptions {
|
|
@@ -1312,9 +1318,9 @@ export interface BlockListRule {
|
|
|
1312
1318
|
| 'bounce_flag'
|
|
1313
1319
|
| 'bounce_remove';
|
|
1314
1320
|
|
|
1315
|
-
name
|
|
1321
|
+
name?: string;
|
|
1316
1322
|
|
|
1317
|
-
team
|
|
1323
|
+
team?: string;
|
|
1318
1324
|
}
|
|
1319
1325
|
|
|
1320
1326
|
export interface BlockUserRequest {
|
|
@@ -1367,8 +1373,14 @@ export interface BlockedUserResponse {
|
|
|
1367
1373
|
user: UserResponse;
|
|
1368
1374
|
}
|
|
1369
1375
|
|
|
1376
|
+
export interface BodyguardImageAnalysisConfig {
|
|
1377
|
+
rules?: BodyguardRule[];
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1370
1380
|
export interface BodyguardRule {
|
|
1371
|
-
|
|
1381
|
+
label: string;
|
|
1382
|
+
|
|
1383
|
+
action?:
|
|
1372
1384
|
| 'flag'
|
|
1373
1385
|
| 'shadow'
|
|
1374
1386
|
| 'remove'
|
|
@@ -1376,9 +1388,7 @@ export interface BodyguardRule {
|
|
|
1376
1388
|
| 'bounce_flag'
|
|
1377
1389
|
| 'bounce_remove';
|
|
1378
1390
|
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
severity_rules: BodyguardSeverityRule[];
|
|
1391
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
1382
1392
|
}
|
|
1383
1393
|
|
|
1384
1394
|
export interface BodyguardSeverityRule {
|
|
@@ -1614,13 +1624,21 @@ export interface CallAcceptedEvent {
|
|
|
1614
1624
|
export interface CallClosedCaption {
|
|
1615
1625
|
end_time: Date;
|
|
1616
1626
|
|
|
1627
|
+
id: string;
|
|
1628
|
+
|
|
1629
|
+
language: string;
|
|
1630
|
+
|
|
1617
1631
|
speaker_id: string;
|
|
1618
1632
|
|
|
1619
1633
|
start_time: Date;
|
|
1620
1634
|
|
|
1621
1635
|
text: string;
|
|
1622
1636
|
|
|
1637
|
+
translated: boolean;
|
|
1638
|
+
|
|
1623
1639
|
user: UserResponse;
|
|
1640
|
+
|
|
1641
|
+
service?: string;
|
|
1624
1642
|
}
|
|
1625
1643
|
|
|
1626
1644
|
export interface CallClosedCaptionsFailedEvent {
|
|
@@ -2754,6 +2772,8 @@ export interface Channel {
|
|
|
2754
2772
|
|
|
2755
2773
|
member_count?: number;
|
|
2756
2774
|
|
|
2775
|
+
message_count?: number;
|
|
2776
|
+
|
|
2757
2777
|
message_count_updated_at?: Date;
|
|
2758
2778
|
|
|
2759
2779
|
team?: string;
|
|
@@ -3064,43 +3084,7 @@ export interface ChannelMember {
|
|
|
3064
3084
|
}
|
|
3065
3085
|
|
|
3066
3086
|
export interface ChannelMemberResponse {
|
|
3067
|
-
banned: boolean;
|
|
3068
|
-
|
|
3069
3087
|
channel_role: string;
|
|
3070
|
-
|
|
3071
|
-
created_at: Date;
|
|
3072
|
-
|
|
3073
|
-
notifications_muted: boolean;
|
|
3074
|
-
|
|
3075
|
-
shadow_banned: boolean;
|
|
3076
|
-
|
|
3077
|
-
updated_at: Date;
|
|
3078
|
-
|
|
3079
|
-
custom: Record<string, any>;
|
|
3080
|
-
|
|
3081
|
-
archived_at?: Date;
|
|
3082
|
-
|
|
3083
|
-
ban_expires?: Date;
|
|
3084
|
-
|
|
3085
|
-
deleted_at?: Date;
|
|
3086
|
-
|
|
3087
|
-
invite_accepted_at?: Date;
|
|
3088
|
-
|
|
3089
|
-
invite_rejected_at?: Date;
|
|
3090
|
-
|
|
3091
|
-
invited?: boolean;
|
|
3092
|
-
|
|
3093
|
-
is_moderator?: boolean;
|
|
3094
|
-
|
|
3095
|
-
pinned_at?: Date;
|
|
3096
|
-
|
|
3097
|
-
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
3098
|
-
|
|
3099
|
-
status?: string;
|
|
3100
|
-
|
|
3101
|
-
user_id?: string;
|
|
3102
|
-
|
|
3103
|
-
user?: UserResponse;
|
|
3104
3088
|
}
|
|
3105
3089
|
|
|
3106
3090
|
export interface ChannelMessages {
|
|
@@ -3500,20 +3484,22 @@ export interface CheckPushResponse {
|
|
|
3500
3484
|
}
|
|
3501
3485
|
|
|
3502
3486
|
export interface CheckRequest {
|
|
3503
|
-
config_key: string;
|
|
3504
|
-
|
|
3505
3487
|
entity_creator_id: string;
|
|
3506
3488
|
|
|
3507
3489
|
entity_id: string;
|
|
3508
3490
|
|
|
3509
3491
|
entity_type: string;
|
|
3510
3492
|
|
|
3493
|
+
config_key?: string;
|
|
3494
|
+
|
|
3511
3495
|
config_team?: string;
|
|
3512
3496
|
|
|
3513
3497
|
test_mode?: boolean;
|
|
3514
3498
|
|
|
3515
3499
|
user_id?: string;
|
|
3516
3500
|
|
|
3501
|
+
config?: ModerationConfig;
|
|
3502
|
+
|
|
3517
3503
|
moderation_payload?: ModerationPayload;
|
|
3518
3504
|
|
|
3519
3505
|
options?: Record<string, any>;
|
|
@@ -3624,6 +3610,8 @@ export interface CommentAddedEvent {
|
|
|
3624
3610
|
|
|
3625
3611
|
fid: string;
|
|
3626
3612
|
|
|
3613
|
+
activity: ActivityResponse;
|
|
3614
|
+
|
|
3627
3615
|
comment: CommentResponse;
|
|
3628
3616
|
|
|
3629
3617
|
custom: Record<string, any>;
|
|
@@ -3660,6 +3648,8 @@ export interface CommentReactionAddedEvent {
|
|
|
3660
3648
|
|
|
3661
3649
|
fid: string;
|
|
3662
3650
|
|
|
3651
|
+
activity: ActivityResponse;
|
|
3652
|
+
|
|
3663
3653
|
comment: CommentResponse;
|
|
3664
3654
|
|
|
3665
3655
|
custom: Record<string, any>;
|
|
@@ -3698,6 +3688,8 @@ export interface CommentReactionUpdatedEvent {
|
|
|
3698
3688
|
|
|
3699
3689
|
fid: string;
|
|
3700
3690
|
|
|
3691
|
+
activity: ActivityResponse;
|
|
3692
|
+
|
|
3701
3693
|
comment: CommentResponse;
|
|
3702
3694
|
|
|
3703
3695
|
custom: Record<string, any>;
|
|
@@ -3846,17 +3838,15 @@ export interface ConfigResponse {
|
|
|
3846
3838
|
|
|
3847
3839
|
llm_config?: LLMConfig;
|
|
3848
3840
|
|
|
3849
|
-
rule_builder_config?: RuleBuilderConfig;
|
|
3850
|
-
|
|
3851
3841
|
velocity_filter_config?: VelocityFilterConfig;
|
|
3852
3842
|
|
|
3853
3843
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
3854
3844
|
}
|
|
3855
3845
|
|
|
3856
3846
|
export interface ContentCountRuleParameters {
|
|
3857
|
-
threshold
|
|
3847
|
+
threshold?: number;
|
|
3858
3848
|
|
|
3859
|
-
time_window
|
|
3849
|
+
time_window?: string;
|
|
3860
3850
|
}
|
|
3861
3851
|
|
|
3862
3852
|
export interface CountByMinuteResponse {
|
|
@@ -4115,6 +4105,8 @@ export interface CreateFeedGroupRequest {
|
|
|
4115
4105
|
|
|
4116
4106
|
notification?: NotificationConfig;
|
|
4117
4107
|
|
|
4108
|
+
push_notification?: PushNotificationConfig;
|
|
4109
|
+
|
|
4118
4110
|
ranking?: RankingConfig;
|
|
4119
4111
|
}
|
|
4120
4112
|
|
|
@@ -4515,6 +4507,8 @@ export interface DeleteFeedGroupResponse {
|
|
|
4515
4507
|
}
|
|
4516
4508
|
|
|
4517
4509
|
export interface DeleteFeedResponse {
|
|
4510
|
+
delete_feed_task_id: string;
|
|
4511
|
+
|
|
4518
4512
|
duration: string;
|
|
4519
4513
|
}
|
|
4520
4514
|
|
|
@@ -4548,6 +4542,10 @@ export interface DeleteModerationConfigResponse {
|
|
|
4548
4542
|
duration: string;
|
|
4549
4543
|
}
|
|
4550
4544
|
|
|
4545
|
+
export interface DeleteModerationRuleResponse {
|
|
4546
|
+
duration: string;
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4551
4549
|
export interface DeleteModerationTemplateResponse {
|
|
4552
4550
|
duration: string;
|
|
4553
4551
|
}
|
|
@@ -4951,6 +4949,8 @@ export interface EventHook {
|
|
|
4951
4949
|
|
|
4952
4950
|
id?: string;
|
|
4953
4951
|
|
|
4952
|
+
product?: string;
|
|
4953
|
+
|
|
4954
4954
|
sns_auth_type?: string;
|
|
4955
4955
|
|
|
4956
4956
|
sns_key?: string;
|
|
@@ -5165,6 +5165,8 @@ export interface FeedGroup {
|
|
|
5165
5165
|
|
|
5166
5166
|
notification?: NotificationConfig;
|
|
5167
5167
|
|
|
5168
|
+
push_notification?: PushNotificationConfig;
|
|
5169
|
+
|
|
5168
5170
|
ranking?: RankingConfig;
|
|
5169
5171
|
|
|
5170
5172
|
stories?: StoriesConfig;
|
|
@@ -5223,6 +5225,8 @@ export interface FeedGroupResponse {
|
|
|
5223
5225
|
|
|
5224
5226
|
notification?: NotificationConfig;
|
|
5225
5227
|
|
|
5228
|
+
push_notification?: PushNotificationConfig;
|
|
5229
|
+
|
|
5226
5230
|
ranking?: RankingConfig;
|
|
5227
5231
|
|
|
5228
5232
|
stories?: StoriesConfig;
|
|
@@ -5459,6 +5463,20 @@ export interface FeedsModerationTemplateConfig {
|
|
|
5459
5463
|
data_types: Record<string, string>;
|
|
5460
5464
|
}
|
|
5461
5465
|
|
|
5466
|
+
export interface FeedsPreferences {
|
|
5467
|
+
comment?: string;
|
|
5468
|
+
|
|
5469
|
+
comment_reaction?: string;
|
|
5470
|
+
|
|
5471
|
+
follow?: string;
|
|
5472
|
+
|
|
5473
|
+
mention?: string;
|
|
5474
|
+
|
|
5475
|
+
reaction?: string;
|
|
5476
|
+
|
|
5477
|
+
custom_activity_types?: Record<string, string>;
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5462
5480
|
export interface FeedsReactionResponse {
|
|
5463
5481
|
activity_id: string;
|
|
5464
5482
|
|
|
@@ -5540,35 +5558,39 @@ export interface FirebaseConfigFields {
|
|
|
5540
5558
|
export interface Flag {
|
|
5541
5559
|
created_at: Date;
|
|
5542
5560
|
|
|
5543
|
-
|
|
5561
|
+
entity_id: string;
|
|
5562
|
+
|
|
5563
|
+
entity_type: string;
|
|
5544
5564
|
|
|
5545
5565
|
updated_at: Date;
|
|
5546
5566
|
|
|
5547
|
-
|
|
5567
|
+
result: Array<Record<string, any>>;
|
|
5548
5568
|
|
|
5549
|
-
|
|
5569
|
+
entity_creator_id?: string;
|
|
5550
5570
|
|
|
5551
|
-
|
|
5571
|
+
is_streamed_content?: boolean;
|
|
5552
5572
|
|
|
5553
|
-
|
|
5573
|
+
moderation_payload_hash?: string;
|
|
5554
5574
|
|
|
5555
|
-
|
|
5575
|
+
reason?: string;
|
|
5556
5576
|
|
|
5557
|
-
|
|
5577
|
+
review_queue_item_id?: string;
|
|
5558
5578
|
|
|
5559
|
-
|
|
5579
|
+
type?: string;
|
|
5560
5580
|
|
|
5561
|
-
|
|
5581
|
+
labels?: string[];
|
|
5562
5582
|
|
|
5563
|
-
|
|
5583
|
+
custom?: Record<string, any>;
|
|
5564
5584
|
|
|
5565
|
-
|
|
5585
|
+
moderation_payload?: ModerationPayload;
|
|
5586
|
+
|
|
5587
|
+
review_queue_item?: ReviewQueueItem;
|
|
5566
5588
|
|
|
5567
5589
|
user?: User;
|
|
5568
5590
|
}
|
|
5569
5591
|
|
|
5570
5592
|
export interface FlagContentOptions {
|
|
5571
|
-
reason
|
|
5593
|
+
reason?: string;
|
|
5572
5594
|
}
|
|
5573
5595
|
|
|
5574
5596
|
export interface FlagDetails {
|
|
@@ -5638,7 +5660,7 @@ export interface FlagUpdatedEvent {
|
|
|
5638
5660
|
}
|
|
5639
5661
|
|
|
5640
5662
|
export interface FlagUserOptions {
|
|
5641
|
-
reason
|
|
5663
|
+
reason?: string;
|
|
5642
5664
|
}
|
|
5643
5665
|
|
|
5644
5666
|
export interface FollowBatchRequest {
|
|
@@ -5698,6 +5720,8 @@ export interface FollowRequest {
|
|
|
5698
5720
|
|
|
5699
5721
|
push_preference?: 'all' | 'none';
|
|
5700
5722
|
|
|
5723
|
+
skip_push?: boolean;
|
|
5724
|
+
|
|
5701
5725
|
custom?: Record<string, any>;
|
|
5702
5726
|
}
|
|
5703
5727
|
|
|
@@ -6123,6 +6147,12 @@ export interface GetMessageResponse {
|
|
|
6123
6147
|
pending_message_metadata?: Record<string, string>;
|
|
6124
6148
|
}
|
|
6125
6149
|
|
|
6150
|
+
export interface GetModerationRuleResponse {
|
|
6151
|
+
duration: string;
|
|
6152
|
+
|
|
6153
|
+
rule?: ModerationRuleV2Response;
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6126
6156
|
export interface GetOGResponse {
|
|
6127
6157
|
duration: string;
|
|
6128
6158
|
|
|
@@ -6213,6 +6243,8 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
6213
6243
|
|
|
6214
6244
|
notification?: NotificationConfig;
|
|
6215
6245
|
|
|
6246
|
+
push_notification?: PushNotificationConfig;
|
|
6247
|
+
|
|
6216
6248
|
ranking?: RankingConfig;
|
|
6217
6249
|
}
|
|
6218
6250
|
|
|
@@ -6447,9 +6479,9 @@ export interface HLSSettingsResponse {
|
|
|
6447
6479
|
}
|
|
6448
6480
|
|
|
6449
6481
|
export interface HarmConfig {
|
|
6450
|
-
severity
|
|
6482
|
+
severity?: number;
|
|
6451
6483
|
|
|
6452
|
-
action_sequences
|
|
6484
|
+
action_sequences?: ActionSequence[];
|
|
6453
6485
|
}
|
|
6454
6486
|
|
|
6455
6487
|
export interface HideChannelRequest {
|
|
@@ -6497,9 +6529,9 @@ export interface ImageData {
|
|
|
6497
6529
|
}
|
|
6498
6530
|
|
|
6499
6531
|
export interface ImageRuleParameters {
|
|
6500
|
-
threshold
|
|
6532
|
+
threshold?: number;
|
|
6501
6533
|
|
|
6502
|
-
time_window
|
|
6534
|
+
time_window?: string;
|
|
6503
6535
|
|
|
6504
6536
|
harm_labels?: string[];
|
|
6505
6537
|
}
|
|
@@ -6705,17 +6737,23 @@ export interface KickedUserEvent {
|
|
|
6705
6737
|
}
|
|
6706
6738
|
|
|
6707
6739
|
export interface LLMConfig {
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
rules: LLMRule[];
|
|
6740
|
+
app_context?: string;
|
|
6711
6741
|
|
|
6712
6742
|
async?: boolean;
|
|
6713
6743
|
|
|
6744
|
+
enabled?: boolean;
|
|
6745
|
+
|
|
6746
|
+
rules?: LLMRule[];
|
|
6747
|
+
|
|
6714
6748
|
severity_descriptions?: Record<string, string>;
|
|
6715
6749
|
}
|
|
6716
6750
|
|
|
6717
6751
|
export interface LLMRule {
|
|
6718
|
-
|
|
6752
|
+
description: string;
|
|
6753
|
+
|
|
6754
|
+
label: string;
|
|
6755
|
+
|
|
6756
|
+
action?:
|
|
6719
6757
|
| 'flag'
|
|
6720
6758
|
| 'shadow'
|
|
6721
6759
|
| 'remove'
|
|
@@ -6724,11 +6762,7 @@ export interface LLMRule {
|
|
|
6724
6762
|
| 'bounce_remove'
|
|
6725
6763
|
| 'keep';
|
|
6726
6764
|
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
label: string;
|
|
6730
|
-
|
|
6731
|
-
severity_rules: BodyguardSeverityRule[];
|
|
6765
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
6732
6766
|
}
|
|
6733
6767
|
|
|
6734
6768
|
export interface Label {
|
|
@@ -7136,6 +7170,8 @@ export interface Message {
|
|
|
7136
7170
|
|
|
7137
7171
|
image_labels?: Record<string, string[]>;
|
|
7138
7172
|
|
|
7173
|
+
member?: ChannelMember;
|
|
7174
|
+
|
|
7139
7175
|
moderation?: ModerationV2Response;
|
|
7140
7176
|
|
|
7141
7177
|
pinned_by?: User;
|
|
@@ -7192,6 +7228,8 @@ export interface MessageDeletedEvent {
|
|
|
7192
7228
|
|
|
7193
7229
|
type: string;
|
|
7194
7230
|
|
|
7231
|
+
deleted_for_me?: boolean;
|
|
7232
|
+
|
|
7195
7233
|
team?: string;
|
|
7196
7234
|
|
|
7197
7235
|
thread_participants?: User[];
|
|
@@ -7474,6 +7512,8 @@ export interface MessageResponse {
|
|
|
7474
7512
|
|
|
7475
7513
|
image_labels?: Record<string, string[]>;
|
|
7476
7514
|
|
|
7515
|
+
member?: ChannelMemberResponse;
|
|
7516
|
+
|
|
7477
7517
|
moderation?: ModerationV2Response;
|
|
7478
7518
|
|
|
7479
7519
|
pinned_by?: UserResponse;
|
|
@@ -7628,6 +7668,8 @@ export interface MessageWithChannelResponse {
|
|
|
7628
7668
|
|
|
7629
7669
|
image_labels?: Record<string, string[]>;
|
|
7630
7670
|
|
|
7671
|
+
member?: ChannelMemberResponse;
|
|
7672
|
+
|
|
7631
7673
|
moderation?: ModerationV2Response;
|
|
7632
7674
|
|
|
7633
7675
|
pinned_by?: UserResponse;
|
|
@@ -7675,6 +7717,42 @@ export interface ModerationCheckCompletedEvent {
|
|
|
7675
7717
|
received_at?: Date;
|
|
7676
7718
|
}
|
|
7677
7719
|
|
|
7720
|
+
export interface ModerationConfig {
|
|
7721
|
+
async?: boolean;
|
|
7722
|
+
|
|
7723
|
+
created_at?: Date;
|
|
7724
|
+
|
|
7725
|
+
key?: string;
|
|
7726
|
+
|
|
7727
|
+
team?: string;
|
|
7728
|
+
|
|
7729
|
+
updated_at?: Date;
|
|
7730
|
+
|
|
7731
|
+
ai_image_config?: AIImageConfig;
|
|
7732
|
+
|
|
7733
|
+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
7734
|
+
|
|
7735
|
+
ai_text_config?: AITextConfig;
|
|
7736
|
+
|
|
7737
|
+
ai_video_config?: AIVideoConfig;
|
|
7738
|
+
|
|
7739
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
7740
|
+
|
|
7741
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
7742
|
+
|
|
7743
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
7744
|
+
|
|
7745
|
+
block_list_config?: BlockListConfig;
|
|
7746
|
+
|
|
7747
|
+
google_vision_config?: GoogleVisionConfig;
|
|
7748
|
+
|
|
7749
|
+
llm_config?: LLMConfig;
|
|
7750
|
+
|
|
7751
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
7752
|
+
|
|
7753
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
7754
|
+
}
|
|
7755
|
+
|
|
7678
7756
|
export interface ModerationCustomActionEvent {
|
|
7679
7757
|
created_at: Date;
|
|
7680
7758
|
|
|
@@ -7694,7 +7772,7 @@ export interface ModerationDashboardPreferences {
|
|
|
7694
7772
|
}
|
|
7695
7773
|
|
|
7696
7774
|
export interface ModerationFlagResponse {
|
|
7697
|
-
created_at:
|
|
7775
|
+
created_at: Date;
|
|
7698
7776
|
|
|
7699
7777
|
entity_id: string;
|
|
7700
7778
|
|
|
@@ -7702,7 +7780,7 @@ export interface ModerationFlagResponse {
|
|
|
7702
7780
|
|
|
7703
7781
|
type: string;
|
|
7704
7782
|
|
|
7705
|
-
updated_at:
|
|
7783
|
+
updated_at: Date;
|
|
7706
7784
|
|
|
7707
7785
|
user_id: string;
|
|
7708
7786
|
|
|
@@ -7769,6 +7847,36 @@ export interface ModerationResponse {
|
|
|
7769
7847
|
toxic: number;
|
|
7770
7848
|
}
|
|
7771
7849
|
|
|
7850
|
+
export interface ModerationRuleV2Response {
|
|
7851
|
+
created_at: Date;
|
|
7852
|
+
|
|
7853
|
+
description: string;
|
|
7854
|
+
|
|
7855
|
+
enabled: boolean;
|
|
7856
|
+
|
|
7857
|
+
id: string;
|
|
7858
|
+
|
|
7859
|
+
name: string;
|
|
7860
|
+
|
|
7861
|
+
rule_type: string;
|
|
7862
|
+
|
|
7863
|
+
team: string;
|
|
7864
|
+
|
|
7865
|
+
updated_at: Date;
|
|
7866
|
+
|
|
7867
|
+
config_keys: string[];
|
|
7868
|
+
|
|
7869
|
+
action: RuleBuilderAction;
|
|
7870
|
+
|
|
7871
|
+
cooldown_period?: string;
|
|
7872
|
+
|
|
7873
|
+
logic?: string;
|
|
7874
|
+
|
|
7875
|
+
conditions?: RuleBuilderCondition[];
|
|
7876
|
+
|
|
7877
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7878
|
+
}
|
|
7879
|
+
|
|
7772
7880
|
export interface ModerationV2Response {
|
|
7773
7881
|
action: string;
|
|
7774
7882
|
|
|
@@ -7988,6 +8096,7 @@ export const OwnCapability = {
|
|
|
7988
8096
|
REMOVE_CALL_MEMBER: 'remove-call-member',
|
|
7989
8097
|
SCREENSHARE: 'screenshare',
|
|
7990
8098
|
SEND_AUDIO: 'send-audio',
|
|
8099
|
+
SEND_CLOSED_CAPTIONS_CALL: 'send-closed-captions-call',
|
|
7991
8100
|
SEND_VIDEO: 'send-video',
|
|
7992
8101
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
7993
8102
|
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
@@ -8564,6 +8673,12 @@ export interface PushConfig {
|
|
|
8564
8673
|
offline_only?: boolean;
|
|
8565
8674
|
}
|
|
8566
8675
|
|
|
8676
|
+
export interface PushNotificationConfig {
|
|
8677
|
+
enable_push?: boolean;
|
|
8678
|
+
|
|
8679
|
+
push_types?: string[];
|
|
8680
|
+
}
|
|
8681
|
+
|
|
8567
8682
|
export interface PushNotificationFields {
|
|
8568
8683
|
offline_only: boolean;
|
|
8569
8684
|
|
|
@@ -8595,9 +8710,13 @@ export interface PushPreferenceInput {
|
|
|
8595
8710
|
|
|
8596
8711
|
disabled_until?: Date;
|
|
8597
8712
|
|
|
8713
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
8714
|
+
|
|
8598
8715
|
remove_disable?: boolean;
|
|
8599
8716
|
|
|
8600
8717
|
user_id?: string;
|
|
8718
|
+
|
|
8719
|
+
feeds_preferences?: FeedsPreferences;
|
|
8601
8720
|
}
|
|
8602
8721
|
|
|
8603
8722
|
export interface PushPreferences {
|
|
@@ -8606,6 +8725,10 @@ export interface PushPreferences {
|
|
|
8606
8725
|
chat_level?: string;
|
|
8607
8726
|
|
|
8608
8727
|
disabled_until?: Date;
|
|
8728
|
+
|
|
8729
|
+
feeds_level?: string;
|
|
8730
|
+
|
|
8731
|
+
feeds_preferences?: FeedsPreferences;
|
|
8609
8732
|
}
|
|
8610
8733
|
|
|
8611
8734
|
export interface PushProvider {
|
|
@@ -8731,7 +8854,13 @@ export interface PushTemplate {
|
|
|
8731
8854
|
| 'message.new'
|
|
8732
8855
|
| 'message.updated'
|
|
8733
8856
|
| 'reaction.new'
|
|
8734
|
-
| 'notification.reminder_due'
|
|
8857
|
+
| 'notification.reminder_due'
|
|
8858
|
+
| 'feeds.activity.added'
|
|
8859
|
+
| 'feeds.comment.added'
|
|
8860
|
+
| 'feeds.activity.reaction.added'
|
|
8861
|
+
| 'feeds.comment.reaction.added'
|
|
8862
|
+
| 'feeds.follow.created'
|
|
8863
|
+
| 'feeds.notification_feed.updated';
|
|
8735
8864
|
|
|
8736
8865
|
updated_at: Date;
|
|
8737
8866
|
|
|
@@ -9348,6 +9477,34 @@ export interface QueryModerationLogsResponse {
|
|
|
9348
9477
|
prev?: string;
|
|
9349
9478
|
}
|
|
9350
9479
|
|
|
9480
|
+
export interface QueryModerationRulesRequest {
|
|
9481
|
+
limit?: number;
|
|
9482
|
+
|
|
9483
|
+
next?: string;
|
|
9484
|
+
|
|
9485
|
+
prev?: string;
|
|
9486
|
+
|
|
9487
|
+
user_id?: string;
|
|
9488
|
+
|
|
9489
|
+
sort?: SortParamRequest[];
|
|
9490
|
+
|
|
9491
|
+
filter?: Record<string, any>;
|
|
9492
|
+
|
|
9493
|
+
user?: UserRequest;
|
|
9494
|
+
}
|
|
9495
|
+
|
|
9496
|
+
export interface QueryModerationRulesResponse {
|
|
9497
|
+
duration: string;
|
|
9498
|
+
|
|
9499
|
+
rules: ModerationRuleV2Response[];
|
|
9500
|
+
|
|
9501
|
+
default_llm_labels: Record<string, string>;
|
|
9502
|
+
|
|
9503
|
+
next?: string;
|
|
9504
|
+
|
|
9505
|
+
prev?: string;
|
|
9506
|
+
}
|
|
9507
|
+
|
|
9351
9508
|
export interface QueryPollVotesRequest {
|
|
9352
9509
|
limit?: number;
|
|
9353
9510
|
|
|
@@ -10281,7 +10438,7 @@ export interface Role {
|
|
|
10281
10438
|
}
|
|
10282
10439
|
|
|
10283
10440
|
export interface RuleBuilderAction {
|
|
10284
|
-
type
|
|
10441
|
+
type?: string;
|
|
10285
10442
|
|
|
10286
10443
|
ban_options?: BanOptions;
|
|
10287
10444
|
|
|
@@ -10293,10 +10450,10 @@ export interface RuleBuilderAction {
|
|
|
10293
10450
|
}
|
|
10294
10451
|
|
|
10295
10452
|
export interface RuleBuilderCondition {
|
|
10296
|
-
type: string;
|
|
10297
|
-
|
|
10298
10453
|
confidence?: number;
|
|
10299
10454
|
|
|
10455
|
+
type?: string;
|
|
10456
|
+
|
|
10300
10457
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
10301
10458
|
|
|
10302
10459
|
image_content_params?: ImageContentParameters;
|
|
@@ -10309,6 +10466,8 @@ export interface RuleBuilderCondition {
|
|
|
10309
10466
|
|
|
10310
10467
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
10311
10468
|
|
|
10469
|
+
user_custom_property_params?: UserCustomPropertyParameters;
|
|
10470
|
+
|
|
10312
10471
|
user_rule_params?: UserRuleParameters;
|
|
10313
10472
|
|
|
10314
10473
|
video_content_params?: VideoContentParameters;
|
|
@@ -10317,30 +10476,26 @@ export interface RuleBuilderCondition {
|
|
|
10317
10476
|
}
|
|
10318
10477
|
|
|
10319
10478
|
export interface RuleBuilderConditionGroup {
|
|
10320
|
-
logic
|
|
10479
|
+
logic?: string;
|
|
10321
10480
|
|
|
10322
|
-
conditions
|
|
10481
|
+
conditions?: RuleBuilderCondition[];
|
|
10323
10482
|
}
|
|
10324
10483
|
|
|
10325
10484
|
export interface RuleBuilderConfig {
|
|
10326
|
-
rules: RuleBuilderRule[];
|
|
10327
|
-
|
|
10328
10485
|
async?: boolean;
|
|
10486
|
+
|
|
10487
|
+
rules?: RuleBuilderRule[];
|
|
10329
10488
|
}
|
|
10330
10489
|
|
|
10331
10490
|
export interface RuleBuilderRule {
|
|
10332
|
-
enabled: boolean;
|
|
10333
|
-
|
|
10334
|
-
id: string;
|
|
10335
|
-
|
|
10336
|
-
name: string;
|
|
10337
|
-
|
|
10338
10491
|
rule_type: string;
|
|
10339
10492
|
|
|
10340
10493
|
action: RuleBuilderAction;
|
|
10341
10494
|
|
|
10342
10495
|
cooldown_period?: string;
|
|
10343
10496
|
|
|
10497
|
+
id?: string;
|
|
10498
|
+
|
|
10344
10499
|
logic?: string;
|
|
10345
10500
|
|
|
10346
10501
|
conditions?: RuleBuilderCondition[];
|
|
@@ -10390,6 +10545,8 @@ export interface STTEgressConfig {
|
|
|
10390
10545
|
translation_languages?: string[];
|
|
10391
10546
|
|
|
10392
10547
|
external_storage?: ExternalStorage;
|
|
10548
|
+
|
|
10549
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
10393
10550
|
}
|
|
10394
10551
|
|
|
10395
10552
|
export interface ScreensharingSettings {
|
|
@@ -10525,6 +10682,8 @@ export interface SearchResultMessage {
|
|
|
10525
10682
|
|
|
10526
10683
|
image_labels?: Record<string, string[]>;
|
|
10527
10684
|
|
|
10685
|
+
member?: ChannelMemberResponse;
|
|
10686
|
+
|
|
10528
10687
|
moderation?: ModerationV2Response;
|
|
10529
10688
|
|
|
10530
10689
|
pinned_by?: UserResponse;
|
|
@@ -10622,6 +10781,30 @@ export interface SendCallEventResponse {
|
|
|
10622
10781
|
duration: string;
|
|
10623
10782
|
}
|
|
10624
10783
|
|
|
10784
|
+
export interface SendClosedCaptionRequest {
|
|
10785
|
+
speaker_id: string;
|
|
10786
|
+
|
|
10787
|
+
text: string;
|
|
10788
|
+
|
|
10789
|
+
end_time?: Date;
|
|
10790
|
+
|
|
10791
|
+
language?: string;
|
|
10792
|
+
|
|
10793
|
+
service?: string;
|
|
10794
|
+
|
|
10795
|
+
start_time?: Date;
|
|
10796
|
+
|
|
10797
|
+
translated?: boolean;
|
|
10798
|
+
|
|
10799
|
+
user_id?: string;
|
|
10800
|
+
|
|
10801
|
+
user?: UserRequest;
|
|
10802
|
+
}
|
|
10803
|
+
|
|
10804
|
+
export interface SendClosedCaptionResponse {
|
|
10805
|
+
duration: string;
|
|
10806
|
+
}
|
|
10807
|
+
|
|
10625
10808
|
export interface SendEventRequest {
|
|
10626
10809
|
event: EventRequest;
|
|
10627
10810
|
}
|
|
@@ -10792,6 +10975,12 @@ export interface SortParamRequest {
|
|
|
10792
10975
|
field?: string;
|
|
10793
10976
|
}
|
|
10794
10977
|
|
|
10978
|
+
export interface SpeechSegmentConfig {
|
|
10979
|
+
max_speech_caption_ms?: number;
|
|
10980
|
+
|
|
10981
|
+
silence_duration_ms?: number;
|
|
10982
|
+
}
|
|
10983
|
+
|
|
10795
10984
|
export interface StartCampaignRequest {
|
|
10796
10985
|
scheduled_for?: Date;
|
|
10797
10986
|
|
|
@@ -10849,6 +11038,8 @@ export interface StartClosedCaptionsRequest {
|
|
|
10849
11038
|
| 'et'
|
|
10850
11039
|
| 'sl'
|
|
10851
11040
|
| 'sk';
|
|
11041
|
+
|
|
11042
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
10852
11043
|
}
|
|
10853
11044
|
|
|
10854
11045
|
export interface StartClosedCaptionsResponse {
|
|
@@ -11106,20 +11297,24 @@ export interface TextContentParameters {
|
|
|
11106
11297
|
blocklist_match?: string[];
|
|
11107
11298
|
|
|
11108
11299
|
harm_labels?: string[];
|
|
11300
|
+
|
|
11301
|
+
llm_harm_labels?: Record<string, string>;
|
|
11109
11302
|
}
|
|
11110
11303
|
|
|
11111
11304
|
export interface TextRuleParameters {
|
|
11112
|
-
threshold: number;
|
|
11113
|
-
|
|
11114
|
-
time_window: string;
|
|
11115
|
-
|
|
11116
11305
|
contains_url?: boolean;
|
|
11117
11306
|
|
|
11118
11307
|
severity?: string;
|
|
11119
11308
|
|
|
11309
|
+
threshold?: number;
|
|
11310
|
+
|
|
11311
|
+
time_window?: string;
|
|
11312
|
+
|
|
11120
11313
|
blocklist_match?: string[];
|
|
11121
11314
|
|
|
11122
11315
|
harm_labels?: string[];
|
|
11316
|
+
|
|
11317
|
+
llm_harm_labels?: Record<string, string>;
|
|
11123
11318
|
}
|
|
11124
11319
|
|
|
11125
11320
|
export interface ThreadParticipant {
|
|
@@ -11145,6 +11340,8 @@ export interface ThreadParticipant {
|
|
|
11145
11340
|
}
|
|
11146
11341
|
|
|
11147
11342
|
export interface ThreadResponse {
|
|
11343
|
+
active_participant_count: number;
|
|
11344
|
+
|
|
11148
11345
|
channel_cid: string;
|
|
11149
11346
|
|
|
11150
11347
|
created_at: Date;
|
|
@@ -11153,20 +11350,18 @@ export interface ThreadResponse {
|
|
|
11153
11350
|
|
|
11154
11351
|
parent_message_id: string;
|
|
11155
11352
|
|
|
11353
|
+
participant_count: number;
|
|
11354
|
+
|
|
11156
11355
|
title: string;
|
|
11157
11356
|
|
|
11158
11357
|
updated_at: Date;
|
|
11159
11358
|
|
|
11160
11359
|
custom: Record<string, any>;
|
|
11161
11360
|
|
|
11162
|
-
active_participant_count?: number;
|
|
11163
|
-
|
|
11164
11361
|
deleted_at?: Date;
|
|
11165
11362
|
|
|
11166
11363
|
last_message_at?: Date;
|
|
11167
11364
|
|
|
11168
|
-
participant_count?: number;
|
|
11169
|
-
|
|
11170
11365
|
reply_count?: number;
|
|
11171
11366
|
|
|
11172
11367
|
thread_participants?: ThreadParticipant[];
|
|
@@ -11179,6 +11374,8 @@ export interface ThreadResponse {
|
|
|
11179
11374
|
}
|
|
11180
11375
|
|
|
11181
11376
|
export interface ThreadStateResponse {
|
|
11377
|
+
active_participant_count: number;
|
|
11378
|
+
|
|
11182
11379
|
channel_cid: string;
|
|
11183
11380
|
|
|
11184
11381
|
created_at: Date;
|
|
@@ -11187,6 +11384,8 @@ export interface ThreadStateResponse {
|
|
|
11187
11384
|
|
|
11188
11385
|
parent_message_id: string;
|
|
11189
11386
|
|
|
11387
|
+
participant_count: number;
|
|
11388
|
+
|
|
11190
11389
|
title: string;
|
|
11191
11390
|
|
|
11192
11391
|
updated_at: Date;
|
|
@@ -11195,14 +11394,10 @@ export interface ThreadStateResponse {
|
|
|
11195
11394
|
|
|
11196
11395
|
custom: Record<string, any>;
|
|
11197
11396
|
|
|
11198
|
-
active_participant_count?: number;
|
|
11199
|
-
|
|
11200
11397
|
deleted_at?: Date;
|
|
11201
11398
|
|
|
11202
11399
|
last_message_at?: Date;
|
|
11203
11400
|
|
|
11204
|
-
participant_count?: number;
|
|
11205
|
-
|
|
11206
11401
|
reply_count?: number;
|
|
11207
11402
|
|
|
11208
11403
|
read?: ReadStateResponse[];
|
|
@@ -11363,11 +11558,11 @@ export interface TranscriptionSettings {
|
|
|
11363
11558
|
| 'sk';
|
|
11364
11559
|
|
|
11365
11560
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
11561
|
+
|
|
11562
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
11366
11563
|
}
|
|
11367
11564
|
|
|
11368
11565
|
export interface TranscriptionSettingsRequest {
|
|
11369
|
-
mode: 'available' | 'disabled' | 'auto-on';
|
|
11370
|
-
|
|
11371
11566
|
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
11372
11567
|
|
|
11373
11568
|
language?:
|
|
@@ -11408,6 +11603,10 @@ export interface TranscriptionSettingsRequest {
|
|
|
11408
11603
|
| 'et'
|
|
11409
11604
|
| 'sl'
|
|
11410
11605
|
| 'sk';
|
|
11606
|
+
|
|
11607
|
+
mode?: 'available' | 'disabled' | 'auto-on';
|
|
11608
|
+
|
|
11609
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
11411
11610
|
}
|
|
11412
11611
|
|
|
11413
11612
|
export interface TranscriptionSettingsResponse {
|
|
@@ -11453,6 +11652,8 @@ export interface TranscriptionSettingsResponse {
|
|
|
11453
11652
|
| 'sk';
|
|
11454
11653
|
|
|
11455
11654
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
11655
|
+
|
|
11656
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
11456
11657
|
}
|
|
11457
11658
|
|
|
11458
11659
|
export interface TranslateMessageRequest {
|
|
@@ -12167,6 +12368,8 @@ export interface UpdateCommandResponse {
|
|
|
12167
12368
|
export interface UpdateCommentRequest {
|
|
12168
12369
|
comment?: string;
|
|
12169
12370
|
|
|
12371
|
+
skip_push?: boolean;
|
|
12372
|
+
|
|
12170
12373
|
custom?: Record<string, any>;
|
|
12171
12374
|
}
|
|
12172
12375
|
|
|
@@ -12213,6 +12416,8 @@ export interface UpdateFeedGroupRequest {
|
|
|
12213
12416
|
|
|
12214
12417
|
notification?: NotificationConfig;
|
|
12215
12418
|
|
|
12419
|
+
push_notification?: PushNotificationConfig;
|
|
12420
|
+
|
|
12216
12421
|
ranking?: RankingConfig;
|
|
12217
12422
|
}
|
|
12218
12423
|
|
|
@@ -12283,6 +12488,8 @@ export interface UpdateFollowRequest {
|
|
|
12283
12488
|
|
|
12284
12489
|
push_preference?: 'all' | 'none';
|
|
12285
12490
|
|
|
12491
|
+
skip_push?: boolean;
|
|
12492
|
+
|
|
12286
12493
|
custom?: Record<string, any>;
|
|
12287
12494
|
}
|
|
12288
12495
|
|
|
@@ -12552,6 +12759,36 @@ export interface UpsertConfigResponse {
|
|
|
12552
12759
|
config?: ConfigResponse;
|
|
12553
12760
|
}
|
|
12554
12761
|
|
|
12762
|
+
export interface UpsertModerationRuleRequest {
|
|
12763
|
+
name: string;
|
|
12764
|
+
|
|
12765
|
+
rule_type: string;
|
|
12766
|
+
|
|
12767
|
+
action: RuleBuilderAction;
|
|
12768
|
+
|
|
12769
|
+
cooldown_period?: string;
|
|
12770
|
+
|
|
12771
|
+
description?: string;
|
|
12772
|
+
|
|
12773
|
+
enabled?: boolean;
|
|
12774
|
+
|
|
12775
|
+
logic?: string;
|
|
12776
|
+
|
|
12777
|
+
team?: string;
|
|
12778
|
+
|
|
12779
|
+
conditions?: RuleBuilderCondition[];
|
|
12780
|
+
|
|
12781
|
+
config_keys?: string[];
|
|
12782
|
+
|
|
12783
|
+
groups?: RuleBuilderConditionGroup[];
|
|
12784
|
+
}
|
|
12785
|
+
|
|
12786
|
+
export interface UpsertModerationRuleResponse {
|
|
12787
|
+
duration: string;
|
|
12788
|
+
|
|
12789
|
+
rule?: ModerationRuleV2Response;
|
|
12790
|
+
}
|
|
12791
|
+
|
|
12555
12792
|
export interface UpsertModerationTemplateRequest {
|
|
12556
12793
|
name: string;
|
|
12557
12794
|
|
|
@@ -12600,7 +12837,13 @@ export interface UpsertPushTemplateRequest {
|
|
|
12600
12837
|
| 'message.new'
|
|
12601
12838
|
| 'message.updated'
|
|
12602
12839
|
| 'reaction.new'
|
|
12603
|
-
| 'notification.reminder_due'
|
|
12840
|
+
| 'notification.reminder_due'
|
|
12841
|
+
| 'feeds.activity.added'
|
|
12842
|
+
| 'feeds.comment.added'
|
|
12843
|
+
| 'feeds.activity.reaction.added'
|
|
12844
|
+
| 'feeds.comment.reaction.added'
|
|
12845
|
+
| 'feeds.follow.created'
|
|
12846
|
+
| 'feeds.notification_feed.updated';
|
|
12604
12847
|
|
|
12605
12848
|
push_provider_type: 'firebase' | 'apn';
|
|
12606
12849
|
|
|
@@ -12691,6 +12934,12 @@ export interface UserCustomEventRequest {
|
|
|
12691
12934
|
custom?: Record<string, any>;
|
|
12692
12935
|
}
|
|
12693
12936
|
|
|
12937
|
+
export interface UserCustomPropertyParameters {
|
|
12938
|
+
operator?: string;
|
|
12939
|
+
|
|
12940
|
+
property_key?: string;
|
|
12941
|
+
}
|
|
12942
|
+
|
|
12694
12943
|
export interface UserDeactivatedEvent {
|
|
12695
12944
|
created_at: Date;
|
|
12696
12945
|
|
|
@@ -12760,8 +13009,6 @@ export interface UserFlaggedEvent {
|
|
|
12760
13009
|
export interface UserMessagesDeletedEvent {
|
|
12761
13010
|
created_at: Date;
|
|
12762
13011
|
|
|
12763
|
-
soft_delete: boolean;
|
|
12764
|
-
|
|
12765
13012
|
custom: Record<string, any>;
|
|
12766
13013
|
|
|
12767
13014
|
user: UserResponseCommonFields;
|
|
@@ -12772,6 +13019,8 @@ export interface UserMessagesDeletedEvent {
|
|
|
12772
13019
|
|
|
12773
13020
|
channel_member_count?: number;
|
|
12774
13021
|
|
|
13022
|
+
channel_message_count?: number;
|
|
13023
|
+
|
|
12775
13024
|
channel_type?: string;
|
|
12776
13025
|
|
|
12777
13026
|
cid?: string;
|
|
@@ -13044,53 +13293,53 @@ export interface UserUpdatedEvent {
|
|
|
13044
13293
|
}
|
|
13045
13294
|
|
|
13046
13295
|
export interface VelocityFilterConfig {
|
|
13047
|
-
advanced_filters
|
|
13296
|
+
advanced_filters?: boolean;
|
|
13048
13297
|
|
|
13049
|
-
|
|
13298
|
+
async?: boolean;
|
|
13050
13299
|
|
|
13051
|
-
|
|
13300
|
+
cascading_actions?: boolean;
|
|
13052
13301
|
|
|
13053
|
-
|
|
13302
|
+
cids_per_user?: number;
|
|
13054
13303
|
|
|
13055
|
-
|
|
13304
|
+
enabled?: boolean;
|
|
13056
13305
|
|
|
13057
|
-
|
|
13306
|
+
first_message_only?: boolean;
|
|
13058
13307
|
|
|
13059
|
-
|
|
13308
|
+
rules?: VelocityFilterConfigRule[];
|
|
13060
13309
|
}
|
|
13061
13310
|
|
|
13062
13311
|
export interface VelocityFilterConfigRule {
|
|
13063
13312
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
13064
13313
|
|
|
13065
|
-
ban_duration
|
|
13314
|
+
ban_duration?: number;
|
|
13066
13315
|
|
|
13067
|
-
cascading_action
|
|
13316
|
+
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
13068
13317
|
|
|
13069
|
-
cascading_threshold
|
|
13318
|
+
cascading_threshold?: number;
|
|
13070
13319
|
|
|
13071
|
-
check_message_context
|
|
13320
|
+
check_message_context?: boolean;
|
|
13072
13321
|
|
|
13073
|
-
fast_spam_threshold
|
|
13322
|
+
fast_spam_threshold?: number;
|
|
13074
13323
|
|
|
13075
|
-
fast_spam_ttl
|
|
13324
|
+
fast_spam_ttl?: number;
|
|
13076
13325
|
|
|
13077
|
-
ip_ban
|
|
13326
|
+
ip_ban?: boolean;
|
|
13078
13327
|
|
|
13079
|
-
probation_period
|
|
13328
|
+
probation_period?: number;
|
|
13080
13329
|
|
|
13081
|
-
shadow_ban
|
|
13330
|
+
shadow_ban?: boolean;
|
|
13082
13331
|
|
|
13083
|
-
|
|
13332
|
+
slow_spam_ban_duration?: number;
|
|
13084
13333
|
|
|
13085
|
-
|
|
13334
|
+
slow_spam_threshold?: number;
|
|
13086
13335
|
|
|
13087
|
-
|
|
13336
|
+
slow_spam_ttl?: number;
|
|
13088
13337
|
|
|
13089
|
-
|
|
13338
|
+
url_only?: boolean;
|
|
13090
13339
|
}
|
|
13091
13340
|
|
|
13092
13341
|
export interface VideoCallRuleConfig {
|
|
13093
|
-
rules
|
|
13342
|
+
rules?: Record<string, HarmConfig>;
|
|
13094
13343
|
}
|
|
13095
13344
|
|
|
13096
13345
|
export interface VideoContentParameters {
|
|
@@ -13116,9 +13365,9 @@ export interface VideoReactionsResponse {
|
|
|
13116
13365
|
}
|
|
13117
13366
|
|
|
13118
13367
|
export interface VideoRuleParameters {
|
|
13119
|
-
threshold
|
|
13368
|
+
threshold?: number;
|
|
13120
13369
|
|
|
13121
|
-
time_window
|
|
13370
|
+
time_window?: string;
|
|
13122
13371
|
|
|
13123
13372
|
harm_labels?: string[];
|
|
13124
13373
|
}
|