@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
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,25 @@ 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
|
+
|
|
218
|
+
warning_text?: string;
|
|
219
|
+
}
|
|
217
220
|
|
|
218
|
-
|
|
221
|
+
export interface ActiveCallsBitrateStats {
|
|
222
|
+
p10: number;
|
|
223
|
+
|
|
224
|
+
p50: number;
|
|
219
225
|
}
|
|
220
226
|
|
|
221
227
|
export interface ActiveCallsFPSStats {
|
|
@@ -701,6 +707,8 @@ export interface AddCommentReactionRequest {
|
|
|
701
707
|
|
|
702
708
|
create_notification_activity?: boolean;
|
|
703
709
|
|
|
710
|
+
skip_push?: boolean;
|
|
711
|
+
|
|
704
712
|
user_id?: string;
|
|
705
713
|
|
|
706
714
|
custom?: Record<string, any>;
|
|
@@ -727,6 +735,8 @@ export interface AddCommentRequest {
|
|
|
727
735
|
|
|
728
736
|
parent_id?: string;
|
|
729
737
|
|
|
738
|
+
skip_push?: boolean;
|
|
739
|
+
|
|
730
740
|
user_id?: string;
|
|
731
741
|
|
|
732
742
|
attachments?: Attachment[];
|
|
@@ -765,6 +775,8 @@ export interface AddReactionRequest {
|
|
|
765
775
|
|
|
766
776
|
create_notification_activity?: boolean;
|
|
767
777
|
|
|
778
|
+
skip_push?: boolean;
|
|
779
|
+
|
|
768
780
|
user_id?: string;
|
|
769
781
|
|
|
770
782
|
custom?: Record<string, any>;
|
|
@@ -831,6 +843,8 @@ export interface AppResponseFields {
|
|
|
831
843
|
|
|
832
844
|
moderation_enabled: boolean;
|
|
833
845
|
|
|
846
|
+
moderation_llm_configurability_enabled: boolean;
|
|
847
|
+
|
|
834
848
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
835
849
|
|
|
836
850
|
moderation_webhook_url: string;
|
|
@@ -1111,11 +1125,11 @@ export interface AutomodDetails {
|
|
|
1111
1125
|
}
|
|
1112
1126
|
|
|
1113
1127
|
export interface AutomodPlatformCircumventionConfig {
|
|
1114
|
-
|
|
1128
|
+
async?: boolean;
|
|
1115
1129
|
|
|
1116
|
-
|
|
1130
|
+
enabled?: boolean;
|
|
1117
1131
|
|
|
1118
|
-
|
|
1132
|
+
rules?: AutomodRule[];
|
|
1119
1133
|
}
|
|
1120
1134
|
|
|
1121
1135
|
export interface AutomodRule {
|
|
@@ -1133,11 +1147,11 @@ export interface AutomodRule {
|
|
|
1133
1147
|
}
|
|
1134
1148
|
|
|
1135
1149
|
export interface AutomodSemanticFiltersConfig {
|
|
1136
|
-
|
|
1150
|
+
async?: boolean;
|
|
1137
1151
|
|
|
1138
|
-
|
|
1152
|
+
enabled?: boolean;
|
|
1139
1153
|
|
|
1140
|
-
|
|
1154
|
+
rules?: AutomodSemanticFiltersRule[];
|
|
1141
1155
|
}
|
|
1142
1156
|
|
|
1143
1157
|
export interface AutomodSemanticFiltersRule {
|
|
@@ -1149,11 +1163,11 @@ export interface AutomodSemanticFiltersRule {
|
|
|
1149
1163
|
}
|
|
1150
1164
|
|
|
1151
1165
|
export interface AutomodToxicityConfig {
|
|
1152
|
-
|
|
1166
|
+
async?: boolean;
|
|
1153
1167
|
|
|
1154
|
-
|
|
1168
|
+
enabled?: boolean;
|
|
1155
1169
|
|
|
1156
|
-
|
|
1170
|
+
rules?: AutomodRule[];
|
|
1157
1171
|
}
|
|
1158
1172
|
|
|
1159
1173
|
export interface AzureRequest {
|
|
@@ -1215,13 +1229,13 @@ export interface BanActionRequest {
|
|
|
1215
1229
|
}
|
|
1216
1230
|
|
|
1217
1231
|
export interface BanOptions {
|
|
1218
|
-
duration
|
|
1232
|
+
duration?: number;
|
|
1219
1233
|
|
|
1220
|
-
ip_ban
|
|
1234
|
+
ip_ban?: boolean;
|
|
1221
1235
|
|
|
1222
|
-
reason
|
|
1236
|
+
reason?: string;
|
|
1223
1237
|
|
|
1224
|
-
shadow_ban
|
|
1238
|
+
shadow_ban?: boolean;
|
|
1225
1239
|
}
|
|
1226
1240
|
|
|
1227
1241
|
export interface BanRequest {
|
|
@@ -1261,15 +1275,15 @@ export interface BanResponse {
|
|
|
1261
1275
|
}
|
|
1262
1276
|
|
|
1263
1277
|
export interface BlockContentOptions {
|
|
1264
|
-
reason
|
|
1278
|
+
reason?: string;
|
|
1265
1279
|
}
|
|
1266
1280
|
|
|
1267
1281
|
export interface BlockListConfig {
|
|
1268
|
-
|
|
1282
|
+
async?: boolean;
|
|
1269
1283
|
|
|
1270
|
-
|
|
1284
|
+
enabled?: boolean;
|
|
1271
1285
|
|
|
1272
|
-
|
|
1286
|
+
rules?: BlockListRule[];
|
|
1273
1287
|
}
|
|
1274
1288
|
|
|
1275
1289
|
export interface BlockListOptions {
|
|
@@ -1304,9 +1318,9 @@ export interface BlockListRule {
|
|
|
1304
1318
|
| 'bounce_flag'
|
|
1305
1319
|
| 'bounce_remove';
|
|
1306
1320
|
|
|
1307
|
-
name
|
|
1321
|
+
name?: string;
|
|
1308
1322
|
|
|
1309
|
-
team
|
|
1323
|
+
team?: string;
|
|
1310
1324
|
}
|
|
1311
1325
|
|
|
1312
1326
|
export interface BlockUserRequest {
|
|
@@ -1359,8 +1373,14 @@ export interface BlockedUserResponse {
|
|
|
1359
1373
|
user: UserResponse;
|
|
1360
1374
|
}
|
|
1361
1375
|
|
|
1376
|
+
export interface BodyguardImageAnalysisConfig {
|
|
1377
|
+
rules?: BodyguardRule[];
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1362
1380
|
export interface BodyguardRule {
|
|
1363
|
-
|
|
1381
|
+
label: string;
|
|
1382
|
+
|
|
1383
|
+
action?:
|
|
1364
1384
|
| 'flag'
|
|
1365
1385
|
| 'shadow'
|
|
1366
1386
|
| 'remove'
|
|
@@ -1368,9 +1388,7 @@ export interface BodyguardRule {
|
|
|
1368
1388
|
| 'bounce_flag'
|
|
1369
1389
|
| 'bounce_remove';
|
|
1370
1390
|
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
severity_rules: BodyguardSeverityRule[];
|
|
1391
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
1374
1392
|
}
|
|
1375
1393
|
|
|
1376
1394
|
export interface BodyguardSeverityRule {
|
|
@@ -1606,13 +1624,21 @@ export interface CallAcceptedEvent {
|
|
|
1606
1624
|
export interface CallClosedCaption {
|
|
1607
1625
|
end_time: Date;
|
|
1608
1626
|
|
|
1627
|
+
id: string;
|
|
1628
|
+
|
|
1629
|
+
language: string;
|
|
1630
|
+
|
|
1609
1631
|
speaker_id: string;
|
|
1610
1632
|
|
|
1611
1633
|
start_time: Date;
|
|
1612
1634
|
|
|
1613
1635
|
text: string;
|
|
1614
1636
|
|
|
1637
|
+
translated: boolean;
|
|
1638
|
+
|
|
1615
1639
|
user: UserResponse;
|
|
1640
|
+
|
|
1641
|
+
service?: string;
|
|
1616
1642
|
}
|
|
1617
1643
|
|
|
1618
1644
|
export interface CallClosedCaptionsFailedEvent {
|
|
@@ -2746,6 +2772,10 @@ export interface Channel {
|
|
|
2746
2772
|
|
|
2747
2773
|
member_count?: number;
|
|
2748
2774
|
|
|
2775
|
+
message_count?: number;
|
|
2776
|
+
|
|
2777
|
+
message_count_updated_at?: Date;
|
|
2778
|
+
|
|
2749
2779
|
team?: string;
|
|
2750
2780
|
|
|
2751
2781
|
active_live_locations?: SharedLocation[];
|
|
@@ -2770,6 +2800,8 @@ export interface ChannelConfig {
|
|
|
2770
2800
|
|
|
2771
2801
|
connect_events: boolean;
|
|
2772
2802
|
|
|
2803
|
+
count_messages: boolean;
|
|
2804
|
+
|
|
2773
2805
|
created_at: Date;
|
|
2774
2806
|
|
|
2775
2807
|
custom_events: boolean;
|
|
@@ -2836,6 +2868,8 @@ export interface ChannelConfigWithInfo {
|
|
|
2836
2868
|
|
|
2837
2869
|
connect_events: boolean;
|
|
2838
2870
|
|
|
2871
|
+
count_messages: boolean;
|
|
2872
|
+
|
|
2839
2873
|
created_at: Date;
|
|
2840
2874
|
|
|
2841
2875
|
custom_events: boolean;
|
|
@@ -3044,47 +3078,13 @@ export interface ChannelMember {
|
|
|
3044
3078
|
|
|
3045
3079
|
user_id?: string;
|
|
3046
3080
|
|
|
3081
|
+
deleted_messages?: string[];
|
|
3082
|
+
|
|
3047
3083
|
user?: UserResponse;
|
|
3048
3084
|
}
|
|
3049
3085
|
|
|
3050
3086
|
export interface ChannelMemberResponse {
|
|
3051
|
-
banned: boolean;
|
|
3052
|
-
|
|
3053
3087
|
channel_role: string;
|
|
3054
|
-
|
|
3055
|
-
created_at: Date;
|
|
3056
|
-
|
|
3057
|
-
notifications_muted: boolean;
|
|
3058
|
-
|
|
3059
|
-
shadow_banned: boolean;
|
|
3060
|
-
|
|
3061
|
-
updated_at: Date;
|
|
3062
|
-
|
|
3063
|
-
custom: Record<string, any>;
|
|
3064
|
-
|
|
3065
|
-
archived_at?: Date;
|
|
3066
|
-
|
|
3067
|
-
ban_expires?: Date;
|
|
3068
|
-
|
|
3069
|
-
deleted_at?: Date;
|
|
3070
|
-
|
|
3071
|
-
invite_accepted_at?: Date;
|
|
3072
|
-
|
|
3073
|
-
invite_rejected_at?: Date;
|
|
3074
|
-
|
|
3075
|
-
invited?: boolean;
|
|
3076
|
-
|
|
3077
|
-
is_moderator?: boolean;
|
|
3078
|
-
|
|
3079
|
-
pinned_at?: Date;
|
|
3080
|
-
|
|
3081
|
-
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
3082
|
-
|
|
3083
|
-
status?: string;
|
|
3084
|
-
|
|
3085
|
-
user_id?: string;
|
|
3086
|
-
|
|
3087
|
-
user?: UserResponse;
|
|
3088
3088
|
}
|
|
3089
3089
|
|
|
3090
3090
|
export interface ChannelMessages {
|
|
@@ -3195,6 +3195,8 @@ export interface ChannelResponse {
|
|
|
3195
3195
|
|
|
3196
3196
|
member_count?: number;
|
|
3197
3197
|
|
|
3198
|
+
message_count?: number;
|
|
3199
|
+
|
|
3198
3200
|
mute_expires_at?: Date;
|
|
3199
3201
|
|
|
3200
3202
|
muted?: boolean;
|
|
@@ -3233,6 +3235,8 @@ export interface ChannelStateResponse {
|
|
|
3233
3235
|
|
|
3234
3236
|
active_live_locations?: SharedLocationResponseData[];
|
|
3235
3237
|
|
|
3238
|
+
deleted_messages?: string[];
|
|
3239
|
+
|
|
3236
3240
|
pending_messages?: PendingMessageResponse[];
|
|
3237
3241
|
|
|
3238
3242
|
read?: ReadStateResponse[];
|
|
@@ -3265,6 +3269,8 @@ export interface ChannelStateResponseFields {
|
|
|
3265
3269
|
|
|
3266
3270
|
active_live_locations?: SharedLocationResponseData[];
|
|
3267
3271
|
|
|
3272
|
+
deleted_messages?: string[];
|
|
3273
|
+
|
|
3268
3274
|
pending_messages?: PendingMessageResponse[];
|
|
3269
3275
|
|
|
3270
3276
|
read?: ReadStateResponse[];
|
|
@@ -3303,6 +3309,8 @@ export interface ChannelTypeConfig {
|
|
|
3303
3309
|
|
|
3304
3310
|
connect_events: boolean;
|
|
3305
3311
|
|
|
3312
|
+
count_messages: boolean;
|
|
3313
|
+
|
|
3306
3314
|
created_at: Date;
|
|
3307
3315
|
|
|
3308
3316
|
custom_events: boolean;
|
|
@@ -3476,20 +3484,22 @@ export interface CheckPushResponse {
|
|
|
3476
3484
|
}
|
|
3477
3485
|
|
|
3478
3486
|
export interface CheckRequest {
|
|
3479
|
-
config_key: string;
|
|
3480
|
-
|
|
3481
3487
|
entity_creator_id: string;
|
|
3482
3488
|
|
|
3483
3489
|
entity_id: string;
|
|
3484
3490
|
|
|
3485
3491
|
entity_type: string;
|
|
3486
3492
|
|
|
3493
|
+
config_key?: string;
|
|
3494
|
+
|
|
3487
3495
|
config_team?: string;
|
|
3488
3496
|
|
|
3489
3497
|
test_mode?: boolean;
|
|
3490
3498
|
|
|
3491
3499
|
user_id?: string;
|
|
3492
3500
|
|
|
3501
|
+
config?: ModerationConfig;
|
|
3502
|
+
|
|
3493
3503
|
moderation_payload?: ModerationPayload;
|
|
3494
3504
|
|
|
3495
3505
|
options?: Record<string, any>;
|
|
@@ -3600,6 +3610,8 @@ export interface CommentAddedEvent {
|
|
|
3600
3610
|
|
|
3601
3611
|
fid: string;
|
|
3602
3612
|
|
|
3613
|
+
activity: ActivityResponse;
|
|
3614
|
+
|
|
3603
3615
|
comment: CommentResponse;
|
|
3604
3616
|
|
|
3605
3617
|
custom: Record<string, any>;
|
|
@@ -3636,6 +3648,8 @@ export interface CommentReactionAddedEvent {
|
|
|
3636
3648
|
|
|
3637
3649
|
fid: string;
|
|
3638
3650
|
|
|
3651
|
+
activity: ActivityResponse;
|
|
3652
|
+
|
|
3639
3653
|
comment: CommentResponse;
|
|
3640
3654
|
|
|
3641
3655
|
custom: Record<string, any>;
|
|
@@ -3674,6 +3688,8 @@ export interface CommentReactionUpdatedEvent {
|
|
|
3674
3688
|
|
|
3675
3689
|
fid: string;
|
|
3676
3690
|
|
|
3691
|
+
activity: ActivityResponse;
|
|
3692
|
+
|
|
3677
3693
|
comment: CommentResponse;
|
|
3678
3694
|
|
|
3679
3695
|
custom: Record<string, any>;
|
|
@@ -3774,6 +3790,8 @@ export interface ConfigOverrides {
|
|
|
3774
3790
|
|
|
3775
3791
|
blocklist_behavior?: 'flag' | 'block';
|
|
3776
3792
|
|
|
3793
|
+
count_messages?: boolean;
|
|
3794
|
+
|
|
3777
3795
|
max_message_length?: number;
|
|
3778
3796
|
|
|
3779
3797
|
quotes?: boolean;
|
|
@@ -3818,7 +3836,7 @@ export interface ConfigResponse {
|
|
|
3818
3836
|
|
|
3819
3837
|
block_list_config?: BlockListConfig;
|
|
3820
3838
|
|
|
3821
|
-
|
|
3839
|
+
llm_config?: LLMConfig;
|
|
3822
3840
|
|
|
3823
3841
|
velocity_filter_config?: VelocityFilterConfig;
|
|
3824
3842
|
|
|
@@ -3826,9 +3844,9 @@ export interface ConfigResponse {
|
|
|
3826
3844
|
}
|
|
3827
3845
|
|
|
3828
3846
|
export interface ContentCountRuleParameters {
|
|
3829
|
-
threshold
|
|
3847
|
+
threshold?: number;
|
|
3830
3848
|
|
|
3831
|
-
time_window
|
|
3849
|
+
time_window?: string;
|
|
3832
3850
|
}
|
|
3833
3851
|
|
|
3834
3852
|
export interface CountByMinuteResponse {
|
|
@@ -3950,6 +3968,8 @@ export interface CreateChannelTypeResponse {
|
|
|
3950
3968
|
|
|
3951
3969
|
connect_events: boolean;
|
|
3952
3970
|
|
|
3971
|
+
count_messages: boolean;
|
|
3972
|
+
|
|
3953
3973
|
created_at: Date;
|
|
3954
3974
|
|
|
3955
3975
|
custom_events: boolean;
|
|
@@ -4085,6 +4105,8 @@ export interface CreateFeedGroupRequest {
|
|
|
4085
4105
|
|
|
4086
4106
|
notification?: NotificationConfig;
|
|
4087
4107
|
|
|
4108
|
+
push_notification?: PushNotificationConfig;
|
|
4109
|
+
|
|
4088
4110
|
ranking?: RankingConfig;
|
|
4089
4111
|
}
|
|
4090
4112
|
|
|
@@ -4518,6 +4540,10 @@ export interface DeleteModerationConfigResponse {
|
|
|
4518
4540
|
duration: string;
|
|
4519
4541
|
}
|
|
4520
4542
|
|
|
4543
|
+
export interface DeleteModerationRuleResponse {
|
|
4544
|
+
duration: string;
|
|
4545
|
+
}
|
|
4546
|
+
|
|
4521
4547
|
export interface DeleteModerationTemplateResponse {
|
|
4522
4548
|
duration: string;
|
|
4523
4549
|
}
|
|
@@ -4921,6 +4947,8 @@ export interface EventHook {
|
|
|
4921
4947
|
|
|
4922
4948
|
id?: string;
|
|
4923
4949
|
|
|
4950
|
+
product?: string;
|
|
4951
|
+
|
|
4924
4952
|
sns_auth_type?: string;
|
|
4925
4953
|
|
|
4926
4954
|
sns_key?: string;
|
|
@@ -5135,6 +5163,8 @@ export interface FeedGroup {
|
|
|
5135
5163
|
|
|
5136
5164
|
notification?: NotificationConfig;
|
|
5137
5165
|
|
|
5166
|
+
push_notification?: PushNotificationConfig;
|
|
5167
|
+
|
|
5138
5168
|
ranking?: RankingConfig;
|
|
5139
5169
|
|
|
5140
5170
|
stories?: StoriesConfig;
|
|
@@ -5193,6 +5223,8 @@ export interface FeedGroupResponse {
|
|
|
5193
5223
|
|
|
5194
5224
|
notification?: NotificationConfig;
|
|
5195
5225
|
|
|
5226
|
+
push_notification?: PushNotificationConfig;
|
|
5227
|
+
|
|
5196
5228
|
ranking?: RankingConfig;
|
|
5197
5229
|
|
|
5198
5230
|
stories?: StoriesConfig;
|
|
@@ -5423,6 +5455,26 @@ export interface FeedViewResponse {
|
|
|
5423
5455
|
ranking?: RankingConfig;
|
|
5424
5456
|
}
|
|
5425
5457
|
|
|
5458
|
+
export interface FeedsEventPreferences {
|
|
5459
|
+
comments?: string;
|
|
5460
|
+
|
|
5461
|
+
mentions?: string;
|
|
5462
|
+
|
|
5463
|
+
new_followers?: string;
|
|
5464
|
+
|
|
5465
|
+
reactions?: string;
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
export interface FeedsEventPreferencesInput {
|
|
5469
|
+
comments?: 'all' | 'none';
|
|
5470
|
+
|
|
5471
|
+
mentions?: 'all' | 'none';
|
|
5472
|
+
|
|
5473
|
+
new_followers?: 'all' | 'none';
|
|
5474
|
+
|
|
5475
|
+
reactions?: 'all' | 'none';
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5426
5478
|
export interface FeedsModerationTemplateConfig {
|
|
5427
5479
|
config_key: string;
|
|
5428
5480
|
|
|
@@ -5542,7 +5594,7 @@ export interface Flag {
|
|
|
5542
5594
|
}
|
|
5543
5595
|
|
|
5544
5596
|
export interface FlagContentOptions {
|
|
5545
|
-
reason
|
|
5597
|
+
reason?: string;
|
|
5546
5598
|
}
|
|
5547
5599
|
|
|
5548
5600
|
export interface FlagDetails {
|
|
@@ -5612,7 +5664,7 @@ export interface FlagUpdatedEvent {
|
|
|
5612
5664
|
}
|
|
5613
5665
|
|
|
5614
5666
|
export interface FlagUserOptions {
|
|
5615
|
-
reason
|
|
5667
|
+
reason?: string;
|
|
5616
5668
|
}
|
|
5617
5669
|
|
|
5618
5670
|
export interface FollowBatchRequest {
|
|
@@ -5672,6 +5724,8 @@ export interface FollowRequest {
|
|
|
5672
5724
|
|
|
5673
5725
|
push_preference?: 'all' | 'none';
|
|
5674
5726
|
|
|
5727
|
+
skip_push?: boolean;
|
|
5728
|
+
|
|
5675
5729
|
custom?: Record<string, any>;
|
|
5676
5730
|
}
|
|
5677
5731
|
|
|
@@ -5926,6 +5980,8 @@ export interface GetChannelTypeResponse {
|
|
|
5926
5980
|
|
|
5927
5981
|
connect_events: boolean;
|
|
5928
5982
|
|
|
5983
|
+
count_messages: boolean;
|
|
5984
|
+
|
|
5929
5985
|
created_at: Date;
|
|
5930
5986
|
|
|
5931
5987
|
custom_events: boolean;
|
|
@@ -6095,6 +6151,12 @@ export interface GetMessageResponse {
|
|
|
6095
6151
|
pending_message_metadata?: Record<string, string>;
|
|
6096
6152
|
}
|
|
6097
6153
|
|
|
6154
|
+
export interface GetModerationRuleResponse {
|
|
6155
|
+
duration: string;
|
|
6156
|
+
|
|
6157
|
+
rule?: ModerationRuleV2Response;
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6098
6160
|
export interface GetOGResponse {
|
|
6099
6161
|
duration: string;
|
|
6100
6162
|
|
|
@@ -6185,6 +6247,8 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
6185
6247
|
|
|
6186
6248
|
notification?: NotificationConfig;
|
|
6187
6249
|
|
|
6250
|
+
push_notification?: PushNotificationConfig;
|
|
6251
|
+
|
|
6188
6252
|
ranking?: RankingConfig;
|
|
6189
6253
|
}
|
|
6190
6254
|
|
|
@@ -6419,9 +6483,9 @@ export interface HLSSettingsResponse {
|
|
|
6419
6483
|
}
|
|
6420
6484
|
|
|
6421
6485
|
export interface HarmConfig {
|
|
6422
|
-
severity
|
|
6486
|
+
severity?: number;
|
|
6423
6487
|
|
|
6424
|
-
action_sequences
|
|
6488
|
+
action_sequences?: ActionSequence[];
|
|
6425
6489
|
}
|
|
6426
6490
|
|
|
6427
6491
|
export interface HideChannelRequest {
|
|
@@ -6469,9 +6533,9 @@ export interface ImageData {
|
|
|
6469
6533
|
}
|
|
6470
6534
|
|
|
6471
6535
|
export interface ImageRuleParameters {
|
|
6472
|
-
threshold
|
|
6536
|
+
threshold?: number;
|
|
6473
6537
|
|
|
6474
|
-
time_window
|
|
6538
|
+
time_window?: string;
|
|
6475
6539
|
|
|
6476
6540
|
harm_labels?: string[];
|
|
6477
6541
|
}
|
|
@@ -6650,6 +6714,61 @@ export interface JoinCallAPIMetrics {
|
|
|
6650
6714
|
latency?: ActiveCallsLatencyStats;
|
|
6651
6715
|
}
|
|
6652
6716
|
|
|
6717
|
+
export interface KickUserRequest {
|
|
6718
|
+
user_id: string;
|
|
6719
|
+
|
|
6720
|
+
block?: boolean;
|
|
6721
|
+
|
|
6722
|
+
kicked_by_id?: string;
|
|
6723
|
+
|
|
6724
|
+
kicked_by?: UserRequest;
|
|
6725
|
+
}
|
|
6726
|
+
|
|
6727
|
+
export interface KickUserResponse {
|
|
6728
|
+
duration: string;
|
|
6729
|
+
}
|
|
6730
|
+
|
|
6731
|
+
export interface KickedUserEvent {
|
|
6732
|
+
call_cid: string;
|
|
6733
|
+
|
|
6734
|
+
created_at: Date;
|
|
6735
|
+
|
|
6736
|
+
user: UserResponse;
|
|
6737
|
+
|
|
6738
|
+
type: string;
|
|
6739
|
+
|
|
6740
|
+
kicked_by_user?: UserResponse;
|
|
6741
|
+
}
|
|
6742
|
+
|
|
6743
|
+
export interface LLMConfig {
|
|
6744
|
+
app_context?: string;
|
|
6745
|
+
|
|
6746
|
+
async?: boolean;
|
|
6747
|
+
|
|
6748
|
+
enabled?: boolean;
|
|
6749
|
+
|
|
6750
|
+
rules?: LLMRule[];
|
|
6751
|
+
|
|
6752
|
+
severity_descriptions?: Record<string, string>;
|
|
6753
|
+
}
|
|
6754
|
+
|
|
6755
|
+
export interface LLMRule {
|
|
6756
|
+
description: string;
|
|
6757
|
+
|
|
6758
|
+
label: string;
|
|
6759
|
+
|
|
6760
|
+
action?:
|
|
6761
|
+
| 'flag'
|
|
6762
|
+
| 'shadow'
|
|
6763
|
+
| 'remove'
|
|
6764
|
+
| 'bounce'
|
|
6765
|
+
| 'bounce_flag'
|
|
6766
|
+
| 'bounce_remove'
|
|
6767
|
+
| 'keep';
|
|
6768
|
+
|
|
6769
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
6770
|
+
}
|
|
6771
|
+
|
|
6653
6772
|
export interface Label {
|
|
6654
6773
|
name: string;
|
|
6655
6774
|
|
|
@@ -7031,6 +7150,8 @@ export interface Message {
|
|
|
7031
7150
|
|
|
7032
7151
|
deleted_at?: Date;
|
|
7033
7152
|
|
|
7153
|
+
deleted_for_me?: boolean;
|
|
7154
|
+
|
|
7034
7155
|
message_text_updated_at?: Date;
|
|
7035
7156
|
|
|
7036
7157
|
mml?: string;
|
|
@@ -7053,6 +7174,8 @@ export interface Message {
|
|
|
7053
7174
|
|
|
7054
7175
|
image_labels?: Record<string, string[]>;
|
|
7055
7176
|
|
|
7177
|
+
member?: ChannelMember;
|
|
7178
|
+
|
|
7056
7179
|
moderation?: ModerationV2Response;
|
|
7057
7180
|
|
|
7058
7181
|
pinned_by?: User;
|
|
@@ -7109,6 +7232,8 @@ export interface MessageDeletedEvent {
|
|
|
7109
7232
|
|
|
7110
7233
|
type: string;
|
|
7111
7234
|
|
|
7235
|
+
deleted_for_me?: boolean;
|
|
7236
|
+
|
|
7112
7237
|
team?: string;
|
|
7113
7238
|
|
|
7114
7239
|
thread_participants?: User[];
|
|
@@ -7365,6 +7490,8 @@ export interface MessageResponse {
|
|
|
7365
7490
|
|
|
7366
7491
|
deleted_at?: Date;
|
|
7367
7492
|
|
|
7493
|
+
deleted_for_me?: boolean;
|
|
7494
|
+
|
|
7368
7495
|
message_text_updated_at?: Date;
|
|
7369
7496
|
|
|
7370
7497
|
mml?: string;
|
|
@@ -7389,6 +7516,8 @@ export interface MessageResponse {
|
|
|
7389
7516
|
|
|
7390
7517
|
image_labels?: Record<string, string[]>;
|
|
7391
7518
|
|
|
7519
|
+
member?: ChannelMemberResponse;
|
|
7520
|
+
|
|
7392
7521
|
moderation?: ModerationV2Response;
|
|
7393
7522
|
|
|
7394
7523
|
pinned_by?: UserResponse;
|
|
@@ -7517,6 +7646,8 @@ export interface MessageWithChannelResponse {
|
|
|
7517
7646
|
|
|
7518
7647
|
deleted_at?: Date;
|
|
7519
7648
|
|
|
7649
|
+
deleted_for_me?: boolean;
|
|
7650
|
+
|
|
7520
7651
|
message_text_updated_at?: Date;
|
|
7521
7652
|
|
|
7522
7653
|
mml?: string;
|
|
@@ -7541,6 +7672,8 @@ export interface MessageWithChannelResponse {
|
|
|
7541
7672
|
|
|
7542
7673
|
image_labels?: Record<string, string[]>;
|
|
7543
7674
|
|
|
7675
|
+
member?: ChannelMemberResponse;
|
|
7676
|
+
|
|
7544
7677
|
moderation?: ModerationV2Response;
|
|
7545
7678
|
|
|
7546
7679
|
pinned_by?: UserResponse;
|
|
@@ -7588,6 +7721,42 @@ export interface ModerationCheckCompletedEvent {
|
|
|
7588
7721
|
received_at?: Date;
|
|
7589
7722
|
}
|
|
7590
7723
|
|
|
7724
|
+
export interface ModerationConfig {
|
|
7725
|
+
async?: boolean;
|
|
7726
|
+
|
|
7727
|
+
created_at?: Date;
|
|
7728
|
+
|
|
7729
|
+
key?: string;
|
|
7730
|
+
|
|
7731
|
+
team?: string;
|
|
7732
|
+
|
|
7733
|
+
updated_at?: Date;
|
|
7734
|
+
|
|
7735
|
+
ai_image_config?: AIImageConfig;
|
|
7736
|
+
|
|
7737
|
+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
7738
|
+
|
|
7739
|
+
ai_text_config?: AITextConfig;
|
|
7740
|
+
|
|
7741
|
+
ai_video_config?: AIVideoConfig;
|
|
7742
|
+
|
|
7743
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
7744
|
+
|
|
7745
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
7746
|
+
|
|
7747
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
7748
|
+
|
|
7749
|
+
block_list_config?: BlockListConfig;
|
|
7750
|
+
|
|
7751
|
+
google_vision_config?: GoogleVisionConfig;
|
|
7752
|
+
|
|
7753
|
+
llm_config?: LLMConfig;
|
|
7754
|
+
|
|
7755
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
7756
|
+
|
|
7757
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
7758
|
+
}
|
|
7759
|
+
|
|
7591
7760
|
export interface ModerationCustomActionEvent {
|
|
7592
7761
|
created_at: Date;
|
|
7593
7762
|
|
|
@@ -7607,7 +7776,7 @@ export interface ModerationDashboardPreferences {
|
|
|
7607
7776
|
}
|
|
7608
7777
|
|
|
7609
7778
|
export interface ModerationFlagResponse {
|
|
7610
|
-
created_at:
|
|
7779
|
+
created_at: Date;
|
|
7611
7780
|
|
|
7612
7781
|
entity_id: string;
|
|
7613
7782
|
|
|
@@ -7615,10 +7784,12 @@ export interface ModerationFlagResponse {
|
|
|
7615
7784
|
|
|
7616
7785
|
type: string;
|
|
7617
7786
|
|
|
7618
|
-
updated_at:
|
|
7787
|
+
updated_at: Date;
|
|
7619
7788
|
|
|
7620
7789
|
user_id: string;
|
|
7621
7790
|
|
|
7791
|
+
result: Array<Record<string, any>>;
|
|
7792
|
+
|
|
7622
7793
|
entity_creator_id?: string;
|
|
7623
7794
|
|
|
7624
7795
|
reason?: string;
|
|
@@ -7627,8 +7798,6 @@ export interface ModerationFlagResponse {
|
|
|
7627
7798
|
|
|
7628
7799
|
labels?: string[];
|
|
7629
7800
|
|
|
7630
|
-
result?: Array<Record<string, any>>;
|
|
7631
|
-
|
|
7632
7801
|
custom?: Record<string, any>;
|
|
7633
7802
|
|
|
7634
7803
|
moderation_payload?: ModerationPayload;
|
|
@@ -7682,6 +7851,36 @@ export interface ModerationResponse {
|
|
|
7682
7851
|
toxic: number;
|
|
7683
7852
|
}
|
|
7684
7853
|
|
|
7854
|
+
export interface ModerationRuleV2Response {
|
|
7855
|
+
created_at: Date;
|
|
7856
|
+
|
|
7857
|
+
description: string;
|
|
7858
|
+
|
|
7859
|
+
enabled: boolean;
|
|
7860
|
+
|
|
7861
|
+
id: string;
|
|
7862
|
+
|
|
7863
|
+
name: string;
|
|
7864
|
+
|
|
7865
|
+
rule_type: string;
|
|
7866
|
+
|
|
7867
|
+
team: string;
|
|
7868
|
+
|
|
7869
|
+
updated_at: Date;
|
|
7870
|
+
|
|
7871
|
+
config_keys: string[];
|
|
7872
|
+
|
|
7873
|
+
action: RuleBuilderAction;
|
|
7874
|
+
|
|
7875
|
+
cooldown_period?: string;
|
|
7876
|
+
|
|
7877
|
+
logic?: string;
|
|
7878
|
+
|
|
7879
|
+
conditions?: RuleBuilderCondition[];
|
|
7880
|
+
|
|
7881
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7882
|
+
}
|
|
7883
|
+
|
|
7685
7884
|
export interface ModerationV2Response {
|
|
7686
7885
|
action: string;
|
|
7687
7886
|
|
|
@@ -7894,12 +8093,14 @@ export const OwnCapability = {
|
|
|
7894
8093
|
JOIN_BACKSTAGE: 'join-backstage',
|
|
7895
8094
|
JOIN_CALL: 'join-call',
|
|
7896
8095
|
JOIN_ENDED_CALL: 'join-ended-call',
|
|
8096
|
+
KICK_USER: 'kick-user',
|
|
7897
8097
|
MUTE_USERS: 'mute-users',
|
|
7898
8098
|
PIN_FOR_EVERYONE: 'pin-for-everyone',
|
|
7899
8099
|
READ_CALL: 'read-call',
|
|
7900
8100
|
REMOVE_CALL_MEMBER: 'remove-call-member',
|
|
7901
8101
|
SCREENSHARE: 'screenshare',
|
|
7902
8102
|
SEND_AUDIO: 'send-audio',
|
|
8103
|
+
SEND_CLOSED_CAPTIONS_CALL: 'send-closed-captions-call',
|
|
7903
8104
|
SEND_VIDEO: 'send-video',
|
|
7904
8105
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
7905
8106
|
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
@@ -8455,6 +8656,8 @@ export interface PublisherStatsResponse {
|
|
|
8455
8656
|
}
|
|
8456
8657
|
|
|
8457
8658
|
export interface PublisherVideoMetrics {
|
|
8659
|
+
bitrate?: ActiveCallsBitrateStats;
|
|
8660
|
+
|
|
8458
8661
|
fps_30?: ActiveCallsFPSStats;
|
|
8459
8662
|
|
|
8460
8663
|
frame_encoding_time_ms?: ActiveCallsLatencyStats;
|
|
@@ -8474,6 +8677,12 @@ export interface PushConfig {
|
|
|
8474
8677
|
offline_only?: boolean;
|
|
8475
8678
|
}
|
|
8476
8679
|
|
|
8680
|
+
export interface PushNotificationConfig {
|
|
8681
|
+
enabled?: boolean;
|
|
8682
|
+
|
|
8683
|
+
activity_types?: 'follow' | 'comment' | 'reaction' | 'comment_reaction';
|
|
8684
|
+
}
|
|
8685
|
+
|
|
8477
8686
|
export interface PushNotificationFields {
|
|
8478
8687
|
offline_only: boolean;
|
|
8479
8688
|
|
|
@@ -8505,9 +8714,13 @@ export interface PushPreferenceInput {
|
|
|
8505
8714
|
|
|
8506
8715
|
disabled_until?: Date;
|
|
8507
8716
|
|
|
8717
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
8718
|
+
|
|
8508
8719
|
remove_disable?: boolean;
|
|
8509
8720
|
|
|
8510
8721
|
user_id?: string;
|
|
8722
|
+
|
|
8723
|
+
feeds_events?: FeedsEventPreferencesInput;
|
|
8511
8724
|
}
|
|
8512
8725
|
|
|
8513
8726
|
export interface PushPreferences {
|
|
@@ -8516,6 +8729,10 @@ export interface PushPreferences {
|
|
|
8516
8729
|
chat_level?: string;
|
|
8517
8730
|
|
|
8518
8731
|
disabled_until?: Date;
|
|
8732
|
+
|
|
8733
|
+
feeds_level?: string;
|
|
8734
|
+
|
|
8735
|
+
feeds_events?: FeedsEventPreferences;
|
|
8519
8736
|
}
|
|
8520
8737
|
|
|
8521
8738
|
export interface PushProvider {
|
|
@@ -8641,7 +8858,13 @@ export interface PushTemplate {
|
|
|
8641
8858
|
| 'message.new'
|
|
8642
8859
|
| 'message.updated'
|
|
8643
8860
|
| 'reaction.new'
|
|
8644
|
-
| 'notification.reminder_due'
|
|
8861
|
+
| 'notification.reminder_due'
|
|
8862
|
+
| 'feeds.activity.added'
|
|
8863
|
+
| 'feeds.comment.added'
|
|
8864
|
+
| 'feeds.activity.reaction.added'
|
|
8865
|
+
| 'feeds.comment.reaction.added'
|
|
8866
|
+
| 'feeds.follow.created'
|
|
8867
|
+
| 'feeds.notification_feed.updated';
|
|
8645
8868
|
|
|
8646
8869
|
updated_at: Date;
|
|
8647
8870
|
|
|
@@ -9258,6 +9481,34 @@ export interface QueryModerationLogsResponse {
|
|
|
9258
9481
|
prev?: string;
|
|
9259
9482
|
}
|
|
9260
9483
|
|
|
9484
|
+
export interface QueryModerationRulesRequest {
|
|
9485
|
+
limit?: number;
|
|
9486
|
+
|
|
9487
|
+
next?: string;
|
|
9488
|
+
|
|
9489
|
+
prev?: string;
|
|
9490
|
+
|
|
9491
|
+
user_id?: string;
|
|
9492
|
+
|
|
9493
|
+
sort?: SortParamRequest[];
|
|
9494
|
+
|
|
9495
|
+
filter?: Record<string, any>;
|
|
9496
|
+
|
|
9497
|
+
user?: UserRequest;
|
|
9498
|
+
}
|
|
9499
|
+
|
|
9500
|
+
export interface QueryModerationRulesResponse {
|
|
9501
|
+
duration: string;
|
|
9502
|
+
|
|
9503
|
+
rules: ModerationRuleV2Response[];
|
|
9504
|
+
|
|
9505
|
+
default_llm_labels: Record<string, string>;
|
|
9506
|
+
|
|
9507
|
+
next?: string;
|
|
9508
|
+
|
|
9509
|
+
prev?: string;
|
|
9510
|
+
}
|
|
9511
|
+
|
|
9261
9512
|
export interface QueryPollVotesRequest {
|
|
9262
9513
|
limit?: number;
|
|
9263
9514
|
|
|
@@ -10191,7 +10442,7 @@ export interface Role {
|
|
|
10191
10442
|
}
|
|
10192
10443
|
|
|
10193
10444
|
export interface RuleBuilderAction {
|
|
10194
|
-
type
|
|
10445
|
+
type?: string;
|
|
10195
10446
|
|
|
10196
10447
|
ban_options?: BanOptions;
|
|
10197
10448
|
|
|
@@ -10203,10 +10454,10 @@ export interface RuleBuilderAction {
|
|
|
10203
10454
|
}
|
|
10204
10455
|
|
|
10205
10456
|
export interface RuleBuilderCondition {
|
|
10206
|
-
type: string;
|
|
10207
|
-
|
|
10208
10457
|
confidence?: number;
|
|
10209
10458
|
|
|
10459
|
+
type?: string;
|
|
10460
|
+
|
|
10210
10461
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
10211
10462
|
|
|
10212
10463
|
image_content_params?: ImageContentParameters;
|
|
@@ -10219,6 +10470,8 @@ export interface RuleBuilderCondition {
|
|
|
10219
10470
|
|
|
10220
10471
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
10221
10472
|
|
|
10473
|
+
user_custom_property_params?: UserCustomPropertyParameters;
|
|
10474
|
+
|
|
10222
10475
|
user_rule_params?: UserRuleParameters;
|
|
10223
10476
|
|
|
10224
10477
|
video_content_params?: VideoContentParameters;
|
|
@@ -10227,30 +10480,26 @@ export interface RuleBuilderCondition {
|
|
|
10227
10480
|
}
|
|
10228
10481
|
|
|
10229
10482
|
export interface RuleBuilderConditionGroup {
|
|
10230
|
-
logic
|
|
10483
|
+
logic?: string;
|
|
10231
10484
|
|
|
10232
|
-
conditions
|
|
10485
|
+
conditions?: RuleBuilderCondition[];
|
|
10233
10486
|
}
|
|
10234
10487
|
|
|
10235
10488
|
export interface RuleBuilderConfig {
|
|
10236
|
-
rules: RuleBuilderRule[];
|
|
10237
|
-
|
|
10238
10489
|
async?: boolean;
|
|
10490
|
+
|
|
10491
|
+
rules?: RuleBuilderRule[];
|
|
10239
10492
|
}
|
|
10240
10493
|
|
|
10241
10494
|
export interface RuleBuilderRule {
|
|
10242
|
-
enabled: boolean;
|
|
10243
|
-
|
|
10244
|
-
id: string;
|
|
10245
|
-
|
|
10246
|
-
name: string;
|
|
10247
|
-
|
|
10248
10495
|
rule_type: string;
|
|
10249
10496
|
|
|
10250
10497
|
action: RuleBuilderAction;
|
|
10251
10498
|
|
|
10252
10499
|
cooldown_period?: string;
|
|
10253
10500
|
|
|
10501
|
+
id?: string;
|
|
10502
|
+
|
|
10254
10503
|
logic?: string;
|
|
10255
10504
|
|
|
10256
10505
|
conditions?: RuleBuilderCondition[];
|
|
@@ -10407,6 +10656,8 @@ export interface SearchResultMessage {
|
|
|
10407
10656
|
|
|
10408
10657
|
deleted_at?: Date;
|
|
10409
10658
|
|
|
10659
|
+
deleted_for_me?: boolean;
|
|
10660
|
+
|
|
10410
10661
|
message_text_updated_at?: Date;
|
|
10411
10662
|
|
|
10412
10663
|
mml?: string;
|
|
@@ -10433,6 +10684,8 @@ export interface SearchResultMessage {
|
|
|
10433
10684
|
|
|
10434
10685
|
image_labels?: Record<string, string[]>;
|
|
10435
10686
|
|
|
10687
|
+
member?: ChannelMemberResponse;
|
|
10688
|
+
|
|
10436
10689
|
moderation?: ModerationV2Response;
|
|
10437
10690
|
|
|
10438
10691
|
pinned_by?: UserResponse;
|
|
@@ -10530,6 +10783,30 @@ export interface SendCallEventResponse {
|
|
|
10530
10783
|
duration: string;
|
|
10531
10784
|
}
|
|
10532
10785
|
|
|
10786
|
+
export interface SendClosedCaptionRequest {
|
|
10787
|
+
speaker_id: string;
|
|
10788
|
+
|
|
10789
|
+
text: string;
|
|
10790
|
+
|
|
10791
|
+
end_time?: Date;
|
|
10792
|
+
|
|
10793
|
+
language?: string;
|
|
10794
|
+
|
|
10795
|
+
service?: string;
|
|
10796
|
+
|
|
10797
|
+
start_time?: Date;
|
|
10798
|
+
|
|
10799
|
+
translated?: boolean;
|
|
10800
|
+
|
|
10801
|
+
user_id?: string;
|
|
10802
|
+
|
|
10803
|
+
user?: UserRequest;
|
|
10804
|
+
}
|
|
10805
|
+
|
|
10806
|
+
export interface SendClosedCaptionResponse {
|
|
10807
|
+
duration: string;
|
|
10808
|
+
}
|
|
10809
|
+
|
|
10533
10810
|
export interface SendEventRequest {
|
|
10534
10811
|
event: EventRequest;
|
|
10535
10812
|
}
|
|
@@ -11014,20 +11291,24 @@ export interface TextContentParameters {
|
|
|
11014
11291
|
blocklist_match?: string[];
|
|
11015
11292
|
|
|
11016
11293
|
harm_labels?: string[];
|
|
11294
|
+
|
|
11295
|
+
llm_harm_labels?: Record<string, string>;
|
|
11017
11296
|
}
|
|
11018
11297
|
|
|
11019
11298
|
export interface TextRuleParameters {
|
|
11020
|
-
threshold: number;
|
|
11021
|
-
|
|
11022
|
-
time_window: string;
|
|
11023
|
-
|
|
11024
11299
|
contains_url?: boolean;
|
|
11025
11300
|
|
|
11026
11301
|
severity?: string;
|
|
11027
11302
|
|
|
11303
|
+
threshold?: number;
|
|
11304
|
+
|
|
11305
|
+
time_window?: string;
|
|
11306
|
+
|
|
11028
11307
|
blocklist_match?: string[];
|
|
11029
11308
|
|
|
11030
11309
|
harm_labels?: string[];
|
|
11310
|
+
|
|
11311
|
+
llm_harm_labels?: Record<string, string>;
|
|
11031
11312
|
}
|
|
11032
11313
|
|
|
11033
11314
|
export interface ThreadParticipant {
|
|
@@ -11053,6 +11334,8 @@ export interface ThreadParticipant {
|
|
|
11053
11334
|
}
|
|
11054
11335
|
|
|
11055
11336
|
export interface ThreadResponse {
|
|
11337
|
+
active_participant_count: number;
|
|
11338
|
+
|
|
11056
11339
|
channel_cid: string;
|
|
11057
11340
|
|
|
11058
11341
|
created_at: Date;
|
|
@@ -11061,20 +11344,18 @@ export interface ThreadResponse {
|
|
|
11061
11344
|
|
|
11062
11345
|
parent_message_id: string;
|
|
11063
11346
|
|
|
11347
|
+
participant_count: number;
|
|
11348
|
+
|
|
11064
11349
|
title: string;
|
|
11065
11350
|
|
|
11066
11351
|
updated_at: Date;
|
|
11067
11352
|
|
|
11068
11353
|
custom: Record<string, any>;
|
|
11069
11354
|
|
|
11070
|
-
active_participant_count?: number;
|
|
11071
|
-
|
|
11072
11355
|
deleted_at?: Date;
|
|
11073
11356
|
|
|
11074
11357
|
last_message_at?: Date;
|
|
11075
11358
|
|
|
11076
|
-
participant_count?: number;
|
|
11077
|
-
|
|
11078
11359
|
reply_count?: number;
|
|
11079
11360
|
|
|
11080
11361
|
thread_participants?: ThreadParticipant[];
|
|
@@ -11087,6 +11368,8 @@ export interface ThreadResponse {
|
|
|
11087
11368
|
}
|
|
11088
11369
|
|
|
11089
11370
|
export interface ThreadStateResponse {
|
|
11371
|
+
active_participant_count: number;
|
|
11372
|
+
|
|
11090
11373
|
channel_cid: string;
|
|
11091
11374
|
|
|
11092
11375
|
created_at: Date;
|
|
@@ -11095,6 +11378,8 @@ export interface ThreadStateResponse {
|
|
|
11095
11378
|
|
|
11096
11379
|
parent_message_id: string;
|
|
11097
11380
|
|
|
11381
|
+
participant_count: number;
|
|
11382
|
+
|
|
11098
11383
|
title: string;
|
|
11099
11384
|
|
|
11100
11385
|
updated_at: Date;
|
|
@@ -11103,14 +11388,10 @@ export interface ThreadStateResponse {
|
|
|
11103
11388
|
|
|
11104
11389
|
custom: Record<string, any>;
|
|
11105
11390
|
|
|
11106
|
-
active_participant_count?: number;
|
|
11107
|
-
|
|
11108
11391
|
deleted_at?: Date;
|
|
11109
11392
|
|
|
11110
11393
|
last_message_at?: Date;
|
|
11111
11394
|
|
|
11112
|
-
participant_count?: number;
|
|
11113
|
-
|
|
11114
11395
|
reply_count?: number;
|
|
11115
11396
|
|
|
11116
11397
|
read?: ReadStateResponse[];
|
|
@@ -11683,6 +11964,8 @@ export interface UpdateAppRequest {
|
|
|
11683
11964
|
|
|
11684
11965
|
image_moderation_enabled?: boolean;
|
|
11685
11966
|
|
|
11967
|
+
max_aggregated_activities_length?: number;
|
|
11968
|
+
|
|
11686
11969
|
migrate_permissions_to_v2?: boolean;
|
|
11687
11970
|
|
|
11688
11971
|
moderation_enabled?: boolean;
|
|
@@ -11929,6 +12212,8 @@ export interface UpdateChannelTypeRequest {
|
|
|
11929
12212
|
|
|
11930
12213
|
connect_events?: boolean;
|
|
11931
12214
|
|
|
12215
|
+
count_messages?: boolean;
|
|
12216
|
+
|
|
11932
12217
|
custom_events?: boolean;
|
|
11933
12218
|
|
|
11934
12219
|
mark_messages_pending?: boolean;
|
|
@@ -11987,6 +12272,8 @@ export interface UpdateChannelTypeResponse {
|
|
|
11987
12272
|
|
|
11988
12273
|
connect_events: boolean;
|
|
11989
12274
|
|
|
12275
|
+
count_messages: boolean;
|
|
12276
|
+
|
|
11990
12277
|
created_at: Date;
|
|
11991
12278
|
|
|
11992
12279
|
custom_events: boolean;
|
|
@@ -12069,6 +12356,8 @@ export interface UpdateCommandResponse {
|
|
|
12069
12356
|
export interface UpdateCommentRequest {
|
|
12070
12357
|
comment?: string;
|
|
12071
12358
|
|
|
12359
|
+
skip_push?: boolean;
|
|
12360
|
+
|
|
12072
12361
|
custom?: Record<string, any>;
|
|
12073
12362
|
}
|
|
12074
12363
|
|
|
@@ -12115,6 +12404,8 @@ export interface UpdateFeedGroupRequest {
|
|
|
12115
12404
|
|
|
12116
12405
|
notification?: NotificationConfig;
|
|
12117
12406
|
|
|
12407
|
+
push_notification?: PushNotificationConfig;
|
|
12408
|
+
|
|
12118
12409
|
ranking?: RankingConfig;
|
|
12119
12410
|
}
|
|
12120
12411
|
|
|
@@ -12185,6 +12476,8 @@ export interface UpdateFollowRequest {
|
|
|
12185
12476
|
|
|
12186
12477
|
push_preference?: 'all' | 'none';
|
|
12187
12478
|
|
|
12479
|
+
skip_push?: boolean;
|
|
12480
|
+
|
|
12188
12481
|
custom?: Record<string, any>;
|
|
12189
12482
|
}
|
|
12190
12483
|
|
|
@@ -12437,6 +12730,8 @@ export interface UpsertConfigRequest {
|
|
|
12437
12730
|
|
|
12438
12731
|
google_vision_config?: GoogleVisionConfig;
|
|
12439
12732
|
|
|
12733
|
+
llm_config?: LLMConfig;
|
|
12734
|
+
|
|
12440
12735
|
rule_builder_config?: RuleBuilderConfig;
|
|
12441
12736
|
|
|
12442
12737
|
user?: UserRequest;
|
|
@@ -12452,6 +12747,36 @@ export interface UpsertConfigResponse {
|
|
|
12452
12747
|
config?: ConfigResponse;
|
|
12453
12748
|
}
|
|
12454
12749
|
|
|
12750
|
+
export interface UpsertModerationRuleRequest {
|
|
12751
|
+
name: string;
|
|
12752
|
+
|
|
12753
|
+
rule_type: string;
|
|
12754
|
+
|
|
12755
|
+
action: RuleBuilderAction;
|
|
12756
|
+
|
|
12757
|
+
cooldown_period?: string;
|
|
12758
|
+
|
|
12759
|
+
description?: string;
|
|
12760
|
+
|
|
12761
|
+
enabled?: boolean;
|
|
12762
|
+
|
|
12763
|
+
logic?: string;
|
|
12764
|
+
|
|
12765
|
+
team?: string;
|
|
12766
|
+
|
|
12767
|
+
conditions?: RuleBuilderCondition[];
|
|
12768
|
+
|
|
12769
|
+
config_keys?: string[];
|
|
12770
|
+
|
|
12771
|
+
groups?: RuleBuilderConditionGroup[];
|
|
12772
|
+
}
|
|
12773
|
+
|
|
12774
|
+
export interface UpsertModerationRuleResponse {
|
|
12775
|
+
duration: string;
|
|
12776
|
+
|
|
12777
|
+
rule?: ModerationRuleV2Response;
|
|
12778
|
+
}
|
|
12779
|
+
|
|
12455
12780
|
export interface UpsertModerationTemplateRequest {
|
|
12456
12781
|
name: string;
|
|
12457
12782
|
|
|
@@ -12500,7 +12825,13 @@ export interface UpsertPushTemplateRequest {
|
|
|
12500
12825
|
| 'message.new'
|
|
12501
12826
|
| 'message.updated'
|
|
12502
12827
|
| 'reaction.new'
|
|
12503
|
-
| 'notification.reminder_due'
|
|
12828
|
+
| 'notification.reminder_due'
|
|
12829
|
+
| 'feeds.activity.added'
|
|
12830
|
+
| 'feeds.comment.added'
|
|
12831
|
+
| 'feeds.activity.reaction.added'
|
|
12832
|
+
| 'feeds.comment.reaction.added'
|
|
12833
|
+
| 'feeds.follow.created'
|
|
12834
|
+
| 'feeds.notification_feed.updated';
|
|
12504
12835
|
|
|
12505
12836
|
push_provider_type: 'firebase' | 'apn';
|
|
12506
12837
|
|
|
@@ -12591,6 +12922,12 @@ export interface UserCustomEventRequest {
|
|
|
12591
12922
|
custom?: Record<string, any>;
|
|
12592
12923
|
}
|
|
12593
12924
|
|
|
12925
|
+
export interface UserCustomPropertyParameters {
|
|
12926
|
+
operator?: string;
|
|
12927
|
+
|
|
12928
|
+
property_key?: string;
|
|
12929
|
+
}
|
|
12930
|
+
|
|
12594
12931
|
export interface UserDeactivatedEvent {
|
|
12595
12932
|
created_at: Date;
|
|
12596
12933
|
|
|
@@ -12660,10 +12997,6 @@ export interface UserFlaggedEvent {
|
|
|
12660
12997
|
export interface UserMessagesDeletedEvent {
|
|
12661
12998
|
created_at: Date;
|
|
12662
12999
|
|
|
12663
|
-
hard_delete: boolean;
|
|
12664
|
-
|
|
12665
|
-
soft_delete: boolean;
|
|
12666
|
-
|
|
12667
13000
|
custom: Record<string, any>;
|
|
12668
13001
|
|
|
12669
13002
|
user: UserResponseCommonFields;
|
|
@@ -12674,10 +13007,14 @@ export interface UserMessagesDeletedEvent {
|
|
|
12674
13007
|
|
|
12675
13008
|
channel_member_count?: number;
|
|
12676
13009
|
|
|
13010
|
+
channel_message_count?: number;
|
|
13011
|
+
|
|
12677
13012
|
channel_type?: string;
|
|
12678
13013
|
|
|
12679
13014
|
cid?: string;
|
|
12680
13015
|
|
|
13016
|
+
hard_delete?: boolean;
|
|
13017
|
+
|
|
12681
13018
|
received_at?: Date;
|
|
12682
13019
|
|
|
12683
13020
|
team?: string;
|
|
@@ -12944,53 +13281,53 @@ export interface UserUpdatedEvent {
|
|
|
12944
13281
|
}
|
|
12945
13282
|
|
|
12946
13283
|
export interface VelocityFilterConfig {
|
|
12947
|
-
advanced_filters
|
|
13284
|
+
advanced_filters?: boolean;
|
|
12948
13285
|
|
|
12949
|
-
|
|
13286
|
+
async?: boolean;
|
|
12950
13287
|
|
|
12951
|
-
|
|
13288
|
+
cascading_actions?: boolean;
|
|
12952
13289
|
|
|
12953
|
-
|
|
13290
|
+
cids_per_user?: number;
|
|
12954
13291
|
|
|
12955
|
-
|
|
13292
|
+
enabled?: boolean;
|
|
12956
13293
|
|
|
12957
|
-
|
|
13294
|
+
first_message_only?: boolean;
|
|
12958
13295
|
|
|
12959
|
-
|
|
13296
|
+
rules?: VelocityFilterConfigRule[];
|
|
12960
13297
|
}
|
|
12961
13298
|
|
|
12962
13299
|
export interface VelocityFilterConfigRule {
|
|
12963
13300
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
12964
13301
|
|
|
12965
|
-
ban_duration
|
|
13302
|
+
ban_duration?: number;
|
|
12966
13303
|
|
|
12967
|
-
cascading_action
|
|
13304
|
+
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
12968
13305
|
|
|
12969
|
-
cascading_threshold
|
|
13306
|
+
cascading_threshold?: number;
|
|
12970
13307
|
|
|
12971
|
-
check_message_context
|
|
13308
|
+
check_message_context?: boolean;
|
|
12972
13309
|
|
|
12973
|
-
fast_spam_threshold
|
|
13310
|
+
fast_spam_threshold?: number;
|
|
12974
13311
|
|
|
12975
|
-
fast_spam_ttl
|
|
13312
|
+
fast_spam_ttl?: number;
|
|
12976
13313
|
|
|
12977
|
-
ip_ban
|
|
13314
|
+
ip_ban?: boolean;
|
|
12978
13315
|
|
|
12979
|
-
probation_period
|
|
13316
|
+
probation_period?: number;
|
|
12980
13317
|
|
|
12981
|
-
shadow_ban
|
|
13318
|
+
shadow_ban?: boolean;
|
|
12982
13319
|
|
|
12983
|
-
|
|
13320
|
+
slow_spam_ban_duration?: number;
|
|
12984
13321
|
|
|
12985
|
-
|
|
13322
|
+
slow_spam_threshold?: number;
|
|
12986
13323
|
|
|
12987
|
-
|
|
13324
|
+
slow_spam_ttl?: number;
|
|
12988
13325
|
|
|
12989
|
-
|
|
13326
|
+
url_only?: boolean;
|
|
12990
13327
|
}
|
|
12991
13328
|
|
|
12992
13329
|
export interface VideoCallRuleConfig {
|
|
12993
|
-
rules
|
|
13330
|
+
rules?: Record<string, HarmConfig>;
|
|
12994
13331
|
}
|
|
12995
13332
|
|
|
12996
13333
|
export interface VideoContentParameters {
|
|
@@ -13016,9 +13353,9 @@ export interface VideoReactionsResponse {
|
|
|
13016
13353
|
}
|
|
13017
13354
|
|
|
13018
13355
|
export interface VideoRuleParameters {
|
|
13019
|
-
threshold
|
|
13356
|
+
threshold?: number;
|
|
13020
13357
|
|
|
13021
|
-
time_window
|
|
13358
|
+
time_window?: string;
|
|
13022
13359
|
|
|
13023
13360
|
harm_labels?: string[];
|
|
13024
13361
|
}
|
|
@@ -13144,6 +13481,7 @@ export type WebhookEvent =
|
|
|
13144
13481
|
| ({
|
|
13145
13482
|
type: 'call.hls_broadcasting_stopped';
|
|
13146
13483
|
} & CallHLSBroadcastingStoppedEvent)
|
|
13484
|
+
| ({ type: 'call.kicked_user' } & KickedUserEvent)
|
|
13147
13485
|
| ({ type: 'call.live_started' } & CallLiveStartedEvent)
|
|
13148
13486
|
| ({ type: 'call.member_added' } & CallMemberAddedEvent)
|
|
13149
13487
|
| ({ type: 'call.member_removed' } & CallMemberRemovedEvent)
|